Skip to main content
QUICK REVIEW

[Paper Review] A Probabilistic State Space Model for Joint Inference from Differential Equations and Data

Jonathan Schmidt, Nicholas Krämer|arXiv (Cornell University)|Mar 18, 2021
Gaussian Processes and Bayesian InferenceComputer Science4 citations
TL;DR

This paper proposes a probabilistic state space model that enables joint Bayesian inference over both the solution of an ordinary differential equation (ODE) and an unknown time-varying latent force (e.g., contact rate in an SIRD model) using a single forward pass of an extended Kalman filter/smoother. By integrating probabilistic ODE solvers with latent force models via Bayesian filtering, the method achieves linear computational complexity and accurately captures uncertainty from data, numerical error, and model structure, as demonstrated on real COVID-19 case data.

ABSTRACT

Mechanistic models with differential equations are a key component of scientific applications of machine learning. Inference in such models is usually computationally demanding, because it involves repeatedly solving the differential equation. The main problem here is that the numerical solver is hard to combine with standard inference techniques. Recent work in probabilistic numerics has developed a new class of solvers for ordinary differential equations (ODEs) that phrase the solution process directly in terms of Bayesian filtering. We here show that this allows such methods to be combined very directly, with conceptual and numerical ease, with latent force models in the ODE itself. It then becomes possible to perform approximate Bayesian inference on the latent force as well as the ODE solution in a single, linear complexity pass of an extended Kalman filter / smoother - that is, at the cost of computing a single ODE solution. We demonstrate the expressiveness and performance of the algorithm by training, among others, a non-parametric SIRD model on data from the COVID-19 outbreak.

Motivation & Objective

  • To develop a computationally efficient method for joint inference over ODE solutions and latent forces governing the ODE dynamics.
  • To overcome the high computational cost of iterative ODE solving in standard inference pipelines, such as MCMC or optimization loops.
  • To unify mechanistic knowledge (via ODEs) and observational data within a single Bayesian filtering and smoothing framework.
  • To enable uncertainty quantification across data, numerical discretization, and epistemic uncertainty in the latent force.
  • To demonstrate the method’s expressiveness and efficiency on real-world epidemiological data, including extrapolation and policy impact modeling.

Proposed method

  • The method models the ODE solution and latent force as a joint state-space process, where the latent force is represented as a Gaussian process with a non-Markovian prior.
  • It employs a probabilistic ODE solver framed as an extended Kalman filter, which treats the ODE integration as a Bayesian filtering problem.
  • The latent force is incorporated into the ODE vector field as a non-parametric function, with its dynamics modeled through a state-space representation involving a set of basis functions and a state vector.
  • Observations are modeled as noisy, i.i.d. Gaussian measurements of the ODE state, with a log-transformation applied to ensure positivity of counts in the SIRD model.
  • The joint posterior over the ODE solution and latent force is computed via a single forward pass of the extended Kalman smoother, avoiding iterative forward simulations.
  • The approach leverages the fact that probabilistic ODE solvers and latent force inference can be unified under a single Bayesian filtering framework, enabling linear-time inference.

Experimental results

Research questions

  • RQ1Can probabilistic ODE solvers be seamlessly combined with non-parametric latent force models in a unified Bayesian inference framework?
  • RQ2Does a single forward pass of an extended Kalman filter/smoother enable accurate joint inference over ODE solutions and latent forces at linear computational cost?
  • RQ3How well can the method capture uncertainty from data, numerical error, and epistemic uncertainty in the latent force, especially in low-data regimes?
  • RQ4Can the method reconstruct time-varying contact rates in epidemic models and produce realistic extrapolations, even under policy changes?
  • RQ5How does the method compare in accuracy and efficiency to standard iterative inference methods like MCMC or optimization-based approaches?

Key findings

  • The method achieves joint inference over ODE solutions and latent forces with computational complexity equivalent to solving the ODE once, significantly reducing cost compared to iterative methods.
  • The posterior credible intervals for the contact rate remain strictly positive due to the log-space transformation of case counts, ensuring physical consistency.
  • In regions of low case counts, uncertainty in the inferred contact rate increases, reflecting data sparsity, while it decreases during periods of strict governmental measures, indicating higher confidence.
  • The reconstructed dynamics closely match observed data points, with the mean of the inferred contact rate closely aligning with estimates from a previous experiment using a different model setup.
  • The extrapolation results are more realistic than in linear-space models, as the log-normal noise model prevents negative case counts and reflects the inherent uncertainty in real-world data.
  • The method faithfully captures multiple sources of uncertainty: from observational noise, numerical discretization error, and epistemic uncertainty in the latent force, as demonstrated in the SIRD model application.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.