Electronic health records (EHRs) contain rich health information for uncovering latent patient representations and clinically meaningful subgroups. Learning from EHR data across institutions is valuable because representations learned at a single site may reflect local data patterns and lack generalizability, yet pooling patient-level records across institutions is often impractical because of privacy constraints and communication costs. We propose a communication-efficient, non-iterative federated spectral method for learning shared latent representation components from multi-institutional EHRs, in which each institution shares aggregate marginal frequencies and a low-rank spectral summary while keeping patient-level records local. A central server aggregates these summaries with the pooled marginal frequencies to recover both the shared low-rank structure and the canonical row-normalization direction required for interpretable representation recovery. We prove row-wise recovery guarantees and error bounds, with a leading federated variance term matching a corresponding lower bound under explicit regularity conditions. Simulations show that our method closely matches pooled analysis in estimating latent representation components, improves as more sites contribute summaries, and outperforms single-site and existing federated benchmarks across a range of data settings. Applied to real-world multi-facility EHR data for stroke patients, the method learns interpretable patient representations that highlight clinically distinct subgroups and could help inform subgroup-specific care.
Figures & tables
Appendix figures & tables3 assets
Supplementary material from the paper’s appendix.
Appendix
Assumption
Single-site role
Federated role
Anchor words
Guarantees the ideal simplex and justifies vertex hunting.
Same role; used only after the ratio cloud has been constructed.
hmin≳p−1
Gives M0(j,j)≍hj and the row-wise scale.
Same role; also turns pooled marginal concentration into the hj−1/2 row scale.
Pooled ΣW and λmin(ΣA)
Enter oracle geometry, row scales, and the recovery identity.
Enter the canonical positive direction ξ1=M01/21 , bounded simplex geometry, and the lower bound.
Client-level ΣW,m
Not present.
Controls local signal gaps and local projector perturbation.
Appendix
Table 1: How the assumptions are used.
Variable
Overall
MGH
NWH
BWH
SRH
SMD
number of patients (n)
7,057
4,358
154
2,254
291
Age at admission, years, mean (SD)
66.8 (15.6)
66.2 (15.8)
74.6 (14.1)
67.6 (15.0)
65.8 (17.3)
0.306
Missing
4 (0.1%)
4 (0.1%)
0 (0.0%)
0 (0.0%)
0 (0.0%)
Sex at birth, n (%)
0.227
Female
855 (12.1%)
487 (11.2%)
35 (22.7%)
294 (13.0%)
39 (13.4%)
Male
1,000 (14.2%)
564 (12.9%)
24 (15.6%)
346 (15.4%)
66 (22.7%)
Appendix
Table 2: Demographic characteristics overall and across hospitals. Hospitals: Massachusetts General Hospital (MGH), Newton–Wellesley Hospital (NWH), Brigham and Women’s Hospital (BWH), and Spaulding Rehabilitation Hospital (SRH). SD: standard deviation; SMD: standardized mean difference, averaged across hospital pairs.
Outcome
Pooled Topic-SCORE
Federated Topic-SCORE
Federated LDA
Mortality (RMST)
41.5 (29.6, 53.2)
42.2 (28.7, 53.1)
13.8 (8.1, 22.0)
Recurrent stroke (RMTL)
9.9 (5.2, 21.2)
9.3 (3.4, 15.2)
9.0 (5.9, 15.2)
ICH (RMTL)
6.2 (4.8, 8.1)
5.8 (3.6, 10.8)
3.8 (2.3, 7.0)
Appendix
Table 3: Median pairwise RMST/RMTL difference for 365-day mortality, recurrent ischemic stroke readmission, or intracerebral hemorrhage (ICH) readmission. Values are the median absolute pairwise RMST (mortality) or RMTL (recurrent stroke and ICH) differences (in days) across the 10 comparisons among five dominant-topic patient groups, reported in days with patient-level bootstrap 95% confidence intervals in parentheses.
Synthetic Electronic Health Record (EHR) generation provides a promising avenue for data augmentation and cross-hospital modeling in privacy-constrained healthcare settings. However, most existing EHR generative models are centralized and require pooling data across hospitals, which is often infeasible when real-world data sharing is restricted. While federated EHR generation offers a natural solution, direct federated modeling often collapses or diverges due to the high dimensionality, sparsity, and cross-hospital heterogeneity of EHR data. In this work, we propose FedEHR-Gen, the first federated framework for synthetic time-series EHR generation across distributed hospitals. FedEHR-Gen uses a two-stage learning paradigm. First, we introduce a federated autoencoder that projects high-dimensional and sparse EHR features onto a compact latent space. To ensure semantic consistency across hospitals, we develop a layer-wise matching aggregation mechanism that aligns local encoders into a unified global latent space. Second, operating on this aligned latent space, we train a federated temporal conditional variational autoencoder (TCVAE) with distribution-aware aggregation, enabling stable temporal generative modeling under severe cross-hospital heterogeneity. Extensive experiments on the eICU and MIMIC-III datasets demonstrate that FedEHR-Gen achieves generation fidelity, downstream utility, and privacy risk comparable to centralized training, while consistently outperforming the standard federated baseline.
Jun Bai, Ziyang Song, Yue Li
McGill University Mila - Quebec AI Institute Montreal, Canada · Ohio University Athens, United States
Recent advances in large language models are enabling autonomous clinical agents to perform increasingly complex electronic health record (EHR) modeling workflows. However, agents deployed at individual hospitals remain constrained by institution-specific data and modeling environments, while direct cross-hospital collaboration is restricted by the sensitivity of patient-level EHR data. Although federated learning (FL) provides a natural foundation for privacy-preserving collaboration, existing approaches remain predominantly model-centric, limiting federation to prediction models or their updates while overlooking the richer modeling experience accumulated by autonomous agents. To address this limitation, we propose FedEHR-Agents, an experience-centric federated agentic optimization framework for automated EHR modeling. Each hospital deploys an autonomous clinical EHR agent that performs data preprocessing and model development while refining local clinical modeling experience through historical memory, task-specific evaluation, and TextGrad-based prompt refinement. The federated server performs evidence-guided experience aggregation to integrate reliable and complementary modeling experience across heterogeneous hospitals and distills the aggregated experience into global meta-prompts for subsequent local refinement. Extensive experiments on real-world multi-hospital EHR benchmarks demonstrate that FedEHR-Agents consistently outperforms local and federated baselines across diverse clinical prediction tasks and remains robust across different federation scales and LLM backbones. These results establish clinical modeling experience as a promising collaborative object beyond conventional parameter-centric FL and point toward federated autonomous clinical intelligence.
Jun Bai, Ruilin Wang, Yue Li
School of Computer Science, McGill University, Montreal, Canada · Mila – Quebec AI Institute, Montreal, Canada
Recent reviews find that the vast majority of published healthcare federated learning (FL) studies never reach real-world deployment. We developed an embedding-based FL pipeline for iron deficiency prediction from routine full blood count (FBC) data and deployed it across real institutional environments at Amsterdam University Medical Centre (AUMC) and NHS Blood and Transplant (NHSBT), two clinical environments that differ markedly in iron deficiency prevalence, ferritin distribution, and subject populations. A frozen domain-specific haematology foundation model, DeepCBC, performs site-local representation extraction, restricting federated training to a compact downstream classifier and substantially reducing recurrent communication relative to full-encoder federation. The two clinical datasets are structurally not independent and identically distributed (non-IID), with heterogeneity arising from distinct population differences rather than sampling artefacts. Runtime governance is enforced by FLA3, a healthcare-oriented FL platform providing study-scoped execution, policy-based authorisation, and signed audit logging. Standard sample-size-weighted aggregation (FedAvg) reduced the area under the receiver operating characteristic curve (ROC-AUC) at both sites relative to local-only training, as the global update was biased towards the larger AUMC distribution. FedMAP, a personalised aggregation method, raised ROC-AUC from 0.9470 to 0.9594 at AUMC and from 0.8558 to 0.8671 at NHSBT relative to local-only training, achieving the highest macro ROC-AUC of 0.9133 and the best macro balanced accuracy overall. These results support personalised aggregation in clinical federations where client sample size and task relevance diverge substantially.
Fan Zhang, Simon Deltadahl, Majid Lotfian Delouee +10
Dept. of Applied Mathematics and Theoretical Physics University of Cambridge Cambridge, UK · Translational AI Laboratory, Dept. of Laboratory Medicine Amsterdam UMC Amsterdam, The Netherlands · Precision Health University Research Institute Queen Mary Univ. of London London, UK +3