GRU-ODE-Bayes: Continuous Modeling of Sporadically-Observed Time Series

Edward De Brouwer, Jaak Simm, Adam Arany, Yves Moreau

Introduction

In the real world, data rarely arrives in neat, fixed intervals. Consider a patient in an Intensive Care Unit (ICU): heart rate might be monitored every second, but blood tests happen every few hours, and some measurements might be skipped entirely. This phenomenon is known as sporadic observation.

Traditional Recurrent Neural Networks (RNNs) struggle with this type of data because they inherently assume discrete, regular time steps. Common workarounds—like "binning" data into fixed windows or imputing missing values—often introduce bias or lose fine-grained temporal information. While the recent "Neural ODE" movement offered a way to model continuous dynamics, previous attempts mostly used Ordinary Differential Equations (ODEs) for generating data (decoders) rather than processing irregular inputs in a tightly coupled way.

GRU-ODE-Bayes is a novel framework designed specifically for modeling these "sporadic" time series. By interleaving a continuous-time Gated Recurrent Unit (GRU-ODE) with a Bayesian update network, the model treats time as truly continuous, outperforming existing state-of-the-art methods in healthcare and climate forecasting.

Proposed Methodology

The authors propose a dual-mode system that seamlessly switches between propagation (evolving over time) and updating (incorporating new data):

Continuous propagation and discrete updates in GRU-ODE-Bayes
  1. GRU-ODE (The Propagation Step): The authors derive a continuous-time version of the standard GRU. By transforming the discrete GRU update into a differential equation ($dh/dt = (1 - z(t)) \odot (g(t) - h(t))$), the hidden state $h$ evolves smoothly between observations. This allows the model to naturally "bridge the gap" over any arbitrary time interval.
  2. GRU-Bayes (The Update Step): When a new observation arrives, the model performs a discrete "jump" in the hidden state. This module is designed to mimic a Bayesian update, incorporating the new evidence to refine the model’s internal representation of the system's state.
  3. The Continuity Prior: Because the hidden state is governed by an ODE, the model inherently assumes the underlying process is continuous. This acts as a powerful "inductive bias," helping the model perform well even when data is scarce.
  4. Hybrid Loss Function: The model is trained using a two-part loss: one that minimizes the prediction error before seeing an observation ($Loss_{pre}$), and a second KL-divergence based loss ($Loss_{post}$) that ensures the hidden state update behaves like proper Bayesian inference.

Datasets and Evaluation

The model was rigorously evaluated on three distinct types of data:

  • Synthetic SDEs: Data generated from a 2D Ornstein-Uhlenbeck process to test if the model could capture complex correlations between variables.
  • MIMIC-III (Healthcare): A massive real-world dataset of clinical records. The authors used 96 longitudinal variables from over 21,000 patients to predict future health states.
  • USHCN (Climate): Daily meteorological data (temperature, precipitation, snow) from 1,114 stations over 150 years, subsampled to create sporadic observations.

Key Insights and Results

Interleaving vs. Decoupling

Unlike previous Neural ODE architectures that separate the "encoder" from the "ODE decoder," GRU-ODE-Bayes interleaves them. This allows incoming data to immediately "steer" the continuous dynamics of the model.

The Power of Jumps and Correlation Capture

The "jump" mechanism allows the model to instantly update its confidence and internal state. For example, if two variables are highly correlated, observing a spike in one allows the model to immediately "infer" a jump in the other, even if the second variable wasn't measured.

Comparison of GRU-ODE-Bayes and NeuralODE-VAE on correlated data

As seen in the synthetic data experiments, the model successfully learned that a measurement in one dimension (blue) should reduce the variance and update the trajectory of a correlated but unobserved dimension (green). This exact representation of Fokker-Planck dynamics gives it a distinct advantage over models like NeuralODE-VAE.

State-of-the-Art Performance

  • Overall Accuracy: GRU-ODE-Bayes consistently achieved lower Mean Squared Error (MSE) and Negative Log-Likelihood (NegLL) than competitors like GRU-D, T-LSTM, and NeuralODE-VAE.
  • Superiority in "Rare" Scenarios: In experiments with low sample sizes (simulating rare diseases), the "continuity prior" provided a massive advantage. It outperformed discretized versions of itself by a wide margin when only 1,000 patient records were available.
  • Boundedness: The GRU-ODE formulation ensures the hidden state stays within a [-1, 1] range, preventing the numerical instabilities that often plague other Neural ODE implementations.

Limitations and Future Work

While highly effective, the framework has a few notable limitations:

  • Computational Complexity: The implementation scales quadratically with the dimension of the observations. While manageable for the 96 variables in MIMIC-III, it might struggle with extremely high-dimensional inputs (like video or raw audio) without further optimization.
  • Observation Types: The current work focuses on Gaussian (continuous) observations. Extending the framework to handle discrete events (e.g., "did the patient fall?") via binomial or multinomial distributions is a logical next step.
  • Point Processes: The authors suggest that the continuous latent process could eventually be used to model the intensity of events, effectively turning the architecture into a Neural Point Process.

Summary updated

BibTeX
@inproceedings{brouwer2019gru,
  author = {Edward De Brouwer and Jaak Simm and Adam Arany and Yves Moreau},
  title = {{GRU-ODE-Bayes: Continuous Modeling of Sporadically-Observed Time Series}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2019},
}
Figure