Understanding implementation pitfalls of distance-based metrics for image segmentation

Gasper Podobnik, Tomaz Vrtovec
10/3/2024
cs.CV

No official code found. Best implementation: gasperpodobnik/MeshMetrics (11 stars, Apache-2.0, last commit 2026-03-02). 1 more below.

Abstract

Distance-based metrics, such as the Hausdorff distance (HD), are widely used to validate segmentation performance in (bio)medical imaging. However, their implementation is complex, and critical differences across open-source tools remain largely unrecognized by the community. These discrepancies undermine benchmarking efforts, introduce bias in biomarker calculations, and potentially distort medical device development and clinical commissioning. In this study, we systematically dissect 11 open-source tools that implement distance-based metric computation by performing both a conceptual analysis of their computational steps and an empirical analysis on representative two- and three-dimensional image datasets. Alarmingly, we observed deviations in HD exceeding 100 mm and identified multiple statistically significant differences between tools - demonstrating that statistically significant improvements on the same set of segmentations can be achieved simply by selecting a particular implementation. These findings cast doubts on the validity of prior comparisons of results across studies without accounting for the differences in metric implementations. To address this, we provide practical recommendations for tool selection; additionally, our conceptual analysis informs about the future evolution of implementing open-source tools.

View on arXivView PDF

Code Implementations(2)

Apache-2.0

Library to compute distance-based performance metrics for image segmentation tasks.

111Python, Jupyter NotebookOct 2, 20247 months agoApache-2.0

Source code accompanying the manuscript “Understanding Implementation Pitfalls of Distance-Based Metrics for Image Segmentation,” including experiments scripts.

00PythonJan 12, 20269 months ago

Similar Papers

Cite this paper

@article{podobnik2024understanding,
  title  = {Understanding implementation pitfalls of distance-based metrics for image segmentation},
  author = {Gasper Podobnik and Tomaz Vrtovec},
  year   = {2024},
  eprint = {2410.02630},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2410.02630v2}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2410.02630.svg)](https://codeofpaper.com/paper/2410.02630)

Discussion