An Optimized Stacking Ensemble Framework With Synthetic Data Augmentation and Gradient-Boosted Feature Selection For Heart Disease Classification
Abstract
According to the World Health Organization, heart disease causes about 17.9 million deaths every year and is one of the leading causes of death worldwide. Early diagnosis improves patient outcomes and lowers healthcare costs, but conventional diagnostic methods are costly, time-consuming and require specialist medical skills. This study develops an optimized machine learning framework based on a stacking ensemble for accurate heart disease prediction and early clinical diagnosis. Five benchmark heart disease datasets (Cleveland, Hungarian, Switzerland, Long Beach and Statlog) were combined to increase the diversity and reliability of the data. Synthetic data augmentation, based on bootstrap sampling and controlled noise injection, was used to compensate for the small sample size and to enlarge the dataset to about 30,000 observations. Gradient Boosted Decision Trees (GBDT) were used to identify the most important predictors. The stacking ensemble consisted of four base learners (Random Forest, Decision Tree, K-Nearest Neighbours and Logistic Regression) and a Logistic Regression meta-learner. Model performance was assessed with accuracy, precision, recall, F1-score and the area under the receiver operating characteristic curve (ROC-AUC) using five-fold cross-validation and a held-out test set. The proposed stacking ensemble achieved an accuracy of 99.97%, with precision, recall and F1-score close to 100% for both classes and a ROC-AUC of 1.000. The combination of several data sources, synthetic data augmentation and ensemble learning was central to this performance, and the optimized stacking ensemble shows promise for the early diagnosis of heart disease in clinical decision support.
Downloads
Published
How to Cite
Issue
Section
License
Copyright (c) 2025 Syed Muhammad Faisal, Mudasir Mahmood, Muhammad Farhan

This work is licensed under a Creative Commons Attribution 4.0 International License.
Authors who publish with this journal agree to the following terms:
- Authors retain copyright and grant the journal right of first publication with the work simultaneously licensed under a Creative Commons Attribution License that allows others to share the work with an acknowledgment of the work's authorship and initial publication in this journal.
- Authors are able to enter into separate, additional contractual arrangements for the non-exclusive distribution of the journal's published version of the work (e.g., post it to an institutional repository or publish it in a book), with an acknowledgment of its initial publication in this journal.
- Authors are permitted and encouraged to post their published articles online (e.g., in institutional repositories or on their website, social networks like ResearchGate or Academia), as it can lead to productive exchanges, as well as earlier and greater citation of published work (See The Effect of Open Access).

Except where otherwise noted, the content on this site is licensed under a Creative Commons Attribution 4.0 International License.



According to the