Size and Smoothness Aware Adaptive Focal Loss for Small Tumor Segmentation
Md Rakibul Islam, Riad Hassan, Abdullah Nazib, Kien Nguyen, Clinton Fookes, Md Zahidul Islam
TL;DR
The paper addresses the challenge of segmenting small, irregular tumors in MRI by introducing Adaptive Focal Loss (A-FL), which dynamically modulates focusing strength and class balancing using tumor volume and boundary smoothness. The method integrates three adaptive factors—$\alpha_{va}$, $\gamma_{va}$, and $\gamma_{mSa}$—into the focal loss, yielding an adaptive modulating parameter $\gamma_{adaptive}$ and the loss $\text{A-FL}(P_t) = \alpha_{va} (1 - P_t)^{\gamma_{adaptive}} \log(P_t)$ with $\alpha_{va} = \dfrac{P_{bg}}{P_{fg} + P_{bg}}$, $\gamma_{va} = \dfrac{P_{fg}}{P_{fg} + P_{bg}}$, and $\gamma_{adaptive} = \gamma_{va} + \gamma_{mSa}$. evaluated on PICAI 2022 and BraTS 2018 using a ResNet50-based U-Net, A-FL consistently improves IoU and DSC over standard losses and other baselines, and shows pronounced gains for small and irregular tumors with better boundary delineation. While slightly more computationally expensive, the approach yields statistically robust improvements across multiple models and datasets, indicating strong potential for clinical 3D tumor segmentation tasks. The work also provides a detailed ablation and analysis of size- and boundary-related effects, supporting the practical value of adaptive loss tuning in medical image segmentation.
Abstract
Deep learning has achieved remarkable accuracy in medical image segmentation, particularly for larger structures with well-defined boundaries. However, its effectiveness can be challenged by factors such as irregular object shapes and edges, non-smooth surfaces, small target areas, etc. which complicate the ability of networks to grasp the intricate and diverse nature of anatomical regions. In response to these challenges, we propose an Adaptive Focal Loss (A-FL) that takes both object boundary smoothness and size into account, with the goal to improve segmentation performance in intricate anatomical regions. The proposed A-FL dynamically adjusts itself based on an object's surface smoothness, size, and the class balancing parameter based on the ratio of targeted area and background. We evaluated the performance of the A-FL on the PICAI 2022 and BraTS 2018 datasets. In the PICAI 2022 dataset, the A-FL achieved an Intersection over Union (IoU) score of 0.696 and a Dice Similarity Coefficient (DSC) of 0.769, outperforming the regular Focal Loss (FL) by 5.5% and 5.4% respectively. It also surpassed the best baseline by 2.0% and 1.2%. In the BraTS 2018 dataset, A-FL achieved an IoU score of 0.883 and a DSC score of 0.931. Our ablation experiments also show that the proposed A-FL surpasses conventional losses (this includes Dice Loss, Focal Loss, and their hybrid variants) by large margin in IoU, DSC, and other metrics. The code is available at https://github.com/rakibuliuict/AFL-CIBM.git.
