Sustainable Safety Planning on Two-Lane Highways: A Random Forest Approach for Crash Prediction and Resource Allocation
Open Access
- 8 January 2026
- journal article
- research article
- Published by MDPI AG in Sustainability
- Vol. 18 (2) , 635
Abstract
During the safety planning stage, accurate crash prediction tools are critical for prioritizing countermeasures and allocating resources effectively. Traditional statistical approaches, while long applied in this field, often depend on distributional assumptions that may introduce bias and limit model accuracy. To address these issues, studies have started exploring Machine Learning (ML)-based techniques for crash prediction, particularly for higher functional class roads. However, the application of ML models on two-lane highways remains relatively limited. This study aims to develop an approach to integrate traffic, geometric, and critically, speed-based factors in crash prediction using Random Forest (RF) and SHapley Additive exPlanations (SHAP) techniques. Comparative analysis shows that the RF model improves crash prediction accuracy by up to 25% over the traditional Zero-Inflated Negative Binomial model. SHAP analysis identified AADT, segment length, and average speed as the three most influential predictors of crash frequency, with speed emerging as a key operational factor alongside traditional exposure measures. The strong influence of speed in the RF–SHAP results depicts its critical role in the safety performance of two-lane highways and highlights the value of incorporating detailed operating characteristics into crash prediction models. Overall, the proposed RF–SHAP framework advances roadway safety assessment by offering both predictive accuracy and interpretability, allowing agencies to identify high-impact factors, prioritize countermeasures, and direct resources more efficiently. In doing so, the approach supports sustainable safety management by enabling evidence-based investments, promoting optimal use of limited transportation funds, and contributing to safer, more resilient mobility systems.Keywords
This publication has 58 references indexed in Scilit:
- Hyperparameters and tuning strategies for random forestWIREs Data Mining and Knowledge Discovery, 2019
- Multivariate poisson lognormal modeling of crashes by type and severity on rural two lane highwaysAccident Analysis & Prevention, 2017
- Rule extraction from an optimized neural network for traffic crash frequency modelingAccident Analysis & Prevention, 2016
- Prioritizing Highway Safety Manual’s crash prediction variables using boosted regression treesAccident Analysis & Prevention, 2015
- Utilizing support vector machine in real-time crash risk evaluationAccident Analysis & Prevention, 2013
- The roles of exposure and speed in road safety analysisAccident Analysis & Prevention, 2012
- Development of comprehensive accident models for two-lane rural highways using exposure, geometry, consistency and context variablesAccident Analysis & Prevention, 2010
- Predicting motor vehicle crashes using Support Vector Machine modelsAccident Analysis & Prevention, 2008
- A multivariate Poisson-lognormal regression model for prediction of crash counts by severity, using Bayesian methodsAccident Analysis & Prevention, 2008
- Further notes on the application of zero-inflated models in highway safetyAccident Analysis & Prevention, 2007