A highly generalized federated learning algorithm for brain tumor segmentation

Jun Wen, Xiusheng Li, Xin Ye, Xiaoli Li, Hang MaoScientific 2025

Abstract

Brain image segmentation plays a pivotal role in modern healthcare by enabling precise diagnosis and treatment planning. Federated Learning (FL) enables collaborative model training across institutions while safeguarding sensitive patient data. The integration of these technologies holds significant potential for advancing artificial intelligence (AI) in healthcare. However, medical institutions frequently encounter data imbalances, where some have limited annotated brain imaging data, whereas others possess larger datasets and more diverse cases. Such data exhibit non-independent, non-identically distributed (non-IID) characteristics, which adversely affect segmentation accuracy and generalizability. To address these issues, this paper proposes a client-side brain tumor image segmentation model utilizing Virtual Adversarial Training (VAT) integrated into a 3D U-Net to improve model performance under conditions of limited datasets, effectively addressing data scarcity and imbalance within the federated learning environment by optimizing the use of brain tumor image data held by each client. FedHG introduces an effective federated model aggregation strategy that leverages key parameters, specifically the 'weights' derived from a public validation dataset. Additionally, instance normalization parameters are incorporated into client models during training. These strategies collectively enhance the generalizability of the federated model. Empirical experiments validate the proposed algorithm, showing a 2.2% improvement in the Dice Similarity Coefficient (DSC) for brain tumor segmentation over the baseline federated learning algorithm, with a marginal 3% reduction in performance compared to centralized training, highlighting its practical applicability.

Introduction

In medical AI, data is the most valuable—and most protected—resource. Federated Learning (FL) allows multiple hospitals to train a shared model without ever exchanging sensitive patient images. However, FL faces a massive hurdle: Non-IID data.

In the real world, one hospital might have thousands of high-grade glioma cases, while a smaller clinic has only a handful of diverse scans. This "data skew" (imbalance in quantity and variety) causes standard federated algorithms like FedAvg to converge slowly and generalize poorly. The FedHG (Federated High-Generalization) algorithm aims to bridge this gap, ensuring that a model trained across scattered, imbalanced silos performs nearly as well as one trained on a single, massive, centralized dataset.

The FedHG Framework

The authors introduce FedHG, which attacks the problem of non-IID data from three distinct angles:

  1. Client-Side Virtual Adversarial Training (VAT): To help models learn from the limited data available at individual hospitals, VAT is integrated into a 3D U-Net. VAT works by applying tiny, "adversarial" perturbations to input images and forcing the model to remain consistent. This acts as a powerful regularizer, making the model more robust to the noise and scarcity typical of local datasets.
  2. Public Validation Weighting: Standard FL usually averages client updates based on the number of samples they have. FedHG is smarter: the central server maintains a small, representative "public validation set." It evaluates each client’s model against this set and assigns higher weights to updates from clients that demonstrate better general performance.
  3. Localized Instance Normalization (IN): Batch Normalization (BN) often fails in 3D medical imaging because the large memory requirements of 3D volumes force very small batch sizes. FedHG uses Instance Normalization and keeps these parameters local to each client, allowing the model to adapt to the specific "style" or contrast of each hospital's imaging equipment without degrading the global model.
Overview of the FedHG workflow and client-side Virtual Adversarial Training.

Experimental Setup

The study utilizes the BraTS 2021 (Brain Tumor Segmentation) dataset, a gold-standard benchmark containing multi-modal MRI scans (T1, T1ce, T2, and FLAIR) from over 1,000 patients. The model segments three specific areas: the Enhancing Tumor (ET), the Tumor Core (TC), and the Whole Tumor (WT). To test the algorithm's mettle, the researchers partitioned the data into challenging "non-IID" scenarios, grouping data by tumor type, sub-region, and volume to mimic real-world institutional disparities.

Performance Analysis

Empirical results demonstrate that FedHG significantly outperforms existing federated learning baselines.

  • Superior Accuracy: FedHG achieved a mean Dice Similarity Coefficient (DSC) of 87.3%, representing a 2.2% improvement over the standard FedAvg algorithm (85.1%).
  • Closing the Gap: Most impressively, FedHG reached within 3% of the performance of a centralized model (90.1% DSC), which represents the theoretical upper limit where all data is shared in a single location.
  • Faster Convergence: In head-to-head tests, FedHG reached optimal performance by the 33rd round, whereas FedAvg was still struggling to catch up by round 50.
Comparison of FedHG against standard federated and centralized training methods.

Conclusion

FedHG establishes a new standard for privacy-preserving brain tumor segmentation. By combining robust local regularization via VAT with a performance-based global aggregation strategy, it effectively mitigates the performance degradation typically caused by data imbalances in medical institutions. While the requirement for a public validation set remains a consideration for niche applications, the algorithm's ability to nearly match centralized training performance makes it a highly practical solution for real-world clinical collaboration.

Summary updated

BibTeX
@inproceedings{wen2025highly,
  author = {Jun Wen and Xiusheng Li and Xin Ye and Xiaoli Li and Hang Mao},
  title = {{A highly generalized federated learning algorithm for brain tumor segmentation}},
  booktitle = {Scientific},
  year = {2025},
  doi = {10.1038/s41598-025-05297-2},
}
Figure