Learning interpretable continuous-time models of latent stochastic dynamical systems

Lea Duncker, Gergo Bohner, Julien Boussard, Maneesh Sahani

Abstract

Understanding the underlying mechanisms of complex, noisy systems—from neural circuits to chemical reactions—requires models that are both predictive and interpretable. This paper introduces a semi-parametric framework for learning latent, continuous-time stochastic differential equations (SDEs). By integrating Gaussian Processes (GPs) with dynamical systems theory, the method recovers "dynamical portraits" (fixed points and stability) directly from noisy, irregularly sampled data.

Introduction

Many natural systems are best described by continuous-time dynamics. However, researchers often only have access to noisy, high-dimensional "snapshots" taken at irregular intervals. While modern "black-box" tools like Recurrent Neural Networks (RNNs) excel at predicting future states, they offer little insight into the system's fundamental structure. A scientist needs to know the equilibrium points and their stability to truly understand a system. Extracting these features from an RNN typically requires complex post-hoc analysis. This work addresses this gap by proposing a model that is interpretable by design.

Methodology: Latent SDEs with GP Priors

The authors propose a latent SDE model where the deterministic "drift" function is modeled using a Gaussian Process. The core innovation lies in conditioning the GP prior on learnable physical constraints:

  1. Fixed Points and Jacobians: The model explicitly includes the locations of fixed points and their local Jacobian matrices as parameters. This allows the model to learn the "flow" of the system directly.
  2. Variational Inference: To infer the hidden (latent) state path between noisy observations, the framework employs a Variational Bayes algorithm, solving coupled ordinary differential equations (ODEs) forward and backward in time.
  3. Sparsity and Pruning: To maintain computational efficiency, the model uses "inducing points." Furthermore, an automatic pruning mechanism removes unnecessary fixed points during training, allowing the model to discover the true complexity of the system's equilibria.
The learned drift function f(x) (blue) accurately recovers the true dynamics (grey), identifying fixed points (dots) and their local stability (lines).

Key Insights

By baking interpretability into the prior, the model's internal state becomes a direct representation of the system's dynamics. This approach provides several advantages:

  • Continuous-Time Flexibility: The model handles unevenly sampled data naturally without requiring interpolation.
  • Uncertainty Quantification: As a Bayesian method, it provides confidence intervals for both the inferred latent paths and the discovered fixed points.
  • Observation Agnostic: It can be adapted to various data types, such as Poisson processes for neural spikes or Gaussian noise for sensor data.

Experimental Results

The framework was validated on several benchmarks, including double-well dynamics and neural population activity. In these tests, the model successfully identified stable and unstable equilibria and recovered qualitative flow fields from noisy spike trains.

Comprehensive inference results: (A) noisy observations, (B) inferred latent states, (C) the recovered dynamical portrait, and (D) accuracy of learned parameters.

Conclusion

This framework represents a significant step toward making machine learning models for dynamical systems more transparent to scientists. While the current implementation is computationally intensive due to the ODE solvers and sensitive to initialization, it provides a robust "map" of hidden dynamics. Future work will focus on scaling to higher-dimensional latent spaces and applying the method to real-world experimental datasets in systems biology and physics.

Summary updated

BibTeX
@inproceedings{duncker2019learning,
  author = {Lea Duncker and Gergo Bohner and Julien Boussard and Maneesh Sahani},
  title = {{Learning interpretable continuous-time models of latent stochastic dynamical systems}},
  booktitle = {International Conference on Machine Learning},
  year = {2019},
}
Figure