[Paper Review] PyDMD: A Python package for robust dynamic mode decomposition
PyDMD 1.0 provides a Python package implementing DMD and a suite of robust variants (e.g., BOP-DMD, CoSTS, parametric DMD, randomized DMD, physics-informed DMD) with preprocessing and tutorials to handle noisy, multiscale, parameterized, high-dimensional, or nonlinear dynamics.
The dynamic mode decomposition (DMD) is a simple and powerful data-driven modeling technique that is capable of revealing coherent spatiotemporal patterns from data. The method's linear algebra-based formulation additionally allows for a variety of optimizations and extensions that make the algorithm practical and viable for real-world data analysis. As a result, DMD has grown to become a leading method for dynamical system analysis across multiple scientific disciplines. PyDMD is a Python package that implements DMD and several of its major variants. In this work, we expand the PyDMD package to include a number of cutting-edge DMD methods and tools specifically designed to handle dynamics that are noisy, multiscale, parameterized, prohibitively high-dimensional, or even strongly nonlinear. We provide a complete overview of the features available in PyDMD as of version 1.0, along with a brief overview of the theory behind the DMD algorithm, information for developers, tips regarding practical DMD usage, and introductory coding examples. All code is available at https://github.com/PyDMD/PyDMD .
Motivation & Objective
- Motivate and enable data-driven analysis of dynamical systems via DMD across disciplines.
- Extend PyDMD to include robust variants that handle noise, multiscale dynamics, parameterization, and nonlinearities.
- Provide a modular, testable Python toolkit with documentation and tutorials to facilitate real-world data modeling.
- Show practical guidance for choosing DMD methods and applying time-delay preprocessing in PyDMD.
Proposed method
- Present the mathematical background of DMD and its variants.
- Describe PyDMD’s modular architecture with a DMDBase class that underpins most modules.
- Explain the Hankel preprocessing (time-delay coordinates) to reveal latent structure.
- Introduce robust DMD variants such as optimized DMD (including BOP-DMD) and eigenvalue constraints.
- Discuss additional extensions like CoSTS, parametric DMD, randomized DMD, physics-informed DMD, and HAVOK.
- Provide practical usage patterns and visualization tools to interpret DMD diagnostics.
Experimental results
Research questions
- RQ1Can PyDMD reliably recover coherent spatiotemporal patterns from noisy or real-world data using robust DMD variants?
- RQ2How does time-delay preprocessing affect the apparent rank and recoverability of DMD modes in practice?
- RQ3Which DMD variant is most appropriate for a given data regime (noise level, multiscale dynamics, parameterization, or nonlinearities) and how should users select it?
- RQ4What are practical guidelines for applying DMD in real-world datasets using PyDMD (e.g., preprocessing, parameter choices, validation)?
Key findings
- Version 1.0 of PyDMD adds state-of-the-art DMD methods designed for noisy, multiscale, parameterized, high-dimensional, and nonlinear dynamics.
- Time-delay (Hankel) preprocessing can increase the effective rank of real-valued data and reveal latent spatial modes.
- Bagging-optimized DMD (BOP-DMD) and eigenvalue constraints provide robustness and noise suppression for practical data.
- The package is modular, open-source, well-documented, with tutorials and plotting tools to facilitate adoption.
- Examples demonstrate recovering distinct spatiotemporal modes and corresponding frequencies from synthetic data, illustrating the practical workflow.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.