Electronic health records (EHRs) are among the richest sources of clinical intelligence available today. They capture diagnoses, medications, lab values, vital signs, imaging reports, and free-text notes across millions of patient encounters. Machine learning models trained on large EHR corpora have demonstrated competitive performance in predicting sepsis onset, hospital readmission, and treatment response — yet the most capable models demand data volumes that no single institution can supply on its own.

The conventional solution — pooling records into a central repository — is seldom viable. Privacy regulations such as HIPAA in the United States, GDPR in Europe, and PDPA across Southeast Asia impose strict limits on cross-institutional data sharing. Beyond compliance, hospitals compete commercially and are reluctant to expose proprietary datasets. Federated learning (FL) resolves this tension by bringing the model to the data rather than the data to the model. Each participating hospital trains a local model update on its own records, transmits only gradients or parameters to a central aggregator, and discards nothing locally. Despite this architectural advance, raw gradients can still leak sensitive information through gradient inversion attacks (Zhu et al., 2019). Differential privacy (DP) closes this gap by injecting calibrated noise into each update, providing a mathematically rigorous bound on the information an adversary can extract.

This article surveys the intersection of FL and DP for EHR analysis: the core architectures, the privacy–utility trade-off, and the practical barriers that must be cleared before clinical deployment becomes routine.

Federated Aggregation Architectures The foundational FL algorithm, FedAvg, introduced by McMahan et al. (2017), averages local model weights proportional to each client's data volume. While straightforward, FedAvg assumes roughly identically distributed (IID) data across clients — an assumption that rarely holds in healthcare. A regional cancer centre and a rural general practice may share an EHR schema yet present wildly different disease prevalences and documentation styles.

Several aggregation strategies address this heterogeneity. FedProx (Li et al., 2020) adds a proximal regularisation term to local objectives, preventing individual clients from drifting too far from the global model. Personalised FL frameworks allow each hospital to maintain a client-specific head atop a shared representation, preserving institution-level nuance while still benefiting from collective training. For EHR tasks specifically, transformer-based language models pre-trained on clinical notes (e.g., ClinicalBERT variants) serve as strong starting points that converge faster under federation, reducing the communication rounds — and therefore the privacy budget consumed — before a useful model emerges.

Differential Privacy Mechanisms for Gradient Protection Differential privacy, formalised by Dwork et al. (2006), guarantees that the probability of any output changes by at most a factor of eε when a single individual's data is added or removed. The privacy loss parameter ε (epsilon) quantifies the bound: smaller ε means stronger protection but, in practice, more noise and degraded model utility.

Abadi et al. (2016) operationalised DP for deep learning through the DP-SGD algorithm, which clips each per-sample gradient to a maximum L2 norm, adds Gaussian noise scaled to the sensitivity and the noise multiplier σ, then accumulates a privacy budget via the moments accountant. Applied to FL, each hospital runs DP-SGD locally and the aggregator receives already-privatised updates; the composition of ε across rounds is tracked using Rényi differential privacy (RDP), which allows tighter budget accounting than naïve sequential composition.

A critical engineering decision is noise calibration. For a 12-layer transformer processing free-text clinical notes, gradient norms can vary enormously across layers. Adaptive clipping — adjusting the norm threshold dynamically using a quantile estimate while consuming only a fraction of the privacy budget — has emerged as a practical solution, preserving more signal in the early transformer layers where semantic representations form.

Privacy–Utility Trade-offs in Clinical Practice The fundamental tension in DP-FL is that noise sufficient to provide strong privacy guarantees (ε ≤ 1) typically degrades model performance, sometimes by several percentage points in AUROC on EHR prediction tasks. The magnitude of the penalty depends on dataset size, model architecture, and task complexity.

Large hospital networks with tens of thousands of records per client tolerate DP noise far better than smaller clinics. This creates a federation participation problem: privacy-constrained institutions that contribute little data also suffer the worst utility loss, potentially discouraging participation. Secure aggregation protocols — where the server sees only the sum of masked client updates, never individual contributions — help by allowing clients to add correlated noise that cancels in the aggregate (Bonawitz et al., 2017). The result is a lower effective noise level for the same ε guarantee, improving the privacy–utility frontier.

