arXiv:2611.04624cs.CVNov 2026

Manuscript Offprint

arXiv:2611.04624

Polyp Matching Using Deep Learning

Kristian Dalsbø Hindberg, Puneet Sharma, Benedicte Schelde-Olesen, Ulrik Deding, Jakob Frederik Frøkjær Justsen, Jan-Matthias Braun, Esmaeil S. Nadimi

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

Abstract

A key challenge in colon capsule endoscopy (CCE) analysis is accurately identifying whether multiple images depict the same polyp, which is critical to avoid over-counting and unnecessary clinical interventions. Additionally, this prevents prolonged follow-up colonoscopies where endoscopists search for duplicate polyps without precise localization. This study presents a novel contrastive learning-based approach to polyp matching using a Siamese neural network architecture. The model was trained on a dataset from the Danish CareForColon2015 trial. The dataset comprises 5,103 image pairs of confirmed same polyp and 5,103 pairs of different polyps, annotated by experienced clinicians. The proposed model employs ResNet variants (ResNet18, ResNet34, ResNet50), DenseNet121 and EfficientNet B0/B3 as backbones and utilizes contrastive learning with cosine vector distance metric for classification. Experimental results demonstrate high classification accuracies of up to 92% and AUC values close to 0.98. These results suggest that automated polyp matching has the potential to reduce polyp over-counting, improve patient risk stratification, and reduce unnecessary follow-up colonoscopies.

Keywords: Colon capsule endoscopy, polyps, endoscopy, comparison, re-localization

1 Background

Colon capsule endoscopy (CCE) is increasingly employed for imaging and inspection of the colon [1, 2, 3, 4, 5, 6, 7, 8, 9]. In a CCE procedure, the patient swallows a capsule camera, which then traverses the gastrointestinal tract and exits via the anus. Prior to CCE, the patient goes through a procedure to clean their intestines [10, 11]. CCE lacks therapeutic capabilities, and when significant polyps are found in a CCE video, their removal requires a follow-up colonoscopy [12]. However, if the clinician is inaccurately informed of a higher number of polyps than actually present, additional time during colonoscopy may be spent searching for non-existent polyps. Furthermore, since the number of polyps identified is part of the risk allocation the patients receive, double counting of polyps may ultimately result in unnecessary follow-up, causing additional costs and discomfort or anxiety to patients [13, 4, 14].

There are several colon capsule/pill cameras on the market that are quite similar [15, 16]. Data of the current study are derived from CCE procedures conducted using second generation colon capsules (PillCam™ Colon 2, Medtronic, USA) [17]. This pill camera is 31.5 mm long and has a diameter of 11.6 mm. Each head of the pill is equipped with a camera that can function independently of the other. Each camera head has a view angle of 172∘172^{\circ} to all sides, which in total mounts to almost 360∘360^{\circ} view. Together, the two camera heads achieve a maximum frame rate of 35 frames per second. Typically, each camera head captures 5,000–10,000 images.

In a clinical setting, the camera capsule is known to exhibit bidirectional movement, occasionally traveling backwards between different colonic segments. Consequently, polyps and other features may be visualized multiple times during a CCE investigation [18, 14, 19]. To prevent the same polyp from being counted more than once, it is essential to have a reliable method for determining whether two or more images of polyps correspond to the same polyp. This task is called “polyp matching” and is essential in CCE, and the integration of artificial intelligence (AI) into this process is crucial [20].

There are several factors that make polyp matching based on solely images a challenging task [21]. First, a single polyp can appear significantly different when viewed from varying angles or distances. Second, the capsule’s onboard lighting can create diverse illumination conditions, including specular reflections. Third, the cleanliness of the colon can change over time affecting image consistency. In a setting where a clinician needs to determine whether two polyp identifications are of the same polyp, a list of relevant factors will be assessed. These include the time interval between images, the estimated location within the colon, the size and type of the polyps [21, 19]. However, this is a challenging task where there will be made errors by clinicians, and especially by non-expert clinicians [18].

In this paper, we focus on a fundamental question: “Given two images, both assumed to contain a polyp, are they showing the same polyp?”. To the best of our knowledge, this is the first attempt towards addressing this research question for CCE [21]. Within conventional colonoscopy, the typical situation is a bit different where the scope first is inserted in the rectum and moved to the start of colon (cecum) [22]. Clinical practice varies slightly regarding what is done during this insertion process. Some clinicians remove (at least small) polyps detected during the insertion process, during which they do a less thorough colon inspection compared to during the scope retraction process. Other clinicians only remove detected polyps during the retraction process from start (cecum) to end of colon (anus). This approach risks missing polyps detected during the insertion process. As the scope is normally inserted fully and then retracted without larger back-and-forth movements in the colon, the clinician will normally not be unsure about whether a detected polyp was revisited (except this aspect of polyps detected during scope insertion). However, for conventional colonoscopy there has been work done on tracking polyps and identifying the correct number of polyps. Parolari et al. [23, 24] use an architecture of ResNet and transformers to track, cluster and count polyps across consecutive frames. Similarly, Intrator et al. [25] present a method for polyp re-identification in colonoscopy videos using self-supervised learning, combining short-term tracking with appearance-based re-identification. However, such an approach is not applicable to CCE where images of the same polyp may be separated by several hours due to the capsule’s passive and bidirectional movement, which makes tracking impossible.

The main contributions of this paper are: (i) the first deep learning framework for polyp matching in CCE; (ii) a well-curated dataset of 5,103 same-polyp image pairs from the CareForColon2015 clinical trial; (iii) a Siamese network with pairwise contrastive loss achieving approximately 92% accuracy and AUC of 0.98; and (iv) a comparative evaluation of six CNN backbone architectures (ResNet18/34/50, DenseNet121, EfficientNet B0/B3) confirming that performance is robust to backbone choice.

The paper is organized as follows: Section 2 describes the dataset and methodology, Section 3 presents the experimental results, and Sections 4 and 5 provide discussion and conclusions.

References (39)