Spatio-Temporal Self-Supervised Learning for Traffic Flow Prediction

Jiahao Ji, Jingyuan Wang, Chao Huang, Junjie Wu, Boren Xu +3 more
12/7/2022
cs.LGcs.AI
contrastive-ssl

Official code: Echo-Ji/ST-SSL (205 stars, Python, last commit 2024-12-12).

Abstract

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.

Show full abstract

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 https://github.com/Echo-Ji/ST-SSL.

View on arXivView PDF

Code Implementations(1)

Echo-Ji/ST-SSLOfficial100%

ST-SSL (STSSL): Spatio-Temporal Self-Supervised Learning for Traffic Flow Forecasting/Prediction

20531Python, ShellDec 2, 20221 years ago
aaaiadaptivecontrastive-learningdata-augmentationdata-mining+12 more

Similar Papers

Cite this paper

@article{ji2022spatiotemporal,
  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},
  year   = {2022},
  eprint = {2212.04475},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2212.04475}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2212.04475.svg)](https://codeofpaper.com/paper/2212.04475)

Discussion