Clinical heart disease classification requires evaluation of both discrimination and probability reliability, especially when ensembles combine differently biased classifiers. This study evaluates an explainable stacking framework on the original UCI Cleveland dataset containing 303 records, including 139 disease-positive and 164 disease-negative cases. Logistic Regression, sigmoid-calibrated Support Vector Machine, Random Forest, and XGBoost provide probability inputs to a regularized Logistic Regression meta-classifier. Fivefold outer cross-validation is repeated twice. Threefold inner searches tune the base models, and separate threefold out-of-fold prediction generation retunes the complete pipelines within stacking folds. An all-variable protocol is compared with an inner-tuned mutual-information selection protocol. Individual classifiers and equal-weight soft voting use identical outer partitions. In the selection-enabled protocol, stacking achieved a mean outer-fold ROC AUC of 0.918 and Brier score of 0.115. Averaging each patient's two held-out probabilities yielded 85.15% accuracy, 79.14% sensitivity, 90.24% specificity, and ROC AUC 0.911. Logistic Regression achieved pooled ROC AUC 0.916, while soft voting achieved 0.913; therefore, stacking did not establish a consistent discrimination advantage. Cross-fitted permutation SHAP identified ca, thal, cp as the leading model-associated predictors. All classification decisions used a fixed probability threshold of 0.5. Bootstrap comparisons were descriptive and conditional on the fitted predictions. The accompanying code preserves data provenance, selected configurations, and patient-level predictions to support reproduction of the findings. The findings support reporting calibration, feature-selection ablations, and uncertainty alongside accuracy, while retaining strong individual-model baselines. The study is an internally validated benchmark of existing disease status and does not establish prospective risk prediction or clinical readiness.
- 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
- El-Sofany, H., Bouallegue, B., & Abd El-Latif, Y. M. (2024). A proposed technique for predicting heart disease using machine learning algorithms and an explainable AI method. Scientific Reports, 14, Article 23277. https://doi.org/10.1038/s41598-024-74656-2
- Ganie, S. M., Pramanik, P. K. D., & Zhao, Z. (2025). Ensemble learning with explainable AI for improved heart disease prediction based on multiple datasets. Scientific Reports, 15, Article 13912. https://doi.org/10.1038/s41598-025-97547-6
- Ghassemi, M., Oakden-Rayner, L., & Beam, A. L. (2021). The false hope of current approaches to explainable artificial intelligence in health care. The Lancet Digital Health, 3(11), e745–e750. https://doi.org/10.1016/S2589-7500(21)00208-9
- Kapoor, S., & Narayanan, A. (2023). Leakage and the reproducibility crisis in machine-learning-based science. Patterns, 4(9), Article 100804. https://doi.org/10.1016/j.patter.2023.100804
- Lundberg, S. M., Erion, G., Chen, H., DeGrave, A., Prutkin, J. M., Nair, B., Katz, R., Himmelfarb, J., Bansal, N., & Lee, S. I. (2020). From local explanations to global understanding with explainable AI for trees. Nature Machine Intelligence, 2(1), 56–67. https://doi.org/10.1038/s42256-019-0138-9
- Noroozi, Z., Orooji, A., &Erfannia, L. (2023). Analyzing the impact of feature selection methods on machine learning algorithms for heart disease prediction. Scientific Reports, 13, Article 22588. https://doi.org/10.1038/s41598-023-49962-w
- Tiwari, A., Chugh, A., & Sharma, A. (2022). Ensemble framework for cardiovascular disease prediction. Computers in Biology and Medicine, 146, Article 105624. https://doi.org/10.1016/j.compbiomed.2022.105624.