Exploring Smoothness and Class-Separation for Semi-supervised Medical Image Segmentation

Yicheng Wu, Zhonghua Wu, Qianyi Wu, Zongyuan Ge, Jianfei Cai

Introduction

Deep learning has significantly advanced medical image segmentation, yet its reliance on large-scale, densely annotated datasets remains a bottleneck. In clinical settings, expert labels are expensive and time-consuming to acquire. Furthermore, medical images often present "blurred targets"—regions with low contrast and fuzzy boundaries where even experts may disagree.

Semi-supervised learning (SSL) aims to mitigate these issues by leveraging unlabeled data. Most SSL frameworks rely on two core assumptions: smoothness (small input changes should not alter the output) and low entropy (the model should produce confident predictions). However, when labeled data is scarce, the feature representations of different classes often overlap, leading to poor decision boundaries. This paper introduces SS-Net, a framework designed to "disconnect" these class manifolds by enforcing pixel-level smoothness and inter-class separation.

Methodology

SS-Net introduces two primary constraints to the training pipeline to improve robustness and feature clarity.

1. Pixel-level Smoothness via Adversarial Perturbations

Traditional consistency training often uses random noise or simple geometric transformations. SS-Net instead utilizes Virtual Adversarial Training (VAT). This method calculates a specific "adversarial noise" vector—the minimal change to input pixels that would most significantly confuse the model. By training the model to remain consistent despite this "worst-case" noise, SS-Net develops a more robust definition of smoothness.

An essential refinement in SS-Net is the choice of distance metric. While standard VAT uses KL-Divergence, the authors discovered that Dice Loss is a more effective metric for generating adversarial perturbations in segmentation tasks, as it aligns more closely with the final evaluation criteria.

2. Inter-class Separation via Prototypes

To prevent the model from confusing classes in blurred regions, SS-Net enforces separation within the latent feature space. The model identifies "high-quality" features from labeled data to serve as prototypes—representative centers for each anatomical class.

The training process incorporates a Cross-class Separation loss ($L_{cs}$) based on cosine similarity. This loss pulls features of the same class toward their respective prototypes while pushing features of different classes apart. This regularization ensures that the internal representations of each class are compact and distinct, preventing the "inter-connected" manifolds that plague standard SSL methods.

Experimental Results

Datasets and Setup

The model was evaluated on two public benchmarks:

  • LA Dataset (Left Atrium): 100 gadolinium-enhanced MRI scans.
  • ACDC Dataset (Automated Cardiac Diagnosis Challenge): 100 MRI scans featuring three-class cardiac segmentation.

The authors specifically tested the model in "low-label" environments, utilizing only 5% and 10% of the available annotations.

Performance Metrics

SS-Net achieved new state-of-the-art (SOTA) results across both datasets, demonstrating particular stability when labels are extremely scarce:

  • LA Dataset (5% labels): SS-Net reached an 86.33% Dice score, outperforming the previous best method, MC-Net (83.59%).
  • ACDC Dataset (5% labels): The performance gap was more pronounced. SS-Net achieved 65.82% Dice, whereas the popular UA-MT method (46.04%) actually performed worse than a basic supervised baseline (47.83%).

Qualitatively, SS-Net demonstrates a superior ability to capture thin, branch-like structures and maintain clean boundaries in low-contrast areas where other models often produce fragmented "blobs" or false positives.

Discussion and Future Work

The success of SS-Net highlights two key insights: first, that adversarial perturbations provide a more effective consistency signal than random noise; and second, that regularizing the internal feature space is as important as regularizing the final output. The discovery that Dice Loss outperforms KL-Divergence for VAT suggests that perturbation strategies should be specifically tailored to the task's primary metric.

Currently, the magnitude of adversarial perturbations and the number of prototypes are fixed hyperparameters. Future research will explore adaptive mechanisms to allow the model to automatically tune these parameters based on the complexity of the input image, potentially further increasing the model's flexibility across diverse medical imaging modalities.

Summary updated

Abstract

Semi-supervised segmentation remains challenging in medical imaging since the amount of annotated medical data is often scarce and there are many blurred pixels near the adhesive edges or in the low-contrast regions. To address the issues, we advocate to firstly constrain the consistency of pixels with and without strong perturbations to apply a sufficient smoothness constraint and further encourage the class-level separation to exploit the low-entropy regularization for the model training. Particularly, in this paper, we propose the SS-Net for semi-supervised medical image segmentation tasks, via exploring the pixel-level Smoothness and inter-class Separation at the same time. The pixel-level smoothness forces the model to generate invariant results under adversarial perturbations. Meanwhile, the inter-class separation encourages individual class features should approach their corresponding high-quality prototypes, in order to make each class distribution compact and separate different classes. We evaluated our SS-Net against five recent methods on the public LA and ACDC datasets. Extensive experimental results under two semi-supervised settings demonstrate the superiority of our proposed SS-Net model, achieving new state-of-the-art (SOTA) performance on both datasets. The code is available at https://github.com/ycwu1997/SS-Net .
BibTeX
@inproceedings{wu2022exploring,
  author = {Yicheng Wu and Zhonghua Wu and Qianyi Wu and Zongyuan Ge and Jianfei Cai},
  title = {{Exploring Smoothness and Class-Separation for Semi-supervised Medical Image Segmentation}},
  booktitle = {International Conference on Medical Image Computing and Computer-Assisted Intervention},
  year = {2022},
  url = {https://openreview.net/forum?id=MwBdrsMn35},
}
Figure