Continuous Forecasting via Neural Eigen Decomposition of Stochastic Dynamics

Stav Belogolovsky, Ido Greenberg, Danny Eytan, Shie MannorarXiv 2022

Introduction

Predicting physiological states in clinical settings presents a significant challenge for traditional machine learning models. Medical data is inherently irregular, with observations occurring at sporadic intervals, and is often characterized by high levels of noise and sparsity. Existing approaches, such as Neural Ordinary Differential Equations (Neural-ODEs) and Recurrent Neural Networks (RNNs), struggle with these conditions. Neural-ODEs are computationally intensive and data-hungry, while RNNs typically require fixed time steps, making them ill-suited for continuous-time modeling. Furthermore, many models fail to generalize when treatment policies—the "control signals"—change, as they often conflate the effects of intervention with underlying patient dynamics.

The NESDE Framework

To address these limitations, we introduce Neural Eigen-SDE (NESDE), a novel algorithm designed for forecasting stochastic processes at irregular intervals. NESDE shifts away from complex, non-linear differential equations, instead utilizing a piecewise linear Stochastic Differential Equation (SDE) framework.

Architecture of the NESDE framework, highlighting the interaction between the Hypernet, Eigen-SDE solver, and observation filter.

The core innovation lies in its spectral representation. A secondary neural network, or "Hypernet," predicts the eigenvalues and eigenvectors of the system's dynamics based on patient context (e.g., age, weight). This allows the SDE to be solved analytically in closed-form, bypassing the need for slow numerical solvers and significantly increasing inference speed. By assuming the system is linear over short intervals, the model provides a robust inductive bias that resists overfitting to noise while maintaining sufficient expressiveness. Additionally, NESDE decouples control signals from state observations, ensuring it learns the true effect of interventions like drug dosages.

Experimental Validation

The performance of NESDE was evaluated on both synthetic benchmarks and real-world medical datasets:

  • Synthetic Benchmarks: 1D signals with periodic and decaying dynamics were used to test out-of-distribution (OOD) control generalization.
  • MIMIC-IV Clinical Data: The model was tasked with predicting blood clotting time (aPTT) for Unfractionated Heparin (UH) dosing and antibiotic concentrations for Vancomycin (VM) dosing in ICU patients.
  • Medical Gym Environments: The learned dynamics were used to create simulation environments for reinforcement learning research in healthcare.

Key Results

NESDE consistently outperformed state-of-the-art baselines, including GRU-ODE-Bayes and Continuous Recurrent Units (CRU), across all tasks.

Comparison of NESDE against baselines across varying observation frequencies and training set sizes.

As shown in the results, NESDE achieves significantly lower Mean Squared Error (MSE) than its competitors. Notably, the model demonstrates exceptional sample efficiency, reaching peak performance with as few as 100 training trajectories. In OOD scenarios where the control policy was altered during testing, NESDE maintained stable error rates, whereas baseline models saw their performance degrade sharply. Furthermore, the use of eigenvalues provides a degree of interpretability; for instance, imaginary parts of the predicted eigenvalues can represent physiological periodicity like heartbeats, while negative real parts indicate stable, decaying processes.

Conclusion and Future Work

NESDE offers a robust, efficient, and interpretable solution for continuous-time forecasting in noisy environments. By leveraging piecewise linearity and spectral decomposition, it overcomes the data-hunger and computational costs of previous continuous-time models. While the piecewise linear assumption may have an expressiveness ceiling for highly chaotic systems, its performance in clinical scenarios is superior. Future research will explore the application of NESDE as a "world model" for reinforcement learning agents to optimize real-time drug dosing.

Summary updated

BibTeX
@misc{belogolovsky2022continuous,
  author = {Stav Belogolovsky and Ido Greenberg and Danny Eytan and Shie Mannor},
  title = {{Continuous Forecasting via Neural Eigen Decomposition of Stochastic Dynamics}},
  year = {2022},
  eprint = {2202.00117},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2202.00117},
}
Figure