An Experimental Study of Data Heterogeneity in Federated Learning Methods for Medical Imaging

Liangqiong Qu, Niranjan Balachandar, Daniel L. RubinarXiv 2021

Abstract

Federated Learning (FL) offers a privacy-preserving pathway for multi-institutional medical imaging research by allowing models to be trained without sharing raw patient data. However, real-world data heterogeneity—specifically quantity, label, and acquisition skews—often degrades model performance. This study systematically evaluates these skews across two medical imaging benchmarks (ADNI and Retina) and demonstrates that simple optimizations, such as weighted loss functions and Batch Normalization (BN) averaging, can effectively mitigate performance losses.

Introduction

Deep learning thrives on large, diverse datasets, but medical data is often trapped in silos due to privacy regulations. Federated Learning allows institutions to train a shared model by only exchanging model updates (like gradients or weights).

However, most FL research assumes that data is "IID" (Independent and Identically Distributed)—meaning every hospital has roughly the same number of patients and the same disease prevalence. In reality, a large university hospital might have ten times the data of a rural clinic (quantity skew), a specialist center might see much higher rates of rare diseases (label skew), and different vendors' MRI machines produce subtly different images (acquisition skew). This paper investigates how these specific skews degrade FL performance and how we can fix them.

Methodology

The authors evaluate three foundational FL algorithms:

  1. FedSGD: Institutions send gradients to a central server at every iteration.
  2. FedAVG: Institutions train locally for several epochs and then send their model weights to be averaged.
  3. Cyclical Weight Transfer (CWT): Institutions train the model sequentially, passing it from one to the next.

To combat heterogeneity, they introduce several mitigation strategies:

  • Weighted Averaging (+WP): Updates are weighted based on the institution's sample size to prevent small datasets from being "drowned out."
  • Weighted Loss (+WL): A class-weighted cross-entropy loss is applied to handle label distribution skew.
  • BN Averaging: The running mean and variance of Batch Normalization layers are averaged across institutions during FedAVG, rather than letting them diverge locally.

Experimental Results

Quantity Skew

Quantity skew occurs when participating sites have significantly different numbers of samples. The study found that while FedAVG is naturally robust to these differences, FedSGD and CWT are highly sensitive. As shown in Figure 1, increasing the standard deviation (STD) of sample sizes leads to noticeable performance drops in standard FedSGD and CWT. However, applying the Weighted Averaging (+WP) strategy effectively eliminates this gap, bringing performance back to baseline levels.

Impact of quantity skew on ADNI and Retina datasets. The +WP strategy recovers performance lost to sample size imbalance.

Label Skew

Label skew, where disease prevalence varies wildly between sites, proved to be the most significant performance killer. In highly imbalanced scenarios (measured by the Kolmogorov-Smirnov statistic), standard FL methods saw accuracy drops of over 30% in the ADNI dataset.

As illustrated in Figure 2, the introduction of Weighted Loss (+WL) significantly recovers performance across all three FL methods. Furthermore, the authors discovered that averaging Batch Normalization statistics (BN Averaging) provided a critical fix for FedAVG, yielding a 16% performance boost in the most skewed scenarios by preventing institutional models from diverging.

Impact of label skew on ADNI and Retina datasets. The +WL strategy significantly mitigates accuracy drops caused by class imbalance.

Acquisition Skew

Variations in scanner vendors (e.g., GE vs. Philips) or image resolution act as a form of domain shift. Simulating noise and resolution drops led to performance decreases ranging from 1.3% to 9.2%. This highlights that data quality and acquisition standards are as critical as data quantity in federated settings.

Discussion and Conclusion

This study provides a robust taxonomy of data heterogeneity in medical FL. The key findings suggest that while label skew is the most damaging, simple algorithmic adjustments like Weighted Loss and BN Averaging can recover much of the lost performance.

While the paper focuses on classification tasks, future work is needed to explore more complex tasks like image segmentation. Additionally, while acquisition skew was identified as a major hurdle, specific mitigation strategies—such as super-resolution or histogram matching—remain an open area for future experimental validation in federated environments.

Summary updated

BibTeX
@misc{qu2021experimental,
  author = {Liangqiong Qu and Niranjan Balachandar and Daniel L. Rubin},
  title = {{An Experimental Study of Data Heterogeneity in Federated Learning Methods for Medical Imaging}},
  year = {2021},
  eprint = {2107.08371},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2107.08371},
}
Figure