MSTT: A Multi-Spatio-Temporal Graph Attention Model for Pedestrian Trajectory Prediction
Abstract
1. Introduction
2. Related Work
2.1. Multi-Intelligent Body Trajectory Prediction
2.2. Dynamic Graph Neural Networks
2.3. Transformer-Based Trajectory Prediction
3. Approach
3.1. Problem Formulation
3.2. Trajectory Coding for a Pedestrian
3.3. Relative Spatio-Temporal Coding
3.4. Multiple-Spatio-Temporal-Map Modeling
3.4.1. Spatio-Temporal Graph Construction
3.4.2. Local Judgment
3.4.3. Global Judgment
3.5. Neural Networks for Multi-Spatial Graphs
4. Experiments
4.1. Datasets and Metrics
4.2. Experimental Details
4.3. Quantitative Evaluation
4.4. Qualitative Analysis
4.5. Ablation Experiments
4.6. Optimal Graph Stacking Number Analysis
5. Summary
Author Contributions
Funding
Data Availability Statement
Conflicts of Interest
References
- Shi, L.; Wang, L.; Long, C.; Zhou, S.; Zhou, M.; Niu, Z.; Hua, G. SGCN: Sparse graph convolution network for pedestrian trajectory prediction. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, Nashville, TN, USA, 20–25 June 2021; pp. 8994–9003. [Google Scholar]
- Liu, Y.; Qi, X.; Sisbot, E.A.; Oguchi, K. Multi-agent trajectory prediction with graph attention isomorphism neural network. In Proceedings of the 2022 IEEE Intelligent Vehicles Symposium (IV), Aachen, Germany, 4–9 June 2022; pp. 273–279. [Google Scholar]
- Quan, R.; Zhu, L.; Wu, Y.; Yang, Y. Holistic LSTM for pedestrian trajectory prediction. IEEE Trans. Image Process. 2021, 30, 3229–3239. [Google Scholar] [CrossRef] [Scilit] [PubMed]
- Stoler, B.; Navarro, I.; Jana, M.; Hwang, S.; Francis, J.; Oh, J. SafeShift: Safety-Informed Distribution Shifts for Robust Trajectory Prediction in Autonomous Driving. In Proceedings of the 2024 IEEE Intelligent Vehicles Symposium (IV), Jeju Island, Republic of Korea, 2–5 June 2024. [Google Scholar]
- Hong, J.; Sapp, B.; Philbin, J. Rules of the Road: Predicting Driving Behavior with a Convolutional Model of Semantic Interactions. In Proceedings of the 2019 IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR), Long Beach, CA, USA, 15–20 June 2019. [Google Scholar]
- Zhang, W.; Cheng, H.; Johora, F.T.; Sester, M. ForceFormer: Exploring Social Force and Transformer for Pedestrian Trajectory Prediction. In Proceedings of the 2023 IEEE Intelligent Vehicles Symposium (IV), Anchorage, AK, USA, 4–7 June 2023. [Google Scholar]
- Pang, B.; Cao, J.; Zhou, H.; Mori, G.; Sigal, L. Trajectory Prediction with Latent Belief Energy-Based Model. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR), Nashville, TN, USA, 20–25 June 2021; pp. 11814–11824. [Google Scholar]
- Sighencea, B.I.; Stanciu, R.I.; Căleanu, C.D. A review of deep learning-based methods for pedestrian trajectory prediction. Sensors 2021, 21, 7543. [Google Scholar] [CrossRef] [Scilit] [PubMed]
- Zhou, H.; Ren, D.; Xia, H.; Fan, M.; Yang, X.; Huang, H. Ast-gnn: An attention-based spatio-temporal graph neural network for interaction-aware pedestrian trajectory prediction. Neurocomputing 2021, 445, 298–308. [Google Scholar] [CrossRef] [Scilit]
- Salzmann, T.; Ivanovic, B.; Chakravarty, P.; Pavone, M. Trajectron++: Dynamically-feasible trajectory forecasting with heterogeneous data. In Computer Vision—ECCV 2020: 16th European Conference, Glasgow, UK, 23–28 August 2020, Proceedings, Part XVIII; Springer: Cham, Switzerland, 2020; pp. 683–700. [Google Scholar]
- Kong, W.; Liu, Y.; Li, H.; Wang, C.; Tao, Y.; Kong, X. GSTA: Pedestrian trajectory prediction based on global spatio-temporal association of graph attention network. Pattern Recognit. Lett. 2022, 160, 90–97. [Google Scholar] [CrossRef] [Scilit]
- Messaoud, K.; Yahiaoui, I.; Verroust-Blondet, A.; Nashashibi, F. Attention based vehicle trajectory prediction. IEEE Trans. Intell. Veh. 2020, 6, 175–185. [Google Scholar] [CrossRef] [Scilit]
- Lin, L.; Li, W.; Bi, H.; Qin, L. Vehicle trajectory prediction using LSTMs with spatial–temporal attention mechanisms. IEEE Intell. Transp. Syst. Mag. 2021, 14, 197–208. [Google Scholar] [CrossRef] [Scilit]
- Gupta, A.; Johnson, J.; Fei-Fei, L.; Savarese, S.; Alahi, A. Social-gan: Socially acceptable trajectories with generative adversarial networks. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, Salt Lake City, UT, USA, 18–23 June 2018; pp. 2255–2264. [Google Scholar]
- Alahi, A.; Goel, K.; Ramanathan, V.; Robicquet, A.; Fei-Fei, L.; Savarese, S. Social lstm: Human trajectory prediction in crowded spaces. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, Las Vegas, NV, USA, 27–30 June 2016; pp. 961–971. [Google Scholar]
- Yu, C.; Ma, X.; Ren, J.; Zhao, H.; Yi, S. Spatio-temporal graph transformer networks for pedestrian trajectory prediction. In Computer Vision–ECCV 2020: 16th European Conference, Glasgow, UK, 23–28 August 2020; Proceedings, Part XII; Springer: Cham, Switzerland, 2020; pp. 507–523. [Google Scholar]
- Xu, P.; Hayet, J.B.; Karamouzas, I. Socialvae: Human trajectory prediction using timewise latents. In Computer Vision—ECCV 2022: 17th European Conference, Tel Aviv, Israel, 23–27 October 2022, Proceedings, Part IV; Springer: Cham, Switzerland, 2022; pp. 511–528. [Google Scholar]
- Guo, H.; Liu, Y.; Meng, Q.; Li, J.; Chen, H. Goal-Oriented Pedestrian Trajectory Prediction Considering Spatial-Temporal Interactions. IEEE Trans. Instrum. Meas. 2024, 73, 2532316. [Google Scholar] [CrossRef] [Scilit]
- Mi, J.; Zhang, X.; Zeng, H.; Wang, L. DERGCN: Dynamic-evolving graph convolutional networks for human trajectory prediction. Neurocomputing 2024, 569, 127117. [Google Scholar] [CrossRef] [Scilit]
- Lin, X.; Liang, T.; Lai, J.; Hu, J.F. Progressive pretext task learning for human trajectory prediction. In Computer Vision—ECCV 2024: 18th European Conference, Milan, Italy, 29 September–4 October 2024, Proceedings, Part XXX; Springer: Cham, Switzerland, 2024; pp. 197–214. [Google Scholar]
- Vaswani, A.; Shazeer, N.; Parmar, N.; Uszkoreit, J.; Jones, L.; Gomez, A.N.; Kaiser, Ł.; Polosukhin, I. Attention is all you need. In Proceedings of the Advances in Neural Information Processing Systems, Long Beach, CA, USA, 4–9 December 2017; pp. 5998–6008. [Google Scholar]
- Pellegrini, S.; Ess, A.; Schindler, K.; Van Gool, L. You’ll never walk alone: Modeling social behavior for multi-target tracking. In Proceedings of the 2009 IEEE 12th International Conference on Computer Vision, Kyoto, Japan, 29 September–2 October 2009; pp. 261–268. [Google Scholar]
- Lerner, A.; Chrysanthou, Y.; Lischinski, D. Crowds by example. Comput. Graph. Forum 2007, 26, 655–664. [Google Scholar] [CrossRef] [Scilit]
- Robicquet, A.; Sadeghian, A.; Alahi, A.; Savarese, S. Learning Social Etiquette: Human Trajectory Understanding in Crowded Scenes. In Computer Vision—ECCV 2016: 14th European Conference, Amsterdam, The Netherlands, 11–14 October 2016, Proceedings, Part VIII; Springer: Cham, Switzerland, 2016; pp. 549–565. [Google Scholar]
- Liang, J.; Jiang, L.; Niebles, J.C.; Hauptmann, A.G.; Fei-Fei, L. Peeking into the future: Predicting future person activities and locations in videos. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, Long Beach, CA, USA, 16–17 June 2019; pp. 5725–5734. [Google Scholar]
- Huang, Y.; Bi, H.; Li, Z.; Mao, T.; Wang, Z. Stgat: Modeling spatial-temporal interactions for human trajectory prediction. In Proceedings of the IEEE/CVF International Conference on Computer Vision, Long Beach, CA, USA, 16–17 June 2019; pp. 6272–6281. [Google Scholar]
- Mangalam, K.; Girase, H.; Agarwal, S.; Lee, K.H.; Adeli, E.; Malik, J.; Gaidon, A. It is not the journey but the destination: Endpoint conditioned trajectory prediction. In Computer Vision—ECCV 2020: 16th European Conference, Glasgow, UK, 23–28 August 2020, Proceedings, Part II; Springer: Cham, Switzerland, 2020; pp. 759–776. [Google Scholar]
- Kingma, D.P.; Mohamed, S.; Rezende, D.J.; Welling, M. Semi-Supervised Learning with Deep Generative Models. In Proceedings of the Advances in Neural Information Processing Systems (NeurIPS), Montreal, QC, Canada, 8–13 December 2014; pp. 3581–3589. [Google Scholar]
- Varga, B.; Brand, T.; Schmitz, M.; Hashemi, E. Interaction-Aware Model Predictive Decision-Making for Socially-Compliant Autonomous Driving in Mixed Urban Traffic Scenarios. arXiv 2025, arXiv:2503.01852. [Google Scholar]
- Varga, B.; Yang, D.; Hohmann, S. Cooperative Decision-Making in Shared Spaces: Making Urban Traffic Safer through Human-Machine Cooperation. arXiv 2023, arXiv:2306.14617. [Google Scholar]
- Liu, W.; Liu, P.; Ma, J. DSDrive: Distilling Large Language Model for Lightweight End-to-End Autonomous Driving with Unified Reasoning and Planning. arXiv 2025, arXiv:2505.05360. [Google Scholar]
- Xing, Z.; Song, R.; Teng, Y.; Xu, H. DynHEN: A heterogeneous network model for dynamic bipartite graph representation learning. Neurocomputing 2022, 508, 47–57. [Google Scholar] [CrossRef] [Scilit]
- Dai, J.; Yuan, W.; Bao, C.; Zhang, Z. DGNN: Denoising graph neural network for session-based recommendation. In Proceedings of the 2022 IEEE 9th International Conference on Data Science and Advanced Analytics (DSAA), Shenzhen, China, 13–16 October 2022; pp. 1–8. [Google Scholar]
- Peng, H.; Wang, H.; Du, B.; Bhuiyan, M.Z.A.; Ma, H.; Liu, J.; Wang, L.; Yang, Z.; Du, L.; Wang, S.; et al. Spatial temporal incidence dynamic graph neural networks for traffic flow forecasting. Inf. Sci. 2020, 521, 277–290. [Google Scholar] [CrossRef] [Scilit]
- Guan, M.; Iyer, A.P.; Kim, T. Dynagraph: Dynamic graph neural networks at scale. In Proceedings of the 5th ACM SIGMOD Joint International Workshop on Graph Data Management Experiences & Systems (GRADES) and Network Data Analytics (NDA), Philadelphia, PA, USA, 12 June 2022; pp. 1–10. [Google Scholar]
- Luo, W.; Zhang, H.; Yang, X.; Bo, L.; Yang, X.; Li, Z.; Qie, X.; Ye, J. Dynamic heterogeneous graph neural network for real-time event prediction. In Proceedings of the 26th ACM SIGKDD International Conference on Knowledge Discovery & Data Mining, Virtual Event, 6–10 July 2020; pp. 3213–3223. [Google Scholar]
- Zhou, L.; Yang, D.; Zhai, X.; Wu, S.; Hu, Z.; Liu, J. GA-STT: Human trajectory prediction with group aware spatial-temporal transformer. IEEE Robot. Autom. Lett. 2022, 7, 7660–7667. [Google Scholar] [CrossRef] [Scilit]
- Liu, Y.; Zhang, Y.; Li, K.; Worrall, S.; Qiao, Y.; Li, Y.F.; Kong, H. Knowledge-aware Graph Transformer for Pedestrian Trajectory Prediction. In Proceedings of the IEEE Intelligent Transportation Systems Conference (ITSC), Bilbao, Spain, 24–28 September 2023. [Google Scholar]
- Chen, H.; Xu, Z.; Yeh, C.M.; Lai, V.; Zheng, Y.; Xu, M.; Tong, H. MGFormer: Masked Graph Transformer for Large-Scale Recommendation. arXiv 2024, arXiv:2405.04028. [Google Scholar]
- Chen, W.; Sang, H.; Wang, J.; Zhao, Z. STIGCN: Spatial–temporal interaction-aware graph convolution network for pedestrian trajectory prediction. J. Supercomput. 2024, 80, 10695–10719. [Google Scholar] [CrossRef] [Scilit]
- Wang, H.; Chen, J.; Pan, T.; Dong, Z.; Zhang, L.; Jiang, R.; Song, X. STGformer: Efficient Spatiotemporal Graph Transformer for Traffic Forecasting. arXiv 2024, arXiv:2410.00385. [Google Scholar]
- Wong, C.; Xia, B.; Zou, Z.; You, X. Socialcircle+: Learning the angle-based conditioned interaction representation for pedestrian trajectory prediction. arXiv 2024, arXiv:2409.14984. [Google Scholar]










