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

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

TL;DR

Standard medical segmentation metrics like the Dice score are heavily biased toward large objects, often masking critical failures in detecting small but clinically significant lesions. This paper introduces CC-Metrics (Connected-Component Metrics), a protocol that partitions images into regions to evaluate performance on a per-instance basis, ensuring every tumor—regardless of size—receives equal weight in the final score.

What Problem Does This Paper Address?

In medical imaging, particularly for tasks like metastasis segmentation in PET/CT scans, the clinical importance of a tumor is often uncorrelated with its size. A tiny new lesion can be just as critical for a patient's treatment plan as a large, established one.

However, the "gold standard" metrics we use to evaluate AI models, such as the Dice coefficient, are global calculations based on total pixel overlap. This creates a massive size bias: a model can achieve a near-perfect 98% Dice score by segmenting a large tumor accurately while completely missing several smaller ones.

Figure 1: Reporting a Dice of 98% in the shown example, highly overestimates the capability of the trained semantic segmentation model. This might leave radiologists with a false impression of how reliably the model can be used to predict tumors in body scans. With CC-Metrics, we partition an image into distinct regions and evaluate standard seman- tic segmentation metrics on a per-component basis which gives each tumor the same importance.

The authors argue that this gives radiologists a false sense of security. They identify a need for evaluation protocols that align with the "detection via segmentation" reality of clinical practice, where identifying every individual instance matters.

Methods

The core innovation is CC-Metrics, a strategy to evaluate existing metrics (like Dice, Surface Dice, or Hausdorff Distance) locally rather than globally.

  1. Voronoi Partitioning: The algorithm first identifies all connected components (individual metastases) in the ground truth. It then uses a generalized Voronoi diagram to partition the entire image space into distinct regions. Each region represents the "territory" closest to a specific ground-truth component.
  2. Proximity-Based Matching: Predicted segments are matched to the nearest ground-truth component based on these Voronoi regions. This avoids the need for arbitrary overlap thresholds (like the IoU > 0.5 required by Panoptic Quality).
  3. Per-Component Evaluation: Standard metrics are calculated only within each specific Voronoi region.
  4. Aggregation: The final CC-Metric is the simple average of these local scores. By averaging rather than summing pixels globally, a 10mm³ lesion has the exact same impact on the final score as a 1000mm³ lesion.

Datasets

The researchers validated their approach using two publicly available PET/CT datasets:

  • AutoPET: A "high-count" dataset where patients have an average of 10 metastases, providing a complex scenario for multi-instance evaluation.
  • HECKTOR: A "low-count" dataset (head and neck tumors) with an average of only 2 metastases per image, used to ensure the new metrics align with standard ones when few instances are present.
  • Synthetic Toy Examples: The authors also used simulated spheres to rigorously test how metrics behave under controlled degradation (e.g., eroding or shifting specific components).

Key Insights and Ideas

  • The "Dice Illusion": Global metrics are essentially a weighted average by volume. CC-Metrics reveal that current state-of-the-art models (like nnUNet) are much worse at finding small metastases than their standard Dice scores suggest.
  • Threshold Pitfalls: Metrics like Panoptic Quality (PQ) suffer from "sharp drops" in scores when a prediction falls just below a hard 0.5 IoU threshold. CC-Metrics behave smoothly, remaining informative even for low-overlap predictions.
  • Distance Metric Sensitivity: Standard Hausdorff Distance (HD95) is often uninformative because it's dominated by the single worst-case error in the entire image. CC-HD95 provides a more nuanced signal by averaging the worst-case errors for each component.
  • Clinical Alignment: By giving equal weight to every component, CC-Metrics better reflect the clinical intent to treat all metastases, regardless of their size.

Key Results

The disparity between standard metrics and CC-Metrics is most striking on the high-instance AutoPET dataset.

As shown in Table 1, the highly-regarded nnUNet achieves a respectable 67.5% standard Dice score, but its CC-Dice drops to 47.4%. This 20-point gap highlights that the model is significantly struggling with smaller metastases—a fact hidden by the global metric.

Figure 4: Simulation results on AutoPET showing how standard metrics (orange) stay high even as small components are dropped, while CC-Metrics (blue) accurately reflect the loss of information.

Conversely, on the HECKTOR dataset (low instance count), CC-Metrics and standard metrics are nearly identical (e.g., 78.7% vs 78.7% for DynUnet). This confirms that CC-Metrics don't introduce unwanted bias; they simply reveal existing biases in multi-instance scenarios.

Limitations and Future Work

The authors note that their proximity-based matching assumes a constant real-world distance between neighboring pixels, which is standard in medical volumes like MRI or CT. While they believe the protocol is applicable to other domains like satellite imagery or microscopy, these might require adjustments if pixel distances are not uniform.

Future work could involve integrating CC-Metrics directly into the training process (as loss functions) to encourage models to focus more equitably on small instances from the start.

Summary updated

BibTeX
@inproceedings{jaus2025every,
  author = {Alexander Jaus and Constantin 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