You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Spatio-Temporal Traffic Flow Prediction on Highway Networks
A Deep Learning comparative study benchmarking Dilated 1D-CNN, Temporal Transformer, Spatio-Temporal Graph Neural Networks (STGCN / ChebNet), and Multi-Layer LSTM on the METR-LA traffic speed benchmark.
All 4 models were trained on Apple Silicon Metal Performance Shaders (mps) across 25 epochs using Masked MAE loss and Adam optimizer with ReduceLROnPlateau scheduling.
A. Multi-Model Benchmark Comparison (MAE & RMSE across Horizons)
B. Convergence Curves Across Model Architectures
Dilated 1D-CNN (Jayesh)
Temporal Transformer (Adriteyo)
Multi-Layer LSTM (Mihika)
Spatio-Temporal GNN (Naga Akhil)
C. Actual vs. Predicted Traffic Speeds (24-Hour Test Window)
Dilated 1D-CNN Predictions
Temporal Transformer Predictions
Multi-Layer LSTM Predictions
Spatio-Temporal GNN Predictions
D. Failure Case & Diurnal Error Breakdown (Temporal Transformer)
Diurnal Regime Dynamics: Morning Peak (07:00–09:00, MAE 3.64 mph), Evening Rush (16:30–18:30, MAE 4.51 mph), and Night Free-Flow (22:00–05:00, MAE 2.41 mph).
Congestion Shockwave Failure: Under abrupt deceleration ($\Delta = 66.9\text{ mph}$, speed collapse from $69.4 \to 2.4\text{ mph}$), self-attention models display an intrinsic 15–20 minute phase lag due to reliance on historical autoregressive velocity windows.
Spatial Bottleneck Variance: Complex highway interchange merge sensors exhibit up to 2.4× higher prediction error compared to mainline straight-segment sensors.
E. Architectural Ablation Study (Component Contributions Across All 4 Paradigms)
Master Architectural Ablation Matrix
Model Family
Member
Ablation Variant
15m MAE
30m MAE
60m MAE
Overall MAE
$\Delta$ MAE
Degradation
Temporal Transformer
Adriteyo Das
Full Model (Base)
2.79
3.17
3.55
3.12
0.00
Baseline
w/o Residual Skip Head
3.84
4.55
5.56
4.54
+1.42
+45.5%
w/o Spatial Diffusion
3.97
4.96
6.37
4.95
+1.83
+58.8%
w/o Positional Encoding
3.96
4.98
6.41
4.98
+1.86
+59.8%
Spatio-Temporal GNN
Varanasi Naga Akhil
ChebNet $K=3$ (Base)
2.86
3.27
3.72
3.22
0.00
Baseline
ChebNet $K=1$ (1-Hop)
3.82
4.83
6.29
4.83
+1.61
+50.0%
ChebNet $K=2$ (2-Hop)
3.91
4.84
6.29
4.87
+1.65
+51.3%
Static Graph Only (w/o Adaptive Graph)
3.90
4.94
6.50
4.94
+1.72
+53.5%
Dilated 1D-CNN
Jayesh Agarwal
Dilations $[1,2,4,8]$ (Base)
2.88
3.31
3.79
3.26
0.00
Baseline
No Dilation $[1,1,1,1]$
3.68
4.61
5.84
4.58
+1.32
+40.6%
Shallow Dilation $[1,2,4]$
3.85
4.72
5.87
4.66
+1.40
+42.9%
w/o Adaptive Graph Diffusion
3.69
4.63
6.08
4.65
+1.40
+42.8%
Multi-Layer LSTM
Mihika Bardhan
3-Layer + Embeddings (Base)
2.86
3.30
3.82
3.26
0.00
Baseline
2-Layer w/o Node Embeddings
4.31
5.01
6.03
5.00
+1.75
+53.7%
1-Layer w/o Node Embeddings
4.34
5.20
6.26
5.16
+1.90
+58.3%
6. Quickstart & Execution Guide
1. Environment Setup
# Sync dependencies using uv
uv sync
2. Download Dataset
uv run python scripts/setup.py
3. Run Exploratory Data Analysis (EDA)
uv run python src/eda.py --device auto --output-dir output