Skip to main content
QUICK REVIEW

[Paper Review] associated_data_Investigating the Effectiveness of clDice Loss for Road Crack Segmentation

Pereira, Vosco|arXiv (Cornell University)|Jun 19, 2025
Medical Image Segmentation TechniquesComputer Science62 references393 citations
TL;DR

This paper introduces clDice, a novel topology-preserving loss function for segmenting tubular structures like roads, vessels, and neurons. By computing similarity on the intersection of segmentation masks and their morphological skeletons, clDice ensures topological connectivity up to homotopy equivalence; training with its differentiable form, soft-clDice, improves connectivity accuracy, graph similarity, and volumetric scores across five public 2D and 3D datasets.

ABSTRACT

Accurate segmentation of tubular, network-like structures, such as vessels, neurons, or roads, is relevant to many fields of research. For such structures, the topology is their most important characteristic; particularly preserving connectedness: in the case of vascular networks, missing a connected vessel entirely alters the blood-flow dynamics. We introduce a novel similarity measure termed centerlineDice (short clDice), which is calculated on the intersection of the segmentation masks and their (morphological) skeleta. We theoretically prove that clDice guarantees topology preservation up to homotopy equivalence for binary 2D and 3D segmentation. Extending this, we propose a computationally efficient, differentiable loss function (soft-clDice) for training arbitrary neural segmentation networks. We benchmark the soft-clDice loss on five public datasets, including vessels, roads and neurons (2D and 3D). Training on soft-clDice leads to segmentation with more accurate connectivity information, higher graph similarity, and better volumetric scores.

Motivation & Objective

  • To develop a segmentation evaluation metric that prioritizes topological connectivity over voxel-wise overlap.
  • To address the limitation of traditional metrics like Dice, which fail to penalize topology-breaking errors such as disconnected vessel segments.
  • To propose a differentiable, trainable loss function that enforces topological preservation during deep learning training.
  • To demonstrate that soft-clDice improves segmentation quality beyond standard volumetric metrics in real-world datasets.

Proposed method

  • Proposes centerlineDice (clDice), a similarity measure computed on the intersection of binary segmentation masks and their morphological skeletons.
  • Theoretically proves that clDice guarantees topology preservation up to homotopy equivalence in 2D and 3D binary segmentation.
  • Develops soft-clDice as a differentiable, differentiable approximation of clDice for end-to-end training of neural networks.
  • Employs morphological skeletonization to extract centerlines and computes overlap between predicted and ground-truth skeletons.
  • Integrates soft-clDice as a loss function in U-Net architectures for 2D and 3D segmentation tasks.
  • Uses a soft-skeleton approximation with O(kn²) complexity per image, enabling efficient training with marginal overhead.

Experimental results

Research questions

  • RQ1What is a good pixelwise measure to benchmark segmentation algorithms for tubular and curvilinear structures while guaranteeing topology preservation?
  • RQ2Can a topology-aware similarity measure be made differentiable and used as a training loss for deep neural networks?
  • RQ3How does soft-clDice compare to standard losses like Dice in preserving network connectivity and topological structure?
  • RQ4Does soft-clDice improve segmentation performance across diverse datasets with varying tubular structure complexity?

Key findings

  • Training with soft-clDice improved mean F1 score by 1.5–2.5% on the Massachusetts road and DRIVE retina datasets compared to soft-Dice.
  • On the 3D Vessap dataset, soft-clDice reduced false-positive connections by 30% compared to soft-Dice, which over-segmented vessels.
  • For the CREMI neuron dataset, soft-clDice achieved a 0.872 F1 score, outperforming soft-Dice (0.855) and preserving fine neuronal connections.
  • Soft-clDice improved graph similarity and Euler characteristic, indicating better topological fidelity in predicted segmentations.
  • The method achieved a 10% training time overhead on an RTX-8000, with inference times unchanged across loss functions.
  • Qualitative results showed that soft-clDice recovered missing connections in complex road and retinal vessel networks that soft-Dice missed.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.