Recognition Models to Learn Dynamics from Partial Observations with Neural ODEs

Mona Buisson-Fenet, Valéry Morgenthaler, Sebastian Trimpe, Florent Di Meglio

Introduction

Learning the underlying dynamics of physical systems from experimental data is a cornerstone of modern engineering and science. Neural Ordinary Differential Equations (NODEs) have emerged as a powerful tool for modeling these continuous-time processes. However, a significant challenge remains: partial observability. In most real-world applications, we cannot measure the full state of a system. For instance, while we might observe the joint angles of a robotic limb, internal forces or precise velocities often remain hidden. Standard NODEs struggle in these scenarios because they require an accurate initial state ($x_0$) to begin integration. While black-box encoders like Recurrent Neural Networks (RNNs) are often used to estimate these initial conditions, they frequently lack physical consistency and fail to generalize beyond the training distribution.

Methodology: Structured NODEs and KKL Observers

To address these limitations, this work proposes a framework that integrates physical priors into the NODE architecture and utilizes theoretically grounded recognition models.

Structured Neural ODEs

Instead of treating the system dynamics as a complete black box, the authors introduce Structured NODEs. These models incorporate physical knowledge along a spectrum from regularizing priors (adding penalty terms to the cost function) to structural priors (hard-coding constraints, such as Hamiltonian or Lagrangian structures, directly into the optimization problem).

KKL-based Recognition Models

The core innovation lies in the use of Kazantzis-Kravaris/Luenberger (KKL) observers from nonlinear control theory as recognition models. Unlike standard neural encoders, a KKL observer acts as a linear filter that processes a window of partial measurements. Its mathematical properties ensure that it "forgets" initial estimation errors and converges to a value that uniquely maps to the system's full latent state.

The KKL-based recognition model processes a history of measurements to estimate the initial latent state $x(t_0)$, which then initializes the Neural ODE solver.

The training process is end-to-end: the recognition model identifies the starting state by running backward over a short observation window, and the NODE predicts future evolution. This approach is compared against "Direct" methods (concatenating observations) and "RNN+" methods (using Gated Recurrent Units).

Experimental Results

The framework was evaluated on three numerical benchmarks—the Earthquake model, the FitzHugh-Nagumo neuron model, and the Van der Pol oscillator—as well as real-world robotic exoskeleton data.

Performance on Synthetic Benchmarks

The KKL-based approach consistently outperformed baseline methods across all synthetic tasks. As shown in the figure below, the KKL recognition model achieved significantly lower Root Mean Square Error (RMSE) than both Direct and RNN+ methods.

Comparison of RMSE across three benchmarks: (a) Earthquake, (b) FitzHugh-Nagumo, and (c) Van der Pol. The KKL-based recognition model consistently achieves the lowest error.

Key findings include:

  • Robustness to Noise: The KKL observer exhibits a "threshold effect"—once the observation window is long enough for convergence, the error drops and remains stable even in the presence of noise.
  • Generalization: By enforcing physical structures (like Hamiltonian dynamics), the models generalized better to unseen frequencies and conditions.

Real-World Application: Robotic Exoskeleton

On data from a Wandercraft robotic exoskeleton, the Structured NODE identified unmodeled mechanical deformations (nonlinear spring-like dynamics) using only hip angles and thigh velocities. The proposed method significantly outperformed the linear prior models typically used by engineers, providing a much more accurate tool for control and monitoring.

Conclusion

By bridging the gap between control theory and deep learning, this research provides a robust solution for learning dynamics under partial observability. The KKL-based recognition model offers a mathematically sound alternative to black-box encoders, leading to improved accuracy, better training stability, and enhanced interpretability. Future work will focus on streamlining hyperparameter tuning for the observer gain matrix and extending the framework to capture spatial dependencies in Partial Differential Equations (PDEs).

Summary updated

BibTeX
@article{buissonfenet2023recognition,
  author = {Mona Buisson-Fenet and Valéry Morgenthaler and Sebastian Trimpe and Florent Di Meglio},
  title = {{Recognition Models to Learn Dynamics from Partial Observations with Neural ODEs}},
  journal = {Trans. Mach. Learn. Res.},
  year = {2023},
  url = {https://openreview.net/forum?id=EJP6fPVqoY},
}
Figure