Open Access iconOpen Access

ARTICLE

Hybrid Mamba-Transformer Framework with Density-Based Clustering for Traffic Forecasting

Qinglei Zhang, Zhenzhen Wang*, Jianguo Duan, Jiyun Qin, Ying Zhou

School of Logistics Engineering, Shanghai Maritime University, Shanghai, China

* Corresponding Author: Zhenzhen Wang. Email: email

(This article belongs to the Special Issue: Complex Network Approaches for Resilient and Efficient Urban Transportation Systems)

Computers, Materials & Continua 2026, 87(3), 62 https://doi.org/10.32604/cmc.2026.076562

Abstract

In recent years, increasing urban mobility and complex traffic dynamics have intensified the need for accurate traffic flow forecasting in intelligent transportation systems. However, existing models often struggle to jointly capture short-term fluctuations and long-term temporal dependencies under noisy and heterogeneous traffic conditions. To address this challenge, this paper proposes a hybrid traffic flow forecasting framework that integrates Density-Based Spatial Clustering of Applications with Noise (DBSCAN), the Mamba state-space model, and the Transformer architecture. The framework first applies DBSCAN to multidimensional traffic features to enhance traffic state representation and reduce noise. The prediction module alternates between MambaBlocks, which capture local dynamics and high-frequency variations via state-space modeling, and TransformerBlocks, which employ a dynamic gating mechanism to efficiently model long-range dependencies using multi-query and linear attention. Experimental results demonstrate that the proposed model consistently outperforms baseline methods, including Decomposition-Linear (DLinear), Autoformer, and the standard Transformer, across 5-, 10-, 30-, and 60-min prediction horizons in terms of mean squared error (MSE), root mean squared error (RMSE), mean absolute error (MAE), and mean absolute percentage error (MAPE). Ablation studies further verify the complementary contributions of DBSCAN preprocessing, Mamba-based short-term modeling, and Transformer-based global context learning. Overall, the proposed framework provides an effective and scalable solution for traffic flow forecasting in complex and dynamic environments.

Keywords

Short-term fluctuations; long-term temporal dependencies; traffic flow prediction; DBSCAN clustering; Mamba state space model; Transformer architecture

Cite This Article

APA Style
Zhang, Q., Wang, Z., Duan, J., Qin, J., Zhou, Y. (2026). Hybrid Mamba-Transformer Framework with Density-Based Clustering for Traffic Forecasting. Computers, Materials & Continua, 87(3), 62. https://doi.org/10.32604/cmc.2026.076562
Vancouver Style
Zhang Q, Wang Z, Duan J, Qin J, Zhou Y. Hybrid Mamba-Transformer Framework with Density-Based Clustering for Traffic Forecasting. Comput Mater Contin. 2026;87(3):62. https://doi.org/10.32604/cmc.2026.076562
IEEE Style
Q. Zhang, Z. Wang, J. Duan, J. Qin, and Y. Zhou, “Hybrid Mamba-Transformer Framework with Density-Based Clustering for Traffic Forecasting,” Comput. Mater. Contin., vol. 87, no. 3, pp. 62, 2026. https://doi.org/10.32604/cmc.2026.076562



cc Copyright © 2026 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.
  • 331

    View

  • 65

    Download

  • 0

    Like

Share Link