Papers
Topics
Authors
Recent
Search
2000 character limit reached

FedEHR-Gen: Federated Synthetic EHR Generation

Updated 5 July 2026
  • FedEHR-Gen is a federated framework that generates synthetic time-series electronic health records while preserving privacy and managing high-dimensional, sparse, and heterogeneous data.
  • It operates in two stages: first aligning local latent representations using binary autoencoders, then modeling temporal dynamics with a conditional variational autoencoder and distribution-aware aggregation.
  • Empirical results demonstrate that FedEHR-Gen improves predictive performance and privacy metrics compared to standard federated approaches, closely approaching centralized training outcomes.

Searching arXiv for the cited FedEHR-Gen and closely related federated EHR papers. FedEHR-Gen is a federated framework for generating synthetic time-series electronic health records across multiple hospitals without pooling raw patient data. It is presented as the first federated framework for synthetic time-series EHR generation across distributed hospitals, and it is organized as a two-stage learning paradigm: a federated autoencoding stage that aligns local latent spaces, followed by a federated temporal conditional variational autoencoder trained in that aligned latent space (Bai et al., 27 May 2026). The framework is motivated by a specific failure mode of direct federated generative modeling on EHR: high dimensionality, sparsity, temporal dependence, and severe cross-hospital heterogeneity make naïve parameter averaging unstable or divergent (Bai et al., 27 May 2026).

1. Conceptual scope and historical placement

FedEHR-Gen belongs to the line of work that treats federated learning as the natural collaboration mechanism for healthcare data, since hospitals keep data locally and exchange only model updates or model parameters rather than raw records. Earlier work on heterogeneous EHR federation showed that universal text-based patient representations can make cross-system predictive federated learning feasible, but remained purely discriminative rather than generative (Kim et al., 2022). Similarly, federated BEHRT-style masked language modeling demonstrated that federated pretraining of diagnosis-sequence encoders can approach centralized performance, yet it still targeted representation learning and next-visit prediction rather than synthetic patient generation (Shoham et al., 2023).

Within explicitly generative work, an early federated GAN study showed that binary tabular ICU diagnosis data could be synthesized across simulated silos with little degradation relative to centralized training, but it relied on similarly structured data and a sequential weight-handoff procedure rather than the latent-alignment and heterogeneity-aware design used by FedEHR-Gen (Weldon et al., 2021). Other adjacent approaches are complementary rather than equivalent. HealthGen addressed conditional generation of longitudinal ICU EHRs with explicit missingness modeling, but it was centralized rather than federated (Bing et al., 2022). Federated Timeline Synthesis proposed a different federated generative route in which each institution trains its own autoregressive transformer and the server trains a Global Generator on synthetic trajectories sampled from local generators, again without using FedAvg-style aggregation (Renc et al., 29 Jun 2025). This suggests that FedEHR-Gen should be understood as one member of a broader class of federated EHR generators, distinguished by latent-space alignment and distribution-aware temporal aggregation rather than by autoregressive distillation or tabular GAN training.

A common misconception is that all federated EHR work addresses generation once it uses tokenized or textual patient records. That is not the case. Several closely related frameworks for heterogeneous EHR federation, client selection, and privacy-preserving tabular prediction explicitly do not include a generative component (Kim et al., 2024, Ganadily et al., 2024). FedEHR-Gen is defined precisely by its aim to generate synthetic time-series EHR sequences rather than merely to learn predictive representations or discriminative risk models (Bai et al., 27 May 2026).

2. Problem formulation and design rationale

The motivating data regime is high-dimensional multi-hot time-series EHR. For hospital kk, the local dataset is written as

X(k){0,1}Nk×T×D,\mathbf{X}^{(k)} \in \{0,1\}^{N_k \times T \times D},

where each observation xn,t(k){0,1}D\mathbf{x}^{(k)}_{n,t} \in \{0,1\}^D is sparse and high-dimensional (Bai et al., 27 May 2026). The paper argues that direct federated temporal generation in this raw space fails because hospitals differ in patient mix, workflow, coding practice, and measurement frequency, while the representation itself is extremely sparse and each timestamp is encoded as a large binary vector (Bai et al., 27 May 2026).

