October 22, 2025
The GIST Engineers use artificial intelligence to predict car crashes
Sadie Harley
scientific editor
Robert Egan
associate editor
Editors' notes
This article has been reviewed according to Science X's editorial process and policies. Editors have highlighted the following attributes while ensuring the content's credibility:
fact-checked
peer-reviewed publication
reputable news agency
proofread

If you change the timing of a traffic light from 20 seconds to 30 seconds, a new artificial intelligence tool developed by Johns Hopkins University researchers can predict how many more—or how many fewer—accidents will happen at that intersection.
"These are complex events affected by numerous variables, like weather, traffic patterns, roadway design and driver behavior," said senior author Hao "Frank" Yang, an assistant professor of civil and systems engineering at Johns Hopkins. "With SafeTraffic Copilot, our goal is to simplify this complexity and provide infrastructure designers and policymakers with data-based insights to mitigate crashes.
"Generative AI has a big potential to improve the trustworthiness of accident prediction," he continued.
Yang's team of researchers hopes to help reduce the number of crashes and fatalities that occur each year. The team's AI uses large language models to process, understand, and learn from massive amounts of data. SafeTraffic Copilot was trained using descriptions of more than 66,000 accidents, including road conditions, numerical values such as blood alcohol levels, satellite images and on-site photography.
The work is published in the journal Nature Communications.
The model can evaluate both individual and combined risk factors, offering a more detailed understanding of how these elements influence safety.
It can also tell decision-makers how much faith to place in its predictions, Yang said, which are known as confidence scores. These confidence scores are crucial, he said, because artificial intelligence is a black box—no one knows how it makes decisions. This uncertainty has previously deterred AI's use in high-risk settings like traffic safety.
On Maryland highways so far this year, 381 people have been killed in crashes, according to data from the Maryland Highway Safety Office. Fatalities have steadily risen over the past decade, from 466 deaths in 2013 to 621 in 2023.
Yang's model shows that alcohol and aggressive driving are the most dangerous factors, contributing to three times more crashes than other causes.
Currently, Maryland and other states use another type of artificial intelligence called machine learning, Yang said, in which a computer is shown comprehensive data from past accidents to assess the safety of individual roads and intersections.
"With machine learning," he said, "if a sample is not similar to your training samples, you cannot generate a prediction. Generative AI can give clear 'what-if' capabilities. If you change the timing of this traffic light … what will happen?"
SafeTraffic Copilot improves its predictions with additional information, allowing customization for different states or cities, Yang said.
"I really want to benefit our local communities of Baltimore City, Baltimore County and Maryland," he said.
The use of large language models means the artificial intelligence can also adapt to traffic conditions in other countries and cultures, Yang said—as easily as providing a paragraph describing the differences.
"I also want to expand this research to other countries," he said. "In South Asian countries like Taiwan or the Philippines, most crashes are motorcycle crashes, and the way they drive is different as well. With previous models, incorporating drivers' behavior or cultures is impossible."
More information: Yang Zhao et al, SafeTraffic Copilot: adapting large language models for trustworthy traffic safety assessments and decision interventions, Nature Communications (2025). DOI: 10.1038/s41467-025-64574-w
Journal information: Nature Communications
2025 Baltimore Sun. Distributed by Tribune Content Agency, LLC.
Citation: Engineers use artificial intelligence to predict car crashes (2025, October 22) retrieved 22 October 2025 from https://techxplore.com/news/2025-10-artificial-intelligence-car.html This document is subject to copyright. Apart from any fair dealing for the purpose of private study or research, no part may be reproduced without the written permission. The content is provided for information purposes only.
Explore further
AI-based model can help traffic engineers predict future sites of possible crashes
Feedback to editors