TrafPS: A Shapley-based Visual Analytics Approach to Interpret Traffic
Zezheng Feng, Yifan Jiang, Hongjun Wang, Zipei Fan, Yuxin Ma, Shuang-Hua Yang, Huamin Qu, Xuan Song
TL;DR
This work tackles the interpretability gap in DL-based traffic prediction by introducing TrafPS, a visual analytics system that employs Shapley-based region SHAP and trajectory SHAP to quantify the influence of surrounding regions and individual trajectories on predicted traffic. It combines a ST-ResNet predictor on a $38\times36$ grid with an interpretation layer and three coordinated views (Map-Trajectory, Radar Glyph, Fine-grained Grid) to support multi-level exploration from macro region-to-region effects to micro grid-to-trajectory contributions. The approach is validated on real taxi trajectory data from Chengdu, with two case studies demonstrating how TrafPS identifies key routes and informs urban planning decisions, supplemented by expert interviews attesting to feasibility and usefulness. The paper also discusses parameter choices (e.g., clustering into 21 regions) and model generality across different prediction architectures, and outlines directions for real-time data integration and richer decision recommendations.
Abstract
Recent achievements in deep learning (DL) have shown its potential for predicting traffic flows. Such predictions are beneficial for understanding the situation and making decisions in traffic control. However, most state-of-the-art DL models are considered "black boxes" with little to no transparency for end users with respect to the underlying mechanisms. Some previous work tried to "open the black boxes" and increase the interpretability of how predictions are generated. However, it still remains challenging to handle complex models on large-scale spatio-temporal data and discover salient spatial and temporal patterns that significantly influence traffic flows. To overcome the challenges, we present TrafPS, a visual analytics approach for interpreting traffic prediction outcomes to support decision-making in traffic management and urban planning. The measurements, region SHAP and trajectory SHAP, are proposed to quantify the impact of flow patterns on urban traffic at different levels. Based on the task requirement from the domain experts, we employ an interactive visual interface for multi-aspect exploration and analysis of significant flow patterns. Two real-world case studies demonstrate the effectiveness of TrafPS in identifying key routes and decision-making support for urban planning.
