Skip to main content
QUICK REVIEW

[Paper Review] Self-supervised Learning for Gastrointestinal Pathologies Endoscopy Image Classification with Triplet Loss

Tai Nguyen-D-P|arXiv (Cornell University)|Mar 3, 2023
Gastrointestinal Bleeding Diagnosis and TreatmentMedicine4 citations
TL;DR

This paper proposes SsLTF, a self-supervised learning framework for classifying gastrointestinal endoscopy images using Barlow Twins for representation learning, triplet loss to reduce intra-class variance and inter-class similarity, and focal loss to address class imbalance. The method achieves state-of-the-art performance on the Hyper-Kvasir dataset with an F1-score of 0.824 using a simple ResNet-50 backbone, outperforming more complex models.

ABSTRACT

Recently, the amount of GI tract datasets is introduced more and more by gathering from contests and challenges. The most common task needs to solve that is to classify images from the GI tract into various classes. However, the contributions of the existing approaches exhibit lots of limitations. In this paper, we aim to develop a computer-aided diagnosis system to classify the pathological findings in endoscopy images, the system can classify some common pathologies including polyps, esophagitis, and ulcerative -- colitis. To evaluate the proposed work, we use the public dataset which is Hyper--Kvasir instead of gathering the data. The key idea of our system is to develop self-supervised learning based on the Barlow Twins framework with a downstream task which is an endoscopy image classification integrated with triplet loss and focal loss functions. The self-supervision framework and focal loss function are used to overcome class-imbalanced data, while the triplet loss function is to tackle the domain-specific properties in endoscopy images which are inter/intra-class problems. An extensive experimental study on the pathological finding images in the Hyper--Kvasir dataset has shown that our proposed system is in general better than the compared methods, whereas using a simple neural network model. This means the proposed system can be used efficiently and capable of accurately for the classification of pathology images in the GI tract.

Motivation & Objective

  • To develop a computer-aided diagnosis system for classifying multiple gastrointestinal pathologies in endoscopy images, including polyps, esophagitis, and ulcerative colitis.
  • To address the challenges of class imbalance and inter/intra-class variability in endoscopy images, which hinder model generalization.
  • To improve classification performance using self-supervised pre-training and loss function integration without relying on large-scale private datasets.
  • To demonstrate that a simpler model with carefully designed loss functions can outperform more complex architectures on medical image classification tasks.

Proposed method

  • The system uses the Barlow Twins framework for self-supervised pre-training to learn robust feature representations from unlabeled endoscopy images.
  • A downstream classification head is fine-tuned using a combination of triplet loss and focal loss to enhance discriminative power and handle class imbalance.
  • Triplet loss is applied to minimize intra-class variance and maximize inter-class margin, improving feature separation for similar-looking pathologies.
  • Focal loss is integrated to reduce the influence of easy negatives and majority classes during training, focusing learning on hard examples.
  • The model is trained on the Hyper-Kvasir dataset, which contains six classes: polyps, esophagitis-grade-a, esophagitis-grade-b-d, ulcerative-colitis-grade-1, ulcerative-colitis-grade-2, and ulcerative-colitis-grade-3.
  • The final classification pipeline uses a ResNet-50 backbone, trained end-to-end with the combined loss objective.

Experimental results

Research questions

  • RQ1Can self-supervised pre-training with Barlow Twins improve feature representation for GI endoscopy image classification?
  • RQ2How effective is triplet loss in reducing intra-class variance and improving inter-class separation for endoscopy images with high visual similarity?
  • RQ3To what extent does focal loss mitigate performance degradation due to class imbalance in medical image datasets?
  • RQ4Can a lightweight model like ResNet-50 outperform larger architectures like DenseNet-161 and EfficientNet when combined with advanced loss functions and self-supervised pre-training?

Key findings

  • The proposed SsLTF method achieved an F1-score of 0.824 on the Hyper-Kvasir dataset, outperforming all compared methods including those using larger models like DenseNet-161 and EfficientNet.
  • The macro-averaged F1-score of SsLTF (0.824) was higher than Borgli et al. [3] (0.6747), He et al. [11] (0.6701), and Gjestang [7] (0.5800), despite using a simpler ResNet-50 architecture.
  • The integration of triplet loss significantly improved feature discrimination, particularly for pathologies with high visual similarity, such as different grades of ulcerative colitis and esophagitis.
  • Focal loss effectively reduced the impact of the majority class (polyps) on the total loss, improving recall for minority classes like ulcerative-colitis-grade-3.
  • The self-supervised pre-training stage using Barlow Twins enhanced feature quality, enabling better downstream performance even with limited labeled data.
  • Despite the simplicity of the model, SsLTF achieved competitive results, demonstrating that loss function design and pre-training are more impactful than model depth in this setting.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.