MapsTSF: efficient traffic prediction via hybrid Mamba 2-transformer spatiotemporal modeling and cross adaptive periodic sparse forecasting
摘要
Traffic flow prediction is a critical yet challenging task due to the complex spatiotemporal dependencies in road networks. We propose MapsTSF, a novel framework that enhances traffic forecasting by integrating three innovative components. Spatial path embedding uses multiple traversal algorithms to capture dynamic spatial flow patterns across road networks. The hybrid Mamba2-transformer model combines Mamba2’s selective state-space modeling with transformer’s global attention to effectively capture intricate spatiotemporal dependencies. Additionally, the cross adaptive periodic sparse forecasting mechanism decouples periodic and trend features, reducing computational overhead while preserving high accuracy. Experiments on real-world datasets demonstrate that MapsTSF outperforms baseline methods by an average of 18.80% in MAE, 15.69% in RMSE, and 19.80% in MAPE. With its scalable and efficient design, MapsTSF is well-suited for real-time traffic management in smart cities and navigation applications, providing precise and reliable forecasts for large-scale, dynamic road networks.