Abstract
Although supervised learning has enabled high performance for image segmentation, it requires a large amount of labeled training data, which can be difficult to obtain in the medical imaging field. Self-supervised learning (SSL) methods involving pretext tasks have shown promise in overcoming this requirement by first pretraining models using unlabeled data. In this work, we evaluate the efficacy of two SSL methods (inpainting-based pretext tasks of context prediction and context restoration) for CT and MRI image segmentation in label-limited scenarios, and investigate the effect of implementation design choices for SSL on downstream segmentation performance. We demonstrate that optimally trained and easy-to-implement inpainting-based SSL segmentation models can outperform classically supervised methods for MRI and CT tissue segmentation in label-limited scenarios, for both clinically-relevant metrics and the traditional Dice score.
Introduction
Deep learning has revolutionized medical image segmentation, yet its reliance on high-quality, manually labeled data remains a significant bottleneck. In clinical settings, producing these labels is expensive, time-consuming, and requires the expertise of radiologists. While Self-Supervised Learning (SSL) offers a path forward by leveraging vast amounts of unlabeled data, much of the existing research has focused on image classification rather than the dense prediction required for tissue segmentation.
This study addresses this gap by applying SSL specifically to tissue segmentation in label-limited scenarios. Crucially, the research moves beyond the standard Dice score—a measure of spatial overlap—to investigate whether SSL improves "clinically relevant metrics," such as Hounsfield Units in CT or T2 relaxation times in MRI, which are the actual biomarkers used in medical decision-making.
Methods and Datasets
The researchers evaluated their approach across two distinct domains:
- MRI (SKM-TEA Dataset): 155 labeled and 86 unlabeled 3D knee MRI volumes, targeting the segmentation of femoral, tibial, and patellar cartilage, and the meniscus.
- CT Dataset: 886 labeled and 7,799 unlabeled abdominal CT slices, focusing on subcutaneous, visceral, and intramuscular adipose tissue, as well as muscle.
To simulate data-limited environments, training subsets were created with only 5%, 10%, 25%, and 50% of available labels.
Pretext Tasks and Architecture
The study focused on two inpainting-based pretext tasks where a model is trained to "fix" corrupted images:
- Context Prediction: Random image patches are set to zero or a mean value, requiring the model to fill the gaps.
- Context Restoration: Pairs of image patches are randomly swapped, and the model must restore the original spatial arrangement.
The underlying architecture was a 2D U-Net. A key finding was that transferring only the encoder weights from the pretext task to the segmentation task was generally more effective and efficient than transferring the full U-Net.
Optimization of Design Choices
A rigorous grid search was performed on several implementation choices:
- Hyperparameters: An initial learning rate of 1e-3 was found to be the "sweet spot"—high enough to adapt to the new task but low enough to preserve pretrained features.
- Patch Size: The study tested sizes from 8x8 to 64x64, finding that the optimal size varies but significantly impacts feature learning.
- Sampling: The use of Poisson-disc sampling was explored to prevent patch overlap during corruption.
Key Results and Insights
The optimized SSL strategy yielded significant improvements in Dice scores over standard supervised learning (p < 0.001). The benefits were most pronounced in the most data-starved scenarios. For example, with only 5% of labels, SSL more than halved the percent error in calculating tissue volume and mean T2 relaxation time for patellar cartilage on MRI compared to purely supervised models.
Context Restoration vs. Prediction
Context restoration (swapping patches) generally outperformed context prediction (deleting patches). This suggests that the restoration task forces the model to learn more nuanced information about the spatial distribution and textures of underlying anatomy. Interestingly, the best segmentation performance did not always correlate with the highest accuracy on the pretext task, indicating that the goal is to learn useful features rather than becoming a perfect image restorer.
Conclusion
This work demonstrates that optimally trained inpainting-based SSL can act as a "force multiplier" in medical imaging, particularly for difficult-to-segment tissues like intramuscular fat. While the study was limited to 2D U-Net architectures and inpainting tasks, it provides a robust framework for implementing SSL in clinical workflows. Future research may explore 3D architectures and the integration of contrastive learning paradigms to further reduce the dependency on expert-labeled data.
Summary updated