A novel sub-differentiable hausdorff loss combined with BCE for MRI brain tumor segmentation using UNet variants
Open Access
- 22 December 2025
- journal article
- research article
- Published by Springer Nature in Scientific Reports
- Vol. 15 (1)
Abstract
Brain tumor segmentation is a crucial yet complex task in medical image analysis, playing a vital role in accurate diagnosis and treatment planning. However, it faces several inherent challenges: (1) class imbalance, where tumors occupy a minimal portion of MRI scans, leading models to favor healthy tissue; (2) low sensitivity to small or irregular tumors, resulting in high false negatives; and (3) limitations of standard loss functions, which often fail to properly emphasize tumor boundaries.TraditionalHausdorff Loss, despite its effectiveness in boundary alignment, suffers from non-differentiability and high sensitivity to outliers, leading to unstable optimization and poor boundary predictions. To address these challenges, we propose a novel Sub-Differentiable Hausdorff Loss (SDHL), which introduces a smooth, differentiable formulation enabling stable gradient-based learning and robust boundary alignment. Furthermore, to balance fine boundary precision with accurate tumor region segmentation, we introduce a novel SDHL combined with BCE loss. This combination leverages SDHL’s boundary sensitivity and BCE’s region accuracy, resulting in sharper tumor boundaries and more complete segmentation outcomes. This study presents a deep learning-based brain tumor segmentation pipeline utilizing various UNet-derived architectures including UNet, UNet+, VNet, UNet++, and Attention UNet, all trained using the proposed loss functions. The models evaluated using performance metrics such as Accuracy, Precision, Recall, Dice Score, and Intersection over Union (IoU). Among the tested configurations, Semantic segmentationmetricsofAttention UNet with SDHL + BCE outperformed all others, achieving 99.71% accuracy, 91.06% precision, 91.85% recall, 90.16% Dice score, and 80.78% IoU. The integration of the proposed loss functions significantly improves segmentation quality, addressing key challenges and offering a robust solution for brain tumor segmentation in medical imaging.Additionally, the Attention UNet model demonstrated strong consistency across evaluation metrics, achieving 97.92% accuracy, 98.76% precision, 98.05% recall, 98.57% F1-score, and a Matthews correlation coefficient of 93.41%, indicating robust and reliable performance.Keywords
This publication has 40 references indexed in Scilit:
- A Hybrid UNet and Vision Transformer Architecture with Multi-scale Fusion for Brain Tumor Segmentation2025
- The impact of backbone selection in YOLOv8 models on brain tumor localizationIran Journal of Computer Science, 2025
- MRCM‐UCTransNet: Automatic and Accurate 3D Tooth Segmentation Network From Cone‐Beam CT ImagesInternational Journal of Imaging Systems and Technology, 2024
- CI-UNet: melding convnext and cross-dimensional attention for robust medical image segmentationBiomedical Engineering Letters, 2024
- A deep model towards accurate boundary location and strong generalization for medical image segmentationBiomedical Signal Processing and Control, 2023
- Brain Tumor Segmentation Based on Zernike Moments, Enhanced Ant Lion Optimization, and Convolutional Neural Network in MRI Images2023
- Brain tumor segmentation of the FLAIR MRI images using novel ResUnetBiomedical Signal Processing and Control, 2023
- Effective Crowdsourcing in the EDT Project with Probabilistic Indexes2022
- UNet++: A Nested U-Net Architecture for Medical Image Segmentation2018
- U-Net: Convolutional Networks for Biomedical Image Segmentation2015