Open Access iconOpen Access

ARTICLE

crossmark

MSSTGCN: Multi-Head Self-Attention and Spatial-Temporal Graph Convolutional Network for Multi-Scale Traffic Flow Prediction

Xinlu Zong*, Fan Yu, Zhen Chen, Xue Xia

School of Computer Science, Hubei University of Technology, Wuhan, 430068, China

* Corresponding Author: Xinlu Zong. Email: email

(This article belongs to the Special Issue: Graph Neural Networks: Methods and Applications in Graph-related Problems)

Computers, Materials & Continua 2025, 82(2), 3517-3537. https://doi.org/10.32604/cmc.2024.057494

Abstract

Accurate traffic flow prediction has a profound impact on modern traffic management. Traffic flow has complex spatial-temporal correlations and periodicity, which poses difficulties for precise prediction. To address this problem, a Multi-head Self-attention and Spatial-Temporal Graph Convolutional Network (MSSTGCN) for multiscale traffic flow prediction is proposed. Firstly, to capture the hidden traffic periodicity of traffic flow, traffic flow is divided into three kinds of periods, including hourly, daily, and weekly data. Secondly, a graph attention residual layer is constructed to learn the global spatial features across regions. Local spatial-temporal dependence is captured by using a T-GCN module. Thirdly, a transformer layer is introduced to learn the long-term dependence in time. A position embedding mechanism is introduced to label position information for all traffic sequences. Thus, this multi-head self-attention mechanism can recognize the sequence order and allocate weights for different time nodes. Experimental results on four real-world datasets show that the MSSTGCN performs better than the baseline methods and can be successfully adapted to traffic prediction tasks.

Keywords


Cite This Article

APA Style
Zong, X., Yu, F., Chen, Z., Xia, X. (2025). MSSTGCN: multi-head self-attention and spatial-temporal graph convolutional network for multi-scale traffic flow prediction. Computers, Materials & Continua, 82(2), 3517–3537. https://doi.org/10.32604/cmc.2024.057494
Vancouver Style
Zong X, Yu F, Chen Z, Xia X. MSSTGCN: multi-head self-attention and spatial-temporal graph convolutional network for multi-scale traffic flow prediction. Comput Mater Contin. 2025;82(2):3517–3537. https://doi.org/10.32604/cmc.2024.057494
IEEE Style
X. Zong, F. Yu, Z. Chen, and X. Xia, “MSSTGCN: Multi-Head Self-Attention and Spatial-Temporal Graph Convolutional Network for Multi-Scale Traffic Flow Prediction,” Comput. Mater. Contin., vol. 82, no. 2, pp. 3517–3537, 2025. https://doi.org/10.32604/cmc.2024.057494



cc Copyright © 2025 The Author(s). Published by Tech Science Press.
This work is licensed under a Creative Commons Attribution 4.0 International License , which permits unrestricted use, distribution, and reproduction in any medium, provided the original work is properly cited.
  • 451

    View

  • 159

    Download

  • 0

    Like

Share Link