Road Traffic Accident Prediction by Machine Learning and GIS: Case Study in Thanh Hoa Province, Vietnam
Abstract
Traffic accidents pose significant challenges for communities worldwide, particularly in Vietnam, where many individuals live on low to middle incomes and where infrastructure often struggles to keep pace with rapid mechanization. This study uses a historical data set of traffic accidents from 2020 to 2023 in Thanh Hoa province, Vietnam, as input data for Random Forest and Spline Regression machine learning models to predict the number of deaths and injuries from traffic accidents. A traffic accident prediction map for 2024 is established from the predicted results of the death and injury numbers obtained from Random Forest combined with GIS technology. The prediction results show superiority in providing detailed information about accidents to intervene to make traffic safer, especially in areas at high risk and during peak periods of accidents. The Random Forest model demonstrated superior performance to Spline Regression, achieving a mean absolute error of 0.012072 for deaths and 0.036323 for injuries, with the R2 values of 0.998663 and 0.996552, respectively. Including lagged variables and adjusting for seasonal effects further improved the accuracy of daily predictions. The study offers an approach to solving traffic accidents in low- and middle-income countries, where traffic accident prediction methods based on historical data sources are still not widely used, with the hope of applying machine learning and GIS in road safety management shortly.
Keywords:
historical data sources, low- and middle-income countries, random forest algorithm, spline regression, traffic accident predictionPublished Online
How to Cite
Issue
Section
License
- Authors retain copyright and grant the journal right of first publication with the work simultaneously licensed under a Creative Commons Attribution License that allows others to share the work with an acknowledgement of the work's authorship and initial publication in this journal.
- Authors are able to enter into separate, additional contractual arrangements for the non-exclusive distribution of the journal's published version of the work (e.g., post it to an institutional repository or publish it in a book), with an acknowledgement of its initial publication in this journal.
- Authors are permitted and encouraged to post their work online (e.g., in institutional repositories or on their website) prior to and during the submission process, as it can lead to productive exchanges, as well as earlier and greater citation of published work (see The Effect of Open Access). As soon as the paper is accepted, finally submitted and edited, the paper will appear in the "OnlineFirst" page of the journal, thus from this point no other internet-based publication is necessary.

