Geography-Aware Self-Supervised Learning

Kumar Ayush, Burak Uzkent, Chenlin Meng, Kumar Tanmay, Marshall Burke, David B. Lobell, Stefano ErmonICCV 2020 · DOI

Abstract

Contrastive learning methods have significantly narrowed the gap between supervised and unsupervised learning on computer vision tasks. In this paper, we explore their application to geo-located datasets, e.g. remote sensing, where unlabeled data is often abundant but labeled data is scarce. We first show that due to their different characteristics, a non-trivial gap persists between contrastive and supervised learning on standard benchmarks. To close the gap, we propose novel training methods that exploit the spatio-temporal structure of remote sensing data. We leverage spatially aligned images over time to construct temporal positive pairs in contrastive learning and geo-location to design pre-text tasks. Our experiments show that our proposed method closes the gap between contrastive and supervised learning on image classification, object detection and semantic segmentation for remote sensing. Moreover, we demonstrate that the proposed method can also be applied to geo-tagged ImageNet images, improving downstream performance on various tasks.

Introduction

In remote sensing, the volume of unlabeled satellite imagery is vast, yet the cost of expert annotation remains a bottleneck for supervised learning. While self-supervised learning (SSL) has shown promise in general computer vision, standard methods like MoCo-v2 exhibit a significant performance gap—often around 8% in accuracy—when applied to geospatial data. This discrepancy arises because traditional SSL relies on synthetic augmentations of a single image, ignoring the inherent spatio-temporal context of geographic data. Satellite images are uniquely tied to specific coordinates and often exist as temporal stacks—multiple observations of the same location over time.

Methodology: Geography-Aware Contrastive Learning

To address these limitations, we introduce two key innovations that incorporate geographic priors into the SSL framework.

Temporal Positive Pairs

Unlike standard contrastive learning, which generates "positive pairs" by augmenting a single image, our approach utilizes "nature's augmentations." We define positive pairs as two distinct images of the same geographic location captured at different times. This method, termed TemporalInfoNCE, encourages the model to learn features invariant to seasonal changes, atmospheric conditions, and lighting, thereby focusing on the persistent semantic features of the landscape.

Comparison between standard contrastive learning (left) and our proposed geography-aware approach (right).

Geo-location Classification

We further leverage geographic metadata by treating location as a pretext task. By clustering the Earth's surface into $K$ regions based on coordinates, we train the model to predict the region of an input image. This task forces the network to capture regional visual characteristics—such as specific vegetation types or urban layouts—that serve as powerful priors for downstream classification and segmentation.

Datasets and Experimental Setup

Our evaluation spans several large-scale datasets:

  • fMoW (Functional Map of the World): Contains ~363k images across 62 categories with temporal revisits.
  • GeoImageNet: A curated subset of ImageNet (543k images) augmented with geographic metadata via the Flickr API.
Example of a temporal stack from the fMoW dataset, showing the same location across different time points.

Key Results

Our geography-aware approach successfully bridges the gap to supervised performance across multiple benchmarks:

  • Classification (fMoW): Using frozen features, our method improved top-1 accuracy to 68.32%, compared to 60.69% for MoCo-v2. When fine-tuned, it outperformed supervised pre-training by over 2%.
  • Object Detection (xView): We achieved 17.74 AP, significantly higher than the 14.44 AP of supervised pre-training.
  • Land Cover (NAIP): Our method surpassed supervised learning by 3.77% in top-1 accuracy.
  • GeoImageNet: The inclusion of geo-location tasks improved standard MoCo-v2 performance by 1.45%, demonstrating that geographic context is beneficial even for ground-level photography.

Conclusion

By integrating temporal invariance and geographic priors, we have demonstrated that SSL can be significantly enhanced for geo-located data. Our results suggest that "where" and "when" an image was taken are as important as "what" is in the image. Future work will explore more granular geographic clustering and the potential trade-offs between temporal invariance and change detection tasks.

Summary updated

BibTeX
@inproceedings{ayush2020geography,
  author = {Kumar Ayush and Burak Uzkent and Chenlin Meng and Kumar Tanmay and Marshall Burke and David B. Lobell and Stefano Ermon},
  title = {{Geography-Aware Self-Supervised Learning}},
  booktitle = {IEEE/CVF International Conference on Computer Vision},
  year = {2020},
  doi = {10.1109/iccv48922.2021.01002},
}
Figure