Graph Neural Controlled Differential Equations for Traffic Forecasting

Jeongwhan Choi, Hwangyong Choi, Jeehyun Hwang, Noseong Park

Abstract

Traffic forecasting is one of the most popular spatio-temporal tasks in the field of machine learning. A prevalent approach in the field is to combine graph convolutional networks and recurrent neural networks for the spatio-temporal processing. There has been fierce competition and many novel methods have been proposed. In this paper, we present the method of spatio-temporal graph neural controlled differential equation (STG-NCDE). Neural controlled differential equations (NCDEs) are a breakthrough concept for processing sequential data. We extend the concept and design two NCDEs: one for the temporal processing and the other for the spatial processing. After that, we combine them into a single framework. We conduct experiments with 6 benchmark datasets and 20 baselines. STG-NCDE shows the best accuracy in all cases, outperforming all those 20 baselines by non-trivial margins.

Introduction

Traffic forecasting involves modeling complex spatio-temporal dependencies: temporal patterns at individual sensors and spatial relationships between interconnected road segments. Traditional models typically employ a "sandwich" architecture, stacking Graph Convolutional Networks (GCNs) for spatial features and Recurrent Neural Networks (RNNs) for temporal sequences. However, these discrete-time models assume data arrives at fixed intervals and often fail when faced with missing or irregular sensor data. STG-NCDE addresses these limitations by treating traffic forecasting as a continuous-time problem through the lens of differential equations.

Methodology

The STG-NCDE framework moves beyond discrete snapshots by constructing continuous paths from raw data. The architecture consists of several key stages:

  1. Continuous Path Construction: Discrete traffic observations are interpolated into a continuous path $X(t)$ using natural cubic splines. This allows the model to query traffic states at any arbitrary time point.
  2. Temporal NCDE: This component models the temporal evolution of each node. It defines a hidden state trajectory $H(t)$ that evolves continuously based on the input path $X(t)$.
  3. Spatial NCDE: Information flow between nodes is handled by a spatial processing engine that utilizes an adaptive adjacency matrix. This matrix, learned via node embeddings, discovers hidden spatial correlations beyond physical proximity.
  4. Coupled Integration: The temporal and spatial dynamics are integrated into a single augmented ODE system. By solving these dynamics simultaneously, the model learns spatial relationships within the context of continuous temporal flow.
The STG-NCDE architecture, illustrating the flow from discrete data to continuous paths, followed by integrated temporal and spatial processing.

Experimental Setup

The model was evaluated on six real-world traffic datasets from the California Performance of Transportation (PeMS) system, covering both traffic volume (PeMSD3, D4, D7, D8) and velocity (PeMSD7(M), D7(L)). To test robustness, "irregular" versions of these datasets were created by randomly dropping 10% to 50% of the data points, simulating real-world sensor failures.

Results and Discussion

STG-NCDE demonstrated superior performance against 20 baseline models, including GraphWaveNet and AGCRN, across all metrics (MAE, RMSE, and MAPE). A key strength is its robustness; on the PeMSD8 dataset with 50% missing data, STG-NCDE maintained an MAE of 16.68, outperforming many standard models operating on complete data.

Qualitative comparison of traffic flow predictions across different nodes in PeMSD4 and PeMSD8 datasets, showing STG-NCDE's close alignment with ground truth compared to Z-GCNETs.

Key Insights

  • Continuous Advantage: The time-agnostic nature of NCDEs allows the model to handle irregular sampling intervals gracefully.
  • Efficiency: Training curves indicate that STG-NCDE stabilizes significantly faster than ablation models, often within just two epochs.
  • Adaptive Topology: The use of learned node embeddings allows the model to capture non-obvious spatial dependencies, such as distant highway exits with similar traffic patterns.

Limitations and Future Work

While highly accurate, solving NCDEs via numerical solvers can be more computationally intensive than discrete matrix operations. Furthermore, while the spatial weights are adaptive, the underlying graph structure remains fixed. Future research may explore extending this framework to dynamic graphs where the road network itself evolves over time, as well as investigating alternative path-fitting methods beyond cubic splines.

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