Abstract
Video geolocalization is a critical task in computer vision with applications ranging from forensic analysis to autonomous navigation. While image-based geolocalization has seen significant progress, its video counterpart remains relatively unexplored at a global scale, often restricted to specific, fine-grained regions. This paper introduces a novel framework for worldwide video geolocalization, aiming to hierarchically predict the city, state/province, country, and continent of a given video. To facilitate this, we present CityGuessr68k, a large-scale dataset comprising 68,269 videos from 166 cities globally. We propose a transformer-based architecture featuring a Self-Cross Attention module for hierarchical reasoning and a TextLabel Alignment (TLA) strategy to distill semantic knowledge from location names. Our approach achieves 69.6% city-level accuracy, demonstrating the power of temporal context and linguistic cues in geographic identification.
Introduction
Determining the geographic origin of visual content is a complex challenge. While tools like GeoGuessr have popularized image-based localization for humans and AI alike, video-based localization offers a richer, albeit more complex, set of cues. Existing video geolocalization research has largely been confined to narrow geographic bounds, such as specific metropolitan areas, due to a lack of diverse, large-scale datasets.
Global video geolocalization faces two primary hurdles: the scarcity of annotated worldwide video data and the inherent noise in video streams, where scenes may shift from residential streets to highways within seconds. To address these, we propose a system that treats geolocalization as a hierarchical classification problem, leveraging temporal dynamics and semantic alignment to pinpoint locations across six continents.
The CityGuessr68k Dataset
A significant contribution of this work is the introduction of CityGuessr68k. This dataset was curated to provide the first extensive worldwide coverage for video geolocalization.
- Scale and Diversity: It contains 68,269 first-person driving and walking videos spanning 166 cities across 91 countries.
- Hierarchical Annotation: Each video is labeled with its full geographic hierarchy (Continent → Country → State/Province → City).
- Soft-Scene Labels: Recognizing that videos are fluid, we provide a distribution of scene types (e.g., 'urban', 'forest', 'industrial') rather than a single static label, allowing models to better interpret environmental transitions.
Methodology
Our baseline architecture utilizes a VideoMAE (Masked Autoencoder) backbone to extract robust spatio-temporal features. We enhance this backbone with three key innovations:
1. Self-Cross Attention (SCA) Module
Rather than treating city or country prediction as isolated tasks, the SCA module allows different levels of the geographic hierarchy to interact. By sharing information across levels, the model ensures that a city prediction is contextually supported by the predicted continent and country. For instance, visual cues indicating a tropical environment help the model narrow its search to specific latitudes before identifying a city.
2. TextLabel Alignment (TLA)
To bridge the gap between visual features and semantic geography, we employ a knowledge distillation strategy. Using a pretrained text encoder (such as CLIP), we generate embeddings for location names (e.g., "Tokyo, Japan"). During training, the model is incentivized to align its visual feature representations with these text embeddings. This process helps the model associate specific architectural styles or landmarks with the actual names of the places they represent.
3. Codependent Inference
At test time, the model employs a joint probability approach. Instead of simply selecting the most likely city, it calculates the product of probabilities across the hierarchy (City × State × Country × Continent). This ensures the final output is geographically consistent and reduces the likelihood of "hallucinating" a city in the wrong country.
Experimental Results
We evaluated our model on the CityGuessr68k dataset and the Mapillary Street-Level Sequences (MSLS) dataset to test generalization.
- Performance: The proposed model achieved 69.6% Top-1 accuracy at the city level and 83.8% at the continent level on CityGuessr68k.
- Comparative Analysis: Our approach outperformed established baselines like PlaNet and GeoDecoder by 5-14% across various metrics.
- Video vs. Image: A key finding was that the video-based model outperformed image-only counterparts by approximately 9%, confirming that temporal context—the way a scene unfolds—is vital for accurate localization.
Discussion and Insights
Our research highlights several key takeaways for the field of geolocalization:
- Temporal Context is King: The ability to see transitions in a video provides a significant advantage over static images, as it allows the model to filter out transient noise and focus on persistent geographic markers.
- Semantic Distillation: Aligning visual features with text labels (TLA) provides a measurable boost, suggesting that the semantic information in a place name helps the model cluster visual features more effectively.
- Soft Labels for Fluidity: Using soft-scene labels captured the nuance of changing environments better than "hard" labels, leading to more stable model training.
Conclusion
CityGuessr represents a step forward in making video geolocalization a global reality. By providing both a massive-scale dataset and a novel hierarchical transformer architecture, we demonstrate that accurate worldwide localization is achievable. Future work will focus on expanding the dataset to include more rural and underrepresented regions and exploring the application of Self-Cross Attention to other hierarchical classification domains.
Summary updated