Skip to main content

Reflection FWI

What it is

Reflection FWI inverts a velocity and a reflectivity together. Devito Horizon implements the method of McLeman et al. (2021), Reflection FWI with an augmented wave equation and quasi-Newton adaptive gradient scheme: the wave equation carries the reflectivity as a first-order scattering term,

\[ m\,u_{tt} - \nabla^2 u + \mathbf{w}\cdot\nabla u = \rho\,s , \]

and both \(m\) and the scattering field \(\mathbf{w}\) are inverted. The velocity gradient is taken at fixed reflectivity, so the migration isochrones stay out of the velocity update and the reflectivity takes the reflections. The derivation, the discretization and the gradient checks are in Augmented-wave-equation reflection FWI.

Choosing the form

Two physics options select it: vector_reflectivity switches the propagator to the augmented equation, and parameters names what is inverted.

parameters vector_reflectivity Reflectivity \(\mathbf{w}\)
('mZ', 'Z') True the vector \(\mathbf{Z}\): Zx, Zy in 2D, Zx, Zy, Zz in 3D \(\mathbf{Z} + \tfrac12\nabla\log m\)
('mZ', 'Z') 'scalar' one field \(Z\), the log impedance \(\nabla Z + \tfrac12\nabla\log m\)
('m', 'r') True or 'scalar' the vector \(\mathbf{r}\), or one field \(r\) whose gradient it is \(\mathbf{r}\) (or \(\nabla r\))
  • ('mZ', 'Z'), scalar is the variable-density acoustic equation with the density free of the velocity: \(Z = \log(v_p\rho)\). Its scattering vector \(\nabla Z\) is curl-free by construction, which keeps the propagator stable; start here.
  • ('mZ', 'Z'), vector frees \(\mathbf{Z}\) entirely, so it can fit reflections a density could not. A rotational \(\mathbf{w}\) makes the wave operator non-self-adjoint and the forward can grow without bound, even well inside the per-cell contrast box: on BP94 the first update is about two thirds rotational and its full step overflows the misfit, while its curl-free part at the same peak is stable.
  • ('m', 'r') is McLeman et al.’s own parameterization, where the scattering field is the inverted quantity itself.

Without vector_reflectivity, ('mZ', 'Z') is still accepted: it inverts velocity and impedance with the ordinary variable-density propagator, and needs a density field on the model (see Parameterizations).

Setting up a run

from devitohorizon.data import Dataset
from devitohorizon.optimization import SPG
from devitohorizon.physics import DevitoPhysics

physics = DevitoPhysics(
    model={'vp': 'vp_start.segy'},
    parameters=('mZ', 'Z'),
    vector_reflectivity='scalar',
    misfit='phase',
    gradient={
        'mute': {'type': 'datum', 'taper_width': 100.0},
        # Smooth the velocity only: the reflectivity has to stay sharp.
        'steps': [{'kind': 'global_smoothing', 'parameters': ['mZ']}],
    },
)
dataset = Dataset.from_segy('shots.segy')

model, f, result = SPG(maxiter=20, shot_fraction=0.2).fwi(
    physics=physics, dataset=dataset, model0=physics.model,
    bounds={'vp': (1.7, 6.0)},
)
  • Starting reflectivity. Zero. The model needs no density file; it may provide Zx/Zy (or a scalar Z) fields to start from instead.
  • Gradients. physics.objective(shots) returns {'mZ': (nx, nz), 'Z': (ncomponents, nx, nz)} for the vector form and 'Z': (nx, nz) for the scalar one. Mutes, illumination preconditioning and smoothing act on each component’s grid axes. Restrict smoothing to mZ with the step’s parameters key.
  • Optimizer. SPG steps each component (mZ, Zx, Zy, or mZ, Z) by its own spectral step, along McLeman et al.’s per-point AdaGrad metric. PQN and TMP take the same per-component first step, an L-BFGS initial scale per component and, in PQN, a step cap per component. The reflectivity starts at zero and needs no scale of its own: its steps are bounded as a fraction of its box, as the velocity’s are of its value. Leave scales unset.
  • Bounds. Bound the velocity to what the medium can be; set them so the starting model lies inside, or the first projection rewrites it. The reflectivity is bounded for you: a scalar Z to the log-impedance span the velocity bounds and the model’s density allow, with a log contrast of at most 0.2 between neighbouring cells; a vector Z so that its scattering vector carries at most a 0.75 log contrast across one cell. Bounds named in bounds replace these.
  • t_sub. The imaging condition is summed on the saved snapshots only, so t_sub times the time step has to sample the correlation of the forward and adjoint fields (default 5).

Reading the result

import numpy as np
from devitohorizon.model.grid import get_interior_vp

vp = np.asarray(get_interior_vp(model))   # velocity, km/s
Z = result.parameters['Z'][0]             # scalar form: its one component

result.parameters holds the variables the optimizer worked in: result.parameters['mZ'] is \(\log m\), not \(m\), so read the velocity from the returned model. The returned model and the saved iterates carry vp and the reflectivity fields.

Physics and limits

  • Implemented for iso-acoustic, tti-zhang/vti-zhang (which an acoustic anisotropic model resolves to) and tti-fletcher, without viscosity. On Zhang the vector form also inverts epsilon and delta.
  • No immersed boundary. The adjoint is the transpose of the stiffness, which the immersed-boundary stencils do not provide, so a model with an sdf is refused. Represent topography in the velocity model instead.

Examples

The same run from a JSON configuration is in FWI configuration.

Back to top