TA-CSA: A Spatiotemporal Framework With Temporal Aggregation and Clustered Spatial Attention for Traffic Forecasting

Peng Wang, Wenhao Zhang, Feng Liu, Kanghua HuiIEEE Internet of Things Journal 2025

Abstract

Accurate traffic flow forecasting is crucial in intelligent transportation systems for mitigating congestion and enhancing intelligent traffic management. Although recent methods have shown excellent performance, they still encounter two major limitations: (i) Existing models face challenges in balancing prediction accuracy and computational efficiency. (ii) Existing spatial modeling methods use unified mechanisms to model all nodes, neglecting the inherent heterogeneity among them. To address these limitations, we propose a spatio-temporal architecture, TA-CSA for traffic prediction, which consists of Temporal Aggregation Pooling (TAP) and Clustered Spatial Attention (CSA). Specifically, in the temporal dimension, we design the temporal aggregation pooling module. This module extracts temporal features from multiple time windows through parallel pooling operations, thereby strengthening the model’s capacity to capture global temporal trends and dynamic fluctuations. In the spatial dimension, we introduce clustered spatial attention. The method employs hierarchical clustering to divide nodes with similar functional characteristics into the same cluster and performs local attention calculations to achieve regional-level spatial perception. Extensive experiments on six real-world traffic datasets demonstrate that TA-CSA consistently outperforms state-of-the-art baselines in both routine and long-horizon forecasting tasks.
BibTeX
@article{wang2025ta,
  author = {Peng Wang and Wenhao Zhang and Feng Liu and Kanghua Hui},
  title = {{TA-CSA: A Spatiotemporal Framework With Temporal Aggregation and Clustered Spatial Attention for Traffic Forecasting}},
  journal = {IEEE Internet of Things Journal},
  year = {2025},
  doi = {10.1109/jiot.2025.3637177},
}

Loading related content...

Figure