Subclass-Aware Contrastive Semi-Supervised Learning for Inflammatory Bowel Disease Classification from Colonoscopy Images
Open Access
- 22 December 2025
- journal article
- research article
- Published by MDPI AG in Bioengineering
- Vol. 13 (1) , 8
Abstract
Inflammatory bowel disease (IBD) includes Crohn’s disease (CD) and ulcerative colitis (UC). The accurate classification of IBD from colonoscopy images is critical for diagnosis and treatment. However, the lack of labeled data poses a major challenge for developing deep learning-based IBD classification approaches. Recently, pseudo-labeling-based semi-supervised learning methods offer a promising solution in leveraging both labeled and unlabeled data to improve classification performance. Nevertheless, due to significant intra-class variability and the subtle inter-class differences in IBD colonoscopy images, pseudo-labels are often inaccurate, which results in confirmation bias and suboptimal performance. To address this challenge, a Subclass-Aware Contrastive Semi-Supervised Learning method, referred to as SACSSL, is proposed for accurate IBD classification by integrating a subclass-aware contrastive module into a pseudo-labeling-based semi-supervised framework, e.g., FixMatch. Specifically, unlabeled samples are first partitioned into confident and uncertain samples according to the confidence of pseudo-labels. An instance-level contrastive loss is then applied to uncertain samples, aiming to mitigate confirmation bias. Furthermore, intra-class heterogeneity is captured by introducing a set of prototypes for each subclass and assigning confident samples to these prototypes to form fine-grained subclasses, and supervised contrastive loss is applied to promote intra-subclass clustering, thereby enhancing inter-class separability while preserving intra-class diversity. Our method is evaluated on two datasets, i.e., an in-house collected Daping dataset for IBD classification and a publicly available LIMUC dataset for UC severity grading. On both datasets, our method achieves state-of-the-art performance under the semi-supervised setting. Specifically, with only 20% labeled data, the proposed method reaches an overall accuracy of 93.2% and an F1-score of 80.1% on the Daping dataset, which is close to the fully supervised upper bound (94.0% accuracy and 80.8% F1-score), and it achieves an overall accuracy of 76.4% and an F1-score of 68.9% on the LIMUC dataset. Comprehensive experimental results demonstrate the effectiveness of our method for semi-supervised colonoscopy image classification.Keywords
Funding Information
- Program of Chongqing Technology Innovation and Application Development Special Project (CSTB2022TIAD-KPX0161)
- Natural Science Foundation of Chongqing, China (CSTB2024NSCQ-LZX0141)
- Chongqing Excellence Program for Innovation and Entrepreneurship Leadership Talent Project (CQYC20220303576)
- National Natural Science Foundation of China (62471293)
This publication has 43 references indexed in Scilit:
- Robust semi-supervised learning in open environmentsFrontiers of Computer Science, 2025
- Deep Learning for Classification of Inflammatory Bowel Disease Activity in Whole Slide Images of Colonic HistopathologyThe American Journal of Pathology, 2025
- A Semi-Supervised Learning Framework for Classifying Colorectal Neoplasia Based on the NICE ClassificationJournal of Imaging Informatics in Medicine, 2024
- Distinguishing between Crohn’s disease and ulcerative colitis using deep learning models with interpretabilityPattern Analysis and Applications, 2024
- Multi-classification deep learning models for detection of ulcerative colitis, polyps, and dyed-lifted polyps using wireless capsule endoscopy imagesComplex & Intelligent Systems, 2023
- Class-Specific Distribution Alignment for semi-supervised medical image classificationComputers in Biology and Medicine, 2023
- Semi-supervised WCE image classification with adaptive aggregated attentionMedical Image Analysis, 2020
- A survey on semi-supervised learningMachine Learning, 2019
- Performance of a Deep Learning Model vs Human Reviewers in Grading Endoscopic Disease Severity of Patients With Ulcerative ColitisJAMA Network Open, 2019
- Application of Convolutional Neural Networks in the Diagnosis of Helicobacter pylori Infection Based on Endoscopic ImagesEBioMedicine, 2017