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 letter 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 Geometry-Blindness of Sparse Tracking
In signal processing, tracking sparse signals—where only a few components are active at once—is a common challenge. Applications range from tracking a moving target in a video to identifying dominant frequencies in neural recordings. Traditional tracking tools like the Kalman filter or Basis Pursuit Denoising (BPDN) typically use point-wise regularizers such as the $\ell_1$ or $\ell_2$ norms.
A significant limitation of these methods is that they are "geometry-blind." If a target moves from one pixel to an adjacent one, an $\ell_1$ regularizer perceives this as a total mismatch because the signal's support does not overlap between time steps. This lack of awareness regarding the spatial or frequency relationships between elements can lead to poor tracking performance, especially when targets move quickly or noise levels are high.
Methodology: Earth Mover’s Distance Dynamic Filtering (EMD-DF)
To address these limitations, the authors propose using the Earth Mover’s Distance (EMD) as a dynamics regularizer. EMD, also known as the Wasserstein metric, measures the "work" required to transform one distribution into another based on a ground distance. While EMD is ideal for tracking moving targets because it respects the underlying geometry, it has historically been computationally prohibitive, scaling quadratically ($O(N^2)$) with the signal size $N$.
The Beckmann Formulation
The core innovation of this work is the application of the Beckmann formulation to solve the EMD problem. Instead of calculating all possible transport paths between points, the Beckmann formulation treats EMD as a minimum flux problem of a fluid flowing through a vector field. This shift reduces the number of variables from $O(N^2)$ to $O(N)$, making EMD-based tracking computationally feasible for real-time applications.
As shown in the figure above, the Beckmann formulation provides a massive speedup over the general EMD approach. For a signal size of $N=2304$, the Beckmann version is orders of magnitude faster while maintaining high accuracy (RMSE $\approx 10^{-3}$).
Performance and Robustness
The proposed EMD-DF algorithm was evaluated against standard baselines using synthetic and real-world datasets.
Synthetic Target Tracking
In simulations of traveling waves and moving targets, EMD-DF demonstrated significant robustness to both noise and target speed. Unlike BPDN-based methods, which struggle when the signal support shifts rapidly, EMD-DF leverages its geometric awareness to maintain a low root-mean-square error (RMSE).
The results indicate that while BPDN-DF can actually perform worse than non-dynamic methods due to its point-wise regularizer, EMD-DF achieves nearly perfect recovery of moving wavefronts across a range of speeds and noise levels.
Real-World Neurophysiology
The algorithm was also applied to tetrode recordings from a rat hippocampus to track neural oscillations. EMD-DF produced time-frequency plots with significantly higher resolution than standard spectrograms, effectively eliminating "leakage" artifacts and providing a clearer view of activity in the 5–10Hz band. This "spectral sharpening" is a direct result of the algorithm's ability to leverage the ordered nature of frequencies.
Conclusion and Future Work
By reformulating EMD-based tracking through the Beckmann lens, this research breaks the complexity barrier that previously limited the use of optimal transport metrics in signal processing. EMD-DF offers a causal, geometry-aware solution suitable for online applications like closed-loop brain-machine interfaces.
Future work may involve extending the Beckmann formulation beyond Euclidean ground costs to more abstract graph-based geometries and developing automated hyperparameter tuning methods to enhance the algorithm's practical deployment in diverse real-time environments.
Summary updated