A Predict–Optimize–Evaluate Framework for Sustainable Traffic Safety Resource Allocation: LSTM Forecasting with Triangulated Enforcement Elasticity in Saudi Arabia
Abstract
1. Introduction
1.1. Road Safety as a Global Challenge
1.2. The Saudi Arabian Context
1.3. Machine Learning for Road Safety: A Brief Framing
1.4. Research Gaps and Contributions
- An LSTM forecasting model validated against seven benchmarks (ARIMA, ARIMAX, Gradient Boosting, ETS, Theta, GRU, and a Transformer encoder), with explicit COVID-acute versus post-acute performance breakdown and a full reproducibility package (random seeds, training epochs, early stopping criterion, and validation loss curve disclosed).
- A standardized goal-distance gap metric, drawn loosely from process capability concepts but interpreted as a target-distance indicator only (we do not claim road safety is a controlled process), feeding into a constrained optimization model for enforcement allocation.
- Triangulated enforcement elasticity from three independent sources (COVID dose–response, international meta-analyses, and a Saher camera pilot study), carried through the optimization via Monte Carlo simulation, with an additional patrol-vs-camera sensitivity analysis at α = 0.20 to address the camera-to-patrol transfer assumption.
- Counterfactual evaluation of the 2018 women’s driving reform using three independent statistical methods plus an inverse-variance-weighted synthesis, with causal language calibrated to acknowledge concurrent reforms and trauma-care improvements; locally calibrated economic valuation (Saudi VSL) closes the loop by translating projected casualty reductions into benefit–cost terms.
2. Literature Review
2.1. Machine Learning in Crash Prediction
2.2. Enforcement Effectiveness: Evidence from Meta-Analysis
2.3. Counterfactual Policy Evaluation Methods
2.4. Enforcement Type Heterogeneity: Cameras Versus Patrols
2.5. Goal-Distance Gap Metrics in Non-Manufacturing Settings
3. Conceptual Framework
3.1. Temporal Casualty Patterns
3.2. LSTM Forecasting
3.3. Gap Analysis: A Goal-Distance Metric
3.4. Connecting Monthly Forecasts to Hourly Allocations
3.5. Resource Optimization with Uncertainty
4. Methodology
4.1. Data Sources and Preparation
4.2. LSTM Architecture and Hyperparameter Optimization
4.3. Benchmark Models
4.4. Optimization Model with Triangulated Elasticity
4.5. Counterfactual Policy Evaluation
4.6. Economic Valuation
5. Results
- Roughly 28% of fatal and serious injuries cluster within only about 6% of weekly hours (Thursday–Friday 00:00–04:00 windows).
- The LSTM forecaster achieves RMSE = 2.47 on the 60-month test set, beating ARIMA by 35% and outperforming five classical benchmarks plus a GRU and a Transformer.
- Enforcement elasticity triangulates to α ≈ 0.31 (90% CI 0.25–0.40) across three independent sources.
- The optimized allocation projects a 17.1% casualty reduction (90% CI 13.5–20.6%) with a median benefit–cost ratio of 1.88 (90% CI 1.18–2.97).
- The 2018 reform period was associated with a 22.1% casualty reduction (95% CI 16.4–27.8%), robust across four methods, though attribution to the reform alone is not separable from concurrent changes.
5.1. Temporal Pattern Characterization
5.2. LSTM Forecasting Performance
Multi-Step Forecasting Performance
5.3. Gap Analysis Results
5.4. Counterfactual Policy Evaluation
5.5. Resource Optimization Results
5.6. Economic Valuation and Patrol-Vs-Camera Sensitivity
5.7. Within-Month Pattern Stability
6. Discussion
6.1. Connecting Forecasting to Resource Allocation
6.2. Implementation Considerations and Phased Rollout
6.3. Comparison with International Evidence and the State of the Art
6.4. Enforcement Type Heterogeneity and the Constant-Elasticity Assumption
6.5. Sustainability Dimensions of the Framework
6.6. Limitations
7. Conclusions
- The LSTM outperforms seven benchmarks (five classical plus a GRU and a Transformer) on a 60-month test set, with the 35% improvement over ARIMA split roughly equally between covariate features and architecture.
- Roughly 28% of fatalities cluster within about 6% of weekly hours, a concentration that is stable across years and creates a clear optimization opportunity.
- The optimized allocation shifts 36 percentage points from weekday daytime to high-risk windows, projecting a 17.1% casualty reduction (90% CI 13.5–20.6%) with median BCR 1.88 (90% CI 1.18–2.97). A conservative patrol-elasticity scenario (α = 0.20) projects 11.4% reduction with median BCR 1.21.
- Multi-method counterfactual analysis associates the 2018 post-reform period with a 22% casualty reduction, robust across four estimates, though attribution to the reform itself is not separable from concurrent Saher expansion, awareness campaigns, and trauma-care improvements.
- For practitioners: Exploit temporal concentration for enforcement efficiency; connect forecasting directly to operational decisions; triangulate elasticity from multiple sources rather than importing single literature values; acknowledge causal limits openly; and evaluate policies with multiple methods.
Author Contributions
Funding
Institutional Review Board Statement
Informed Consent Statement
Data Availability Statement
Acknowledgments
Conflicts of Interest
References
- World Health Organization. Global Status Report on Road Safety 2023; WHO: Geneva, Switzerland, 2023; Available online: https://www.who.int/publications/i/item/9789240086517 (accessed on 1 January 2025).
- World Health Organization. Reducing Road Crash Deaths in the Kingdom of Saudi Arabia; WHO Regional Office for the Eastern Mediterranean: Cairo, Egypt; WHO: Geneva, Switzerland, 2023. [Google Scholar]
- United Nations. The Sustainable Development Goals Report 2024; UN: New York, NY, USA, 2024; Available online: https://unstats.un.org/sdgs/report/2024/ (accessed on 1 January 2025).
- International Transport Forum. Road Safety Annual Report 2024; OECD Publishing: Paris, France, 2024; Available online: https://www.itf-oecd.org/road-safety-annual-report-2024 (accessed on 1 January 2025).
- Aldossari, M.; AlDerah, S.; Almogheer, N.; Alhammad, H. 262 Road safety efforts in the KSA under the National Transformation Vision 2030. Inj. Prev. 2022, 28, A41. [Google Scholar] [CrossRef] [Scilit]
- Ehsani, J.P.; Michael, J.P.; MacKenzie, E.J. The future of road safety: Challenges and opportunities. Milbank Q. 2023, 101, 613–636. [Google Scholar] [CrossRef] [Scilit]
- Alharbi, R.J. National trends in road traffic injuries and fatalities in Saudi Arabia from 2000 to 2023. Sci. Rep. 2025, 15, 42838. [Google Scholar] [CrossRef] [Scilit]
- Alhomoud, M.; AlSaleh, E.; Alzaher, B. Car accidents and risky driving behaviors among young drivers from the Eastern Province, Saudi Arabia. Traffic. Inj. Prev. 2022, 23, 471–477. [Google Scholar] [CrossRef] [Scilit]
- General Authority for Statistics; Kingdom of Saudi Arabia. Transport and Communications Statistics: Annual Reports 2018–2024; GASTAT: Riyadh, Saudi Arabia, 2024. Available online: https://www.stats.gov.sa (accessed on 1 January 2025).
- Williams, A.F. Teenage drivers: Patterns of risk. J. Saf. Res. 2003, 34, 5–15. [Google Scholar] [CrossRef] [Scilit] [PubMed]
- Silva, P.B.; Andrade, M.; Ferreira, S. Machine learning applied to road safety modeling: A systematic literature review. J. Traffic Transp. Eng. (Engl. Ed.) 2020, 7, 775–790. [Google Scholar] [CrossRef] [Scilit]
- Gutierrez-Osorio, C.; Pedraza, C. Modern data sources and techniques for analysis and forecast of road accidents: A review. J. Traffic Transp. Eng. (Engl. Ed.) 2020, 7, 432–446. [Google Scholar] [CrossRef] [Scilit]
- Li, Y.; Bai, F.; Lyu, C.; Qu, X.; Liu, Y. A systematic review of generative adversarial networks for traffic state prediction. Inf. Fusion 2025, 115, 102915. [Google Scholar] [CrossRef] [Scilit]
- Afandizadeh, S.; Abdolahi, S.; Mirzahossein, H. Deep learning algorithms for traffic forecasting: A comprehensive review. J. Adv. Transp. 2024, 2024, 9981657. [Google Scholar] [CrossRef] [Scilit]
- Montgomery, D.C. Statistical Quality Control: A Modern Introduction, 7th ed.; Wiley: New York, NY, USA, 2012. [Google Scholar]
- Brodersen, K.H.; Gallusser, F.; Koehler, J.; Remy, N.; Scott, S.L. Inferring causal impact using Bayesian structural time-series models. Ann. Appl. Stat. 2015, 9, 247–274. [Google Scholar] [CrossRef] [Scilit]
- Abadie, A.; Diamond, A.; Hainmueller, J. Synthetic control methods for comparative case studies. J. Am. Stat. Assoc. 2010, 105, 493–505. [Google Scholar] [CrossRef] [Scilit]
- Abadie, A. Using synthetic controls: Feasibility, data requirements, and methodological aspects. J. Econ. Lit. 2021, 59, 391–425. [Google Scholar] [CrossRef] [Scilit]
- Wagner, A.K.; Soumerai, S.B.; Zhang, F.; Ross-Degnan, D. Segmented regression analysis of interrupted time series studies in medication use research. J. Clin. Pharm. Ther. 2002, 27, 299–309. [Google Scholar] [CrossRef] [Scilit]
- Elvik, R.; Høye, A.; Vaa, T.; Sørensen, M. The Handbook of Road Safety Measures, 2nd ed.; Emerald: Bingley, UK, 2009. [Google Scholar]
- Phillips, R.O.; Ulleberg, P.; Vaa, T. Meta-analysis of the effect of road safety campaigns on accidents. Accid. Anal. Prev. 2011, 43, 1204–1218. [Google Scholar] [CrossRef] [Scilit]
- Chang, L.-Y.; Chen, W.-C. Data mining of tree-based models to analyze freeway accident frequency. J. Saf. Res. 2005, 36, 365–375. [Google Scholar] [CrossRef] [Scilit]
- Mannering, F.L.; Shankar, V.; Bhat, C.R. Unobserved heterogeneity and the statistical analysis of highway accident data. Anal. Methods Accid. Res. 2016, 11, 1–16. [Google Scholar] [CrossRef] [Scilit]
- Chen, C.; Zhang, G.; Qian, Z.; Tarefder, R.A.; Tian, Z. Investigating driver injury severity patterns in rollover crashes using support vector machine models. Accid. Anal. Prev. 2016, 90, 128–139. [Google Scholar] [CrossRef] [Scilit] [PubMed]
- Hochreiter, S.; Schmidhuber, J. Long short-term memory. Neural Comput. 1997, 9, 1735–1780. [Google Scholar] [CrossRef] [Scilit] [PubMed]
- Tang, J.; Zhu, R.; Wu, F.; He, X.; Huang, J.; Zhou, X.; Sun, Y. Deep spatio-temporal dependent convolutional LSTM network for traffic flow prediction. Sci. Rep. 2025, 15, 11743. [Google Scholar] [CrossRef] [Scilit]
- Ma, C.; Huang, X.; Zhao, Y.; Wang, T.; Du, B. GRU-LSTM model based on the SSA for short-term traffic flow prediction. J. Intell. Connect. Veh. 2025, 8, 9210051. [Google Scholar] [CrossRef] [Scilit]
- Zhou, H.; Zhang, S.; Peng, J.; Zhang, S.; Li, J.; Xiong, H.; Zhang, W. Informer: Beyond efficient transformer for long sequence time-series forecasting. Proc. AAAI Conf. Artif. Intell. 2021, 35, 11106–11115. [Google Scholar] [CrossRef] [Scilit]
- Wu, H.; Xu, J.; Wang, J.; Long, M. Autoformer: Decomposition transformers with auto-correlation for long-term series forecasting. Adv. Neural Inf. Process Syst. 2021, 34, 22419–22430. [Google Scholar]
- Bai, S.; Kolter, J.Z.; Koltun, V. An empirical evaluation of generic convolutional and recurrent networks for sequence modeling. arXiv 2018, arXiv:1803.01271. [Google Scholar] [CrossRef] [Scilit]
- Li, H.; Chen, L. Traffic accident risk prediction based on deep learning and spatiotemporal features of vehicle trajectories. PLoS ONE 2025, 20, e0320656. [Google Scholar] [CrossRef] [Scilit]
- Elvik, R. Effects on accidents of automatic speed enforcement in Norway. Transp. Res. Rec. 1997, 1595, 14–19. [Google Scholar] [CrossRef] [Scilit]
- Goel, R.; Tiwari, G.; Varghese, M.; Bhalla, K.; Agrawal, G.; Saini, G.; Jha, A.; John, D.; Saran, A.; White, H.; et al. Effectiveness of road safety interventions: An evidence and gap map. Campbell Syst. Rev. 2024, 20, e1367. [Google Scholar] [CrossRef] [Scilit]
- Imbens, G.W.; Rubin, D.B. Causal Inference for Statistics, Social, and Biomedical Sciences: An Introduction; Cambridge University Press: New York, NY, USA, 2015. [Google Scholar]
- Imbens, G.W. Statistical significance, p-values, and the reporting of uncertainty. J. Econ. Perspect. 2021, 35, 157–174. [Google Scholar] [CrossRef] [Scilit]
- Gibbs, J.P. Crime, Punishment, and Deterrence; Elsevier: New York, NY, USA, 1975. [Google Scholar]
- Nagin, D.S. Deterrence in the twenty-first century. Crime. Justice 2013, 42, 199–263. [Google Scholar] [CrossRef] [Scilit] [PubMed]
- De Pauw, E.; Daniels, S.; Brijs, T.; Hermans, E.; Wets, G. Behavioural effects of fixed speed cameras on motorways. Accid. Anal. Prev. 2014, 73, 132–140. [Google Scholar] [CrossRef] [Scilit] [PubMed]
- Leggett, L.M.W. Using police enforcement to prevent road crashes: The randomised scheduled management system. In Policing for Prevention; Homel, R., Ed.; Criminal Justice Press: Monsey, NY, USA, 1997; pp. 211–253. [Google Scholar]
- Newstead, S.V.; Cameron, M.H.; Leggett, L.M.W. The crash reduction effectiveness of a network-wide traffic police deployment system. Accid. Anal. Prev. 2001, 33, 393–406. [Google Scholar] [CrossRef] [Scilit]
- Snoek, J.; Larochelle, H.; Adams, R.P. Practical Bayesian optimization of machine learning algorithms. Adv. Neural Inf. Process Syst. 2012, 25, 2951–2959. [Google Scholar]
- Hyndman, R.J.; Athanasopoulos, G. Forecasting: Principles and Practice, 3rd ed.; OTexts: Melbourne, Australia, 2021; Available online: https://otexts.com/fpp3/ (accessed on 1 January 2025).
- Assimakopoulos, V.; Nikolopoulos, K. The theta model: A decomposition approach to forecasting. Int. J. Forecast. 2000, 16, 521–530. [Google Scholar] [CrossRef] [Scilit]
- Miller, T.R. Variations between countries in values of statistical life. J. Transp. Econ. Policy 2000, 34, 169–188. [Google Scholar]
- Viscusi, W.K.; Masterman, C.J. Income elasticities and global values of a statistical life. J. Benefit-Cost. Anal. 2017, 8, 226–250. [Google Scholar] [CrossRef] [Scilit]
- Folkard, S.; Tucker, P. Shift work, safety and productivity. Occup. Med. 2003, 53, 95–101. [Google Scholar] [CrossRef] [Scilit]










