GraphTCN: Spatio-Temporal Interaction Modeling for Human Trajectory Prediction

Chengxin Wang, Shaofeng Cai, Gary Tan

Abstract

Predicting human trajectories is a fundamental challenge for autonomous systems operating in crowded environments. Traditional methods often rely on Recurrent Neural Networks (RNNs), which are computationally expensive due to their sequential nature. We introduce GraphTCN, a novel framework that replaces RNNs with parallelizable Temporal Convolutional Networks (TCNs) and an Edge Feature based Graph Attention Network (EFGAT). By modeling social interactions as dynamic graphs and movement as gated convolutions, GraphTCN achieves state-of-the-art accuracy while running up to 5x faster than previous models, making it highly suitable for real-time deployment on autonomous robots and vehicles.

Introduction

For autonomous vehicles and socially compliant robots, predicting a pedestrian's future path is critical for safety and smooth navigation. This task requires modeling two distinct dimensions: the temporal dimension (an individual's past movement patterns) and the spatial dimension (how individuals react to others in their vicinity).

Existing solutions predominantly use LSTMs or other RNN variants to handle temporal data. However, these models process data one time-step at a time, which prevents parallelization and leads to high latency. Furthermore, many models fail to capture the nuance of "social priority"—for instance, a person walking directly toward an agent is a higher priority than someone walking away at the same distance. GraphTCN addresses these issues by combining high-accuracy social modeling with the low-latency requirements of real-world hardware.

Methodology

The GraphTCN architecture consists of three primary components designed for maximum parallelism and interaction awareness.

The GraphTCN architecture integrates spatial graph attention with temporal convolutions to predict future trajectories.

1. EFGAT (Edge Feature based Graph Attention Network)

This module handles spatial interactions by treating the scene as a graph where pedestrians are nodes. Unlike standard graph networks that only consider node features, EFGAT incorporates the relative spatial relation between agents as an "edge feature." It uses a self-attention mechanism to dynamically weigh which neighbors are most important to a specific agent’s future path, effectively learning social priorities based on relative displacement and movement trends.

2. Gated TCN (Temporal Convolutional Network)

To capture movement dynamics without the bottlenecks of RNNs, GraphTCN employs a 1D-CNN architecture. Because CNNs can process an entire sequence simultaneously, they offer significant speed advantages. The authors implement a "gated highway mechanism" using tanh and sigmoid activations to help the network filter out noise and focus on the most salient movement patterns.

The TCN module utilizes dilated convolutions and a gated mechanism to capture long-range temporal dependencies efficiently.

3. Multimodal Decoder

To account for the inherent uncertainty of human behavior, the model uses a variety loss and can be integrated with a Conditional Variational Autoencoder (CVAE). This allows GraphTCN to generate multiple "socially acceptable" future paths, providing a probabilistic view of potential outcomes.

Experimental Results

The model was evaluated on the ETH and UCY benchmarks, which contain real-world coordinates of pedestrians in crowded outdoor environments. These datasets feature complex behaviors such as group walking and collision avoidance.

  • Accuracy: GraphTCN reduced the Average Displacement Error (ADE) by 19.4% and the Final Displacement Error (FDE) by 13.6% compared to previous state-of-the-art models like STGAT.
  • Efficiency: The model achieved a 5.22x wall-clock speedup. In practical terms, it takes roughly 0.00067 seconds to generate predictions for a scene, whereas older models like Social-GAN take nearly 40 times longer.
  • Sample Efficiency: GraphTCN with only 4 predicted samples (M=4) often outperformed other models that were allowed 20 samples (M=20), suggesting that its generated paths are of higher qualitative plausibility.

Conclusion and Future Work

GraphTCN demonstrates that the shift from sequential RNNs to feed-forward TCNs is a practical necessity for real-time robotics. By leveraging relative context in its attention mechanism and gating for signal control, it achieves superior accuracy and efficiency. Future work may involve incorporating semantic maps to account for environmental constraints like walls or sidewalks and further optimizing the interplay between spatial and temporal modules to reduce redundancy.

Summary updated

BibTeX
@inproceedings{wang2021graphtcn,
  author = {Chengxin Wang and Shaofeng Cai and Gary Tan},
  title = {{GraphTCN: Spatio-Temporal Interaction Modeling for Human Trajectory Prediction}},
  booktitle = {IEEE/CVF Winter Conference on Applications of Computer Vision},
  year = {2021},
  doi = {10.1109/wacv48630.2021.00349},
}
Figure