Forecasting High-Risk Traffic Zones Using Machine Learning for Enhanced Road Safety
Main Article Content
Abstract
Road traffic accidents continue to pose serious global public health and economic challenges. In Malaysia alone, traffic-related incidents caused an estimated RM25 billion in losses in 2023. This study presents a two-part machine learning framework: Part A focuses on predicting accident severity, while Part B uses these predictions to forecast high-risk traffic zones through spatial and temporal analysis. Accident data from 2023 was selected from the UK Road Safety dataset to reflect current traffic patterns, infrastructure, and enforcement efforts. Five classifiers, Logistic Regression, Decision Tree, Random Forest, XGBoost, and K-Nearest Neighbors, were trained and evaluated. A stacking ensemble combining the top three models was constructed to enhance predictive accuracy. The models were assessed using accuracy, precision, recall, and F1-score, with results showing that the ensemble method outperformed individual classifiers. The findings demonstrate the potential of ensemble learning in identifying high-risk zones and supporting proactive road safety planning.
Manuscript received: 3 Aug 2025 | Revised: 21 Sep 2025 | Accepted: 28 Sep 2025 | Published: 30 Nov 2025
Article Details

This work is licensed under a Creative Commons Attribution-NonCommercial-NoDerivatives 4.0 International License.
References
WHO, “Road Traffic Injuries Fact Sheet; World Health Organization: Geneva,” World Health Organization, 2023.
URL:https://www.who.int/news-room/fact-sheets/detail/road-traffic-injuries (Accessed: 21 August 2025).
M.Å. Belin, M. Khayesi and N. Tran, “’Road safety is no accident’: building efficient road safety lead agencies, strategies and targets in the world, 2009–2023,” Injury Prevention, 2025.
DOI: https://doi.org/10.1136/ip-2024-045601.
WHO, “Decade of Action for Road Safety 2021–2030,” World Health Organization, 2021.
URL:https://www.who.int/teams/social-determinants-of-health/safety-and-mobility/decade-of-action-for-road-safety-2021-2030. (Accessed: 21 August 2025).
J.S. Reddy, M.R. Rashmi and H.P. Lee, “Road accident prediction in highways using machine learning algorithms,” 2024 5th International Conference on Smart Electronics and Communication (ICOSEC), pp. 1-6, 2024.
DOI: https://doi.org/10.1109/ICOSEC61587.2024.10722164
M.S.A. Samad et al, "Investigation on the effect of Malaysian anthropometric size in vehicle crash safety by using finite element method," Journal of the Society of Automotive Engineers Malaysia, vol. 5, no. 3, pp. 449-466, 2021.
DOI: https://doi.org/10.56381/jsaem.v5i3.187
A. Loke, “Road Accidents Cost Malaysia RM25 Billion in 2023,” The Star, 11 July 2024.
URL:https://www.thestar.com.my/news/nation/2024/07/11/road-accidents-cost-malaysia-rm25bil-in-economic-value-in-2023-says-transport-minister (Accessed: 21 August 2025)
M. Sohail, M. Khan and S. Shah, “Behavioral and environmental determinants of road accidents: Insights for safety policy,” Journal of Safety Research, vol. 86, pp. 31–41, 2023.
DOI: https://doi.org/10.1016/j.jsr.2023.01.004
X. Zhao, Y. Xu and R. Liang, “Traffic accident severity prediction using ensemble machine learning methods,” Applied Intelligence, vol. 52, pp. 14478-14495, 2022.
DOI: https://doi.org/10.1007/s10489-022-03117-y
Y. Li, H. Wang and J. Sun, “Machine learning applications in traffic accident prediction: A comprehensive review,” Accident Analysis & Prevention, vol. 181, p. 106950, 2023.
DOI: https://doi.org/10.1016/j.aap.2022.106950
L, Zhang, Q, Chen and H. Zhao, “Deep learning for traffic safety: A review of methods and applications,” IEEE Transactions on Intelligent Transportation Systems, 25, 1203–1217, 2024.
DOI: https://doi.org/10.1109/TITS.2023.3299847
Aldhari, M. Almoshaogeh, A. Jamal, F. Alharbi, M. Alinizzi and H. Haider, "Severity prediction of highway crashes in Saudi Arabia using machine learning techniques," Applied Sciences, vol. 13, no. 1, p. 233, 2022.
DOI: https://doi.org/10.3390/app13010233
A. Celik and O. Sevli, "Predicting traffic accident severity using machine learning techniques," Turk Doga ve Fen Dergisi, vol. 11, no. 3, pp. 79-83, 2022.
DOI: https://doi.org/10.46810/tdfd.1136432
J. Tang, J. Liang, C. Han, Z. Li and H. Huang, "Crash injury severity analysis using a two-layer Stacking framework," Accident Analysis & Prevention, vol. 122, pp. 226-238, 2019.
DOI: https://doi.org/10.1016/j.aap.2018.10.016
N. Ahmad, B. Wali and A.J. Khattak, "Heterogeneous ensemble learning for enhanced crash forecasts–a frequentist and machine learning based stacking framework," Journal of safety research, vol. 84, pp. 418-434, 2023.
DOI: https://doi.org/10.1016/j.jsr.2022.12.005
I. Aldhari, M. Almoshaogeh, A. Jamal, F. Alharbi, M. Alinizzi, and H. Haider, "Severity prediction of highway crashes in Saudi Arabia using machine learning techniques," Applied Sciences, vol. 13, no. 1, p. 233, 2022.
DOI: https://doi.org/10.3390/app13010233
J.S.V. Leong and K.B. Gan, "Cuffless Non-invasive Blood Pressure Measurement Using CNN-LSTM Model: A Correlation Study," International Journal on Robotics, Automation and Sciences, vol. 5, no. 2, pp. 25-32, 2023.
DOI: https://doi.org/10.33093/ijoras.2023.5.2.3
T. Tai, S. Haw, W. Kong and K. Ng, "Performance Evaluation of Machine Learning Techniques on Resolution Time Prediction in Helpdesk Support System," International Journal on Robotics, Automation and Sciences, vol. 6, no. 2, pp. 59-68, 2024.