Abstract
Background Predictive modeling in healthcare holds promise for improving clinical outcomes, but in many low-resource settings, data fragmentation, privacy concerns, and infrastructural limitations hinder centralized machine learning approaches. This is particularly relevant in HIV care, where accurately identifying patients at risk of viral load (VL) non-suppression is essential for timely intervention.
Methods
We developed a privacy-preserving federated learning (FL) framework to predict HIV VL suppression using retrospective data from 50,000 patients and over one million visits across 30 health facilities in Uganda. The framework utilizes federated averaging for distributed training, secure multiparty aggregation, and differential privacy to ensure data confidentiality. To address cross-site heterogeneity, we integrated domain-adversarial neural networks to promote domain-invariant feature learning. A multilayer perceptron model was trained collaboratively across facilities using local data only.
Results
The federated model achieved an area under the ROC curve (AUC) of 0.874, nearly matching a centralized baseline (AUC 0.881) and substantially outperforming site-specific models (average AUC 0.758). Sensitivity (89.6%) and specificity (66.8%) demonstrate strong capability in identifying both suppressed and unsuppressed cases. Domain adaptation reduced inter-facility performance variability, and differential privacy imposed minimal accuracy degradation. Training was completed within one hour using modest hardware, which supported feasibility in low-resource settings.
Conclusion
Our study demonstrates that FL can deliver robust, privacy-preserving predictive performance in HIV care without centralizing sensitive patient data. The proposed architecture is adaptable to other clinical prediction tasks and represents a practical pathway for scaling ethical AI across decentralized healthcare systems in low- and middle-income countries.
Competing Interest Statement
The authors have declared no competing interest.
Funding Statement
No funding was received for this study.
Author Declarations
I confirm all relevant ethical guidelines have been followed, and any necessary IRB and/or ethics committee approvals have been obtained.
Yes
The details of the IRB/oversight body that provided approval or exemption for the research described are given below:
Only de-identified secondary data were used.
I confirm that all necessary patient/participant consent has been obtained and the appropriate institutional forms have been archived, and that any patient/participant/sample identifiers included were not known to anyone (e.g., hospital staff, patients or participants themselves) outside the research group so cannot be used to identify individuals.
Yes
I understand that all clinical trials and any other prospective interventional studies must be registered with an ICMJE-approved registry, such as ClinicalTrials.gov. I confirm that any such study reported in the manuscript has been registered and the trial registration ID is provided (note: if posting a prospective study registered retrospectively, please provide a statement in the trial ID field explaining why the study was not registered in advance).
Yes
I have followed all appropriate research reporting guidelines, such as any relevant EQUATOR Network research reporting checklist(s) and other pertinent material, if applicable.
Yes
Text is read by the "Ask this paper" AI Q&A widget below.
Extraction quality varies by source — PMC NXML preserves structure
cleanly, OA-HTML may include some navigation residue, and OA-PDF can
have broken hyphenation. The publisher copy
(via DOI)
is the canonical version.