The 1D acoustic wave equation

Part 4, Wave equations in PINN form

Learning objectives

  • Write 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
  • Read a stored PINN run on the Marmousi2 column and score it against a fourth-order finite-difference field in relative L2
  • Check the reference itself against a standing mode the formula gives, and read its order of convergence
  • Say where a PINN's error comes from: the residual it leaves, carried forward in time, and what its transform holds and does not hold

A Network Trained on the Equation Alone

The 1D acoustic wave equation utt=v(z)2uzzu_{tt} = v(z)^2 u_{zz} is the simplest wave a physics-informed network can learn, and the first that belongs to seismology. The network learns it from the equation's residual alone: no value of the solution enters its loss, so it is only as good as training drives that residual down, and it can only be scored against a solver that is not the network. On the Marmousi2 column at x = 3600 m, the book's network of 2241 parameters is 0.19 from a fourth-order finite-difference field in relative L2 over 1750 m and 500 ms after 3000 optimiser steps; its error is 0.02 at the start and 0.24 by 250 ms, while the finite differences, checked on a standing mode at the same grid, are wrong by 3.5Γ—10βˆ’63.5 \times 10^{-6}.

Column Wave PinnInteractive figure, enable JavaScript to interact.

The Column and the Pulse

The column is the book's 1D problem: the P-wave velocity of the Marmousi2 window at x = 3600 m from the surface to 1750 m, 450 m of water at 1500 m/s over sediments that reach 3553 m/s, with a slower layer near 1100 m. The window is a 2D acoustic, constant-density slice of a synthetic model (Martin, Wiley and Marfurt), not field data; the column is a 1D cut through it, and its x is the book's own choice. The experiment is the book's own too: a Gaussian pulse at rest, centred 300 m deep and 200 m wide to its 1/e points, released at t=0t = 0 and followed for 500 ms. It splits into a wave going down and a wave going up; the upgoing one reflects at the free surface with its sign reversed, and both cross the sea floor at 450 m.

The Network and Its Loss

The network takes depth and time, scaled by the book's LL = 1800 m and T0T_0 = 1.2 s, into three hidden layers of 32 tanh units and one output. An output transform,

u(z,t)=u0(z)+z (1βˆ’eβˆ’(t/Ο„)2) NΞΈ(z,t),u(z, t) = u_0(z) + z\,\big(1 - e^{-(t/\tau)^2}\big)\,N_\theta(z, t),

makes the pulse and its rest exact at t=0t = 0 whatever the weights; Ο„\tau is the time the pulse takes to cross its own width in water. The loss is the mean squared residual of the wave equation,

β„’(ΞΈ)=1Kβˆ‘k(uttβˆ’c2uzz)2(zk,tk),c=v/V0,\mathcal L(\theta) = \frac1K \sum_k \big(u_{tt} - c^2 u_{zz}\big)^2(z_k, t_k), \qquad c = v / V_0,

at 800 collocation points drawn from the book's generator, with the derivatives the network's own, exact to second order. The book's build trains it for 2500 Adam steps and then 500 L-BFGS steps, and stores its weights at four checkpoints; the figure replays them. Nothing in the loss is a value of the solution.

Scored Against a Solver That Is Not the Network

The reference is a finite-difference solution of the same problem: the column linear between its 50 m nodes, a fourth-order second difference in space on a 5 m grid, leapfrog in time at 0.4 ms, the surface held at zero. A reference must itself be checked by something that is not it. On a standing mode of wavelength 900 m in water over the column's depth, whose solution the formula gives, it is wrong by 3.5Γ—10βˆ’63.5 \times 10^{-6} of the mode's amplitude within 500 ms at that grid; with a step of 0.1 ms its error falls by a factor of about 16 each time the grid is halved from 60 m to 30 m to 15 m, as a fourth-order scheme's should.

Against that reference the network is 1.52 from it before training, 0.28 after 500 Adam steps, 0.20 after 2500 and 0.19 after the L-BFGS steps. Plate (e) shows where the error comes from: 0.02 at the start, all of it at the surface, rising while the pulse leaves its start to 0.24 by 250 ms, and 0.23 at 500 ms. Nothing ties a late time to an early one but the residual between them, so the error a network makes at one time is carried into every later one; Part 3 returns to training that respects that order.

What the Transform Holds

The transform is exact for what it encodes and for nothing else. It holds the start, but at the surface it holds the pulse's own value there, 0.105 of its peak, for all time, where the finite differences hold the free surface at zero; the surface row alone is 2 % of the network's squared error. Section 4.5 builds a transform that encodes the free surface too.

Where PINNs Stand

Raissi, Perdikaris and Karniadakis (2017) introduced physics-informed networks, trained on a task while respecting the partial differential equations that govern it. Moseley, Markham and Nissen-Meyer (2020) trained them on the 2D acoustic wave equation, in media from homogeneous and layered to Earth-realistic, and report the wavefield simulated accurately. Here, in one dimension on a real column, the trained network is 0.19 from a reference whose own error on the standing mode is more than four orders of magnitude smaller: that gap is what a PINN must close before it replaces a solver, and it is why Part 5 asks where PINNs fall short.

What Comes Next

Section 4.2 takes the same equation into two dimensions, on a sub-window of the Marmousi2 model, against FWI2D's field.

References

  • Martin, G. S., Wiley, R. and Marfurt, K. J. (2006). Marmousi2: An elastic upgrade for Marmousi. The Leading Edge, 25(2), 156-166. doi:10.1190/1.2172306.
  • Moseley, B., Markham, A. and Nissen-Meyer, T. (2020). Solving the wave equation with physics-informed deep learning. arXiv:2006.11894.
  • Raissi, M., Perdikaris, P. and Karniadakis, G. E. (2017). Physics informed deep learning (Part I): data-driven solutions of nonlinear partial differential equations. arXiv:1711.10561.

This page is prerendered for SEO and accessibility. The interactive widgets above hydrate on JavaScript load.