Abstract
Many physical processes display complex high-dimensional time-varying behavior, from global weather patterns to brain activity. An outstanding challenge is to express high-dimensional data in terms of a dynamical model that reveals their spatiotemporal structure. Dynamic Mode Decomposition (DMD) is a means to achieve this goal, allowing the identification of key spatiotemporal modes through the diagonalization of a finite-dimensional approximation of the Koopman operator. However, DMD methods apply best to time-translationally invariant or stationary data, while in many typical cases, dynamics vary across time and conditions. To capture this temporal evolution, we developed a method, Non-Stationary Dynamic Mode Decomposition (NS-DMD), that generalizes DMD by fitting global modulations of drifting spatiotemporal modes. This method accurately predicts the temporal evolution of modes in simulations and recovers previously known results from simpler methods. To demonstrate its properties, the method is applied to multi-channel recordings from an awake behaving non-human primate performing a cognitive task.
Introduction
In fields ranging from fluid dynamics to neuroscience, researchers often seek to represent high-dimensional data as a sum of "modes"—spatiotemporal patterns that evolve over time. Dynamic Mode Decomposition (DMD) has become a popular tool for this task, as it approximates the Koopman operator to identify linear structures within non-linear systems. However, standard DMD has a significant limitation: it assumes stationarity, expecting the underlying rules of the system to remain constant throughout the observation period.
In the real world, systems are rarely stationary. Brain activity shifts as a subject learns a task, and global weather patterns are punctuated by seasonal shifts and irregular events like El Niño. When applied to these non-stationary datasets, standard DMD produces a "blurred" average that fails to capture the true temporal evolution of the system. To address this, we propose Non-Stationary Dynamic Mode Decomposition (NS-DMD), a framework that extends standard DMD to capture systems where dynamics change over time.
Methodology
NS-DMD builds upon Optimized DMD (OPT-DMD) but introduces a multi-step pipeline designed to handle temporal drift and global modulations.
The NS-DMD Pipeline
- Windowing: The data is split into short, overlapping time windows. Within these small slices, the system is assumed to be "approximately stationary," allowing for local analysis.
- Local Fitting: OPT-DMD is applied to each window to identify local spatiotemporal modes.
- Mode Stitching: The algorithm uses a similarity metric—comparing frequency, spatial amplitude, and phase—to group similar modes across consecutive windows. This allows a single "global" mode to drift slightly in frequency or shape over time, reflecting the natural evolution of the system.
- Global Modulation: Once modes are grouped, gradient descent is used to fit a global amplitude function, $f_k(t)$, for each mode. This function determines the temporal envelope of the pattern, capturing when it is active and how its intensity varies.
- Feature Selection: To prevent overfitting and ensure model parsimony, a pruning step retains only the most representative modes based on their contribution to reducing reconstruction error.
Experimental Results
The authors validated NS-DMD across synthetic simulations, electrophysiological brain data, and climate records.
Synthetic Simulations
In ground-truth datasets where signals switched on/off or frequencies drifted linearly, NS-DMD achieved a reconstruction error of ~0.1, matching the added noise. In contrast, standard OPT-DMD was significantly less accurate (~0.12) and failed to visually resolve the distinct temporal envelopes of the signals.
Neural and Climate Applications
In multi-channel recordings from a macaque monkey performing a cognitive task, NS-DMD identified specific 19-21 Hz modes in the prefrontal cortex and hippocampus. These modes were significantly stronger during "incorrect" trials compared to "correct" ones, particularly one second after feedback, providing a potential biomarker for error processing.
On a global scale, the method was applied to Sea Surface Temperature (SST) data. NS-DMD successfully separated the dominant 1-year seasonal cycle from the lower-frequency cycles (0.12–0.18 cycles/year) associated with El Niño and La Niña, accurately pinpointing the massive 1998 El Niño event.
Discussion
A key insight of NS-DMD is its ability to capture "drift." Unlike previous multi-resolution DMD approaches that simply vary window sizes, NS-DMD explicitly allows the modes themselves to evolve. This is crucial for biological systems where a neural oscillator might slightly speed up or slow down. Furthermore, by preserving phase information during the stitching process, NS-DMD can identify "phase resets"—moments where a signal's timing shifts abruptly in response to external events.
While NS-DMD offers superior resolution, it is computationally intensive and sensitive to hyperparameters such as window size and similarity thresholds. Future work will focus on automating hyperparameter selection and integrating uncertainty estimates via bagging (BOP-DMD) to make the tool more accessible and robust for non-experts.
Conclusion
NS-DMD generalizes DMD by fitting global modulations of drifting spatiotemporal modes. By simultaneously analyzing spatial and temporal features, it provides a more accurate and nuanced representation of non-stationary, high-dimensional systems than traditional stationary methods.
Summary updated