Learning to Look Closer: A New Instance-Wise Loss for Small Cerebral Lesion Segmentation

Luc Bouteille, Alexander Jaus, Jens Kleesiek, Rainer Stiefelhagen, Lukas Heine · DOI

Introduction

In medical imaging, the detection of small cerebral lesions—such as microbleeds, lacunes, or tiny metastases—is critical for early diagnosis and effective treatment planning. However, automated segmentation models often struggle with these structures. The primary culprit is the standard voxel-overlap loss function, such as the Dice loss. Because small lesions occupy a negligible fraction of the total scan volume, missing them results in a minimal penalty to the global loss gradient. Consequently, models trained with standard losses tend to prioritize large structures, leading to significant under-segmentation or total omission of clinically relevant small instances.

Standard Dice loss (0.061) fails to reflect successful detection of most lesions, whereas instance-wise metrics like CC-Dice (0.8125) provide a more representative score.

Methods: CC-DiceCE and Voronoi Partitioning

To address this imbalance, the authors introduce CC-DiceCE, a novel instance-wise loss function derived from the CC-Metrics evaluation framework. Unlike global overlap measures, CC-DiceCE treats every lesion as an equal contributor to the loss, regardless of its physical size.

The core mechanism involves identifying each connected component in the ground truth and defining its Voronoi region—the set of all pixels closer to that specific lesion than to any other. The loss is then calculated independently within each Voronoi region and averaged across all instances. This approach ensures that a 4mm³ metastasis generates the same gradient magnitude as a 700mm³ tumor, effectively forcing the model to "look closer" at every detected instance.

Schematic of the CC-DiceCE loss calculation using Voronoi regions to isolate and weight each lesion instance equally.

For implementation, CC-DiceCE is combined with the standard global DiceCE loss in a 1:1 ratio. All experiments were conducted using the robust nnU-Net framework to ensure a fair comparison against the default DiceCE and the previously proposed BlobDiceCE (blob loss).

Experimental Setup

The proposed loss was evaluated across five diverse brain MRI datasets characterized by heavy-tailed object-size distributions:

  • Lacunes (LAC): Small subcortical cavities.
  • Cerebral Microbleeds (CMB): Tiny chronic blood products.
  • Stanford BrainMetShare (SBM): Metastases of varying sizes.
  • White Matter Hyperintensities (WMH): Focal and confluent signal increases.
  • BraTS 2020: Large gliomas, used to test performance on datasets with few, large components.

Results and Discussion

The inclusion of CC-DiceCE led to several key improvements:

  • Enhanced Recall: Detection rates improved across four of the five datasets. Notably, these gains were not limited to small lesions but were distributed across all size quartiles, suggesting that the loss acts as a general instance-level regularizer.
  • Preserved Global Accuracy: Despite the aggressive focus on small instances, global Dice scores remained stable. The maximum observed drop was a negligible -0.011, indicating that instance-level sensitivity does not come at the cost of overall segmentation quality.
  • Superiority over Blob Loss: CC-DiceCE matched or outperformed BlobDiceCE while avoiding the global Dice reductions seen with blob loss on datasets like LAC and SBM.

However, a trade-off was observed in the BraTS dataset. While recall increased (0.451 to 0.528), precision dropped significantly (0.770 to 0.051). This suggests that while CC-DiceCE is highly effective for multi-instance detection, it may be overly aggressive in tasks dominated by a few large components. In a clinical context, a higher false-positive rate is often more tolerable than missing a critical lesion.

Conclusion

CC-DiceCE provides a robust solution to the "small object problem" in medical image segmentation. By leveraging Voronoi partitioning to equalize the influence of all lesion instances, it significantly improves detection recall without sacrificing global segmentation performance. Future work will explore its application in other imaging modalities and anatomical regions.

Summary updated

BibTeX
@inproceedings{bouteille2026learning,
  author = {Luc Bouteille and Alexander Jaus and Jens Kleesiek and Rainer Stiefelhagen and Lukas Heine},
  title = {{Learning to Look Closer: A New Instance-Wise Loss for Small Cerebral Lesion Segmentation}},
  booktitle = {ISBI},
  year = {2026},
  doi = {10.1109/isbi61048.2026.11515682},
}
Figure