Empirical study of road traffic collision (RTCs) rates is challenging at small geographies due to the relative rarity of collisions and the need to account for secular and seasonal trends. In this paper, we demonstrate the successful application of Hidden Markov Models (HMMs) and Generalised Additive Models (GAMs) to describe RTCs time series using monthly data from the city of Edinburgh (STATS19) as a case study. While both models have comparable level of complexity, they bring different advantages. HMMs provide a better interpretation of the data-generating process, whereas GAMs can be superior in terms of forecasting. In our study, both models successfully capture the declining trend and the seasonal pattern with a peak in the autumn and a dip in the spring months. Our best fitting HMM indicates a change in a fast-declining-trend state after the introduction of the 20 mph speed limit in July 2016. Our preferred GAM explicitly models this intervention and provides evidence for a significant further decline in the RTCs. In a comparison between the two modelling approaches, the GAM outperforms the HMM in out-of-sample forecasting of the RTCs for 2018. The application of HMMs and GAMs to routinely collected data such as the road traffic data may be beneficial to evaluations of interventions and policies, especially natural experiments, that seek to impact traffic collision rates.
Popov, V., Nightingale, G., Williams, A. J., Kelly, P., Jepson, R., Milton, K., & Kelly, M. (2021). Trend shifts in road traffic collisions: An application of Hidden Markov Models and Generalised Additive Models to assess the impact of the 20 mph speed limit policy in Edinburgh. Environment and Planning B: Urban Analytics and City Science, 48(9), 2590–2606. https://doi.org/10.1177/2399808320985524