Using deep learning for predicting cleansing quality of colon capsule endoscopy images

Puneet Sharma, Kristian Dalsbø Hindberg, Benedicte Schelde-Olesen, Ulrik Deding, Esmaeil S. Nadimi, Jan-Matthias Braun, on behalf of the AICE consortium · 2026

Read Using deep learning for predicting cleansing quality of colon capsule endoscopy images by Puneet Sharma, Kristian Dalsbø Hindberg, Benedicte Schelde-Olesen, Ulrik Deding, Esmaeil S. Nadimi, Jan-Matthias Braun, on behalf of the AICE consortium (2026) in the Tower of Babel, a free online library of public-domain works preserved in clean, searchable text. No sign-up. The full text is served as a plain-text file at a predictable URL, where text is present: https://antarctic-labs.com/tower-of-babel/arxiv-2601-13412.txt.

Introduction

Puneet Sharma and co-authors, for the AICE group, teach a net to grade how clean colon capsule pics are. A colon capsule is a pill cam that films the gut as it passes. How clean the gut is sets if a film can be read at all. A poor clean must be caught or the test is waste.

Their data holds five hundred pics. Fourteen clinicians graded each pic on the Leighton-Rex scale, from poor to excellent. A ResNet-18 net was taught to match those grades. Split fold checks guard the score from luck. For gut teams, an auto grade could flag bad films fast and save a repeat test.

Catalog record

CREATORPuneet Sharma, Kristian Dalsbø Hindberg, Benedicte Schelde-Olesen, Ulrik Deding, Esmaeil S. Nadimi, Jan-Matthias Braun, on behalf of the AICE consortium
YEAR2026
COLLECTIONPAPERS
FORMATTXT
FILE SIZE35 KB
VERSION1.0
LICENSEhttp://creativecommons.org/licenses/by/4.0/
RIGHTSCC BY
SOURCEarXiv

Source: https://arxiv.org/abs/2601-13412

Browse the full library · About the Tower of Babel

Full text

The opening of the work, from the library's hosted text:

