Counterfactual Explanations for Deep Learning-Based Traffic Forecasting
arXiv:2405.00456 · doi:10.1016/j.commtr.2025.100176
Abstract
Deep learning models are widely used in traffic forecasting and have achieved state-of-the-art prediction accuracy. However, the black-box nature of those models makes the results difficult to interpret by users. This study aims to leverage an Explainable AI approach, counterfactual explanations, to enhance the explainability and usability of deep learning-based traffic forecasting models. Specifically, the goal is to elucidate relationships between various input contextual features and their corresponding predictions. We present a comprehensive framework that generates counterfactual explanations for traffic forecasting and provides usable insights through the proposed scenario-driven counterfactual explanations. The study first implements a deep learning model to predict traffic speed based on historical traffic data and contextual variables. Counterfactual explanations are then used to illuminate how alterations in these input variables affect predicted outcomes, thereby enhancing the transparency of the deep learning model. We investigated the impact of contextual features on traffic speed prediction under varying spatial and temporal conditions. The scenario-driven counterfactual explanations integrate two types of user-defined constraints, directional and weighting constraints, to tailor the search for counterfactual explanations to specific use cases. These tailored explanations benefit machine learning practitioners who aim to understand the model's learning mechanisms and domain experts who seek insights for real-world applications. The results showcase the effectiveness of counterfactual explanations in revealing traffic patterns learned by deep learning models, showing its potential for interpreting black-box deep learning models used for spatiotemporal predictions in general.
arXiv comment24 pages
References in corpus (11)
- A Comprehensive Survey on Graph Neural Networks
- Graph Neural Network for Traffic Forecasting: A Survey
- Deep Learning for Short-Term Traffic Flow Prediction
- Deep Learning on Traffic Prediction: Methods, Analysis and Future Directions
- Explaining by Removing: A Unified Framework for Model Explanation
- Counterfactual Explanations for Machine Learning on Multivariate Time Series Data
- Explaining Data-Driven Decisions made by AI Systems: The Counterfactual Approach
- A Survey on Graph Counterfactual Explanations: Definitions, Methods, Evaluation, and Research Challenges
- Counterfactual Explanation Based on Gradual Construction for Deep Networks
- Counterfactual Explanations for Arbitrary Regression Models
- Deep Learning for Medical Imaging From Diagnosis Prediction to its Counterfactual Explanation