Absorptive plume detection¶
The matched filter starts from an additive model, , which is what makes it linear and optimal. However, a gas does not add light to a pixel, it removes a fraction of it, so the plume’s footprint in a spectrum depends on the spectrum it lands on. This page redoes the detection problem with the multiplicative model that Beer–Lambert actually gives, following Theiler & Schaum [1] and Theiler [2]. The tools are the ones a statistician would reach for: a change of variables to get the plume-on density, a likelihood ratio, and a Taylor series in the plume strength to deal with the fact that we do not know it. What comes out is a family of detectors (the clairvoyant detector, the quadratic matched filter, the GLRT) and a precise statement of where the linear matched filter sits among them.
TL;DR¶
A plume of strength multiplies each band of the plume-free spectrum, with . Changing variables from to gives the plume-on density, and its ratio to the background density is the optimal detector when is known:
For Gaussian clutter, a second-order Taylor series in turns the unknown strength into a closed-form estimate and a detector, the GLRT:
with the slope and the curvature of the log likelihood ratio. Stopping at first order instead gives the “locally most powerful” quadratic matched filter, , which is optimal only for plumes too weak to detect. Replacing by gives the linear matched filter with target .
The assumptions are 1) Beer–Lambert per band, 2) a background distribution estimated from plume-free pixels, 3) Gaussian clutter and 4) a plume strength small enough for a second-order series. Practically speaking, on an EMIT-like 2.3 μm scene the Tμ matched filter is already within a factor of two of the clairvoyant bound, and as a detector it is indistinguishable from the GLRT. Where the GLRT pulls ahead is the strength estimate, which stays within 5 % of the truth up to 25 detection limits, whereas the matched filter’s has lost a quarter by then.
The problem¶
An imaging spectrometer like EMIT or AVIRIS-NG gives one radiance spectrum per pixel, and we want to flag the pixels whose spectrum carries a gas’s absorption. The signal is tiny: at the detection limit a methane plume changes the radiance by about two parts in ten thousand (Check), far below the pixel-to-pixel variation of the surface. What makes detection possible is that we know the gas’s absorption spectrum to high precision and see it across many bands, and that we can model the clutter (the statistics of plume-free pixels) from the scene itself.
So the question is a hypothesis test per pixel: is a draw from the background distribution (no plume, ), or from the background seen through a plume of some unknown strength ? The unknown makes this a composite hypothesis test [3], which is why there is no single “optimal” detector and why the papers end up with several.
Running example · an EMIT-like 2.3 μm pixel
| Quantity | Value |
|---|---|
| Bands | 9 Gaussian bands, 2296–2356 nm every 7.5 nm, FWHM 8.5 nm |
| Atmosphere | AFGL US Standard to 20 km, CH₄ and H₂O from radtrax’s synthetic Voigt tables, Beer–Lambert |
| Geometry | sun at 35°, sensor at 10° |
| Plume | a column enhancement in the bottom layer, 1 ppm·m = 4.03 × 10⁻⁵ mol/m² |
| Surface | Lambertian, mean albedo 0.25, brightness spread 35 %, small spectral slope and curvature |
| Noise | additive Gaussian, SNR 300 at albedo 0.25 |
| Pixels | 200 000 plume-free, and the same pixels with a plume implanted |
The numbers come from radtrax itself: from unit_absorption_target and the implanted plume from the exact band transmittance of transmittance_table, so the implant includes the curve of growth that the derivation leaves out. Nine bands is the window of the synthetic table; a real EMIT scene has many more, which lowers the detection limit but changes none of the comparisons.
Symbols
| Symbol | Meaning | Shape | Unit |
|---|---|---|---|
| number of bands | scalar | none | |
| observed band radiance of one pixel | radiance | ||
| the same pixel without the plume | radiance | ||
| plume strength (column enhancement) | mol/m² | ||
| unit absorption spectrum, at 0; negative where the gas absorbs | m²/mol | ||
| m²/mol | |||
| , the unit optical depth summed over bands | m²/mol | ||
| , | density of plume-free and plume-on spectra | radiance⁻ᴮ | |
| , | mean and covariance of | , | radiance, radiance² |
| likelihood ratio | scalar | none | |
| , , | Mahalanobis distance, slope and curvature of the log likelihood ratio | scalar | –, m²/mol, (m²/mol)² |
| characteristic plume strength | scalar | mol/m² | |
| a detector’s statistic; larger means more plume-like | scalar | none |
The matched-filter page writes the pixel as ; here it is , the observation. Theiler writes the strength as and the absorption as a positive ; his is our , so every formula below is his with that sign flipped, and , and keep his meaning exactly.
Part 1 · From Beer–Lambert to a likelihood ratio¶
In words: we first write what a plume does to a spectrum, then use that map to get the density of plume-on spectra from the density of plume-free ones. The only non-obvious ingredient is the Jacobian of the map, which is where the summed optical depth comes from. With both densities in hand, the Neyman–Pearson lemma says their ratio is the best detector, if we knew .
Step 1 · Write the plume as a map (uses Assumption 1)¶
Stacking the bands, the plume is a diagonal linear map on the plume-free spectrum, so we will have:
where is the matrix exponential, which for a diagonal matrix is the diagonal of the elementwise exponentials. As seen above, the map is linear in but not in , and that is the whole difficulty. For a fixed pixel the plume moves the spectrum along a curve rather than a straight line, and the direction it moves in, , depends on the pixel.
Step 2 · Change variables (uses Assumption 2)¶
If has density and is an invertible function of it, the density of is at the preimage times the absolute Jacobian determinant of the inverse map, so we will have:
The factor is easy to drop by accident, and Theiler credits Schaum with insisting on it. It has a plain meaning: the plume shrinks every axis of spectrum space by , so it packs the background’s probability into a smaller volume, and the density goes up by the inverse of the volume ratio. Without it the likelihood ratio is biased against the plume hypothesis by exactly the amount the plume compresses the clutter. We will see on the companion page that the factor disappears in log space, where the plume is a translation and translations preserve volume.
Step 3 · Take the ratio¶
With both densities, the ratio of plume-on to plume-free density at the observed spectrum is:
For a known the Neyman–Pearson lemma makes this the most powerful test at every false-alarm rate. It is called the clairvoyant detector [3], because it knows the one thing we do not: the plume strength. It is still worth writing down, since every other detector on this page is an approximation to it. In simulation, where we do know , it is also the bound the others are measured against.
Step 4 · The clairvoyant detector for Gaussian clutter (uses Assumption 3)¶
Taking the logarithm of (11) and inserting the Gaussian, the normalising constants cancel and we will have:
is the Mahalanobis distance of the pixel from the background mean (the RX anomaly detector), so the clairvoyant detector asks how much closer to the background the pixel moves when the plume is “taken off”, plus the volume term. It holds for every , not just weak plumes.
Part 2 · Two ways around the unknown strength¶
In words: appears inside , so maximising over it is a transcendental problem with no closed form. Both papers handle this with a Taylor series in . Keeping only the first-order term gives the locally most powerful (LMP) detector, which is what “assume a weak plume” usually means. Keeping the second-order term as well lets us maximise over in closed form, which is the GLRT. So the maximiser is an estimate of the plume strength that we get almost for free.
Step 5 · Expand the Mahalanobis distance (uses Assumption 4)¶
Write the perturbation as , expand the quadratic form and collect powers of , so we will have:
The two terms of have different origins: the first is at first order, and the second is the cross term of the second-order perturbation with the residual. That makes exactly a Newton curvature, and its first term alone the Gauss–Newton curvature, which is always positive. However, the full can go negative for a pixel far from , where the second-order series has no interior maximum. This never happened on the running example, but the code in Code falls back to the Gauss–Newton term there anyway (on the running example the two give the same false-alarm rates to three digits). Inserting (16) into (14):
Step 6 · First order: the quadratic matched filter¶
The locally most powerful detector keeps the slope of the log likelihood ratio at . Since , we divide by (a monotone rescaling for , which does not change the detector) before taking the limit, so we will have:
This is a “matched filter” matched to , the pixel’s own plume direction, rather than to a fixed target, which makes it quadratic in . The constant does not change it as a detector; it only makes its mean zero over background pixels. It is the result most people have in mind when they say the weak-plume limit justifies a linear filter, and it shows that it does not: even as , the optimal detector is quadratic. Part 3 · Where the linear matched filter sits explains why it is still the worst detector here.
Step 7 · Second order: the GLRT¶
The GLRT replaces the unknown by its maximum-likelihood estimate and evaluates the likelihood ratio there. (19) is a parabola in , of the form , maximised at with maximum , so we will have:
The imposes : an absorptive plume cannot brighten a pixel. The detector itself is the square root of the maximised , signed, which is monotone in it, and Theiler drops the clipping in the detector, , since it changes only negative values and no useful threshold is negative. In addition, is a plume-strength estimate in its own right, with a built-in albedo correction: numerator and denominator both scale with the pixel’s brightness through , so a bright pixel is not read as a strong plume. Foote et al. [4] add that correction by hand to the matched filter, dividing its estimate by ; here it falls out of the likelihood.
Part 3 · Where the linear matched filter sits¶
In words: the linear matched filter needs an additive model, a fixed vector that the plume adds to every pixel. We get one by linearising Beer–Lambert and then replacing the pixel-dependent direction by a constant. The choice of constant is the difference between a good and a bad matched filter. The same constant also defines the strength of a “just detectable” plume, and that strength is what explains why the LMP detector does so badly.
Step 8 · The Tμ matched filter (uses Assumption 5)¶
With a constant target on Gaussian clutter, the problem is the additive one of the matched filter, so we will have:
Comparing with (20), the QMF is this filter with replaced by in the target and no normalisation. Both papers also test the “naive” target itself, which assumes a spectrally flat background. The Tμ target beat it in every case they tried, and in the running example it cuts the false-alarm rate at 80 % detection five- to six-fold for a plume at 5 (Check). In radtrax this is the μ ⊙ t option that unit_absorption_target documents: apply_image(cube, mean, cov, mean * t).
Step 9 · The characteristic plume strength¶
Under the background hypothesis the matched filter’s estimate (24) has mean zero and standard deviation , so a plume of strength is an -sigma detection. Theiler takes as the scale of a “just detectable” plume, so we will have:
This is the inverse of the per-unit-strength SNR that matched_filter_snr computes, , with the target . The same scale also says how weak a detectable plume is in the raw data: at the spectrum changes by a fraction , which is in the running example and below 10-3 on all four of Theiler’s real scenes. The matched filter’s gain comes from whitening, from looking along the directions where the clutter is quiet.
Step 10 · Why the “locally most powerful” detector fails¶
The QMF dropped the term of (19) on the grounds that is small. However, small compared with what? Averaging over background pixels (the expectation of a quadratic form, ), we will have:
so the dropped term is at least , the squared detection SNR. A plume weak enough for the first-order term to dominate is weaker than , which is to say undetectable. At a pixel that does carry a plume, , so the dropped term is half the kept one whatever the strength (0.50–0.53 in the running example from 3 to 25 detection limits). The LMP detector is optimal in exactly the regime where no detector works, which is Theiler’s Appendix B. Theiler states the bound per pixel; it holds on average over background pixels, and at a typical pixel in the running example .
Check¶
Units
| Quantity | Units | |
|---|---|---|
| , | mol/m² × m²/mol | ✓ dimensionless |
| (m²/mol × radiance) × radiance⁻² × radiance | m²/mol, like ✓ | |
| (m²/mol)² | ✓ | |
| (m²/mol) / (m²/mol)² | ✓ mol/m² | |
| (m²/mol) / (m²/mol) | ✓ dimensionless, an SNR | |
| 1 / (m²/mol) | ✓ mol/m² |
Numbers · the running example (Gaussian albedo; lognormal brightness in parentheses)
| Quantity | Value |
|---|---|
| strongest band, | −0.19 m²/mol |
| 0.54 m²/mol | |
| 0.028 mol/m² ≈ 690 ppm·m (0.027 mol/m², 660 ppm·m) | |
| fractional radiance change at | 2.0 × 10⁻⁴ |
| over background pixels | 1.12 (1.13) ✓ ≥ 1 |
| median at 3, 5, 25 | 0.99, 0.99, 0.95 |
| median at 3, 5, 25 | 0.96, 0.93, 0.74 (0.93, 0.90, 0.71) |
False-alarm rate at 80 % detection, plume at 5
| Detector | Gaussian albedo | Lognormal brightness |
|---|---|---|
| clairvoyant (14) | 7.2 × 10⁻⁴ | 6.2 × 10⁻⁴ |
| GLRT (22) | 1.1 × 10⁻³ | 1.0 × 10⁻³ |
| Tμ-AMF (24) | 1.2 × 10⁻³ | 1.0 × 10⁻³ |
| t-AMF | 6.3 × 10⁻³ | 6.5 × 10⁻³ |
| QMF (20) | 2.7 × 10⁻² | 2.6 × 10⁻² |
Each rate is over 200 000 background pixels, so the smallest is 120–140 false alarms and good to roughly ±10 %. The Tμ target beating and the QMF in last place match Theiler throughout. One difference: on his simulated Gaussian backgrounds (his Table VI) the GLRT is substantially better than the Tμ filter, whereas here they tie, as they do on his real AVIRIS-NG scene (his Fig. 1a). The synthetic scene has nine bands and mostly brightness clutter, so it leaves the GLRT little to gain as a detector; its strength estimate is where it still pulls ahead.
Limits. At , (14) is zero, as a log likelihood ratio must be. As becomes spectrally flat, and the Tμ and t filters coincide, which is when the naive target is fine. If the pixel equals the mean, and , a small positive bias from the volume term that the clipping at zero then dominates.
Code¶
The Tμ matched filter is one call; the GLRT is a handful of lines on the same operators. The snippet below ran against radtrax main (with Float, Array from jaxtyping and lx for lineax). The symmetry is what lets one solve, , serve all three quadratic forms.
import gaussx_linalg
import jax
import jax.numpy as jnp
from radtrax.retrieval.matched_filter import apply_image, estimate_cov_shrunk, estimate_mean
# Shapes: H × W pixels; B bands
# cube: radiance (H, W, B); t from unit_absorption_target, (B,) [m²/mol]
# today (radtrax)
# μ_y = background mean of the scene
mean = estimate_mean(cube) # (H, W, B) → (B,)
# today (radtrax)
# Σ_y = Ledoit–Wolf shrunk covariance of the scene
cov = estimate_cov_shrunk(cube, mean) # → (B, B) PD operator
# today (radtrax)
# α̂_AMF = (Tμ_y)ᵀ Σ_y⁻¹ (y − μ_y) / (Tμ_y)ᵀ Σ_y⁻¹ (Tμ_y)
alpha_amf = apply_image(cube, mean, cov, mean * t) # (H, W, B) → (H, W)
# user
def glrt_image(
cube: Float[Array, "H W B"],
mean: Float[Array, " B"],
cov_op: lx.AbstractLinearOperator,
t: Float[Array, " B"],
) -> tuple[Float[Array, "H W"], Float[Array, "H W"]]:
# τ = −1ᵀt
tau = -jnp.sum(t) # (B,) → ()
# r = y − μ_y
r = cube - mean # (H, W, B)
# Ty = t ⊙ y
ty = t * cube # (H, W, B)
# today (gaussx)
# s = Σ_y⁻¹ (Ty), one structured solve per pixel
s_ty = jax.vmap(jax.vmap(lambda v: gaussx_linalg.solve(cov_op, v)))(ty) # (H, W, B)
# Q = (Ty)ᵀ Σ_y⁻¹ (y − μ_y)
q = jnp.einsum("hwb,hwb->hw", s_ty, r) # (H, W, B) → (H, W)
# E_GN = (Ty)ᵀ Σ_y⁻¹ (Ty)
e_gn = jnp.einsum("hwb,hwb->hw", s_ty, ty) # (H, W, B) → (H, W)
# E = E_GN + (T²y)ᵀ Σ_y⁻¹ (y − μ_y)
e = e_gn + jnp.einsum("hwb,hwb->hw", s_ty * t, r) # (H, W)
# E ← E_GN where E ≤ 0 (no interior maximum far from μ_y)
e = jnp.where(e > 0, e, e_gn) # (H, W)
# α̂ = max(0, Q + τ) / E
alpha_hat = jnp.maximum(q + tau, 0.0) / e # (H, W)
# D_GLRT = (Q + τ) / √E
d_glrt = (q + tau) / jnp.sqrt(e) # (H, W)
return d_glrt, alpha_hatapply_image is (24) (Step 8); glrt_image is (16), (21) and (22) (Steps 5 and 7). The double vmap solves per pixel, which keeps the sketch agnostic to the structure of through gaussx_linalg.solve. For a dense or low-rank it is cheaper to factorise once and solve the whole cube as one block of right-hand sides, which is what a library version would do.
When the assumptions break¶
| Assumption | Fails when | Then use |
|---|---|---|
| Assumption 1 Beer–Lambert per band | lines saturate within a band; path radiance; emission | the exact band transmittance transmittance_table in the clairvoyant detector, or a finite-amplitude target, nonlinear_target_from_obs |
| Assumption 2 known background | plume contamination; mixed surfaces | robust means, GMM clusters, adaptive windows (matched filter, §3) |
| Assumption 3 Gaussian clutter | fat tails, multiplicative albedo variation | the multivariate t, ACE, the lognormal matched filter (Beyond Gaussian clutter) |
| Assumption 4 second order in | near one | maximise (14) over numerically (a scalar problem per pixel) |
| Assumption 5 constant plume direction | strong brightness variation | the GLRT’s , or an albedo-corrected matched filter |
Draft 1, November 2026. Running-example numbers are from a synthetic 9-band scene built with radtrax; they illustrate the comparisons, not EMIT’s detection limit. Next: Beyond Gaussian clutter.
Theiler, J. & Schaum, A. (2020). Some closed-form expressions for absorptive plume detection. Proc. IEEE IGARSS 2020, 1786–1789. doi:10.1109/IGARSS39084.2020.9323752
Theiler, J. (2021). Absorptive weak plume detection on Gaussian and non-Gaussian background clutter. IEEE JSTARS, 14, 6842–6854. doi:10.1109/JSTARS.2021.3093820 (CC-BY 4.0).
Foote, M. D., Dennison, P. E., Thorpe, A. K., et al. (2020). Fast and accurate retrieval of methane concentration from imaging spectrometer data using sparsity prior. IEEE TGRS, 58(9), 6480–6492.