journal article·2026-02-11Open access

Traffic Accident Prediction via Patch-Aware and Basis Representation in Time Series Modeling

Peizhe Zhang, Qiang Xie

Applied Sciences· Volume 16· Issue 4

Abstract

Traffic accident prediction is of great importance for intelligent transportation systems and public safety management. Unlike conventional traffic flow forecasting tasks, accident data are characterized by low occurrence frequency and highly imbalanced distributions, with near-zero values during most time periods and occasional concentrated bursts. Accident occurrences are also strongly influenced by daily and weekly periodic patterns, resulting in mixed characteristics of low baseline levels, abrupt peaks, and long-term trends. These properties make traditional time series forecasting methods based on stationarity assumptions or single-period modeling less effective. To address this issue, this study proposes a time series forecasting framework that integrates patch-aware local perception with global basis representation. Specifically, this study aims to improve traffic accident time-series forecasting accuracy under sparse and bursty conditions by integrating patch-aware local perception with global basis representation. The patch-level structure captures fine-grained fluctuations in accident sequences by modeling short-term local variations, while basis decomposition provides robust modeling of overall trends through a set of global latent components, leading to complementary effects at both local and global levels. Experimental results on the I-405 highway accident dataset demonstrate that the proposed model significantly outperforms baseline methods, reducing mean squared error (MSE) and mean absolute error (MAE) by approximately 9.7% and 12.6% compared with PatchTST, and by 22.3% and 28.2% compared with Basisformer. Furthermore, experiments on public benchmark datasets ETTh1 and Electricity show that the proposed method achieves comparable or superior performance to mainstream models, indicating its effectiveness and generalization ability across different types of time series scenarios.
Source: crossref · Quality: baseline

Research context

OpenAlex topics: Traffic Prediction and Management Techniques · Traffic control and management · Traffic and Road Safety

SciVX discovery tags are terminology-based. OpenAlex topics are source-provided classifications.

Affiliations

School of Civil Engineering, Chongqing University, Chongqing 400045, China

State Key Laboratory of Safety and Resilience of Civil Engineering in Mountain Area, Chongqing University, Chongqing 400045, China

Key Laboratory of New Technology for Construction of Cities in Mountain Area, Ministry of Education, Chongqing University, Chongqing 400045, China

References (21)

Show source-provided references
1. Marcillo, P., Valdivieso Caraguay, Á.L., and Hernández-Álvarez, M. (2022). A Systematic Literature Review of Learning-Based Traffic Accident Prediction Models Based on Heterogeneous Sources. Appl. Sci., 12.10.3390/app12094529 ↗
2. Dimitrijevic, B., Khales, S.D., Asadi, R., and Lee, J. (2022). Short-Term Segment-Level Crash Risk Prediction Using Advanced Data Modeling with Proactive and Reactive Crash Data. Appl. Sci., 12.10.3390/app12020856 ↗
3. Cai, B., and Di, Q. (2023). Different Forecasting Model Comparison for Near Future Crash Prediction. Appl. Sci., 13.10.3390/app13020759 ↗
4. Road Traffic Accident Prediction Modelling: A Literature Review
5. A Review of Road Traffic Accident Prediction Methods
6. Finding Structure in Time10.1207/s15516709cog1402_1 ↗
7. Long Short-Term Memory10.1162/neco.1997.9.8.1735 ↗
8. Sameen, M.I., and Pradhan, B. (2017). Severity Prediction of Traffic Accidents with Recurrent Neural Networks. Appl. Sci., 7.10.3390/app7060476 ↗
9. Wen, Q., Zhou, T., Zhang, C., Chen, W., Ma, Z., Yan, J., and Sun, L. (2023). Transformers in Time Series: A Survey. Proceedings of the International Joint Conference on Artificial Intelligence (IJCAI), IJCAI.10.24963/ijcai.2023/759 ↗
10. Informer: Beyond Efficient Transformer for Long Sequence Time-Series Forecasting
11. Wu, Q., Li, X., Wang, J., and Long, M. (2021, January 6–14). Autoformer: Decomposition Transformers with Auto-Correlation for Long-Term Series Forecasting. Proceedings of the 35th International Conference on Neural Information Processing Systems, Online.
12. Zhou, T., Ma, Z., Wen, Q., Wang, X., Sun, L., and Jin, R. (2022, January 17–23). FEDformer: Frequency Enhanced Decomposed Transformer for Long-term Series Forecasting. Proceedings of the International Conference on Machine Learning, Baltimore, MD, USA.
13. Peng, X., Lin, Y., Cao, Q., Cen, Y., Zhuang, H., and Lin, Z. (2022, January 8–12). Traffic Anomaly Detection in Intelligent Transport Applications with Time Series Data Using Informer. Proceedings of the 2022 IEEE 25th International Conference on Intelligent Transportation Systems (ITSC), Macau, China.10.1109/ITSC55140.2022.9922142 ↗
14. Wei, H., Song, Q., Dan, C., He, Z., Li, H., and Pu, M. (2025). Performance Evaluation of ARIMA, Autoformer, and Symmetric LSTNFCL Models for Traffic Accident Emergency Prediction. Symmetry, 17.10.3390/sym17050639 ↗
15. Dosovitskiy, A., Beyer, L., Kolesnikov, A., Weissenborn, D., Zhai, X., Unterthiner, T., Dehghani, M., Minderer, M., Heigold, G., and Gelly, S. (2021, January 3–7). An Image Is Worth 16 × 16 Words: Transformers for Image Recognition at Scale. Proceedings of the 9th International Conference on Learning Representations (ICLR), Virtual Event.
16. Nie, Y., Nguyen, N.H., Sinthong, P., and Kalagnanam, J. (2023, January 1–5). A Time Series Is Worth 64 Words: Long-Term Forecasting with Transformers. Proceedings of the 11th International Conference on Learning Representations (ICLR), Kigali, Rwanda.
17. Ni, Z., Yu, H., Liu, S., Li, J., and Lin, W. (2023). BasisFormer: Attention-Based Time Series Forecasting with Learnable and Interpretable Basis. Advances in Neural Information Processing Systems 36 (NeurIPS 2023), Curran Associates.
18. UC Berkeley Safe Transportation Research and Education Center (SafeTREC) (2025, December 01). Transportation Injury Mapping System (TIMS): California Crash Data Tool. Available online: https://tims.berkeley.edu.
19. de Zarzà, I., de Curtò, J., Roig, G., and Calafate, C.T. (2023). LLM Multimodal Traffic Accident Forecasting. Sensors, 23.10.3390/s23229225 ↗
20. Li, H., and Chen, L. (2025). Traffic Accident Risk Prediction Based on Deep Learning and Spatiotemporal Features of Vehicle Trajectories. PLoS ONE, 20.10.1371/journal.pone.0320656 ↗
21. Box, G.E.P., Jenkins, G.M., Reinsel, G.C., and Ljung, G.M. (2015). Time Series Analysis: Forecasting and Control, John Wiley & Sons. [5th ed.].