Using deep learning for predicting cleansing quality of colon capsule endoscopy images Puneet Sharma, Kristian Dalsbø Hindberg, Benedicte Schelde-Olesen, Ulrik Deding, Esmaeil S. Nadimi, Jan-Matthias Braun, on behalf of the AICE consortium Abstract In this study, we explore the application of deep learning techniques for predicting cleansing quality in CCE ( CCE ) images. Using a dataset of 500 images labeled by 14 clinicians on the Leighton–Rex scale (Poor, Fair, Good, and Excellent), a ResNet-18 model was trained for classification, leveraging stratified K K -fold cross validation to ensure robust performance. To optimize the model, structured pruning techniques were applied iteratively, achieving significant sparsity while maintaining high accuracy. Explainability of the pruned model was evaluated using Grad-CAM, Grad-CAM++, Eigen-CAM, Ablation-CAM, and Random-CAM, with the ROAD method employed for consistent evaluation. Our results indicate that for a pruned model, we can achieve a cross-validation accuracy of 88% with 79% sparsity, demonstrating the effectiveness of pruning in improving efficiency from 84% without compromising performance. We also highlight the challenges of evaluating cleansing quality of CCE images, and emphasize the importance of explainability in clinical applications, and the challenges associated with using the the ROAD method for our task. Finally, we employ a variant of adaptive temperature scaling to calibrate the pruned models for an external dataset. 1 Introduction Advancements in deep learning have profoundly reshaped the field of medical imaging, finding applications in areas such as radiology, pathology, cardiology, and beyond 35 . Deep learning-driven diagnostic tools enhance the efficiency of analyzing complex medical images, enabling earlier disease detection and ultimately leading to improved patient outcomes 35 . Capsule endoscopy has become a vital tool for gastrointestinal (GI) tract examinations in a minimally invasive manner 43 ; 24 . It enables clinicians to visualize the GI tract in detail, providing critical insights into conditions such as Crohn’s disease, bleeding, inflammation, ulcers, polyps, and tumors 32 ; 27 ; 34 ; 6 ; 51 ; 47 ; 39 . However, its effectiveness is often compromised by low cleansing quality of the captured images 32 . Residual fecal matter, mucus, blood, bubbles, and debris can obscure key diagnostic features, making it challenging for clinicians to interpret the images accurately. In other words, a proper assessment of the cleansing is required to guarantee that sufficient mucosa is seen and to classify the investigation as complete 43 . This issue is further exacerbated by significant inter- and intra-observer variability in cleansing assessment, as highlighted in the study by Buijs et al. 7 ; 8 . It not only impacts diagnostic accuracy, but also increases the time required for manual review, highlighting the need for automated solutions and to standardize and streamline the assessment process. Deep learning, particularly through CNN , utilizes multiple processing layers to learn data representations at varying levels of abstraction 28 . These techniques have significantly advanced the state-of-the-art in areas such as speech recognition, visual object detection, image segmentation 48 and image classification 28 . While deep learning models are known for their high accuracy, their deployment in clinical settings often face challenges related to computational efficiency and explainability. Large, dense neural networks can be computationally expensive, making them unsuitable for resource-constrained environments such as portable medical devices or closed systems essential for hospital use. Explainability is another critical aspect of deploying deep learning models in clinical applications 33 , where both clinicians and patients often require transparent and interpretable results to trust and validate the predictions made by artificial intelligence systems 36 . In this paper, we explore three key questions: First, is it possible to prune a model without compromising on the accuracy associated with cleansing quality estimation of CCE images? Second, can metrics from CAM-based methods be used to explain the results of the pruned models? Third, can we perform model calibration on the pruned models for an external dataset of CCE images? 2 Data In this section, we discuss the two data sets used for training and testing of the proposed models. The data used for cross-validation in this study is retrieved from the Danish Care For Colon 2015 trial 26 ; 2 . The dataset 40 consists of 500 images that have been labeled by 14 clinicians (out of a panel of 27) using the Leighton–Rex scale 45 as Poor, Fair, Good, and Excellent in cleansing quality. In order to use a ground truth label for each image, we use the mode value of the labels provided by the 14 different clinicians. Figure 1 shows random examples from the four classes. Assigning a consistent label for each image can be challenging for the different clinicians involved as they may have varying levels of experience, training, or familiarity with specific conditions or nuances in capsule endoscopy images 44 ; 41 . Although cleansing can refer to the absence of fecal matter, mucus, blood, or bubbles, the acceptable threshold for these factors can vary 40 . Figure 1 shows examples of artifacts such as mucus, bubbles, and fecal matter. The images were preprocessed using a circular and a border mask to remove the text along the borders. Each image is preprocessed by normalizing it to have a zero mean and unit standard deviation, for training in deep learning. Figure 1 : Example images of the different Leighton–Rex scale classes The data used for testing the proposed models is collected in a separate study where image cleansing quality was rated by 3 different clinicians not related to the previous study. The image labels where all three clinicians agreed were used as ground truth for testing the performance of the proposed models. This external dataset consists of 396 images, where all the clinicians agree on their cleansing quality. 3 Theory We have focused on the ResNet-18 (Residual network) architecture 21 in this study. The key feature of ResNets is that it solves the problem of disappearing gradients in deep neural networks by introducing the so-called skip connections 21 . Skip connections allow gradients to flow directly through layers, avoiding the vanishing-gradient problem, which enables training deep networks with hundreds or even thousands of layers without degradation in performance. The ResNet architecture is available in different variants, e.g., ResNet-18, ResNet-34, ResNet-50, ResNet-101, and ResNet-152, where the integer indicates the number of layers. For training the models used in our experiments, we employed stratified K -fold cross validation. K -fold cross-validation is used in machine learning to assess how well a model generalizes to unseen data, and hence reduce overfitting 52 . The dataset is divided into K equal-sized subsets called folds. The model is trained on K-1 folds, and the remaining fold is used for validation 52 . This process is repeated K times, each time using a different fold as the validation set. In Stratified K -fold, each fold has a proportional representation of each class, which ensures that all classes are well-represented in both training and validation sets. Structured pruning is a technique used in deep learning to reduce the complexity of neural networks by removing entire groups of parameters, such as neurons in fully connected layers, channels of layers in CNN , rather than individual weights 23 . This technique improves model efficiency, reduces computational costs, and allows deployment

Read the complete text