An Intelligent Machine-Learning Framework for Short-Term Traffic Accident Prediction in Urban Roads
Aissam Bekkari, Abderrazzak Nejeoui
Key points
From the paper's conclusion- This study proposes a machine-learning framework to predict urban traffic accidents over a short time using traffic, weather, congestion, and route-condition information collected in Marrakech, Morocco.
Abstract
Urban traffic accidents remain an important road-safety problem, especially in densely populated cities where traffic conditions can change quickly and increase the possibility of accidents. This study proposes a machine-learning framework to predict urban traffic accidents over a short time using traffic, weather, congestion, and route-condition information collected in Marrakech, Morocco. The dataset was collected at five-minute intervals over a period of approximately six months and contains about 890,000 traffic observations and 3980 recorded accident events. The proposed approach includes several steps, including data preprocessing, feature analysis, Principal Component Analysis (PCA), chronological data splitting, treatment of class imbalance, machine-learning classification, and performance evaluation. The dataset was divided chronologically into 65% for training, 10% for validation, and 25% for testing. The different sampling methods were applied only to the training data to avoid affecting the validation and testing sets. Four sampling strategies were looked at: Random Over-Sampling (ROS), Synthetic Minority Over-sampling Technique (SMOTE), Random Under-Sampling (RUS), and Cluster Centroids (CC). After that several traditional machine-learning classifiers were tested. Among the evaluated classifiers, XGBoost achieved the strongest predictive performance. The results show that ROS and SMOTE improve the detection of accident cases, whereas RUS and CC lead to comparatively higher classification errors. These results indicate that an XGBoost-based approach can be useful for predicting whether an accident will occur during the following five-minute interval. The proposed framework provides a basis for developing real-time intelligent traffic-safety systems. Future work will consider additional spatial, temporal, environmental, and behavioral features and will evaluate the framework using datasets from other urban areas.
Read the paper
Discussion
Science Skim's AI key points, plus readers' public thoughts
Readers' thoughts
No reader thoughts yet.
Related papers
- Predicting Traffic-Accident Severity in Sarajevo (2019–2025): An Imbalance-Aware, Interpretable Machine-Learning StudySystems · 2026
- Enhancing Road Safety through Advanced Machine Learning: A Comparative Study of Tree Ensembles, Neural Networks, and Integrated Models for Multi-class Accident Severity Prediction under Class ImbalanceInternational journal of intelligent engineering and systems · 2026
- A data-driven supervised machine learning study for road-accident prediction in smart transportation operations and planning in smart citiesFrontiers in Future Transportation · 2026
- TRIDENT-Risk: An AI-driven temporal ensemble framework for proactive high-severity accident risk forecasting in Intelligent Transportation Systems.PloS one · 2026
- A Multi-Model Machine Learning Framework for Predicting and Ranking High-Risk Urban Intersections in RiyadhSustainability · 2026
- Prediction of Large-Scale Traffic Accident Severity in Qatar: A Binary Reformulation Approach for Extreme Class Imbalance with Interpretable AIFuture Transportation · 2026