Interpretable Heart Disease Prediction: Optimizing Machine Learning Models via Metaheuristic Ivy Algorithm
Abstract
1. Introduction
2. Materials and Methods
2.1. Data Preprocessing
2.2. Ivy Algorithm
- Organized and structured population growth.
- The growth of ivy serves as a natural strategy to compete for sunlight resources.
- Ivy expansion and adaptation illustrate its survival strategies.
2.3. Machine Learning Algorithms
2.4. Methodology
3. Experimental
3.1. Performance Evaluation Metrics
3.2. Experimental Results
4. Discussion and Conclusions
Author Contributions
Funding
Institutional Review Board Statement
Informed Consent Statement
Data Availability Statement
Acknowledgments
Conflicts of Interest
References
- World Health Organization. Cardiovascular Diseases (CVDs). Available online: https://www.who.int/news-room/fact-sheets/detail/cardiovascular-diseases-(cvds) (accessed on 31 July 2026).
- Chang, V.; Bhavani, V.R.; Xu, A.Q.; Hossain, M.A. An artificial intelligence model for heart disease detection using machine learning algorithms. Healthc. Anal. 2022, 2, 100016. [Google Scholar] [CrossRef] [Scilit]
- Reddy, K.V.V.; Elamvazuthi, I.; Aziz, A.A.; Paramasivam, S.; Chua, H.N.; Pranavanand, S. Heart disease risk prediction using machine learning classifiers with attribute evaluators. Appl. Sci. 2021, 11, 8352. [Google Scholar] [CrossRef] [Scilit]
- Sun, P.; Wan, Z.; Liu, Y. Towards Comprehensive Chronic Disease Control: Prevention, Early Detection, and Integrated Management. Med. Bull. 2026, 2, 20–33. [Google Scholar] [CrossRef] [Scilit]
- Wang, X.; Xiao, H.; Zhao, Y.; Li, P.; Hu, X.; Qiu, X.; Luo, C.; Luo, J.; Wang, K.; Gu, W.; et al. Toward Omni Healthcare: Wearable Technologies for Noncommunicable Disease Dynamic Monitoring. Med. Bull. 2026, 2, 5–19. [Google Scholar] [CrossRef] [Scilit]
- Heydari, M.S.; Kolivand, M.; Al-Azzawi, M.; Kolivand, H. Intelligent augmented reality application for personalised rhinoplasty using machine learning. Intell. Robot. 2025, 5, 355–377. [Google Scholar] [CrossRef] [Scilit]
- DeFazio, D.; Mehta, H.; Wang, M.; Yang, P.; Blackburn, J.; Zhang, S. Vision language models can parse floor plan maps. Robot. Learn. 2025, 2, 11. [Google Scholar] [CrossRef] [Scilit]
- Baghdadi, N.A.; Farghaly Abdelaliem, S.M.; Malki, A.; Gad, I.; Ewis, A.; Atlam, E. Advanced machine learning techniques for cardiovascular disease early detection and diagnosis. J. Big Data 2023, 10, 144. [Google Scholar] [CrossRef] [Scilit]
- Mao, Z.; Suzuki, S.; Nabae, H.; Miyagawa, S.; Suzumori, K.; Maeda, S. Machine learning-enhanced soft robotic system inspired by rectal functions to investigate fecal incontinence. Bio-Des. Manuf. 2025, 8, 482–494. [Google Scholar] [CrossRef] [Scilit]
- Peng, Y.; Wang, Y.; Hu, F.; He, M.; Mao, Z.; Huang, X.; Ding, J. Predictive modeling of flexible EHD pumps using Kolmogorov–Arnold Networks. Biomim. Intell. Robot. 2024, 4, 100184. [Google Scholar] [CrossRef] [Scilit]
- Zhu, P.; Yu, M.; Wu, M.; Yang, Y. Advanced flexible brain-computer interfaces and devices for the exploration of neural dynamics. Brain-X 2024, 2, e70009. [Google Scholar] [CrossRef] [Scilit]
- Peng, Y.; Jiang, Y.; Zuo, Z.; Gu, S.; Wang, Z.; Tian, Z. A rehabilitation design concept based on brain–computer interface and McKibben artificial muscle. Healthc. Rehabil. 2026, 2, 100066. [Google Scholar] [CrossRef] [Scilit]
- Peng, Y.; Liu, X.; Chan, K.F.; Song, X.; Zhang, L. Robotic-Assisted Endovascular Embolization: Progress and Future Perspectives. SmartBot 2025, 1, e12009. [Google Scholar] [CrossRef] [Scilit]
- Ke, X.; Li, S.; Zhang, T.; Zhong, Y.; Li, S.; Zhang, S.; Chai, Z.; Pu, M.; Zong, Z.; Yong, H.; et al. Small-scale magnetic soft robots for medical applications: From laboratory to clinical use. SmartBot 2026, e70042. [Google Scholar] [CrossRef] [Scilit]
- Shang, C.; Huang, M.; Yu, S. bDWPLO-FKNN: A Novel Machine Learning Model for Predicting COVID-19 Severity Using Differential Weibull Polar Lights Optimizer. J. Bionic Eng. 2025, 22, 3188–3208. [Google Scholar] [CrossRef] [Scilit]
- Khan, S.U.R.; Khan, Z. Detection of Abnormal Cardiac Rhythms Using Feature Fusion Technique with Heart Sound Spectrograms. J. Bionic Eng. 2025, 22, 2030–2049. [Google Scholar] [CrossRef] [Scilit]
- Kumar, S.; Thakur, B. Heart disease prediction using a stacked ensemble learning approach. SN Comput. Sci. 2024, 6, 3. [Google Scholar] [CrossRef] [Scilit]
- Olawade, D.B.; Soladoye, A.A.; Omodunbi, B.A.; Aderinto, N.; Adeyanju, I.A. Comparative analysis of machine learning models for coronary artery disease prediction with optimized feature selection. Int. J. Cardiol. 2025, 436, 133443. [Google Scholar] [CrossRef] [Scilit] [PubMed]
- Hossain, M.I.; Maruf, M.H.; Khan, M.A.R.; Prity, F.S.; Fatema, S.; Ejaz, M.S.; Khan, M.A.S. Heart disease prediction using distinct artificial intelligence techniques: Performance analysis and comparison. Iran J. Comput. Sci. 2023, 6, 397–417. [Google Scholar] [CrossRef] [Scilit]
- Mohan, S.; Thirumalai, C.; Srivastava, G. Effective heart disease prediction using hybrid machine learning techniques. IEEE Access 2019, 7, 81542–81554. [Google Scholar] [CrossRef] [Scilit]
- Javid, I.; Alsaedi, A.K.Z.; Ghazali, R. Enhanced accuracy of heart disease prediction using machine learning and recurrent neural networks ensemble majority voting method. Int. J. Adv. Comput. Sci. Appl. 2020, 11, 540–551. [Google Scholar] [CrossRef] [Scilit]
- Lamir, A.A.; Razzagzadeh, S.; Rezaei, Z. A Comprehensive Machine Learning Framework for Heart Disease Prediction: Performance Evaluation and Future Perspectives. arXiv 2025, arXiv:2505.09969. [Google Scholar]
- Venkatesh, R.; Anantharajan, S.; Gunasekaran, S. Multi-gradient boosted adaptive SVM-based prediction of heart disease. Int. J. Comput. Commun. Control 2023, 18, 4994. [Google Scholar] [CrossRef] [Scilit]
- Dubey, A.K.; Choudhary, K.; Sharma, R. Predicting Heart Disease Based on Influential Features with Machine Learning. Intell. Autom. Soft Comput. 2021, 30, 929–943. [Google Scholar] [CrossRef] [Scilit]
- Teja, M.D.; Rayalu, G.M. Optimizing heart disease diagnosis with advanced machine learning models: A comparison of predictive performance. BMC Cardiovasc. Disord. 2025, 25, 212. [Google Scholar] [CrossRef] [Scilit] [PubMed]
- Datta, C.; Senapati, R. An improved cardiovascular disease prediction model using ensembling of diverse machine learning classifiers. In Proceedings of the 2023 OITS International Conference on Information Technology (OCIT); IEEE: New York, NY, USA, 2023; pp. 329–333. [Google Scholar]
- Khan, H.; Javaid, N.; Bashir, T.; Akbar, M.; Alrajeh, N.; Aslam, S. Heart disease prediction using novel ensemble and blending based cardiovascular disease detection networks: EnsCVDD-Net and BlCVDD-Net. IEEE Access 2024, 12, 109230–109254. [Google Scholar] [CrossRef] [Scilit]
- Wu, Y.; Xia, Z.; Feng, Z.; Huang, M.; Liu, H.; Zhang, Y. Forecasting heart disease risk with a stacking-based ensemble machine learning method. Electronics 2024, 13, 3996. [Google Scholar] [CrossRef] [Scilit]
- Maach, A.; Elalami, J.; Elalami, N.; Mazoudi, E.H.E. An intelligent decision support ensemble voting model for coronary artery disease prediction in smart healthcare monitoring environments. arXiv 2022, arXiv:2210.14906. [Google Scholar]
- Lau, S.L.H.; Lim, J.; Chong, E.K.P.; Wang, X. Single-pixel image reconstruction based on block compressive sensing and convolutional neural network. Int. J. Hydromechatron. 2023, 6, 258–273. [Google Scholar] [CrossRef] [Scilit]
- Hudson, M.; Chaudhary, N.I.; Johnson, M.I. Eye movements and emotional memory images (EMIs): Unravelling the path to adult health from childhood adversity. Healthc. Rehabil. 2025, 1, 100037. [Google Scholar] [CrossRef] [Scilit]
- Cong, S.; Wang, H.; Zhou, Y.; Wang, Z.; Yao, X.; Yang, C. Comprehensive review of Transformer-based models in neuroscience, neurology, and psychiatry. Brain-X 2024, 2, e57. [Google Scholar] [CrossRef] [Scilit]
- Almulihi, A.; Saleh, H.; Hussien, A.M.; Mostafa, S.; El-Sappagh, S.; Alnowaiser, K.; Ali, A.M.A.; Refaat Hassan, M. Ensemble learning based on hybrid deep learning model for heart disease early prediction. Diagnostics 2022, 12, 3215. [Google Scholar] [CrossRef] [Scilit] [PubMed]
- Alghamdi, N.S.; Zakariah, M.; Shankar, A.; Viriyasitavat, W. Heart disease prediction using autoencoder and DenseNet architecture. Egypt. Inform. J. 2024, 28, 100559. [Google Scholar] [CrossRef] [Scilit]
- García-Ordás, M.T.; Bayón-Gutiérrez, M.; Benavides, C.; Aveleira-Mata, J.; Benítez-Andrades, J.A. Heart disease risk prediction using deep learning techniques with feature augmentation. Multimed. Tools Appl. 2023, 82, 31759–31773. [Google Scholar] [CrossRef] [Scilit]
- Arooj, S.; Rehman, S.U.; Imran, A.; Almuhaimeed, A.; Alzahrani, A.K.; Alzahrani, A.D. A deep convolutional neural network for the early detection of heart disease. Biomedicines 2022, 10, 2796. [Google Scholar] [CrossRef] [Scilit] [PubMed]
- Cao, K.; Liu, C.; Yang, S.; Zhang, Y.; Li, L.; Jung, H.; Zhang, S. Prediction of cardiovascular disease based on multiple feature selection and improved PSO–XGBoost model. Sci. Rep. 2025, 15, 12406. [Google Scholar] [CrossRef] [Scilit] [PubMed]
- Hong, S.; Xiao, L.; Zhang, X.; Chen, J. ArgMed-Agents: Explainable clinical decision reasoning with LLM discusion via argumentation schemes. arXiv 2024, arXiv:2403.06294. [Google Scholar]
- Žlahtič, B.; Završnik, J.; Blažun Vošner, H.; Kokol, P.; Šuran, D.; Završnik, T. Agile machine learning model development using Data Canyons in medicine: A step towards explainable artificial intelligence and flexible expert-based model improvement. Appl. Sci. 2023, 13, 8329. [Google Scholar] [CrossRef] [Scilit]
- Ghasemi, M.; Zare, M.; Trojovský, P.; Rao, R.V.; Trojovská, E.; Kandasamy, V. Optimization based on the smart behavior of plants with its engineering applications: Ivy algorithm. Knowl.-Based Syst. 2024, 295, 111850. [Google Scholar] [CrossRef] [Scilit]
- Miao, K.H.; Miao, J.H. Coronary heart disease diagnosis using deep neural networks. Int. J. Adv. Comput. Sci. Appl. 2018, 9, 1–8. [Google Scholar] [CrossRef] [Scilit]
- Osei-Nkwantabisa, A.S.; Ntumy, R. Classification and Prediction of Heart Diseases using Machine Learning Algorithms. arXiv 2024, arXiv:2409.03697. [Google Scholar]
- Majumder, A.B.; Gupta, S.; Singh, D.; Acharya, B.; Gerogiannis, V.C.; Kanavos, A.; Pintelas, P. Heart disease prediction using concatenated hybrid ensemble classifiers. Algorithms 2023, 16, 538. [Google Scholar] [CrossRef] [Scilit]
- Akella, A.; Akella, S. Machine learning algorithms for predicting coronary artery disease: Efforts toward an open source solution. Future Sci. OA 2021, 7, FSO698. [Google Scholar] [CrossRef] [Scilit] [PubMed]
- Hossain, M.M.; Ali, M.S.; Ahmed, M.M.; Rakib, M.R.H.; Kona, M.A.; Afrin, S.; Islam, M.K.; Ahsan, M.M.; Raj, S.M.R.H.; Rahman, M.H. Cardiovascular disease identification using a hybrid CNN–LSTM model with explainable AI. Inform. Med. Unlocked 2023, 42, 101370. [Google Scholar] [CrossRef] [Scilit]
- Niu, S.; Zhou, Y.; Li, Z.; Huang, S.; Zhou, Y. An improved grey wolf optimization algorithm for heart disease prediction. In Advanced Intelligent Technologies and Sustainable Society; Springer: Singapore, 2024; pp. 527–542. [Google Scholar]













