Logo Lanfrica

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

Domain:

mobility

Record type:

paper
Creator:
BarKhaAl-Moh
Publisher:
MDP
Host:
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.

Similar