Skip to main content
QUICK REVIEW

[Paper Review] Spatio-Temporal Self-Supervised Learning for Traffic Flow Prediction

Jiahao Ji, Jingyuan Wang|arXiv (Cornell University)|Dec 7, 2022
Traffic Prediction and Management TechniquesEngineering13 citations
TL;DR

This paper proposes ST-SSL, a novel spatio-temporal self-supervised learning framework that models spatial and temporal heterogeneity in traffic flow prediction using adaptive graph augmentation and dual self-supervised tasks. It outperforms state-of-the-art baselines on four benchmark datasets by learning robust, heterogeneity-aware representations.

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. 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.

Motivation & Objective

  • Address the limitation of existing models in capturing spatial heterogeneity due to skewed traffic distributions across urban regions.
  • Overcome the failure of shared temporal parameterization in modeling time-varying traffic patterns, especially across different days or periods.
  • Develop a self-supervised framework that enhances representation learning without relying on handcrafted features or excessive parameters.
  • Improve generalization and robustness in citywide traffic prediction by injecting spatio-temporal heterogeneity awareness into the latent representation space.

Proposed method

  • Integrate temporal and spatial convolutions within a graph neural network to encode spatio-temporal traffic patterns across regions.
  • Design an adaptive data augmentation strategy that modifies both node attributes and graph structure based on regional traffic heterogeneity.
  • Introduce a spatial self-supervised task using soft clustering to learn region-specific patterns and improve discrimination across diverse urban functions.
  • Develop a time-aware contrastive learning task to preserve temporal heterogeneity by distinguishing between different time-period dynamics.
  • Combine the main traffic prediction task with two auxiliary self-supervised tasks to enhance representation quality and generalization.
  • Apply the framework to real-world traffic datasets using graph-structured data with spatial connectivity and temporal sequences.

Experimental results

Research questions

  • RQ1Can a self-supervised learning framework effectively model spatial heterogeneity in traffic flow distributions across different urban regions?
  • RQ2How can temporal heterogeneity—such as differences between workdays and holidays—be captured in a unified representation space?
  • RQ3Does adaptive graph augmentation improve model performance by better reflecting real urban functional similarities and dissimilarities?
  • RQ4To what extent do the proposed self-supervised auxiliary tasks enhance the main prediction task’s robustness and accuracy?

Key findings

  • ST-SSL consistently outperforms multiple state-of-the-art baselines across four benchmark traffic datasets in terms of MAE and RMSE.
  • The model achieves superior performance on both high-volume and low-volume regions, demonstrating reduced bias toward popular or dense areas.
  • t-SNE visualization confirms that ST-SSL embeddings are more compact within classes and better separated across classes, indicating improved representation learning.
  • Adaptive graph augmentation successfully removes low-correlation connections between dissimilar regions and establishes long-range dependencies between functionally similar ones.
  • The proposed self-supervised tasks significantly improve the model’s ability to generalize across diverse traffic patterns without requiring external features.
  • The framework generalizes well to real-world scenarios with complex spatio-temporal dynamics, including day-of-week and holiday variations.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.