FedEHR-Gen therefore decomposes the problem into two coupled subproblems. First, it learns a compact latent representation of sparse EHR observations. Second, it models temporal dynamics in that latent space rather than in raw feature space. This decomposition is not merely computational. The paper further argues that latent coordinates learned independently at different hospitals are not semantically aligned, so ordinary averaging can corrupt the encoder even when local encoders are functionally similar up to latent-unit permutations (Bai et al., 27 May 2026).

The two stages are thus conceptually distinct. Stage 1 solves a representation-alignment problem; Stage 2 solves a heterogeneity-aware temporal generation problem. The architecture does not directly federate a temporal generator over raw EHR features, and it replaces naïve parameter averaging with two specialized aggregation mechanisms: layer-wise matching for encoders and distribution-aware weighting for temporal generators (Bai et al., 27 May 2026).

3. Stage 1: federated binary autoencoder and latent-space alignment

Each hospital trains a local binary autoencoder with encoder fϕ(k)f_{\phi^{(k)}} and decoder gθ(k)g_{\theta^{(k)}}:

zn,t(k)=fϕ(k) ⁣(xn,t(k))Rd,\mathbf{z}^{(k)}_{n,t} = f_{\phi^{(k)}}\!\left(\mathbf{x}^{(k)}_{n,t}\right)\in\mathbb{R}^{d},

x^n,t(k)=gθ(k) ⁣(zn,t(k))(0,1)D.\hat{\mathbf{x}}^{(k)}_{n,t} = g_{\theta^{(k)}}\!\left(\mathbf{z}^{(k)}_{n,t}\right)\in(0,1)^D.

Because the inputs are binary multi-hot vectors, local training minimizes binary cross-entropy reconstruction loss:

LBAE(k)(ϕ(k),θ(k))=1NkTn=1Nkt=1TBCE ⁣(xn,t(k),x^n,t(k)).\mathcal{L}^{(k)}_{\mathrm{BAE}}(\phi^{(k)},\theta^{(k)}) = \frac{1}{N_k T}\sum_{n=1}^{N_k}\sum_{t=1}^{T} \mathrm{BCE}\!\left(\mathbf{x}^{(k)}_{n,t},\hat{\mathbf{x}}^{(k)}_{n,t}\right).

The paper does not introduce extra regularizers for the BAE beyond this reconstruction term (Bai et al., 27 May 2026).

The central technical issue is permutation invariance of hidden units. If two hospitals learn equivalent encoders up to different neuron orderings, then standard FedAvg produces an average that is generally not a coherent encoder (Bai et al., 27 May 2026). FedEHR-Gen addresses this with layer-wise matching aggregation. For encoder layer \ell, hospital kk has weight matrix X(k){0,1}Nk×T×D,\mathbf{X}^{(k)} \in \{0,1\}^{N_k \times T \times D},0, and the server solves a bipartite matching problem against a reference neuron ordering using a neuron similarity cost and the Hungarian algorithm:

X(k){0,1}Nk×T×D,\mathbf{X}^{(k)} \in \{0,1\}^{N_k \times T \times D},1

After alignment, the global layer is formed by permutation-aware averaging:

X(k){0,1}Nk×T×D,\mathbf{X}^{(k)} \in \{0,1\}^{N_k \times T \times D},2

The resulting aligned global encoder X(k){0,1}Nk×T×D,\mathbf{X}^{(k)} \in \{0,1\}^{N_k \times T \times D},3 defines a shared latent tensor

X(k){0,1}Nk×T×D,\mathbf{X}^{(k)} \in \{0,1\}^{N_k \times T \times D},4

After broadcast, each hospital replaces its local encoder with the aligned global encoder, applies the corresponding latent permutation to the decoder interface, freezes the encoder, and fine-tunes the local decoder (Bai et al., 27 May 2026).

This stage is the part of FedEHR-Gen that most directly addresses semantic incompatibility across hospitals. A plausible implication is that it functions as a latent interoperability layer for sparse time-series EHR, analogous in role—but not in mechanism—to the cross-site representation unification pursued by text-linearization frameworks for heterogeneous EHR prediction (Kim et al., 2022).

4. Stage 2: federated temporal conditional VAE with distribution-aware aggregation

The temporal generator operates on aligned latent trajectories rather than raw EHR vectors. A recurrent hidden state summarizes temporal history:

