Inferring the Structure of Ordinary Differential Equations

Juliane Weilbach, Sebastian Gerwinn, Christian Weilbach, Melih KandemirarXiv 2021

Abstract

Researchers have extended the AI Feynman symbolic regression tool to dynamical systems, creating DynAIFeynman. This approach identifies the underlying Ordinary Differential Equations (ODEs) of a system from trajectory data. By approximating derivatives and employing recursive simplification, DynAIFeynman achieves superior accuracy and interpretability compared to traditional sparse identification (SINDy) and genetic algorithm (GA) baselines on benchmarks such as the Lotka-Volterra and Cart-Pole models.

Introduction

In scientific modeling, the ability to derive the "rules of the game" from data is as important as predictive accuracy. While deep learning models excel at forecasting, they often function as "black boxes," providing little insight into the physical mechanisms at play. Symbolic Regression (SR) offers a path toward interpretability by searching for human-readable mathematical formulas. However, current SR methods face significant hurdles: Genetic Algorithms often produce overly complex results, while Sparse Identification (SINDy) relies on a predefined library of functions, failing if the true governing terms are missing.

Methodology

DynAIFeynman addresses these challenges by extending the AI Feynman algorithm into the temporal domain. The core engine utilizes a recursive strategy, employing a neural network to smooth data and identifying physical properties like symmetry or periodicity to decompose complex symbolic problems.

To handle dynamics ($\dot{x} = f(x)$), the authors approximate time derivatives from state observations using finite differences. These derivatives serve as labels for the AI Feynman pipeline. Unlike library-based methods, DynAIFeynman searches through a "grammar" of mathematical operations, allowing it to discover nested functions and complex interactions. Furthermore, the algorithm employs Pareto optimization to balance accuracy against description length, ensuring the discovered equations remain physically plausible and concise.

Experimental Results

The method was evaluated on three dynamical systems: the Lotka-Volterra predator-prey model, a nonlinear Simple Pendulum, and the multi-variable Cart-Pole system. Data was generated using high-precision numerical solvers in Julia to provide ground-truth trajectories.

Trajectory reconstruction for Lotka-Volterra (left) and Cart-Pole (right) systems, comparing DynAIFeynman to benchmarks.

As shown in Figure 3, DynAIFeynman tracks the ground-truth trajectories more closely than SINDy or GA-based methods, particularly in the complex Cart-Pole environment where other methods diverge significantly over time.

Quantitatively, DynAIFeynman demonstrated superior performance on the Lotka-Volterra and Cart-Pole benchmarks. On the Lotka-Volterra system, it achieved an RMSE of 0.19, outperforming SINDy (0.24) and the GA baseline (2.13). On the challenging Cart-Pole system, DynAIFeynman maintained a lower error rate (1.23 RMSE) compared to SINDy (1.92 RMSE), proving more robust in handling multi-variable interactions.

Comparative performance (RMSE) of DynAIFeynman, GA-Baseline, and SINDy across three dynamical benchmarks.

Conclusion

DynAIFeynman represents a significant step toward automated discovery of physical laws in dynamical systems. By moving beyond fixed libraries to a grammar-based search, it recovers structures that closely match ground-truth physics. While challenges remain regarding noise sensitivity and the "complexity wall" of high-dimensional systems, the results suggest that symbolic regression can effectively bridge the gap between data-driven prediction and scientific understanding.

Summary updated

BibTeX
@misc{weilbach2021inferring,
  author = {Juliane Weilbach and Sebastian Gerwinn and Christian Weilbach and Melih Kandemir},
  title = {{Inferring the Structure of Ordinary Differential Equations}},
  year = {2021},
  eprint = {2107.07345},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2107.07345},
}
Figure