Centering Data Improves the Dynamic Mode Decomposition

Seth M. Hirsh, Kameron Decker Harris, J. Nathan Kutz, Bingni W. BruntonSIAM 2020 · DOI

Abstract

Dynamic mode decomposition (DMD) is a powerful data-driven method for modeling high-dimensional time series as spatiotemporal modes. While standard DMD assumes linear dynamics, many real-world systems exhibit fluctuations around non-zero equilibria. This paper demonstrates that centering data—subtracting the mean—is mathematically equivalent to incorporating an affine term into the DMD model. This simple preprocessing step ensures that DMD can accurately capture dynamics in affine systems, particularly those with full effective rank, where standard DMD typically fails.

Introduction: The Affine Challenge

Dynamic Mode Decomposition (DMD) has become a staple in data-driven science for extracting patterns from high-dimensional time series. Standard DMD assumes a linear relationship between snapshots: $x_{j+1} \approx Ax_j$. However, many physical systems operate as affine systems, modeled as $x_{j+1} = Ax_j + b$, where $b$ represents a constant bias or equilibrium point (e.g., a steady background flow in fluid dynamics). When applied to such systems, standard linear DMD often fails to separate the background from the dynamics, leading to inaccurate eigenvalues and modes.

Methodology: Centering as Affine Regression

The authors propose Centering as a robust solution. By subtracting the mean from the snapshot matrices before performing the SVD-based DMD algorithm, the model becomes inherently capable of handling affine biases.

Comparison of linear and affine regression on biased data.

As illustrated above, a standard linear fit (b) fails to capture the trend of data with a non-zero intercept. In contrast, an affine fit (a) or a linear fit on centered data (c) correctly identifies the underlying dynamics. The paper proves that centered DMD is mathematically equivalent to solving a regression problem with an explicit affine term $b$. Furthermore, the authors generalize this concept to "notch out" any known fixed frequency, such as 60 Hz electrical noise in biological recordings.

Key Insights: The "Full Rank" Trap

A critical finding is why standard DMD sometimes works for affine systems but often fails. In low-rank systems, standard DMD can "sacrifice" one of its few available eigenvectors to represent the constant background (with an eigenvalue of 1). However, if the system has full effective rank, there are no spare dimensions to represent the bias, and the linear model collapses. Centering bypasses this by handling the background separately, freeing the model to focus entirely on the dynamics.

Results and Theoretical Robustness

The theoretical contributions are summarized in the following table, which maps the success of DMD variants against different data generation processes.

Theoretical robustness of DMD variants across system types.

While standard DMD only "sometimes" succeeds for affine systems (depending on rank), Centered DMD is proven to work universally for both linear and affine cases. Numerical experiments on the Lorenz system, surveillance video, and ECoG brain recordings corroborate these findings. For instance, in brain recordings, generalized centering suppressed 60 Hz noise by an order of magnitude while preserving the underlying signal.

Conclusion

Centering data is a simple, computationally efficient, and theoretically grounded preprocessing step. It transforms DMD from a purely linear tool into one capable of modeling affine systems, making it more robust for real-world applications where equilibria are rarely zero. The authors recommend centering as a standard practice for all DMD implementations.

Summary updated

BibTeX
@inproceedings{hirsh2020centering,
  author = {Seth M. Hirsh and Kameron Decker Harris and J. Nathan Kutz and Bingni W. Brunton},
  title = {{Centering Data Improves the Dynamic Mode Decomposition}},
  booktitle = {SIAM},
  year = {2020},
  doi = {10.1137/19m1289881},
}
Figure