Pitfalls of topology-aware image segmentation

Alexander H. Berger, Laurin Lux, Alexander Weers, Martin J. Menten, Daniel Rueckert, Johannes C. Paetzold · DOI

Introduction: The Importance of Topology

In domains like medical imaging and remote sensing, the structural integrity of a segmentation—its topology—is often far more critical than pixel-level accuracy. For instance, in segmenting blood vessels or neuronal networks, a single-pixel gap can break a connection, while a false bridge can merge two distinct entities. Even if a model achieves a 99% Dice score, such topological errors can render the output useless for downstream analysis.

Despite the proliferation of "topology-aware" AI models, this paper identifies a "benchmarking crisis." Current evaluation practices are often flawed and inconsistent, leading to misleading leaderboards and unstable rankings.

The Three Pitfalls of Topological Evaluation

The authors identify three critical pitfalls that currently plague the field of topology-aware image segmentation.

Overview of topological pitfalls in image segmentation benchmarking.

1. Connectivity Ambiguity

A fundamental choice in digital topology is whether to use 4-connectivity (direct neighbors) or 8-connectivity (including diagonals). The paper reveals that researchers often fail to specify this choice, which drastically alters the topological "ground truth." In the DRIVE retinal dataset, switching from 8- to 4-connectivity for the foreground results in a 100-fold increase in the number of vessel components. Connectivity is a semantic choice that defines what constitutes a single structure, yet it is often treated as an overlooked hyperparameter.

2. Overlooked Label Artifacts

Ground truth annotations frequently contain tiny artifacts—isolated pixels or small components of 1-5 pixels—that are often unintended by-products of the labeling process. While these have a negligible impact on volumetric metrics like Dice, they create significant "topological noise." The authors found that these artifacts can account for up to 43% of measured topological errors. Models are effectively being penalized for failing to replicate random noise in the labels, an "artifact tax" that obscures true performance.

3. Misaligned and Entangled Metrics

Popular metrics like Variation of Information (VOI) or Adapted Rand Error (ARE) are "entangled," meaning they conflate topological errors with volumetric ones. This makes it impossible to discern if a model is actually superior at preserving structure or simply better at pixel-wise overlap. The study found nearly zero correlation ($\rho = -0.03$) between Betti matching errors (a pure topological metric) and ARE on the DRIVE dataset.

Empirical Study and Results

The authors conducted a sensitivity analysis across several state-of-the-art models (e.g., HuTopo, BettiM, TopoG) using benchmarks like DRIVE (retinal vessels), CREMI (neurons), and satellite road networks.

Key findings include:

  • Ranking Inversion: On the CREMI dataset, a method's rank can completely flip depending on the connectivity setting. The authors observed a negative correlation (avg. Spearman’s $\rho = -0.63$) between rankings under different connectivity choices.
  • The Impact of Cleaning: Removing components smaller than 5 pixels in the DRIVE dataset reduced Betti number 1 errors by ~29% and Betti matching errors by ~43%, demonstrating how much noise currently influences evaluation.
  • Aggregation Hides Truth: Combining different topological features (like Betti numbers $\beta_0$ and $\beta_1$) into a single score can hide important trade-offs, such as a model being good at connecting structures but poor at preventing false loops.

Recommendations for Future Benchmarking

To move toward robust and semantically meaningful evaluation, the authors propose several best practices:

  1. Transparency: Explicitly state connectivity choices (e.g., reporting $ARE_A$ for all-connectivity vs $ARE_D$ for direct).
  2. Disentanglement: Report purely topological metrics (like Betti matching) alongside volumetric ones (like Dice) to provide a clear picture of model performance.
  3. Task-Specific Selection: Choose metrics tailored to the specific problem—for example, clDice for vessel-like structures where connectivity is paramount, and ARI/VOI for instance-based tasks like neuron segmentation.

By addressing these pitfalls, the field can ensure that progress in topology-aware segmentation is measured accurately and translates to real-world utility.

Summary updated

BibTeX
@inproceedings{berger2025pitfalls,
  author = {Alexander H. Berger and Laurin Lux and Alexander Weers and Martin J. Menten and Daniel Rueckert and Johannes C. Paetzold},
  title = {{Pitfalls of topology-aware image segmentation}},
  booktitle = {IPMI},
  year = {2025},
  doi = {10.1007/978-3-031-96628-6\_20},
}
Figure