| No. | Datasets | Feature | Description | Range |
|---|---|---|---|---|
| 1 | C/S | Age | Age (years) | 29–77 |
| 2 | C/S | Sex | Gender type | 0: Female 1: Male |
| 3 | C/S | ChestPainType | Types of chest pain | 0: Typical 1: Atypical 2: Non-anginal 3: Asymptomatic |
| 4 | C/S | MaxHR | Max heart rate | 71–202 |
| 5 | C/S | FastingBS | Fasting blood sugar > 120 mg/dL | 0: False 1: True |
| 6 | C/S | Oldpeak | ST depression | 0–6.2 |
| 7 | C/S | RestingBP | Blood pressure (resting) (mmHg) | 94–200 |
| 8 | C/S | ST_Slope | The slope of the peak exercise ST segment | 0: Upsloping 1: Flat 2: Downsloping |
| 9 | C/S | Exercise Angina | Exercise-induced angina | 0: No 1: Yes |
| 10 | C/S | Cholesterol | Serum cholesterol (mg/dL) | 126–564 |
| 11 | C/S | RestingECG | Resting ECG results | 0: Normal 1: ST–T abnormality 2: Left ventricular 2: hypertrophy |
| 12 | C/S | Ca | Number of vessels | 0–3 |
| 13 | C/S | Thal | Thallium stress test | 0: Normal 1: Fixed defect 2: Reversible defect |
| 14 | C/S | HeartDisease | Target variable | 0: No Heart disease 1: Heart disease |
| Datasets | IVYA- Models | Recall (%) | Precision (%) | Accuracy (%) | F1 Score (%) | AUC (%) |
|---|---|---|---|---|---|---|
| Cleveland | RF | |||||
| ID3 | ||||||
| XGBoost | ||||||
| SVM | ||||||
| LightGBM | ||||||
| Statlog | RF | |||||
| ID3 | ||||||
| XGBoost | ||||||
| SVM | ||||||
| LightGBM |
| Datasets | IVYA- Models | Recall (%) | Precision (%) | Accuracy (%) | F1 Score (%) | AUC (%) |
|---|---|---|---|---|---|---|
| Cleveland | RF | |||||
| ID3 | ||||||
| XGBoost | ||||||
| SVM | ||||||
| LightGBM | ||||||
| Statlog | RF | |||||
| ID3 | ||||||
| XGBoost | ||||||
| SVM | ||||||
| LightGBM |
| IVYA Usage | Models | Recall (%) | Precision (%) | Accuracy (%) | F1 Score (%) | AUC (%) |
|---|---|---|---|---|---|---|
| Yes | RF | |||||
| ID3 | ||||||
| XGBoost | ||||||
| SVM | ||||||
| LightGBM | ||||||
| No | RF | |||||
| ID3 | ||||||
| XGBoost | ||||||
| SVM | ||||||
| LightGBM |
| Dataset | Model | ROC–AUC (Baseline) | ROC–AUC (IVYA) | Δ ROC–AUC | -Value |
|---|---|---|---|---|---|
| Cleveland | RF | * | |||
| ID3 | * | ||||
| XGBoost | * | ||||
| SVM | * | ||||
| LightGBM | * | ||||
| Statlog | RF | * | |||
| ID3 | * | ||||
| XGBoost | * | ||||
| SVM | |||||
| LightGBM | * |
| Optimization Strategy | AUC (%) | Accuracy (%) | Precision (%) | Recall (%) | F1 Score (%) | Runtime (min) |
|---|---|---|---|---|---|---|
| IVYA-Full | 4.19 | |||||
| IVYA-Two-stage | 3.23 |
| Hyperparameter | Search Space | IVYA-Optimized Range |
|---|---|---|
| learning_rate | – | |
| num_leaves | 12–32 | |
| max_depth | 4–6 | |
| min_data_in_leaf | 16–48 | |
| feature_fraction | – | |
| bagging_fraction | – | |
| lambda_l1 | 0– | |
| lambda_l2 | 0– | |
| min_gain_to_split | 0– |
| Optimization Algorithm | AUC (%) | Accuracy (%) | Precision (%) | Recall (%) | F1 Score (%) | Runtime (min) |
|---|---|---|---|---|---|---|
| GWO | 6.21 | |||||
| PSO | 4.74 | |||||
| WOA | 5.75 | |||||
| GA | 5.36 | |||||
| HHO | 6.14 | |||||
| IVYA | 3.23 |
| Researcher | Dataset | Model | Recall | Accuracy | Precision | F1 Score | AUC |
|---|---|---|---|---|---|---|---|
| Miao et al. [41] | Cleveland | DNN | 0.935 | 0.836 | 0.791 | 0.857 | 0.892 |
| Osei-Nkwantabisa et al. [42] | Merged | ANN | 0.740 | 0.740 | 0.780 | 0.760 | – |
| Majumder et al. [43] | Cleveland | Hybrid ensemble | 0.871 | 0.869 | 0.818 | 0.843 | – |
| Akella et al. [44] | Cleveland | GLM | 0.800 | 0.876 | 0.820 | 0.879 | 0.883 |
| Hossain et al. [45] | Kaggle CVD | Hybrid CNN–LSTM | 0.720 | 0.742 | 0.818 | 0.766 | 0.740 |
| Cao et al. [37] | Cardiovascular | MFS-DLPSO-XGBoost | 0.714 | 0.747 | 0.763 | 0.736 | 0.808 |
| Niu et al. [46] | Cleveland | ACGWO-BP | 0.880 | 0.868 | 0.854 | 0.870 | 0.863 |
| Proposed Method | Cleveland + Statlog | IVYA-LightGBM | 0.864 | 0.907 | 0.931 | 0.893 | 0.945 |
Disclaimer/Publisher’s Note: The statements, opinions and data contained in all publications are solely those of the individual author(s) and contributor(s) and not of MDPI and/or the editor(s). MDPI and/or the editor(s) disclaim responsibility for any injury to people or property resulting from any ideas, methods, instructions or products referred to in the content. |
© 2026 by the authors. Licensee MDPI, Basel, Switzerland. This article is an open access article distributed under the terms and conditions of the Creative Commons Attribution (CC BY) license.
Share and Cite
Jiang, Y.; Zuo, Z.; Liang, R.; Xu, J.; Jiang, H.; Ding, Z.; Peng, Y.; Li, C. Interpretable Heart Disease Prediction: Optimizing Machine Learning Models via Metaheuristic Ivy Algorithm. Algorithms 2026, 19, 788. https://doi.org/10.3390/a19090788
Jiang Y, Zuo Z, Liang R, Xu J, Jiang H, Ding Z, Peng Y, Li C. Interpretable Heart Disease Prediction: Optimizing Machine Learning Models via Metaheuristic Ivy Algorithm. Algorithms. 2026; 19(9):788. https://doi.org/10.3390/a19090788
Chicago/Turabian StyleJiang, Yang, Zihao Zuo, Rui Liang, Jiabin Xu, Hong Jiang, Zhigang Ding, Yanhong Peng, and Cong Li. 2026. "Interpretable Heart Disease Prediction: Optimizing Machine Learning Models via Metaheuristic Ivy Algorithm" Algorithms 19, no. 9: 788. https://doi.org/10.3390/a19090788
APA StyleJiang, Y., Zuo, Z., Liang, R., Xu, J., Jiang, H., Ding, Z., Peng, Y., & Li, C. (2026). Interpretable Heart Disease Prediction: Optimizing Machine Learning Models via Metaheuristic Ivy Algorithm. Algorithms, 19(9), 788. https://doi.org/10.3390/a19090788

