Abstract
Predicting traffic patterns across diverse urban environments is a significant challenge for standard deep learning models. This paper introduces a "Hybrid U-Net" that replaces traditional image convolutions with Graph Neural Network (GNN) layers. By specializing graph operations to be sensitive to geographical directions and road topology, the model achieves significantly better generalization when predicting traffic in cities it has never seen before. Evaluated on the NeurIPS Traffic4Cast 2021 dataset, the model secured 4th place in spatial generalization, demonstrating the power of topology-aware architectures.
Introduction
Predicting traffic volume and speed is vital for urban management, but it is notoriously difficult to do well across different cities. Most state-of-the-art models treat traffic data like a "movie"—a sequence of heatmaps where pixels represent traffic attributes. While standard U-Net architectures based on Convolutional Neural Networks (CNNs) excel at processing these images, they struggle with spatial generalization.
A CNN trained on the grid of Berlin does not easily translate to the grid of Bangkok because the underlying road networks are fundamentally different. Furthermore, CNNs waste computation on "empty" pixels where no roads exist. While GNNs are a natural fit for road networks, they often suffer from "over-smoothing" when models get too deep, making it hard to capture long-range spatial dependencies.
Methodology
The proposed Hybrid U-Net combines the hierarchical structure of a U-Net with the topological flexibility of GNNs. Key innovations include:
- Directional Subgraphs: Standard GNNs are "permutation invariant," meaning they do not naturally distinguish cardinal directions. Since traffic flow is highly directional, the authors split the road graph into four subgraphs (North-West, North-East, South-East, South-West). Each subgraph processes traffic features specific to those directions.
- Graph-based Pooling and Upsampling: To mimic the U-Net’s ability to see the "big picture," the model utilizes specialized pooling layers. Nodes are partitioned based on their 2D grid positions (2x2 windows) to create a coarser graph, expanding the receptive field without requiring an excessively deep GNN.
- Global State Vector: Every GNN layer includes a global feature vector that aggregates information from the entire graph, facilitating long-range communication between distant parts of the city.
Experimental Setup
The study utilizes the NeurIPS Traffic4Cast (T4C) 2021 Challenge dataset, featuring 10 global cities including Moscow, Melbourne, and Istanbul. The data consists of 2D heatmaps (495 × 436 pixels) with 8 channels representing traffic speed and volume in four directions, sampled at five-minute intervals.
Key Results and Insights
The Hybrid U-Net performed impressively in the T4C 2021 competition, achieving 4th place in the spatial generalization challenge. It reached a Mean Squared Error (MSE) of 50.521 (Core) and 60.222 (Extended), significantly outperforming the "Graph-ResNet" baseline.
By operating on a graph rather than a raw pixel grid, the model ignores non-road areas, forcing latent representations to focus purely on network flow. To test robustness, the authors evaluated the model on "mirrored" city data. The Hybrid U-Net maintained a relative MSE of 0.985, whereas a vanilla CNN-based U-Net dropped to 0.96, indicating the graph-based approach is much more stable when the spatial layout changes.
Conclusion and Future Work
While the model generalizes well, its performance varies by city complexity, struggling more with hubs like Istanbul compared to Melbourne. Future research directions include refining the up- and downsampling layers to be sensitive to road hierarchy (e.g., distinguishing highways from side streets) and scaling model complexity to further close the gap on difficult urban environments.
Summary updated