Embedding spatial context in urban traffic forecasting with contrastive pre-training

Matthew Low, Arian Prabowo, Hao Xue, Flora Salim
3/19/2025
cs.LG

No confident code implementation found for this paper. 1 possible match can be shown below.

Abstract

Urban traffic forecasting is a commonly encountered problem, with wide-ranging applications in fields such as urban planning, civil engineering and transport. In this paper, we study the enhancement of traffic forecasting with pre-training, focusing on spatio-temporal graph methods. While various machine learning methods to solve traffic forecasting problems have been explored and extensively studied, there is a gap of a more contextual approach: studying how relevant non-traffic data can improve prediction performance on traffic forecasting problems. We call this data spatial context. We introduce a novel method of combining road and traffic information through the notion of a traffic quotient graph, a quotient graph formed from road geometry and traffic sensors. We also define a way to encode this relationship in the form of a geometric encoder, pre-trained using contrastive learning methods and enhanced with OpenStreetMap data. We introduce and discuss ways to integrate this geometric encoder with existing graph neural network (GNN)-based traffic forecasting models, using a contrastive pre-training paradigm. We demonstrate the potential for this hybrid model to improve generalisation and performance with zero additional traffic data. Code for this paper is available at https://github.com/mattchrlw/forecasting-on-new-roads.

View on arXivView PDF

Code Implementations

No confident code match yet

We couldn't find an author-owned or strongly-evidenced community implementation for this paper. 1 weaker match is hidden by default — verify before relying on them.

No code implementations found yet.

Know of an implementation? Let us know in the comments below!

Similar Papers

Cite this paper

@article{low2025embedding,
  title  = {Embedding spatial context in urban traffic forecasting with contrastive pre-training},
  author = {Matthew Low and Arian Prabowo and Hao Xue and Flora Salim},
  year   = {2025},
  eprint = {2503.14980},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2503.14980v1}
}

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/2503.14980.svg)](https://codeofpaper.com/paper/2503.14980)

Discussion