{"status":"ok","message-type":"work","message-version":"1.0.0","message":{"indexed":{"date-parts":[[2026,2,16]],"date-time":"2026-02-16T19:27:53Z","timestamp":1771270073777,"version":"3.50.1"},"reference-count":60,"publisher":"MDPI AG","issue":"4","license":[{"start":{"date-parts":[[2025,10,11]],"date-time":"2025-10-11T00:00:00Z","timestamp":1760140800000},"content-version":"vor","delay-in-days":0,"URL":"https:\/\/creativecommons.org\/licenses\/by\/4.0\/"}],"content-domain":{"domain":[],"crossmark-restriction":false},"short-container-title":["Informatics"],"abstract":"<jats:p>Cardiovascular diseases claim millions of lives each year, yet timely diagnosis remains a significant challenge due to the high number of patients and associated costs. Although various machine learning solutions have been proposed for this problem, most approaches rely on careful data preprocessing and feature engineering workflows that could benefit from more comprehensive documentation in research publications. To address this issue, this paper presents a machine learning framework for predicting heart attack risk online. Our systematic methodology integrates a unified pipeline featuring advanced data preprocessing, optimized feature selection, and an exhaustive hyperparameter search using cross-validated grid evaluation. We employ a metamodel ensemble strategy, testing and combining six traditional supervised models along with six stacking and voting ensemble models. The proposed system achieves accuracies ranging from 90.2% to 98.9% on three independent clinical datasets, outperforming current state-of-the-art methods. Additionally, it powers a deployable, lightweight web application for real-time decision support. By merging cutting-edge AI with clinical usability, this work offers a scalable solution for early intervention in cardiovascular care.<\/jats:p>","DOI":"10.3390\/informatics12040110","type":"journal-article","created":{"date-parts":[[2025,10,13]],"date-time":"2025-10-13T08:10:31Z","timestamp":1760343031000},"page":"110","update-policy":"https:\/\/doi.org\/10.3390\/mdpi_crossmark_policy","source":"Crossref","is-referenced-by-count":2,"title":["Heart Attack Risk Prediction via Stacked Ensemble Metamodeling: A Machine Learning Framework for Real-Time Clinical Decision Support"],"prefix":"10.3390","volume":"12","author":[{"ORCID":"https:\/\/orcid.org\/0009-0009-3386-5506","authenticated-orcid":false,"given":"Brandon N.","family":"Nava-Martinez","sequence":"first","affiliation":[{"name":"Faculty of Engineering and Science, Autonomous University of Tamaulipas, Ciudad Victoria 87000, Mexico"}],"role":[{"role":"author","vocabulary":"crossref"}]},{"ORCID":"https:\/\/orcid.org\/0009-0008-2890-0138","authenticated-orcid":false,"given":"Sahid S.","family":"Hernandez-Hernandez","sequence":"additional","affiliation":[{"name":"Faculty of Engineering and Science, Autonomous University of Tamaulipas, Ciudad Victoria 87000, Mexico"}],"role":[{"role":"author","vocabulary":"crossref"}]},{"ORCID":"https:\/\/orcid.org\/0009-0008-1285-2207","authenticated-orcid":false,"given":"Denzel A.","family":"Rodriguez-Ramirez","sequence":"additional","affiliation":[{"name":"Faculty of Engineering and Science, Autonomous University of Tamaulipas, Ciudad Victoria 87000, Mexico"}],"role":[{"role":"author","vocabulary":"crossref"}]},{"ORCID":"https:\/\/orcid.org\/0000-0002-1276-6957","authenticated-orcid":false,"given":"Jose L.","family":"Martinez-Rodriguez","sequence":"additional","affiliation":[{"name":"Faculty of Engineering and Science, Autonomous University of Tamaulipas, Ciudad Victoria 87000, Mexico"}],"role":[{"role":"author","vocabulary":"crossref"}]},{"ORCID":"https:\/\/orcid.org\/0000-0002-6481-4316","authenticated-orcid":false,"given":"Ana B.","family":"Rios-Alvarado","sequence":"additional","affiliation":[{"name":"Faculty of Engineering and Science, Autonomous University of Tamaulipas, Ciudad Victoria 87000, Mexico"}],"role":[{"role":"author","vocabulary":"crossref"}]},{"ORCID":"https:\/\/orcid.org\/0000-0003-2847-8316","authenticated-orcid":false,"given":"Alan","family":"Diaz-Manriquez","sequence":"additional","affiliation":[{"name":"Faculty of Engineering and Science, Autonomous University of Tamaulipas, Ciudad Victoria 87000, Mexico"}],"role":[{"role":"author","vocabulary":"crossref"}]},{"ORCID":"https:\/\/orcid.org\/0000-0002-9147-0635","authenticated-orcid":false,"given":"Jose R.","family":"Martinez-Angulo","sequence":"additional","affiliation":[{"name":"Faculty of Engineering and Science, Autonomous University of Tamaulipas, Ciudad Victoria 87000, Mexico"}],"role":[{"role":"author","vocabulary":"crossref"}]},{"ORCID":"https:\/\/orcid.org\/0000-0003-1834-2431","authenticated-orcid":false,"given":"Tania Y.","family":"Guerrero-Melendez","sequence":"additional","affiliation":[{"name":"Faculty of Engineering and Science, Autonomous University of Tamaulipas, Ciudad Victoria 87000, Mexico"}],"role":[{"role":"author","vocabulary":"crossref"}]}],"member":"1968","published-online":{"date-parts":[[2025,10,11]]},"reference":[{"key":"ref_1","unstructured":"WHO (2025, May 14). Cardiovascular Diseases (CVDs), Available online: https:\/\/www.who.int\/news-room\/fact-sheets\/detail\/cardiovascular-diseases-(cvds)."},{"key":"ref_2","first-page":"3741","article-title":"Ensemble Deep Learning Approaches in Health Care: A Review","volume":"82","author":"Alotaibi","year":"2025","journal-title":"Comput. Mater. Contin."},{"key":"ref_3","doi-asserted-by":"crossref","first-page":"44","DOI":"10.1038\/s41591-018-0300-7","article-title":"High-performance medicine: The convergence of human and artificial intelligence","volume":"25","author":"Topol","year":"2019","journal-title":"Nat. Med."},{"key":"ref_4","doi-asserted-by":"crossref","first-page":"101","DOI":"10.26577\/JMMCS.2022.v115.i3.10","article-title":"Predicting heart disease using machine learning algorithms","volume":"115","author":"Berdaly","year":"2022","journal-title":"J. Math. Mech. Comput. Sci."},{"key":"ref_5","doi-asserted-by":"crossref","unstructured":"Dritsas, E., and Trigka, M. (2024). Application of Deep Learning for Heart Attack Prediction with Explainable Artificial Intelligence. Computers, 13.","DOI":"10.3390\/computers13100244"},{"key":"ref_6","unstructured":"Dafni Rose, J., Mohanaprakash, T., Jeyamohan, H., and Jerusalin Carol, J. (2024). Enhancing Cardiovascular Disease Diagnosis through Bioinformatics and Machine Learning. ResearchSquare, 1\u201325."},{"key":"ref_7","doi-asserted-by":"crossref","first-page":"2585235","DOI":"10.1155\/2022\/2585235","article-title":"A reliable machine intelligence model for accurate identification of cardiovascular diseases using ensemble techniques","volume":"2022","author":"Doppala","year":"2022","journal-title":"J. Healthc. Eng."},{"key":"ref_8","doi-asserted-by":"crossref","unstructured":"Alizadehsani, R., Abdar, M., Roshanzamir, M., Khosravi, A., Kebria, P.M., Khozeimeh, F., Nahavandi, S., Sarrafzadegan, N., and Acharya, U.R. (2019). Machine learning-based coronary artery disease diagnosis: A comprehensive review. Comput. Biol. Med., 111.","DOI":"10.1016\/j.compbiomed.2019.103346"},{"key":"ref_9","doi-asserted-by":"crossref","first-page":"6008","DOI":"10.1007\/s00330-022-08758-8","article-title":"Impact of machine-learning-based coronary computed tomography angiography\u2013derived fractional flow reserve on decision-making in patients with severe aortic stenosis undergoing transcatheter aortic valve replacement","volume":"32","author":"Brandt","year":"2022","journal-title":"Eur. Radiol."},{"key":"ref_10","doi-asserted-by":"crossref","first-page":"2572","DOI":"10.30574\/wjarr.2024.23.3.2928","article-title":"Comparative analysis of machine learning algorithms for ECG-based heart attack prediction: A study using Bangladeshi patient data","volume":"23","author":"Sheakh","year":"2024","journal-title":"World J. Adv. Res. Rev."},{"key":"ref_11","first-page":"5080332","article-title":"Enhancing heart attack prediction with machine learning: A study at jordan university hospital","volume":"2024","author":"Alshraideh","year":"2024","journal-title":"Appl. Comput. Intell. Soft Comput."},{"key":"ref_12","doi-asserted-by":"crossref","unstructured":"Wang, Y. (2024, January 14). AI-Based Methods of Cardiovascular Disease Prediction and Analysis. Proceedings of the International Conference on Engineering Management, Information Technology and Intelligence, Shanghai, China.","DOI":"10.5220\/0012969800004508"},{"key":"ref_13","doi-asserted-by":"crossref","first-page":"4514","DOI":"10.1016\/j.jksuci.2020.10.013","article-title":"An optimized XGBoost based diagnostic system for effective prediction of heart disease","volume":"34","author":"Budholiya","year":"2022","journal-title":"J. King Saud Univ. - Comput. Inf. Sci."},{"key":"ref_14","doi-asserted-by":"crossref","first-page":"61","DOI":"10.54254\/2755-2721\/41\/20230711","article-title":"The prediction and analysis of heart disease using XGBoost algorithm","volume":"41","author":"Yang","year":"2024","journal-title":"Appl. Comput. Eng"},{"key":"ref_15","doi-asserted-by":"crossref","first-page":"225","DOI":"10.11591\/ijict.v10i3.pp225-230","article-title":"Heart disease prediction model with k-nearest neighbor algorithm","volume":"10","author":"Assegie","year":"2021","journal-title":"Int. J. Inform. Commun. Technol. (IJ-ICT)"},{"key":"ref_16","doi-asserted-by":"crossref","first-page":"e38731","DOI":"10.1016\/j.heliyon.2024.e38731","article-title":"Early heart disease prediction using feature engineering and machine learning algorithms","volume":"10","author":"Bouqentar","year":"2024","journal-title":"Heliyon"},{"key":"ref_17","doi-asserted-by":"crossref","unstructured":"Mahajan, P., Uddin, S., Hajati, F., and Moni, M.A. (2023). Ensemble learning for disease prediction: A review. Healthcare, 11.","DOI":"10.3390\/healthcare11121808"},{"key":"ref_18","doi-asserted-by":"crossref","unstructured":"Dinh, A., Miertschin, S., Young, A., and Mohanty, S.D. (2019). A data-driven approach to predicting diabetes and cardiovascular disease with machine learning. BMC Med. Inform. Decis. Mak., 19.","DOI":"10.1186\/s12911-019-0918-5"},{"key":"ref_19","doi-asserted-by":"crossref","first-page":"100402","DOI":"10.1016\/j.imu.2020.100402","article-title":"An improved ensemble learning approach for the prediction of heart disease risk","volume":"20","author":"Mienye","year":"2020","journal-title":"Inform. Med. Unlocked"},{"key":"ref_20","doi-asserted-by":"crossref","first-page":"54007","DOI":"10.1109\/ACCESS.2019.2909969","article-title":"An optimized stacked Support Vector Machines based expert system for the effective prediction of heart failure","volume":"7","author":"Ali","year":"2019","journal-title":"IEEE Access"},{"key":"ref_21","doi-asserted-by":"crossref","first-page":"569","DOI":"10.1007\/s00354-021-00124-4","article-title":"Ensemble methods for heart disease prediction","volume":"39","author":"Karadeniz","year":"2021","journal-title":"New Gener. Comput."},{"key":"ref_22","doi-asserted-by":"crossref","unstructured":"Almulihi, A., Saleh, H., Hussien, A.M., Mostafa, S., El-Sappagh, S., Alnowaiser, K., Ali, A.A., and Refaat Hassan, M. (2022). Ensemble learning based on hybrid deep learning model for heart disease early prediction. Diagnostics, 12.","DOI":"10.3390\/diagnostics12123215"},{"key":"ref_23","doi-asserted-by":"crossref","unstructured":"Tiwari, A., Chugh, A., and Sharma, A. (2022). Ensemble framework for cardiovascular disease prediction. Comput. Biol. Med., 146.","DOI":"10.1016\/j.compbiomed.2022.105624"},{"key":"ref_24","doi-asserted-by":"crossref","unstructured":"Islam, M.N., Raiyan, K.R., Mitra, S., Mannan, M.R., Tasnim, T., Putul, A.O., and Mandol, A.B. (2023). Predictis: An IoT and machine learning-based system to predict risk level of cardio-vascular diseases. BMC Health Serv. Res., 23.","DOI":"10.1186\/s12913-023-09104-4"},{"key":"ref_25","doi-asserted-by":"crossref","unstructured":"Ganesan, M., and Sivakumar, N. (2019, January 29\u201330). IoT based heart disease prediction and diagnosis model for healthcare using machine learning models. Proceedings of the 2019 IEEE International Conference on System, Computation, Automation and Networking (ICSCAN), Pondicherry, India.","DOI":"10.1109\/ICSCAN.2019.8878850"},{"key":"ref_26","doi-asserted-by":"crossref","unstructured":"Gupta, A., Yadav, S., Shahid, S., and U, V. (2019, January 20\u201323). HeartCare: IoT Based Heart Disease Prediction System. Proceedings of the 2019 International Conference on Information Technology (ICIT), Shanghai, China.","DOI":"10.1109\/ICIT48102.2019.00022"},{"key":"ref_27","doi-asserted-by":"crossref","unstructured":"Ahdal, A.A., Rakhra, M., Badotra, S., and Fadhaeel, T. (2022, January 10\u201311). An integrated Machine Learning Techniques for Accurate Heart Disease Prediction. Proceedings of the 2022 International Mobile and Embedded Technology Conference (MECON), Noida, India.","DOI":"10.1109\/MECON53876.2022.9752342"},{"key":"ref_28","doi-asserted-by":"crossref","unstructured":"Nancy, A.A., Ravindran, D., Raj Vincent, P.M.D., Srinivasan, K., and Gutierrez Reina, D. (2022). IoT-Cloud-Based Smart Healthcare Monitoring System for Heart Disease Prediction via Deep Learning. Electronics, 11.","DOI":"10.3390\/electronics11152292"},{"key":"ref_29","doi-asserted-by":"crossref","first-page":"020038","DOI":"10.1063\/5.0110179","article-title":"Machine learning IoT based framework for analysing heart disease prediction","volume":"2523","author":"Velmurugan","year":"2023","journal-title":"AIP Conf. Proc."},{"key":"ref_30","doi-asserted-by":"crossref","first-page":"100485","DOI":"10.1016\/j.iot.2021.100485","article-title":"HealthCloud: A system for monitoring health status of heart patients using machine learning and cloud computing","volume":"17","author":"Desai","year":"2022","journal-title":"Internet Things"},{"key":"ref_31","doi-asserted-by":"crossref","first-page":"18469","DOI":"10.1109\/JIOT.2023.3277500","article-title":"HealthFaaS: AI-Based Smart Healthcare System for Heart Patients Using Serverless Computing","volume":"10","author":"Golec","year":"2023","journal-title":"IEEE Internet Things J."},{"key":"ref_32","first-page":"115","article-title":"Heart disease prediction system using machine learning","volume":"1","author":"Shrestha","year":"2019","journal-title":"LBEF Res. J. Sci. Technol. Manag."},{"key":"ref_33","doi-asserted-by":"crossref","unstructured":"Effati, S., Kamarzardi-Torghabe, A., Azizi-Froutaghe, F., Atighi, I., and Ghiasi-Hafez, S. (2024). Web application using machine learning to predict cardiovascular disease and hypertension in mine workers. Sci. Rep., 14.","DOI":"10.1038\/s41598-024-80919-9"},{"key":"ref_34","doi-asserted-by":"crossref","first-page":"854","DOI":"10.4236\/wjet.2018.64057","article-title":"Heart disease detection by using machine learning algorithms and a real-time cardiovascular health monitoring system","volume":"6","author":"Nashif","year":"2018","journal-title":"World J. Eng. Technol."},{"key":"ref_35","unstructured":"Rashid, T.A., and Hassan, B. (2025, October 07). Heart Attack Dataset. Mendeley Data, V1. Available online: https:\/\/data.mendeley.com\/datasets\/wmhctcrt5v\/1."},{"key":"ref_36","unstructured":"Zaganjori, J. (2025, June 05). Heart Attack Prediction -Analyzing Key Factors for Predicting Heart Disease Risk. Available online: https:\/\/www.kaggle.com\/datasets\/juledz\/heart-attack-prediction."},{"key":"ref_37","doi-asserted-by":"crossref","unstructured":"Chicco, D., and Jurman, G. (2020). Machine learning can predict survival of patients with heart failure from serum creatinine and ejection fraction alone. BMC Med. Inform. Decis. Mak., 20.","DOI":"10.1186\/s12911-020-1023-5"},{"key":"ref_38","doi-asserted-by":"crossref","unstructured":"El-Morr, C., Jammal, M., Ali-Hassan, H., and EI-Hallak, W. (2022). Machine Learning for Practical Decision Making, Springer International Publishing.","DOI":"10.1007\/978-3-031-16990-8"},{"key":"ref_39","doi-asserted-by":"crossref","first-page":"100164","DOI":"10.1016\/j.dajour.2023.100164","article-title":"An outliers detection and elimination framework in classification task of data mining","volume":"6","author":"Dash","year":"2023","journal-title":"Decis. Anal. J."},{"key":"ref_40","doi-asserted-by":"crossref","first-page":"1","DOI":"10.1029\/2011WR010973","article-title":"A log-sinh transformation for data normalization and variance stabilization","volume":"48","author":"Wang","year":"2012","journal-title":"Water Resour. Res."},{"key":"ref_41","first-page":"100170","article-title":"A conceptual IoT framework based on Anova-F feature selection for chronic kidney disease detection using deep learning approach","volume":"10","author":"Ali","year":"2024","journal-title":"Intell.-Based Med."},{"key":"ref_42","first-page":"2711","article-title":"KNN classification with one-step computation","volume":"35","author":"Zhang","year":"2021","journal-title":"IEEE Trans. Knowl. Data Eng."},{"key":"ref_43","doi-asserted-by":"crossref","unstructured":"Guido, R., Ferrisi, S., Lofaro, D., and Conforti, D. (2024). An overview on the advancements of support vector machine models in healthcare applications: A review. Information, 15.","DOI":"10.3390\/info15040235"},{"key":"ref_44","doi-asserted-by":"crossref","first-page":"92","DOI":"10.32736\/sisfokom.v13i1.1985","article-title":"Classification comparison performance of supervised machine learning Random Forest and Decision Tree algorithms using confusion matrix","volume":"13","author":"Helmud","year":"2024","journal-title":"J. Sisfokom (Sistem Inf. Dan Komput.)"},{"key":"ref_45","doi-asserted-by":"crossref","unstructured":"Rashedi, K.A., Ismail, M.T., Al Wadi, S., Serroukh, A., Alshammari, T.S., and Jaber, J.J. (2024). Multi-layer perceptron-based classification with application to outlier detection in Saudi Arabia stock returns. J. Risk Financ. Manag., 17.","DOI":"10.3390\/jrfm17020069"},{"key":"ref_46","doi-asserted-by":"crossref","first-page":"127","DOI":"10.1016\/j.gltp.2022.04.008","article-title":"Logistic regression technique for prediction of cardiovascular disease","volume":"3","author":"Ambrish","year":"2022","journal-title":"Glob. Transitions Proc."},{"key":"ref_47","doi-asserted-by":"crossref","unstructured":"Veziro\u011flu, M., Veziro\u011flu, E., and Bucak, \u0130.\u00d6. (2024). Performance comparison between Naive Bayes and machine learning algorithms for news classification. Bayesian Inference-Recent Trends, IntechOpen.","DOI":"10.5772\/intechopen.1002778"},{"key":"ref_48","unstructured":"G\u00e9ron, A. (2022). Hands-on Machine Learning with Scikit-Learn, Keras, and TensorFlow, O\u2019Reilly Media, Inc."},{"key":"ref_49","first-page":"335","article-title":"Exploring ensemble optimized voting and stacking classifiers through Cross-validation for early detection of suicidal ideation","volume":"47","author":"Shukla","year":"2024","journal-title":"J. Intell. Fuzzy Syst."},{"key":"ref_50","doi-asserted-by":"crossref","first-page":"20","DOI":"10.1186\/s40537-020-00299-5","article-title":"A comprehensive evaluation of ensemble learning for stock-market prediction","volume":"7","author":"Nti","year":"2020","journal-title":"J. Big Data"},{"key":"ref_51","unstructured":"Richards, T. (2023). Streamlit for Data Science: Create Interactive Data Apps in Python, Packt Publishing Ltd."},{"key":"ref_52","first-page":"599","article-title":"Classification model evaluation metrics","volume":"12","year":"2021","journal-title":"Int. J. Adv. Comput. Sci. Appl."},{"key":"ref_53","doi-asserted-by":"crossref","first-page":"188","DOI":"10.17977\/um018v5i22022p188-196","article-title":"Predicting heart disease using Logistic Regression","volume":"5","author":"Anshori","year":"2022","journal-title":"Knowl. Eng. Data Sci. (KEDS)"},{"key":"ref_54","doi-asserted-by":"crossref","unstructured":"Abubaker, H., Singh, J., Muchtar, F., and Fattah, S. (2023, January 26\u201327). An Ensemble-Based Extra Feature Selection Approach for Predicting Heart Disease. Proceedings of the The International Conference on Recent Innovations in Computing, Jammu, India.","DOI":"10.1007\/978-981-97-2839-8_38"},{"key":"ref_55","doi-asserted-by":"crossref","unstructured":"Sharma, N., and Lalwani, P. (2023). Increasing the reliability of Heart Disease classification models using Class Balancing techniques with Feature Engineering. ResearchSquare.","DOI":"10.21203\/rs.3.rs-3504080\/v1"},{"key":"ref_56","first-page":"41","article-title":"Assessment of associative classification approach for predicting mortality by heart failure","volume":"5","year":"2020","journal-title":"J. Cogn. Syst."},{"key":"ref_57","doi-asserted-by":"crossref","first-page":"100469","DOI":"10.1016\/j.smhl.2024.100469","article-title":"ReActHE: A homomorphic encryption friendly deep neural network for privacy-preserving biomedical prediction","volume":"32","author":"Song","year":"2024","journal-title":"Smart Health"},{"key":"ref_58","doi-asserted-by":"crossref","first-page":"757","DOI":"10.1016\/j.jksuci.2023.01.014","article-title":"A comprehensive review on ensemble deep learning: Opportunities and challenges","volume":"35","author":"Mohammed","year":"2023","journal-title":"J. King Saud-Univ.-Comput. Inf. Sci."},{"key":"ref_59","doi-asserted-by":"crossref","unstructured":"Elo, G., Ghansah, B., and Kwaa-Aidoo, E. (2024). Critical Review of Stack Ensemble Classifier for the Prediction of Young Adults\u2019voting Patterns Based on Parents\u2019political Affiliations. Informing Sci., 27.","DOI":"10.28945\/5254"},{"key":"ref_60","first-page":"13559","article-title":"Joint Training of Deep Ensembles Fails Due to Learner Collusion","volume":"Volume 36","author":"Oh","year":"2023","journal-title":"Proceedings of the Advances in Neural Information Processing Systems"}],"container-title":["Informatics"],"original-title":[],"language":"en","link":[{"URL":"https:\/\/www.mdpi.com\/2227-9709\/12\/4\/110\/pdf","content-type":"unspecified","content-version":"vor","intended-application":"similarity-checking"}],"deposited":{"date-parts":[[2025,10,14]],"date-time":"2025-10-14T04:23:52Z","timestamp":1760415832000},"score":1,"resource":{"primary":{"URL":"https:\/\/www.mdpi.com\/2227-9709\/12\/4\/110"}},"subtitle":[],"short-title":[],"issued":{"date-parts":[[2025,10,11]]},"references-count":60,"journal-issue":{"issue":"4","published-online":{"date-parts":[[2025,12]]}},"alternative-id":["informatics12040110"],"URL":"https:\/\/doi.org\/10.3390\/informatics12040110","relation":{},"ISSN":["2227-9709"],"issn-type":[{"value":"2227-9709","type":"electronic"}],"subject":[],"published":{"date-parts":[[2025,10,11]]}}}