Introduction
Federated Learning (FL) has emerged as a transformative paradigm for medical AI, allowing multiple institutions to collaboratively train models without sharing sensitive patient data. However, deploying FL in real-world clinical settings faces two significant hurdles: data heterogeneity and privacy vulnerabilities. Different hospitals often use scanners from various manufacturers with distinct settings, leading to a "Non-IID" (not identically and independently distributed) data problem. Furthermore, recent research has shown that raw medical images can sometimes be reconstructed from the gradient updates shared during training.
To address these challenges, the PPPML-HMI (Personalized and Privacy-Preserving Machine Learning for Heterogeneous Medical Imaging) framework was developed. This open-source framework combines meta-learning for personalization with a novel decentralized, encrypted aggregation method to ensure both high performance and robust security.
Personalized Learning for Heterogeneous Data
Standard FL algorithms like FedAvg aim to find a single "global" model that performs well across all participating sites. In medical imaging, where a CT scan from a GE scanner at one hospital looks fundamentally different from a Philips scanner at another, this "one-size-fits-all" approach often fails. In some cases, a global model can even perform worse than a model trained locally on a small, site-specific dataset.
PPPML-HMI utilizes PerFedAvg, a meta-learning approach inspired by Model-Agnostic Meta-Learning (MAML). Instead of training a static global model, the system trains a "meta-model" designed to be an optimal starting point. Each hospital then performs a few local updates on this meta-model using its own data. This results in a personalized model tailored to the specific scanner characteristics and patient demographics of each institution, significantly improving local diagnostic accuracy.
Privacy-Preserving Aggregation via CSAHE
While FL avoids sharing raw data, the "gradients" (mathematical updates) sent to a central server can be reverse-engineered via advanced attacks like Improved Deep Leakage from Gradients (iDLG). PPPML-HMI introduces CSAHE (Cyclic Secure Aggregation with Homomorphic Encryption) to eliminate this risk.
Unlike traditional FL, which relies on a central server for aggregation, CSAHE employs a decentralized cyclic loop:
- Masking: An initiator hospital adds a random "mask" to its local gradient.
- Homomorphic Encryption: The data is encrypted using the CKKS scheme, which allows mathematical operations (like addition) to be performed directly on encrypted data while it remains secure.
- Cyclic Passing: The encrypted package is passed around a circle of participating hospitals. Each hospital adds its own encrypted gradient to the total.
- Decryption: Once the package returns to the initiator, the mask is removed, and the total sum is decrypted.
Because the server only ever sees the final, aggregated sum of all gradients, it is impossible to isolate or reconstruct the data of any individual hospital. This method requires at least three participants ($n \ge 3$) to ensure that no single participant's contribution can be deduced by another.
Experimental Results
The framework was rigorously tested on two distinct medical imaging tasks: a simulated classification task using the RAD-ChestCT dataset (35,747 scans) and a real-world COVID-19 lung infection segmentation task using 180 CT scans from five different hospitals.
Key findings include:
- Superior Accuracy: In the COVID-19 segmentation task, PPPML-HMI achieved a Dice score approximately 5% higher than conventional FL methods.
- Ironclad Privacy: When subjected to simulated iDLG attacks, standard FL allowed for the reconstruction of recognizable CT images. In contrast, the gradients protected by PPPML-HMI yielded only unrecoverable noise.
- Manageable Overhead: While homomorphic encryption is computationally intensive, the total training time for the segmentation task was only 35.5% longer than standard FL (149 hours vs. 110 hours). This is a reasonable trade-off for the level of security provided in clinical applications.
Conclusion
PPPML-HMI proves that the trade-off between accuracy and privacy in federated learning is not inevitable. By integrating meta-learning with decentralized, encrypted aggregation, the framework provides a robust solution for heterogeneous medical image analysis. Future work will focus on optimizing the framework for environments with high network latency and addressing computational imbalances between large research centers and smaller clinics.
Summary updated