An Online Hashing Algorithm for Image Retrieval Based on Optical-Sensor Network

Xiao Chen, Yanlong Li2023

TL;DR

This paper introduces LSOH, an online hashing algorithm designed for efficient image retrieval in optical-sensor networks. LSOH addresses the limitations of existing methods by simultaneously preserving both local structural features of images and global semantic relationships, leading to improved retrieval accuracy and efficiency.

What Problem Does This Paper Address?

The rapid growth of data in optical-sensor networks necessitates efficient online storage and retrieval of high-dimensional data like images. Traditional methods struggle with the "curse of dimensionality," leading to poor query performance. While hashing offers a solution by mapping high-dimensional data to compact binary codes, existing online hashing algorithms often over-rely on data tags, neglecting the inherent structural features of the data. This can lead to a loss of information and reduced retrieval accuracy, especially as new data streams in and older data becomes less relevant. The paper aims to develop an online hashing method that can adapt to streaming data while effectively capturing both local and global image characteristics.

Methods

The proposed algorithm, LSOH (Local and Global Balanced Similarity Online Hashing), employs a dual-semantic approach:

  • Local Feature Preservation: It utilizes Laplacian Eigenmaps to capture the local structural features of newly arrived data. This is achieved by constructing an "anchor hash model" that maps high-dimensional data to a low-dimensional space while preserving neighborhood relationships.
  • Global Semantic Consistency: To ensure that hash codes retain global data features, a global similarity matrix is constructed. This matrix captures the balanced similarity between newly arrived data and previously seen data. This helps to maintain consistency across the entire dataset, even as new data arrives.
  • Unified Framework: LSOH integrates these local and global semantic learning processes into a single framework.
  • Discrete Binary Optimization: An effective alternating-iteration algorithm is used to solve the optimization problem and obtain discrete binary hash codes. This involves iteratively updating different components of the model (projection matrix, hash codes for new data, and anchor hash codes) to minimize a combined loss function that includes local, global, and quantization error terms.

Datasets

The proposed LSOH algorithm was evaluated on three widely-used benchmark datasets:

  • CIFAR-10: A dataset of 60,000 images across 10 classes, with features extracted using a CNN.
  • MNIST: A dataset of 70,000 handwritten digit images, represented by 784-dimensional vectors.
  • Places205: A large-scale dataset containing 2.5 million scene images across 205 categories, with features extracted using AlexNet and PCA.

Key Insights and Ideas

  • Dual Semantics are Crucial: The paper highlights that relying solely on local features or global similarity is insufficient for robust online hashing. Combining both provides a more comprehensive representation, leading to better retrieval.
  • Manifold Learning for Local Structure: Using Laplacian Eigenmaps effectively captures the intrinsic geometric structure of image data, which is vital for preserving local details.
  • Balanced Similarity for Global Consistency: The introduction of a "balanced similarity" matrix is key to addressing data imbalance and ensuring that dissimilar data points are not overly penalized, leading to more stable global constraints.
  • Online Learning for Streaming Data: The algorithm is designed for online learning, meaning it can adapt and update its hash functions as new data arrives, making it suitable for dynamic environments like optical-sensor networks.
  • Discrete Optimization for Practicality: The use of an alternating-iteration method to solve the discrete binary optimization problem is essential for generating practical binary hash codes.

Key Results

LSOH demonstrated significant improvements over several state-of-the-art online hashing algorithms across the tested datasets:

  • Improved Accuracy: LSOH consistently achieved higher mean average precision (mAP) and Precision@H2 scores compared to methods like OKH, SketchHash, AdaptHash, OSH, and BSODH. For instance, on CIFAR-10, LSOH improved accuracy by up to 3.3% over the second-best algorithm.
  • Robustness: The algorithm showed good stability, particularly on the large-scale Places205 dataset, where other methods sometimes struggled.
  • Efficiency: While the paper notes that LSOH can be slightly slower than some methods like BSODH due to matrix operations, its computational complexity is linear to the data size, making it scalable for large-scale applications.
  • Performance with Varying Bits: LSOH performed well across different hash code lengths (8-bit to 128-bit), with particularly strong results for 32-bit and 64-bit hash codes.

Limitations and Future Work

  • Computational Cost: The paper acknowledges that matrix inversions required for updating the projection matrix (Wt) can be computationally intensive, especially for very high-dimensional data. This suggests a need for more efficient matrix operation methods.
  • Training Time: While scalable, LSOH can take slightly longer than some algorithms like BSODH due to the anchor hashing component.
  • Future Directions: The authors suggest exploring LSOH's applicability in cross-modal retrieval (e.g., text-to-image retrieval) and investigating its integration with deep learning networks for enhanced feature representation in online hashing.

Summary updated

BibTeX
@misc{chen2023online,
  author = {Xiao Chen and Yanlong Li and Chen Chen},
  title = {{An Online Hashing Algorithm for Image Retrieval Based on Optical-Sensor Network}},
  year = {2023},
  doi = {10.3390/s23052576},
}
Figure