Open Access
ARTICLE
Hybrid Mamba-Transformer Framework with Density-Based Clustering for Traffic Forecasting
School of Logistics Engineering, Shanghai Maritime University, Shanghai, China
* Corresponding Author: Zhenzhen Wang. 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
Received 22 November 2025; Accepted 11 February 2026; Issue published 09 April 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
Cite This Article
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.


Submit a Paper
Propose a Special lssue
View Full Text
Download PDF
Downloads
Citation Tools