Abstract
Accurate traffic prediction is crucial for urban traffic planning and management. Recent advancements in spatiotemporal models have significantly improved the modeling of complex spatiotemporal correlations for traffic flow prediction. However, spatial correlations in traffic networks typically consist of both static and dynamic components. Many existing methods employ a single graph learning strategy to jointly model these components, which may limit their flexibility in comprehensively capturing the diverse spatial interactions among nodes. Additionally, the dynamic graph generation mechanisms based on input windows primarily rely on traffic flow observations within a limited time frame. This dependence on short-term observational data may hinder the effective capture of long-term spatiotemporal dependencies. To overcome these limitations, we propose a time information-enhanced multi-space modeling spatiotemporal transformer network (STMT) for traffic prediction. Specifically, we elaborate on three different spatiotemporal transformers for temporal modeling, static graph spatiotemporal modeling, and dynamic graph spatiotemporal dependency modeling to comprehensively model spatiotemporal relationships. Then, we design a dynamic graph generator that introduces a memory unit to provide historical traffic patterns during dynamic graph generation. Additionally, we propose time-node embeddings to adapt to different traffic patterns for the nodes at various times. Extensive experiments on six traffic datasets demonstrate that STMT achieves superior performance compared to 17 baseline methods.
Funding Information
  • National Natural Science Foundation of China (62462021)
  • Guangxi Natural Science Foundation (2026GXNSFAA00641306)
  • Philosophy and Social Sciences Planning Project of Zhejiang Province (25JCXK006YB)
  • Hainan Provincial Natural Science Foundation of China (625RC716)
  • Basic and Applied Basic Research Foundation of Guangdong Province (2025A1515010197)

This publication has 36 references indexed in Scilit: