[Paper Review] Tversky loss function for image segmentation using 3D fully convolutional deep networks
This paper proposes a Tversky loss function for 3D fully convolutional networks to improve image segmentation in highly imbalanced medical data, such as multiple sclerosis lesion detection. By adjusting the Tversky index's hyperparameters to prioritize recall over precision, the method achieves significantly better F₂ score, Dice coefficient, and area under the precision-recall curve compared to standard Dice loss, with β=0.7 yielding optimal performance.
Fully convolutional deep neural networks carry out excellent potential for fast and accurate image segmentation. One of the main challenges in training these networks is data imbalance, which is particularly problematic in medical imaging applications such as lesion segmentation where the number of lesion voxels is often much lower than the number of non-lesion voxels. Training with unbalanced data can lead to predictions that are severely biased towards high precision but low recall (sensitivity), which is undesired especially in medical applications where false negatives are much less tolerable than false positives. Several methods have been proposed to deal with this problem including balanced sampling, two step training, sample re-weighting, and similarity loss functions. In this paper, we propose a generalized loss function based on the Tversky index to address the issue of data imbalance and achieve much better trade-off between precision and recall in training 3D fully convolutional deep neural networks. Experimental results in multiple sclerosis lesion segmentation on magnetic resonance images show improved F2 score, Dice coefficient, and the area under the precision-recall curve in test data. Based on these results we suggest Tversky loss function as a generalized framework to effectively train deep neural networks.
Motivation & Objective
- To address data imbalance in medical image segmentation, especially where lesion voxels are vastly outnumbered by non-lesion voxels.
- To improve the trade-off between precision and recall in deep learning-based segmentation, particularly favoring high recall to reduce false negatives.
- To develop a generalized loss function that outperforms standard Dice loss in highly imbalanced scenarios like multiple sclerosis lesion segmentation.
- To validate the effectiveness of the Tversky loss in a 3D fully convolutional U-net architecture on real MRI data.
Proposed method
- Proposes a Tversky loss function based on the Tversky index, a generalization of the Dice coefficient and Fβ score, to balance precision and recall.
- Integrates the Tversky loss layer into a 3D U-net architecture, enabling end-to-end training with class imbalance awareness.
- Uses hyperparameters α and β to control the penalty on false positives (FPs) and false negatives (FNs), with higher β increasing sensitivity to FN.
- Employs a 3D fully convolutional network with skip connections to combine high-resolution local features and low-resolution global features.
- Trains the network using the Tversky loss with varying α and β values to evaluate their impact on segmentation performance.
- Evaluates performance using standard metrics including Dice similarity coefficient (DSC), F₂ score, area under the precision-recall curve (APR), and sensitivity/specificity.
Experimental results
Research questions
- RQ1Can a Tversky loss function improve segmentation performance in highly imbalanced medical image data compared to standard Dice loss?
- RQ2How do the hyperparameters α and β in the Tversky index affect the precision-recall trade-off in lesion segmentation?
- RQ3Does using a Tversky loss with β=0.7 lead to better generalization and higher sensitivity in detecting small or sparse lesions?
- RQ4Is the Tversky loss more effective than Dice loss in improving the area under the precision-recall curve (APR) for imbalanced datasets?
- RQ5Can the Tversky loss be used as a generalized framework for training deep networks in medical image segmentation tasks with high class imbalance?
Key findings
- The Tversky loss function with β=0.7 achieved the highest F₂ score of 57.32, significantly outperforming the Dice loss (β=0.5) with an F₂ score of 51.77.
- The Tversky loss with β=0.7 yielded a Dice coefficient of 56.42, compared to 53.42 for the Dice loss, indicating improved overlap with ground truth.
- The area under the precision-recall curve (APR) reached 56.04 with β=0.7, the highest among all tested configurations, confirming superior performance on imbalanced data.
- At β=0.7, sensitivity (recall) reached 56.85%, a substantial improvement over the 49.85% achieved with the Dice loss, demonstrating better detection of lesions.
- The network trained with the Tversky loss at β=0.7 successfully detected lesions in low-density cases where the Dice loss model failed entirely.
- The results show that adjusting β allows fine-tuning the model to prioritize recall, which is critical in clinical applications where false negatives are more detrimental.
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.