| Model | Year | ETH | HOTEL | UNIV | ZARA1 | ZARA2 | Avg |
|---|---|---|---|---|---|---|---|
| Social-GAN [14] | 2018 | 0.73/1.48 | 0.49/1.01 | 0.41/0.84 | 0.27/0.56 | 0.33/0.70 | 0.45/0.91 |
| PECNet [27] | 2019 | 0.81/1.52 | 0.72/1.61 | 0.60/1.26 | 0.34/0.69 | 0.42/0.84 | 0.58/1.18 |
| Trajectron++ [10] | 2020 | 0.67/1.18 | 0.18/0.28 | 0.30/0.54 | 0.25/0.41 | 0.18/0.32 | 0.32/0.55 |
| STAR [16] | 2020 | 0.36/0.65 | 0.21/0.36 | 0.31/0.62 | 0.26/0.55 | 0.22/0.46 | 0.27/0.53 |
| DERGCN [18] | 2023 | 0.54/1.01 | 0.23/0.42 | 0.30/0.63 | 0.22/0.44 | 0.20/0.42 | 0.30/0.58 |
| PPT [16] | 2024 | 0.35/0.51 | 0.15/0.25 | 0.13/0.24 | 0.22/0.39 | 0.18/0.31 | 0.21/0.34 |
| STIGCN [40] | 2024 | 0.42/0.58 | 0.14/0.23 | 0.17/0.29 | 0.26/0.45 | 0.21/0.37 | 0.24/0.38 |
| SocialCircle+ [42] | 2024 | 0.25/0.42 | 0.10/0.15 | 0.24/0.42 | 0.23/0.38 | 0.18/0.24 | 0.20/0.32 |
| STGformer [41] | 2024 | 0.27/0.56 | 0.11/0.17 | 0.18/0.23 | 0.16/0.30 | 0.17/0.21 | 0.18/0.29 |
| MSTT(Ours) | - | 0.24/0.49 | 0.18/0.29 | 0.19/0.28 | 0.21/0.30 | 0.16/0.19 | 0.20/0.31 |
| Dataset | Social-GAN [14] | STAR [16] | DERGCN [18] | STGformer [41] | Ours |
|---|---|---|---|---|---|
| SDD | 27.23/41.44 | 7.85/11.85 | 8.21/10.22 | 5.38/8.92 | 3.16/5.12 |
| Rebounding | 30.54/47.68 | 15.65/19.21 | 14.06/17.63 | 12.42/15.49 | 11.36/13.42 |
| Model Name | Parameter Count (M) | Memory Usage (GB) | Inference Latency (ms) |
|---|---|---|---|
| PECNet [27] | 25.0 | 10.5 | 0.164 |
| SocialCircle+ [42] | 30.8 | 12.6 | 0.173 |
| STAR [16] | 20.5 | 14.4 | 0.143 |
| STGformer [41] | 34.4 | 16.4 | 0.186 |
| Ours | 28.8 | 13.5 | 0.158 |
| Model | ETH | HOTEL | ZARA1 | ZARA2 | UNIV | Avg |
|---|---|---|---|---|---|---|
| STAR | 0.36/0.65 | 0.22/0.36 | 0.27/0.56 | 0.32/0.55 | 0.28/0.68 | 0.27/0.53 |
| STAR-R | 0.33/0.52 | 0.22/0.34 | 0.25/0.50 | 0.22/0.45 | 0.24/0.58 | 0.25/0.48 |
| STAR-M | 0.34/0.58 | 0.18/0.28 | 0.24/0.41 | 0.25/0.48 | 0.27/0.54 | 0.26/0.46 |
| STAR-R-M | 0.24/0.49 | 0.18/0.29 | 0.19/0.28 | 0.21/0.30 | 0.16/0.19 | 0.20/0.31 |
| Method | Variants | ADE/FDE | |||||
|---|---|---|---|---|---|---|---|
| ETH | HOTEL | UNIV | ZARA1 | ZARA2 | Avg | ||
| w | 0 | 0.42/0.67 | 0.32/0.45 | 0.31/0.39 | 0.28/0.48 | 0.26/0.24 | 0.32/0.45 |
| 0.25 | 0.32/0.54 | 0.26/0.30 | 0.21/0.36 | 0.22/0.35 | 0.18/0.23 | 0.24/0.36 | |
| 0.5 | 0.24/0.49 | 0.18/0.29 | 0.19/0.28 | 0.21/0.30 | 0.16/0.19 | 0.20/0.31 | |
| 0.75 | 0.28/0.42 | 0.21/0.32 | 0.23/0.33 | 0.23/0.35 | 0.17/0.22 | 0.22/0.33 | |
| Multi-head | w/o | 0.38/0.65 | 0.28/0.42 | 0.30/0.45 | 0.32/0.40 | 0.26/0.34 | 0.31/0.45 |
| 1 | 0.29/0.54 | 0.21/0.26 | 0.23/0.45 | 0.24/0.26 | 0.21/0.26 | 0.24/0.35 | |
| 2 | 0.26/0.51 | 0.18/0.26 | 0.20/0.46 | 0.20/0.32 | 0.17/0.23 | 0.20/0.36 | |
| 4 | 0.24/0.49 | 0.18/0.29 | 0.19/0.28 | 0.21/0.30 | 0.16/0.19 | 0.20/0.31 | |
| 8 | 0.27/0.52 | 0.20/0.26 | 0.19/0.48 | 0.25/0.34 | 0.18/0.25 | 0.22/0.37 | |
| WeightA | w/o | 0.30/0.56 | 0.25/0.36 | 0.24/0.32 | 0.26/0.33 | 0.18/0.23 | 0.25/0.36 |
| 0.26/0.53 | 0.20/0.30 | 0.20/0.31 | 0.24/0.30 | 0.18/0.22 | 0.22/0.33 | ||
| 0.24/0.49 | 0.18/0.29 | 0.19/0.28 | 0.21/0.30 | 0.16/0.19 | 0.20/0.31 | ||
Disclaimer/Publisher’s Note: The statements, opinions and data contained in all publications are solely those of the individual author(s) and contributor(s) and not of MDPI and/or the editor(s). MDPI and/or the editor(s) disclaim responsibility for any injury to people or property resulting from any ideas, methods, instructions or products referred to in the content. |
© 2025 by the authors. Licensee MDPI, Basel, Switzerland. This article is an open access article distributed under the terms and conditions of the Creative Commons Attribution (CC BY) license (https://creativecommons.org/licenses/by/4.0/).
Share and Cite
Zhang, Q.; Zhang, X.; Ye, Z.; Mi, J. MSTT: A Multi-Spatio-Temporal Graph Attention Model for Pedestrian Trajectory Prediction. Sensors 2025, 25, 4850. https://doi.org/10.3390/s25154850
Zhang Q, Zhang X, Ye Z, Mi J. MSTT: A Multi-Spatio-Temporal Graph Attention Model for Pedestrian Trajectory Prediction. Sensors. 2025; 25(15):4850. https://doi.org/10.3390/s25154850
Chicago/Turabian StyleZhang, Qingrui, Xuxiu Zhang, Zilang Ye, and Jing Mi. 2025. "MSTT: A Multi-Spatio-Temporal Graph Attention Model for Pedestrian Trajectory Prediction" Sensors 25, no. 15: 4850. https://doi.org/10.3390/s25154850
APA StyleZhang, Q., Zhang, X., Ye, Z., & Mi, J. (2025). MSTT: A Multi-Spatio-Temporal Graph Attention Model for Pedestrian Trajectory Prediction. Sensors, 25(15), 4850. https://doi.org/10.3390/s25154850

