IDEAS home Printed from https://ideas.repec.org/a/kap/jgeosy/v27y2025i2d10.1007_s10109-025-00464-5.html
   My bibliography  Save this article

DyAdapTransformer: dynamic adaptive spatial–temporal graph transformer for traffic flow prediction

Author

Listed:
  • Hui Dong

    (Shijiazhuang Tiedao University)

  • Xiao Pan

    (Shijiazhuang Tiedao University)

  • Xiao Chen

    (Hebei Normal University of Science and Technology)

  • Jing Sun

    (Shijiazhuang Tiedao University)

  • Shuhai Wang

    (Shijiazhuang Tiedao University)

Abstract

This paper focuses on a mid-to-long-term traffic flow prediction method that integrates spatial–temporal graph neural networks with the Transformer. It systematically improves upon existing methods, which struggle to effectively capture the spatial–temporal evolution patterns of traffic flow in complex traffic scenarios. The current research faces three key issues: (1) The temporal position embedding model significantly lacks effectiveness in modeling short-term evolution features of traffic flow. (2) The spatial position embedding lacks a verifiable mechanism, making it difficult to confirm its validity in representing actual road network topologies. (3) The spatial–temporal graph has a single spatial structure, limiting the ability of spatial–temporal graph neural networks to capture multistage evolution patterns of traffic flow. To address these issues, we propose a traffic flow prediction framework based on a dynamic adaptive spatial–temporal graph Transformer. The framework first improves the temporal position embedding model's expressiveness by introducing attributes closely related to short-term traffic flow changes. Second, a random walk-based spatial embedding method is designed, where the transition probability matrix and node vector space mapping have a verifiable mathematical relationship, ensuring theoretical interpretability in the spatial position modeling process. Finally, a dynamic adaptive spatial–temporal graph neural network model is proposed. This model learns time-varying spatial structures in a data-driven manner based on an adaptive mechanism and combines temporal self-attention with dynamic adaptive graph attention networks to collaboratively capture multiscale spatial–temporal dependencies. Comparative experiments with six baseline methods on the real-world PEMS08 dataset demonstrate that the proposed framework exhibits significant performance advantages in traffic flow prediction.

Suggested Citation

  • Hui Dong & Xiao Pan & Xiao Chen & Jing Sun & Shuhai Wang, 2025. "DyAdapTransformer: dynamic adaptive spatial–temporal graph transformer for traffic flow prediction," Journal of Geographical Systems, Springer, vol. 27(2), pages 229-255, April.
  • Handle: RePEc:kap:jgeosy:v:27:y:2025:i:2:d:10.1007_s10109-025-00464-5
    DOI: 10.1007/s10109-025-00464-5
    as

    Download full text from publisher

    File URL: http://link.springer.com/10.1007/s10109-025-00464-5
    File Function: Abstract
    Download Restriction: Access to full text is restricted to subscribers.

    File URL: https://libkey.io/10.1007/s10109-025-00464-5?utm_source=ideas
    LibKey link: if access is restricted and if your library uses this service, LibKey will redirect you to where you can use your library subscription to access this item
    ---><---

    As the access to this document is restricted, you may want to search for a different version of it.

    More about this item

    Keywords

    Traffic flow prediction; Random walk; Dynamic adaptive mechanism; Graph attention network;
    All these keywords.

    JEL classification:

    • C33 - Mathematical and Quantitative Methods - - Multiple or Simultaneous Equation Models; Multiple Variables - - - Models with Panel Data; Spatio-temporal Models
    • C45 - Mathematical and Quantitative Methods - - Econometric and Statistical Methods: Special Topics - - - Neural Networks and Related Topics

    Statistics

    Access and download statistics

    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:kap:jgeosy:v:27:y:2025:i:2:d:10.1007_s10109-025-00464-5. 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: Sonal Shukla or Springer Nature Abstracting and Indexing (email available below). General contact details of provider: http://www.springer.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.