That Label's Got Style: Handling Label Style Bias for Uncertain Image Segmentation

Kilian Zepf, Eike Petersen, Jes Frellsen, Aasa Feragen

In medical imaging and biological research, "ground truth" is often a subjective consensus rather than an absolute fact. Different experts or software tools may produce varying outlines for the same anatomical structure or cell. While modern machine learning models aim to capture this "aleatoric uncertainty," they frequently fall victim to label style bias.

A recent study from the Technical University of Denmark, presented at ICLR 2023, investigates how systematic differences in annotation processes can compromise model reliability and proposes a simple yet effective architectural solution.

The Challenge: Label Style as a Confounder

When training models to predict segmentation uncertainty, the goal is to learn the inherent ambiguity of the data. However, real-world datasets are often heterogeneous. For instance, one hospital might use a precise semi-automated tool, while another relies on "fast and coarse" manual polygons.

The authors define these systematic differences as label style. If a model is trained on a mixture of these styles without distinction, it fails to recognize that the variation stems from the labeling process rather than the image features. This leads the model to learn a biased "average" distribution, typically resulting in systematic over-segmentation and poorly calibrated uncertainty estimates.

Variation in labeling styles for a single cell image, ranging from highly detailed to coarse polygonal approximations.

Proposed Method: Conditioning on Style

To address this, the researchers propose updating the modeling objective. Instead of learning the distribution of annotations $p(a|x)$ given an image $x$, they model $p(a|x, l)$, where $l$ is a discrete variable representing the label style.

They adapted two state-of-the-art architectures for this purpose:

  1. Conditioned Probabilistic U-net (c-prob. U-net): The "prior net," which predicts the distribution of plausible segmentations, is modified to accept a one-hot encoded style variable as an additional input.
  2. Conditioned Stochastic Segmentation Networks (c-SSN): Style information is injected into the logit distribution estimation layers.

By conditioning on style, the model can "explain away" the variance caused by the labeling process, allowing it to focus on the actual image features for its core predictions.

Experimental Results and Insights

The authors evaluated their approach on two curated datasets: ISIC19 (skin lesions) and PhC-U373 (cells), both containing multiple annotation styles.

Key findings include:

  • Bias Reduction: Conditioned models significantly reduced area bias. While standard models tended to over-estimate object sizes by averaging in coarse labels, the conditioned versions remained faithful to high-quality ground truth when prompted with the "fine-grained" style.
  • Performance Gains: The conditioned models outperformed baselines in Intersection over Union (IoU) and AUROC across nearly all styles.
  • Improved Uncertainty Calibration: A primary use for uncertainty is identifying potential errors. Conditioned models assigned higher entropy to pixels where they made mistakes (False Positives/Negatives) compared to standard models, making them more reliable for clinical or research workflows.
  • Leveraging Heterogeneous Data: This method demonstrates that "weak" or coarse labels do not need to be discarded. By identifying them as a specific style, the model can learn spatial features from them without allowing their imprecise boundaries to degrade high-precision predictions.

Conclusion

Label style bias is a significant hurdle for deploying uncertainty-aware segmentation models in the wild. By explicitly modeling labeling style as a discrete variable, researchers can mitigate systematic biases and improve both accuracy and calibration. Future work may explore unsupervised discovery of these styles, further increasing the applicability of this approach to legacy datasets where style metadata is missing.

Summary updated

Abstract

Segmentation uncertainty models predict a distribution over plausible segmentations for a given input, which they learn from the annotator variation in the training set. However, in practice these annotations can differ systematically in the way they are generated, for example through the use of different labeling tools. This results in datasets that contain both data variability and differing label styles. In this paper, we demonstrate that applying state-of-the-art segmentation uncertainty models on such datasets can lead to model bias caused by the different label styles. We present an updated modelling objective conditioning on labeling style for aleatoric uncertainty estimation, and modify two state-of-the-art-architectures for segmentation uncertainty accordingly. We show with extensive experiments that this method reduces label style bias, while improving segmentation performance, increasing the applicability of segmentation uncertainty models in the wild. We curate two datasets, with annotations in different label styles, which we will make publicly available along with our code upon publication.
BibTeX
@inproceedings{zepf2023that,
  author = {Kilian Zepf and Eike Petersen and Jes Frellsen and Aasa Feragen},
  title = {{That Label's Got Style: Handling Label Style Bias for Uncertain Image Segmentation}},
  booktitle = {International Conference on Learning Representations},
  year = {2023},
  url = {https://openreview.net/forum?id=wZ2SVhOTzBX},
}
Figure