Annotation-Free Representation Learning for Polyp Retrieval in Colonoscopy Videos
Authors: Luca Parolari, Lamberto Ballan, Carlo Biffi, Loic Le Folgoc
Organizations: Department of Mathematics, University of Padova, Padova, Italy · Cosmo Intelligent Medical Devices, Dublin, Ireland · LTCI, Telecom Paris, Institut Polytechnique de Paris, Palaiseau, France
Colonoscopy is inherently comparative: reliable visual assessment of polyps often depends on complementary views acquired under different viewpoints and imaging conditions. Retrieving such views requires polyp tracklet representations, which recent contrastive methods learn from temporal cues but still build from manually annotated bounding boxes. We propose an annotation-free framework that constructs tracklet views directly from raw colonoscopy videos, enabling temporal self-supervised learning on full-procedure videos, including frames without visible polyps. On REAL-Colon, our method achieves state-of-the-art results on tracklet retrieval and re-identification, outperforming both self-supervised and supervised baselines. We then introduce few-shot polyp retrieval, a task closer to clinical use, where a few observations of a target polyp are used to retrieve its remaining tracklets: with only two examples, our method surpasses most competing methods given ten. Finally, we show that a modest number of unlabeled procedures suffices for competitive performance, making on-site model development more practical. Code is available at https://github.com/lparolari/freerep.
Figures & tables
Method
Tracklet Retrieval
Tracklet ReID
Few-Shot Polyp Retrieval
Params
FLOPs
mAP
HR@1
AUROC
AUPR
mAP ( ↑ )
(M)
(G)
(↑)
(↑)
(↑)
(↑)
K=1
K=2
K=3
K=5
K=10
General Purpose FM
DinoV2-S/14 [ 12 ]
22.1
44.2
47.31
89.81
80.07
29.77
47.91
57.04
62.73
65.64
72.57
DinoV2-g/14 [ 12 ]
1136
2331
48.29
90.35
78.23
27.04
48.08
57.20
62.40
66.46
72.13
DinoV3-S/16 [ 13 ]
21.6
34.7
48.95
88.99
80.47
31.77
47.60
57.36
62.95
66.80
76.59
Table 1: Comparison with State-of-the-Art: our approach outperforms self-supervised, weakly supervised, and fully supervised baselines. Bold : best; underline : second best.
Figure 1: Scaling of annotation-free training with the number of training videos (nested subsets; shaded band: ± std over five subsets per size). Dashed lines: NTSSL [ 11 ] . The break-even point is reached between 24 and 32 videos, depending on the metric, and performance keeps improving up to 41 videos.
Figure 2: Robustness to cohort removal: random subsets (five 32-video subsets drawn from all cohorts) against leave-one-cohort-out (LOCO) training. Differences between the two protocols are not significant (Welch’s t -test, p -values below each panel), indicating no large effect of removing a cohort.
Training setup
Tracklet Retrieval
Tracklet ReID
Annot.
Loss
Views
Full
mAP
HR@1
AUROC
AUPR
ID+Box
SupCon
BBox
✗
57.52
84.24
94.33
43.81
Box
Noise-Aw.
BBox
✗
61.49
91.17
93.89
51.78
Stats
Noise-Aw.
Synth.
✓
65.60
91.71
95.14
57.72
–
Noise-Aw.
Frame
✓
52.27
84.10
89.24
43.74
–
SupCon
Crop
✓
64.31
89.54
94.97
49.83
Table 2: Ablation toward annotation-free training. Annot. : polyp identities and boxes ( ID+Box ), boxes ( Box ), box statistics ( Stats ), or none (–); Loss : supervised contrastive ( SupCon ) or noise-aware ( Noise-Aw. ); Views : ground-truth box crops ( BBox ), synthetic box crops ( Synth. ), full frames ( Frame ), or random crops ( Crop ); Full : full-procedure training. Gray: annotation-dependent; bold : best annotation-free.
Learning robust representations of polyp tracklets is key to enabling multiple AI-assisted colonoscopy applications, from polyp characterization to automated reporting and retrieval. Supervised contrastive learning is an effective approach for learning such representations, but it typically relies on correct positive and negative definitions. Collecting these labels requires linking tracklets that depict the same underlying polyp entity throughout the video, which is costly and demands specialized clinical expertise. In this work, we leverage the sequential workflow of colonoscopy procedures to derive self-supervised associations from temporal structure. Since temporally derived associations are not guaranteed to be correct, we introduce a noise-aware contrastive loss to account for noisy associations. We demonstrate the effectiveness of the learned representations across multiple downstream tasks, including polyp retrieval and re-identification, size estimation, and histology classification. Our method outperforms prior self-supervised and supervised baselines, and matches or exceeds recent foundation models across all tasks, using a lightweight encoder trained on only 27 videos. Code is available at https://github.com/lparolari/ntssl.
Luca Parolari, Pietro Gori, Lamberto Ballan +2
Department of Mathematics, University of Padova, Padova, Italy · LTCI, Telecom Paris, Institut Polytechnique de Paris, Palaiseau, France · Cosmo Intelligent Medical Devices, Dublin, Ireland
Because dense frame-level annotation of colonoscopy videos is costly, we propose WSPolypNet, a weakly supervised framework for polyp localization using only video-level labels. WSPolypNet employs a 3D convolutional neural network trained with video-level supervision to generate class activation maps (CAMs), which identify candidate polyp regions without requiring frame-level spatial annotations. The CAM-derived localization cues are further enhanced using a multi-view strategy and provided to MedSAM2 as point prompts. MedSAM2 then propagates segmentation masks across the video, refining the coarse localization cues according to polyp boundaries. WSPolypNet achieved CorLoc scores of 47.80%, 43.68%, and 35.01% at IoU thresholds of 0.3, 0.5, and 0.7, respectively, compared with 36.87%, 33.72%, and 27.94% in the single-view setting. For small polyps, the multi-view strategy improved [email protected] from 16.01% to 30.97%. The framework also achieved a recall of 94.51%. These results demonstrate the potential of weakly supervised spatiotemporal learning to substantially reduce spatial annotation requirements for polyp localization in colonoscopy videos.
Giseong Hwang, Minjae Jo, Yeonghyeon Park +9
Seoul National University · NVIDIA AI Technology Center
Accurate polyp segmentation in colonoscopy is essential for early colorectal cancer detection, yet real-world clinical environments pose persistent challenges such as motion blur, specular reflections, and illumination instability. Most existing methods are optimized on clean benchmark images and suffer noticeable performance degradation when deployed in authentic surgical scenarios. We propose DepthPolyp, a lightweight and robust segmentation framework based on pseudo-depth-guided multi-task learning and efficient feature modulation. The architecture combines hierarchical Ghost factorization for compact feature generation, Interleaved Shuffle Fusion for low-cost cross-scale interaction, and Dynamic Group Gating for adaptive group-wise feature weighting. Extensive experiments demonstrate that DepthPolyp achieves strong cross-dataset generalization when trained on degraded data and evaluated on both clean and noisy target domains, consistently outperforming lightweight baselines and remaining competitive with substantially larger models. In real surgical video evaluation on PolypGen, DepthPolyp achieves better segmentation performance than models up to 20× larger while preserving real-time inference speed. With only 3.57M parameters and 0.86 GMACs, the proposed method runs at over 180 FPS on mobile devices, making it well suited for real-time deployment in resource-constrained clinical environments. Code and pretrained weights are available at: https://github.com/ReaganWu/DepthPolyp/
Zhuoyu Wu, Wenhui Ou, Lexi Zhang +5
CyPhi AI Lab, Monash University, Malaysia Campus, Malaysia · Department of Electronic & Computer Engineering, Hong Kong University of Science & Technology, Hong Kong, P.R. China · Harbin Institute of Technology, Harbin, P.R. China +1