English

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

Machine Learning 2025-03-20 v1

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.

Keywords

Cite

@article{arxiv.2503.14980,
  title  = {Embedding spatial context in urban traffic forecasting with contrastive pre-training},
  author = {Matthew Low and Arian Prabowo and Hao Xue and Flora Salim},
  journal= {arXiv preprint arXiv:2503.14980},
  year   = {2025}
}

Comments

21 pages with references, 10 figures

R2 v1 2026-06-28T22:26:26.995Z