TL;DR
This paper introduces GT-Loc, a novel retrieval-based method that simultaneously predicts the capture time (hour and month) and geographic location (GPS coordinates) of an image using only visual information. By learning a unified embedding space for images, time, and location, GT-Loc achieves state-of-the-art performance in time prediction and competitive results in geo-localization, while also enabling new compositional retrieval capabilities.
What Problem Does This Paper Address?
Accurately determining when and where an image was taken is crucial for applications like digital forensics, content management, and ecological studies. While visual cues like shadows and brightness can hint at the time of day, and seasonal changes at the time of year, these cues are heavily influenced by geographic location. Existing methods often rely on external metadata like GPS coordinates for time prediction or focus on only one of these tasks (time or location). This paper tackles the challenge of jointly predicting both time and location from images alone, recognizing their inherent interdependence and aiming to build a more robust and versatile system.
Methods
GT-Loc employs a retrieval-based approach, framing both time and location prediction as finding the closest match in a gallery of known time/location embeddings. The core innovation lies in learning a shared multimodal embedding space for images, time, and location.
- Triple Encoder Architecture: GT-Loc uses separate encoders for images (a pre-trained CLIP ViT-L/14), location (using Equal Earth Projection and Random Fourier Features), and time.
- Image-Location Alignment: This is achieved using a standard contrastive loss, similar to GeoCLIP, to align image and location embeddings.
- Image-Time Alignment (Novelty): Traditional contrastive learning struggles with time prediction because temporal neighbors often look very similar, making it hard to define distinct positive/negative pairs. GT-Loc introduces a Temporal Metric Learning (TML) loss. This loss uses "soft targets" by modeling the difference between times over a cyclical toroidal surface (accounting for the cyclical nature of months and hours). This allows for more effective alignment without explicit positive/negative assignments.
- Unified Embedding Space: By aligning all three modalities into a single space, GT-Loc can perform compositional retrieval (e.g., finding images matching a specific time and location).
Datasets
- Training: The model is trained on two existing datasets: MediaEval Placing Tasks 2016 (MP-16) and Cross-View Time (CVT).
- Evaluation: A zero-shot evaluation benchmark is constructed using a subset of images from the SkyFinder Dataset that were not seen during training. This is a key aspect for demonstrating generalization.
Key Insights and Ideas
- Time and Location are Fundamentally Linked: The paper strongly argues that visual cues for time are location-dependent, and vice-versa. Jointly learning them leads to richer representations than learning them in isolation.
- The Cyclical Nature of Time is Crucial: Standard Euclidean distances fail to capture the true temporal proximity of, for example, December 31st and January 1st. The toroidal distance metric in TML is a clever way to address this.
- Retrieval is More Robust for Time Prediction: Unlike classification or regression, a retrieval approach with TML can handle the smooth, continuous nature of temporal changes more effectively.
- Unified Embedding Enables New Capabilities: The shared embedding space isn't just for predicting time and location; it unlocks powerful compositional retrieval (querying by time and location) and even text-based retrieval.
Key Results
- Time Prediction: GT-Loc achieves a Time Prediction Score (TPS) of 77.00 on the SkyFinder dataset, outperforming previous methods by a significant margin. Notably, it surpasses methods that did use ground-truth geo-location as input.
- Geo-Localization: GT-Loc achieves competitive results on standard geo-localization benchmarks (Im2GPS3k and GWS15k), with a 14.41% accuracy at 1km radius on Im2GPS3k.
- Compositional Retrieval: GT-Loc significantly outperforms baselines in zero-shot composed retrieval (time + location to image), achieving 6.69% recall at rank 1.
- Robustness: The model shows good resilience to limited training data (maintaining performance even with 5% of data) and label noise.
Limitations and Future Work
- Year Prediction: The current work focuses on month and hour prediction, explicitly excluding year prediction due to its complexity and reliance on longer-term visual cues.
- Text-Based Retrieval: While demonstrated, the text-based retrieval aspect relies on a pre-trained CLIP text encoder and the trained MLP, location, and time encoders. Further exploration of multimodal text-image-time-location understanding is suggested.
- Computational Cost: While competitive, the retrieval-based nature implies a need for a gallery, which can impact inference speed and memory depending on the gallery size.
- Future Work: The authors suggest exploring different image backbones, time encoders, and temporal resolutions, as well as further leveraging the unified embedding space for other downstream tasks.
Summary updated