Abstract
The quantification of similarity between image segmentations is a complex yet important task. The ideal similarity measure should be unbiased to segmentations of different volume and complexity, and be able to quantify and visualise segmentation bias. Similarity measures based on overlap, e.g. Dice score, or surface distances, e.g. Hausdorff distance, clearly do not satisfy all of these properties. To address this problem, we introduce Patch-based Evaluation of Image Segmentation (PEIS), a general method to assess segmentation quality. Our method is based on finding patch correspondences and the associated patch displacements, which allow the estimation of segmentation bias. We quantify both the agreement of the segmentation boundary and the conservation of the segmentation shape. We further assess the segmentation complexity within patches to weight the contribution of local segmentation similarity to the global score. We evaluate PEIS on both synthetic data and two medical imaging datasets. On synthetic segmentations of different shapes, we provide evidence that PEIS, in comparison to the Dice score, produces more comparable scores, has increased sensitivity and estimates segmentation bias accurately. On cardiac magnetic resonance (MR) images, we demonstrate that PEIS can evaluate the performance of a segmentation method independent of the size or complexity of the segmentation under consideration. On brain MR images, we compare five different automatic hippocampus segmentation techniques using PEIS. Finally, we visualise the segmentation bias on a selection of the cases.
Introduction
In medical imaging, evaluating segmentation algorithms against a "gold standard" (typically manual expert segmentation) is crucial. The standard metric, the Dice Similarity Coefficient, suffers from significant drawbacks:
- Volume Bias: Larger structures yield higher scores regardless of relative error.
- Complexity Blindness: It fails to distinguish between simple interior voxels and difficult boundary voxels.
- Lack of Directionality: It identifies error presence but not the nature of the error (e.g., over-segmentation vs. under-segmentation).
To overcome these, we propose PEIS (Patch-based Evaluation of Image Segmentation), a metric that focuses on local shape conservation and provides directional feedback.
Methods
PEIS operates by analyzing local neighborhoods (patches) rather than global voxel counts.
Patch Matching and Displacement
For each voxel in a reference segmentation, the algorithm searches for the best-matching patch in the test segmentation. This process identifies a displacement vector ($\Delta$), which captures the local shift in structure.
Complexity Weighting and Bias Estimation
To focus on challenging regions, PEIS uses a "data-driven" weighting system based on the number of "facets" (label boundaries) within a patch. Complex boundary patches are weighted more heavily than homogeneous interior ones.
The segmentation bias ($b$) is calculated as the dot product between the local patch normal ($n$) and the displacement vector ($\Delta$): $b = \Delta \cdot n$. A positive value indicates over-segmentation (outward boundary shift), while a negative value indicates under-segmentation.
Results and Discussion
PEIS was validated on synthetic data, cardiac MR, and brain MR datasets.
Shape Sensitivity and Volume Independence
In synthetic polygon experiments, while Dice scores remained misleadingly high (~0.83) for significantly different shapes (e.g., square vs. circle), PEIS successfully detected these differences. In cardiac MR evaluations, PEIS provided consistent scores for both the myocardium and blood pool, whereas Dice scores were heavily biased by the volume and topology of the structures.
Visualizing Segmentation Bias
A key advantage of PEIS is the ability to map directional errors spatially. This serves as a powerful debugging tool for algorithm development.
On brain MR datasets, PEIS not only ranked algorithms similarly to Dice but also provided visual evidence of systematic errors. For instance, the MALP_EM method was shown to have a consistent negative bias (under-segmentation) in the hippocampus.
Conclusion
PEIS offers a robust, volume-independent alternative to traditional segmentation metrics. By incorporating local complexity and providing spatial maps of directional bias, it offers deeper insights into algorithm performance. Future work will address resolution dependence and extension to multi-label segmentations.
Reference: Ledig, C., Shi, W., Bai, W., & Rueckert, D. (2014). Patch-based Evaluation of Image Segmentation. CVPR.
Summary updated