Skip to main navigation Skip to search Skip to main content

Predictive Accuracy of Statistical and Machine Learning Models on Perceived Feelings of Safety in South Africa

  • Boitumelo Mooketsi
  • , Johannes Tshepiso Tsoku
  • , Patrick Malose Leeto Shogole*
  • *Corresponding author for this work

Research output: Contribution to journal › Article › peer-review

Abstract

This study compares the predictive performance of traditional multivariate time series models and machine learning (ML) techniques in modelling perceived feelings of safety among South African residents. The analysis uses secondary data from the Governance, Public Safety, and Justice Survey conducted by Statistics South Africa, covering 2013/2014 to 2023/2024 and comprising 215,301 observations. Perceived safety while walking alone in the neighbourhood during the day and after dark served as the response variables, while socio-economic characteristics such as age, sex, province, and main source of income were included as predictors. A Vector Autoregressive Moving Average (VARMA) model was estimated alongside Random Forest (RF) and Light Gradient Boosting Machine (LightGBM) algorithms. VARMA (2,2) and VARMA (3,1) provided the best statistical fit for daytime and after-dark safety perceptions, respectively. However, ML models achieved higher predictive accuracy overall, with RF outperforming both LightGBM and VARMA in capturing nonlinear relationships and short-term dynamics. The findings underscore the value of integrating ML into public safety modelling to enhance evidence-based planning and socio-economic policy development in South Africa. Future research should consider integrating higher-frequency and alternative data sources, such as administrative crime statistics and real-time behavioural data to improve model sensitivity and forecasting accuracy.

Original languageEnglish
Article number66
JournalSafety
Volume12
Issue number3
DOIs
Publication statusPublished - Jun 2026
Externally publishedYes

Keywords

  • LightGBM
  • Random Forest
  • VAR
  • VARMA
  • feelings of safety
  • machine learning

Fingerprint

Dive into the research topics of 'Predictive Accuracy of Statistical and Machine Learning Models on Perceived Feelings of Safety in South Africa'. Together they form a unique fingerprint.

Cite this