Every Component Counts: Rethinking the Measure of Success for Medical Semantic Segmentation in Multi-Instance Segmentation Tasks

Alexander Jaus, Constantin Marc Seibold, Simon Reiß, Zdravko Marinov, Keyi Li, Zeling Ye, Stefan Krieg, Jens Kleesiek, Rainer Stiefelhagen

Abstract

Standard medical imaging metrics like the Dice score are heavily biased toward large anatomical structures, often masking a model's failure to detect small but clinically vital lesions. This paper introduces CC-Metrics (Connected-Component Metrics), an evaluation protocol that uses generalized Voronoi partitioning to weight every individual tumor equally. This approach provides a more honest and clinically relevant assessment of model performance in multi-instance tasks such as metastasis detection.

The Problem: The "Volume Mask"

In medical AI, segmentation is frequently used as a proxy for detection. However, the industry-standard Dice coefficient is volume-dependent. A model can achieve a near-perfect score by segmenting a single large tumor while completely missing several small metastases. Clinically, missing these small lesions is a failure that can drastically alter a patient's treatment plan.

Figure 1: High Dice scores can mask the failure to detect small, clinically significant lesions.

Existing alternatives like Panoptic Quality (PQ) attempt to address instance-awareness but introduce "cliff-edge" effects, where minor changes in overlap result in non-linear drops in score, making them difficult to use for model optimization.

Methodology: Rebalancing the Scales with CC-Metrics

The authors propose a framework called CC-Metrics to ensure every component counts equally. The core innovation lies in the use of Generalized Voronoi Diagrams to partition 3D images:

  1. Partitioning: The image is divided into distinct regions (Voronoi cells) based on the ground-truth connected components (individual tumors).
  2. Local Evaluation: Standard metrics—such as Dice, Surface Dice, or Hausdorff Distance—are calculated locally within each region. This ensures a prediction is compared only to its nearest intended target.
  3. Aggregation: These local scores are averaged. Because each component receives its own score before averaging, a tiny 2mm lesion has the same weight in the final score as a massive 10cm tumor.

This approach is hyperparameter-free and provides a smooth, informative gradient for model evaluation, unlike "Lesion Dice" which requires arbitrary size thresholds.

Experimental Validation

The researchers validated CC-Metrics using two major datasets: AutoPET (high complexity, ~10 metastases per scan) and HECKTOR (lower complexity, ~2 metastases per scan). They also employed synthetic simulations—applying erosion, dilation, and random deletions to ground truth—to mathematically demonstrate the failure points of standard metrics.

Key Results and Insights

Benchmarking state-of-the-art models like nnUNet on the AutoPET dataset revealed a significant "Reality Gap." While nnUNet achieved a respectable 67.5 Dice score, its CC-Dice was only 47.4. This 20-point discrepancy highlights that the model struggles significantly with smaller, individual metastases despite capturing the bulk volume of tumors.

Figure 4: CC-Metrics provide a smooth, informative gradient for model evaluation compared to the erratic behavior of Panoptic Quality.

Furthermore, CC-Metrics demonstrated Smooth Degradation. In simulations where tumors were gradually eroded, CC-Metrics showed a linear, predictable decline. In contrast, Panoptic Quality and Lesion Dice exhibited erratic jumps and plateaus, which can mislead researchers during model fine-tuning.

Conclusion

CC-Metrics offer a "silver bullet" for volumetric medical data, forcing evaluation to account for every instance regardless of size. While the current proximity-based matching via Voronoi regions is ideal for 3D CT/MRI scans, future work will explore adapting this logic for 2D images where object occlusion is more prevalent. For now, CC-Metrics provide the necessary transparency to ensure medical AI models are truly ready for clinical deployment.

Summary updated

BibTeX
@inproceedings{jaus2025every,
  author = {Alexander Jaus and Constantin Marc Seibold and Simon Reiß and Zdravko Marinov and Keyi Li and Zeling Ye and Stefan Krieg and Jens Kleesiek and Rainer Stiefelhagen},
  title = {{Every Component Counts: Rethinking the Measure of Success for Medical Semantic Segmentation in Multi-Instance Segmentation Tasks}},
  booktitle = {AAAI Conference on Artificial Intelligence},
  year = {2025},
  doi = {10.1609/aaai.v39i4.32408},
}
Figure