Learning Street View Representations with Spatiotemporal Contrast

Yong Li, Yingjing Huang, Gengchen Mai, Fan Zhang
2/7/2025
cs.CVcs.AI

Official code: yonglleee/UrbanSTCL (6 stars, MIT, last commit 2026-03-30).

Abstract

Street view imagery is extensively utilized in representation learning for urban visual environments, supporting various sustainable development tasks such as environmental perception and socio-economic assessment. However, it is challenging for existing image representations to specifically encode the dynamic urban environment (such as pedestrians, vehicles, and vegetation), the built environment (including buildings, roads, and urban infrastructure), and the environmental ambiance (such as the cultural and socioeconomic atmosphere) depicted in street view imagery to address downstream tasks related to the city. In this work, we propose an innovative self-supervised learning framework that leverages temporal and spatial attributes of street view imagery to learn image representations of the dynamic urban environment for diverse downstream tasks. By employing street view images captured at the same location over time and spatially nearby views at the same time, we construct contrastive learning tasks designed to learn the temporal-invariant characteristics of the built environment and the spatial-invariant neighborhood ambiance. Our approach significantly outperforms traditional supervised and unsupervised methods in tasks such as visual place recognition, socioeconomic estimation, and human-environment perception. Moreover, we demonstrate the varying behaviors of image representations learned through different contrastive learning objectives across various downstream tasks. This study systematically discusses representation learning strategies for urban studies based on street view images, providing a benchmark that enhances the applicability of visual data in urban science. The code is available at https://github.com/yonglleee/UrbanSTCL.

View on arXivView PDF

Code Implementations(1)

MIT

code for Spatiotemporal Contrast Are Natural Urban Scene Learners

61Shell, PythonOct 6, 20246 months agoMIT

Similar Papers

Cite this paper

@article{li2025learning,
  title  = {Learning Street View Representations with Spatiotemporal Contrast},
  author = {Yong Li and Yingjing Huang and Gengchen Mai and Fan Zhang},
  year   = {2025},
  eprint = {2502.04638},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2502.04638v1}
}

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

Discussion