{"status":"ok","message-type":"work","message-version":"1.0.0","message":{"indexed":{"date-parts":[[2026,9,22]],"date-time":"2026-09-22T23:10:04Z","timestamp":1790118604792,"version":"4.0.1"},"reference-count":61,"publisher":"MDPI AG","issue":"8","license":[{"start":{"date-parts":[[2024,8,13]],"date-time":"2024-08-13T00:00:00Z","timestamp":1723507200000},"content-version":"vor","delay-in-days":0,"URL":"https:\/\/creativecommons.org\/licenses\/by\/4.0\/"}],"content-domain":{"domain":[],"crossmark-restriction":false},"short-container-title":["J. Imaging"],"abstract":"<jats:p>In recent years, contrastive learning has been a highly favored method for self-supervised representation learning, which significantly improves the unsupervised training of deep image models. Self-supervised learning is a subset of unsupervised learning in which the learning process is supervised by creating pseudolabels from the data themselves. Using supervised final adjustments after unsupervised pretraining is one way to take the most valuable information from a vast collection of unlabeled data and teach from a small number of labeled instances. This study aims firstly to compare contrastive learning with other traditional learning models; secondly to demonstrate by experimental studies the superiority of contrastive learning during classification; thirdly to fine-tune performance using pretrained models and appropriate hyperparameter selection; and finally to address the challenge of using contrastive learning techniques to produce data representations with semantic meaning that are independent of irrelevant factors like position, lighting, and background. Relying on contrastive techniques, the model efficiently captures meaningful representations by discerning similarities and differences between modified copies of the same image. The proposed strategy, involving unsupervised pretraining followed by supervised fine-tuning, improves the robustness, accuracy, and knowledge extraction of deep image models. The results show that even with a modest 5% of data labeled, the semisupervised model achieves an accuracy of 57.72%. However, the use of supervised learning with a contrastive approach and careful hyperparameter tuning increases accuracy to 85.43%. Further adjustment of the hyperparameters resulted in an excellent accuracy of 88.70%.<\/jats:p>","DOI":"10.3390\/jimaging10080196","type":"journal-article","created":{"date-parts":[[2024,8,13]],"date-time":"2024-08-13T13:35:49Z","timestamp":1723556149000},"page":"196","update-policy":"https:\/\/doi.org\/10.3390\/mdpi_crossmark_policy","source":"Crossref","is-referenced-by-count":8,"title":["Investigating Contrastive Pair Learning\u2019s Frontiers in Supervised, Semisupervised, and Self-Supervised Learning"],"prefix":"10.3390","volume":"10","author":[{"ORCID":"https:\/\/orcid.org\/0000-0003-4317-568X","authenticated-orcid":false,"given":"Bihi","family":"Sabiri","sequence":"first","affiliation":[{"name":"IMS Team, ADMIR Laboratory, Rabat IT Center, ENSIAS, Mohammed V University in Rabat, Rabat 10000, Morocco"}],"role":[{"vocabulary":"crossref","role":"author"}]},{"given":"Amal","family":"Khtira","sequence":"additional","affiliation":[{"name":"LASTIMI Laboratory, EST Sal\u00e9, Mohammed V University in Rabat, Sal\u00e9 11060, Morocco"}],"role":[{"vocabulary":"crossref","role":"author"}]},{"given":"Bouchra","family":"El Asri","sequence":"additional","affiliation":[{"name":"IMS Team, ADMIR Laboratory, Rabat IT Center, ENSIAS, Mohammed V University in Rabat, Rabat 10000, Morocco"}],"role":[{"vocabulary":"crossref","role":"author"}]},{"ORCID":"https:\/\/orcid.org\/0000-0002-0147-8466","authenticated-orcid":false,"given":"Maryem","family":"Rhanoui","sequence":"additional","affiliation":[{"name":"Laboratory Health Systemic Process (P2S), UR4129, University Claude Bernard Lyon 1, University of Lyon, 69100 Lyon, France"},{"name":"Meridian Team, LYRICA Laboratory, School of Information Sciences, Rabat 10100, Morocco"}],"role":[{"vocabulary":"crossref","role":"author"}]}],"member":"1968","published-online":{"date-parts":[[2024,8,13]]},"reference":[{"key":"ref_1","doi-asserted-by":"crossref","first-page":"231","DOI":"10.1007\/s42001-020-00075-8","article-title":"Integrating semantic directions with concept mover\u2019s distance to measure binary concept engagement","volume":"4","author":"Taylor","year":"2021","journal-title":"J. Comput. Soc. Sci."},{"key":"ref_2","doi-asserted-by":"crossref","unstructured":"Wang, F., and Liu, H. (2021, January 19\u201325). Understanding the Behaviour of Contrastive Loss. Proceedings of the IEEE Computer Society Conference on Computer Vision And Pattern Recognition, Nashville, TN, USA.","DOI":"10.1109\/CVPR46437.2021.00252"},{"key":"ref_3","first-page":"103743","article-title":"SpatialScene2Vec: A self-supervised contrastive representation learning method for spatial scene similarity evaluation","volume":"128","author":"Guo","year":"2024","journal-title":"Int. J. Appl. Earth Obs. Geoinf."},{"key":"ref_4","doi-asserted-by":"crossref","first-page":"577","DOI":"10.1007\/978-3-031-26284-5_35","article-title":"CCLSL: Combination of Contrastive Learning and Supervised Learning for Handwritten Mathematical Expression Recognition","volume":"13842","author":"Lin","year":"2023","journal-title":"Lect. Notes Comput. Sci."},{"key":"ref_5","doi-asserted-by":"crossref","first-page":"110825","DOI":"10.1016\/j.knosys.2023.110825","article-title":"Enhanced contrastive learning with multi-aspect information for recommender systems","volume":"277","author":"Hu","year":"2023","journal-title":"Knowl.-Based Syst."},{"key":"ref_6","first-page":"2216","article-title":"Un-mix: Rethinking Image Mixtures for Unsupervised Visual Representation Learning","volume":"36","author":"Shen","year":"2022","journal-title":"Proc. Aaai Conf. Artif. Intell."},{"key":"ref_7","first-page":"18661","article-title":"Supervised contrastive learning","volume":"33","author":"Khosla","year":"2020","journal-title":"Adv. Neural Inf. Process. Syst."},{"key":"ref_8","first-page":"12310","article-title":"Barlow Twins: Self-Supervised Learning via Redundancy Reduction","volume":"139","author":"Zbontar","year":"2021","journal-title":"Proc. Mach. Learn. Res."},{"key":"ref_9","doi-asserted-by":"crossref","first-page":"122832","DOI":"10.1016\/j.eswa.2023.122832","article-title":"A semi-supervised deep learning approach for cropped image detection","volume":"243","author":"Hussain","year":"2024","journal-title":"Expert Syst. Appl."},{"key":"ref_10","first-page":"4224","article-title":"Heterogeneous Contrastive Learning: Encoding Spatial Information for Compact Visual Representations","volume":"24","author":"Xinyue","year":"2021","journal-title":"IEEE Trans. Multimed."},{"key":"ref_11","doi-asserted-by":"crossref","first-page":"84","DOI":"10.1145\/3065386","article-title":"ImageNet classification with deep convolutional neural networks","volume":"60","author":"Krizhevsky","year":"2017","journal-title":"Commun. ACM"},{"key":"ref_12","doi-asserted-by":"crossref","first-page":"111","DOI":"10.1007\/s44196-023-00287-6","article-title":"SEML: Self-Supervised Information-Enhanced Meta-learning for Few-Shot Text Classification","volume":"16","author":"Li","year":"2023","journal-title":"Int. J. Comput. Intell. Syst."},{"key":"ref_13","doi-asserted-by":"crossref","first-page":"104615","DOI":"10.1016\/j.robot.2023.104615","article-title":"Lifelong ensemble learning based on multiple representations for few-shot object recognition","volume":"174","author":"Kasaei","year":"2024","journal-title":"Robot. Auton. Syst."},{"key":"ref_14","doi-asserted-by":"crossref","unstructured":"He, K., Fan, H., Wu, Y., Xie, S., and Girshick, R. (2020, January 13\u201319). Momentum Contrast for Unsupervised Visual Representation Learning. Proceedings of the IEEE Computer Society Conference On Computer Vision And Pattern Recognition, Seattle, WA, USA.","DOI":"10.1109\/CVPR42600.2020.00975"},{"key":"ref_15","unstructured":"Noriy, K., Yang, X., Budka, M., and Zhang, J. (2023). CLARA: Multilingual Contrastive Learning for Audio Representation Acquisition. arXiv."},{"key":"ref_16","doi-asserted-by":"crossref","first-page":"215","DOI":"10.1109\/JTEHM.2023.3344035","article-title":"Contrastive Transfer Learning for Prediction of Adverse Events in Hospitalized Patients","volume":"12","author":"Salehinejad","year":"2024","journal-title":"IEEE J. Transl. Eng. Health Med."},{"key":"ref_17","doi-asserted-by":"crossref","first-page":"240","DOI":"10.1016\/j.future.2023.07.009","article-title":"PAGCL: An unsupervised graph poisoned attack for graph contrastive learning model","volume":"149","author":"Li","year":"2023","journal-title":"Future Gener. Comput. Syst."},{"key":"ref_18","doi-asserted-by":"crossref","unstructured":"Feng, X., Lin, J., Feng, C., and Lu, G. (2024). GAN inversion-based semi-supervised learning for medical image segmentation. Biomed. Signal Process. Control., 88.","DOI":"10.1016\/j.bspc.2023.105536"},{"key":"ref_19","doi-asserted-by":"crossref","first-page":"236","DOI":"10.1016\/j.techfore.2017.08.002","article-title":"Forecasting emerging technologies: A supervised learning approach through patent analysis","volume":"125","author":"Kyebambe","year":"2017","journal-title":"Technol. Forecast. Soc. Chang."},{"key":"ref_20","doi-asserted-by":"crossref","first-page":"459","DOI":"10.1007\/978-3-031-25198-6_34","article-title":"Universum-Inspired Supervised Contrastive Learning","volume":"Volume 13422","author":"Han","year":"2023","journal-title":"Web and Big Data"},{"key":"ref_21","unstructured":"Chen, T., Kornblith, S., Norouzi, M., and Hinton, G. (2020, January 12\u201318). A simple framework for contrastive learning of visual representations. Proceedings of the 37th International Conference On Machine Learning, ICML 2020, PartF16814, Vienna, Austria."},{"key":"ref_22","doi-asserted-by":"crossref","unstructured":"Huynh, T., Kornblith, S., Walter, M., Maire, M., and Khademi, M. (2022, January 3\u20138). Boosting Contrastive Self-Supervised Learning with False Negative Cancellation. Proceedings of the IEEE\/CVF Winter Conference On Applications Of Computer Vision, WACV 2022, Waikoloa, HI, USA.","DOI":"10.1109\/WACV51458.2022.00106"},{"key":"ref_23","doi-asserted-by":"crossref","first-page":"54","DOI":"10.1186\/s13638-023-02258-z","article-title":"A electricity theft detection method through contrastive learning in smart grid","volume":"2023","author":"Liu","year":"2023","journal-title":"Eurasip J. Wirel. Commun. Netw."},{"key":"ref_24","first-page":"100347","article-title":"A semi-supervised learning approach for bladder cancer grading","volume":"9","author":"Wenger","year":"2022","journal-title":"Mach. Learn. Appl."},{"key":"ref_25","unstructured":"Laine, S., and Aila, T. (2017). Temporal Ensembling for Semi-Supervised Learning. arXiv."},{"key":"ref_26","doi-asserted-by":"crossref","unstructured":"Taleb, A., Lippert, C., Klein, T., and Nabi, M. (2021). Multimodal Self-supervised Learning for Medical Image Analysis. arXiv.","DOI":"10.1007\/978-3-030-78191-0_51"},{"key":"ref_27","doi-asserted-by":"crossref","first-page":"373","DOI":"10.1007\/s10994-019-05855-6","article-title":"A survey on semi-supervised learning","volume":"109","author":"Engelen","year":"2020","journal-title":"Mach. Learn."},{"key":"ref_28","doi-asserted-by":"crossref","first-page":"171","DOI":"10.1016\/j.ins.2021.05.057","article-title":"Semi-supervised learning with mixed-order graph convolutional networks","volume":"573","author":"Wang","year":"2021","journal-title":"Inf. Sci."},{"key":"ref_29","doi-asserted-by":"crossref","first-page":"110020","DOI":"10.1016\/j.patcog.2023.110020","article-title":"Semi-supervised medical image segmentation via hard positives oriented contrastive learning","volume":"146","author":"Tang","year":"2024","journal-title":"Pattern Recognit."},{"key":"ref_30","doi-asserted-by":"crossref","first-page":"113091","DOI":"10.1016\/j.measurement.2023.113091","article-title":"Semi-supervised learning framework for crack segmentation based on contrastive learning and cross pseudo supervision","volume":"217","author":"Xiang","year":"2023","journal-title":"Meas. J. Int. Meas. Confed."},{"key":"ref_31","doi-asserted-by":"crossref","unstructured":"Hagberg, E., Hagerman, D., Johansson, R., Hosseini, N., Liu, J., Bj\u00f6rnsson, E., Alv\u00e9n, J., and Hjelmgren, O. (2022). Semi-supervised learning with natural language processing for right ventricle classification in echocardiography\u2014A scalable approach. Comput. Biol. Med., 143.","DOI":"10.1016\/j.compbiomed.2022.105282"},{"key":"ref_32","doi-asserted-by":"crossref","unstructured":"Yamaguchi, S., Kanai, S., Shioda, T., and Takeda, S. (2021, January 19\u201322). Image Enhanced Rotation Prediction for Self-Supervised Learning. Proceedings of the International Conference On Image Processing, ICIP, Anchorage, AK, USA.","DOI":"10.1109\/ICIP42928.2021.9506132"},{"key":"ref_33","doi-asserted-by":"crossref","unstructured":"Feng, Z., Xu, C., and Tao, D. (2019, January 15\u201320). Self-supervised representation learning by rotation feature decoupling. Proceedings of the IEEE Computer Society Conference On Computer Vision And Pattern Recognition, Long Beach, CA, USA.","DOI":"10.1109\/CVPR.2019.01061"},{"key":"ref_34","doi-asserted-by":"crossref","first-page":"5357412","DOI":"10.1155\/2022\/5357412","article-title":"A Power Transformer Fault Prediction Method through Temporal Convolutional Network on Dissolved Gas Chromatography Data","volume":"2022","author":"Xing","year":"2022","journal-title":"Secur. Commun. Netw."},{"key":"ref_35","unstructured":"Kamnitsas, K., Castro, D., Le Folgoc, L., Walker, I., Tanno, R., Rueckert, D., Glocker, B., Criminisi, A., and Nori, A. (2018, January 10\u201315). Semi-supervised learning via compact latent space clustering. Proceedings of the 35th International Conference On Machine Learning, ICML 2018, Stockholm, Sweden."},{"key":"ref_36","doi-asserted-by":"crossref","unstructured":"Chen, L., Ren, Z., Lu, S., Huang, X., Wang, W., Xu, C., Zhao, W., and Guan, Z. (2023). A Simple Weakly-Supervised Contrastive Learning Framework for Few-shot Sentiment Classification. Res. Sq.","DOI":"10.21203\/rs.3.rs-2699220\/v1"},{"key":"ref_37","unstructured":"Gu, J., and Yeung, S. (2021, January 27\u201330). Staying in Shape: Learning Invariant Shape Representations using Contrastive Learning. Proceedings of the 37th Conference On Uncertainty In Artificial Intelligence, UAI 2021, Virtual."},{"key":"ref_38","doi-asserted-by":"crossref","unstructured":"Roy, K., Simon, C., Moghadam, P., and Harandi, M. (2023). CL3: Generalization of Contrastive Loss for Lifelong Learning. J. Imaging, 9.","DOI":"10.3390\/jimaging9120259"},{"key":"ref_39","doi-asserted-by":"crossref","unstructured":"Guti\u00e9rrez P\u00e9rez, J., Otero Baguer, D., and Maass, P. (2022). StainCUT: Stain Normalization with Contrastive Learning. J. Imaging, 8.","DOI":"10.3390\/jimaging8070202"},{"key":"ref_40","unstructured":"Oord, A., Li, Y., and Vinyals, O. (2018). Representation Learning with Contrastive Predictive Coding. arXiv."},{"key":"ref_41","doi-asserted-by":"crossref","unstructured":"Wu, C., Wu, F., and Huang, Y. (2022). Rethinking InfoNCE: How Many Negative Samples Do You Need?. arXiv.","DOI":"10.24963\/ijcai.2022\/348"},{"key":"ref_42","unstructured":"Agren, W. (2022). The NT-Xent loss upper bound. arXiv."},{"key":"ref_43","first-page":"428","article-title":"Impact of Hyperparameters on the Generative Adversarial Networks Behavior","volume":"1","author":"Sabiri","year":"2022","journal-title":"Int. Conf. Enterp. Inf. Syst."},{"key":"ref_44","first-page":"222","article-title":"Effect of Convulsion Layers and Hyper-parameters on the Behavior of Adversarial Neural Networks","volume":"487","author":"Sabiri","year":"2023","journal-title":"Enterp. Inf. Syst."},{"key":"ref_45","doi-asserted-by":"crossref","first-page":"104570","DOI":"10.1016\/j.imavis.2022.104570","article-title":"ArCo: Attention-reinforced transformer with contrastive learning for image captioning","volume":"128","author":"Wang","year":"2022","journal-title":"Image Vis. Comput."},{"key":"ref_46","doi-asserted-by":"crossref","unstructured":"Shah, A., Sra, S., Chellappa, R., and Cherian, A. (March, January 22). Max-Margin Contrastive Learning. Proceedings of the 36th AAAI Conference on Artificial Intelligence, Vancouver, BC, Canada.","DOI":"10.1609\/aaai.v36i8.20796"},{"key":"ref_47","doi-asserted-by":"crossref","first-page":"24","DOI":"10.1140\/epjqt\/s40507-023-00182-1","article-title":"Quantum adversarial metric learning model based on triplet loss function","volume":"10","author":"Hou","year":"2023","journal-title":"EPJ Quantum Technol."},{"key":"ref_48","first-page":"238","article-title":"Pre-trained CNN-based TransUNet Model for Mixed-Type Defects in Wafer Maps","volume":"20","author":"Kim","year":"2023","journal-title":"Wseas Trans. Inf. Sci. Appl."},{"key":"ref_49","doi-asserted-by":"crossref","first-page":"102034","DOI":"10.1016\/j.media.2021.102034","article-title":"Deep metric learning for otitis media classification","volume":"71","author":"Sundgaard","year":"2021","journal-title":"Med. Image Anal."},{"key":"ref_50","doi-asserted-by":"crossref","first-page":"7704","DOI":"10.1109\/ACCESS.2022.3142758","article-title":"Extending Contrastive Learning to Unsupervised Coreset Selection","volume":"10","author":"Ju","year":"2022","journal-title":"IEEE Access"},{"key":"ref_51","doi-asserted-by":"crossref","first-page":"4216","DOI":"10.1109\/TKDE.2021.3131584","article-title":"Self-Supervised Learning on Graphs: Contrastive, Generative, or Predictive","volume":"35","author":"Wu","year":"2023","journal-title":"IEEE Trans. Knowl. Data Eng."},{"key":"ref_52","doi-asserted-by":"crossref","unstructured":"Kilias, T., L\u00f6ser, A., Gers, F., Koopmanschap, R., Zhang, Y., and Kersten, M. (2018). IDEL: In-Database Entity Linking with Neural Embeddings. arXiv.","DOI":"10.1109\/BIGCOMP.2019.8679486"},{"key":"ref_53","doi-asserted-by":"crossref","first-page":"7426303","DOI":"10.1155\/2022\/7426303","article-title":"Oral Business English Recognition Method Based on RankNet Model and Endpoint Detection Algorithm","volume":"2022","author":"Xu","year":"2022","journal-title":"J. Sens."},{"key":"ref_54","unstructured":"Zhang, O., Wu, M., Bayrooti, J., and Goodman, N. (2021). Temperature as Uncertainty in Contrastive Learning. arXiv."},{"key":"ref_55","doi-asserted-by":"crossref","first-page":"600","DOI":"10.1109\/TIP.2003.819861","article-title":"Image Quality Assessment: From Error Visibility to Structural Similarity","volume":"13","author":"Wang","year":"2004","journal-title":"IEEE Trans. Image Process."},{"key":"ref_56","doi-asserted-by":"crossref","first-page":"116087","DOI":"10.1016\/j.eswa.2021.116087","article-title":"Structural similarity index (SSIM) revisited: A data-driven approach","volume":"Volume 189","author":"Bakurov","year":"2022","journal-title":"Expert Systems with Applications"},{"key":"ref_57","first-page":"37","article-title":"Urban multicultural trauma patients","volume":"34","author":"McCrary","year":"1992","journal-title":"Asha."},{"key":"ref_58","doi-asserted-by":"crossref","first-page":"261","DOI":"10.1016\/j.eij.2015.06.005","article-title":"Recommendation systems: Principles, methods and evaluation","volume":"16","author":"Isinkaye","year":"2015","journal-title":"Egypt. Inform. J."},{"key":"ref_59","first-page":"857","article-title":"Self-Supervised Learning: Generative or Contrastive","volume":"35","author":"Liu","year":"2023","journal-title":"IEEE Trans. Knowl. Data Eng."},{"key":"ref_60","doi-asserted-by":"crossref","first-page":"4275","DOI":"10.1109\/TIP.2023.3290514","article-title":"Universum-Inspired Supervised Contrastive Learning","volume":"32","author":"Han","year":"2023","journal-title":"IEEE Trans. Image Process."},{"key":"ref_61","first-page":"418","article-title":"Mechanism of Overfitting Avoidance Techniques for Training Deep Neural Networks","volume":"1","author":"Sabiri","year":"2022","journal-title":"Int. Conf. Enterp. Inf. Syst."}],"container-title":["Journal of Imaging"],"original-title":[],"language":"en","link":[{"URL":"https:\/\/www.mdpi.com\/2313-433X\/10\/8\/196\/pdf","content-type":"unspecified","content-version":"vor","intended-application":"similarity-checking"}],"deposited":{"date-parts":[[2025,10,10]],"date-time":"2025-10-10T15:36:08Z","timestamp":1760110568000},"score":1,"resource":{"primary":{"URL":"https:\/\/www.mdpi.com\/2313-433X\/10\/8\/196"}},"subtitle":[],"short-title":[],"issued":{"date-parts":[[2024,8,13]]},"references-count":61,"journal-issue":{"issue":"8","published-online":{"date-parts":[[2024,8]]}},"alternative-id":["jimaging10080196"],"URL":"https:\/\/doi.org\/10.3390\/jimaging10080196","relation":{},"ISSN":["2313-433X"],"issn-type":[{"value":"2313-433X","type":"electronic"}],"subject":[],"published":{"date-parts":[[2024,8,13]]}}}