Revealing hidden dynamics from time-series data by ODENet

Pipi Hu, Wuyue Yang, Yi Zhu, Liu Hong

TL;DR

This paper introduces ODENet, a novel neural network architecture that embeds ordinary differential equation (ODE) solvers directly into a machine learning framework. ODENet excels at discovering interpretable, explicit ODE models from noisy, irregularly sampled time-series data, offering a powerful alternative to traditional black-box models.

What Problem Does This Paper Address?

Scientists and engineers constantly collect vast amounts of time-series data from diverse phenomena, from planetary motion to biological processes. A fundamental goal is to understand the underlying dynamics that govern these systems, often expressed as differential equations. However, real-world data is frequently noisy, contains missing points, and is sampled at irregular intervals, making it challenging to extract accurate and interpretable models. Traditional machine learning methods, while good at prediction, often produce "black-box" models that lack transparency. Conversely, methods focused on explicit equation discovery can struggle with noisy or irregular data. This paper aims to bridge this gap by developing a method that can reliably uncover interpretable ODEs from complex, real-world time-series data.

Methods

The core innovation is the ODENet architecture, which integrates numerical ODE solvers within a machine learning framework. Instead of directly learning a complex mapping, ODENet learns the parameters of an explicit ODE system. The process involves:

  • Data Batching: Randomly selecting segments of time-series data to form batches for training.
  • ODE Dynamics Assumption: Assuming that the data follows an autonomous system of ODEs of the form $\frac{dx}{dt} = f(x; \theta)$, where $f$ is a function of the state $x$ and unknown parameters $\theta$.
  • Basis Expansion: The function $f(x; \theta)$ is represented as a linear combination of basis functions (e.g., polynomials) with coefficients $\theta$. This allows for interpretable models.
  • Integral Method: ODENet uses an integral approach, where the predicted time trajectories are generated by numerically solving the ODEs starting from initial conditions. This is in contrast to differentiation-based methods.
  • Loss Function: A loss function is defined to minimize the difference between the predicted trajectories and the actual training data, incorporating an L1 regularization term to promote sparsity (fewer non-zero parameters) in the learned ODE coefficients.
  • Parameter Optimization: Standard machine learning optimization techniques, such as gradient descent with backpropagation, are used to tune the parameters $\theta$.

Datasets

The paper evaluates ODENet on several synthetic and real-world datasets:

  • Lotka-Volterra equations: Used to model predator-prey dynamics, tested with varying noise levels (1% and 10% white noise) and sampling time steps.
  • Lorenz equations: A classic example of chaotic systems, tested with 0.5% white noise.
  • Actin aggregation data: Real experimental data from Wegner et al. [35] studying actin aggregation under different conditions (KCl and MgCl2 buffers) and varying monomer concentrations. This dataset is characterized by irregular sampling and is used to compare purely data-driven and physics-informed models.

Key Insights and Ideas

  • Integration of ODE Solvers: Embedding ODE solvers directly into the neural network architecture is a powerful way to enforce physical constraints and promote interpretability.
  • Integral vs. Differential Methods: The paper argues that integral methods (like ODENet's approach) are more robust to noise and irregular sampling compared to differentiation-based methods.
  • Sparsity for Interpretability: Using L1 regularization encourages sparse ODE models, meaning only the most essential terms are retained, leading to simpler and more understandable equations.
  • Handling Real-World Data Challenges: ODENet demonstrates a remarkable ability to handle data that is noisy, irregularly sampled, and has large time steps, which are common issues in experimental and observational data.
  • Physics-Informed Modeling: The application to actin aggregation shows how ODENet can be used to learn both purely data-driven models and incorporate prior physical knowledge to derive more insightful models.

Key Results

  • Lotka-Volterra: ODENet accurately reproduced the correct ODE coefficients for over-damped, spiral, and limit-cycle dynamics, even with 10% white noise. It also showed robustness to large sampling time steps (up to $\Delta t = 0.5$).
  • Lorenz Equations: ODENet successfully captured the strange attractor of the Lorenz system, demonstrating its capability in modeling chaotic dynamics.
  • Actin Aggregation:
    • A purely data-driven model accurately fit the experimental data.
  • A physics-based model, incorporating a hidden variable for actin filament number concentration, provided a more interpretable model with clear physical interpretations for the learned coefficients, revealing distinctions between KCl and MgCl2 conditions.
  • Comparison with SINDy: In several cases, ODENet outperformed SINDy (a popular sparse identification method), particularly in identifying redundant terms and maintaining accuracy with larger time steps.

Limitations and Future Work

  • Stiffness: The paper acknowledges that stiffness can be an issue in numerical simulations, especially with higher-order polynomial bases. They suggest strategies like dividing long trajectories into shorter pieces and using adaptive/implicit ODE solvers.
  • Computational Cost: While ODENet is efficient, simulating for very long times can lead to large computational graphs.
  • Basis Function Selection: The choice of basis functions for $f(x; \theta)$ can be problem-dependent and tricky. Polynomials are used here, but other choices might be necessary for different systems.
  • Future Work: The authors envision extending ODENet to stochastic ODEs and PDEs for more comprehensive real-world modeling. They also suggest exploring new approaches to further enhance its capabilities.

Summary updated

BibTeX
@article{hu2020revealing,
  author = {Pipi Hu and Wuyue Yang and Yi Zhu and Liu Hong},
  title = {{Revealing hidden dynamics from time-series data by ODENet}},
  journal = {Journal of Computational Physics},
  year = {2020},
}
Figure