JOURNAL ARTICLE

STAN: A Spatio-Temporal Attention Network for Traffic Forecasting

Abstract

Traffic prediction plays a vital role in intelligent transportation systems, such as flow control and route planning. As a classical spatial-temporal prediction task, timely accurate traffic prediction is challenging due to complicated spatial-temporal correlation in traffic data. Traffic data contains short-term and long-term temporal sequential correlations, as well as local and global spatial correlations. In addition, traffic patterns at different time steps and the distribution of traffic data at various nodes may differ, so models need to have the ability to capture these temporal and spatial heterogeneities. To solve these issues, we propose a novel traffic prediction model, called Spatio-Temporal Attention Network (STAN). It models short-term and long-term temporal correlations using Gate Recurrent Unit (GRU) and Heterogeneity-Aware Temporal Self-Attention (HA-TSA) mechanism, respectively. It further models local and global spatial correlations using Graph Attention Network (GAT) and Heterogeneity-Aware Spatial Self-Attention (HA-SSA) mechanism, respectively. Based on traditional self-attention mechanism, HA-TSA and HA-SSA further learn different parameters for different nodes and different time steps to capture temporal and spatial heterogeneities. Besides, in order to extract the periodicity of traffic data, time stamps are concatenated to the original traffic features as auxiliary information. STAN also adds a centrality encoding based on node's degree to measure the importance of a node in the traffic network, thus helping to discover similar traffic patterns between nodes. Experimental results on two benchmark traffic datasets show that compared with the state-of-the-art baseline method, Mean Absolute Errors (MAEs) of STAN decrease by 7.48% and 7.77%, and Root Mean Squared Errors (RMSEs) of STAN decrease by 1.89% and 5.19%, respectively.

Keywords:
Computer science Artificial intelligence

Metrics

1
Cited By
0.21
FWCI (Field Weighted Citation Impact)
49
Refs
0.52
Citation Normalized Percentile
Is in top 1%
Is in top 10%

Citation History

Topics

Traffic Prediction and Management Techniques
Physical Sciences →  Engineering →  Building and Construction
Time Series Analysis and Forecasting
Physical Sciences →  Computer Science →  Signal Processing
Data Management and Algorithms
Physical Sciences →  Computer Science →  Signal Processing

Related Documents

JOURNAL ARTICLE

Spatio-Temporal Graph Attention Convolution Network for Traffic Flow Forecasting

Kun LiuYifan ZhuXiao WangHongya JiChengfei Huang

Journal:   Transportation Research Record Journal of the Transportation Research Board Year: 2024 Vol: 2678 (9)Pages: 136-149
JOURNAL ARTICLE

A spatio-temporal mixed attention network for multimodal traffic flow forecasting

Junli LiuDongyan LiChuang WangCan CuiYuanyuan LiYuanyuan LiDongyan Li

Journal:   Engineering Research Express Year: 2025 Vol: 7 (2)Pages: 0252a2-0252a2
© 2026 ScienceGate Book Chapters — All rights reserved.