Asymmetrical Bi-RNN for pedestrian trajectory encoding

Raphaël Rozenberg, Joseph Gesnouin, Fabien MoutardearXiv 2021

Abstract

This paper introduces the U-RNN, an asymmetrical bidirectional recurrent neural network designed to enhance pedestrian trajectory encoding. Unlike standard symmetric Bi-RNNs, the U-RNN utilizes a backward pass to inform a subsequent forward pass, allowing the model to incorporate future context while maintaining temporal coherence. Evaluated on the Trajnet++ benchmark, the U-RNN demonstrates improved prediction accuracy and reduced collision rates compared to traditional LSTM encoders, establishing it as a robust alternative for sequence modeling in motion prediction.

Introduction

In pedestrian trajectory prediction, research typically focuses on the "interaction module"—the component responsible for modeling how individuals navigate around one another. However, the sequence encoder, which processes an individual’s historical coordinates, is often overlooked and relegated to standard LSTMs.

The authors identify two critical limitations in current encoding strategies. First, unidirectional RNNs (LSTMs/GRUs) cannot account for the future context of an observed path, such as a pedestrian slowing down in anticipation of an upcoming obstacle. Second, standard Bidirectional RNNs (Bi-RNNs) are symmetric and treat temporal data similarly to natural language. In trajectory data, motion has a preferred temporal direction; standard Bi-RNNs simply concatenate two independent passes, meaning the forward pass never benefits from the insights gained during the backward pass.

Methodology: The U-RNN Architecture

To address these limitations, the authors propose the U-RNN (specifically the U-LSTM variant). Unlike the independent passes of a standard Bi-RNN, the U-RNN architecture is sequential and asymmetrical:

  1. The Backward Pass: The model reads the trajectory from the most recent observation back to the beginning, accumulating "future" context relative to the start of the sequence.
  2. The Forward Pass: The model then reads the trajectory from the start to the most recent observation. Crucially, at each timestep, the forward pass receives the hidden state of the backward pass as an additional input.
  3. Encoding: The final hidden state of the forward pass serves as the comprehensive trajectory encoding.
Comparison of standard Bi-RNN and the proposed U-RNN architecture.

This design allows the forward pass to "anticipate" future movements, effectively filtering past information based on its relevance to the end of the observed track. This encoder is integrated into a standard Encoder-Interaction-Decoder pipeline for evaluation.

Experimental Setup

The study utilizes the Trajnet++ benchmark, a comprehensive meta-dataset for pedestrian prediction that aggregates real-world data from sources such as ETH, UCY, WildTrack, L-CAS, and CFF. The evaluation focuses specifically on Type III trajectories, which involve active interactions between pedestrians, representing the most challenging scenarios for prediction models.

Example of pedestrian trajectory data and interaction scenarios from the Trajnet++ benchmark.

Key Insights and Results

The U-LSTM consistently outperformed standard LSTMs across multiple interaction modules and metrics:

  • The "Arrow of Time": Experiments with a "reversed U-RNN" (forward pass then backward pass) showed degraded performance, confirming that the forward direction is the primary temporal flow for trajectories, while the backward pass should serve strictly as context.
  • Accuracy Gains: When paired with Directional Pooling, the U-LSTM achieved a Final Displacement Error (FDE) of 1.22m, outperforming both the standard LSTM (1.25m) and the symmetric Bi-LSTM (1.28m).
  • Safety Improvements: The Collision Rate (Col-I) dropped to 5.2% with the U-LSTM, a significant improvement over the 6.4% rate observed with standard LSTMs.
  • Architecture Synergy: The U-RNN architecture showed more pronounced improvements when using LSTM cells rather than GRU cells, suggesting that the LSTM's memory capacity is better suited to leveraging the provided future context.

Conclusion

While this work is preliminary, it demonstrates that significant performance gains can be achieved by refining the sequence encoder rather than solely focusing on interaction modules. The U-RNN offers a more nuanced way to process temporal history by allowing the model to "know" which past coordinates are most predictive of future intent. Future research will explore combining the U-RNN with advanced contrastive learning techniques and applying similar anticipation logic directly to interaction modules.

Summary updated

Abstract

Pedestrian motion behavior involves a combination of individual goals and social interactions with other agents. In this article, we present an asymmetrical bidirectional recurrent neural network architecture called U-RNN to encode pedestrian trajectories and evaluate its relevance to replace LSTMs for various forecasting models. Experimental results on the Trajnet++ benchmark show that the U-LSTM variant yields better results regarding every available metrics (ADE, FDE, Collision rate) than common trajectory encoders for a variety of approaches and interaction modules, suggesting that the proposed approach is a viable alternative to the de facto sequence encoding RNNs. Our implementation of the asymmetrical Bi-RNNs for the Trajnet++ benchmark is available at: github.com/JosephGesnouin/Asymmetrical-Bi-RNNs-to-encode-pedestrian-trajectories
BibTeX
@misc{rozenberg2021asymmetrical,
  author = {Raphaël Rozenberg and Joseph Gesnouin and Fabien Moutarde},
  title = {{Asymmetrical Bi-RNN for pedestrian trajectory encoding}},
  year = {2021},
  eprint = {2106.04419},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2106.04419},
}
Figure