| Model | RMSE | MAE | MASE | vs. ARIMA (% Improvement in RMSE) | COVID-Acute (2020–2021) | Post-Acute (2022–2024) |
|---|---|---|---|---|---|---|
| ARIMA | 3.78 | 3.01 | 1.22 | Baseline | 4.21 | 3.42 |
| ARIMAX | 3.02 | 2.41 | 1.01 | −20% | 3.28 | 2.81 |
| Grad. Boosting | 3.12 | 2.54 | 1.05 | −17% | 3.45 | 2.86 |
| ETS | 3.41 | 2.73 | 1.10 | −10% | 3.89 | 3.04 |
| Theta | 3.28 | 2.64 | 1.08 | −13% | 3.72 | 2.91 |
| GRU | 2.66 | 2.13 | 0.89 | −30% | 2.81 | 2.55 |
| Transformer | 2.59 | 2.07 | 0.87 | −32% | 2.74 | 2.49 |
| LSTM (proposed) | 2.47 | 1.98 | 0.83 | −35% | 2.61 | 2.38 |
| Method | Reduction | 95% CI | RMSPE |
|---|---|---|---|
| LSTM Counterfactual | −22.1% | [−27.8%, −16.4%] | 2.47 |
| BSTS | −20.3% | [−26.1%, −14.5%] | 2.91 |
| Synthetic Control | −18.5% | [−24.8%, −12.2%] | 2.84 |
| Inverse-variance synthesis (meta-estimate) | −21.3% | [−27.2%, −15.4%] | – |
| Model | h = 1 (Monthly) | h = 3 (Quarterly) | h = 6 (Semi-Annual) | h = 12 (Annual) |
|---|---|---|---|---|
| ARIMA | 3.78 | 4.53 | 5.12 | 6.41 |
| ARIMAX | 3.02 | 3.71 | 4.33 | 5.48 |
| GRU | 2.66 | 3.21 | 3.89 | 5.02 |
| Transformer | 2.59 | 3.14 | 3.76 | 4.87 |
| Time Window | Current | Optimized | Change |
|---|---|---|---|
| Tier 1: Thu–Fri 00:00–04:00 | 28% | 56% | +28 pp |
| Tier 2: Summer augmentation | 8% | 28% | +20 pp |
| Tier 3: Other weekend hours | 24% | 12% | −12 pp |
| Tier 4: Weekday daytime | 40% | 4% | −36 pp |
Disclaimer/Publisher’s Note: The statements, opinions and data contained in all publications are solely those of the individual author(s) and contributor(s) and not of MDPI and/or the editor(s). MDPI and/or the editor(s) disclaim responsibility for any injury to people or property resulting from any ideas, methods, instructions or products referred to in the content. |
© 2026 by the authors. Licensee MDPI, Basel, Switzerland. This article is an open access article distributed under the terms and conditions of the Creative Commons Attribution (CC BY) license.
Share and Cite
Moosa, M.H.; Alharbi, F.; Almoshaogeh, M.; Irfan, O.M.; Shewakh, W.M. A Predict–Optimize–Evaluate Framework for Sustainable Traffic Safety Resource Allocation: LSTM Forecasting with Triangulated Enforcement Elasticity in Saudi Arabia. Sustainability 2026, 18, 5316. https://doi.org/10.3390/su18115316
Moosa MH, Alharbi F, Almoshaogeh M, Irfan OM, Shewakh WM. A Predict–Optimize–Evaluate Framework for Sustainable Traffic Safety Resource Allocation: LSTM Forecasting with Triangulated Enforcement Elasticity in Saudi Arabia. Sustainability. 2026; 18(11):5316. https://doi.org/10.3390/su18115316
Chicago/Turabian StyleMoosa, Majed H., Fawaz Alharbi, Meshal Almoshaogeh, Osama M. Irfan, and Walid M. Shewakh. 2026. "A Predict–Optimize–Evaluate Framework for Sustainable Traffic Safety Resource Allocation: LSTM Forecasting with Triangulated Enforcement Elasticity in Saudi Arabia" Sustainability 18, no. 11: 5316. https://doi.org/10.3390/su18115316
APA StyleMoosa, M. H., Alharbi, F., Almoshaogeh, M., Irfan, O. M., & Shewakh, W. M. (2026). A Predict–Optimize–Evaluate Framework for Sustainable Traffic Safety Resource Allocation: LSTM Forecasting with Triangulated Enforcement Elasticity in Saudi Arabia. Sustainability, 18(11), 5316. https://doi.org/10.3390/su18115316

