Neural Network-Based Prediction of Traffic Accidents and Congestion Levels Using Real-World Urban Road Data

This study presents a machine learning framework for predicting traffic accident occurrence and congestion intensity using artificial neural networks (ANNs) trained on real-world traffic data collected from a central urban corridor in Egypt. The research aims to enhance proactive traffic management by providing reliable, data-driven forecasts derived from temporal and environmental road features. Sixty-seven traffic observations were recorded over three months, capturing variations across vehicle flow, speed, weather, holidays, and road conditions. Two predictive models were developed: a binary accident detection classifier and a multi-class congestion level estimation classifier. Both models employed Bayesian optimization for hyperparameter tuning and were evaluated under three validation strategies—5-fold cross-validation, 10-fold cross-validation, and resubstitution—combined with different train/test splits. The results demonstrated that the model using 10-fold cross-validation and a 75/25 split achieved the highest accuracy in accident prediction (93.8% on test data), with minimal variance between validation and testing phases. In contrast, resubstitution validation yielded artificially high training accuracy (up to 100%) but lower generalization performance, confirming overfitting risks. Congestion prediction showed similarly strong classification trends, with the optimized model effectively distinguishing between congestion levels under dynamic traffic conditions. These findings validate the use of ANN-based prediction in real-world traffic scenarios and highlight the critical role of validation design in developing robust forecasting models. The proposed approach holds promise for integrating intelligent transportation systems, enabling anticipatory interventions, and enhancing road safety.

Authors

Institutions

Publication Details

Journal
Future Transportation
Published
2025-10-07
DOI
https://doi.org/10.3390/futuretransp5040138
Primary Topic
Traffic Prediction and Management Techniques
Type
article
Field-Weighted Citation Impact
0.00
Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
article

Neural Network-Based Prediction of Traffic Accidents and Congestion Levels Using Real-World Urban Road Data

Khaled R.M. Mahmoud, Mohamed H. Abdelati, Al-Hussein Matar, Baraa A. Alfasi
Future Transportation
Traffic Prediction and Management Techniques
article

Neural Network-Based Prediction of Traffic Accidents and Congestion Levels Using Real-World Urban Road Data

Khaled R.M. Mahmoud, Mohamed H. Abdelati, Al-Hussein Matar, Baraa A. Alfasi
article en

Abstract

This study presents a machine learning framework for predicting traffic accident occurrence and congestion intensity using artificial neural networks (ANNs) trained on real-world traffic data collected from a central urban corridor in Egypt. The research aims to enhance proactive traffic management by providing reliable, data-driven forecasts derived from temporal and environmental road features. Sixty-seven traffic observations were recorded over three months, capturing variations across vehicle flow, speed, weather, holidays, and road conditions. Two predictive models were developed: a binary accident detection classifier and a multi-class congestion level estimation classifier. Both models employed Bayesian optimization for hyperparameter tuning and were evaluated under three validation strategies—5-fold cross-validation, 10-fold cross-validation, and resubstitution—combined with different train/test splits. The results demonstrated that the model using 10-fold cross-validation and a 75/25 split achieved the highest accuracy in accident prediction (93.8% on test data), with minimal variance between validation and testing phases. In contrast, resubstitution validation yielded artificially high training accuracy (up to 100%) but lower generalization performance, confirming overfitting risks. Congestion prediction showed similarly strong classification trends, with the optimized model effectively distinguishing between congestion levels under dynamic traffic conditions. These findings validate the use of ANN-based prediction in real-world traffic scenarios and highlight the critical role of validation design in developing robust forecasting models. The proposed approach holds promise for integrating intelligent transportation systems, enabling anticipatory interventions, and enhancing road safety.

Future TransportationVol. 5(4)
Umm al-Qura University (SA), Minia University (EG)
Openalex Percentile: Top 70%
Traffic Prediction and Management Techniques
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.