Joint Learning of Brain Lesion and Anatomy Segmentation from Heterogeneous Datasets

Nicolas Roulet, Diego Fernández Slezak, Enzo Ferrante

Abstract

Brain lesion and anatomy segmentation in magnetic resonance images are fundamental tasks in neuroimaging research and clinical practice. Given enough training data, convolutional neuronal networks (CNN) proved to outperform all existent techniques in both tasks independently. However, to date, little work has been done regarding simultaneous learning of brain lesion and anatomy segmentation from disjoint datasets. In this work we focus on training a single CNN model to predict brain tissue and lesion segmentations using heterogeneous datasets labeled independently, according to only one of these tasks (a common scenario when using publicly available datasets). We show that label contradiction issues can arise in this case, and propose a novel adaptive cross entropy (ACE) loss function that makes such training possible. We provide quantitative evaluation in two different scenarios, benchmarking the proposed method in comparison with a multi-network approach. Our experiments suggest ACE loss enables training of single models when standard cross entropy and Dice loss functions tend to fail. Moreover, we show that it is possible to achieve competitive results when comparing with multiple networks trained for independent tasks.

Introduction

Accurate segmentation of both brain anatomy (e.g., gray matter, white matter) and pathologies (e.g., tumors, lesions) is critical for clinical diagnosis and research. While deep learning has revolutionized these tasks, high-quality datasets containing both types of labels are rare. Researchers often rely on heterogeneous datasets: one might provide detailed anatomical labels but ignore lesions, while another focuses exclusively on lesions, treating the rest of the brain as "background."

The Challenge: Label Contradictions

Training a single CNN on these disjoint datasets leads to "label contradictions." For instance, a voxel representing white matter is labeled as "White Matter" in an anatomical dataset but as "Background" in a lesion dataset. Standard loss functions like Cross Entropy or Dice loss penalize the model for predicting "White Matter" when the current training sample's label is "Background," even if the prediction is anatomically correct. This conflict often causes the model to fail in learning one or both tasks effectively.

Illustration of label contradictions in heterogeneous datasets and the Adaptive Cross Entropy (ACE) loss formulation.

Proposed Method: Adaptive Cross Entropy (ACE)

To resolve these contradictions, we propose the Adaptive Cross Entropy (ACE) loss function. The core insight is that "background" in a specialized dataset is not a definitive class but rather an "unlabeled" region that could contain any class except the one being specifically targeted.

When the model encounters a specific label (e.g., "Tumor"), it uses standard cross-entropy. However, when it encounters a "background" label in a partial dataset, ACE does not force a "background" prediction. Instead, it maximizes the probability that the voxel belongs to any class other than the target pathology of that dataset. This treats the background as a "virtual class" of possibilities, allowing the model to learn anatomy from one dataset without being penalized by the lack of anatomical labels in another.

Experimental Results

The researchers evaluated ACE in two scenarios: Brain Tissues + White Matter Hyperintensities (WMH) and Brain Tissues + Tumors. The single U-Net trained with ACE was compared against naive approaches (Standard Cross Entropy and Dice) and a "Multi-UNet" approach (fusing results from separate specialized networks).

Qualitative comparison of segmentation results across different loss functions. Standard Cross Entropy and Dice fail to segment anatomy when trained on disjoint datasets, whereas ACE achieves results comparable to the ground truth.

As shown in the qualitative results, naive models often "forget" anatomical structures because the lesion datasets label those areas as background. In contrast, the ACE-trained model successfully segments both anatomy and lesions simultaneously. Quantitatively, ACE achieved Dice scores comparable to the resource-intensive multi-network baseline—for example, achieving a Dice of 0.80 for white matter and 0.54 for WMH—proving that a single, efficient model can match the performance of multiple specialized ones.

Conclusion

The Adaptive Cross Entropy loss function effectively addresses the problem of label contradictions in heterogeneous datasets. By reinterpreting background labels as ambiguous rather than absolute, ACE enables the training of robust, "all-in-one" brain segmentation models. This approach simplifies the deployment of neuroimaging tools and potentially improves performance by allowing the model to learn the hierarchical relationships between brain tissues and pathologies.

Summary updated

BibTeX
@inproceedings{roulet2019joint,
  author = {Nicolas Roulet and Diego Fernández Slezak and Enzo Ferrante},
  title = {{Joint Learning of Brain Lesion and Anatomy Segmentation from Heterogeneous Datasets}},
  booktitle = {MIDL},
  year = {2019},
  url = {https://openreview.net/forum?id=F5xD0sgHtr},
}
Figure