Method Article

Heart Disease Prediction Using Statistical Feature Selection and Interpretable Machine Learning

DOI:

10.3791/71170

June 5th, 2026

In This Article

Summary

Loading...
$$\rightleftharpoonup{xx}$$ $$\longleftharp{xx}$$, $$\longrightharp{xx}$$,

This protocol describes a machine learning framework for heart disease prediction that combines data augmentation using generative adversarial networks, statistical and metaheuristic-based feature selection, and explainable artificial intelligence.

Abstract

Loading...
$$\rightleftharpoonup{xx}$$ $$\longleftharp{xx}$$, $$\longrightharp{xx}$$,

Heart disease is a major cause of death worldwide, making its early prediction an important clinical and computational issue. Several studies have addressed challenges such as data scarcity, feature selection, and model interpretability individually, but fewer studies have proposed an integrated framework that addresses these challenges in a synergistic manner. This paper presents a comprehensive predictive framework that uses: (1) a generative adversarial network (GAN) to address class imbalance and data scarcity; (2) a hybrid feature selection approach that combines statistical pre-filtering via Welch’s t.-test and Cohen’s d effect size, along with metaheuristic optimization via Harris Hawk Optimization; and (3) various explainable artificial intelligence methods, including SHAP, partial dependence plots, and odds ratios. This framework was assessed on the Cleveland and Statlog datasets, yielding strong accuracy, F1-scores, and ROC-AUC values compared with selected baselines and existing methods. The model provides a robust, interpretable computational framework for heart disease prediction, linking machine learning performance with clinical interpretability.

Introduction

Loading...
$$\rightleftharpoonup{xx}$$ $$\longleftharp{xx}$$, $$\longrightharp{xx}$$,

Cardiovascular diseases are one of the leading causes of morbidity and mortality worldwide, accounting for an estimated 17.9 million deaths per year1. Early and accurate prediction of heart disease is important for timely intervention and improved patient outcomes. In this context, heart disease prediction using machine learning (ML) algorithms faces three main challenges: the limited availability of high-quality medical data, high-dimensional feature spaces containing redundant or irrelevant variables, and the black-box nature of complex models, which can hinder clinical trust and adoption2. Recent work has combined ML ....

Access restricted. Please log in or start a trial to view this content.

Protocol

Loading...
$$\rightleftharpoonup{xx}$$ $$\longleftharp{xx}$$, $$\longrightharp{xx}$$,

Ethics statement, dataset, software, and data preparation
The findings of this study were based on the UCI Machine Learning Repository’s Heart Disease dataset. As this is a publicly accessible and de-identified resource, its use did not require ethical committee approval. The authors also verify the originality of this manuscript, confirming that it has not been previously published or submitted to other journals.

The Cleveland Heart Disease dataset was split into training and test sets at 80/20. The dataset typically contains 303 instances; therefore, approximately 242 samples were used for training, and 61 samples wer....

Access restricted. Please log in or start a trial to view this content.

Results

Loading...
$$\rightleftharpoonup{xx}$$ $$\longleftharp{xx}$$, $$\longrightharp{xx}$$,

Experimental settings and performance metrics
All experiments were conducted in Python 3.9 using scikit-learn, TensorFlow, and SHAP libraries. Stratified 10-fold cross-validation was employed. The evaluation metrics included Accuracy, Precision, Recall, F1-score, and ROC-AUC.

Performance comparison with selected baseline methods

.......
Method

Access restricted. Please log in or start a trial to view this content.

Discussion

Loading...
$$\rightleftharpoonup{xx}$$ $$\longleftharp{xx}$$, $$\longrightharp{xx}$$,

The framework outlined here provides a reproducible approach for developing interpretable heart disease prediction models. A prototype clinical dashboard integrating these explanations is shown in Figure 4, which implements a three-stage workflow: pre-screening, decision support with SHAP, and intervention planning [Figure 4 here]. Several critical steps require close attention to ensure successful execution of this framework.

As shown in Table 5,.......

Access restricted. Please log in or start a trial to view this content.

Disclosures

Loading...
$$\rightleftharpoonup{xx}$$ $$\longleftharp{xx}$$, $$\longrightharp{xx}$$,

The authors have no conflicts of interest to declare.

Acknowledgements

Loading...
$$\rightleftharpoonup{xx}$$ $$\longleftharp{xx}$$, $$\longrightharp{xx}$$,

The authors acknowledge the support of Capital (Helwan) University and the Arab Open University for providing research facilities. This research did not receive any specific grant from funding agencies in the public, commercial, or non-profit sectors.

....

Access restricted. Please log in or start a trial to view this content.

Materials

List of materials used in this article
NameCompanyCatalog NumberComments
Cleveland Heart Disease DatasetUCI Machine Learning Repositoryhttps://archive.ics.uci.edu/ml/datasets/heart+diseaseBenchmark heart disease dataset used for model development/evaluation
DjangoDjango Software FoundationN/AAlternative web framework for dashboard implementation
fancyimputefancyimpute developersN/AOptional MICE and KNN imputation sensitivity analysis
FlaskPallets ProjectsN/AWeb framework for dashboard implementation
HL7/FHIR API standardHL7 InternationalN/APlanned standard for EHR/dashboard integration
KerasKeras developersN/ANeural network API used with TensorFlow/Keras for GAN architecture
matplotlibmatplotlib developersN/APlotting library
MIMIC-III DatabasePhysioNethttps://physionet.org/content/mimiciii/1.4/Critical care database for planned external validation
missingnomissingno developersN/AMissingness matrix visualization
NumPyNumPy developersN/ANumerical computing
pandaspandas developersN/AData manipulation
PhysioNetPhysioNethttps://physionet.org/Access platform/source for MIMIC-III
PythonPython Software FoundationN/AVersion 3.9/3.9.7
scikit-learnscikit-learn developersN/AMachine learning library, including preprocessing, model training, cross-validation, and metrics
SciPySciPy developersN/AStatistical testing, including Welch’s t-test and Spearman correlation
SHAPSHAP developersN/AExplainable AI library
Statlog Heart Disease DatasetUCI Machine Learning Repositoryhttps://archive.ics.uci.edu/ml/datasets/statlog+(heart)Benchmark heart disease dataset
TensorFlowGoogleN/ADeep learning framework for GAN implementation
UCI Machine Learning RepositoryUniversity of California, Irvinehttps://archive.ics.uci.edu/Repository source for Cleveland and Statlog datasets

Reprints and Permissions

Request permission to reuse the text or figures of this JoVE article

Request Permission

Tags

Generative Adversarial NetworkClass ImbalanceHarris Hawk OptimizationSHAP AnalysisPartial Dependence PlotsOdds Ratios

Related Articles