1 Department of Modern Information Technologies and Artificial Intelligence, Uzbekistan State World Languages University
2 Tashkent University of Information Technologies named after Muhammad al-Khwarizmi
3 Faculty of Computer Engineering, Tashkent University of Information Technologies named after Muhammad al-Khwarizmi
4 Tashkent University of Information Technologies named after Muhammad al-Khwarizmi
ReceivedOct 22, 2026
RevisedNov 06, 2026
PublishedNov 11, 2026
Abstract
Heart disease remains the leading cause of death worldwide, and much of the information needed to flag patients at risk is already collected during routine cardiac work-ups. This study evaluates a stacking ensemble that combines XGBoost, LightGBM and CatBoost through a logistic regression meta-learner. The experiments use the 630,000-record synthetic dataset of the Kaggle Playground Series (Season 6, Episode 2), which was generated by a deep learning model trained on an original clinical dataset with the Statlog (Heart) schema. To rule out data leakage, all preprocessing was placed inside the pipeline of each base learner, and three additional features were computed from fixed formulas that require no fitting. Six models were compared on identical five-fold stratified splits. The ensemble reached a ROC-AUC of 0.9553; at a threshold of 0.5 its sensitivity was 0.867, specificity 0.906, PPV 0.883 and NPV 0.894, and the Youden threshold (0.40) raised sensitivity to 0.887. The ensemble exceeded the best single model, CatBoost, by only 0.00004 in AUC and logistic regression by 0.0022. An ablation study showed that the engineered features did not improve performance (ΔAUC = −0.00003, p = .058). Permutation importance and SHAP values identified the thallium test, chest pain type, Health_Score and maximum heart rate as the leading predictors. In women the AUC equalled that of men (0.947), but sensitivity fell to 0.70, which reflects threshold choice in a low-prevalence group. The findings apply to synthetic data and require external validation on real patient records before clinical use.
1. Bhatt, C. M., Patel, P., Ghetia, T., & Mazzeo, P. L. (2023). Effective heart disease prediction using machine learning techniques. Algorithms, 16(2), Article 88. https://doi.org/10.3390/a16020088
2. Breiman, L. (2001). Random forests. Machine Learning, 45(1), 5–32. https://doi.org/10.1023/A:1010933404324
3. Brier, G. W. (1950). Verification of forecasts expressed in terms of probability. Monthly Weather Review, 78(1), 1–3. https://doi.org/10.1175/1520-0493(1950)078<0001:VOFEIT>2.0.CO;2
4. Chen, T., & Guestrin, C. (2016). XGBoost: A scalable tree boosting system. In Proceedings of the 22nd ACM SIGKDD International Conference on Knowledge Discovery and Data Mining (pp. 785–794). Association for Computing Machinery. https://doi.org/10.1145/2939672.2939785
5. Chicco, D., & Jurman, G. (2020). The advantages of the Matthews correlation coefficient (MCC) over F1 score and accuracy in binary classification evaluation. BMC Genomics, 21, Article 6. https://doi.org/10.1186/s12864-019-6413-7
6. Collins, G. S., Moons, K. G. M., Dhiman, P., Riley, R. D., Beam, A. L., Van Calster, B., Ghassemi, M., Liu, X., Reitsma, J. B., van Smeden, M., Boulesteix, A.-L., Camaradou, J. C., Celi, L. A., Denaxas, S., Denniston, A. K., Glocker, B., Golub, R. M., Harvey, H., Heinze, G., . . . Logullo, P. (2024). TRIPOD+AI statement: Updated guidance for reporting clinical prediction models that use regression or machine learning methods. BMJ, 385, Article e078378. https://doi.org/10.1136/bmj-2023-078378
7. Detrano, R., Janosi, A., Steinbrunn, W., Pfisterer, M., Schmid, J. J., Sandhu, S., Guppy, K. H., Lee, S., & Froelicher, V. (1989). International application of a new probability algorithm for the diagnosis of coronary artery disease. The American Journal of Cardiology, 64(5), 304–310. https://doi.org/10.1016/0002-9149(89)90524-9
8. Fawcett, T. (2006). An introduction to ROC analysis. Pattern Recognition Letters, 27(8), 861–874. https://doi.org/10.1016/j.patrec.2005.10.010
9. Grinsztajn, L., Oyallon, E., & Varoquaux, G. (2022). Why do tree-based models still outperform deep learning on typical tabular data? Advances in Neural Information Processing Systems, 35. https://doi.org/10.48550/arXiv.2207.08815
10. Kaggle. (2026). Predicting heart disease: Playground series, season 6, episode 2 [Data set]. https://www.kaggle.com/competitions/playground-series-s6e2
11. Kaufman, S., Rosset, S., Perlich, C., & Stitelman, O. (2012). Leakage in data mining: Formulation, detection, and avoidance. ACM Transactions on Knowledge Discovery from Data, 6(4), Article 15. https://doi.org/10.1145/2382577.2382579
12. Ke, G., Meng, Q., Finley, T., Wang, T., Chen, W., Ma, W., Ye, Q., & Liu, T.-Y. (2017). LightGBM: A highly efficient gradient boosting decision tree. Advances in Neural Information Processing Systems, 30, 3146–3154. https://papers.nips.cc/paper/6907-lightgbm-a-highly-efficient-gradient-boosting-decision-tree
13. Lundberg, S. M., & Lee, S.-I. (2017). A unified approach to interpreting model predictions. Advances in Neural Information Processing Systems, 30, 4765–4774.
14. Nadeau, C., & Bengio, Y. (2003). Inference for the generalization error. Machine Learning, 52(3), 239–281. https://doi.org/10.1023/A:1024068626366
15. Pedregosa, F., Varoquaux, G., Gramfort, A., Michel, V., Thirion, B., Grisel, O., Blondel, M., Prettenhofer, P., Weiss, R., Dubourg, V., Vanderplas, J., Passos, A., Cournapeau, D., Brucher, M., Perrot, M., & Duchesnay, É. (2011). Scikit-learn: Machine learning in Python. Journal of Machine Learning Research, 12, 2825–2830. https://jmlr.org/papers/v12/pedregosa11a.html
16. Prokhorenkova, L., Gusev, G., Vorobev, A., Dorogush, A. V., & Gulin, A. (2018). CatBoost: Unbiased boosting with categorical features. Advances in Neural Information Processing Systems, 31, 6638–6648. https://doi.org/10.48550/arXiv.1706.09516
17. Qiu, Z., Qiao, Y., Shi, W., & Liu, X. (2024). A robust framework for enhancing cardiovascular disease risk prediction using an optimized category boosting model. Mathematical Biosciences and Engineering, 21(2), 2943–2969. https://doi.org/10.3934/mbe.2024131
18. Roth, G. A., Mensah, G. A., Johnson, C. O., Addolorato, G., Ammirati, E., Baddour, L. M., Barengo, N. C., Beaton, A. Z., Benjamin, E. J., Benziger, C. P., Bonny, A., Brauer, M., Brodmann, M., Cahill, T. J., Carapetis, J., Catapano, A. L., Chugh, S. S., Cooper, L. T., Coresh, J., . . . Fuster, V. (2020). Global burden of cardiovascular diseases and risk factors, 1990–2019: Update from the GBD 2019 Study. Journal of the American College of Cardiology, 76(25), 2982–3021. https://doi.org/10.1016/j.jacc.2020.11.010
19. Shwartz-Ziv, R., & Armon, A. (2022). Tabular data: Deep learning is not all you need. Information Fusion, 81, 84–90. https://doi.org/10.1016/j.inffus.2021.11.011
20. Statlog (Heart) [Data set]. (n.d.). UCI Machine Learning Repository. https://doi.org/10.24432/C57303
21. Van Calster, B., McLernon, D. J., van Smeden, M., Wynants, L., & Steyerberg, E. W. (2019). Calibration: The Achilles heel of predictive analytics. BMC Medicine, 17, Article 230. https://doi.org/10.1186/s12916-019-1466-7
22. Wolpert, D. H. (1992). Stacked generalization. Neural Networks, 5(2), 241–259. https://doi.org/10.1016/S0893-6080(05)80023-1
23. Wu, Y., Xia, Z., Feng, Z., Huang, M., Liu, H., & Zhang, Y. (2024). Forecasting heart disease risk with a stacking-based ensemble machine learning method. Electronics, 13(20), Article 3996. https://doi.org/10.3390/electronics13203996
24. Youden, W. J. (1950). Index for rating diagnostic tests. Cancer, 3(1), 32–35. https://doi.org/10.1002/1097-0142(1950)3:1<32::AID-CNCR2820030106>3.0.CO;2-3
How to Cite
Tolibova Nafisa, Kholdorov Shokhrukhmirzo, Eshmurodova Dildorakhon, Sulaymonova Fozila (2026). A LEAKAGE-SAFE STACKING ENSEMBLE OF GRADIENT BOOSTING MODELS FOR HEART DISEASE PREDICTION: ABLATION, CLINICAL METRICS AND SUBGROUP ANALYSIS. Science and Innovation, 5(10), 18-32. https://doi.org/10.67620/sai.510d0004