Tackling Bias in the Dice Similarity Coefficient: Introducing NDSC for White Matter Lesion Segmentation

Vatsal Raina, Nataliia Molchanova, Mara Graziani, Andrey Malinin, Henning Müller, Meritxell Bach Cuadra, Mark J. F. Gales

Abstract

The Dice Similarity Coefficient (DSC) is the de facto standard for evaluating automated medical image segmentation. However, DSC exhibits a fundamental bias: it is highly sensitive to the size of the target object, naturally yielding higher scores for larger lesions regardless of a model's intrinsic accuracy. This paper introduces the normalized Dice Similarity Coefficient (nDSC), a metric designed to account for "lesion load" by scaling precision. By decoupling performance from lesion prevalence, nDSC enables a fairer comparison of segmentation algorithms across diverse patient populations. Our evaluation using Multiple Sclerosis (MS) datasets demonstrates that nDSC significantly reduces the correlation between performance scores and lesion volume, providing a more stable assessment of model capability.

Introduction

In the field of neuroimaging, the automated segmentation of White Matter Lesions (WML) is critical for monitoring the progression of diseases such as Multiple Sclerosis (MS). To evaluate these automated tools, researchers almost exclusively rely on the Dice Similarity Coefficient (DSC). While DSC is effective for measuring spatial overlap, it possesses a "hidden" flaw: it is mathematically predisposed to favor cases with high lesion loads.

In clinical practice, a patient with a high lesion load (extensive disease) will typically result in a higher DSC score than a patient with small, sparse lesions, even if the segmentation algorithm performs with identical underlying precision and recall. This bias complicates model selection and benchmarking, as it becomes difficult to discern whether a high score reflects superior model performance or simply an "easier" target dataset. This study addresses this limitation by proposing the normalized Dice Similarity Coefficient (nDSC).

Methodology

The nDSC Metric

The authors propose nDSC to mitigate the prevalence bias inherent in standard DSC. The core of the method involves introducing a scaling factor, $\kappa$, into the standard DSC formula. This factor is derived from the ratio between the positive and negative classes in the ground truth relative to a "reference" value—typically the average lesion load across the entire training dataset.

By scaling the precision at a fixed recall rate, nDSC effectively "flattens" the precision-recall curve across different lesion volumes. This ensures that the resulting metric reflects the model's actual segmentation capability rather than the volumetric prevalence of the lesions in a specific scan.

Experimental Design

To validate the proposed metric, the researchers compared two distinct architectures:

  1. 3D U-Net: A standard convolutional baseline for medical imaging tasks.
  2. UNETR: A modern architecture utilizing a transformer-based encoder paired with a convolutional decoder.

The study utilized the Shifts Project dataset, which consists of FLAIR (fluid-attenuated inversion recovery) MRI scans of MS patients. The dataset was partitioned as follows:

  • Training/Validation: 40 scans.
  • Testing: 59 scans, further split into TestA (30 scans with low lesion loads) and TestB (29 scans with high lesion loads) to explicitly test for volumetric bias.

Results and Discussion

Quantifying the Bias

The authors utilized Spearman’s rank correlation ($\rho$) to measure the relationship between metric scores and lesion load. The results confirmed a strong positive correlation for the standard DSC ($\rho$ up to 0.58), indicating that the metric essentially rewards models for the severity of the patient's disease.

In contrast, nDSC significantly reduced this correlation, with $\rho$ values dropping as low as 0.05. This suggests that nDSC provides a much more unbiased view of model performance, independent of the total volume of the lesions being segmented.

Model Performance and Ranking

When evaluated using standard DSC, it appeared that models performed significantly better on TestB (high load) than TestA (low load). However, the application of nDSC revealed that this performance gap was largely an artifact of the metric itself. While the UNETR model outperformed the 3D U-Net across both metrics—confirming the efficacy of transformer-based encoders—nDSC provided a more stable comparison across the two test subsets.

Visual analysis of regression lines (metric ranks against lesion load ranks) showed that nDSC lines are substantially flatter than DSC lines. This stability confirms that nDSC remains consistent regardless of the lesion volume present in a specific scan.

Conclusion

The introduction of nDSC addresses a critical oversight in medical image evaluation. By normalizing for lesion load, nDSC allows researchers to compare segmentation models more fairly across heterogeneous patient groups.

Limitations and Future Work

While nDSC shows great promise, the authors identify several areas for future research:

  • Multi-class Extension: This study focused on binary segmentation (lesion vs. background). Extending nDSC to multi-class problems, such as differentiating between various tissue types or tumor grades, is a necessary next step.
  • Broader Validation: The metric should be validated on other segmentation tasks, such as fetal brain imaging or different tumor types, to ensure its generalizability.
  • Community Adoption: To facilitate the use of this metric, the authors have made their implementation publicly available on GitHub.

By adopting nDSC, the medical imaging community can move toward more robust and transparent benchmarking of segmentation algorithms, ultimately leading to better-performing tools for clinical use.

Summary updated

BibTeX
@inproceedings{raina2023tackling,
  author = {Vatsal Raina and Nataliia Molchanova and Mara Graziani and Andrey Malinin and Henning Müller and Meritxell Bach Cuadra and Mark J. F. Gales},
  title = {{Tackling Bias in the Dice Similarity Coefficient: Introducing NDSC for White Matter Lesion Segmentation}},
  booktitle = {ISBI},
  year = {2023},
  doi = {10.1109/isbi53787.2023.10230755},
}
Figure