Introduction
Traffic safety analysis relies heavily on the Crash Investigation Sampling System (CISS), which contains both structured data and unstructured "crash narratives" written by investigators. While these narratives hold critical insights into the mechanics of accidents, extracting this information at scale is challenging. Traditional keyword-based methods lack contextual depth, while Large Language Models (LLMs) like GPT-4o present significant hurdles regarding data privacy, high computational costs, and a lack of specialized domain knowledge.
This research explores the efficacy of domain-adapted, compact language models—ranging from BERT to 3B-parameter LLMs—in automating the extraction of standardized safety codes from unstructured text.
Methodology
The researchers reformulated information extraction as a structured classification task. To address the complexity of the domain, they employed several key strategies:
- Parameter-Efficient Fine-Tuning (PEFT): Using Low-Rank Adaptation (LoRA), the team fine-tuned open-source models (LLaMA 3.1/3.2, Qwen 2.5, Mistral 7B) on a fraction of their parameters. This allowed for the injection of traffic safety expertise without the need for massive computational resources.
- Hierarchical Decomposition: To manage variables with high cardinality, such as the 98-category "Crash Type," the task was broken down into smaller, manageable sub-tasks based on crash configuration.
- Structured Prompting: Chain-of-Thought (CoT) prompts were designed to include expert-verified definitions and clarification rules, guiding the models through the logical steps required for accurate classification.
Experimental Setup
The study utilized the CISS dataset from the National Highway Traffic Safety Administration (NHTSA). The training set consisted of approximately 3,000 annotated examples from 2020, while the evaluation set included 2,000 cases from 2021 to test temporal generalization. The models were evaluated on their ability to map narratives to specific labels, such as the "Manner of Collision" (MANCOLL).
Results and Discussion
The findings demonstrate that domain adaptation significantly outweighs raw model size for specialized tasks.
- Performance Gains: A fine-tuned LLaMA3-3B model saw its accuracy for the MANCOLL task jump from a baseline of 50.2% to over 95.1%.
- Small vs. Large Models: The fine-tuned 3B-parameter models consistently outperformed the much larger, closed-source GPT-4o. This highlights the value of local, privacy-preserving models in sensitive research areas.
- Data Efficiency: Performance spiked after only 500 training samples, suggesting that these models are highly efficient at learning domain-specific patterns.
- Error Correction: Interestingly, the models were consistent enough to identify mislabeled cases in the original human-annotated dataset, particularly in instances previously categorized as "Unknown."
Conclusion
Domain-adapted, compact language models provide a robust, cost-effective, and privacy-compliant solution for analyzing traffic crash narratives. While challenges remain in tracking complex subject-object relations in multi-vehicle collisions, the success of this approach paves the way for deeper causal analysis and automated safety reporting. Future work will focus on expanding these models to identify causal chains and implementing uncertainty calibration to flag ambiguous cases for human review.
Summary updated