Current Visitors:

Spatio-Temporal Self-Supervised Learning for Traffic Flow Prediction

J. Ji, J. Wang, C. Huang, J. Wu, B. Xu, Z. Wu, J. Zhang, and Y. Zheng

in Proceedings of the Thirty-Seventh AAAI Conference on Artificial Intelligence (AAAI'23)

Robust prediction of citywide traffic flows at different time periods plays a crucial role in intelligent transportation systems. While previous work has made great efforts to model spatio-temporal correlations, existing methods still suffer from two key limitations: i) Most models collectively predict all regions’ flows without accounting for spatial heterogeneity, i.e., different regions may have skewed traffic flow distributions. ii) These models fail to capture the temporal heterogeneity induced by time-varying traffic patterns, as they typically model temporal correlations with a shared parameterized space for all time periods. To tackle these challenges, we propose a novel Spatio-Temporal Self-Supervised Learning (ST-SSL) traffic prediction framework which enhances the traffic pattern representations to be reflective of both spatial and temporal heterogeneity, with auxiliary self-supervised learning paradigms. Specifically, our ST-SSL is built over an integrated module with temporal and spatial convolutions for encoding the information across space and time. To achieve the adaptive spatio-temporal self-supervised learning, our ST-SSL first performs the adaptive augmentation over the traffic flow graph data at both attribute- and structure-levels. On top of the augmented traffic graph, two SSL auxiliary tasks are constructed to supplement the main traffic prediction task with spatial and temporal heterogeneity-aware augmentation. Experiments on four benchmark datasets demonstrate that ST-SSL consistently outperforms various state-of-the-art baselines. Since spatio-temporal heterogeneity widely exists in practical datasets, the proposed framework may also cast light on other spatial-temporal applications. Model implementation is available at

Spatio-Temporal Self-Supervised Learning for Traffic Flow Prediction
Spatio-Temporal Self-Supervised Learning
Adobe Acrobat Document 1.9 MB

The code for this paper is released in GitHub


title={Spatio-Temporal Self-Supervised Learning for Traffic Flow Prediction},

author={Jiahao Ji and Jingyuan Wang and Chao Huang and Junjie Wu and Boren Xu and Zhenhe Wu and Junbo Zhang and Yu Zheng},

booktitle = {{AAAI}},

publisher = {{AAAI} Press},

year = {2023}