Recent work has also explored data-free knowledge distillation as an alternative to gradient sharing. Each hospital trains a local model and transmits soft-label predictions on a shared unlabelled proxy dataset; the aggregator distils a global model from these labels without ever receiving gradients. Because no gradient is transmitted, the attack surface for inversion is eliminated, though the privacy guarantee is harder to quantify formally.

Regulatory and Deployment Challenges Technical soundness is necessary but not sufficient for clinical adoption. Healthcare institutions operate under institutional review board (IRB) requirements that govern not just data use but model development processes. Federated training introduces novel audit challenges: when a model's prediction causes harm, it may be difficult to attribute responsibility across participating hospitals, each of which contributed to the global weights.

Interoperability is a parallel obstacle. EHR vendors use proprietary schemas, coding systems (ICD-10, SNOMED CT, LOINC), and documentation cultures that differ substantially. A federation spanning multiple vendors requires harmonisation layers — typically FHIR-compliant APIs — that add latency and engineering cost. Governments across Southeast Asia, where hospital digitisation has accelerated in recent years, are beginning to publish technical standards for health data exchange that could anchor future FL deployments.

Finally, communication overhead in large federations is non-trivial. Hospitals with limited bandwidth — a common constraint in regional and rural facilities — may struggle to transmit model updates within the round deadline, either dropping out or delaying convergence. Model compression techniques such as gradient sparsification and quantisation reduce payload size at a modest accuracy cost, and asynchronous FL protocols allow stragglers to contribute updates in subsequent rounds.

Conclusion Federated learning with differential privacy represents the most principled available approach to multi-institutional EHR model training: it preserves regulatory compliance, limits re-identification risk with formal guarantees, and still allows the model to learn from geographically distributed patient populations. Significant challenges remain — the privacy–utility trade-off, non-IID data distributions, interoperability barriers, and audit accountability — but progress on each front is rapid. As FHIR adoption expands and privacy accounting tools mature, the combination of FL and DP is well positioned to become the standard infrastructure for collaborative clinical AI.

References

References

Abadi, M., Chu, A., Goodfellow, I., McMahan, H. B., Mironov, I., Talwar, K., & Zhang, L. (2016). Deep learning with differential privacy. Proceedings of the 2016 ACM SIGSAC Conference on Computer and Communications Security, 308–318. https://doi.org/10.1145/2976749.2978318

Bonawitz, K., Ivanov, V., Kreuter, B., Marcedone, A., McMahan, H. B., Patel, S., Ramage, D., Segal, A., & Seth, K. (2017). Practical secure aggregation for privacy-preserving machine learning. Proceedings of the 2017 ACM SIGSAC Conference on Computer and Communications Security, 1175–1191. https://doi.org/10.1145/3133956.3133982

Dwork, C., McSherry, F., Nissim, K., & Smith, A. (2006). Calibrating noise to sensitivity in private data analysis. In Theory of Cryptography Conference (pp. 265–284). Springer. https://doi.org/10.1007/11681878_14

Li, T., Sahu, A. K., Zaheer, M., Sanjabi, M., Talwalkar, A., & Smith, V. (2020). Federated optimization in heterogeneous networks. Proceedings of Machine Learning and Systems, 2, 429–450. https://doi.org/10.48550/arXiv.1812.06127

McMahan, H. B., Moore, E., Ramage, D., Hampson, S., & Agüera y Arcas, B. (2017). Communication-efficient learning of deep networks from decentralized data. Proceedings of the 20th International Conference on Artificial Intelligence and Statistics, 1273–1282. http://proceedings.mlr.press/v54/mcmahan17a.html

Zhu, L., Liu, Z., & Han, S. (2019). Deep leakage from gradients. Advances in Neural Information Processing Systems, 32. https://proceedings.neurips.cc/paper_files/paper/2019/hash/60a6c4002cc7b29142def8871531281a-Abstract.html