Federated Learning and Differential Privacy Techniques on Multi-hospital Population-scale Electrocardiogram Data

Weijie Sun, Vikhyat Agrawal, Sunil Vasu Kalmady, Venkataseetharam Manoj Malipeddi, Manisimha Varma Manthena, Weijie Sun 0004, Md. Saiful Islam, Abram Hindle, Padma Kaul, Russell GreinerIcmhi 2024

TL;DR

This paper explores applying Federated Learning (FL) and Differential Privacy (DP) to train ECG classification models across multiple hospitals without sharing raw patient data. They demonstrate that FL can achieve performance comparable to traditional pooled models, especially benefiting hospitals with limited data, while DP adds a crucial layer of privacy protection at the cost of some performance.

What Problem Does This Paper Address?

Diagnosing cardiac and other medical conditions using Electrocardiograms (ECGs) is critical, but manual analysis is time-consuming and error-prone. Developing accurate, generalizable AI models requires large, diverse datasets. However, aggregating ECG data from multiple hospitals presents significant challenges:

  • Data Silos: Hospitals are reluctant to share sensitive patient data due to privacy concerns and regulatory requirements (like HIPAA and GDPR).
  • Data Heterogeneity: Data from different hospitals can vary in format, acquisition protocols, and patient demographics, leading to "covariate shift" that degrades model performance when trained on one hospital's data and applied to another's.
  • Privacy Mandates: Protecting patient confidentiality is paramount, making traditional data aggregation methods problematic.

This paper aims to address these challenges by leveraging Federated Learning (FL) to train models collaboratively across hospitals without direct data sharing, and Differential Privacy (DP) to further enhance the privacy of the training process.

Methods

The study employs two core techniques:

  • Federated Learning (FL): Specifically, the Federated Averaging (FedAvg) algorithm is used. In this approach, each hospital trains a local ECG classification model on its own data. Instead of sending raw data, only model updates (gradients) are sent to a central server. The server aggregates these updates to create a global model, which is then sent back to the hospitals for further refinement. This allows for collaborative model training while keeping data localized.
  • Differential Privacy (DP): To add an extra layer of privacy, the Differentially Private Stochastic Gradient Descent (DP-SGD) algorithm is integrated into the FL training process. DP-SGD works by adding controlled noise to the gradient computations during model training. This noise makes it statistically difficult to infer whether any single individual's data was included in the training set, thus providing a mathematical guarantee of privacy. The study uses the Opacus library and Rényi Differential Privacy for tracking privacy.

The prediction task is a multi-label classification problem, aiming to predict the probability of 10 specific cardiovascular and metabolic diseases based on ECG waveforms and demographic data.

Datasets

The study utilizes a large-scale, multi-hospital ECG dataset:

  • Source: Data was collected from 7 hospitals in Alberta, Canada, between February 2007 and April 2020.
  • Size: The final dataset comprises 1,565,849 ECG tracings from 243,128 patients.
  • Data Format: Standard 12-lead ECG tracings, sampled at 500 Hz over 10 seconds.
  • Labels: ECGs are linked to administrative health records, providing ICD-10 diagnosis codes for 10 specific diseases with at least 15,000 instances each.
  • Splits: The data was split into development (60%) and holdout (40%) sets, with the development set further divided into training (80%) and tuning (20%).

This dataset is a real-world, multi-hospital dataset, differing from many prior studies that used single-hospital datasets like MIT-BIH.

Key Insights and Ideas

  • FL for Real-World Healthcare: The study demonstrates that FL can be effectively applied to multi-hospital ECG data, mirroring a more realistic deployment scenario than previous work that often treated individual patients as nodes.
  • Performance Equivalence: FL, when implemented correctly, can achieve performance comparable to a "pooled" approach (where all data is centralized), suggesting that privacy-preserving federated training doesn't necessarily mean a significant performance sacrifice.
  • Benefit for Data-Scarce Hospitals: Hospitals with limited ECG data can benefit significantly from adopting FL models, potentially leveraging the collective knowledge from larger datasets.
  • The Privacy-Performance Trade-off: Implementing DP-SGD introduces a clear trade-off: increasing privacy (lower epsilon values) leads to a decrease in model performance, and vice-versa. This is a fundamental challenge in privacy-preserving machine learning.
  • Inter-site vs. Intra-site: While FL aims for inter-site collaboration, the study notes that models often perform best when trained and tested on data from the same site, highlighting the persistent challenge of covariate shift.

Key Results

  • FL vs. Pooled: The FL approach achieved AUROC scores that were negligibly lower (less than 2%) than the pooled approach across most sites. The performance difference was statistically significant only for one site.
  • DP Impact: As the privacy level (epsilon) decreased, model performance (AUROC) consistently decreased across all sites, approaching random guessing (0.5 AUROC) at very low epsilon values.
  • Hospital Size Matters: Hospitals with smaller sample sizes showed more marked performance improvements with FL compared to individually trained models.
  • Inter-site Testing: Models trained on sites with more data (e.g., Site 1 and 2) performed well when tested across all sites. However, intra-site testing generally outperformed inter-site testing, indicating that models still benefit from training on data that closely matches the test distribution.

Limitations and Future Work

  • Single Manufacturer ECGs: The study used ECGs from a single manufacturer, which might limit the generalizability of findings to ECGs from different devices.
  • Label Selection: While the chosen ICD-10 codes are clinically relevant and predictable, future work could explore other diagnostic categories.
  • Optimal DP Epsilon: Determining the optimal epsilon value for DP is crucial. The paper suggests using Membership Inference Attacks to evaluate privacy measures and notes that epsilon values below 10 are generally considered to provide substantial privacy assurance.
  • Computational Cost: DP-SGD can increase training time and resource requirements, which is a practical consideration for real-time applications.
  • Future Directions: The authors suggest further research into alternative FL aggregation methods for non-IID data and more sophisticated DP techniques to better balance privacy and performance.

Summary updated

BibTeX
@inproceedings{sun2024federated,
  author = {Weijie Sun and Vikhyat Agrawal and Sunil Vasu Kalmady and Venkataseetharam Manoj Malipeddi and Manisimha Varma Manthena and Weijie Sun and Md. Saiful Islam and Abram Hindle and Padma Kaul and Russell Greiner},
  title = {{Federated Learning and Differential Privacy Techniques on Multi-hospital Population-scale Electrocardiogram Data}},
  booktitle = {Icmhi},
  year = {2024},
  doi = {10.1145/3673971.3673990},
}
Figure