Graph Neural Controlled Differential Equations for Traffic Forecasting

Jeongwhan Choi, Hwangyong Choi, Jeehyun Hwang, Noseong Park

Abstract

Traffic forecasting is a critical spatio-temporal task often hindered by irregular sensor data and the limitations of discrete-time modeling. This paper introduces Spatio-Temporal Graph Neural Controlled Differential Equations (STG-NCDE), a framework that treats traffic as a continuous-time process on a graph. By leveraging Neural Controlled Differential Equations (NCDEs), the model allows input data to continuously steer the hidden state trajectory. STG-NCDE achieves state-of-the-art performance across six major PeMS datasets and demonstrates significant robustness to missing data, outperforming 20 baseline models.

Introduction

Traffic forecasting is a complex spatio-temporal challenge requiring models to account for both temporal evolution and spatial dependencies within a road network. The current standard approach typically combines Graph Convolutional Networks (GCNs) with Recurrent Neural Networks (RNNs). However, these discrete-time models face two significant hurdles: they struggle with irregular data intervals or missing sensor values, and they impose discrete bottlenecks on what is inherently a continuous traffic flow.

While Neural Ordinary Differential Equations (NODEs) moved toward continuous modeling, they are often "input-starved," as the input only determines the initial state. This work adopts Neural Controlled Differential Equations (NCDEs), which allow the input data to act as a "control" signal, adjusting the hidden state's trajectory throughout the entire observation window.

Methodology

The proposed STG-NCDE architecture processes traffic data through a multi-stage continuous pipeline:

  1. Continuous Path Creation: Discrete historical traffic data is transformed into a continuous path $X(t)$ using natural cubic splines. This allows the model to sample input at any point in time, effectively handling irregular sampling.
  2. Temporal NCDE: A dedicated NCDE processes the temporal evolution of each node's hidden state as a continuous integration process.
  3. Spatial NCDE: Spatial dependencies are handled by integrating GCN-style operations into the CDE function. This allows a node's state to evolve based on the continuous trajectories of its neighbors.
  4. Unified Training: These components are solved as a single augmented ODE system using numerical solvers like Euler or Runge-Kutta methods.
The STG-NCDE architecture illustrating the flow from discrete data to continuous paths and subsequent temporal and spatial NCDE processing.

A key innovation is the use of adaptive graph topology. Rather than relying solely on static physical maps, the model learns node embeddings to discover latent spatial relationships between road segments.

Experiments and Results

The model was evaluated on six large-scale traffic datasets from the California Performance of Transportation (PeMS) system, covering both traffic volume (PeMSD3, D4, D7, D8) and velocity (PeMSD7(M), D7(L)).

Performance and Robustness

STG-NCDE outperformed 20 baseline models, including DCRNN and GraphWaveNet. For instance, on PeMSD3, it achieved a Mean Absolute Error (MAE) of 15.57, surpassing the previous state-of-the-art.

Beyond accuracy, the model exhibited exceptional resilience to missing data. In tests where 10% to 50% of input data was randomly dropped, STG-NCDE remained stable. Remarkably, with 50% of data missing, its error rates were comparable to some baselines using 100% of the data. This robustness stems from the continuous spline interpolation, which allows the model to sample the input path even when specific timestamps are absent.

Qualitative comparison of STG-NCDE against Z-GCNETs and ground truth across various nodes in PeMSD4 and PeMSD8 datasets.

Key Insights

  • The Control Advantage: Unlike standard Neural ODEs, the NCDE framework allows the input data to constantly "steer" the model's hidden state, leading to better alignment with real-world dynamics.
  • Faster Convergence: Training curves indicated that STG-NCDE stabilizes faster than ablation models, suggesting that the integrated spatio-temporal continuous modeling captures the underlying data distribution more efficiently.

Discussion and Conclusion

While STG-NCDE offers superior accuracy and robustness, solving ODEs numerically is computationally more intensive than standard discrete forward passes. Additionally, while the model uses adaptive embeddings, it currently assumes a static underlying graph structure. Future research could explore dynamic graph topologies to account for real-time road closures.

In conclusion, STG-NCDE represents a significant advancement in spatio-temporal modeling by successfully bridging the gap between graph neural networks and continuous-time differential equations. Its ability to handle irregular data makes it a highly practical solution for real-world infrastructure monitoring.

Summary updated

BibTeX
@inproceedings{choi2022graph,
  author = {Jeongwhan Choi and Hwangyong Choi and Jeehyun Hwang and Noseong Park},
  title = {{Graph Neural Controlled Differential Equations for Traffic Forecasting}},
  booktitle = {AAAI Conference on Artificial Intelligence},
  year = {2022},
  doi = {10.1609/aaai.v36i6.20587},
}
Figure