A Spatio-temporal Graph Network Allowing Incomplete Trajectory Input for Pedestrian Trajectory Prediction

Juncen Long, Gianluca Bardaro, Simone Mentasti, Matteo MatteucciarXiv 2025 · DOI

Abstract

Accurate pedestrian trajectory prediction is a cornerstone for the safe operation of autonomous mobile robots. However, most existing models are developed using datasets with complete visibility, failing significantly when faced with the occlusions common in egocentric robotic perspectives. This paper introduces STGN-IT (Spatio-temporal Graph Network for Incomplete Trajectories), a novel framework that addresses the challenge of missing data. By employing a specialized observation state encoding and a two-stage prediction mechanism that incorporates environmental obstacles, STGN-IT demonstrates superior robustness and accuracy on real-world datasets compared to state-of-the-art methods.

Introduction

In robotics, the ability to anticipate human movement is vital for proactive collision avoidance. While top-down surveillance datasets like ETH or UCY have driven progress, they do not reflect the reality of mobile robots equipped with eye-level sensors. In these egocentric views, pedestrians are frequently obscured by environmental features or other agents.

Traditional handling of such "incomplete trajectories" involves two flawed approaches:

  1. Filtration Mode: Models simply stop predicting for anyone who isn't 100% visible. This is dangerous for navigation as it ignores potential hazards.
  2. Pad Mode: Missing data is filled with zeros. This often confuses models, leading them to predict that a pedestrian has suddenly teleported to the coordinate origin $(0,0)$.

Methodology

STGN-IT builds upon Spatio-temporal Graph Networks (STGN) but introduces key innovations to handle data gaps effectively:

  • Observation State Encoding: Instead of raw coordinates, the model uses a 4D vector encoding to explicitly signal whether a data point is "True" (observed) or "False" (missing). This prevents the network from misinterpreting zero-padded values as actual locations.
  • Static Obstacle Integration: Environmental obstacles (from occupancy grid maps) are treated as nodes within the spatio-temporal graph. This allows the model to learn how physical boundaries, like pillars or walls, influence human paths.
  • Two-Stage Prediction: The model first generates a coarse trajectory, identifies relevant nearby obstacles, and then refines the prediction in a second pass that is "aware" of the environment.
  • DBSCAN Clustering: To optimize graph processing, nodes are reordered based on physical proximity using clustering. This ensures that pedestrians and obstacles that are physically close are also "neighbors" in the adjacency matrix, enhancing feature extraction.
This figure illustrates the limitations of standard Filtration and Pad modes compared to the proposed encoding method which maintains trajectory continuity.

Datasets and Evaluation

The researchers evaluated STGN-IT on three primary benchmarks:

  • STCrowd (STC): A dataset featuring egocentric LIDAR and camera data from a mobile robot, representative of real-world occlusions.
  • STC-c: A corrupted version of STCrowd with 10% random data removal to test robustness.
  • ETH: A standard top-down dataset used for benchmarking against state-of-the-art (SOTA) models.
A comparison between the egocentric view of STCrowd, where occlusions are frequent, and the clear top-down view of the ETH dataset.

Key Results

STGN-IT consistently outperformed SOTA models like Social-STGCNN and SGCN, particularly in realistic scenarios.

  • Accuracy: In the realistic "Pad Mode" evaluation on STCrowd, STGN-IT achieved an Average Displacement Error (ADE) of 0.35m and a Final Displacement Error (FDE) of 0.62m.
  • Robustness: While competing models saw their error rates nearly double when moving from complete to incomplete data, STGN-IT’s performance only degraded by approximately 15%.
  • Qualitative Success: Visualizations confirm that STGN-IT predicts smooth trajectories that avoid obstacles, whereas other models often predict collisions or erratic jumps when data is missing.

Conclusion and Future Work

STGN-IT provides a robust solution for pedestrian trajectory prediction in complex, real-world environments. By explicitly modeling observation states and environmental constraints, it bridges the gap between theoretical models and practical robotic deployment.

Future research will focus on reducing the computational overhead of the two-stage prediction process for real-time edge hardware and extending the model's capability to handle long-term occlusions where pedestrians disappear for extended periods.

Summary updated

BibTeX
@misc{long2025spatio,
  author = {Juncen Long and Gianluca Bardaro and Simone Mentasti and Matteo Matteucci},
  title = {{A Spatio-temporal Graph Network Allowing Incomplete Trajectory Input for Pedestrian Trajectory Prediction}},
  year = {2025},
  eprint = {2501.13973},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2501.13973},
}
Figure