Related Experiment Video
Updated: Sep 17, 2026

Augmenting Large Language Models via Vector Embeddings to Improve Domain-Specific Responsiveness
Published on: December 6, 2024
Improving crash data quality with large language models: Evidence from secondary crash narratives in Kentucky
1Research Scientist, Kentucky Transportation Center, 266 Raymond Bldg, Lexington, KY 40506-0281, USA.
Introduction:
High-quality crash data are essential for traffic safety analysis, yet police-reported crash databases often suffer from underreporting and miscoding, particularly for secondary crashes. This study evaluates advanced natural language processing (NLP) techniques to enhance crash data quality by mining crash narratives, using secondary crash identification in Kentucky as a case study.
Method:
Drawing from 16,656 manually reviewed narratives from 2015 to 2022, with 3803 confirmed secondary crashes, we systematically compared 11 models across four paradigms: zero-shot open-source large language models (LLMs), fine-tuned transformers, deep learning model with word embeddings, and logistic regression. Statistical significance was assessed using pairwise McNemar's tests, and 95% bootstrap confidence intervals were computed for all metrics.
Results:
Fine-tuned transformers achieved statistically superior performance, forming a top-performing cluster that was indistinguishable internally. RoBERTa yielded the highest F1 (0.90) and accuracy (95.4%) while requiring only seconds of inference on the test set. Among zero-shot LLMs, Llama3:70B reached the best F1 (0.86) but required 139 min of inference. The BiLSTM baseline (F1: 0.79) was statistically indistinguishable from Qwen3:32B and Gemma3:27B, while logistic baseline lagged well behind (F1: 0.66). Qualitative error analysis revealed that RoBERTa and Llama3:70B exhibit complementary failure patterns, supporting ensemble deployment strategy.
Conclusions:
For agencies with labeled training data, fine-tuned RoBERTa is the recommended deployment choice, which offers the strongest accuracy at negligible computational cost. For agencies lacking labeled data, zero-shot LLMs such as Llama3:70B provide a viable alternative that can be deployed readily and simultaneously accumulate a labeled dataset for eventual transition to fine-tuned models.
Practical Applications:
These findings allow transportation agencies to automate labor-intensive narrative reviews, addressing chronic data quality issues like secondary crash miscoding. Practical deployment considerations are discussed, which emphasize privacy-preserving local deployment, ensemble approaches for improved accuracy, and incremental processing for scalability, providing a replicable scheme for enhancing crash-data quality with advanced NLP.
Related Concept Videos
Collisions in Multiple Dimensions: Problem Solving
A small car of mass 1,200 kg traveling east at 60 km/h collides at an intersection with a truck of mass 3,000 kg traveling due north at 40 km/h. The two vehicles are locked together. What is the...
Types of Collisions - II
Collisions in Multiple Dimensions: Introduction
Types Of Collisions - I
Elastic Collisions: Case Study
Improving Translational Accuracy