Multiphase Level-Set Loss for Semi-Supervised and Unsupervised Segmentation with Deep Learning

Boah Kim, Jong Chul Ye · DOI

Abstract

Recent state-of-the-art image segmentation algorithms are mostly based on deep neural networks, thanks to their high performance and fast computation time. However, these methods are usually trained in a supervised manner, which requires large number of high quality ground-truth segmentation masks. On the other hand, classical image segmentation approaches such as level-set methods are formulated in a self-supervised manner by minimizing energy functions such as Mumford-Shah functional, so they are still useful to help generation of segmentation masks without labels. Unfortunately, these algorithms are usually computationally expensive and often have limitation in semantic segmentation. In this paper, we propose a novel loss function based on Mumford-Shah functional that can be used in deep-learning based image segmentation without or with small labeled data. This loss function is based on the observation that the softmax layer of deep neural networks has striking similarity to the characteristic function in the Mumford-Shah functional. We show that the new loss function enables semi-supervised and unsupervised segmentation. In addition, our loss function can be also used as a regularized function to enhance supervised semantic segmentation algorithms. Experimental results on multiple datasets demonstrate the effectiveness of the proposed method.

Introduction

Deep learning has revolutionized image segmentation, yet its reliance on massive, high-quality "ground-truth" masks remains a significant bottleneck, particularly in specialized fields like medical imaging. Conversely, classical variational methods, such as the Mumford-Shah functional, operate without labels by minimizing energy functions based on pixel similarities. While these methods are robust in unsupervised settings, they are computationally intensive and lack the semantic awareness of modern neural networks. This work unifies these paradigms by introducing a Mumford-Shah loss functional for Convolutional Neural Networks (CNNs).

Methodology: Bridging Variational Calculus and Deep Learning

The core innovation is the $L_{MScnn}$ loss function, which leverages a critical observation: the output of a CNN’s softmax layer—assigning class probabilities per pixel—functions as a differentiable approximation of the region characteristic functions used in classical level-set methods.

Comparison between classical level-set methods and the proposed neural network approach using Mumford-Shah functional.

By substituting the characteristic function with the softmax output, the traditionally non-differentiable Mumford-Shah functional becomes differentiable, allowing for direct optimization via backpropagation. This framework supports three training modes:

  1. Unsupervised: Training solely on raw images using the Mumford-Shah loss.
  2. Semi-supervised: Combining a small labeled set (Cross-Entropy loss) with a larger unlabeled set (Mumford-Shah loss).
  3. Regularization: Enhancing fully supervised training by enforcing boundary adherence.

For medical imaging, the authors further integrated a bias field estimation ($b(r)$) to handle intensity inhomogeneities common in MRI and CT scans.

Experimental Results

The method was evaluated on diverse benchmarks, including PASCAL VOC 2012 (natural images), LiTS 2017 (liver tumors), and BRATS 2015 (brain tumors).

Semi-Supervised and Unsupervised Performance

On PASCAL VOC, the proposed method significantly outperformed supervised baselines when labels were scarce. For instance, using only 1/8th of the labeled data, the Mumford-Shah loss effectively extracted structural information from the unlabeled images to refine segmentation boundaries.

Qualitative comparison on PASCAL VOC 2012. The proposed method shows better boundary adherence and consistency across different ratios of labeled data compared to the AdvSemi baseline.

In medical tasks, the semi-supervised approach improved Dice scores by 10% to 20% in low-label scenarios. For purely unsupervised boundary detection on the BSDS500 dataset, the method surpassed classical level-set techniques by 7% in region covering metrics.

Computational Efficiency

A major advantage over classical methods is speed. By "learning" the optimization logic during training, the CNN-based approach performs inference nearly instantaneously—roughly 15x to 45x faster than classical iterative methods or CRFs, averaging 0.014 seconds per image.

Conclusion

This research demonstrates that classical variational principles can be effectively integrated into deep learning architectures. By treating the softmax layer as a mathematical bridge, the proposed Mumford-Shah loss enables high-quality segmentation with minimal supervision. While the current model assumes piecewise constant regions—which may struggle with highly textured backgrounds—it provides a robust foundation for future work incorporating more complex texture or higher-order image statistics.

Summary updated

BibTeX
@article{kim2020multiphase,
  author = {Boah Kim and Jong Chul Ye},
  title = {{Multiphase Level-Set Loss for Semi-Supervised and Unsupervised Segmentation with Deep Learning}},
  journal = {IEEE Trans. Image Process.},
  year = {2020},
  url = {https://openreview.net/forum?id=Wv0-NJ775y},
}
Figure