NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Advance Real-Time Detection of Traffic Incidents in Highways Using Vehicle Trajectory Data

Sudipta Roy, Samiul Hasan · DOI

TL;DR

Researchers have developed a machine learning framework that uses real-time vehicle trajectory data (GPS) to predict traffic incidents occurring just 0.25 miles downstream. By shifting from fixed road sensors to individual vehicle data, the model can identify potential hazards with a 67% recall rate, offering a vital tool for preventing dangerous secondary crashes.

What Problem Does This Paper Address?

Traffic incidents are rarely isolated events. A significant portion of highway accidents are "secondary crashes"—collisions that happen because drivers are unaware of an existing incident or sudden congestion ahead.

Traditionally, traffic management centers rely on loop detectors (sensors buried in the pavement). While useful, these have major blind spots: they only provide data at specific points, often suffer from hardware failures, and aggregate data into 5-minute chunks, creating a "latency" that is too slow for real-time safety alerts. This paper tackles the challenge of using Floating Car Data (FCD)—the high-frequency GPS trajectories from connected vehicles—to provide a more granular, individual-level warning system that can detect incidents before a driver even sees them.

Methods

The authors developed a data-driven framework to turn "messy" GPS pings into actionable predictions:

  1. Virtual Detectors: To handle the irregular intervals of GPS data, they mapped raw trajectories onto "virtual detectors" spaced every 110 yards. This normalized the data into a consistent spatial format.
  2. Feature Engineering: They grouped these virtual detectors into three upstream sets. For each set, they calculated mean speed, speed standard deviation, and—crucially—the change in heading angle (to capture swerving or lane-changing behavior).
  3. Addressing Data Imbalance: Since traffic incidents are rare compared to normal driving (a 1:7 ratio in their set), they used SMOTE (Synthetic Minority Over-sampling Technique) to balance the training data, ensuring the models didn't simply learn to ignore incidents.
  4. Machine Learning Suite: They compared four popular algorithms: Logistic Regression (LR), Random Forest (RF), Extreme Gradient Boost (XGB), and Artificial Neural Networks (ANN).
  5. Threshold Optimization: They used Youden’s Index to find the mathematical "sweet spot" for the classification threshold, balancing the need to catch incidents (Recall) against the annoyance of false alarms (FAR).

Datasets

The study utilized two primary data sources focused on a 273-mile stretch of the I-10 corridor in Louisiana:

  • Otonomo Trajectory Data: Three days of vehicle trajectories (August 27–29, 2021) during the high-volume evacuation period for Hurricane Ida. This included data from over 135,000 individual vehicles.
  • RITIS Incident Data: A database of 256 confirmed traffic events (accidents, stalled vehicles, etc.) that resulted in lane closures during the same period.

Key Insights and Ideas

  • The Power of Proximity: The most important features for prediction were the vehicle's immediate speed and heading angle changes in the "third detector set"—the area closest to the vehicle's current position.
  • Heading Angle Matters: One of the most interesting findings was that change in heading angle was a top-tier predictor. This suggests that subtle steering adjustments or frantic lane changes by vehicles ahead are strong "canaries in the coal mine" for a downstream blockage.
  • Normalizing the Abnormal: By using data from a hurricane evacuation, the researchers tested their model under extreme, high-stress traffic conditions where the risk of secondary crashes is highest.
  • The Failure of Simple Models: Standard Logistic Regression completely failed to provide discriminative power in this context, highlighting that the relationship between trajectory "wiggles" and downstream crashes is non-linear and complex.

Key Results

  • Top Performer: The Random Forest (RF) model outperformed the others when combined with a 1.0 SMOTE ratio.
  • Recall: The RF model achieved a mean recall of 0.67, meaning it successfully identified 67% of the trajectories that were about to encounter an incident.
  • Discrimination: The Area Under the ROC Curve (AUC-ROC) stabilized at approximately 0.60. While there is room for improvement, this represents a significant step forward in individual-level "advance" detection.
  • False Alarm Trade-off: The best-performing model had a False Alarm Rate (FAR) of 0.47. In a safety context, researchers often prefer a higher FAR if it means missing fewer life-threatening incidents, though this remains a hurdle for consumer-facing apps.

Limitations and Future Work

The authors identified several areas for refinement:

  • Data Granularity: The incident data (RITIS) lacked details on exactly how many lanes were closed or the specific intensity of the impact on traffic flow.
  • Missing Values: Real-world GPS data is "lossy." The extensive processing required to fill gaps in Otonomo's unequal timesteps may have smoothed over some valuable micro-behaviors.
  • Future Directions: The authors suggest incorporating more detailed event datasets and exploring deep learning architectures that might better capture the temporal "rhythm" of a vehicle's journey leading up to an incident.

Summary updated

BibTeX
@inproceedings{roy2026advance,
  author = {Sudipta Roy and Samiul Hasan},
  title = {{Advance Real-Time Detection of Traffic Incidents in Highways Using Vehicle Trajectory Data}},
  booktitle = {Data},
  year = {2026},
  doi = {10.1007/s42421-026-00148-6},
}
Figure