TL;DR
Self-supervised learning for endoscopic video analysis often fails because models get distracted by camera jitter instead of focusing on actual lesions. This paper introduces Focus-to-Perceive Representation Learning (FPRL), a hierarchical framework that mimics human endoscopists by first isolating static lesion features and then tracking their evolution over time. FPRL achieves state-of-the-art performance across multiple clinical tasks while cutting pre-training time by more than half.
What Problem Does This Paper Address?
Self-supervised learning (SSL) has become a go-to strategy for training medical AI models without relying on scarce, expensive expert annotations. Typically, models are pre-trained on large volumes of unlabeled video using pretext tasks like predicting missing frames or reconstructing masked pixels.
However, standard video SSL methods were designed for natural videos (like action recognition datasets) where motion is the primary signal. When applied to endoscopic videos, these models suffer from motion bias. They overfit to non-semantic, task-independent dynamic patterns—such as camera jitter, water flushing, or tissue displacement—while ignoring the subtle, static visual cues like lesion morphology, color, and texture that doctors actually use to make diagnoses.
Methods
Inspired by the "focus before perception" cognitive pattern of human endoscopists, the authors propose Focus-to-Perceive Representation Learning (FPRL). Instead of modeling space and time simultaneously, FPRL decouples them into a two-stage hierarchical process:
- Static Semantic Focus: The model isolates a single frame and focuses on lesion-centric local cues.
- Contextual Semantic Perception: The model tracks how these localized features evolve across sparse frames over time.
To implement this, the architecture relies on several novel components built on top of a state-space model backbone (EndoMamba):
- Multi-view Sparse Sampling: Instead of processing dense, continuous video frames, the model independently samples three sparse views (past, current, and future). This naturally filters out high-frequency motion noise.
- Teacher-Prior Adaptive Masking (TPAM): Utilizing a teacher-student setup, a frozen teacher network (pretrained on large-scale video data) generates a spatial saliency map. This map guides the student network to mask out uninformative background patches while keeping critical lesion-centric tokens visible.
- Cross-View Masked Feature Completion (CVMFC): The student network is forced to reconstruct the masked parts of the current frame by retrieving relevant semantic features from the past and future views.
- Attention-Guided Temporal Prediction (AGTP): This module aggregates view-level tokens and applies contrastive learning to ensure that the global representation remains temporally consistent across the video clip.
Datasets
The authors conducted an extensive evaluation using 11 publicly available endoscopic video datasets, totaling 33,311 videos (~6 million frames) covering various gastrointestinal diseases and surgical protocols.
- Pre-training Union: Colonoscopic, SUN-SEG, LDPolypVideo, Hyper-Kvasir, Kvasir-Capsule, CholecTriplet, and Renji-Hospital.
- Downstream Evaluation:
- PolypDiag (Lesion Classification)
- CVC-12k (Video Polyp Segmentation)
- KUMC (Polyp Detection)
- Cholec80 (Surgical Phase Recognition)
Key Insights and Ideas
- Cognitive Alignment Beats Brute Force: Aligning neural network architectures with human clinical workflows (looking closely at a lesion before tracking its movement) yields more robust representations than standard dense spatio-temporal modeling.
- Sparsity as a Filter: In medical video analysis, dense frame processing introduces more noise than signal. Sparse sampling acts as an implicit regularizer against camera shake.
- Smart Masking Over Random Masking: While random masking works well for general computer vision (e.g., Masked Autoencoders), medical images contain vast amounts of homogenous background tissue. Guiding the masking process with a teacher network's prior forces the model to spend its capacity learning complex lesion boundaries.
Key Results
FPRL consistently outperformed recent state-of-the-art (SOTA) methods across all downstream tasks. Notably, when compared directly against its underlying backbone architecture, EndoMamba, FPRL achieved significant performance boosts while being dramatically faster to train:
- Classification (PolypDiag): Achieved 95.2% F1-score (+0.7% over EndoMamba).
- Segmentation (CVC-12k): Achieved 86.1% Dice score (+1.6% over EndoMamba).
- Detection (KUMC): Achieved 89.8% F1-score (+1.0% over EndoMamba).
- Efficiency: Reduced pre-training time by 52% (requiring only 18.2 hours compared to EndoMamba's 38.2 hours).
Limitations and Future Work
The authors noted that when they experimented with an extreme single-frame pre-training variant to maximize static feature learning, performance degraded. This was due to noisy supervision stemming from common endoscopic artifacts like light reflections, blur, and fluid obscuring the camera.
To address this, future work will focus on introducing quality-aware sampling mechanisms that can automatically detect and skip heavily artifact-ridden frames, alongside developing lightweight multi-frame architectures to improve overall robustness.
Summary updated