Federated Learning with Adaptive Batchnorm for Personalized Healthcare

Yiqiang Chen, Wang Lu, Jindong Wang, Xin Qin, Tao Qin

Abstract

Federated Learning (FL) offers a privacy-preserving pathway for collaborative model training in healthcare. However, the inherent non-IID nature of medical data—where distributions vary significantly across institutions—often degrades the performance of global models. We present FedAP (Adaptive Patchnorm), a personalized FL framework that leverages Batch Normalization (BN) statistics to quantify client similarities. By performing weighted aggregation based on these similarities, FedAP creates tailored models for each participant. Our evaluation across five healthcare benchmarks demonstrates over 10% accuracy improvements and significantly faster convergence compared to traditional FL methods.

Introduction: The Challenge of Heterogeneous Healthcare Data

Standard Federated Learning algorithms, such as FedAvg, aim to produce a single global model. In healthcare, this approach is often suboptimal because patient data is rarely identically and independently distributed (non-IID). A model optimized for one demographic or clinical setting may perform poorly in another due to differences in lifestyle, physical patterns, or equipment calibration.

Class distribution across clients for various healthcare datasets, illustrating the non-IID challenge.

Existing personalized FL methods frequently overlook the latent similarities between specific subsets of clients or rely on centralized public datasets that are difficult to obtain in the medical domain. FedAP addresses this by identifying and harnessing commonalities between similar clients while preserving individual data characteristics.

Methodology: FedAP and Adaptive Batchnorm

The core innovation of FedAP lies in its use of Batch Normalization (BN) layers as "data fingerprints." BN layers store sufficient statistics—mean ($\mu$) and variance ($\sigma^2$)—that indirectly represent a client's local data distribution.

Similarity Mapping and Weighted Aggregation

FedAP employs a multi-step process to personalize models:

  1. Feature Extraction: Clients pass local data through a pre-trained model to generate BN statistics.
  2. Similarity Calculation: These statistics are sent to the server, which computes a Similarity Matrix ($W$) using the Wasserstein distance between distributions. This matrix quantifies the "closeness" of any two clients.
  3. Personalized Aggregation: Instead of simple averaging, the server performs a weighted update. For a specific client, updates from "similar" clients are prioritized, while those from "dissimilar" clients are down-weighted.
FedAP Architecture: Similarity mapping and weighted aggregation based on BN statistics.

Local vs. Shared Layers

To mitigate domain shift (e.g., varying sensor calibrations), FedAP maintains BN layers locally at each client. Meanwhile, the weights of convolutional and fully connected layers are shared and aggregated, allowing clients to benefit from collaborative learning without compromising their unique local data representations.

Experimental Evaluation

FedAP was evaluated on five diverse healthcare benchmarks to ensure robustness:

  • PAMAP2: Physical activity monitoring via inertial sensors.
  • COVID-19: Chest X-ray images for pneumonia and COVID-19 detection.
  • MedMNIST (OrganAMNIST/CMNIST/SMNIST): Abdominal CT images across 11 organ classes.

To simulate real-world fragmentation, datasets were partitioned into 20 clients using a Dirichlet distribution, creating highly unbalanced class distributions.

Key Results and Insights

FedAP consistently outperformed state-of-the-art methods like FedAvg, FedProx, FedBN, and FedPer.

  • Accuracy Gains: On the PAMAP2 dataset, FedAP achieved 81.14% accuracy, significantly higher than FedAvg’s 67.5%. In the COVID-19 task, it outperformed the nearest competitor by 6.3%.
  • Convergence Speed: FedAP reached peak performance in 10–20 rounds, whereas methods like FedBN often required over 400 rounds. This drastic reduction in communication overhead is critical for hospital-scale deployments.
  • Privacy-Preserving Collaboration: By sharing only $\mu$ and $\sigma$ rather than raw gradients or data, FedAP maintains a high privacy standard while enabling effective cross-institutional learning.

Conclusion and Future Directions

FedAP demonstrates that BN statistics are a powerful, low-overhead proxy for data distribution in federated settings. While the current implementation relies on pre-trained models for initial statistics, future work could explore dynamic similarity updates as training progresses. Additionally, optimizing the $N \times N$ similarity matrix calculation will be essential for scaling to larger networks of edge devices.

Summary updated

BibTeX
@article{chen2024federated,
  author = {Yiqiang Chen and Wang Lu and Jindong Wang and Xin Qin and Tao Qin},
  title = {{Federated Learning with Adaptive Batchnorm for Personalized Healthcare}},
  journal = {IEEE Trans. Big Data},
  year = {2024},
  doi = {10.1109/tbdata.2022.3177197},
}
Figure