Understanding why a machine learning model makes a certain prediction is just as critical as how accurately it predicts, especially when it comes to diagnosing and treating cardiovascular disease. In this study, we applied explainable artificial intelligence (XAI) techniques to improve both the predictive power and interpretability of heart disease detection models. A dataset of 1,025 patient records was thoroughly preprocessed, including the handling of missing values, the encoding of categorical features, and the binarization of the outcome variable. We evaluated several machine learning models LSTM networks, Random Forest, Gradient Boosting, XGBoost, and Logistic Regression using performance metrics such as accuracy, precision, recall, F1-score, and AUC-ROC. While XGBoost emerged as the most accurate model, we moved beyond accuracy to explore the root causes of such strong performance. To accomplish this, we employed three key XAI techniques: SHAP (SHapley Additive exPlanations) to quantify how individual features influenced predictions, LIME (Local Interpretable Model-Agnostic Explanations) to provide intuitive, local-level explanations for individual predictions, and Permutation Feature Importance to assess which features most affected model performance when altered. These methods transformed XGBoost from a high-performing black-box into a transparent and trustworthy diagnostic tool. Our findings underscore how integrating explainability into AI pipelines leads to not just accurate predictions, but also clinically actionable insights highlighting the most important risk factors for cardiovascular disease and supporting more informed, responsible medical decisions.
Cite this paper
Dammak, N. Z. , Bezine, H. , Nouri, A. S. and Derbel, N. (2025). Innovative XAI Approaches for Predicting Cardiovascular Diseases. Open Access Library Journal, 12, e14071. doi: http://dx.doi.org/10.4236/oalib.1114071.
Sadeghi, Z., Alizadehsani, R., Cifci, M.A., Kausar, S., Rehman, R., Mahanta, P., et al. (2023) A Review of Explainable Artificial Intelligence in Healthcare. Computer Methods and Programs in Biomedicine, 226, Article ID: 107194.
Swathy, M. and Saruladha, K. (2022) A Comparative Study of Classification and Prediction of Cardio-Vascular Diseases (CVD) Using Ma-chine Learning and Deep Learning Techniques. ICT Express, 8, 109-116. https://doi.org/10.1016/j.icte.2021.08.021
Ahmad, I., Yao, C., Li, L., Chen, Y., Liu, Z., Ullah, I., et al. (2024) An Effi-cient Feature Selection and Explainable Classification Method for EEG-Based Epileptic Seizure Detection. Journal of Infor-mation Security and Applications, 80, Article ID: 103654. https://doi.org/10.1016/j.jisa.2023.103654
Amini, M., Bagheri, A., Piri, S. and Delen, D. (2024) A Hybrid AI Framework to Address the Issue of Frequent Missing Values with Ap-plication in EHR Systems: The Case of Parkinson’s Disease. Proceedings of the Annual Hawaii International Conference on System Sciences, Hawaii, 3-6 January 2024, 2. https://doi.org/10.24251/hicss.2024.126
Barr Kumarakulasinghe, N., Blomberg, T., Liu, J., Saraiva Leao, A. and Papapetrou, P. (2020) Evaluating Local Interpretable Model-Agnostic Explana-tions on Clinical Machine Learning Classification Models. 2020 IEEE 33rd International Symposium on Computer-Based Medical Systems (CBMS), Rochester, 28-30 July 2020, 7-12. https://doi.org/10.1109/cbms49503.2020.00009
Peng, J., Zou, K., Zhou, M., Teng, Y., Zhu, X., Zhang, F., et al. (2021) An Explainable Artificial Intelligence Framework for the Dete-rioration Risk Prediction of Hepatitis Patients. Journal of Medical Systems, 45, Article No. 61. https://doi.org/10.1007/s10916-021-01736-5
Sabol, P., Sinčák, P., Hartono, P., Kočan, P., Benetinová, Z., Blichárová, A., et al. (2020) Explainable Classifier for Improving the Accountability in Decision-Making for Colorectal Cancer Diagnosis from Histopathological Images. Journal of Biomedical Informatics, 109, Article ID: 103523. https://doi.org/10.1016/j.jbi.2020.103523
Kletz, S., Schoeffmann, K. and Husslein, H. (2019) Learning the Repre-sentation of Instrument Images in Laparoscopy Videos. Healthcare Technology Letters, 6, 197-203. https://doi.org/10.1049/htl.2019.0077
Porumb, M., Stranges, S., Pescapè, A. and Pecchia, L. (2020) Precision Medi-cine and Artificial Intelligence: A Pilot Study on Deep Learning for Hypoglycemic Events Detection Based on ECG. Scientific Reports, 10, Article No. 170. https://doi.org/10.1038/s41598-019-56927-5
Deperlioglu, O., Kose, U., Gupta, D., Khanna, A., Giampaolo, F. and Fortino, G. (2022) Explainable Framework for Glaucoma Diagnosis by Image Processing and Convolutional Neural Network Synergy: Analysis with Doctor Evaluation. Future Generation Computer Systems, 129, 152-169. https://doi.org/10.1016/j.future.2021.11.018
Colin, J. and Surantha, N. (2025) Interpretable Deep Learning for Pneumonia Detection Using Chest X-Ray Images. Information, 16, Article 53. https://doi.org/10.3390/info16010053
Wani, N.A., Kumar, R. and Bedi, J. (2024) DeepXplainer: An Interpretable Deep Learning Based Approach for Lung Cancer Detection Using Explainable Artificial Intelligence. Computer Methods and Programs in Biomedicine, 243, Article ID: 107879. https://doi.org/10.1016/j.cmpb.2023.107879
Muddamsetty, S.M., Jahromi, M.N.S. and Moeslund, T.B. (2021) Expert Level Evaluations for Explainable AI (XAI) Methods in the Medical Domain. In: Del Bimbo, A., et al., Eds., Pattern Recognition. ICPR International Workshops and Challenges, Springer, 35-46. https://doi.org/10.1007/978-3-030-68796-0_3
Biswas, M., Kaiser, M.S., Mahmud, M., Al Mamun, S., Hossain, M.S. and Rahman, M.A. (2021) An XAI Based Autism Detection: The Context behind the Detection. In: Mahmud, M., Kaiser, M.S., Vassanelli, S., Dai, Q. and Zhong, N., Eds., Brain Informatics, Springer, 448-459. https://doi.org/10.1007/978-3-030-86993-9_40
Alamatsaz, N., Tabatabaei, L., Yazdchi, M., Payan, H., Alamatsaz, N. and Nasimi, F. (2024) A Lightweight Hybrid CNN-LSTM Explainable Model for ECG-Based Arrhythmia Detection. Biomedical Signal Processing and Control, 90, Article ID: 105884. https://doi.org/10.1016/j.bspc.2023.105884
Mahmoudi, M.R., Akbarzadeh, H., Parvin, H., Nejatian, S., Rezaie, V. and Alinejad-Rokny, H. (2020) Consensus Function Based on Clus-ter-Wise Two Level Clustering. Artificial Intelligence Review, 54, 639-665. https://doi.org/10.1007/s10462-020-09862-1
Suh, J., Yoo, S., Park, J., Cho, S.Y., Cho, M.C., Son, H., et al. (2020) Development and Validation of an Explainable Artificial Intelligence-Based Decision-Supporting Tool for Prostate Biopsy. BJU International, 126, 694-703. https://doi.org/10.1111/bju.15122
Yilmaz, R. and Yağin, F.H. (2022) Early Detec-tion of Coronary Heart Disease Based on Machine Learning Methods. Medical Records, 4, 1-6. https://doi.org/10.37990/medr.1011924
Sigut, J., Fumero, F., Estévez, J., Alayón, S. and Díaz-Alemán, T. (2023) In-Depth Evaluation of Saliency Maps for Interpreting Convolutional Neural Network Decisions in the Diagnosis of Glaucoma Based on Fundus Imaging. Sensors, 24, Article 239. https://doi.org/10.3390/s24010239
Joly, N.A. and Arif, A.S.M. (2024) Permutation Feature Importance-Based Cardio-vascular Disease (CVD) Prediction Using Ann. In: Arefin, M.S., Kaiser, M.S., Bhuiyan, T., Dey, N. and Mahmud, M., Eds., Proceedings of the 2nd International Conference on Big Data, IoT and Machine Learning, Springer, 1039-1053. https://doi.org/10.1007/978-981-99-8937-9_69
Lundberg, S.M. and Lee, S.I. (2017) A Unified Approach to Interpreting Model Predictions. Proceedings of the 31st International Conference on Neural Information Processing Systems, Long Beach, 4-9 December 2017, 4768-4777.
Ribeiro, M.T., Singh, S. and Guestrin, C. (2016). Why Should I Trust You? Explaining the Predictions of Any Classifier. Proceedings of the 22nd ACM SIGKDD International Conference on Knowledge Discovery and Data Mining, San Francisco, 13-17 August 2016, 1135-1144. https://doi.org/10.1145/2939672.2939778
Li, J.P., Haq, A.U., Din, S.U., Khan, J., Khan, A. and Saboor, A. (2020) Heart Disease Identification Method Using Machine Learning Classification in E-Healthcare. IEEE Access, 8, 107562-107582. https://doi.org/10.1109/access.2020.3001149