Abstract
Hashing methods have been recently found very effective in retrieval of remote sensing (RS) images due to their computational efficiency and fast search speed. The traditional hashing methods in RS usually exploit hand-crafted features to learn hash functions to obtain binary codes, which can be insufficient to optimally represent the information content of RS images. To overcome this problem, in this paper we introduce a metric-learning based hashing network, which learns: 1) a semantic-based metric space for effective feature representation; and 2) compact binary hash codes for fast archive search. Our network considers an interplay of multiple loss functions that allows to jointly learn a metric based semantic space facilitating similar images to be clustered together in that target space and at the same time producing compact final activations that lose negligible information when binarized. Experiments carried out on two benchmark RS archives point out that the proposed network significantly improves the retrieval performance under the same retrieval time when compared to the state-of-the-art hashing methods in RS.
Introduction
As satellite technology advances, remote sensing (RS) image archives are growing exponentially. Finding visually or semantically similar images within these massive databases using exhaustive Nearest Neighbor search is computationally prohibitive. To address this, researchers utilize hashing—compressing high-dimensional images into short binary codes to enable near-instant search via Hamming distance.
However, traditional hashing relies on hand-crafted features, and while Deep Neural Networks (DNNs) offer superior semantic representation, they often overfit on the relatively small labeled datasets common in RS. This paper introduces the Metric-Learning based Deep Hashing Network (MiLaN), designed to bridge the gap between deep learning's semantic power and the constraints of small RS datasets.
Methodology
The MiLaN architecture is designed to avoid overfitting while generating highly discriminative hash codes. It operates in two distinct phases: feature extraction and metric-based hashing.
Intermediate Feature Extraction
Instead of training a massive CNN from scratch, MiLaN utilizes a frozen Inception Net pre-trained on ImageNet. Activations are extracted from the Pool3 layer (2048 dimensions). By freezing this network, it acts as a robust, general-purpose visual feature extractor, providing a strong regularization effect that prevents the model from memorizing small training sets.
The Hashing Network and Loss Functions
A compact, 3-layer fully connected network is trained on top of these features to compress them into $K$ hash bits. The training process is governed by a tri-partite loss function:
- Triplet Loss: A metric-learning approach that pulls images of the same class closer together while pushing images of different classes apart by a set margin.
- Representation Penalty Loss: Pushes continuous activations toward binary extremes (0 or 1) to minimize information loss during binarization.
- Bit-Balancing Loss: Ensures an equal distribution of 0s and 1s, maximizing the information capacity of the hash codes.
Experimental Results
The authors evaluated MiLaN on two standard benchmarks: the UC Merced (UCMD) Archive and the Aerial Image Data Set (AID).
- UCMD Dataset: MiLaN achieved a Mean Average Precision (mAP) of 0.904 with 32-bit hash codes. With data augmentation, performance reached 0.991 mAP at 64 bits, significantly outperforming state-of-the-art deep hashing networks (DHNN).
- AID Dataset: MiLaN demonstrated a massive improvement over baseline methods like KSLSH. At 16 bits, MiLaN achieved 0.876 mAP compared to KSLSH's 0.426.
- Efficiency: Searching the archive using MiLaN's binary codes took approximately 25 milliseconds, nearly twice as fast as searching with raw CNN features, with negligible loss in accuracy.
Conclusion
MiLaN demonstrates that metric learning is superior to standard classification-based hashing for image retrieval. By explicitly optimizing the distance between samples in a metric space, the network creates well-separated clusters of image classes. While the current approach relies on RGB features from ImageNet, future work could explore adapting this architecture for multispectral or hyperspectral remote sensing data where pre-trained models are less common.
Summary updated