Privacy-Preserving Machine Learning for Heart Disease Detection Using Fully Homomorphic Encryption

Mayssa Dziri, Haifa Touati, Hakim Ghazzai, Mohamed Hadded, Omar Kassem Khalil, Anis Laouiti · 2025

With the growing adoption of Artificial Intelligence (AI) in sensitive sectors such as healthcare and finance, protecting user privacy during data processing has become paramount. One promising approach is Fully Homomorphic Encryption (FHE), which offers a viable solution by allowing computations to be performed directly on encrypted data, thus safeguarding sensitive information. In this study, we investigate the practical application of the Cheon Kim Kim Song (CKKS) FHE scheme to perform inference with various machine learning models for heart disease detection. We evaluated five models: Logistic Regression, Support Vector Machine, Decision Tree, Random Forest, and a simple Neural Network, across multiple heart disease datasets. Our analysis compares their performance on both standard (plain-text) and encrypted data, using metrics including accuracy, precision, recall, and F1-score. Results demonstrate that encrypted models deliver predictive accuracy comparable to their standard counterparts, confirming the viability of privacypreserving inference with FHE despite the expected increase in computational time. Furthermore, our findings highlight up to 100% consistency between the predictions made on encrypted and plain-text inputs.

Read the paper · More papers on PaperTik