Exploring Dynamic Context for Multi-path Trajectory Prediction

Hao Cheng, Wentong Liao, Xuejiao Tang, Michael Ying Yang, Monika Sester, Bodo Rosenhahn

TL;DR

DCENet (Dynamic Context Encoder Network) is a novel framework that predicts multiple socially plausible future paths for agents in complex traffic. By combining self-attention on "dynamic maps" (encoding position, speed, and orientation) with a Conditional Variational Autoencoder (CVAE), it achieves state-of-the-art performance on major benchmarks like Trajnet and inD.

What Problem Does This Paper Address?

Predicting where a pedestrian, cyclist, or vehicle will move next is a cornerstone of safe autonomous driving. However, human movement is notoriously non-deterministic. An agent might change their mind mid-stride, or their path might be altered by a sudden interaction with another agent (like swerving to avoid a collision).

Traditional models often struggle with two things:

  1. Dynamic Interactions: The influence agents have on each other changes every millisecond.
  2. Multimodality: There isn't just one "correct" future path; there are many socially acceptable possibilities.

Most existing models either predict a single deterministic path or fail to capture the nuanced spatial-temporal context of busy intersections.

Methods

The authors introduce DCENet, which breaks the prediction task into a sophisticated encoding-decoding pipeline:

  • Dynamic Maps: Instead of just looking at raw coordinates, the model creates grid-based maps centered on the target agent. These maps have three distinct layers: Position (where others are), Orientation (where they are facing), and Speed (how fast they are moving).
  • Self-Attention for Spatial Context: DCENet uses self-attention mechanisms to explore the relationships between agents within these dynamic maps. This allows the model to "attend" to the most relevant neighbors at any given time step.
  • Two-Stream Encoding: The framework uses two parallel encoders. One processes the observed trajectory coordinates, while the other processes the sequence of dynamic maps. This ensures both individual motion and social context are captured.
  • CVAE for Multi-path Generation: To handle the "multi-path" problem, the model uses a Conditional Variational Autoencoder. It encodes the spatial-temporal context into a latent space. By repeatedly sampling from this space, the LSTM-based decoder can generate a variety of plausible future trajectories.
  • Trajectory Ranking: Since many benchmarks require a single "best" guess, the authors developed a ranking strategy using a bivariate Gaussian distribution to identify the most likely path from the generated set.

Datasets

The model was evaluated on two major benchmarks:

  • Trajnet: A popular "challenge" benchmark that aggregates several datasets (ETH, UCY, Stanford Drone Dataset). It requires observing 8 steps (3.2s) and predicting 12 steps (4.8s).
  • inD: A newer, large-scale dataset captured via drones at four busy German intersections. It is particularly challenging due to the heavy mix of vehicles and pedestrians.

Key Insights and Ideas

  • Orientation is a "Hidden" Signal: While many models only use (x, y) coordinates, DCENet shows that explicitly encoding an agent's heading (orientation) and velocity into the spatial context significantly improves prediction accuracy.
  • Hybrid Architecture Wins: Interestingly, the authors found that a combination of self-attention and LSTMs performed better than a "heavy" pure Transformer (like BERT). This suggests that while attention is great for spatial context, LSTMs remain highly effective for the sequential nature of trajectories.
  • Generative > Deterministic: The results reinforce that modeling trajectory prediction as a distribution (generating multiple paths) is more robust for real-world uncertainty than trying to regress a single line.

Key Results

  • State-of-the-Art: DCENet reported new state-of-the-art performance on the Trajnet leaderboard, achieving an average error (Avg) of 0.7660m and a Final Displacement Error (FDE) of 1.179m.
  • Superior Intersection Performance: On the inD benchmark, DCENet outperformed established models like S-GAN and AMENet. For example, in the "Intersection-D" scenario, DCENet achieved an ADE of 0.20m compared to S-GAN's 2.52m.
  • Ablation Proof: Removing the Dynamic Maps (DMs) from the model led to a drop in performance, confirming that the "dynamic context" captured by the multi-layer maps is a critical component of the system's success.

Limitations and Future Work

The authors acknowledge that while DCENet excels at modeling agent-to-agent interactions, it does not yet fully account for static context—the physical environment.

Future Work: The team plans to extend the framework to incorporate environmental data, such as lane layouts, crosswalks, and building boundaries. This "scene-aware" prediction would allow the model to understand that an agent is unlikely to walk through a wall or drive onto a sidewalk, further narrowing down the set of plausible future paths.

Summary updated

BibTeX
@inproceedings{cheng2021exploring,
  author = {Hao Cheng and Wentong Liao and Xuejiao Tang and Michael Ying Yang and Monika Sester and Bodo Rosenhahn},
  title = {{Exploring Dynamic Context for Multi-path Trajectory Prediction}},
  booktitle = {IEEE International Conference on Robotics and Automation},
  year = {2021},
  doi = {10.1109/icra48506.2021.9562034},
}
Figure