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

Institutions

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
Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
NOV
article

Heart Disease Diagnosis Using Machine Learning and Stacking Ensemble: A Comparative Study on Public and Local Clinical Data from Tajoura Heart Center

Mansur M. Ali, Yousuf Meeloud Khalleefah
International Science and Technology Journal
Artificial Intelligence in Healthcare
article

Heart Disease Diagnosis Using Machine Learning and Stacking Ensemble: A Comparative Study on Public and Local Clinical Data from Tajoura Heart Center

Mansur M. Ali, Yousuf Meeloud Khalleefah
article en

Abstract

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.

International Science and Technology Journal
Libyan Academy (LY), Azzaytuna University (LY)
Artificial Intelligence in Healthcare
AI Navigator

Ask Laika to Summarize, Analyze, and Connect papers live on the map.

Summarize Papers & Methodologies

Extract key findings, datasets, and comparative methods across publications.

Benchmark Rankings & Visual Analytics

Rank top research institutions, authors, funders, topics, and journals by Field-Weighted Citation Impact (FWCI) and paper volume with instant charts.

Connect Distant Disciplines

Bridge topological clusters on the map to find hidden collaborative intersections.

Laika access coming soon