IDEAS home Printed from https://ideas.repec.org/a/gam/jsusta/v15y2023i17p13080-d1229076.html
   My bibliography  Save this article

MAT-WGCN: Traffic Speed Prediction Using Multi-Head Attention Mechanism and Weighted Adjacency Matrix

Author

Listed:
  • Xiaoping Tian

    (College of Information Engineering, Beijing Institute of Petrochemical Technology, Beijing 102617, China)

  • Lei Du

    (College of Information Engineering, Beijing Institute of Petrochemical Technology, Beijing 102617, China)

  • Xiaoyan Zhang

    (College of Information Engineering, Beijing Institute of Petrochemical Technology, Beijing 102617, China)

  • Song Wu

    (College of Information Engineering, Beijing Institute of Petrochemical Technology, Beijing 102617, China)

Abstract

Traffic prediction is important in applications such as traffic management, route planning, and traffic flow optimization. Traffic speed prediction is an important part of traffic forecasting, which has always been a challenging problem due to the complexity and dynamics of traffic systems. In order to predict traffic speed more accurately, we propose a traffic speed prediction model based on a multi-head attention mechanism and weighted adjacency matrix: MAT-WGCN. MAT-WGCN first uses GCN to extract the road spatial features in the weighted adjacency matrix, and it uses GRU to extract the correlation between speed and time from the original features. Then, the spatial features extracted by GCN and the temporal features extracted by GRU are fused, and a multi-head attention mechanism is introduced to integrate spatiotemporal features, collect and summarize spatiotemporal road information, and realize traffic speed prediction. In this study, the prediction performance of MAT-WGCN was tested on two real datasets, EXPY-TKY and METR-LA, and compared with the performance of traditional methods such as HA and SVR that do not combine spatial features, as well as T-GCN, A3T-GCN, and newer methods such as GCN and NA-DGRU that combine spatial features. The experimental results demonstrate that MAT-WGCN can capture the temporal and spatial characteristics of road conditions, thus enabling accurate traffic speed predictions. Furthermore, the incorporation of a multi-head attention mechanism significantly enhances the robustness of our model.

Suggested Citation

  • Xiaoping Tian & Lei Du & Xiaoyan Zhang & Song Wu, 2023. "MAT-WGCN: Traffic Speed Prediction Using Multi-Head Attention Mechanism and Weighted Adjacency Matrix," Sustainability, MDPI, vol. 15(17), pages 1-23, August.
  • Handle: RePEc:gam:jsusta:v:15:y:2023:i:17:p:13080-:d:1229076
    as

    Download full text from publisher

    File URL: https://www.mdpi.com/2071-1050/15/17/13080/pdf
    Download Restriction: no

    File URL: https://www.mdpi.com/2071-1050/15/17/13080/
    Download Restriction: no
    ---><---

    Corrections

    All material on this site has been provided by the respective publishers and authors. You can help correct errors and omissions. When requesting a correction, please mention this item's handle: RePEc:gam:jsusta:v:15:y:2023:i:17:p:13080-:d:1229076. See general information about how to correct material in RePEc.

    If you have authored this item and are not yet registered with RePEc, we encourage you to do it here. This allows to link your profile to this item. It also allows you to accept potential citations to this item that we are uncertain about.

    We have no bibliographic references for this item. You can help adding them by using this form .

    If you know of missing items citing this one, you can help us creating those links by adding the relevant references in the same way as above, for each refering item. If you are a registered author of this item, you may also want to check the "citations" tab in your RePEc Author Service profile, as there may be some citations waiting for confirmation.

    For technical questions regarding this item, or to correct its authors, title, abstract, bibliographic or download information, contact: MDPI Indexing Manager (email available below). General contact details of provider: https://www.mdpi.com .

    Please note that corrections may take a couple of weeks to filter through the various RePEc services.

    IDEAS is a RePEc service. RePEc uses bibliographic data supplied by the respective publishers.