DTU-Net: Learning Topological Similarity for Curvilinear Structure Segmentation

Manxi Lin, Zahra Bashir, Martin Grønnebæk Tolsgaard, Anders Nymark Christensen, Aasa Feragen

TL;DR

DTU-Net introduces a two-stage, data-driven approach to segmenting thin, thread-like structures (curvilinear structures) in medical images. By using a dual-decoder architecture and a self-supervised triplet loss, it learns to preserve topological connectivity—avoiding "false splits" and "missed splits"—without the heavy computational cost of traditional mathematical topology methods.

What Problem Does This Paper Address?

Segmenting curvilinear structures—like blood vessels, neurons, or organ boundaries—is a notorious challenge in computer vision. Because these structures are often thin and low-contrast, a standard neural network might only misclassify a few pixels, yet those tiny errors can completely break the connectivity of the object.

In medical imaging, these breaks are critical. For example, in fetal ultrasound, the visibility and continuity of an organ boundary are key indicators of image quality. Most existing solutions fall into two camps: they either use expensive mathematical frameworks (like persistent homology) that are slow to compute, or they require prior knowledge of the exact shape they are looking for. The authors of DTU-Net sought a way to learn these topological "rules" directly from data, making the process faster and more flexible.

Methods

The authors propose a dual-stage architecture called DTU-Net, consisting of two lightweight U-Nets:

  1. The Texture Net: This first stage acts as a standard segmenter. It looks at the raw image pixels and produces a "coarse" prediction based on visual textures.
  2. The Topology Net: This stage takes the coarse prediction and refines it. Its job is to ensure the connectivity makes sense.
Fig. 3: Network architecture of DTU-Net. The dotted arrows refer to operations that are only performed at the training stage. Please zoom in for details.

The "secret sauce" is how the Topology Net is trained using a triplet loss. During training, the model is shown three things:

  • The Anchor: The coarse prediction from the Texture Net.
  • The Positive Example: The ground truth (perfect) segmentation.
  • The Negative Example: A version of the ground truth that the authors intentionally corrupted by adding "false splits" (breaking a line) or "missed splits" (incorrectly joining two lines).

By minimizing this loss, the network learns a latent embedding where topologically correct structures are grouped together, and broken ones are pushed away. Finally, the outputs of both nets are fused to create the final segmentation.

Datasets

The model was evaluated on two distinct tasks:

  • ULTRASOUND Dataset: A highly challenging multi-class dataset containing 2,088 fetal ultrasound scans. It includes 6 curvilinear categories (like the cervix canal outline) and 7 volumetric categories (like the kidney). Ultrasound is notoriously noisy, making this a rigorous test.
  • DRIVE Dataset: A well-known benchmark for retinal vessel segmentation. This is a binary task (vessel vs. background) and serves to show the model's performance on standard curvilinear problems.
Fig. 1: Volumetric and curvilinear structures important for standard plane assess- ment in ultrasound of fetal head and abdomen, as well as maternal cervix are shown in (a)-(c), with manual segmentations in (d)-(f). Please zoom for details.

Key Insights and Ideas

  • Topology is a Local Problem: While mathematicians often view topology as a global property (e.g., "how many holes does this object have?"), the authors argue that for image segmentation, it is a local problem. A model can get the "global" count of loops right but still fail to connect a curve correctly in a specific area.
  • Betti Numbers Aren't Enough: The paper highlights that two segmentations can have identical Betti numbers (a common topological metric) but still be wildly different in quality. This justifies their focus on learning local topological similarity rather than just optimizing for global counts.
Two segmentations can be topologically equivalent (same Betti numbers) yet one can still contain significant local errors.
  • Data-Driven Corruption: Instead of manually labeling topological errors, the authors created a pipeline to synthetically corrupt ground truth data. This allows the model to learn what "wrong" looks like in a self-supervised manner.

Key Results

DTU-Net significantly outperformed existing state-of-the-art methods, particularly on the difficult ultrasound data.

  • Accuracy Boost: On the ultrasound dataset, DTU-Net achieved a curvilinear Intersection over Union (cIoU) of 72.30%, compared to just 31.41% for the next best baseline (mini U-Net with clDice loss).
  • Topological Continuity: It achieved the lowest Betti error (0.0974), indicating it is far better at maintaining correct connectivity than traditional methods.
  • Efficiency: Despite having two stages, the use of "mini" U-Nets makes the model relatively efficient, with a training time of 17.2 hours—significantly faster than the 43.7 hours required by TopoLoss.
Table 1: Results on the ULTRASOUND dataset. Note that cIoU and cmIoU refer to IoU and mean class IoU, respectively, for curvilinear structures, whereas vIoU and vmIoU refers to volumetric structures.

Limitations and Future Work

While powerful, the authors note a few trade-offs:

  • Complexity: Using two sequential networks is naturally more computationally expensive during inference than a single-stage network.
  • Lack of Theoretical Guarantees: Unlike persistent homology methods, which are mathematically guaranteed to respect certain topological properties, DTU-Net is purely data-driven. It learns to be correct, but it doesn't "prove" it.
  • Future Directions: The authors suggest that their lightweight mini U-Nets could be replaced with larger, more powerful backbones to further push accuracy, provided the application doesn't require real-time performance.

Summary updated

BibTeX
@inproceedings{lin2022dtu,
  author = {Manxi Lin and Zahra Bashir and Martin Grønnebæk Tolsgaard and Anders Nymark Christensen and Aasa Feragen},
  title = {{DTU-Net: Learning Topological Similarity for Curvilinear Structure Segmentation}},
  booktitle = {IPMI},
  year = {2022},
}
Figure