X(k){0,1}Nk×T×D,\mathbf{X}^{(k)} \in \{0,1\}^{N_k \times T \times D},5

where X(k){0,1}Nk×T×D,\mathbf{X}^{(k)} \in \{0,1\}^{N_k \times T \times D},6 denotes conditioning variables; the appendix specifies a two-layer LSTM backbone (Bai et al., 27 May 2026). Conditioned on X(k){0,1}Nk×T×D,\mathbf{X}^{(k)} \in \{0,1\}^{N_k \times T \times D},7 and X(k){0,1}Nk×T×D,\mathbf{X}^{(k)} \in \{0,1\}^{N_k \times T \times D},8, the model defines a prior, posterior, and likelihood:

X(k){0,1}Nk×T×D,\mathbf{X}^{(k)} \in \{0,1\}^{N_k \times T \times D},9

At hospital xn,t(k){0,1}D\mathbf{x}^{(k)}_{n,t} \in \{0,1\}^D0, local training minimizes a sequential ELBO:

xn,t(k){0,1}D\mathbf{x}^{(k)}_{n,t} \in \{0,1\}^D1

with the full conditional arguments given in the paper for xn,t(k){0,1}D\mathbf{x}^{(k)}_{n,t} \in \{0,1\}^D2, xn,t(k){0,1}D\mathbf{x}^{(k)}_{n,t} \in \{0,1\}^D3, and xn,t(k){0,1}D\mathbf{x}^{(k)}_{n,t} \in \{0,1\}^D4 (Bai et al., 27 May 2026).

The second specialized aggregation mechanism is distribution-aware aggregation. FedEHR-Gen defines a hospital-specific temporal latent distribution

xn,t(k){0,1}D\mathbf{x}^{(k)}_{n,t} \in \{0,1\}^D5

and then computes pairwise divergences

xn,t(k){0,1}D\mathbf{x}^{(k)}_{n,t} \in \{0,1\}^D6

The average divergence xn,t(k){0,1}D\mathbf{x}^{(k)}_{n,t} \in \{0,1\}^D7 is used to define aggregation weights

xn,t(k){0,1}D\mathbf{x}^{(k)}_{n,t} \in \{0,1\}^D8

and model components are aggregated as

xn,t(k){0,1}D\mathbf{x}^{(k)}_{n,t} \in \{0,1\}^D9

This explicitly downweights outlier hospitals whose temporal latent distributions are far from the rest (Bai et al., 27 May 2026).

After convergence, the global TCVAE recursively samples latent trajectories and each hospital decodes them with its local decoder:

fϕ(k)f_{\phi^{(k)}}0

The temporal generator is therefore global, whereas decoding is local. This division preserves shared temporal structure while allowing hospital-specific observation characteristics to remain local (Bai et al., 27 May 2026).

5. Empirical evaluation and reported findings

Experiments use eICU as the primary multi-hospital benchmark and MIMIC-III mainly for cross-dataset generalization, with preprocessing by FIDDLE into high-dimensional multi-hot binary time-series (Bai et al., 27 May 2026). Two tasks are defined: Mortality-48H and ARF-4H. The reported dataset statistics are substantial: for eICU, Mortality-48H has fϕ(k)f_{\phi^{(k)}}1, and ARF-4H has fϕ(k)f_{\phi^{(k)}}2; for MIMIC-III, Mortality-48H has fϕ(k)f_{\phi^{(k)}}3, and ARF-4H has fϕ(k)f_{\phi^{(k)}}4 (Bai et al., 27 May 2026). For eICU, the top 20 hospitals by sample size are used as federated clients, with within-hospital 70/15/15 train/validation/test splits and a pooled global test set (Bai et al., 27 May 2026).

Evaluation spans three axes. Fidelity is measured by fϕ(k)f_{\phi^{(k)}}5 between real and synthetic feature trajectories and by MMD, supplemented by feature-prevalence plots and UMAP visualizations. Downstream utility is assessed by AUPRC and AUROC for models trained on real, synthetic, or hybrid data, and by SHAP-value correlation with centralized-real models. Privacy risk is evaluated empirically using membership inference risk and nearest-neighbor adversarial accuracy (Bai et al., 27 May 2026).

