Koopman-based Deep Learning for Nonlinear System Estimation

Mingyu Chen, Zexin Sun, Mingyu Chen 0012, John Baillieul

TL;DR

This paper introduces a novel data-driven approach to estimate and predict the behavior of complex nonlinear systems. By combining Koopman operator theory with deep reinforcement learning, the method learns a linear representation of the nonlinear dynamics and uses a learned "correction" term to account for unmodeled behaviors, achieving accurate state estimation with improved generalization capabilities.

What Problem Does This Paper Address?

Many real-world systems, from fluid dynamics to biological processes, are governed by complex nonlinear differential equations. Accurately modeling and predicting these systems is a significant challenge due to their inherent complexity, lack of analytical solutions, and the presence of unmodeled dynamics or measurement noise. Traditional methods often struggle with high-dimensional state spaces or require extensive re-training for new system variations. This paper aims to develop a robust and adaptable method for estimating the states of such nonlinear systems using data alone.

Methods

The paper proposes a two-phase approach:

  1. EDMD-based Linear Approximation: They leverage Extended Dynamic Mode Decomposition (EDMD) to learn a linear embedding of the nonlinear system. EDMD uses singular value decomposition on data-derived matrices to find a reduced-order linear representation that captures dominant dynamics. This is a standard technique for approximating Koopman operators.
  2. Deep Reinforcement Learning for Correction: To compensate for the inaccuracies of the linear EDMD model and unmodeled dynamics, they employ a Deep Deterministic Policy Gradient (DDPG) algorithm. This reinforcement learning agent learns a "correction" term (a residual error) that, when added to the linear prediction, improves the accuracy of the state estimation. The state for the RL agent includes both the estimated and measured system states to ensure it learns to correct for discrepancies.

Additionally, the paper explores transfer learning to generalize the learned estimator to new, but diffeomorphically related, nonlinear systems. This involves learning a mapping between the original and transformed system's state spaces, allowing the use of a pre-trained estimator as an initialization for a new system, significantly reducing training time and computational cost.

Datasets

The paper uses synthetic data generated from:

  • A toy nonlinear system (Equation 3 in the paper).
  • The well-known Van der Pol oscillator.

For training, they generate 4000 data points from 20 trajectories for the toy system and 20 trajectories for the Van der Pol oscillator. Testing data consists of three length-20 trajectories for the toy system and one test trajectory for the Van der Pol oscillator.

Key Insights and Ideas

  • Koopman Theory as a Bridge: Koopman operator theory provides a powerful framework to linearize nonlinear dynamics in a higher-dimensional space, making them amenable to linear system analysis and prediction.
  • Reinforcement Learning for Residuals: Directly learning the nonlinear dynamics is hard. Instead, learning a correction to a simpler linear model (from EDMD) using RL is more tractable and effective. This "correction" term acts as a learned compensation for unmodeled dynamics.
  • Transfer Learning for Efficiency: For systems related by diffeomorphisms, a pre-trained estimator can be effectively transferred, drastically reducing the need for extensive retraining and computational resources. This is a significant practical advantage.
  • Interpretable Components: The EDMD part provides interpretable linear components (Koopman modes and eigenvalues), while the RL part learns a functional correction, offering a blend of interpretability and predictive power.

Key Results

  • Improved Accuracy: The proposed EDMD + DDPG method achieved significantly lower mean squared state estimation errors compared to EDMD alone or standalone RL on the toy system (0.137 vs. 2.289 and 3.096, respectively).
  • Faster Convergence: The RL-based estimator converges to optimal actions much faster than a standalone RL approach, as it leverages the underlying linear structure provided by EDMD.
  • Effective Transfer Learning: For a diffeomorphic nonlinear system, the transferred estimator achieved a mean squared error of 0.0332, significantly outperforming a newly trained estimator (MSE of 0.0952) and drastically reducing computational cost (6.15 seconds vs. 344 seconds on an Apple M2 chip).
  • Robustness to Noise: The performance of the estimator on the Van der Pol oscillator was largely unaffected by the addition of Gaussian noise, indicating robustness.

Limitations and Future Work

  • Fully Observed Systems: The current framework is designed for fully observed deterministic autonomous systems.
  • Future Work: The authors plan to generalize the framework to systems with external inputs and partially observed systems, including stochastic scenarios. They also suggest that the EDMD component could be replaced by other Koopman methods capable of extracting dominant features.

Summary updated

BibTeX
@inproceedings{chen2024koopman,
  author = {Mingyu Chen and Zexin Sun and Mingyu Chen and John Baillieul},
  title = {{Koopman-based Deep Learning for Nonlinear System Estimation}},
  booktitle = {CDC},
  year = {2024},
  doi = {10.1109/cdc56724.2024.10886796},
}
Figure