Forecasting Irregularly Sampled Time Series using Graphs

Vijaya Krishna Yalavarthi, Kiran Madusudanan, Randolf Scholz, Nourhan Ahmed, Johannes Burchert, Shayan Jawed, Stefan Born, Lars Schmidt-ThiemearXiv 2023

TL;DR

GraFITi introduces a novel way to forecast irregularly sampled time series with missing values by transforming the data into a sparse bipartite graph. By framing forecasting as an edge-weight prediction task, it bypasses computationally heavy differential equation solvers, delivering up to a 17% boost in accuracy and up to a 5x speedup over state-of-the-art models.

What Problem Does This Paper Address?

In the real world, data rarely arrives in neat, evenly spaced intervals. In fields like healthcare (e.g., ICU patient vitals), climate science, and astronomy, observations are frequently irregularly sampled and riddled with missing values. This type of data is known as Irregularly Sampled Multivariate Time Series (IMTS).

Figure 1: (a) multivariate time series forecasting, (b) irregu- lar multivariate time series forecasting, (c) forecasting irreg- ularly sampled multivariate time series with missing values. In all cases the observation range is from time t0 to t6 and the forecasting range is from time t7 to t10.

Standard deep learning models (like CNNs, RNNs, or Transformers) assume regular grids and struggle with IMTS without heavy preprocessing or imputation. Currently, the gold standard for IMTS relies on Continuous-Time models like Neural Ordinary Differential Equations (Neural ODEs) or Neural Flows. However, these methods are notoriously slow due to their autoregressive nature and the need for computationally expensive numerical integration. Furthermore, they often require extra features, like missingness indicators, to handle gaps in data.

The authors of GraFITi ask a fundamental question: Can we model continuous-time dynamics efficiently without solving differential equations?

Methods

The core innovation of GraFITi is representing IMTS data as a Sparsity Structure Graph—a sparse bipartite graph where channels (variables) and unique timepoints are represented as disjoint sets of nodes.

Figure 2: Representation of IMTS as Sparsity Structure Graph. (b) is the Sparsity Structure Graph representation of (a) where times and channels are the nodes and observation measurements are the edges with observations values. Tar- get edges are provided with (0, 0).

Here is how the pipeline works:

  1. Graph Construction: If channel $c_1$ is observed at time $t_1$ with a value of 0.3, an edge is drawn between node $c_1$ and node $t_1$ with an edge weight of 0.3. If data is missing, no edge is drawn. This elegantly handles missing values without needing imputation or masks.
  2. Query Framing: To forecast a future value, the model adds a "target edge" between the requested channel and the future timepoint, initializing its weight to $(0,0)$ along with a binary indicator marking it as the target.
  3. Graph Neural Network (GNN) Processing: The graph is passed through multiple GNN layers utilizing Multi-head Attention Blocks (MAB). Node embeddings are updated based on their neighbors, and edge embeddings are updated using their connected nodes.
  4. Edge Weight Prediction: The final layer outputs a 1-dimensional embedding for the target edges, which directly corresponds to the forecasted values.
Figure 3: Overall architecture of GraFITi.

Datasets

The authors evaluated GraFITi on four distinct datasets:

  • Physionet’12: ICU patient records tracked over 48 hours (37 channels).
  • MIMIC-III: A large, freely accessible medical database of ICU patients observed over 48 hours (96 channels).
  • MIMIC-IV: An updated version of MIMIC-III with longer sequences and higher dimensionality (102 channels).
  • USHCN (U.S. Historical Climatology Network): A climate dataset containing daily temperatures, precipitation, and snow measurements spanning 150 years across 1,218 meteorological stations (5 channels).

Key Insights and Ideas

  • Missingness as Topology: Instead of treating missing data as a numerical nuisance to be imputed or masked, GraFITi treats it as a topological feature. Gaps in data simply translate to a sparser graph structure, which GNNs naturally handle.
  • Bypassing ODE Integrators: By using attention mechanisms over a bipartite graph, the model can capture complex temporal and inter-channel dependencies simultaneously, completely avoiding the sequential bottleneck of numerical ODE solvers.
  • Target Edges as Context Aggregators: Ablation studies showed that including the target query edges during the GNN message-passing phase is crucial. It allows the attention mechanism to actively pull relevant historical information from incident nodes directly to the query point.

Key Results

GraFITi significantly outperformed SOTA ODE-based models (like LinODENet, CRU, and GRU-ODE-Bayes) and adapted regular time-series models (like Informer and FedFormer):

  • Accuracy: GraFITi achieved the lowest Mean Squared Error (MSE) across all datasets, showing a 9.3% improvement on USHCN, 11.2% on MIMIC-III, and 17.2% on MIMIC-IV compared to the next-best IMTS model.
  • Speed: On datasets with longer time series (MIMIC-IV and USHCN), GraFITi was over 5 times faster than the fastest ODE baseline (LinODENet) and an order of magnitude faster than GRU-ODE-Bayes.
Efficiency comparison showing evaluation time vs. Mean Squared Error.

Limitations and Future Work

Despite its strong performance, GraFITi faces a notable limitation with Asynchronous Time Series. If different channels are observed at completely disjoint time points, the resulting bipartite graph becomes highly disconnected. This disconnection blocks the flow of information across channels, degrading performance.

Additionally, the current architecture cannot natively incorporate static metadata (such as a patient's age or gender). The authors suggest that future iterations could interconnect channel nodes directly and apply distinct multi-head attention layers to overcome these structural bottlenecks.

Summary updated

BibTeX
@misc{yalavarthi2023forecasting,
  author = {Vijaya Krishna Yalavarthi and Kiran Madusudanan and Randolf Scholz and Nourhan Ahmed and Johannes Burchert and Shayan Jawed and Stefan Born and Lars Schmidt-Thieme},
  title = {{Forecasting Irregularly Sampled Time Series using Graphs}},
  year = {2023},
  eprint = {2305.12932},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2305.12932},
}
Figure