Beyond pixel-wise supervision for segmentation: A few global shape descriptors might be surprisingly good!

Hoel Kervadec, Houda Bahig, Laurent Létourneau-Guillon, Jose Dolz, Ismail Ben Ayed

Abstract

Standard losses for training deep segmentation networks could be seen as individual classifications of pixels, instead of supervising the global shape of the predicted segmentations. While effective, they require exact knowledge of the label of each pixel in an image. This study investigates how effective global geometric shape descriptors could be, when used on their own as segmentation losses for training deep networks. Not only interesting theoretically, there exist deeper motivations to posing segmentation problems as a reconstruction of shape descriptors: First, annotations to obtain approximations of low-order shape moments could be much less cumbersome than their full-mask counterparts, and anatomical priors could be readily encoded into invariant shape descriptions, which might alleviate the annotation burden. Also, some shape descriptors could be readily used to “encode” biomarkers, leading to better interpretability. Finally, and most importantly, we hypothesize that, given a task, certain shape descriptions might be invariant across image acquisition protocols/modalities and subject populations, which might open interesting research avenues for generalization in medical image segmentation. We introduce and formulate a few shape descriptors in the context of deep segmentation, and evaluate their potential as stand-alone losses on two different, challenging tasks. Inspired by recent works in constrained optimization for deep networks, we propose a way to use those descriptors to supervise segmentation, without any pixel-level label. Very surprisingly, as little as 4 descriptors values per class can approach the performance of a segmentation mask with 65k individual discrete labels. We also found that shape descriptors can be a valid way to encode anatomical priors about the task, enabling to leverage expert knowledge without requiring additional annotations. Our implementation is publicly available and can be easily extended.

Introduction

In medical image analysis, segmentation is traditionally framed as a pixel-wise classification problem. To train models, practitioners typically provide ground-truth masks where every pixel is meticulously labeled. This "micro-management" approach imposes a significant annotation burden on clinical experts, ignores global geometric context, and often results in models that are brittle across different imaging protocols. This study explores an alternative: supervising the shape of the predicted segmentations using global geometric descriptors rather than individual pixel labels.

Methods: Global Geometric Constraints

The proposed method shifts from local supervision to global geometric constraints. Instead of pixel-level labels, the network is guided by a handful of differentiable shape descriptors based on mathematical moments.

Shape Descriptors

Four primary descriptors are utilized to define the geometry of the target structures:

  • Volume ($\mathcal{V}$): The total sum of predicted probabilities.
  • Centroid ($\mathcal{C}$): The "center of mass" of the segmented object.
  • Average Distance to Centroid ($\mathcal{D}$): A measure of the object's spatial dispersion or spread.
  • Length ($\mathcal{L}$): The perimeter of the boundary, computed via an Image Laplacian (a graph-based representation of pixel connectivity).
Table 1: Example values for shape descriptors across different cardiac structures.

Optimization via Log-Barrier

To incorporate these descriptors into training, the authors employ a log-barrier-extension penalty. This technique transforms hard geometric requirements into a "soft" loss function, penalizing the network when predictions deviate from the expected geometric properties. Notably, in these experiments, the standard pixel-wise loss is set to zero, forcing the network to rely solely on global descriptors for its learning signal.

Experimental Results

The approach was evaluated on two challenging benchmarks: the ACDC 2017 cardiac challenge (segmenting the right ventricle, myocardium, and left ventricle) and the PROMISE12 prostate segmentation dataset.

Performance and Information Compression

The results demonstrate a remarkable degree of information compression. In the ACDC dataset, where a standard mask contains over 65,000 discrete labels, the network achieved successful segmentation using only 16 continuous values (4 descriptors across 4 classes).

Figure 1: Qualitative comparison of segmentation results across different supervision levels for cardiac and prostate imaging.
  • ACDC: The model achieved a Dice Similarity Coefficient (DSC) of 0.768. While lower than full supervision (0.876), it represents a significant achievement given the total absence of pixel-level labels during training.
  • PROMISE12: On this notoriously difficult, low-contrast dataset, the model reached a DSC of 0.651 (vs. 0.871 for full supervision), successfully capturing the prostate's morphology using only global statistics.

Discussion and Conclusion

The study highlights that shape descriptors can effectively encode anatomical priors—such as the myocardium surrounding the left ventricle—without requiring additional manual annotations. While the method shows sensitivity to weight initialization and challenges with patch-based processing (which lacks a global view), it suggests that medical AI can be trained by focusing on the "big picture" of anatomy. By leveraging global descriptors, we can potentially reduce annotation costs and improve model interpretability and generalization across different clinical sites.

Summary updated

BibTeX
@inproceedings{kervadec2021beyond,
  author = {Hoel Kervadec and Houda Bahig and Laurent Létourneau-Guillon and Jose Dolz and Ismail Ben Ayed},
  title = {{Beyond pixel-wise supervision for segmentation: A few global shape descriptors might be surprisingly good!}},
  booktitle = {MIDL},
  year = {2021},
  url = {https://openreview.net/forum?id=ZeXKegY4Ww},
}
Figure