Unified Focal loss: Generalising Dice and cross entropy-based losses to handle class imbalanced medical image segmentation
Not on the map. Why?
Abstract (arXiv)
Automatic segmentation methods are an important advancement in medical image analysis. Machine learning techniques, and deep neural networks in particular, are the state-of-the-art for most medical image segmentation tasks. Issues with class imbalance pose a significant challenge in medical datasets, with lesions often occupying a considerably smaller volume relative to the background. Loss functions used in the training of deep learning algorithms differ in their robustness to class imbalance, with direct consequences for model convergence. The most commonly used loss functions for segmentation are based on either the cross entropy loss, Dice loss or a combination of the two. We propose the Unified Focal loss, a new hierarchical framework that generalises Dice and cross entropy-based losses for handling class imbalance. We evaluate our proposed loss function on five publicly available, class imbalanced medical imaging datasets: CVC-ClinicDB, Digital Retinal Images for Vessel Extraction (DRIVE), Breast Ultrasound 2017 (BUS2017), Brain Tumour Segmentation 2020 (BraTS20) and Kidney Tumour Segmentation 2019 (KiTS19). We compare our loss function performance against six Dice or cross entropy-based loss functions, across 2D binary, 3D binary and 3D multiclass segmentation tasks, demonstrating that our proposed loss function is robust to class imbalance and consistently outperforms the other loss functions. Source code is available at: https://github.com/mlyg/unified-focal-loss
Key facts. Cited by 88 papers in the map (data through 7 Oct 2026). Builds on 33 of its 75 references that are in the map. First posted on arXiv 8 Feb 2021.
Builds on
33 of 75 references.
References · 33
- 2015U-Net: Convolutional Networks for Biomedical Image Segmentationcited by 19,604
- 2016V-Net: Fully Convolutional Neural Networks for Volumetric Medical Image Segmentationcited by 2,284
- 2015SegNet: A Deep Convolutional Encoder-Decoder Architecture for Image Segmentationcited by 1,483
- 20163D U-Net: Learning Dense Volumetric Segmentation from Sparse Annotationcited by 1,471
- 2017Generalised Dice overlap as a deep learning loss function for highly unbalanced segmentationscited by 614
- 2018Identifying the Best Machine Learning Algorithms for Brain Tumor Segmentation, Progression Assessment, and Overall Survival Prediction in the BRATS Challengecited by 508
- 2018nnU-Net: Self-adapting Framework for U-Net-Based Medical Image Segmentationcited by 291
- 2018Attention Gated Networks: Learning to Leverage Salient Regions in Medical Imagescited by 271
- 2016Efficient Multi-Scale 3D CNN with Fully Connected CRF for Accurate Brain Lesion Segmentationcited by 263
- 2017Tversky loss function for image segmentation using 3D fully convolutional deep networkscited by 228
- 2020A survey of loss functions for semantic segmentationcited by 216
- 2019The state of the art in kidney and kidney tumor segmentation in contrast-enhanced CT imaging: Results of the KiTS19 Challengecited by 188
21 more
- 2018Boundary loss for highly unbalanced segmentationcited by 187
- 2018A Novel Focal Tversky loss function with improved Attention U-Net for lesion segmentationcited by 171
- 2019The KiTS19 Challenge Data: 300 Kidney Tumor Cases with Clinical Context, CT Semantic Segmentations, and Surgical Outcomescited by 168
- 2015DeepOrgan: Multi-level Deep Convolutional Networks for Automated Pancreas Segmentationcited by 158
- 2018MedGAN: Medical Image Translation using GANscited by 152
- 2015Brain Tumor Segmentation with Deep Neural Networkscited by 137
- 2018Combo Loss: Handling Input and Output Imbalance in Multi-Organ Segmentationcited by 76
- 2020Robust Multimodal Brain Tumor Segmentation via Feature Disentanglement and Gated Fusioncited by 67
- 2018AnatomyNet: Deep Learning for Fast and Fully Automated Whole-volume Segmentation of Head and Neck Anatomycited by 54
- 20183D Segmentation with Exponential Logarithmic Loss for Highly Unbalanced Object Sizescited by 42
- 2019USE-Net: incorporating Squeeze-and-Excitation blocks into U-Net for prostate zonal segmentation of multi-institutional MRI datasetscited by 27
- 2019Overfitting of neural nets under class imbalance: Analysis and improvements for segmentationcited by 27
- 2019Combining Noise-to-Image and Image-to-Image GANs: Brain MR Image Augmentation for Tumor Detectioncited by 23
- 2018Asymmetric Loss Functions and Deep Densely Connected Networks for Highly Imbalanced Medical Image Segmentation: Application to Multiple Sclerosis Lesion Detectioncited by 22
- 2019Boundary-weighted Domain Adaptive Neural Network for Prostate MR Image Segmentationcited by 22
- 2017Generalised Wasserstein Dice Score for Imbalanced Multi-class Segmentation using Holistic Convolutional Networkscited by 21
- 2020Brain tumor segmentation with self-ensembled, deeply-supervised 3D U-net neural networks: a BraTS 2020 challenge solutioncited by 20
- 2019MIScnn: A Framework for Medical Image Segmentation with Convolutional Neural Networks and Deep Learningcited by 18
- 2019Model-Based and Data-Driven Strategies in Medical Image Computingcited by 16
- 2018Normalization in Training U-Net for 2D Biomedical Semantic Segmentationcited by 15
- 2019Optimization with soft Dice can lead to a volumetric biascited by 9
Built on by
Citing papers per year: 2021: 5; 2022: 14; 2023: 17; 2024: 14; 2025: 24; 2026: 14.
88 papers.
Sort:
By area:
- 2022Topologically faithful image segmentation via induced matching of persistence barcodescited by 48
- 2023CoNIC Challenge: Pushing the Frontiers of Nuclear Detection, Segmentation, Classification and Countingcited by 33
- 2023Loss Functions in the Era of Semantic Segmentation: A Survey and Outlookcited by 33
- 2024Centerline Boundary Dice Loss for Vascular Segmentationcited by 27
- 2023MicroSegNet: A Deep Learning Approach for Prostate Segmentation on Micro-Ultrasound Imagescited by 25
- 2021Focus U-Net: A novel dual attention-gated CNN for polyp segmentation during colonoscopycited by 20
- 2021Calibrating the Dice loss to handle neural network overconfidence for biomedical image segmentationcited by 17
- 2022On the Optimal Combination of Cross-Entropy and Soft Dice Losses for Lesion Segmentation with Out-of-Distribution Robustnesscited by 11
- 2023TransRadar: Adaptive-Directional Transformer for Real-Time Multi-View Radar Semantic Segmentationcited by 9
- 2024Ultrasound Nodule Segmentation Using Asymmetric Learning with Simple Clinical Annotationcited by 9
- 2023Joint Learning of Blind Super-Resolution and Crack Segmentation for Realistic Degraded Imagescited by 7
- 2023Comparative Analysis of Segment Anything Model and U-Net for Breast Tumor Detection in Ultrasound and Mammography Imagescited by 7
38 more
- 2022RetiFluidNet: A Self-Adaptive and Multi-Attention Deep Convolutional Network for Retinal OCT Fluid Segmentationcited by 6
- 2024PaveSAM Segment Anything for Pavement Distresscited by 6
- 2022The Dice loss in the context of missing or empty labels: Introducing Phi and εcited by 5
- 2022Understanding the Tricks of Deep Learning in Medical Image Segmentation: Challenges and Future Directionscited by 5
- 2021Incorporating Boundary Uncertainty into loss functions for biomedical image segmentationcited by 3
- 2022Adaptively Weighted Data Augmentation Consistency Regularization for Robust Optimization under Concept Shiftcited by 3
- 2022Mask Focal Loss: A unifying framework for dense crowd counting with canonical object detection networkscited by 3
- 2023General-Purpose Multimodal Transformer meets Remote Sensing Semantic Segmentationcited by 3
- 2023Deep-Learning Framework for Optimal Selection of Soil Sampling Sitescited by 3
- 2023An FPGA smart camera implementation of segmentation models for drone wildfire imagerycited by 3
- 2024Deep Multimodal Fusion of Data with Heterogeneous Dimensionality via Projective Networkscited by 3
- 2024Gradient-based Class Weighting for Unsupervised Domain Adaptation in Dense Prediction Visual Taskscited by 3
- 2025Multi-Scale Spectral Attention Module-based Hyperspectral Segmentation in Autonomous Driving Scenarioscited by 3
- 2022A Deep Learning Approach for Semantic Segmentation of Unbalanced Data in Electron Tomography of Catalytic Materialscited by 2
- 2022Segmentation and Risk Score Prediction of Head and Neck Cancers in PET/CT Volumes with 3D U-Net and Cox Proportional Hazard Neural Networkscited by 2
- 2022Multimodal SuperCon: Classifier for Drivers of Deforestation in Indonesiacited by 2
- 2025We Care Each Pixel: Calibrating on Medical Segmentation Modelcited by 2
- 2025Exact Reformulation and Optimization for Direct Metric Optimization in Binary Imbalanced Classificationcited by 2
- 2021Effect of the output activation function on the probabilities and errors in medical image segmentationcited by 1
- 2022Color Space-based HoVer-Net for Nuclei Instance Segmentation and Classificationcited by 1
- 2023A Deep Learning-Based Fully Automated Pipeline for Regurgitant Mitral Valve Anatomy Analysis From 3D Echocardiographycited by 1
- 2023Ranking Regularization for Critical Rare Classes: Minimizing False Positives at a High True Positive Ratecited by 1
- 2023ProsDectNet: Bridging the Gap in Prostate Cancer Detection via Transrectal B-mode Ultrasound Imagingcited by 1
- 2024Revisiting Generative Adversarial Networks for Binary Semantic Segmentation on Imbalanced Datasetscited by 1
- 2024Improving Uncertainty-Error Correspondence in Deep Bayesian Medical Image Segmentationcited by 1
- 2025Layer Separation: Adjustable Joint Space Width Images Synthesis in Conventional Radiographycited by 1
- 2025Adaptive Voxel-Weighted Loss Using L1 Norms in Deep Neural Networks for Detection and Segmentation of Prostate Cancer Lesions in PET/CT Imagescited by 1
- 2025Performance Analysis of Deep Learning Models for Femur Segmentation in MRI Scancited by 1
- 2025MSA-UNet3+: Multi-Scale Attention UNet3+ with New Supervised Prototypical Contrastive Loss for Coronary DSA Image Segmentationcited by 1
- 2025GazeLT: Visual attention-guided long-tailed disease classification in chest radiographscited by 1
- 2026SEMIR: Semantic Minor-Induced Representation Learning on Graphs for Visual Segmentationcited by 1
- 2021Focal Attention Networks: optimising attention for biomedical image segmentationcited by 0
- 2022Comparison of automatic prostate zones segmentation models in MRI images using U-net-like architecturescited by 0
- 2022Harmonizing output imbalance for defect segmentation on extremely-imbalanced photovoltaic module cells imagescited by 0
- 2022Kidney and Kidney Tumour Segmentation in CT Imagescited by 0
- 2023Optimized Hybrid Focal Margin Loss for Crack Segmentationcited by 0
- 2023Decomposing and Coupling Saliency Map for Lesion Segmentation in Ultrasound Imagescited by 0
- 2023Microscale 3-D Capacitance Tomography with a CMOS Sensor Arraycited by 0
50 most cited of 88 All 88 (JSON)
- 2026Integrating Local Detail and Global Context: A Dual-Input Multi-Task Learning Framework for Bone Tumor Diagnosis23 Sep 2026
- 2026Towards Investigating Residual Hearing Loss: Quantification of Fibrosis in a Novel Cochlear OCT Dataset21 Aug 2026
- 2026Post-Operative Glioma Segmentation via Loss Stabilization, Normalization and Subspace Attention23 Jul 2026
- 2026Multi-Modal Semantic Segmentation of Electrolyzer Components for Sustainable Hydrogen Technologies: A Dual-Branch Deep Learning Approach17 Jul 2026
- 2026Beyond scalar losses: calibrating segmentation models via gradient vector field surgery15 Jul 2026
- 2026Slide-Level Active Learning Reduces Annotation Burden in H&E images10 Jul 2026
- 2026MalariAI: A Label-Resilient Decoupled Framework for Annotation-Agnostic Cell Segmentation and Explainable Stage Classification in Dense Malaria Blood Smears1 Jul 2026
- 2026Not All NVFP4 QAT Recipes Are Equal: How Architecture and Scale Shape Model Quality for Anomaly Segmentation26 May 2026
- 2026Novel Dynamic Batch-Sensitive Adam Optimiser for Vehicular Accident Injury Severity Prediction14 May 2026
- 2026SEMIR: Semantic Minor-Induced Representation Learning on Graphs for Visual Segmentation12 May 2026
- 2026Learning Class Difficulty via Dynamic Focal Attention for Histopathology Segmentation15 Apr 2026
- 2026An Explainable AI-Driven Framework for Automated Brain Tumor Segmentation Using an Attention-Enhanced U-Net24 Mar 2026
38 more
- 2026Multi-View Consistent Wound Segmentation With Neural Fields23 Jan 2026
- 2026IMSAHLO: Integrating Multi-Scale Attention and Hybrid Loss Optimization Framework for Robust Neuronal Brain Cell Segmentation14 Jan 2026
- 2025Bridging spatial awareness and global context in medical image segmentation6 Dec 2025
- 2025Improving Diagnostic Performance on Small and Imbalanced Datasets Using Class-Based Input Image Composition5 Nov 2025
- 2025PF-DAformer: Proximal Femur Segmentation via Domain Adaptive Transformer for Dual-Center QCT30 Oct 2025
- 2025MS-YOLO: Infrared Object Detection for Edge Deployment via MobileNetV4 and SlideLoss25 Sep 2025
- 2025An Uncertainty-Weighted Decision Transformer for Navigation in Dense, Complex Driving Scenarios16 Sep 2025
- 2025OASIS: A Deep Learning Framework for Universal Spectroscopic Analysis Driven by Novel Loss Functions15 Sep 2025
- 2025HyTver: A Novel Loss Function for Longitudinal Multiple Sclerosis Lesion Segmentation25 Aug 2025
- 2025GazeLT: Visual attention-guided long-tailed disease classification in chest radiographs13 Aug 2025
- 2025T-MPEDNet: Unveiling the Synergy of Transformer-aware Multiscale Progressive Encoder-Decoder Network with Feature Recalibration for Tumor and Liver Segmentation25 Jul 2025
- 2025Exact Reformulation and Optimization for Direct Metric Optimization in Binary Imbalanced Classification21 Jul 2025
- 2025Semi-supervised learning and integration of multi-sequence MR-images for carotid vessel wall and plaque segmentation10 Jul 2025
- 2025FedRef: Bayesian Fine-Tuning using a Reference Model to Mitigate Catastrophic Forgetting for Heterogeneous Federated Learning29 Jun 2025
- 2025Multi-Scale Spectral Attention Module-based Hyperspectral Segmentation in Autonomous Driving Scenarios23 Jun 2025
- 2025A Deep Convolutional Neural Network-Based Novel Class Balancing for Imbalance Data Segmentation23 Jun 2025
- 2025Magnifier: A Multi-grained Neural Network-based Architecture for Burned Area Delineation28 Apr 2025
- 2025Comprehensive Evaluation of Quantitative Measurements from Automated Deep Segmentations of PSMA PET/CT Images22 Apr 2025
- 2025MSA-UNet3+: Multi-Scale Attention UNet3+ with New Supervised Prototypical Contrastive Loss for Coronary DSA Image Segmentation7 Apr 2025
- 2025CALF: A Conditionally Adaptive Loss Function to Mitigate Class-Imbalanced Segmentation6 Apr 2025
- 2025Performance Analysis of Deep Learning Models for Femur Segmentation in MRI Scan5 Apr 2025
- 2025Transport-Related Surface Detection with Machine Learning: Analyzing Temporal Trends in Madrid and Vienna19 Mar 2025
- 2025We Care Each Pixel: Calibrating on Medical Segmentation Model7 Mar 2025
- 2025Multimodal HIE Lesion Segmentation in Neonates: A Comparative Study of Loss Functions13 Feb 2025
- 2025Adaptive Voxel-Weighted Loss Using L1 Norms in Deep Neural Networks for Detection and Segmentation of Prostate Cancer Lesions in PET/CT Images4 Feb 2025
- 2025Layer Separation: Adjustable Joint Space Width Images Synthesis in Conventional Radiography4 Feb 2025
- 2024MicroCrackAttentionNeXt: Advancing Microcrack Detection in Wave Field Analysis Using Deep Neural Networks through Feature Visualization15 Nov 2024
- 2024WearableMil: An End-to-End Framework for Military Activity Recognition and Performance Monitoring7 Oct 2024
- 2024PaveSAM Segment Anything for Pavement Distress11 Sep 2024
- 2024Pioneering Precision in Lumbar Spine MRI Segmentation with Advanced Deep Learning and Data Enhancement9 Sep 2024
- 2024Improving Uncertainty-Error Correspondence in Deep Bayesian Medical Image Segmentation5 Sep 2024
- 2024Recognizing and Reconstructing a Multi-Unit Floor Plan2 Aug 2024
- 2024Centerline Boundary Dice Loss for Vascular Segmentation1 Jul 2024
- 2024Gradient-based Class Weighting for Unsupervised Domain Adaptation in Dense Prediction Visual Tasks1 Jul 2024
- 2024Multi-Aperture Fusion of Transformer-Convolutional Network (MFTC-Net) for 3D Medical Image Segmentation and Visualization24 Jun 2024
- 2024IgCONDA-PET: Weakly-Supervised PET Anomaly Detection using Implicitly-Guided Attention-Conditional Counterfactual Diffusion Modeling -- a Multi-Center, Multi-Cancer, and Multi-Tracer Study30 Apr 2024
- 2024Ultrasound Nodule Segmentation Using Asymmetric Learning with Simple Clinical Annotation23 Apr 2024
- 2024Adaptive Affinity-Based Generalization For MRI Imaging Segmentation Across Resource-Limited Settings3 Apr 2024
50 newest of 88 All 88 (JSON)
- 2022Topologically faithful image segmentation via induced matching of persistence barcodescited by 48
- 2023CoNIC Challenge: Pushing the Frontiers of Nuclear Detection, Segmentation, Classification and Countingcited by 33
- 2023Loss Functions in the Era of Semantic Segmentation: A Survey and Outlookcited by 33
- 2024Centerline Boundary Dice Loss for Vascular Segmentationcited by 27
- 2023MicroSegNet: A Deep Learning Approach for Prostate Segmentation on Micro-Ultrasound Imagescited by 25
- 2021Focus U-Net: A novel dual attention-gated CNN for polyp segmentation during colonoscopycited by 20
- 2021Calibrating the Dice loss to handle neural network overconfidence for biomedical image segmentationcited by 17
- 2022On the Optimal Combination of Cross-Entropy and Soft Dice Losses for Lesion Segmentation with Out-of-Distribution Robustnesscited by 11
- 2023TransRadar: Adaptive-Directional Transformer for Real-Time Multi-View Radar Semantic Segmentationcited by 9
- 2024Ultrasound Nodule Segmentation Using Asymmetric Learning with Simple Clinical Annotationcited by 9
- 2023Joint Learning of Blind Super-Resolution and Crack Segmentation for Realistic Degraded Imagescited by 7
- 2023Comparative Analysis of Segment Anything Model and U-Net for Breast Tumor Detection in Ultrasound and Mammography Imagescited by 7
12 most cited of 87 All 87 (JSON)
- 2026Integrating Local Detail and Global Context: A Dual-Input Multi-Task Learning Framework for Bone Tumor Diagnosis23 Sep 2026
- 2026Towards Investigating Residual Hearing Loss: Quantification of Fibrosis in a Novel Cochlear OCT Dataset21 Aug 2026
- 2026Post-Operative Glioma Segmentation via Loss Stabilization, Normalization and Subspace Attention23 Jul 2026
- 2026Multi-Modal Semantic Segmentation of Electrolyzer Components for Sustainable Hydrogen Technologies: A Dual-Branch Deep Learning Approach17 Jul 2026
- 2026Beyond scalar losses: calibrating segmentation models via gradient vector field surgery15 Jul 2026
- 2026Slide-Level Active Learning Reduces Annotation Burden in H&E images10 Jul 2026
- 2026MalariAI: A Label-Resilient Decoupled Framework for Annotation-Agnostic Cell Segmentation and Explainable Stage Classification in Dense Malaria Blood Smears1 Jul 2026
- 2026Not All NVFP4 QAT Recipes Are Equal: How Architecture and Scale Shape Model Quality for Anomaly Segmentation26 May 2026
- 2026Novel Dynamic Batch-Sensitive Adam Optimiser for Vehicular Accident Injury Severity Prediction14 May 2026
- 2026SEMIR: Semantic Minor-Induced Representation Learning on Graphs for Visual Segmentation12 May 2026
- 2026Learning Class Difficulty via Dynamic Focal Attention for Histopathology Segmentation15 Apr 2026
- 2026An Explainable AI-Driven Framework for Automated Brain Tumor Segmentation Using an Attention-Enhanced U-Net24 Mar 2026
12 newest of 87 All 87 (JSON)