IndexCLR: Class-Aware Contrastive Learning for Similarity Indexing

Authors

  • Ovais Rashid Khan Department of Computer Science, Islamic University of Science and Technology, Kashmir, India
  • Javaid Iqbal Bhat Department of Computer Science, Islamic University of Science and Technology, Kashmir, India
Volume: 16 | Issue: 1 | Pages: 32104-32109 | February 2026 | https://doi.org/10.48084/etasr.15220

Abstract

Similarity metrics and indexing are critical components of image similarity searches since they directly impact the accuracy and efficiency of retrieving similar imagery. Similarity measurements, such as Euclidean distance or cosine similarity, evaluate how closely images are compared based on simple differences in their features. More complex methods, such as contrastive loss, enhance the representation of images by emphasizing relationships in a contextual reference to other related samples. This paper introduces a framework for image similarity and indexing that utilizes class-based representations in contrastive learning to enhance retrieval. This framework uses class-based representations for context-related awareness instead of sample-level contrastive learning to refine feature representations using a contrastive learning approach. This approach reduces computational complexity and mitigates sample selection challenges while refining the similarity comparison operation of similar images using class contextual information. A bottleneck mechanism is introduced to compress high-dimensional feature spaces into compact, lower-dimensional embeddings, preserving critical semantic information while minimizing redundancy. Discrimination is further enhanced through class-based contrastive training.

Keywords:

image retrieval, image similarity, contrastive learning, class-based representations, indexing, dimensionality reduction

Downloads

Download data is not yet available.

References

I. M. Hameed, S. H. Abdulhussain, and B. M. Mahmmod, "Content-based image retrieval: A review of recent trends," Cogent Engineering, vol. 8, no. 1, Jan. 2021, Art. no. 1927469. DOI: https://doi.org/10.1080/23311916.2021.1927469

S. R. Dubey, "A Decade Survey of Content Based Image Retrieval Using Deep Learning," IEEE Transactions on Circuits and Systems for Video Technology, vol. 32, no. 5, pp. 2687–2704, May 2022. DOI: https://doi.org/10.1109/TCSVT.2021.3080920

A. Latif et al., "Content-Based Image Retrieval and Feature Extraction: A Comprehensive Review," Mathematical Problems in Engineering, vol. 2019, no. 1, Aug. 2019, Art. no. 9658350. DOI: https://doi.org/10.1155/2019/9658350

D. G. Lowe, "Distinctive Image Features from Scale-Invariant Keypoints," International Journal of Computer Vision, vol. 60, no. 2, pp. 91–110, Nov. 2004. DOI: https://doi.org/10.1023/B:VISI.0000029664.99615.94

N. Dalal and B. Triggs, "Histograms of oriented gradients for human detection," in 2005 IEEE Computer Society Conference on Computer Vision and Pattern Recognition, San Diego, CA, USA, 2005, pp. 886–893 vol. 1. DOI: https://doi.org/10.1109/CVPR.2005.177

M. J. Swain and D. H. Ballard, "Color indexing," International Journal of Computer Vision, vol. 7, no. 1, pp. 11–32, Nov. 1991. DOI: https://doi.org/10.1007/BF00130487

Y. Rashid and J. I. Bhat, "OlapGN: A multi-layered graph convolution network-based model for locating influential nodes in graph networks," Knowledge-Based Systems, vol. 283, Jan. 2024, Art. no. 111163. DOI: https://doi.org/10.1016/j.knosys.2023.111163

F. Baig et al., "Boosting the Performance of the BoVW Model Using SURF–CoHOG-Based Sparse Features with Relevance Feedback for CBIR," Iranian Journal of Science and Technology, Transactions of Electrical Engineering, vol. 44, no. 1, pp. 99–118, Mar. 2020. DOI: https://doi.org/10.1007/s40998-019-00237-z

Vimina E. R. and Divya M. O., "Maximal multi-channel local binary pattern with colour information for CBIR," Multimedia Tools and Applications, vol. 79, no. 35, pp. 25357–25377, Sept. 2020. DOI: https://doi.org/10.1007/s11042-020-09207-8

M. Garg and G. Dhiman, "A novel content-based image retrieval approach for classification using GLCM features and texture fused LBP variants," Neural Computing and Applications, vol. 33, no. 4, pp. 1311–1328, Feb. 2021. DOI: https://doi.org/10.1007/s00521-020-05017-z

A. Sarwar, Z. Mehmood, T. Saba, K. A. Qazi, A. Adnan, and H. Jamal, "A novel method for content-based image retrieval to improve the effectiveness of the bag-of-words model using a support vector machine," Journal of Information Science, vol. 45, no. 1, pp. 117–135, Feb. 2019. DOI: https://doi.org/10.1177/0165551518782825

