Abstract
Tracking algorithms such as the Kalman filter aim to improve inference performance by leveraging the temporal dynamics in streaming observations. However, the tracking regularizers are often based on the $\ell_p$-norm which cannot account for important geometrical relationships between neighboring signal elements. We propose a practical approach to using the earth mover's distance (EMD) via the earth mover's distance dynamic filtering (EMD-DF) algorithm for causally tracking time-varying sparse signals when there is a natural geometry to the coefficient space that should be respected (e.g., meaningful ordering). Specifically, this paper presents a new Beckmann formulation that dramatically reduces computational complexity, as well as an evaluation of the performance and complexity of the proposed approach in imaging and frequency tracking applications with real and simulated neurophysiology data.
Introduction: The Geometric Blind Spot in Signal Tracking
In many signal processing tasks—such as tracking a moving target in a video or a shifting frequency in a brain scan—the signal is "sparse," meaning it consists of a few active elements against a background of zeros. Traditional tracking tools typically employ $\ell_p$-norms (like $\ell_1$ or $\ell_2$) to compare predicted signals to observations.
The fundamental flaw in these pointwise norms is their lack of geometric awareness. If a tracker predicts a target at pixel $(10, 10)$ but it is actually at $(11, 11)$, an $\ell_2$ norm treats this as a total mismatch, seeing zero overlap between the two signals. It fails to recognize that the pixels are neighbors. Consequently, standard trackers often discard high-quality but slightly shifted predictions, leading to instability in dynamic environments.
Methodology: EMD-DF and the Beckmann Formulation
To address this, we propose Earth Mover’s Distance Dynamic Filtering (EMD-DF). The Earth Mover’s Distance (EMD), or Wasserstein metric, measures the "work" required to move mass from one configuration to another, naturally respecting the underlying geometry of the signal space.
Historically, EMD has been computationally prohibitive for real-time tracking, typically requiring $O(N^2)$ variables. Our core innovation is the application of the Beckmann formulation to compute EMD. By modeling signal changes as fluid flow through a vector field (a minimum flux problem), we reduce the computational complexity from $O(N^2)$ to $O(N)$. This linear scaling makes EMD-based tracking practical for high-dimensional, real-time applications.
Key Results
Computational Efficiency
As shown in the benchmarking results, the Beckmann formulation provides a massive reduction in runtime compared to general EMD solvers. For a $48 \times 48$ grid ($N=2304$), the Beckmann version is orders of magnitude faster while maintaining a negligible error profile ($10^{-3}$ RMSE). This efficiency allows EMD-DF to function as a causal tracker, updating estimates step-by-step as new data arrives.
Tracking Performance and Robustness
EMD-DF demonstrates superior robustness to "support mismatch." Because the algorithm understands distance, it can "pull" an estimate toward the ground truth even when the prediction and observation do not perfectly overlap.
In simulations involving traveling waves and moving targets, EMD-DF significantly outperforms standard Basis Pursuit (BPDN) methods. While BPDN performance degrades rapidly as target speed or noise levels increase, EMD-DF maintains a low relative MSE (rMSE), effectively recovering signal structures that traditional methods lose entirely.
Applications and Future Work
Beyond synthetic benchmarks, EMD-DF has shown promise in real-world neurophysiology. When applied to rat hippocampal tetrode recordings, the algorithm acts as a "spectral sharpener," revealing subtle oscillatory dynamics in the 5–10Hz range that are typically blurred in standard spectrograms.
Future research will focus on automating hyperparameter selection and extending the Beckmann formulation to non-Euclidean geometries, such as social networks or complex brain connectivity maps. While the current $O(N)$ complexity is a significant leap forward, further optimization using specialized first-order solvers may enable even higher-speed real-time video applications.
Summary updated