- 0.1What is a neuron?Read a neuron's arithmetic, , and name each part
- 0.2Layers, depth, and universal approximationWrite a layer of neurons as a sum of switches, and a second layer as switches of those sums
- 0.3Activation functions and inductive biasName four activations (tanh, sine, swish, ReLU) and draw each with its first and second derivatives
- 0.4Loss functions and the loss landscapeWrite a network's mean-squared loss on the column and read it as an RMS error in m/s
- 0.5Gradient descent by handWrite one gradient-descent step and carry it out for two parameters
- 0.6The chain rule and backpropagationState backpropagation as the chain rule run from the loss backwards, each node's delta reused for every edge into it
- 0.7Auto-differentiation as a computational graphRun the chain rule forwards through a network's graph, each node carrying its value and its first and second derivatives with respect to the input
- 0.8Training loops and optimisersWrite the training loop every optimiser shares: the loss and its gradient, then a step
- 0.9Spectral bias and why physics needs it fixedMeasure a fit's error by wavelength: the DFT of the column and of the fit's error, and the share of each band the fit still misses
- 0.10A geophysics primer for ML readersDescribe the book's one earth, the Marmousi2 window the FWI Lab holds, and say what it is and what it is not
Physics-Informed Neural Networks for Exploration Seismology
Physics-informed networks on the Marmousi2 window, each scored against a solver that is not the network.
Physics-informed neural networks for seismology on one window of the Marmousi2 model: every network trained by the book's own build, replayed exactly in your browser, and scored against a solver or the truth.
The Marmousi2 window
What you will learn
- Neural networks from one neuron, on a column of the Marmousi2 model (no ML background assumed)
- The PINN formulation, architectures, and the loss weights that decide whether it trains
- Wave equations in PINN form: 1D, 2D, Helmholtz, TTI, free surface, ABC and PML
- Forward PINNs timed against finite differences on the same machine
- Full-waveform inversion of the Marmousi2 window with the library's FWI2D, multiscale and diagnosed
- Eikonal networks, tomography, event location and joint inversion
- Operator learning: DeepONet and a Fourier neural operator on a family of columns
- Hybrid PINN and classical inversion, with ensembles whose coverage of the truth is measured
- Eight capstones on the window, closing with the book's analogue of PINNeik's Marmousi test
- Every network trained by the book's own build, replayed exactly in your browser
Designed for
Geophysics students entering scientific machine learning, working geophysicists modernising their inversion stack, and PINN researchers who want a deep, working command of the seismic-inversion application.
Read the full introduction
Thirteen parts on one problem, the window of the Marmousi2 model the library's FWI Lab holds: a 2D acoustic, constant-density slice of a synthetic benchmark, not field data, whose velocity is known at every cell. Part 0 builds a network from one neuron through backpropagation, optimisers and spectral bias on a column of the window. From there: the PINN formulation and its residual, architectures, the loss weights that decide whether training reaches the wave at all, the wave equations in PINN form (1D, 2D, Helmholtz, TTI, the free surface, absorbing boundaries and PML), where a forward PINN falls short of finite differences timed on the same machine, full-waveform inversion of the window with the library's FWI2D, eikonal networks, tomography, event location and joint inversion, operator learning (DeepONet and a Fourier neural operator on a family of columns), hybrid PINN and classical inversion with ensembles whose coverage of the truth is measured, and eight capstones on the window, closing with the book's analogue of PINNeik's Marmousi test. Every network is trained by the book's own build from a stated seed and replayed exactly on the page, every number is scored against a reference solver or the model's truth, each Part has its quiz, and the last section sets the book's eleven numbers on the window.
Contents
13 parts · 92 sections · 80 interactive figures- 1.1Why supervised ML alone cannot solve PDEsFit a network to a wavefield where an array of receivers records it, and score it against the whole field, inside the array and below it apart
- 1.2The PINN idea: PDE residual as a loss termWrite the physics-informed loss: the data's misfit and the mean squared residual of the PDE at collocation points
- 1.31D Burgers' equation, end to endWrite Burgers' equation with its initial and boundary conditions as one loss of three terms, and train a network on it
- 1.4Boundary and initial conditions: soft enforcementWrite an initial and a boundary condition as soft terms of a PINN loss, each a mean square at its own points with its own weight
- 1.5Hard-constraint enforcement via reparameterisationWrite a network output as a given part that satisfies the conditions and a part that vanishes on them, and say why each condition then holds whatever the weights
- 1.6The forward problem vs the inverse problemSay how the inverse problem differs from the forward problem, and write a PINN loss with an unknown velocity in its residual
- 1.7The gallery of residualsEvaluate a network's wave-equation residual by its exact derivatives over the column and the record, whether or not it was trained on it
- 2.1Vanilla MLPs and their limitsMeasure how many steps a vanilla network needs to learn each of the column's wavelength bands, by reading where each band's miss falls below one half
- 2.2Fourier feature embeddingsBuild a Fourier-feature layer: sines and cosines of the depth at frequencies drawn once at a scale , a wavelength of
- 2.3SIREN, sinusoidal representation networksWrite a SIREN layer, , and Sitzmann et al.'s initialisation of it
- 2.4Hard-constrained architecturesWrite a hard constraint as an output transform, , with zero where the value is known
- 2.5Multi-scale and multi-resolution networksDraw a two-scale Fourier embedding: half the frequencies at a long scale and half at a short one, from the same normals
- 2.6Picking an architecture by the numbersSet Part 2's 13 networks on the column side by side, each read at its training depths and between them
- 3.1Why most beginner PINNs do not convergeTrain one PINN of the column's 1D wave with every loss weight 1 and read its loss and its error against FD side by side
- 3.2The loss-balance crisis: data + PDE + BC weightsSweep the residual's weight from 1 to a millionth on one network and read the error against FD at each
- 3.3NTK-balanced weightingCompute the NTK's diagonal of a term's residuals, the squared length of each residual's gradient, and its trace
- 3.4Gradient pathologies and adaptive weightsRead the residual's and the other terms' gradients at the start, their largest and mean entries
- 3.5Causality weighting for time-domain PINNsSplit the residual's points into time bins and weight each bin by how well the bins before it are fitted
- 3.6Curriculum and multi-stage trainingTrain the column's network first on a pulse twice as wide, then on the pulse it is scored on
- 3.7Adaptive collocation point sampling (RAR/RAD)Start from half of Section 4.1's collocation points and add more every 250 steps where the residual is largest
- 3.8Domain decomposition: XPINN, cPINN, FBPINNSplit the column's depth into four overlapping windows that sum to one, each with a small network of its own
- 4.1The 1D acoustic wave equationWrite the 1D acoustic wave equation as a PINN loss: an output transform that makes the start exact, and the mean squared residual at collocation points
- 4.2The 2D acoustic wave equationWrite the 2D acoustic wave equation's PINN loss: the residual inside, the field and its rate at the start, the field on the edges
- 4.3Frequency-domain (Helmholtz) formulationWrite the Helmholtz equation as the wave equation at one frequency: a complex field, no time axis, and the time-domain field's Fourier transform as its solution
- 4.4Anisotropy: VTI and TTI mediaWrite the elliptic anisotropic wave equation in x and z, and say why a tilted symmetry axis puts a mixed derivative in it
- 4.5Free-surface boundary conditionsState the acoustic free surface as at and hold it by an output transform
- 4.6Absorbing boundary conditions (ABC)Cut the Marmousi2 column at a depth and score every way of ending it by the energy it sends back, against the same column continued below the cut
- 4.7Perfectly matched layers (PML)Write the 1D perfectly matched layer as the damped first-order system , , and say why it lets the wave in without reflecting it
- 4.8Picking a formulation: time vs frequencyRank Part 4's twelve stored networks by the score each was given against a solver that is not the network
- 5.11D layered medium: the layers' part, PINN vs FDSplit a wave through a layered column into the wave in water and the part the layers add, both by the same finite differences
- 5.22D sub-window: PINN vs FWI2DSay what Section 4.2's 2D network is given of FWI2D's own field, and so what kind of problem it solves
- 5.3The cost-vs-accuracy frontPrice one forward problem two ways: finite differences on grids from 100 m to 10 m, and a network at every stage of its training
- 5.4Multi-scale failure: shorter pulses, the same PINNTrain the same forward network the same way on pulses 200 m, 100 m and 50 m wide through the Marmousi2 column, and score each against its own finite differences
- 5.5When forward PINN earns its keepPut each niche a forward network is claimed for to one test: a measured comparison with the solver on the niche's own measure
- 6.1The classical FWI loss vs the PINN-FWI lossWrite the L2 waveform misfit and say why its gradient with respect to every cell costs two wave solves a shot, not two for each cell
- 6.21D velocity inversion end-to-endRun full-waveform inversion one iteration at a time: a forward solve, an adjoint solve, a step along minus the gradient and a check that the misfit fell
- 6.32D Marmousi2 inversion: the setupRead the Marmousi2 window as FWI2D sets it up: the model, the three shots and their receivers, the record and the three bands
- 6.4Multi-scale frequency continuationRun FWI2D's inversion on the Marmousi2 window through its three bands, lowest first, each band's model the next band's start
- 6.5Cycle skipping: detection and remediesFollow the waveform misfit along the line from FWI2D's start to the truth at each band, a diagnostic only a synthetic test can draw
- 6.6Vp and Vs from Marmousi2's elastic modelInvert two parameters at once, the P and S velocities, with the library's elastic engine on Marmousi2's elastic window
- 6.7Source-encoded FWIFire every shot at once with random signs and say what the supershot's gradient costs: one forward and one adjoint solve
- 6.8Loss-weight sensitivity in PINN-FWIWrite the PINN-FWI loss on the column: a data term and the wave equation's residual, over a network for the field and the velocity beside it
- 6.9Defending an inversion run: convergence diagnosticsSay why a falling misfit defends nothing alone: every accepted step lowers it by construction
- 7.1The eikonal equation and fast sweepingWrite the eikonal equation and say what its solution is: the first-arrival traveltime from a source, not the wave
- 7.2An eikonal PINN: a small residual is not a traveltimeTrain a network on the eikonal residual and a soft source condition, and say what its loss measures
- 7.3Factored eikonal: removing the source singularityWrite the factored traveltime as the straight-ray time times a factor, and the output transform that holds the factor at 1 at the source whatever the weights
- 7.4Travel-time tomographySet up traveltime tomography as Gauss-Newton on picked first arrivals, with rays bent by each model's own traveltime field
- 7.5Microseismic event locationWrite event location as a search for the place and origin time whose traveltimes best explain the picks, and say how reciprocity makes it a table lookup
- 7.6Joint inversion of traveltimes and waveformsSay why this window carries no Rayleigh-wave dispersion to invert, and what it carries instead
- 8.1From per-instance solvers to operator learnersSay what a per-instance network learns and what an operator network learns, and why the second answers a new input in one forward pass
- 8.2DeepONet: branch and trunk networksWrite a DeepONet's answer as a constant plus a sum of the trunk's functions of the output's coordinate weighted by the branch's numbers of the input
- 8.3Fourier Neural Operators (FNO)Write a Fourier layer: the FFT of each channel, the first modes multiplied by learned complex matrices, a pointwise linear path, a nonlinearity
- 8.4Learned propagators for fast forward modellingSay why the wave equation in a column of one velocity is diagonal in the column's sine modes, and write the diagonal propagator
- 8.5Parametric PDE explorers in real timeExplain why a trained operator can follow a slider and what one answer costs
- 8.6When operator learning beats per-instance trainingPrice an operator as its training once plus one forward pass a column, and a per-instance network as its training to a stated error for every column
- 9.1PINN as regulariser, initialiser, or solverName the three roles a PINN can take in an inversion: the solver, the start, the penalty
- 9.2PINN-augmented classical FWIBuild a prior on the window from a PINN's column and state its distance from the truth
- 9.3Learned regularisers and ML priorsTrain an autoencoder on the window's columns other than the scored one, held out by a stated distance
- 9.4Generative priors for velocity modelsUse an autoencoder's decoder as a generator: draw codes from their Gaussian and decode them into columns
- 9.5Deep ensembles of PINNsTrain the same PINN-FWI run from eight network seeds and read their spread
- 9.6Uncertainty-aware velocity inversionRun an ensemble of FWI2D inversions on the window, each with its own noise and its own PINN prior
- 10.1Marmousi end to endRun a velocity-model chain on the Marmousi2 window from a 1D start through tomography and a PINN step to multiscale FWI
- 10.2Locating events in the Marmousi windowLocate the book's planted events in the Marmousi2 window many times, on fresh pick noise and in an ensemble of velocity models
- 10.3Tomography at survey scaleInvert the Marmousi2 window's first arrivals with 6, 12, 24 and 48 surface sources from one start
- 10.4AVO at a Marmousi2 interfaceCompute an interface's P-P reflection coefficient against angle from the Vp, Vs and density on its two sides
- 10.5Imaging below the low-velocity layerMeasure the slow layer on the window's column: its velocity, its thickness, and the top band's half wavelength in it
- 10.6A CO2 plume in the windowPut CO2 into a rock by Gassmann's substitution, and say what sets the size of its velocity drop
- 10.7Tomography with a PINN eikonal forwardRun one tomography with two forwards, the factored sweep and one factored network a source, from the same start on the same picks
- 10.8PINNeik's Marmousi test, reproduced on the windowState PINNeik's Marmousi test as the paper sets it up, and the book's reduced analogue of it, difference by difference
- 11.1Quiz, Part 0: Neural networks from zeroAnswer questions drawn at random from the practice questions of Part 0's ten sections, Sections 0.1 to 0.10, six from each
- 11.2Quiz, Part 1: PINN formulationAnswer questions drawn at random from the practice questions of Part 1's seven sections, Sections 1.1 to 1.7, six from each
- 11.3Quiz, Part 2: ArchitecturesAnswer questions drawn at random from the practice questions of Part 2's six sections, Sections 2.1 to 2.6, six from each
- 11.4Quiz, Part 3: Training pathologiesAnswer questions drawn at random from the practice questions of Part 3's eight sections, Sections 3.1 to 3.8, six from each
- 11.5Quiz, Part 4: Wave equationsAnswer questions drawn at random from the practice questions of Part 4's eight sections, Sections 4.1 to 4.8, six from each
- 11.6Quiz, Part 5: Forward modellingAnswer questions drawn at random from the practice questions of Part 5's five sections, Sections 5.1 to 5.5, six from each
- 11.7Quiz, Part 6: Velocity inversionAnswer questions drawn at random from the practice questions of Part 6's nine sections, Sections 6.1 to 6.9, six from each
- 11.8Quiz, Part 7: Travel-time and joint inversionAnswer questions drawn at random from the practice questions of Part 7's six sections, Sections 7.1 to 7.6, six from each
- 11.9Quiz, Part 8: Operator learningAnswer questions drawn at random from the practice questions of Part 8's six sections, Sections 8.1 to 8.6, six from each
- 11.10Quiz, Part 9: Hybrid PINN and uncertaintyAnswer questions drawn at random from the practice questions of Part 9's six sections, Sections 9.1 to 9.6, six from each
- 11.11Quiz, Part 10: CapstonesAnswer questions drawn at random from the practice questions of Part 10's eight sections, Sections 10.1 to 10.8, six from each
- 11.12Final exam, integrated assessmentAnswer questions drawn at random from the practice questions of every section of Parts 0 to 10 and of Section 12.1, six from each