Towards Reliable and Interpretable Traffic Crash Pattern Prediction and Safety Interventions Using Customized Large Language Models
Yang Zhao, Pu Wang, Yibo Zhao, Hongru Du, Hao Frank Yang
TL;DR
This work introduces TrafficSafe, a framework that converts heterogeneous traffic crash data into textual prompts and leverages a fine-tuned large language model with LoRA for event-level crash outcome prediction. It pairs this predictive capability with TrafficSafe Attribution, a sentence-level Shapley-based framework that enables conditional risk analysis and guides data-collection priorities. The TrafficSafe Event dataset contains 58,903 prompts (~12.74 million words) derived from multi-modal sources, and TrafficSafe LLM delivers a $41.7\%$ average improvement in F1-score over baselines, with high trustworthiness evidenced by confidence-linked accuracy and precision for fatal crashes. This approach offers actionable, interpretable insights for targeted safety interventions under Vision Zero objectives and demonstrates how AI-driven transcription of multi-modal data can support real-world traffic safety policy.
Abstract
Predicting crash events is crucial for understanding crash distributions and their contributing factors, thereby enabling the design of proactive traffic safety policy interventions. However, existing methods struggle to interpret the complex interplay among various sources of traffic crash data, including numeric characteristics, textual reports, crash imagery, environmental conditions, and driver behavior records. As a result, they often fail to capture the rich semantic information and intricate interrelationships embedded in these diverse data sources, limiting their ability to identify critical crash risk factors. In this research, we propose TrafficSafe, a framework that adapts LLMs to reframe crash prediction and feature attribution as text-based reasoning. A multi-modal crash dataset including 58,903 real-world reports together with belonged infrastructure, environmental, driver, and vehicle information is collected and textualized into TrafficSafe Event Dataset. By customizing and fine-tuning LLMs on this dataset, the TrafficSafe LLM achieves a 42% average improvement in F1-score over baselines. To interpret these predictions and uncover contributing factors, we introduce TrafficSafe Attribution, a sentence-level feature attribution framework enabling conditional risk analysis. Findings show that alcohol-impaired driving is the leading factor in severe crashes, with aggressive and impairment-related behaviors having nearly twice the contribution for severe crashes compared to other driver behaviors. Furthermore, TrafficSafe Attribution highlights pivotal features during model training, guiding strategic crash data collection for iterative performance improvements. The proposed TrafficSafe offers a transformative leap in traffic safety research, providing a blueprint for translating advanced AI technologies into responsible, actionable, and life-saving outcomes.
