Skip to main content
QUICK REVIEW

[Paper Review] Boundary loss for highly unbalanced segmentation

Hoel Kervadec, Jihene Bouchtiba|Espace ÉTS (ETS)|Dec 17, 2018
Advanced Neural Network ApplicationsComputer Science6 citations
TL;DR

This paper proposes a boundary loss for highly unbalanced medical image segmentation that operates on contour distances rather than regional pixel sums, improving training stability and performance. By expressing a non-symmetric L2 distance on contours as a regional integral using softmax outputs, the method enables easy integration with existing networks and achieves significant gains in Dice score and stability on unbalanced datasets like WMH and ISLES.

ABSTRACT

Widely used loss functions for CNN segmentation, e.g., Dice or cross-entropy, are based on integrals over the segmentation regions. Unfortunately, for highly unbalanced segmentations, such regional summations have values that differ by several orders of magnitude across classes, which affects training performance and stability. We propose a boundary loss, which takes the form of a distance metric on the space of contours, not regions. This can mitigate the difficulties of highly unbalanced problems because it uses integrals over the interface between regions instead of unbalanced integrals over the regions. Furthermore, a boundary loss complements regional information. Inspired by graph-based optimization techniques for computing active-contour flows, we express a non-symmetric $L_2$ distance on the space of contours as a regional integral, which avoids completely local differential computations involving contour points. This yields a boundary loss expressed with the regional softmax probability outputs of the network, which can be easily combined with standard regional losses and implemented with any existing deep network architecture for N-D segmentation. We report comprehensive evaluations and comparisons on different unbalanced problems, showing that our boundary loss can yield significant increases in performances while improving training stability. Our code is publicly available: https://github.com/LIVIAETS/surface-loss .

Motivation & Objective

  • Address the instability and poor performance of standard regional loss functions (e.g., cross-entropy, Dice) in highly unbalanced segmentation tasks, such as small lesion detection in medical imaging.
  • Overcome the issue of regional losses being dominated by large background regions due to class imbalance, which skews optimization toward majority classes.
  • Develop a loss function that focuses on boundary regions—where segmentation errors are most critical—by leveraging contour-level distance metrics.
  • Ensure compatibility with any existing deep learning architecture and N-dimensional segmentation tasks without requiring architectural modifications.
  • Improve both segmentation accuracy and training stability, particularly for small, rare structures like white matter hyperintensities.

Proposed method

  • Propose a boundary loss based on a non-symmetric L2 distance on the space of contours, avoiding direct computation on contour points.
  • Express this contour-based distance as a regional integral using the network’s softmax probability outputs, enabling differentiable training with standard backpropagation.
  • Formulate the boundary loss as a regional loss that depends only on the predicted and ground-truth probability maps, making it compatible with any existing CNN architecture.
  • Combine the boundary loss with standard regional losses (e.g., generalized Dice loss) via a weighted sum, with a learnable or scheduled hyperparameter α.
  • Use a re-balancing strategy for α during training to dynamically adjust the contribution of the boundary loss, improving generalization.
  • Implement the method efficiently using standard deep learning frameworks, with no need for specialized layer types or complex post-processing.

Experimental results

Research questions

  • RQ1Can a loss function based on contour geometry improve segmentation performance in highly unbalanced medical image datasets compared to standard regional losses?
  • RQ2How does a boundary loss based on distance-to-boundary information affect training stability and convergence in small-structure segmentation?
  • RQ3What is the optimal way to combine a boundary loss with a regional loss (e.g., generalized Dice) in terms of hyperparameter scheduling and weighting?
  • RQ4Does the boundary loss provide a spatial regularization effect that leads to smoother, more anatomically plausible segmentation boundaries?
  • RQ5Can the proposed boundary loss be effectively applied to multi-class or multi-structure segmentation problems beyond binary segmentation?

Key findings

  • On the WMH dataset, the boundary loss improved the DSC from 0.210 (GDL only) to 0.392 when combined with GDL using the rebalancing α strategy, demonstrating a substantial performance gain.
  • On the ISLES dataset, the boundary loss with rebalanced α achieved a DSC of 0.644 (±0.026), outperforming GDL alone (0.511) and all constant α settings.
  • The boundary loss significantly improved validation DSC even when training DSC was similar, indicating better generalization and reduced overfitting.
  • The training time for the boundary loss was comparable to standard losses, with an average batch time of 0.210 seconds, showing minimal computational overhead.
  • The boundary loss led to smoother, more accurate contours, especially for small structures, as visually confirmed in Figure 1, where missed lesions were recovered.
  • The re-balancing α scheduling strategy outperformed all constant α values, including α=1 and α=2, and provided consistent improvements without extensive hyperparameter tuning.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.