Tech : Journal of Engineering Science
Vol 1 No 1 (2025): Pengembangan dan Penerapan Solusi Rekayasa untuk Tantangan Lingkungan, Industri,

Impact of Feature Selection on the Performance of KNN and SVM in Heart Disease Prediction

Dhiyaussalam (Politeknik Negeri Banjarmasin)
M. Helmy Noor (Politeknik Negeri Banjarmasin)
Herlinawati (Politeknik Negeri Banjarmasin)
Isna Wardiah (Politeknik Negeri Banjarmasin)



Article Info

Publish Date
26 Jun 2025

Abstract

Feature selection plays a vital role in enhancing the performance of machine learning models by eliminating irrelevant or redundant attributes. This study investigates the impact of feature selection on the classification accuracy of K-Nearest Neighbors (KNN) and Support Vector Machine (SVM) in predicting heart disease. Using the UCI Heart Disease data, which initially includes 13 input features, feature importance scores were calculated using a Random Forest model. A threshold-based method was then applied to identify and retain the most informative features. Through iterative testing of importance thresholds, a value of 0.03 yielded the best results, reducing the feature set from 13 to 9 attributes. Classification models were trained and evaluated using full and reduced feature sets. Performance was assessed using accuracy, precision, recall, and F1-score and validated with 5-fold cross-validation. The results demonstrate significant performance gains after feature selection. The KNN classifier improved accuracy from 83% to 92%, with notable gains in recall and F1-score for the positive class. Similarly, SVM achieved 92% accuracy, with improved precision and overall performance stability. These findings suggest that data-driven feature reduction simplifies the model and enhances its predictive power. This study systematically compares feature selection effects on two distinct machine learning algorithms and offers practical insights for optimizing medical prediction models in clinical decision support systems.

Copyrights © 2025






Journal Info

Abbrev

tech

Publisher

Subject

Automotive Engineering Chemical Engineering, Chemistry & Bioengineering Civil Engineering, Building, Construction & Architecture Electrical & Electronics Engineering Engineering

Description

Tech : Journal of Engineering Science (E-ISSN 3109-7790) is a journal published by Yayasan Penelitian dan Pengabdian Masyarakat Sisi Indonesia with the aim of developing research that focuses on the field of engineering. Focus and Scope: Civil and Infrastructure Engineering, Mechanical Engineering, ...