Y. Rashid and J. I. Bhat, "Topological to deep learning era for identifying influencers in online social networks :a systematic review," Multimedia Tools and Applications, vol. 83, no. 5, pp. 14671–14714, Feb. 2024. DOI: https://doi.org/10.1007/s11042-023-16002-8

A. Sezavar, H. Farsi, and S. Mohamadzadeh, "Content-based image retrieval by combining convolutional neural networks and sparse representation," Multimedia Tools and Applications, vol. 78, no. 15, pp. 20895–20912, Aug. 2019. DOI: https://doi.org/10.1007/s11042-019-7321-1

S. Sikandar, R. Mahum, and A. Alsalman, "A Novel Hybrid Approach for a Content-Based Image Retrieval Using Feature Fusion," Applied Sciences, vol. 13, no. 7, Apr. 2023, Art. no. 4581. DOI: https://doi.org/10.3390/app13074581

M. A. Mohammed, Z. A. Oraibi, and M. A. Hussain, "Content based Image Retrieval using Fine-tuned Deep Features with Transfer Learning," in 2023 2nd International Conference on Computer System, Information Technology, and Electrical Engineering, Banda Aceh, Indonesia, 2023, pp. 108–113. DOI: https://doi.org/10.1109/COSITE60233.2023.10249430

M. Yousuf et al., "A Novel Technique Based on Visual Words Fusion Analysis of Sparse Features for Effective Content-Based Image Retrieval," Mathematical Problems in Engineering, vol. 2018, no. 1, Mar. 2018, Art. no. 2134395. DOI: https://doi.org/10.1155/2018/2134395

Z. Mehmood, T. Mahmood, and M. A. Javid, "Content-based image retrieval and semantic automatic image annotation based on the weighted average of triangular histograms using support vector machine," Applied Intelligence, vol. 48, no. 1, pp. 166–181, Jan. 2018. DOI: https://doi.org/10.1007/s10489-017-0957-5

U. Sharif, Z. Mehmood, T. Mahmood, M. A. Javid, A. Rehman, and T. Saba, "Scene analysis and search using local features and support vector machine for effective content-based image retrieval," Artificial Intelligence Review, vol. 52, no. 2, pp. 901–925, Aug. 2019. DOI: https://doi.org/10.1007/s10462-018-9636-0

Y. Shen et al., "Auto-Encoding Twin-Bottleneck Hashing," in 2020 IEEE/CVF Conference on Computer Vision and Pattern Recognition, Seattle, WA, USA, 2020, pp. 2815–2824. DOI: https://doi.org/10.1109/CVPR42600.2020.00289

E. Yang, T. Liu, C. Deng, W. Liu, and D. Tao, "DistillHash: Unsupervised Deep Hashing by Distilling Data Pairs," in 2019 IEEE/CVF Conference on Computer Vision and Pattern Recognition, Long Beach, CA, USA, 2019, pp. 2941–2950. DOI: https://doi.org/10.1109/CVPR.2019.00306

Y. Rao, W. Liu, B. Fan, J. Song, and Y. Yang, "A novel relevance feedback method for CBIR," World Wide Web, vol. 21, no. 6, pp. 1505–1522, Nov. 2018. DOI: https://doi.org/10.1007/s11280-017-0523-4

F.-F. Li, M. Andreeto, M. Ranzato, and P. Perona, "Caltech 101." CaltechDATA, Apr. 06, 2022.

"Corel-1K, Corel-5K, Corel-10K." Kaggle. [Online]. Available: https://www.kaggle.com/datasets/amirhosseinroodaki/corel-1k-corel-5k-and-corel-10k-datasets.

S. Khokhar and S. Verma, "Content Based Image Retrieval with Multi-Feature Classification by Back-propagation Neural Network," International Journal of Computer Applications Technology and Research, vol. 6, no. 7, pp. 278–284, July 2017. DOI: https://doi.org/10.7753/IJCATR0607.1002

S. Maji and S. Bose, "CBIR Using Features Derived by Deep Learning," ACM/IMS Transactions on Data Science, vol. 2, no. 3, Sept. 2021, Art. no. 26. DOI: https://doi.org/10.1145/3470568

Downloads

How to Cite

[1]
O. R. Khan and J. I. Bhat, “IndexCLR: Class-Aware Contrastive Learning for Similarity Indexing”, Eng. Technol. Appl. Sci. Res., vol. 16, no. 1, pp. 32104–32109, Feb. 2026.

Metrics

Abstract Views: 97
PDF Downloads: 57

Metrics Information