Abstract
Federated learning (FL) enables collaborative analysis of decentralized medical data while preserving patient privacy. However, the covariate shift from demographic and clinical differences can reduce model generalizability. We propose FedWeight, a novel FL framework that mitigates covariate shift by reweighting patient data from the source sites using density estimators, allowing the trained model to better align with the distribution of the target site. To support unsupervised applications, we introduce FedWeight ETM, a federated embedded topic model. We evaluated FedWeight in cross-site FL on the eICU dataset and cross-dataset FL between eICU and MIMIC III. FedWeight consistently outperforms standard FL baselines in predicting ICU mortality, ventilator use, sepsis diagnosis, and length of stay. SHAP-based interpretation and ETM-based topic modeling reveal improved identification of clinically relevant characteristics and disease topics associated with ICU readmission.
Introduction
Machine learning in healthcare faces a significant challenge: the need for large-scale datasets versus the necessity of patient privacy. Federated Learning (FL) addresses this by training models locally at hospitals and sharing only model updates. However, a major obstacle remains: covariate shift. Clinical environments vary significantly; a model trained on data from a specialized urban hospital may not generalize to a rural clinic due to differences in patient demographics, local practices, and even medical terminology. Standard FL algorithms like FedAvg assume homogeneous data distributions, leading to biased or inaccurate models when applied to diverse target populations.
Methodology: The FedWeight Framework
The authors propose FedWeight, a framework designed to align source data distributions with a target site through importance sampling.
Density Estimation and Patient Re-weighting
Instead of sharing raw data, the target hospital trains a privacy-preserving density estimator (e.g., MADE, VAE, or VQ-VAE) to capture the statistical distribution of its patient population. This model is shared with source hospitals, which then use it to calculate weights for their local patients. Patients who closely resemble the target population receive higher weights, while outliers are down-weighted, ensuring the global model is optimized for the target site's specific characteristics.
FedWeight ETM
For unsupervised tasks, the framework includes FedWeight ETM (Federated Embedded Topic Model). This extension allows for the discovery of latent clinical "topics" across sites while accounting for distribution mismatches, facilitating the identification of common disease patterns in a decentralized manner.
Data Harmonization Pipeline
Electronic Health Record (EHR) data is notoriously inconsistent. To address this, the authors developed a pipeline using HICL codes and BioWordVec to standardize drug names and laboratory tests. This process significantly reduces noise; for instance, unrecorded or inconsistently named drugs in the eICU dataset were reduced from 40% to 20%.
Experimental Evaluation
The study utilized two major public EHR databases:
- eICU Collaborative Research Database: Comprising data from 208 hospitals. The evaluation focused on the 10 hospitals with the largest patient populations.
- MIMIC-III: Used for cross-dataset evaluation to test the model's ability to generalize from eICU data to a completely different clinical system.
FedWeight was benchmarked against standard FL algorithms, including FedAvg and FedProx, across four critical ICU prediction tasks: mortality, ventilator requirement, sepsis diagnosis, and length of stay.
Key Results
FedWeight demonstrated superior performance and robustness across all evaluated scenarios.
- Predictive Accuracy: In mortality prediction, FedWeight achieved an average AUPRC of approximately 0.923, outperforming FedAvg (0.917).
- Generalizability: In the challenging cross-dataset task (eICU to MIMIC-III), FedWeight provided more stable performance with lower variance than baseline methods, indicating better handling of significant covariate shifts.
- Clinical Interpretability: Using SHAP (Shapley Additive Explanations), the authors confirmed that FedWeight identifies clinically relevant features. For mortality prediction, the model correctly prioritized high-impact features such as vasopressors and anesthetics. Furthermore, FedWeight-ETM successfully identified distinct disease topics (e.g., septicemia, chronic renal failure) that correlate strongly with patient outcomes.
Conclusion
FedWeight represents a significant advancement in applying Federated Learning to the complexities of real-world healthcare data. By combining privacy-preserving density estimation with robust data harmonization, it effectively mitigates the impact of covariate shift. Future research will focus on zero-shot generalization to unseen sites, handling more granular time-series data, and incorporating formal differential privacy guarantees to further strengthen data security.
Summary updated