Multi-step citywide traffic flow forecasting based on multiscale spatio-temporal transformer

Accurate citywide traffic flow forecasting is an essential task in intelligent transportation systems. Unlike single-step forecasting, multi-step traffic flow forecasting offers extended insights that support proactive traffic management and resource allocation over longer time horizons. This paper proposes a Multi-Step Multiscale Spatial–Temporal Transformer (MS-MSTformer) for citywide traffic flow forecasting, which leverages a multiscale patch mechanism to capture both local and global spatial dependencies while integrating temporal patterns of closeness, period, and trend. Two novel cross-attention modules, namely Patch-Temporal Cross-Attention (PTCA) and Region-Temporal Cross-Attention (RTCA) are presented. These modules utilize temporal information as the query, with PTCA and RTCA focusing on patches and regions, respectively, to effectively fuse diverse spatio-temporal features. Extensive experiments on the widely used New York City Taxi (NYCTaxi) and New York City Bike (NYCBike) datasets demonstrate the MS-MSTformer’s capability to provide accurate multi-step citywide traffic flow forecasting. Specifically, the proposed model outperforms the baseline models in 11 out of 12 evaluation scenarios. On average, MS-MSTformer improves Root Mean Square Error (RMSE) by 31.13% and Mean Absolute Error (MAE) by 29.22% over the deep learning baselines. In addition, the ablation study demonstrates the contributions of both PTCA and RTCA to the proposed MS-MSTformer. • A novel multi-step forecasting framework is proposed for citywide traffic flow forecasting. • A multiscale patch captures both local and global spatial dependencies with temporal patterns. • A cross-attention mechanism (PTCA & RTCA) fuses spatio-temporal features effectively. • The model achieves state-of-the-art accuracy on NYCTaxi and NYCBike datasets.

Authors

Institutions

Publication Details

Journal
Engineering Applications of Artificial Intelligence
Published
2025-06-17
DOI
https://doi.org/10.1016/j.engappai.2025.111362
Citations
2
Primary Topic
Traffic Prediction and Management Techniques
Type
article
Field-Weighted Citation Impact
2.01

Funders

Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
article

Multi-step citywide traffic flow forecasting based on multiscale spatio-temporal transformer

Xiao Yan, Taiyong Li, Jiang Wu, Shaowu Zhang et al.
2 citations
Engineering Applications of Artificial Intelligence
Traffic Prediction and Management Techniques
2.01
article

Multi-step citywide traffic flow forecasting based on multiscale spatio-temporal transformer

Xiao Yan, Taiyong Li, Jiang Wu, Shaowu Zhang, Yingqi Chen
article en
2 citations

Abstract

Accurate citywide traffic flow forecasting is an essential task in intelligent transportation systems. Unlike single-step forecasting, multi-step traffic flow forecasting offers extended insights that support proactive traffic management and resource allocation over longer time horizons. This paper proposes a Multi-Step Multiscale Spatial–Temporal Transformer (MS-MSTformer) for citywide traffic flow forecasting, which leverages a multiscale patch mechanism to capture both local and global spatial dependencies while integrating temporal patterns of closeness, period, and trend. Two novel cross-attention modules, namely Patch-Temporal Cross-Attention (PTCA) and Region-Temporal Cross-Attention (RTCA) are presented. These modules utilize temporal information as the query, with PTCA and RTCA focusing on patches and regions, respectively, to effectively fuse diverse spatio-temporal features. Extensive experiments on the widely used New York City Taxi (NYCTaxi) and New York City Bike (NYCBike) datasets demonstrate the MS-MSTformer’s capability to provide accurate multi-step citywide traffic flow forecasting. Specifically, the proposed model outperforms the baseline models in 11 out of 12 evaluation scenarios. On average, MS-MSTformer improves Root Mean Square Error (RMSE) by 31.13% and Mean Absolute Error (MAE) by 29.22% over the deep learning baselines. In addition, the ablation study demonstrates the contributions of both PTCA and RTCA to the proposed MS-MSTformer. • A novel multi-step forecasting framework is proposed for citywide traffic flow forecasting. • A multiscale patch captures both local and global spatial dependencies with temporal patterns. • A cross-attention mechanism (PTCA & RTCA) fuses spatio-temporal features effectively. • The model achieves state-of-the-art accuracy on NYCTaxi and NYCBike datasets.

Engineering Applications of Artificial IntelligenceVol. 158
Southwestern University of Finance and Economics (CN), China Electronics Technology Group Corporation (CN)
Humanities and Social Science Fund of Ministry of Education of China
Sustainable cities and communities
Openalex Percentile: Top 14%
Traffic Prediction and Management Techniques
2.01
AI Navigator

Ask Laika to Summarize, Analyze, and Connect papers live on the map.

Summarize Papers & Methodologies

Extract key findings, datasets, and comparative methods across publications.

Benchmark Rankings & Visual Analytics

Rank top research institutions, authors, funders, topics, and journals by Field-Weighted Citation Impact (FWCI) and paper volume with instant charts.

Connect Distant Disciplines

Bridge topological clusters on the map to find hidden collaborative intersections.