Adaptive Multi-Factor Component Tree Loss Function for Topology-Preserving Medical Image Segmentation
Abstract
In recent years, numerous medical image segmentation models have been proposed with notable improvements in performance. Several widely adopted approaches have consistently delivered robust results across diverse medical imaging modalities. Despite their strong performance on conventional evaluation metrics, such as the Dice similarity coefficient, these methods often fail to preserve topological structures accurately. For example, disconnections are a common issue in various segmentation tasks and are often accompanied by a large number of false positive connected components (FPCCs). Such anatomically inconsistent outputs produced by diagnostic support systems can undermine clinicians’ confidence and diminish the perceived reliability of these systems. In this study, a new component tree-based loss function is proposed to improve topological correctness by reconnecting the desired connected components and removing undesired connected components. This loss design ensures smooth loss transitions during optimization. In addition, adaptive parameter settings tailored to each image are introduced, thereby improving the differentiation of anatomically relevant structures. Experiments were conducted on several publicly available datasets in which segmentation networks are prone to topological errors, including DRIVE, LES-AV, and CREMI. The results demonstrate that the proposed method effectively reconnects true positive connected components and significantly reduces both the number and size of FPCCs, with the most statistically significant improvements and the fewest statistically significant degradations in both pixel-wise and topological metrics in the majority of experiments. Code is available at https://github.com/nguyenqanh/MultiCTree