arXiv:2609.10806cs.CVSep 2026

Manuscript Offprint

arXiv:2609.10806

TrajFusionNet+: Transformer-Based Prediction of Pedestrian Crossing Intention via Fusion of Trajectory Representations and Scene Graphs

François G. Landry, Moulay A. Akhloufi

François G. Landry and Moulay A. Akhloufi

Perception, Robotics and Intelligent Machines Research Group (PRIME)

Department of Computer Science, Université de Moncton, Canada

{efl7126, moulay.akhloufi}@umoncton.ca

Abstract—The pedestrian crossing intention task involves predicting whether pedestrians are likely to cross the road from the point of view of an autonomous vehicle. We introduce TrajFusionNet+, a novel transformer-based model for pedestrian crossing intention prediction. TrajFusionNet+ combines sequential and visual representations of pedestrian trajectory with a graph-based representation of the scene context in order to predict pedestrian crossing intention. The proposed architecture builds upon our previous model, TrajFusionNet, and comprises three branches: a Sequence Attention Module (SAM), which processes a sequential representation of past and predicted pedestrian trajectories; a Visual Attention Module (VAM), which utilizes a visual representation of the pedestrian trajectories by overlaying observed and predicted bounding boxes onto scene images; and a Graph Attention Module (GAM), which extracts pedestrian-centric graphs from segmented scene images and captures the relational dependencies between pedestrians and traffic elements. TrajFusionNet+ achieves improved state-of-the-art performance on the two most widely used pedestrian crossing intention datasets, PIE and JAAD. Furthermore, we introduce a new evaluation protocol in which models are trained jointly on the PIE and JAAD datasets but evaluated separately on each. Under this setting, TrajFusionNet+ demonstrates superior generalization compared to existing approaches 1^{1}.

Index Terms—pedestrian crossing intention, transformer, computer vision, deep learning, autonomous driving

I. INTRODUCTION

Understanding pedestrian behavior is a critical component of ensuring safety in autonomous driving systems. Although progress has been made in pedestrian detection and in recognizing when pedestrians are actively crossing, predicting future actions remains challenging. Pedestrian behavior is highly dynamic, shaped by interactions with other road users as well as the surrounding environmental context [1]. From an ego-vehicle perspective, occlusions from other pedestrians, vehicles, and infrastructure further complicate the task [2]. Despite these difficulties, predicting crossing intention is vital for enabling autonomous vehicles to brake or reroute proactively in urban environments.

Multiple recent models achieve strong results on datasets such as PIE [3] and JAAD [4]. However, many of these models have been shown to exhibit substantial overfitting in cross-dataset evaluation scenarios when trained on one dataset and evaluated on another [5]. The prevailing practice in the literature has been to report results on multiple datasets, but typically by training and testing on the same dataset. This approach can inflate reported performance and does not reflect real-world deployment scenarios in autonomous vehicles, where models are generally not retrained for each environment.

In this work, we introduce TrajFusionNet+, a novel model for pedestrian crossing intention prediction that achieves state-of-the-art performance while demonstrating improved generalizability when compared to prior models. TrajFusionNet+ builds upon our previous architecture, TrajFusionNet [6]. The proposed architecture comprises three branches: (1) a Sequence Attention Module (SAM), which processes a sequential representation of past and predicted pedestrian trajectories and vehicle speed; (2) a Visual Attention Module (VAM), which utilizes a visual representation of the pedestrian trajectories by overlaying observed and predicted bounding boxes onto scene images; and (3) a Graph Attention Module (GAM), which extracts pedestrian-centric graphs from segmented scene images and explicitly models spatial relationships between pedestrians and traffic elements.

The GAM branch is a new addition in TrajFusionNet+ and is based on the TokenGT graph transformer [7] to process pedestrian-centric graphs, which we show to outperform a graph convolutional network baseline within our model. Another enhancement over the previous TrajFusionNet model is the modeling of temporal dependencies in the VAM branch through an encoder-only transformer operating on features extracted from the visual scene context at different timesteps. TrajFusionNet+ achieves improved state-of-the-art performance on the two most widely used pedestrian crossing intention datasets, PIE and JAAD. Additionally, we propose a new evaluation protocol for pedestrian crossing intention prediction, where models are trained jointly on the PIE and JAAD datasets and evaluated separately on each. This protocol shows superior generalization of TrajFusionNet+ compared to existing state-of-the-art methods.

References (28)