Accident; analysis and prevention

Transformer-based traffic crash injury severity classification with integrated structured and unstructured data: Interpretation of classification-related factors using SHAP and attention mechanisms.

Haneul Park, Chiwoo Roh, Jia Hu, Joyoung Lee, Juneyoung Park, Jaehyun Jason So

Dept. of Data/Network/AI Convergence (Transportation Engineering), Ajou University, 16499 Suwon, the Republic of Korea. Electronic address: haneuli59@ajou.ac.kr. · Dept. of National Transport Big Data, Korea Transport Institute, 30147 Sejong, the Republic of Korea. Electronic address: chiuno@koti.re.kr.

Computational

Key points

From the paper's conclusion
  • Aggregated attention and SHAP values were compared to identify key contributing factors to traffic crash injury severity classification.

Abstract

Structured pre-crash data and unstructured narrative data have traditionally been analyzed in isolation for traffic crash injury severity classification, limiting both predictive accuracy and explanatory depth. This paper integrates structured crash records with standardized categorical information derived from unstructured police narratives and benchmarks the resulting data configurations across three models, Multinomial Logistic Regression (MLR), XGBoost, and Bidirectional Encoder Representations from Transformers (BERT), using traffic crash data from Daegu Metropolitan City, South Korea. Classification performance ranked consistently in the order of integrated, unstructured, and structured data across all models, with the integrated BERT model achieving the highest results (accuracy 0.78, precision 0.81, recall 0.83, F1-score 0.82) and an F1-score of 0.96 for fatal crashes. Repeated-seed experiments showed consistent performance across five random seeds. Aggregated attention and SHAP values were compared to identify key contributing factors to traffic crash injury severity classification. The two indicators emphasized different aspects of the classification process: attention concentrated on behavioral and situational variables such as pedestrian exposure and traffic violations, while SHAP showed larger contributions from vehicle type and impact point to the severity classification output. SHAP top variables included both structured and unstructured inputs in near-equal proportions, supporting the value of data integration. Class-level SHAP analysis further showed that the same variable can shift direction across severity classes, suggesting that disaggregated interpretation by severity class provides a more comprehensive basis for identifying the factors driving crash outcomes.

Read the paper

Discussion

Science Skim's AI key points, plus readers' public thoughts

Readers' thoughts

No reader thoughts yet.

Related papers

Transformer-based traffic crash injury severity classification with integrated structured and unstructured data: Interpretation of classification-related factors using SHAP and attention mechanisms — Science Skim