Pitfalls of Topology-Aware Image Segmentation

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

TL;DR

This paper exposes a "benchmarking crisis" in topology-aware image segmentation, revealing that current evaluation practices are often flawed and inconsistent. By identifying three critical pitfalls—arbitrary connectivity choices, overlooked label artifacts, and "entangled" metrics—the authors demonstrate how current leaderboards can be misleading and provide a roadmap for robust, semantically meaningful evaluation.

What Problem Does This Paper Address?

In medical imaging (e.g., segmenting blood vessels or neurons) and remote sensing (e.g., road networks), "topological correctness" is often more important than raw pixel accuracy. A tiny gap in a vessel or a false bridge between two neurons can render a segmentation useless for downstream analysis, even if the Dice score is 99%.

While many "topology-aware" AI models have been proposed recently, the authors argue that the field lacks a rigorous evaluation standard. They identify three major issues:

  1. Connectivity Ambiguity: Researchers often don't specify if they use 4- or 8-connectivity (direct vs. diagonal neighbors), which drastically changes the topological "ground truth."
  2. Label Noise: Ground truth annotations often contain tiny artifacts (1-5 pixels) that don't affect volumetric metrics but create "topological noise" that confuses evaluation.
  3. Metric Entanglement: Popular metrics like Variation of Information (VOI) or Adapted Rand Error (ARE) mix topological errors with volumetric errors, making it impossible to tell if a model is actually better at preserving structure.

Methods

The authors conduct an extensive empirical study rather than proposing a new segmentation architecture. Their approach involves:

  • Sensitivity Analysis: They evaluate several state-of-the-art topology-aware methods (like HuTopo, BettiM, and TopoG) across different connectivity settings (labeled A for all-connectivity and D for direct connectivity).
  • Artifact Removal: They test how "cleaning" ground truth labels (removing components smaller than 5 pixels) affects model rankings and error rates.
  • Correlation Studies: They use Spearman’s $\rho$ and Kendall’s $\tau$ to measure how much method rankings change when evaluation parameters are tweaked.
  • New Metric: They introduce a "connectivity susceptibility" measure to help researchers determine how sensitive a specific dataset is to connectivity choices.

Datasets

The study focuses on the three most common benchmarks in the field:

  • DRIVE: 2D retinal vessel segmentation.
  • CREMI: 2D/3D neuron boundary segmentation in brain EM images.
  • Roads: RGB satellite imagery for road network extraction.
  • MSSEG2: A 3D multiple sclerosis lesion dataset used to show that not all datasets are equally susceptible to these pitfalls.

Key Insights and Ideas

  • Connectivity is a Semantic Choice, Not a Hyperparameter: In the DRIVE dataset, using 4-connectivity instead of 8-connectivity for the foreground results in a 100-fold increase in the number of vessel components. This isn't just a math detail; it fundamentally changes what "a single vessel" means.
  • The "Artifact Tax": Tiny annotation errors (single-pixel noise) have a negligible impact on Dice scores but can account for up to 43% of measured topological errors. Models are essentially being penalized for failing to predict random noise in the labels.
  • Rankings are Unstable: The authors found that a method's rank can flip entirely depending on the connectivity choice. In fact, they observed a negative correlation (avg. Spearman’s $\rho = -0.63$) between rankings under different connectivity settings.
  • Aggregation Hides Truth: Combining Betti numbers (e.g., $\beta_0 + \beta_1$) into a single score is misleading. A model might be great at connecting vessels ($\beta_0$) but terrible at preventing false loops ($\beta_1$), yet an aggregated score would hide this trade-off.

Key Results

  • Ranking Inversion: On the CREMI dataset, the "best" method under one connectivity setting often became one of the "worst" under the inverted setting.
  • Quantitative Impact of Artifacts: Removing components $\le 5$ pixels in the DRIVE dataset reduced the Betti number 1 error by ~29% and the Betti matching 1 error by ~43%.
  • Metric Failure: The authors proved that distributional metrics (VOI/ARE) do not always correlate with actual topological accuracy. For DRIVE, there was nearly zero correlation ($\rho = -0.03$) between Betti matching errors and ARE.

Limitations and Future Work

The authors acknowledge that their study primarily focuses on 2D slices of 3D data, which is common in the literature but can change topological requirements (e.g., a 3D vessel might look like a 2D island).

Future Recommendations: 1. Transparency: Researchers must explicitly state their connectivity choices (e.g., reporting $ARE_A$ vs $ARE_D$). 2. Disentanglement: Always report at least one purely topological metric (like Betti matching) alongside a volumetric one (like Dice). 3. Problem-Aware Selection: Use metrics tailored to the task—e.g., clDice for vessels (connectivity-focused) and ARI/VOI for neurons (instance-focused).

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