Abstract
Medical image segmentation is a critical step in clinical diagnosis and treatment planning, yet the field remains heavily dependent on large-scale, manually annotated datasets. To address the high cost and variability of expert labeling, we present $S^3$-Net, a Self-supervised Semantic Segmentation Network. $S^3$-Net utilizes a novel architecture combining Inception Large Kernel Attention (I-LKA) and deformable convolutions with a "consistency over transformation" training strategy. By enforcing invariance across affine transformations and ensuring spatial consistency through edge-aware priors, the model achieves state-of-the-art performance on skin lesion and lung segmentation tasks without requiring any manual labels. Our results demonstrate that $S^3$-Net significantly outperforms existing unsupervised methods, offering a robust solution for label-efficient medical imaging.
Introduction
Deep learning has revolutionized medical imaging, but its success is often tethered to the availability of high-quality, supervised data. In the medical domain, obtaining such data is uniquely challenging: it requires the time of expert radiologists, is subject to inter-observer variability, and is often constrained by privacy regulations. This "data hunger" has spurred interest in self-supervised learning (SSL), which seeks to learn meaningful representations from unlabeled data.
However, standard SSL approaches often struggle with the specific nuances of medical images. Anatomical structures like lesions and organs are inherently non-rigid, exhibiting significant deformations across patients. Furthermore, many models produce fragmented or "speckled" segmentation masks because they lack a mechanism to enforce spatial consistency. Finally, models trained on large, centralized unlabeled datasets can inadvertently inherit dataset biases. $S^3$-Net addresses these issues by focusing on intrinsic data structures and geometric consistency.
Methodology
$S^3$-Net is designed to capture both global context and local detail while remaining robust to the geometric variations common in medical scans. The framework is built upon three primary innovations:
1. Inception Large Kernel Attention (I-LKA)
Standard convolutional neural networks (CNNs) often have a limited receptive field, making it difficult to capture the broad context necessary to distinguish a lesion from surrounding tissue. $S^3$-Net employs I-LKA, which utilizes parallel filters of varying sizes—inspired by the Inception architecture—integrated with large-kernel attention mechanisms. This allows the network to process fine-grained local features and wide-ranging global information simultaneously.
2. Deformable Convolutions
Unlike traditional square convolutional filters, deformable convolutions employ learnable offsets that allow the sampling grid to "wrap" around the irregular boundaries of anatomical structures. This flexibility is crucial for accurately delineating the borders of skin lesions or lung lobes, which rarely conform to rigid geometric shapes.
3. The Triple-Threat Loss Function
The model is trained using a composite loss function designed to drive meaningful clustering without human supervision:
- Cross-Entropy ($L_{ce}$): Facilitates the initial pixel-level clustering by maximizing the information gain from the image features.
- Affine Transformation Loss ($L_{AT}$): This is the core of the "consistency over transformation" approach. The model is required to produce consistent segmentation masks even when the input image undergoes random rotations, scaling, or shearing. This forces the network to learn robust anatomical features rather than memorizing pixel coordinates.
- Spatial Consistency Loss ($L_S$): By incorporating Sobel edge detection, this loss ensures that neighboring pixels with similar visual characteristics are assigned to the same segment. It acts as a soft prior that discourages fragmented or noisy outputs.
Notably, $S^3$-Net can perform predictions based on a single image, allowing it to adapt to the specific characteristics of an individual scan and mitigating the domain shift problems often found in large-scale dataset training.
Experimental Results
The performance of $S^3$-Net was evaluated on two benchmark medical datasets: the PH² Dataset (200 dermoscopic images of skin lesions) and the Kaggle Lung Analysis Dataset (700 2D CT slices). The model was compared against several state-of-the-art (SOTA) unsupervised and self-supervised methods, including DeepCluster, IIC, and MS-Former.
Quantitative Performance
$S^3$-Net established new benchmarks for self-supervised segmentation:
- Skin Lesion Segmentation: The model achieved a Dice Score of 88.0%, a significant improvement over the 83.4% achieved by the previous leading method, SGSCN.
- Lung Segmentation: The model reached a Dice Score of 94.7%, demonstrating high reliability in identifying pulmonary structures.
Qualitative Analysis
Visual inspections of the segmentation masks reveal that $S^3$-Net produces smoother and more continuous boundaries than its predecessors. While methods like $k$-means or DeepCluster often produce noisy or under-segmented results, $S^3$-Net's edge-aware spatial consistency loss ensures that the resulting masks align closely with the actual anatomical borders.
Discussion and Limitations
While $S^3$-Net represents a significant step forward, it is not without limitations. The model occasionally encounters "failure modes" in scenarios where there is extreme overlap in color or texture between the target object and the background. Additionally, because the model relies on intrinsic data structure, it can be difficult to align perfectly with human-defined boundaries if the ground truth annotations themselves are noisy or inconsistent.
Conclusion
$S^3$-Net demonstrates that high-quality medical image segmentation is possible without the burden of manual labeling. By combining multi-scale attention with a training strategy focused on transformation consistency, the model captures the complex geometry of medical images more effectively than previous unsupervised approaches. Future research will explore extending this framework to 3D volumetric data and incorporating more sophisticated anatomical priors to improve performance in low-contrast imaging environments.
Summary updated