Sphere2Vec: Multi-Scale Representation Learning over a Spherical Surface for Geospatial Predictions

Gengchen Mai, Yao Xuan, Wenyun Zuo, Krzysztof Janowicz, Ni LaoarXiv 2022

Introduction

Geospatial prediction tasks, such as identifying species from photos based on their location, rely heavily on effective location encoders. These encoders transform raw coordinates (latitude and longitude) into high-dimensional vectors suitable for neural networks. However, most existing encoders, such as Space2Vec, treat the Earth as a flat 2D Euclidean plane. This "flat-Earth" assumption introduces significant map projection distortions, particularly near the poles where longitude lines converge. Consequently, models often produce "smeared" or over-generalized predictions in high-latitude regions.

Methods: The Sphere2Vec Framework

To address these geometric distortions, we introduce Sphere2Vec, a multi-scale location encoding scheme based on the Double Fourier Sphere (DFS) basis. Unlike 2D encoders that use independent sine and cosine waves for X and Y axes, Sphere2Vec utilizes a basis derived from 3D Cartesian coordinates on a unit sphere.

Sphere2Vec Architecture Overview

The core components of the framework include:

  • Distance-Preserving Embeddings: The inner product of two Sphere2Vec embeddings corresponds to the great circle distance, ensuring that the model respects the true spherical geometry of the planet.
  • Spherical Basis Functions: The sphereC encoder uses the basis $[\sin(\phi), \cos(\phi)\cos(\lambda), \cos(\phi)\sin(\lambda)]$, where $\phi$ is latitude and $\lambda$ is longitude.
  • Multi-Scale Representation: By concatenating these basis functions across multiple frequency scales, the model captures both global environmental patterns and fine-grained local features.
  • Hybrid Variants: Variants like sphereC+ and sphereM+ combine spherical encoders with traditional grid-based features to leverage both geometric accuracy and latitude-specific characteristics like climate bands.

Experimental Evaluation

The model was evaluated on five large-scale geospatial datasets: iNat2017, iNat2018, BirdSnap, NABirds, and BirdSnap†. These datasets focus on geo-aware image classification, where the model must predict a species given an image and its capture location.

Key Results and Insights

Sphere2Vec consistently outperformed state-of-the-art 2D location encoders across all benchmarks. On the iNat2018 dataset, Sphere2Vec achieved a top-1 accuracy of 73.31%, surpassing the best 2D baseline (grid) at 72.80%.

Qualitative comparison of species distribution predictions for the Arctic Fox (Vulpes lagopus)

A critical advantage of Sphere2Vec is its performance in polar and data-sparse regions. Qualitative analysis of the Arctic Fox (Vulpes lagopus) distribution shows that while 2D models produce smeared predictions across the top of the map, Sphere2Vec generates compact and realistic distributions. This demonstrates the model's inherent understanding that the North Pole is a single point rather than a line. Furthermore, the model exhibits higher data efficiency, requiring fewer samples to learn accurate spatial distributions in remote areas.

Conclusion and Future Work

Sphere2Vec provides a theoretically grounded and practically superior method for geospatial representation learning. By respecting the Earth's spherical geometry, it eliminates projection artifacts and improves prediction accuracy, especially at high latitudes. Future research may explore more complex decoder architectures and extend Sphere2Vec to other domains such as climate forecasting, trajectory prediction, and 3D structural biology.

Summary updated

BibTeX
@misc{mai2022sphere,
  author = {Gengchen Mai and Yao Xuan and Wenyun Zuo and Krzysztof Janowicz and Ni Lao},
  title = {{Sphere2Vec: Multi-Scale Representation Learning over a Spherical Surface for Geospatial Predictions}},
  year = {2022},
  eprint = {2201.10489},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2201.10489},
}
Figure