Abstract
Object segmentation plays an important role in the modern medical image analysis, which benefits clinical study, disease diagnosis, and surgery planning. Given the various modalities of medical images, the automated or semi-automated segmentation approaches have been used to identify and parse organs, bones, tumors, and other regions-of-interest (ROI). However, these contemporary segmentation approaches tend to fail to predict the boundary areas of ROI, because of the fuzzy appearance contrast caused during the imaging procedure. To further improve the segmentation quality of boundary areas, we propose a boundary enhancement loss to enforce additional constraints on optimizing machine learning models. The proposed loss function is light-weighted and easy to implement without any pre- or post-processing. Our experimental results validate that our loss function are better than, or at least comparable to, other state-of-the-art loss functions in terms of segmentation accuracy.
Introduction
In medical imaging, such as CT or MRI scans, identifying the precise borders of an organ or tumor is notoriously difficult. Unlike high-resolution natural photographs, medical images often suffer from "fuzzy" boundaries caused by patient respiration, heartbeat, or scanner limitations. While modern deep learning models like U-Nets are effective at identifying the general mass of an object, they often struggle with these blurry edges. Standard loss functions, such as Cross-Entropy or Dice loss, treat every pixel with equal importance, often resulting in accurate overall shapes but imprecise, soft boundaries that are unsuitable for critical tasks like surgery planning or radiation therapy.
To address this, researchers from NVIDIA have introduced a "Boundary Enhancement (BE) Loss" function designed to sharpen these edges. By using a classic Laplacian filter to penalize errors specifically at the borders, this lightweight, plug-and-play loss function achieves state-of-the-art accuracy without complex pre- or post-processing.
Methods
The core of the proposed approach is the Boundary Enhancement (BE) Loss, which forces the neural network to pay extra attention to the second-order derivatives of the image—where the "rate of change" is highest at the edges.
Key technical components include:
- The Laplacian Filter: The researchers utilize a 3D Laplacian filter ($\mathcal{L}$), a classic computer vision tool that generates strong responses at boundaries and zero response in uniform regions.
- Loss Calculation: The BE loss calculates the difference between the Laplacian of the model's prediction and the Laplacian of the ground truth label. Minimizing this difference forces the model to align its predicted edges with the actual boundaries.
- Implementation: The loss is implemented as a series of non-trainable 3x3x3 convolutional layers, adding negligible computational overhead during training.
- Hybrid Objective: Because a Laplacian filter cannot distinguish between the "inside" and "outside" of an object, it is combined with the standard Soft Dice Loss. The final objective function is a weighted sum: $Loss = \lambda_1 \cdot Dice + \lambda_2 \cdot BE$.
Datasets
The method was evaluated using two tasks from the Medical Segmentation Decathlon (MSD) challenge to prove versatility across imaging modalities and target types:
- Task 01 (Brain Tumor MRI): Segmenting non-structural, irregular masses in multi-channel MRI volumes (388 training, 96 validation).
- Task 09 (Spleen CT): Segmenting a structural organ in CT volumes (32 training, 9 validation).
Key Results
The proposed BE loss was compared against several established baselines, including standard U-Net, SegResNet, and specialized losses like Focal Loss and Kervadec’s Boundary Loss.
- Spleen (Task 09): The proposed method achieved a Dice score of 0.96, outperforming all other baselines.
- Brain Tumor (Task 01): The method achieved a Dice score of 0.85, matching the performance of the previous state-of-the-art Boundary Loss but with a significantly simpler implementation.
- Qualitative Improvement: Visual analysis confirms that the BE loss produces contours that follow the ground truth more closely than previous regularization methods. Additionally, the $l_2$-norm used in the BE loss effectively suppresses false positives and "remote outliers" far from the actual boundary regions.
Conclusion
The Boundary Enhancement Loss provides a simple, "plug-and-play" solution for improving edge precision in 3D medical segmentation. While future work may explore hyperparameter sensitivity (currently fixed at $\lambda_1=1, \lambda_2=1000$) and performance on extreme class imbalances, the current results demonstrate that this lightweight addition can provide a significant boost in boundary accuracy for clinical applications.
Summary updated