JOURNAL ARTICLE

STGAT: Spatial-Temporal Graph Attention Networks for Traffic Flow Prediction

Abstract

Accurate traffic flow prediction is of great importance in Intelligent Transportation System (ITS) for improving traffic efficiency, reducing congestion and so on. However, due to the complex spatial and temporal dependencies, achieving the accurate prediction is challenging. Traditional attention-based networks for traffic flow prediction typically use sine and cosine functions to do position encoding, which fail to capture the spatial and temporal dependencies and do not contain the graph structure information. In this paper, we propose a novel model named Spatial-Temporal Graph ATtention networks (STGAT), which leverages structure-aware self-attention mechanism to predict future traffic flow. The model introduces temporal multi-head self-attention modules, and designs spatial multi-head graph self-attention modules with structure-aware graph filters to extract more temporal and spatial information. Besides, our model adopts temporal and spatial position embedding layers to capture the spatial-temporal dependencies in traffic flow data. Experimental results show that STGAT shows better prediction performance than the state-of-art models on three real-world datasets PEMS04, PEMS07 and PEMS08. For example, we observe up to 10.38% improvement in terms of Mean Absolute Percentage Error (MAPE) compared with the well-known model ASTGNN.

Keywords:
Computer science Graph Graph embedding Data mining Temporal database Attention network Spatial analysis Artificial intelligence Theoretical computer science Mathematics

Metrics

1
Cited By
0.21
FWCI (Field Weighted Citation Impact)
33
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
Transportation Planning and Optimization
Social Sciences →  Social Sciences →  Transportation
Traffic control and management
Physical Sciences →  Engineering →  Control and Systems Engineering

Related Documents

JOURNAL ARTICLE

STGAT: Spatial–Temporal Graph Attention Neural Network for Stock Prediction

Ruizhe FengShanshan JiangXingyu LiangMin Xia

Journal:   Applied Sciences Year: 2025 Vol: 15 (8)Pages: 4315-4315
JOURNAL ARTICLE

Spatial-temporal Graph Attention Networks for Traffic Flow Forecasting

Wei ChangSheng Jin

Journal:   IOP Conference Series Earth and Environmental Science Year: 2020 Vol: 587 (1)Pages: 012065-012065
JOURNAL ARTICLE

Spatial-Temporal Graph Attention Networks for Traffic Flow Forecasting

强 邓

Journal:   Computer Science and Application Year: 2021 Vol: 11 (11)Pages: 2770-2779
© 2026 ScienceGate Book Chapters — All rights reserved.