Introduction
Automated polyp counting in colonoscopy is a critical quality metric, yet it remains a significant challenge in medical computer vision. Unlike simple detection, counting requires re-associating "tracklets"—sequences of consecutive detections—into distinct polyp entities as they appear and disappear due to occlusion, motion blur, or camera movement. This paper addresses the limitations of existing self-supervised methods by introducing a temporally-aware supervised contrastive learning framework.
Methodology
The proposed approach consists of two primary components: a visual-temporal encoder trained with a novel contrastive loss and a clustering stage that incorporates temporal penalties.
Visual-Temporal Encoder and Contrastive Loss
The visual-temporal encoder utilizes a ResNet-50 backbone for frame-level features, followed by a Transformer to aggregate these into a tracklet embedding. To train this encoder, the authors employ a Supervised Contrastive Loss with "soft targets." Instead of treating all tracklets of the same polyp as identical, the loss function weights them by temporal proximity. This ensures that tracklets closer in time are more similar in the embedding space, capturing the natural evolution of a polyp's appearance.
Clustering with Temporal Penalties
For the final count, tracklets are clustered using Affinity Propagation. The similarity matrix is modified to include a temporal adjacency matrix, which penalizes the merging of tracklets that are visually similar but separated by large time intervals. This "temporal awareness" helps prevent false positive associations between distinct polyps that may look similar but appear at different times during the procedure.
Experimental Setup
The authors significantly expanded the training data to improve generalization, incorporating REAL-Colon, LDPolyp, SUN, and PolypSet. The combined dataset includes 384 polyps, nearly four times the scale of previous benchmarks. Evaluation was conducted using Leave-One-Out Cross-Validation (LOOCV) on 19 videos from the REAL-Colon dataset to ensure statistical robustness.
Key Results
The proposed method outperformed all previous benchmarks, including SFE, MVE, and TPC. Most notably, it achieved a Fragmentation Rate (FR) of 2.32, a 2.2x improvement over the previous state-of-the-art (TPC at 5.10). This reduction in fragmentation was achieved while maintaining a low False Positive Rate (FPR) of 0.0225. Ablation studies confirmed that the integration of temporal information into both the loss function and the clustering stage was the primary driver of these performance gains.
Conclusion
By shifting to supervised contrastive learning and leveraging temporal priors as a fundamental constraint, this work significantly advances the accuracy of automated polyp counting. The introduction of temporally-aware soft targets allows the model to better handle the extreme intra-polyp variability common in colonoscopy videos. Future research will focus on real-time implementation and expanding evaluation to more diverse annotated datasets.
Summary updated