Leveraging EfficientNet and Contrastive Learning for Accurate Global-scale Location Estimation

Giorgos Kordopatis-Zilos, Panagiotis Galopoulos, Symeon Papadopoulos, Ioannis Kompatsiaris

Abstract

Determining the precise geographic location of an image based solely on visual content remains a significant challenge in computer vision. This paper presents a hybrid "Search within Cell" (SwC) framework that integrates image classification for coarse regional identification with a novel residual retrieval module for fine-grained localization. By utilizing an EfficientNet-B4 backbone and supervised contrastive learning, the proposed method achieves state-of-the-art performance, correctly geolocating 15% of images within 1km on the Im2GPS3k benchmark.

Introduction: The Geolocation Challenge

Visual location estimation typically follows one of two paradigms: classification into discrete geographic cells or retrieval from a database of geotagged images. Classification is robust but lacks precision due to large cell sizes. Retrieval offers high precision but is computationally intensive and prone to errors from non-geographic visual distractors like people or vehicles. This research introduces a unified pipeline that leverages the strengths of both approaches while mitigating their respective weaknesses.

Methodology: Search within Cell (SwC)

The core of the proposed system is the Search within Cell (SwC) pipeline, which operates in three distinct stages to refine location estimates from a global to a local scale.

The Search within Cell (SwC) framework overview, combining classification for coarse localization and retrieval for fine-grained estimation.
  1. Classification Module: An EfficientNet-B4 backbone processes the query image to predict a geographic cell. The authors employ a Mixture of von Mises-Fisher (MvMF) distribution, which models the Earth's surface as a sphere, providing a more accurate representation than traditional flat-grid methods.
  2. Residual Retrieval Module (RRM): To enhance local features, a specialized residual architecture is trained using Supervised Contrastive Learning (infoNCE loss). This module learns to cluster images from the same geographic vicinity while separating those from distant regions.
  3. Spatial Clustering: During inference, retrieval is restricted to images within the predicted cell. This "Search within Cell" strategy filters out visually similar but geographically distant matches. Finally, DBSCAN clustering is applied to the coordinates of the top retrieved images to produce a final, outlier-resistant estimate.

Key Insights

  • Hybrid Filtering: Restricting retrieval to a predicted cell acts as a powerful noise filter, preventing the model from being "distracted" by global visual similarities.
  • Residual Learning: The inclusion of a residual connection in the retrieval module allows the system to refine existing CNN features specifically for geolocation, rather than relearning general visual representations.
  • Spherical Modeling: Accounting for the Earth's curvature via MvMF distributions significantly improves coarse-grained classification accuracy compared to standard softmax over a grid.

Experimental Results

The SwC framework was evaluated on standard benchmarks including Im2GPS, Im2GPS3k, and YFCC4k. The results demonstrate a substantial improvement over previous state-of-the-art (SOTA) methods, particularly at the 1km "street-level" scale.

Qualitative retrieval results across various queries. Green borders indicate matches within 1km, yellow within 100km, and red over 1000km.

On the Im2GPS3k dataset, the model achieved 15.0% accuracy at the 1km range, a significant leap from the previous 10.5% benchmark. Similarly, on Im2GPS, the model reached 21.9% accuracy at 1km, representing a nearly 30% relative improvement. These results highlight the effectiveness of combining regional classification with localized retrieval.

Conclusion

The "Search within Cell" framework successfully bridges the gap between robust regional classification and precise local retrieval. By integrating modern backbones like EfficientNet with contrastive learning and spherical geometry, this approach sets a new standard for global-scale image geolocation. Future work will explore the integration of textual metadata and more sophisticated fusion techniques to further enhance localization accuracy in visually ambiguous environments.

Summary updated

BibTeX
@inproceedings{kordopatiszilos2021leveraging,
  author = {Giorgos Kordopatis-Zilos and Panagiotis Galopoulos and Symeon Papadopoulos and Ioannis Kompatsiaris},
  title = {{Leveraging EfficientNet and Contrastive Learning for Accurate Global-scale Location Estimation}},
  booktitle = {ICMR},
  year = {2021},
  doi = {10.1145/3460426.3463644},
}
Figure