[Paper Review] A Novel Focal Tversky loss function with improved Attention U-Net for lesion segmentation
This paper proposes a novel focal Tversky loss function that improves precision and recall balance in medical image segmentation of small lesions, combined with an improved attention U-Net using a multi-scale image pyramid. The method achieves a 25.7% relative improvement in Dice score on the BUS 2017 dataset and a 3.6% improvement on ISIC 2018, outperforming standard U-Net with Dice loss and demonstrating stable, balanced performance on highly imbalanced data.
We propose a generalized focal loss function based on the Tversky index to address the issue of data imbalance in medical image segmentation. Compared to the commonly used Dice loss, our loss function achieves a better trade off between precision and recall when training on small structures such as lesions. To evaluate our loss function, we improve the attention U-Net model by incorporating an image pyramid to preserve contextual features. We experiment on the BUS 2017 dataset and ISIC 2018 dataset where lesions occupy 4.84% and 21.4% of the images area and improve segmentation accuracy when compared to the standard U-Net by 25.7% and 3.6%, respectively.
Motivation & Objective
- To address class imbalance in medical image segmentation, particularly for small lesions that occupy a tiny fraction of the image area.
- To improve the trade-off between precision and recall in semantic segmentation of small pathological regions.
- To enhance feature representation for small lesions by incorporating a multi-scale image pyramid into the attention U-Net architecture.
- To develop a loss function that better focuses training on hard examples (misclassified small lesions) while suppressing easy negative examples.
- To achieve more stable and balanced segmentation performance with lower variance in precision and recall across highly imbalanced datasets.
Proposed method
- Proposes a focal Tversky loss (FTL) by exponentiating the inverse of the Tversky index with a hyperparameter γ to down-weight easy examples and focus on hard, misclassified pixels.
- Modulates the Tversky index with class-specific weights α and β, where α > β to prioritize reducing false negatives and improving recall for small lesions.
- Introduces a multi-scale image pyramid input at each encoder layer to preserve contextual features and prevent loss of small lesion details during downsampling.
- Enhances the attention U-Net with skip connections and attention gates that dynamically highlight salient lesion regions and suppress background noise.
- Uses a hybrid training strategy where the final layer is supervised with the Tversky loss even when the model is near convergence, preventing over-suppression of error signals.
- Employs stochastic gradient descent with learning rate decay and grid search for hyperparameter tuning (α, β, γ) on BUS 2017 and ISIC 2018 datasets.
Experimental results
Research questions
- RQ1Can a modified focal loss based on the Tversky index improve the balance between precision and recall in small lesion segmentation?
- RQ2How does incorporating a multi-scale image pyramid affect feature representation and segmentation accuracy for small lesions in highly imbalanced datasets?
- RQ3Does combining the focal Tversky loss with an attention U-Net architecture lead to more stable and accurate segmentation than standard U-Net with Dice loss?
- RQ4What is the impact of loss function design on convergence behavior and performance stability when training on datasets with large intra-class variation and small lesion sizes?
- RQ5Can the proposed method achieve consistent performance gains across datasets with varying lesion size distributions and image complexity?
Key findings
- The proposed focal Tversky loss with α=0.7, β=0.3, and γ=4/3 significantly improves the precision-recall balance compared to standard Dice and Tversky losses.
- On the BUS 2017 dataset, the improved attention U-Net with focal Tversky loss achieves a Dice score of 0.804, representing a 25.7% relative improvement over the baseline U-Net with Dice loss.
- On the ISIC 2018 dataset, the method improves the Dice score by 3.6% compared to the baseline U-Net, with a low standard deviation of 0.7%, indicating stable performance.
- The multi-scale image pyramid improves feature representation, especially for small lesions, reducing information loss during downsampling and boosting segmentation accuracy.
- The ablation study confirms that combining the focal Tversky loss with the improved attention U-Net yields the highest Dice score and most balanced precision-recall scores across both datasets.
- The model maintains high recall (0.926) on ISIC 2018 while avoiding excessive precision drop by using Tversky loss supervision on the final layer to sustain error signal propagation near convergence.
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.