TraffiDent Merges 1.4M Crash Records With Traffic Sensors to Fix AI Blind Spots
A new California traffic dataset finally links 16,972 sensors to 1.4 million incident records, exposing how crashes reshape flow, speed, and occupancy in real time.
ProTakeaways
- TraffiDent aligns 16,972 California traffic sensors with 1.44M incident records across 7 classes from 2022 to 2024.
- Includes flow, occupancy, and speed at 5-minute resolution plus 27 physical and policy road meta-features.
- State-of-the-art forecasters like GWNET and D²STGNN degrade noticeably on post-incident samples versus general traffic.
- Ships four benchmark tasks including incident classification and global/local causal analysis with MM-DAG and PCMCI+.
- Data on Kaggle (CC BY-NC 4.0), code on GitHub (MIT).
- Naive incident indicators give small gains, suggesting dedicated incident-aware architectures remain an open research direction.
Traffic forecasting research and incident analysis have been running in parallel lanes for years without ever really merging. One side builds ever more elaborate graph neural networks to squeeze a few tenths of a point off prediction error, while the other studies accidents in isolation. A new dataset called TraffiDent tries to fix that split by aligning both worlds at scale.
The gap nobody wanted to bridge
Abundant works have been using traffic-only datasets such as PEMS, METR-LA, and LargeST for traffic forecasting, and they typically score well because traffic under normal conditions follows strong daily rhythms. The catch is that these benchmarks quietly ignore the events that actually break those rhythms. They ignore that unexpected incidents will cause abnormal and irregular patterns in traffic flows.
Incident-only datasets have the opposite problem. The data granularity of existing open-source datasets is extremely coarse, and there is no specific location information, such as coordinates or absolute postmile markers, which makes it impossible to measure how a specific crash rippled through a specific stretch of road. Prior attempts to combine the two often used mismatched modes, like pairing vehicle incident data with bike or taxi flow, which is not a clean comparison.

What is actually inside
TraffiDent covers three full years of California traffic pulled from the Caltrans Performance Measurement System. The reserved incident data includes 1,441,904 samples with 9 features, and traffic is captured at 5-minute resolution across 16,972 sensors. Compared to existing benchmarks, the jump in scope is significant:
- TraffiDent is larger than the existing datasets, with 16,972 nodes and 870,100 edges, spanning greater San Francisco, San Jose, and Greater Los Angeles.
- Seven incident classes instead of a single accident label, including hazards, animal hazards, car fires, and closures.
- Three traffic channels per sensor: flow, lane occupancy, and average vehicle speed.
- 27 meta-features are reserved, split into physical properties (surface material, terrain, lane width, shoulder width) and policy attributes (design speed limit, functional class, population type).
Everything is spatially aligned using freeway ID and absolute postmile markers, so a single incident timestamp can be matched to the nearest sensor and to a specific 5-minute traffic window.
Four tasks that were previously impossible
The authors ship four benchmark tasks that only make sense once traffic and incidents live in the same schema.
- Post-incident forecasting. They ran eight state-of-the-art spatiotemporal models including DCRNN, Graph WaveNet, STGODE, DSTAGNN, and D²STGNN on both general test samples and incident-only samples. All baselines perform significantly better in predicting on the general test dataset compared to the incident test dataset, since incidents added irregularity into the traffic systems. For example, GWNET's 30-minute MAE jumps from 14.88 in normal conditions to 17.15 after an incident.
- Incident classification. Using only the three-channel traffic time series near a sensor, models try to distinguish accidents, hazards, and normal traffic. The best classification can achieve 41% accuracy, indicating classifying traffic conditions based on traffic indexes is feasible, though car fires and no-injury accidents remain hard because they barely perturb flow.
- Global causal analysis with MM-DAG across meta-features, incidents, and traffic statistics. The learned graphs surface intuitive but quantified relationships: rain increases accident probability but rainfall amount does not scale linearly, and flat terrain correlates with higher average speeds than rolling terrain.
- Local causal analysis with PCMCI+ on a real February 2023 collision in Novato, California, showing how the pre-incident causal structure between neighboring sensors gains two new lagged edges once congestion propagates backward from the crash site.

Where it helps and where it does not
The obvious use case is stress-testing forecasting models under the conditions where they actually fail. If a graph neural network shaves 2% off PEMS-BAY but collapses when a hazard appears on a hub node, that gap is now measurable. It also opens up interpretable modeling, since the physics and policy meta-features let you ask whether a model is learning traffic dynamics or memorizing road identity.
Limitations are worth flagging. The classification ceiling of 41% suggests that traffic signals alone are often insufficient to identify short-lived incidents. The dataset is also California-specific, so cultural and infrastructural generalization is untested. And a companion experiment showed that naively adding an incident indicator to the STID forecasting model only nudged average MAE from 13.11 to 12.69, so a dedicated incident-aware architecture is still an open problem.
Access
The dataset is released under CC BY-NC 4.0 on Kaggle, with experiment code under MIT license in the GitHub repository. The project page hosts descriptive analyses, sensor maps, and croissant metadata. For anyone working on spatiotemporal forecasting, anomaly detection, or causal discovery in transportation, it is currently the most complete public bridge between the two research tracks.