Skip to content
Open access

Optimizing KNN Classification for Heart Disease Prediction Using Sequential Forward Selection

Aug 2026 · Journal of Information Systems and Informatics · Vol 8, pp. 4811-4835 · 0 citations · 27 references

TL;DR

This study enhances a KNN model using Sequential Forward Selection (SFS) on the Cleveland dataset to optimize computational efficiency and precision while maintaining stable recall and successfully eliminated unstable features and reduced statistical noise.

Abstract

Irrelevant attributes often degrade the effectiveness of distance-based algorithms like K-Nearest Neighbors (KNN) in heart disease prediction. This study enhances a KNN model using Sequential Forward Selection (SFS) on the Cleveland dataset to optimize computational efficiency and precision while maintaining stable recall. To rigorously prevent data leakage, data partitioning was executed prior to mode imputation and normalization, followed by feature selection within a 5-fold stratified cross-validation framework. To further guarantee model robustness and rule out arbitrary selection, a 5-repeated 10-fold cross-validation and a 50-iteration feature stability analysis were executed. Compared to a baseline model (k=7, Euclidean; 80.33% accuracy) utilizing all 13 original attributes, the optimal 7-feature subset (cp, trestbps, chol, thalach, oldpeak, ca, thal) reduced the dimensional space by 46% and achieved 81.97% Accuracy, 77.42% Precision, 85.71% Recall, 78.79% Specificity, 0.9183 ROC-AUC, and an 81.36% F1-Score on an independent hold-out test set comprising 61 samples. Although McNemar's test (p = 1.0000) indicated the absolute accuracy improvement was not statistically significant, the 7-feature model successfully eliminated unstable features and reduced statistical noise. Ultimately, applying SFS provides a highly efficient, computationally lightweight framework for heart disease prediction without compromising predictive reliability.

Read PDF

Similar papers

Open access Oct 2026

Heart disease prediction through feature optimization, ensembles, and threshold calibration

It is demonstrated that integrating feature selection, ensemble learning, and threshold calibration can improve heart disease detection while maintaining predictive stability, providing a clinically aligned machine learning framework for cardiovascular risk assessment.

Mehdi Mostofi, T. Banirostam · 0 citations
Open access Aug 2026

AN OPTIMIZED XGBOOST-BASED FRAMEWORK FOR HEART FAILURE RISK CLASSIFICATION

A machine learning framework for heart failure survival prediction that makes use of an optimized XGBoost model combined with the Synthetic Minority Over-sampling Technique (SMOTE) has the potential to enhance patient outcomes through accurate and prompt clinical decision-making.

Anees Sultana, S. Khanam · 0 citations
Open access Sep 2026

Group-Aware and Explainable Machine Learning Framework for Heart Disease Prediction Using Optimized CatBoost

Accurate and reliable heart disease prediction can support early risk assessment and improve clinical decision-making. However, repeated or duplicate observations in widely used heart disease datasets can introduce data leakage and lead to overly optimistic performance estimates. This study proposes a duplicate-aware a...

Romaan Khan, Tufail Khan, Muhammad Tahir et al. · 0 citations
Open access 2026

Comparative analysis of Feature Selection Algorithms and Performances on Medical Classification Problem

The study recommends adopting CAE as the default choice in routine clinical applications due to its efficiency, and using RFE in research studies requiring maximum accuracy, to guiding researchers and clinicians in selecting the optimal combination of feature selection and classification algorithms according to their s...

Yahyia BenYahmed · 0 citations
Open access Sep 2026

Predicting the Classification of Heart Failure Patients Using Optimized Machine Learning Algorithms

A machine learning-driven framework developed using the healthcare-dataset-stroke-data, comprising diverse clinical attributes associated with cardiovascular conditions, improves both prediction accuracy and model transparency in heart failure classification.

Anton Musthafa, B. C. Krishna · 0 citations
Open access Aug 2026

An XGBoost-based predictive framework for diabetes mellitus multi-classification

benchmarking against Logistic Regression, Random Forest, Support Vector Machine, Decision Tree, and K-Nearest Neighbors showed that XGBoost provided the strongest performance, highlighting the effectiveness of XGBoost while emphasizing classification accuracy in multiclass diabetes prediction systems.

M. M. El Sherbiny, M. G. Abdel-Fattah, Ali E. Takieldeen et al. · 1 citation

We use cookies to run the site and, with your consent, for analytics and to show ads. See our Cookie Policy.