AmTGBiM: A Mamba-based model for long-term traffic flow prediction combining adaptive masked spatial transformer and dynamic graph attention

Abstract Existing traffic flow prediction models struggle to adequately capture spatiotemporal features and efficiently model long-term trends, particularly on multi-node sparse road networks. To address these limitations, we propose AmTGBiM, a long-term traffic flow prediction model that integrates an adaptive masked spatial Transformer (AMST), a dynamic graph attention network (GATv2), a dynamic gated mechanism, and a bidirectional Mamba with learnable weights (Bi-W-Mamba). First, AMST captures long-range spatial dependencies in traffic networks. Its attention mask merges a multi-hop adjacency matrix with node importance information, enabling the joint modeling of local topology and global long-range dependencies. This design improves spatiotemporal feature extraction accuracy while reducing computational overhead. Second, GATv2 excavates local heterogeneity and nonuniform node connectivity on road networks. The representations from GATv2 and AMST are then adaptively fused via the dynamic gated mechanism, further improving spatial modeling accuracy. Finally, Bi-W-Mamba models temporal dependencies through forward and backward branches to encode temporal sequences in reverse directions, where trainable weights balance two branches’ contributions. This architecture enhances the accuracy and stability of long-term traffic flow prediction. Experimental results demonstrate that AmTGBiM outperforms nine state-of-the-art baseline models in prediction accuracy, while maintaining low memory consumption and high computational efficiency. Such superiority is particularly prominent for long-term traffic flow prediction on sparse road networks. The source code is publicly available at https://github.com/mzw-coder/AmTGBiM .

Authors

Institutions

Publication Details

Journal
Journal of King Saud University - Computer and Information Sciences
Published
2026-05-16
DOI
https://doi.org/10.1007/s44443-026-00854-9
Primary Topic
Traffic Prediction and Management Techniques
Type
article
Field-Weighted Citation Impact
0.00

Funders

Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
article

AmTGBiM: A Mamba-based model for long-term traffic flow prediction combining adaptive masked spatial transformer and dynamic graph attention

Xiaoyi Jiang, Zhiwei Meng, Yamei Xu
Journal of King Saud University - Computer and Information Sciences
Traffic Prediction and Management Techniques
article

AmTGBiM: A Mamba-based model for long-term traffic flow prediction combining adaptive masked spatial transformer and dynamic graph attention

Xiaoyi Jiang, Zhiwei Meng, Yamei Xu
article en

Abstract

Abstract Existing traffic flow prediction models struggle to adequately capture spatiotemporal features and efficiently model long-term trends, particularly on multi-node sparse road networks. To address these limitations, we propose AmTGBiM, a long-term traffic flow prediction model that integrates an adaptive masked spatial Transformer (AMST), a dynamic graph attention network (GATv2), a dynamic gated mechanism, and a bidirectional Mamba with learnable weights (Bi-W-Mamba). First, AMST captures long-range spatial dependencies in traffic networks. Its attention mask merges a multi-hop adjacency matrix with node importance information, enabling the joint modeling of local topology and global long-range dependencies. This design improves spatiotemporal feature extraction accuracy while reducing computational overhead. Second, GATv2 excavates local heterogeneity and nonuniform node connectivity on road networks. The representations from GATv2 and AMST are then adaptively fused via the dynamic gated mechanism, further improving spatial modeling accuracy. Finally, Bi-W-Mamba models temporal dependencies through forward and backward branches to encode temporal sequences in reverse directions, where trainable weights balance two branches’ contributions. This architecture enhances the accuracy and stability of long-term traffic flow prediction. Experimental results demonstrate that AmTGBiM outperforms nine state-of-the-art baseline models in prediction accuracy, while maintaining low memory consumption and high computational efficiency. Such superiority is particularly prominent for long-term traffic flow prediction on sparse road networks. The source code is publicly available at https://github.com/mzw-coder/AmTGBiM .

Journal of King Saud University - Computer and Information Sciences
University of Münster (DE), Lanzhou University of Technology (CN)
National Natural Science Foundation of China
Openalex Percentile: Top 6%
Traffic Prediction and Management Techniques
AI Navigator

Ask Laika to Summarize, Analyze, and Connect papers live on the map.

Summarize Papers & Methodologies

Extract key findings, datasets, and comparative methods across publications.

Benchmark Rankings & Visual Analytics

Rank top research institutions, authors, funders, topics, and journals by Field-Weighted Citation Impact (FWCI) and paper volume with instant charts.

Connect Distant Disciplines

Bridge topological clusters on the map to find hidden collaborative intersections.