The central empirical finding is that FedEHR-Gen consistently improves over a standard federated baseline and approaches centralized performance. On five eICU hospitals for ARF-4H, centralized training reports fϕ(k)f_{\phi^{(k)}}6 and MMD fϕ(k)f_{\phi^{(k)}}7, FedAvg gives fϕ(k)f_{\phi^{(k)}}8 and MMD fϕ(k)f_{\phi^{(k)}}9, while FedEHR-Gen reaches gθ(k)g_{\theta^{(k)}}0 and MMD gθ(k)g_{\theta^{(k)}}1 (Bai et al., 27 May 2026). For Mortality-48H, centralized training gives gθ(k)g_{\theta^{(k)}}2 and MMD gθ(k)g_{\theta^{(k)}}3, FedAvg yields gθ(k)g_{\theta^{(k)}}4 and MMD gθ(k)g_{\theta^{(k)}}5, and FedEHR-Gen reaches gθ(k)g_{\theta^{(k)}}6 and MMD gθ(k)g_{\theta^{(k)}}7 (Bai et al., 27 May 2026).

Downstream results show that synthetic-only training is worse than real-only training, but hybrid training consistently improves over both, and the best federated hybrid variant is the one using FedEHR-Gen-generated data. Relative to a FedAvg-based hybrid baseline, AUPRC improves from about 0.15 to 0.17 on ARF-4H and from about 0.34 to 0.41 on Mortality-48H; SHAP-value correlation with centralized-real models is around 0.85 for ARF-4H and around 0.86 for Mortality-48H (Bai et al., 27 May 2026). Empirical privacy risk is also lower than under FedAvg: on ARF-4H, MIR/NNAA change from 0.262/0.011 for FedAvg to 0.236/0.008 for FedEHR-Gen, and on Mortality-48H from 0.317/0.013 to 0.251/0.009 (Bai et al., 27 May 2026).

Ablations indicate that both components matter: removing matching aggregation causes a clear performance drop, and removing distribution-aware aggregation also hurts performance, though less severely. The full model achieves the best AUPRC and AUROC and converges faster than FedAvg and the ablated variants (Bai et al., 27 May 2026).

6. Relation to adjacent methods, limitations, and outlook

FedEHR-Gen addresses synthetic time-series generation directly, but it does not solve every federated EHR problem. It does not provide formal privacy guarantees; privacy is assessed empirically rather than through differential privacy or secure aggregation (Bai et al., 27 May 2026). This limitation is consistent with other healthcare FL work in which data locality is the main privacy mechanism and stronger defenses remain future work (Ganadily et al., 2024). The framework also requires multiple communication rounds, assumes all hospitals participate in every round, and introduces server-side Hungarian matching overhead in Stage 1 (Bai et al., 27 May 2026).

Another limitation is representational scope. FedEHR-Gen is built for sparse binary time-series EHR after FIDDLE preprocessing, not for free-text notes or fully multimodal structured-unstructured fusion. By contrast, multimodal generative foundation models such as GDP show how structured EHR time series and clinical text can be combined in a single generative architecture, but they are not federated (Sivarajkumar et al., 22 Aug 2025). A plausible implication is that FedEHR-Gen and GDP occupy complementary positions: the former contributes heterogeneity-aware federated generation for structured time-series, whereas the latter suggests how future federated extensions might incorporate richer modalities.

Finally, FedEHR-Gen should not be conflated with generalized heterogeneous-EHR federation more broadly. Text-linearization frameworks and client-selection methods show that schema heterogeneity can be mitigated for predictive FL without costly standardization (Kim et al., 2022, Kim et al., 2024), while federated self-supervised encoders such as BEHRT-style MLM provide a route to cross-site representation learning (Shoham et al., 2023). FedEHR-Gen advances a different frontier: stable synthetic time-series EHR generation under severe cross-hospital heterogeneity. Its future directions, as stated by the authors, include improved communication efficiency, stronger privacy mechanisms such as differential privacy, robustness to adversarial clients, and movement from a single global distribution-aware aggregate toward hospital-specific or personalized aggregation (Bai et al., 27 May 2026).

Topic to Video (Beta)

No one has generated a video about this topic yet.

Whiteboard

No one has generated a whiteboard explanation for this topic yet.

Follow Topic

Get notified by email when new papers are published related to FedEHR-Gen.