Abstract
Deep learning models for polyp segmentation typically require exhaustive, pixel-level annotations, creating a significant bottleneck in medical imaging workflows. We present WS-DefSegNet, a framework that achieves high-performance segmentation using only sparse "weak" annotations (e.g., scribbles) and unlabeled data. By incorporating a sparse foreground loss, a semi-supervised consistency mechanism, and a Deformable Transformer Encoder Neck (DTEN), our model effectively bridges the gap between weak supervision and full pixel-level supervision. Experimental results across five benchmark datasets demonstrate that WS-DefSegNet often outperforms fully supervised models, highlighting its potential for efficient clinical deployment.
Introduction
Early detection of colorectal cancer through polyp segmentation in colonoscopy images is a critical medical task. While deep learning has shown great promise, the "data hunger" of these models necessitates thousands of images manually labeled by expert physicians. This process is not only time-consuming but also prone to inter-observer variability. Furthermore, training on "weak" labels—such as a single line or scribble—often leads to "bleeding" effects where models fail to define clear boundaries.
This paper addresses these challenges by introducing a two-stage training regime and architectural enhancements that allow models to learn robust features from sparse inputs. The goal is to provide a solution that maintains the ease of weak annotation while delivering the high performance of full supervision.
Methodology
The WS-DefSegNet framework is built upon three core components designed to maximize information extraction from limited labels.
Sparse Foreground Loss ($L_f$)
In the initial weakly-supervised stage, a novel loss function is employed to handle sparse foreground pixels provided in sketches. Unlike standard cross-entropy, which might penalize the model for predicting foreground in unlabeled regions, the sparse foreground loss focuses specifically on the provided pixels. This prevents the model from incorrectly identifying background pixels as foreground, effectively suppressing the "bleeding" effect common in weakly supervised tasks.
Batch-wise Weighted Consistency Loss ($L_c$)
To leverage unlabeled data, the framework implements a "Teacher-Student" semi-supervised mechanism. A weighted consistency loss is applied between two identical networks. This mechanism enforces that the student's predictions align with the teacher's "pseudo-labels," allowing the model to learn consistent features across both labeled and unlabeled samples.
Deformable Transformer Encoder Neck (DTEN)
Architecturally, a Deformable Transformer is inserted between the Res2Net backbone and the segmentation head. Standard transformers are computationally expensive as they attend to every pixel. In contrast, the DTEN focuses on a small set of learned sampling locations. This allows the model to capture long-range dependencies and fuse multi-scale features efficiently, which is vital for identifying polyps with varied shapes and subtle texture differences from surrounding tissue.
Experimental Setup
The authors introduced the W-Polyp dataset, consisting of 750 images relabeled with simple sketches (lines, scribbles, circles). These annotations cover only approximately 1.9% of the total pixels, with each image requiring only ~2 seconds to annotate—a significant reduction compared to full-mask labeling.
The model was evaluated on five challenging benchmarks: CVC-ColonDB, ETIS, Kvasir, CVC-T, and CVC-ClinicDB.
Results and Discussion
WS-DefSegNet demonstrated remarkable performance, often surpassing models trained with full supervision. On the CVC-300 dataset, the model achieved a mean Dice score (mDice) of 0.795, significantly higher than fully supervised baselines like U-Net (0.710).
Key Insights
- Efficiency and Accuracy: The results suggest that perfect masks are not a prerequisite for high-quality segmentation. By respecting label sparsity, the model learns to logically "fill in the gaps."
- Global Context: The DTEN module's ability to look at flexible spatial locations helps distinguish polyps from surrounding tissue, a task where standard CNNs often struggle.
- Generalization: Interestingly, the weakly-supervised model showed superior generalization to unseen datasets compared to fully supervised counterparts. This indicates that training on sparse, essential features may prevent overfitting to specific annotation styles.
Conclusion
WS-DefSegNet offers a compelling path toward reducing the annotation burden in medical imaging. While the two-stage training process adds some complexity, the gains in efficiency and the ability to leverage unlabeled data are substantial. Future work will focus on handling noisier annotations and extending the framework to other modalities like MRI and CT scans.
Summary updated