GraphTCN: Spatio-Temporal Interaction Modeling for Human Trajectory Prediction

Chengxin Wang, Shaofeng Cai, Gary Tan

Introduction

Predicting pedestrian trajectories is a fundamental challenge for autonomous systems, such as self-driving cars and social robots. To navigate safely and naturally, these systems must account for both an individual's past movement (temporal dynamics) and the influence of nearby agents (spatial interactions).

Spatial interaction between agents $i$ and $j$ based on relative positions.

Traditional approaches often rely on Recurrent Neural Networks (RNNs) like LSTMs to model temporal sequences. However, RNNs are inherently sequential, leading to high inference latency that hinders real-time deployment on resource-constrained hardware. Furthermore, many existing models simplify spatial interactions by considering only absolute distances, failing to capture the nuance of relative movement—such as whether a person is walking toward or away from the target agent.

The GraphTCN Framework

GraphTCN addresses these limitations by replacing sequential RNNs with parallelizable Temporal Convolutional Networks (TCNs) and introducing an edge-aware graph attention mechanism.

Overview of the GraphTCN architecture (a) and the EFGAT module (b).

Edge Feature based Graph Attention Network (EFGAT)

The EFGAT module handles spatial modeling by representing the crowd as a graph where nodes are pedestrians and edges represent their relative spatial relations. Unlike standard graph attention, EFGAT incorporates these relative relations as prior knowledge, allowing the model to adaptively focus on the most salient neighbors. This "social" awareness helps the model understand complex group behaviors and avoidance maneuvers.

Temporal Convolutional Network (TCN)

For temporal modeling, GraphTCN utilizes a stack of 1D convolutional layers with a gated highway mechanism. Convolutions can be computed in parallel across the entire time window, offering a significant speed advantage over RNNs. To maintain causality, "left padding" is used to ensure that predictions for a given time step only depend on past observations.

Multimodal Decoder

Human movement is inherently uncertain. To capture this, GraphTCN employs a multimodal decoder that can be integrated with a Conditional Variational Autoencoder (CVAE). Using a "variety loss" function, the model generates multiple plausible and socially acceptable future paths, reflecting the different directions a pedestrian might choose to take.

Experimental Results

The model was evaluated on the ETH (ETH, Hotel) and UCY (UNIV, ZARA1, ZARA2) benchmark datasets, which feature diverse real-world pedestrian behaviors.

Accuracy and Efficiency

GraphTCN achieved state-of-the-art performance, reducing the Average Displacement Error (ADE) by 19.4% and the Final Displacement Error (FDE) by 13.6% compared to previous leading models.

Crucially, the shift to a TCN-based architecture resulted in a massive boost in efficiency. GraphTCN demonstrated a 5.22x speedup over STGAT (a graph-based LSTM) and was more than 42x faster than Social-GAN. This makes it highly suitable for real-time applications on low-power mobile platforms.

Qualitative Analysis

In scenarios involving merging crowds or collision avoidance, GraphTCN produced more realistic, collision-free trajectories than its predecessors. While the authors noted that temporal history remains the dominant predictor in many "normal" walking scenarios, the spatial modeling in EFGAT provides critical context during complex interactions.

Conclusion and Future Work

GraphTCN demonstrates that combining edge-aware graph attention with temporal convolutions can yield a model that is both more accurate and significantly faster than traditional RNN-based approaches. Future research directions include incorporating environmental context, such as static obstacles and semantic maps, to further refine trajectory predictions in complex urban settings.

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