TY - JOUR
T1 - An explainable framework for spatiotemporal traffic accident prediction using TabTransformer
AU - Wang, Yahui
AU - He, Yue
AU - Liang, Zhoushuo
AU - Zhang, Doudou
N1 - Publisher Copyright:
© 2026 Elsevier Ltd. All rights are reserved, including those for text and data mining, AI training, and similar technologies.
PY - 2027/2/1
Y1 - 2027/2/1
N2 - Predicting traffic accidents helps to take preventive measures to reduce accident rates and improve road safety; it also provides data support for traffic management, urban planning, and insurance operations to optimize resource allocation and improve response efficiency. In this study, we propose an explainable traffic accident prediction framework that uses a deep learning model called TabTransformer. In the proposed method, firstly, we use a powerful feature screening technique, null importance, to determine whether the numerous features in the dataset are valid or not to eliminate invalid features. Secondly, the data were classified into three spatiotemporal clusters using a spectral clustering method based on the time and location of the accident. Finally, a deep learning model based on TabTransformer is used to predict the type of traffic accidents (injury, fatality, property loss) on each spatiotemporal cluster separately. Following the prediction, GeoShapley values are utilized to analyze the influence of various factors, including geographical location (GEO) and its interactions with other features, on the TabTransformer model’s predictions, thereby enhancing its explainability. The results show that TabTransformer has the highest accuracy in predicting traffic accident types on three spatio-temporal clusters, which are 80.31 %, 88.89 % and 85.19 % respectively. Extensive experiments on real traffic datasets demonstrate the proposed framework’s significant effectiveness, highlighting its potential to enhance traffic management efficiency and improve road safety and traffic flow.
AB - Predicting traffic accidents helps to take preventive measures to reduce accident rates and improve road safety; it also provides data support for traffic management, urban planning, and insurance operations to optimize resource allocation and improve response efficiency. In this study, we propose an explainable traffic accident prediction framework that uses a deep learning model called TabTransformer. In the proposed method, firstly, we use a powerful feature screening technique, null importance, to determine whether the numerous features in the dataset are valid or not to eliminate invalid features. Secondly, the data were classified into three spatiotemporal clusters using a spectral clustering method based on the time and location of the accident. Finally, a deep learning model based on TabTransformer is used to predict the type of traffic accidents (injury, fatality, property loss) on each spatiotemporal cluster separately. Following the prediction, GeoShapley values are utilized to analyze the influence of various factors, including geographical location (GEO) and its interactions with other features, on the TabTransformer model’s predictions, thereby enhancing its explainability. The results show that TabTransformer has the highest accuracy in predicting traffic accident types on three spatio-temporal clusters, which are 80.31 %, 88.89 % and 85.19 % respectively. Extensive experiments on real traffic datasets demonstrate the proposed framework’s significant effectiveness, highlighting its potential to enhance traffic management efficiency and improve road safety and traffic flow.
KW - Prediction framework
KW - Road safety
KW - TabTransformer
KW - Traffic accidents
UR - https://www.scopus.com/pages/publications/105054655348
U2 - 10.1016/j.eswa.2026.134908
DO - 10.1016/j.eswa.2026.134908
M3 - Article
AN - SCOPUS:105054655348
SN - 0957-4174
VL - 334
JO - Expert Systems with Applications
JF - Expert Systems with Applications
M1 - 134908
ER -