[Paper Review] A Mixed Focal Loss Function for Handling Class Imbalanced Medical Image Segmentation.
This paper proposes a Mixed Focal loss function, combining modified Focal and Focal Dice losses, to improve class-imbalanced medical image segmentation. It achieves superior recall-precision balance and robustness in both binary and multi-class segmentation on KiTS19 and BraTS20 datasets, outperforming standard and component loss functions.
Automatic segmentation methods are an important advancement in medical imaging analysis. Machine learning techniques, and deep neural networks in particular, are the state-of-the-art for most automated medical image segmentation tasks, ranging from the subcellular to the level of organ systems. Issues with class imbalance pose a significant challenge irrespective of scale, with organs, and especially with tumours, often occupying a considerably smaller volume relative to the background. Loss functions used in the training of segmentation algorithms differ in their robustness to class imbalance, with cross entropy-based losses being more affected than Dice-based losses. In this work, we first experiment with seven different Dice-based and cross entropy-based loss functions on the publicly available Kidney Tumour Segmentation 2019 (KiTS19) Computed Tomography dataset, and then further evaluate the top three performing loss functions on the Brain Tumour Segmentation 2020 (BraTS20) Magnetic Resonance Imaging dataset. Motivated by the results of our study, we propose a Mixed Focal loss function, a new compound loss function derived from modified variants of the Focal loss and Focal Dice loss functions. We demonstrate that our proposed loss function is associated with a better recall-precision balance, significantly outperforming the other loss functions in both binary and multi-class image segmentation. Importantly, the proposed Mixed Focal loss function is robust to significant class imbalance. Furthermore, we showed the benefit of using compound losses over their component losses, and the improvement provided by the focal variants over other variants.
Motivation & Objective
- To address the challenge of class imbalance in medical image segmentation, particularly for small tumours against large background regions.
- To evaluate the robustness and performance of various Dice-based and cross-entropy-based loss functions on real-world medical imaging datasets.
- To identify limitations in existing loss functions under significant class imbalance and motivate the development of a more effective compound loss.
- To propose a novel Mixed Focal loss function that combines the strengths of Focal and Focal Dice losses for improved segmentation performance.
Proposed method
- The authors first evaluate seven existing loss functions—comprising both cross-entropy and Dice-based variants—on the KiTS19 CT dataset to identify top-performing candidates.
- They then select the top three loss functions and further evaluate them on the BraTS20 MR imaging dataset to validate generalization across modalities.
- The proposed Mixed Focal loss is constructed by combining a modified Focal loss with a modified Focal Dice loss, designed to down-weight easy negatives and focus training on hard, misclassified examples.
- The compound loss function is optimized end-to-end during model training, with hyperparameters tuned to balance recall and precision in both binary and multi-class segmentation tasks.
- The method leverages focal modulation to reduce the influence of easy, background-dominated samples, thereby improving learning on rare, critical structures like tumours.
Experimental results
Research questions
- RQ1How do standard cross-entropy and Dice-based loss functions perform under severe class imbalance in medical image segmentation?
- RQ2Can a compound loss function combining Focal and Focal Dice losses achieve better recall-precision balance than individual components?
- RQ3Does the proposed Mixed Focal loss generalize across different imaging modalities, such as CT and MR?
- RQ4To what extent does the focal mechanism improve performance on small, rare structures like tumours compared to standard losses?
- RQ5Is the compound loss function more robust and effective than its constituent loss functions in imbalanced segmentation tasks?
Key findings
- The Mixed Focal loss function significantly outperforms all baseline loss functions in both binary and multi-class segmentation tasks on the KiTS19 and BraTS20 datasets.
- The proposed loss achieves a better balance between recall and precision, particularly improving detection of small, rare tumour regions that are often missed by standard losses.
- The compound loss function demonstrates robustness to significant class imbalance, maintaining high performance even when tumour regions occupy less than 1% of the total volume.
- The focal variants of the loss functions consistently outperform their non-focal counterparts, confirming the benefit of focusing on hard, misclassified samples.
- The study confirms that using compound losses leads to measurable performance gains over using individual component losses, validating the design of the Mixed Focal approach.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.