TrafficPredict: Trajectory Prediction for Heterogeneous Traffic-Agents

Yuexin Ma, Xinge Zhu, Sibo Zhang, Ruigang Yang, Wenping Wang, Dinesh Manocha

Predicting the future movement of traffic is incredibly difficult when cars, bicycles, and pedestrians are all mixed together in chaotic urban environments. This paper introduces TrafficPredict, an LSTM-based model that uses a novel "4D Graph" to capture both individual agent interactions and category-wide behaviors. By explicitly modeling the differences between agent types, the method achieves a 20% accuracy boost over prior trajectory prediction models.

The Challenge of Heterogeneous Traffic

For autonomous vehicles to navigate safely in cities, they must anticipate the future positions of surrounding moving objects. While trajectory prediction is a well-studied field, most existing deep learning models focus on homogeneous groups—for example, predicting how a crowd of pedestrians will move (e.g., Social LSTM) or how cars will behave on a highway.

Urban intersections, however, are highly heterogeneous. Cars, bicycles, and pedestrians all share the same space, but they have vastly different dynamics, speeds, and rules of movement. Furthermore, they interact with one another in complex ways (a car reacts differently to a pedestrian than it does to a bus). Prior methods struggle to model these cross-category interactions and fail to leverage the shared behavioral traits of specific agent types.

Methods: The 4D Graph Framework

To tackle heterogeneous traffic, the authors propose a unified framework built on a 4D Graph. The graph represents instances (individual agents), their interactions, time series (historical movement), and high-level categories (agent types).

The 4D Graph architecture showing (b) the Instance Layer for individual agent interactions and (c) the Category Layer with super nodes for class-specific behaviors.

The architecture is split into two main layers:

  • Instance Layer: This layer captures micro-level dynamics. Each agent is a node with its own Long Short-Term Memory (LSTM) network. Edges between nodes represent spatial interactions and temporal continuity. A soft attention mechanism is used to weigh the influence of surrounding agents, recognizing that a nearby swerving bicycle matters more than a distant parked car.
  • Category Layer: This is the paper's standout novelty. Agents of the same type (e.g., all pedestrians) are grouped and connected to a category-specific "super node." This super node uses a self-attention mechanism to learn the macroscopic movement patterns of that specific class. It then feeds this generalized behavioral guidance back down to the individual instances to refine their specific trajectory predictions.

The Apollo Dataset

Because existing datasets like NGSIM (highway cars only) and KITTI (short clips, few intersections) lack dense, heterogeneous interactions, the authors collected and released a new large-scale urban dataset. Collected via a Baidu Apollo sensor-equipped car (LiDAR, radar, camera, GPS) during urban rush hour, the dataset contains 155 minutes of data across 93,000 frames, capturing 60.1k vehicles, 16.2k pedestrians, and 5.5k bicycles.

Key Results and Insights

TrafficPredict was evaluated against standard sequence prediction baselines, including RNN Encoder-Decoder, Social LSTM, and Social Attention.

Qualitative comparison of trajectory predictions. TrafficPredict (TP) closely follows the ground truth (GT) compared to baseline models like Social LSTM (SL) and Social Attention (SA).
  • Accuracy: TrafficPredict achieved roughly a 20% improvement in accuracy across the board. For a 2-second observation window predicting the next 3 seconds, TrafficPredict achieved a Total Average Displacement Error (ADE) of 0.085 meters (vs. 0.110m for Social Attention).
  • Category-level modeling is a major performance driver: Ablation tests showed that removing the Category Layer (TP-NoCL) caused performance to drop back to the level of existing state-of-the-art models. This proves that grouping agents by type is the key to unlocking better predictions in mixed traffic.
  • Efficiency: The algorithm is highly efficient, running in a fraction of a second on a single CPU core, making it viable for real-time autonomous driving stacks.

Limitations and Future Work

While highly accurate, the authors acknowledge that the current model relies entirely on agent interactions and past trajectories. It does not yet factor in static environmental rules like lane directions, traffic lights, or right-of-way rules. Future work will focus on integrating map and traffic signal constraints to further ground the predictions in reality.

Summary updated

BibTeX
@inproceedings{ma2019trafficpredict,
  author = {Yuexin Ma and Xinge Zhu and Sibo Zhang and Ruigang Yang and Wenping Wang and Dinesh Manocha},
  title = {{TrafficPredict: Trajectory Prediction for Heterogeneous Traffic-Agents}},
  booktitle = {AAAI Conference on Artificial Intelligence},
  year = {2019},
  doi = {10.1609/aaai.v33i01.33016120},
}
Figure