Heart Disease Diagnosis Using Machine Learning and Stacking Ensemble: A Comparative Study on Public and Local Clinical Data from Tajoura Heart Center
Heart disease remains a leading health burden, and early diagnosis supports sound clinical decisions. This study evaluates machine learning for heart disease classification on two data sources: a public Kaggle dataset (8,763 records) and a local clinical dataset from Tajoura Heart Center, Libya (2,283 records: 1,000 real patient records augmented with CTGAN-generated synthetic records). Each dataset was split 80:20 with stratification. Median/most-frequent imputation, one-hot encoding, and standardization were fitted on training data only. Seven classifiers—Logistic Regression, Random Forest, XGBoost, CatBoost, K-Nearest Neighbors, Gaussian Naïve Bayes, and Decision Tree—were compared by mean F1-score under stratified 5-fold cross-validation, and the best three were combined in a stacking ensemble with a Logistic Regression meta-learner. CatBoost was the strongest individual model on both datasets (test F1 = 0.7024 on Kaggle; 0.9069 on local data). The stacking ensemble obtained the highest F1 on both (0.7090 and 0.9106), with an accuracy of 0.9037 on the local data, although its gain over CatBoost was modest. Classifier rankings differed between datasets, supporting dataset-specific model evaluation. Because the local training and test sets both contain synthetic records, these results are encouraging but preliminary; they do not establish clinical validity, which requires evaluation on real, external patient records. Keywords: heart disease diagnosis, machine learning, CatBoost, stacking ensemble, cross-validation, clinical data, Libya.
Authors
- Mansur M. Ali (ORCID: https://orcid.org/0009-0000-1012-6166)
- Yousuf Meeloud Khalleefah
Institutions
- Libyan Academy (LY)
- Azzaytuna University (LY)
Publication Details
- Journal
- International Science and Technology Journal
- Published
- 2026-12-03
- DOI
- https://doi.org/10.62341/istj-vol39-2-mh48
- Primary Topic
- Artificial Intelligence in Healthcare
- Type
- article
- Field-Weighted Citation Impact
- 0.00