Extracting traffic crash information from social media: an LLM-based approach

Fast detection and analysis of traffic crashes are important steps toward improving road safety. While traditional data sources remain useful, social media platforms have become rich and rapidly growing channels for tracking such incidents. Still, the informal and unstructured nature of user-generated content makes accurate information extraction a challenge. This study explores the potential of using social media data mining and Large Language Models (LLMs) to automatically detect traffic crashes and extract relevant details from social media messages. The research was centered on Damavand County, a high-traffic area located on major routes near Tehran. A full framework was developed, including data collection, preprocessing, and fine-tuning of BERT-based models to classify messages into crash and non-crash categories and further categorize them into ten crash types, reaching accuracies of 91.1% and 89.7%, respectively. Additionally, a LLaMA 3.1 model was fine-tuned for a question-answering task focused on extracting crash location and casualty numbers. It achieved 97% accuracy in identifying fatalities and injuries, and BLEU and METEOR scores of 0.697 and 0.864 in location extraction. Comparison with official records showed that social media data identified 64.1% of crash hotspots found in official reports. Moreover, crashes with higher severity and specific types, like rollover or fall crashes, were more frequently reported. These findings highlight the practical value of social media as a supplementary data source and show how LLMs can facilitate this process of extracting useful crash-related information from social media.

Authors

Institutions

Publication Details

Journal
Transportation Letters
Published
2026-07-16
DOI
https://doi.org/10.1080/19427867.2026.2681104
Primary Topic
Sentiment Analysis and Opinion Mining
Type
article
Field-Weighted Citation Impact
0.00
Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
article

Extracting traffic crash information from social media: an LLM-based approach

Reza Golshan Khavas, Mohammadreza Nosrati
Transportation Letters
Sentiment Analysis and Opinion Mining
article

Extracting traffic crash information from social media: an LLM-based approach

Reza Golshan Khavas, Mohammadreza Nosrati
article en

Abstract

Fast detection and analysis of traffic crashes are important steps toward improving road safety. While traditional data sources remain useful, social media platforms have become rich and rapidly growing channels for tracking such incidents. Still, the informal and unstructured nature of user-generated content makes accurate information extraction a challenge. This study explores the potential of using social media data mining and Large Language Models (LLMs) to automatically detect traffic crashes and extract relevant details from social media messages. The research was centered on Damavand County, a high-traffic area located on major routes near Tehran. A full framework was developed, including data collection, preprocessing, and fine-tuning of BERT-based models to classify messages into crash and non-crash categories and further categorize them into ten crash types, reaching accuracies of 91.1% and 89.7%, respectively. Additionally, a LLaMA 3.1 model was fine-tuned for a question-answering task focused on extracting crash location and casualty numbers. It achieved 97% accuracy in identifying fatalities and injuries, and BLEU and METEOR scores of 0.697 and 0.864 in location extraction. Comparison with official records showed that social media data identified 64.1% of crash hotspots found in official reports. Moreover, crashes with higher severity and specific types, like rollover or fall crashes, were more frequently reported. These findings highlight the practical value of social media as a supplementary data source and show how LLMs can facilitate this process of extracting useful crash-related information from social media.

Transportation Letters
Iran University of Science and Technology (IR)
Openalex Percentile: Top 99%
Sentiment Analysis and Opinion Mining
AI Navigator

Ask Laika to Summarize, Analyze, and Connect papers live on the map.

Summarize Papers & Methodologies

Extract key findings, datasets, and comparative methods across publications.

Benchmark Rankings & Visual Analytics

Rank top research institutions, authors, funders, topics, and journals by Field-Weighted Citation Impact (FWCI) and paper volume with instant charts.

Connect Distant Disciplines

Bridge topological clusters on the map to find hidden collaborative intersections.