Earth Movers Distance answers the question: “How much effort is required to reshape one spectrum into another?”
By treating each spectrum as a distribution of “mass” (reflectance) spread across wavelength “bins,” EMD captures both value and position differences. This makes it well-suited for detecting shifted absorption features—for instance, when a mineral’s diagnostic dip slides a few nanometres due to chemistry, grain size, or moisture.
How it works #
- Normalise spectra to probability mass , Each vector now sums to 1, acting like a discrete probability distribution over n bands.
- Cumulative mass functions (CMFs) ,
- One-dimensional EMD (for ordered bands) Intuitively, is the net “mass” still needing to cross the boundary after band i; summing these across all boundaries gives the minimum total work.
- Scene-adaptive normalisation (0 – 1) Let be the 99ᵗʰ-percentile raw distance within the analysis area: Outcome: 1 → best match, 0 → largest practical mismatch.
Key properties #
Property | Benefit |
---|---|
Shift-aware | Detects horizontal displacements of absorption peaks/troughs—not just depth changes. |
Global yet sensitive | Considers every band but penalises mis-alignments proportionally to how far mass must move. |
Brightness-invariant | Probabilistic scaling removes overall albedo influence, focusing on spectral shape & position. |
When to use EMD #
- Hydroxyl group variations: Identify minerals where the OH-feature centre shifts with Al-Fe substitution.
- Moisture content studies: Track wavelength drift of water absorption in soils or vegetation.
- Quality control in calibration: Spot sensors or preprocessing steps that introduce spectral mis-registration.