TL;DR
XTraffic is a large-scale benchmark that spatiotemporally aligns one full year (2023) of high-resolution traffic sensor time series (flow, speed, occupancy) with 476,766 incident records and detailed road-level meta-features across California. By bridging the gap between traffic forecasting and incident analysis, the dataset enables new benchmarks in post-incident traffic forecasting, incident classification from sensor readings, and global/local causal discovery.
What Problem Does This Paper Address?
Intelligent transportation systems rely heavily on two research tracks that have developed in near-total isolation:
- Traffic forecasting, which typically evaluates complex spatiotemporal graph neural networks on recurring, normal traffic patterns while omitting unexpected disruptions.
- Incident analysis, which focuses on predicting accident risk or incident durations from sparse accident logs, usually lacking fine-grained traffic sensor data and precise spatial coordinates.
Existing traffic benchmarks (e.g., PeMS subsets, LargeST) lack incident labels and physical/policy road attributes, while open accident datasets (e.g., NYC Collisions, UK Road Safety) lack continuous flow metrics and often mix mismatched transport modes (such as analyzing vehicle collisions against bike traffic). Consequently, existing models cannot evaluate how non-recurrent events break regular traffic dynamics, nor can they deduce incident types directly from roadway sensor signals.
Methods
To bridge this gap, the authors developed a data pipeline combining sensor telemetry and incident management systems:
- Spatiotemporal Matching: Incident logs were matched to sensors on the Caltrans Performance Measurement System (PeMS) using freeway IDs and absolute postmile (Abs PM) markers. Network topology was constructed via OpenStreetMap road-network distance routing.
- Post-Incident Traffic Forecasting: Evaluated classic and modern spatiotemporal models (LSTM, ASTGCN, DCRNN, AGCRN, Graph WaveNet, STGODE, DSTAGNN, and $\text{D}^2\text{STGNN}$) specifically on test samples immediately following an incident.
- Incident Classification: Formulated a 3-class multivariate time-series classification task (accidents, hazards, normal conditions) using speed, occupancy, and flow over a 2-hour window, evaluated across statistical, contrastive, CNN, and Transformer baselines (e.g., Decision Tree, TS2Vec, gMLP, OmniScaleCNN, PatchTST).
- Causal Discovery:
- Global Causal Analysis: Employed MM-DAG (multi-task functional directed acyclic graph learning) to examine high-level causal links between infrastructure attributes, environmental conditions, incident types, and traffic states.
- Local Causal Analysis: Applied $\text{PCMCI}^+$ (and DyNotears) on adjacent road sensors before and after an incident to uncover how traffic disruptions dynamically alter causal propagation paths and time lags across the network.
Datasets
The authors introduce the XTraffic Datacube:
- Traffic Time-Series: 16,972 sensor nodes across California (Greater Los Angeles, San Francisco Bay Area, San Jose, etc.) recording traffic flow, lane occupancy, and average vehicle speed at 5-minute intervals throughout 2023 (105,120 time slots).
- Incident Data: 476,766 records covering 7 incident classes (injury accidents / 1141, non-injury, unknown injury, hazards, animal hazards, vehicle fires, and road fires).
- Meta-Attributes: 26 physical and policy features per sensor (e.g., lane width, road surface material, median type, design speed limit, terrain).
Key Insights and Ideas
- Current forecasting models overfit to temporal regularity: State-of-the-art spatiotemporal architectures experience sharp performance drops when evaluated immediately after an incident occurs, demonstrating that their accuracy under standard benchmarks relies primarily on recurring periodic daily patterns rather than learning robust flow physics.
- Traffic dynamics leave distinct incident footprints: Sensor readings alone can distinguish non-recurrent anomalies from baseline traffic, though short-duration incidents (such as rapid car fires or minor non-injury collisions) remain difficult for time-series classifiers to differentiate from routine congestion.
- Physical infrastructure serves as a causal anchor: Global causal modeling revealed that static road geometry (terrain, lane width, surface base thickness $>7$ inches) consistently drives incident rates and congestion across geographic districts, exhibiting stronger and more stable causal influence than variable factors like rainfall volume.
- Incidents reverse causal flow: Local causal analysis demonstrated that a downstream incident alters the directional dependencies between sensors—introducing upstream lagged dependencies where downstream bottleneck congestion cascades backward into preceding road segments.
Key Results
- Post-Incident Forecasting Degradation: Across all horizons on the San Bernardino test set, error metrics degrade substantially post-incident compared to general evaluation:
- DCRNN: 5-minute MAE worsens from 11.90 (general) to 13.62 (post-incident); 30-minute MAE climbs from 14.84 to 16.92.
- LSTM: 5-minute MAE degrades from 12.58 to 14.17; 30-minute MAE increases from 18.68 to 20.93.
- Incident Classification: The top-performing models (Decision Tree, gMLP, and PatchTST) achieve 41.6% accuracy on 3-class incident classification (accidents vs. hazards vs. normal) compared to a ~33% random baseline. Combining all three telemetry channels (speed, occupancy, flow) generally yielded superior results over single-channel inputs.
Limitations and Future Work
- Weather Data Licensing: While weather variables were incorporated into the causal experiments, licensing constraints currently prevent their public release in the primary repository.
- Spatial Coordinate Precision: Incident positions in version 1 rely on postmile markers and sensor proximity rather than raw GPS coordinates (exact latitude/longitude for all incident points is planned for v2).
- Temporal Horizon: The core release spans single-year data (2023), limiting multi-year seasonal analysis, though the authors demonstrate initial multi-year extensions (January 2021–2023) in the appendix.
Summary updated