Home / Journals / CMC / Online First / doi:10.32604/cmc.2026.076562
Special Issues
Table of Content

Open 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 https://doi.org/10.32604/cmc.2026.076562

Received 22 November 2025; Accepted 11 February 2026; Published online 06 March 2026

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
  • 143

    View

  • 18

    Download

  • 0

    Like

Share Link