Abstract
Medical image segmentation is a critical task often hindered by the scarcity of high-quality annotations and the inherent ambiguity of anatomical boundaries. We present two novel, architecture-agnostic modules: Patch-Dragsaw Contrastive Regularization (PDCR) and Uncertainty-Aware Feature Selection (UAFS). PDCR introduces a continuous, intra-image contrastive learning objective that respects the overlapping nature of image patches. UAFS identifies and suppresses high-uncertainty features, preventing the model from overfitting to noisy boundary pixels. Evaluated across eight diverse datasets, our method achieves state-of-the-art performance and demonstrates remarkable data efficiency, matching baseline results with only 25% of the training data.
Introduction
Accurate medical image segmentation is fundamental to modern clinical diagnosis. However, the field faces two primary challenges: the high cost of expert annotation and the difficulty of learning robust features from "hard cases" that are often just noise due to blurry organ boundaries. Traditional contrastive learning, while effective for image-level classification, often fails in segmentation because it focuses on inter-image differences and uses discrete positive/negative labels that do not account for the continuous transitions in spatial data.
Methodology
To address these limitations, we propose two lightweight modules that can be integrated into standard encoder-decoder architectures like UNet or DeepLabv3+.
Patch-Dragsaw Contrastive Regularization (PDCR)
PDCR shifts the focus of contrastive learning from inter-image to intra-image relationships. By sampling hidden vectors from the encoder, the module compares local receptive fields within a single image. Unlike standard methods that use binary labels, PDCR employs a continuous affinity score based on foreground ratios. This "dragsaw" loss applies a proportional force—pulling similar patches together and pushing dissimilar ones apart—to better capture the smooth transitions characteristic of medical images.
Uncertainty-Aware Feature Selection (UAFS)
While many models prioritize "hard cases," in medical imaging, these are often ambiguous boundary regions. UAFS calculates pixel-wise uncertainty using normalized Shannon entropy on intermediate feature maps. Instead of emphasizing these regions, UAFS down-weights them, guiding the network to focus on more reliable, large-scale semantic features.
Experimental Setup and Results
The proposed method was validated on eight public datasets covering various modalities (MRI, X-ray, Dermoscopy, Pathology) and dimensions (2D and 3D).
Performance and Data Efficiency
The combination of PDCR and UAFS consistently outperformed baseline models and other state-of-the-art architectures. Notably, the modules significantly improved data efficiency. On the ISIC 2017 dataset, our model trained on only 25% of the available data achieved performance comparable to a baseline model trained on the full dataset, demonstrating the robustness of the learned features.
Conclusion
By rethinking contrastive learning for the pixel level and selectively filtering uncertain features, PDCR and UAFS provide a robust framework for medical image segmentation. These modules are plug-and-play, requiring no significant architectural changes, and offer a path forward for high-performance segmentation with limited annotated data. Future work will explore their application in semi-supervised and unsupervised learning contexts.
Summary updated