Abstract
Deep learning models have significantly improved the accuracy of traffic flow forecasting. However, their "black box" nature limits their utility for urban planners who require interpretable insights to design effective interventions. This paper presents TrafPS, a novel visual analytics system that leverages game-theoretic Shapley values to quantify the contributions of specific regions and vehicle trajectories to predicted congestion. By providing a multi-level interpretation—from global city-wide trends to local route analysis—TrafPS enables a "root cause" understanding of urban traffic dynamics.
Introduction
Accurate traffic forecasting is essential for modern smart city management. While spatio-temporal deep learning models, such as Spatio-Temporal Residual Networks (ST-ResNet), achieve high predictive performance, they offer little transparency regarding the underlying factors driving their outputs. For traffic managers, knowing that a jam is imminent is insufficient; they must understand whether the congestion is caused by local bottlenecks or external traffic "pulses" from neighboring districts.
Existing analytical tools often struggle to handle the massive scale of spatio-temporal data or fail to provide a multi-level interpretation that connects global city-wide trends to specific local routes. TrafPS addresses this gap by creating a bridge between complex deep learning outputs and human-centric decision-making.
Methodology
The core innovation of TrafPS lies in its use of Shapley values—a method from cooperative game theory—to attribute the "payout" (the traffic prediction) to the "players" (input features like regional flow).
Interpretable Metrics
- Region SHAP: This measurement quantifies the impact of one geographical region's flow on another region's future traffic. It helps identify which neighboring areas are "pushing" traffic into a congested zone.
- Trajectory SHAP: This takes the analysis a step further by drilling down into individual vehicle paths. It calculates the contribution of specific trajectories to a region's predicted traffic volume.
Visual Analytics Pipeline
The system follows a three-stage "macro-to-micro" workflow:
- Overview Stage: Uses wind maps and heatmaps to show global traffic tendencies.
- Exploration Stage: Introduces a novel Radar Glyph. The inner part of the glyph shows a timeline of predicted traffic, while the outer "diverging polygons" indicate the directional impact (positive or negative) from neighboring areas.
- Fine-grained Stage: Uses grid matrices and parallel coordinate plots to analyze specific intersections and identify the top-contributing routes.
Data and Implementation
The authors evaluated TrafPS using real-world data from Chengdu, China:
- Taxi Trajectories: Two months of data (October to November 2016) provided by the Didi Chuxing GAIA Initiative.
- Road Network: Road intersection data extracted via OSMnx (OpenStreetMap).
- Preprocessing: The urban area was rasterized into a 38 × 36 grid and then aggregated into 21 functional clusters using K-means, based on the density of road intersections to better reflect urban structure.
Key Insights and Results
Case studies and expert evaluations demonstrated the system's effectiveness in providing actionable insights for urban management.
Identifying Key Routes
In a case study of a public holiday morning, the system identified two specific routes (#107 and #110) that were the primary drivers of predicted congestion in the city center. This allowed for a precise "root cause" analysis that simple flow maps would miss.
Decision Support
The system demonstrated how planners could identify the need for reversible lanes. By analyzing peak-hour patterns, the tool showed that traffic impact was heavily skewed in one direction, providing empirical evidence for changing lane directions to alleviate pressure.
Model Agnosticism
Although the authors primarily used ST-ResNet, they demonstrated that their Shapley-based approach is generalizable. They tested it against standard CNNs and DNNs, finding that while different models prioritize different features, the interpretation framework remains consistent.
Conclusion and Future Work
TrafPS successfully reduces the "knowledge gap" between data scientists and urban administrators. While the system explains why a prediction was made, future work aims to integrate more prescriptive analytics to automatically suggest the best interventions (e.g., specific signal timing adjustments). Additionally, the authors plan to incorporate more diverse data sources, such as loop sensors and video surveillance, to provide a more comprehensive view of urban mobility.
Summary updated