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

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

TL;DR

Standard loss functions in medical imaging often ignore small lesions because their tiny volume makes them a "rounding error" in the total math. This paper introduces CC-DiceCE, a new loss function that partitions the image into regions so that every single lesion—no matter how small—gets an equal vote in the training process. Tested across five diverse brain MRI datasets, this approach significantly boosts the detection of clinical red flags like microbleeds and metastases without sacrificing overall segmentation quality.

What Problem Does This Paper Address?

In the world of medical AI, "size matters" in a way that can be dangerous. Most segmentation models use the Dice loss, which measures the overlap between the predicted mask and the ground truth. Because Dice is volume-based, a large tumor weighing in at 800 $mm^3$ contributes far more to the loss than a tiny 4 $mm^3$ metastasis.

For a model trying to minimize total loss, "ignoring" the tiny lesion is a winning strategy mathematically, but a failure clinically. Small lesions are often the earliest signs of disease or critical indicators of stroke risk. While "instance-wise" losses (which treat each lesion as a separate object) have been proposed before, they often lack rigorous benchmarking or fail to maintain the quality of larger structures.

Methods

The authors propose CC-DiceCE, a loss function built on the CC-Metrics framework. Here’s how it works:

  1. Voronoi Partitioning: Instead of looking at the whole brain at once, the algorithm divides the image into "Voronoi regions." Each region is centered around one ground-truth lesion.
  2. Equal Weighting: The model calculates a Dice score for each region individually. These scores are then averaged. This ensures that a tiny microbleed in its own small region has the same impact on the final loss as a massive glioma.
  3. Hybrid Objective: To ensure the model doesn't lose its "big picture" perspective, they combine this instance-wise loss with standard global Dice and Cross-Entropy (DiceCE) in a 1:1 ratio.
  4. Robust Baseline: They implemented everything within the nnU-Net framework, the gold standard for medical image segmentation, to ensure their results weren't just a byproduct of poor hyperparameter tuning.

They compared this against Blob Loss, a previous attempt at instance-wise segmentation that masks out other components rather than partitioning the entire space.

Datasets

The researchers "stress-tested" their method on five publicly available brain MRI datasets representing a wide spectrum of lesion types:

  • LAC (Lacunes): Small subcortical cavities (3–15 mm).
  • CMB (Cerebral Microbleeds): Tiny, dot-like foci of old blood.
  • SBM (Stanford BrainMetShare): Brain metastases with a massive size discrepancy (the largest is ~177x bigger than the smallest).
  • WMH (White Matter Hyperintensities): Areas of signal change related to small vessel disease.
  • BraTS (Gliomas): Large, complex brain tumors (used to see if the loss harms performance on big objects).

Key Insights and Ideas

  • The "Penalty" Mechanism: In CC-DiceCE, missing a single ground-truth lesion (a false negative) sets that region's contribution to the worst possible value. This creates a massive gradient "penalty" that forces the model to prioritize detection.
  • Gradients Scale with Size: Unlike Blob Loss, where false positives have uniform weight, CC-DiceCE scales gradients based on the size of the Voronoi region. Smaller regions receive larger relative magnitudes, effectively telling the model to "look closer" at the details.
  • A General Regularizer: Surprisingly, the recall improvements weren't just for the tiniest lesions. The quartile analysis showed that CC-DiceCE improved detection across almost all size categories, suggesting it acts as a general-purpose regularizer for instance-aware learning.

Key Results

  • Superior Detection: CC-DiceCE outperformed Blob Loss in 22 out of 25 metric/dataset combinations.
  • Better Recall: On the Stanford Metastasis (SBM) dataset, recall for the smallest 25% of lesions jumped from 0.38 to 0.50 compared to the standard baseline.
  • Minimal Trade-offs: The "cost" of this improved detection was negligible. Global Dice scores (the standard measure of overlap) stayed within 0.01 of the baseline across all datasets.
  • Instance-Wise Gains: The model consistently achieved higher CC-Dice (the average Dice score per lesion), proving it was successfully learning to treat each lesion as an individual entity.

Limitations and Future Work

The authors noted a few hurdles:

  • The Precision Trade-off: In some cases (like BraTS), the model became too aggressive, increasing recall but also picking up more false positives (lower precision). In clinical settings, the authors argue this is often preferable to missing a lesion entirely, as a radiologist can quickly dismiss a false positive.
  • Dataset Specificity: On the WMH dataset, the method didn't show significant gains. The authors suspect the default nnU-Net training schedule might overfit this specific data, potentially masking the benefits of the new loss.
  • Future Scope: The study focused on the brain. Future work will involve testing CC-DiceCE on other anatomical regions (like the lungs or abdomen) and different pathologies to see if the "look closer" effect holds up elsewhere.

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