Related Experiment Video
Updated: Jul 11, 2025

An R-Based Landscape Validation of a Competing Risk Model
Published on: September 16, 2022
Geographically weighted random forests for macro-level crash frequency prediction
Dongyu Wu1, Yingheng Zhang1, Qiaojun Xiang1
1Jiangsu Key Laboratory of Urban ITS, Southeast University, China; Jiangsu Province Collaborative Innovation Center of Modern Urban Traffic Technologies, Southeast University, China; School of Transportation, Southeast University, China.
Abstract:
Machine learning models such as random forests (RF) have been widely applied in the field of road safety. RF is a prominent algorithm, overcoming the limitations of using a single decision tree such as overfitting and instability. However, the traditional RF is a global concept, and thus may fail to capture spatial variability. In macro-level analysis of road safety, the relationship between crash frequency and risk factors can vary spatially. To address this issue, we employ a modified RF algorithm, named geographically weighted random forest (GWRF). Based on the data from London at the level of Middle-super-output-area (MSOA), the predictive performances of RF and GWRF are compared using mean absolute error (MAE) and root mean square error (RMSE). Moreover, considering MSOAs are geographically connected with each other, several factors related to the discrepancies between adjacent zones are also included in the models. Our results indicate that GWRF outperforms the traditional RF and GWR when an appropriate bandwidth is selected. We further explore the effects of multicollinearity on model performance. The results show that prediction accuracy of GWRF models are not susceptible to the multicollinearity. However, the importance values of those variables with multicollinearity may reduce. Finally, and of equal importance, it is found that the importance of each explanatory variable varies across zones. The density of minor road makes the highest contribution to crash frequency in downtown area, while the crash frequency in peripheral area is more sensitive to the discrepancy of road environment between MSOAs. With such information, road safety interventions can be designed and implemented according to the locally important factors, avoiding thus general guidelines addressed for the entire city.
More Related Videos
10:46A Method of Trigonometric Modelling of Seasonal Variation Demonstrated with Multiple Sclerosis Relapse Data
Published on: December 9, 2015
06:55Inverse Probability of Treatment Weighting Propensity Score using the Military Health System Data Repository and National Death Index
Published on: January 8, 2020
Related Concept Videos
Determination of Expected Frequency
Statistical Methods for Analyzing Epidemiological Data
Random Variables
Uppercase letters such as X or Y denote a random variable. Lowercase letters like x or y denote the value of a random variable. If X is a random variable, then X is written in words, and x is given as a number.
For example, let X = the...
Survival Tree
Building a Survival Tree
Constructing a...
Parametric Survival Analysis: Weibull and Exponential Methods
Weibull Distribution
The Weibull distribution is a flexible model used in parametric survival analysis. It can handle both increasing and decreasing hazard rates, depending on its shape parameter...
Prediction Intervals
However, the point estimate is most likely not the exact value of the population parameter, but close to it. After calculating point estimates, we construct interval estimates, called confidence intervals or prediction intervals. This prediction interval comprises a range of values unlike the point estimate and is a better predictor of the observed sample value, y.