TrafPS: A Visual Analysis System Interpreting Traffic Prediction in Shapley

Yifan Jiang, Zezheng Feng, Hongjun Wang, Zipei Fan, Xuan SongarXiv 2022 · DOI

Abstract

TrafPS is a visual analytics system designed to bridge the "transparency gap" in deep-learning traffic forecasting. While models like ST-ResNet offer high accuracy, they often function as black boxes, providing little insight into the underlying causes of predicted congestion. By employing Shapley values from cooperative game theory, TrafPS decomposes complex forecasts to attribute traffic flow to specific neighboring areas and trajectories. Evaluated with real-world data from Chengdu, China, the system allows urban planners to move beyond intuition toward data-driven, surgical interventions.

Introduction

The rise of deep learning has significantly improved the accuracy of urban traffic flow predictions. However, these models often lack interpretability. An urban planner might be alerted to a massive traffic jam twenty minutes in advance but remain unaware of why it is occurring. Without understanding the underlying causes—such as which specific feeder roads are over-contributing to the flow—implementing precise interventions like traffic light adjustments or diversions remains difficult. TrafPS addresses this by providing a transparent interpretation of spatio-temporal predictions.

Methods and System Architecture

The authors propose a three-layer framework to facilitate traffic prediction and interpretation:

  1. Data Processing Layer: The city is partitioned into a grid, which is then clustered based on road density using K-means. Voronoi diagrams define the final boundaries of these clusters.
  2. Prediction-Interpretation Layer: Traffic flow is forecasted using ST-ResNet, a deep learning model for spatio-temporal data, based on the preceding 50 minutes of history. The core innovation lies in the use of Shapley values to fairly attribute the predicted traffic increase to different input features, quantifying how much each neighboring area’s current flow contributes to a target area's future state.
  3. Visualization Analytical Layer: The system provides a Map-Trajectory View for overall trends, a Radar Glyph View for cluster-level interpretation, and a Fine-grained Grid View for intersection-level analysis.
Figure 1: The three-layer architecture of the TrafPS system, spanning data processing, prediction-interpretation, and visualization.

Visual Analytics and Key Insights

The system's interface is designed to make complex game-theoretic interpretations glanceable. A standout feature is the Radar Glyph, a circular visualization placed at the center of each cluster. The outer ring displays a 50-minute forecast, while the inner "diverging polygons" use color coding (red for positive, blue for negative) to indicate which geographical directions are driving the prediction.

Figure 2: The TrafPS multi-view interface, including (a) trajectory view, (b) heatmap, (c) the main analytical dashboard with radar glyphs, (d) cluster views, and (e) parallel coordinate plots.

Beyond spatial attribution, the system identifies critical "lead times." Analysis revealed that trajectories occurring 20–30 minutes before a predicted jam often have the highest impact, providing a specific window for effective intervention.

Case Study and Results

The utility of TrafPS was demonstrated through a case study of a morning holiday in Chengdu. The system successfully predicted a city-center traffic jam 20 minutes in advance. Using the Radar Glyphs, researchers identified northern neighboring clusters as the primary "promoters" of the congestion. By drilling down into the Fine-grained Grid View, they pinpointed specific roads (Road #107 and #110) as the most effective points for intervention, allowing for surgical traffic management rather than broad, less efficient measures.

Conclusion and Future Work

TrafPS demonstrates the power of combining deep learning with game-theoretic interpretation for urban planning. While the current system focuses on trajectory and road density data, future iterations could incorporate external factors such as weather, public events, or accidents. The authors also plan to refine the interface through formal user studies with professional urban planners to ensure its effectiveness in high-pressure, real-time environments.

Summary updated

BibTeX
@misc{jiang2022trafps,
  author = {Yifan Jiang and Zezheng Feng and Hongjun Wang and Zipei Fan and Xuan Song},
  title = {{TrafPS: A Visual Analysis System Interpreting Traffic Prediction in Shapley}},
  year = {2022},
  eprint = {2203.06213},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2203.06213},
}
Figure