Learning Traffic Speed Dynamics from Visualizations

Bilal Thonnam Thodi, Zaid Saeed Khan, Saif Eddin Jabari, Mónica Menéndez

Abstract

Traffic state estimation (TSE) is a critical component of modern traffic management, yet it often struggles with the trade-off between physical accuracy and computational efficiency. This paper introduces a deep learning approach that frames TSE as an image reconstruction task. By utilizing an encoder-decoder convolutional neural network (CNN) equipped with "anisotropic" kernels, the proposed model can reconstruct high-resolution macroscopic traffic speed fields from sparse probe vehicle data (as low as 5%). The architecture explicitly incorporates traffic flow physics, allowing it to accurately capture complex dynamics like shockwave propagation.

Introduction

Accurate knowledge of road states—speed, density, and flow—is essential for mitigating congestion. Traditional TSE methods typically fall into two categories: model-based approaches, which are physically grounded but computationally intensive, and data-driven methods, which are fast but often produce physically implausible results. This research addresses these limitations by treating traffic speed maps as images and applying advanced computer vision techniques modified to respect the directional and causal nature of traffic flow.

Methodology

The core of the proposed system is an Encoder-Decoder Deep CNN architecture. Unlike standard numerical matrices where a value of zero can be ambiguous (representing either zero speed or missing data), the researchers represent traffic speed using RGB channels. This allows the model to clearly distinguish between congested areas and regions with no data.

The Encoder-Decoder CNN architecture used to reconstruct dense traffic speed maps from sparse input data.

Anisotropic Kernels

The most significant innovation is the use of anisotropic kernels. Standard CNNs use isotropic kernels that weigh surrounding pixels equally in all directions. However, traffic information propagates differently depending on the state: forward in free-flow conditions and backward during congestion (shockwaves). By modifying the CNN layers to use kernels that align with these specific space-time correlations ($I_{free}$ and $I_{cong}$), the model is "physics-informed" by design, ensuring it respects the inherent anisotropy of traffic flow.

Comparison of isotropic kernels versus the proposed anisotropic kernels for free-flow and congested traffic states.

The model was trained on a synthetic dataset of over 20,000 samples generated via the Vissim microsimulator, covering a wide range of demand levels from free-flow to heavy congestion.

Experimental Results

The model's performance was validated using real-world trajectory data from the NGSIM (US-101) and HighD (German highway) datasets. Even with only 5% probe vehicle coverage, the model successfully reconstructed the full speed fields:

  • Free-Flow (HighD): Achieved an RMSE of 14.60 kmph (roughly 8.8% relative error).
  • Slow-Moving Traffic (HighD): Achieved a lower RMSE of 8.5 kmph, effectively capturing backward-propagating shockwaves.
  • Heavy Congestion (NGSIM): Reconstructed with an RMSE of 12.7 kmph.

Qualitatively, the model produces smooth, physically consistent speed maps, successfully "infilling" the gaps between sparse trajectories to reveal the underlying traffic dynamics and the extent of stop-and-go waves.

Discussion and Conclusion

By treating traffic dynamics as a visualization problem, this work leverages the strengths of deep learning while maintaining physical realism through architectural constraints. Analysis of the model's hidden representations using t-SNE revealed that it naturally learns to cluster different traffic regimes without explicit labels.

While highly effective, the model faces challenges in scenarios with extremely persistent, near-zero speed congestion, likely due to underrepresentation in the training data. Future work aims to extend this framework to urban arterial roads, where traffic signal timings introduce additional complexities. Integrating multi-modal data, such as weather or roadwork information, could further enhance the model's predictive capabilities.

Summary updated

BibTeX
@inproceedings{thodi2021learning,
  author = {Bilal Thonnam Thodi and Zaid Saeed Khan and Saif Eddin Jabari and Mónica Menéndez},
  title = {{Learning Traffic Speed Dynamics from Visualizations}},
  booktitle = {ITSC},
  year = {2021},
  doi = {10.1109/itsc48978.2021.9564541},
}
Figure