Implementing K-Nearest Neighbors (k-NN) Algorithm and Backward Elimination on Cardiotocography Datasets

Having a healthy baby is a dream for mothers. Unfortunately, high maternal and fetal mortality has become a vital problem that requires early risk detection for pregnant women. A cardiotocograph examination is necessary to maintain maternal and fetal health. One method that can solve this problem is classification. This research analyzes the optimal use of k values and distance measurements in the k-NN method. This research expects to become the primary reference for other studies examining the same dataset or developing k-NN. A selection feature is needed to optimize the classification method, particularly for improving accuracy results. This study used the cardiotocography dataset from cardiotocograph examinations related to fetal conditions. The cardiotocography dataset consisted of 2,126 records with 22 features and variables. It also had three classification classes, normal, suspect, and pathological, from the Universal Child Immunization Machine Learning Repository website. It employed the K-Nearest Neighbor (k-NN) method and the backward elimination feature with ordinary least squares regression. The test in this research applied the scenarios of three distance calculations, i.e., Euclidean distance, Manhattan distance, and Minkowski distance, as well as four variations of k values. Evaluation of each scenario indicated the accuracy of the confusion matrix and execution time. This study compared K-Nearest Neighbor (k-NN) and Backward Elimination methods with K-nearest neighbor (k-NN) without selection features. The best accuracy of the Backward Elimination and K-Nearest Neighbor (K-NN) methods was 91%, as was the K-Nearest Neighbor (k-NN) method without selection features. Both had similar k values (k = 3) and Manhattan distance. The backward elimination method reduced the number of features from 22 to 14. Meanwhile, the execution times of the Backward Elimination and K-Nearest Neighbor (k-NN) methods got better results as each distance averaged 26.54, 19.23, and 68.09 seconds. K-Nearest Neighbor (k-NN) execution times without selection features were 26.83, 19.39, and 68.84, respectively. In conclusion, backward elimination did not increase accuracy because it yielded the same accuracy. However, backward elimination and K-nearest Neighbor (k-NN) produced faster results, with differences of 29%, 16%, and 75%, respectively.

Authors

Institutions

Publication Details

Journal
JOIV International Journal on Informatics Visualization
Published
2024-09-30
DOI
https://doi.org/10.62527/joiv.8.3.1996
Citations
3
Primary Topic
Energy Load and Power Forecasting
Type
article
Field-Weighted Citation Impact
0.63
Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
article

Implementing K-Nearest Neighbors (k-NN) Algorithm and Backward Elimination on Cardiotocography Datasets

Andy Rachman, Muchamad Kurniawan, Gusti Eka Yuliastuti, Hafida Nur Zaqiyah et al.
3 citations
JOIV International Journal on Informatics Visualization
Energy Load and Power Forecasting
0.63
article

Implementing K-Nearest Neighbors (k-NN) Algorithm and Backward Elimination on Cardiotocography Datasets

Andy Rachman, Muchamad Kurniawan, Gusti Eka Yuliastuti, Hafida Nur Zaqiyah, Adib Pakar Budi
article en
3 citations

Abstract

Having a healthy baby is a dream for mothers. Unfortunately, high maternal and fetal mortality has become a vital problem that requires early risk detection for pregnant women. A cardiotocograph examination is necessary to maintain maternal and fetal health. One method that can solve this problem is classification. This research analyzes the optimal use of k values and distance measurements in the k-NN method. This research expects to become the primary reference for other studies examining the same dataset or developing k-NN. A selection feature is needed to optimize the classification method, particularly for improving accuracy results. This study used the cardiotocography dataset from cardiotocograph examinations related to fetal conditions. The cardiotocography dataset consisted of 2,126 records with 22 features and variables. It also had three classification classes, normal, suspect, and pathological, from the Universal Child Immunization Machine Learning Repository website. It employed the K-Nearest Neighbor (k-NN) method and the backward elimination feature with ordinary least squares regression. The test in this research applied the scenarios of three distance calculations, i.e., Euclidean distance, Manhattan distance, and Minkowski distance, as well as four variations of k values. Evaluation of each scenario indicated the accuracy of the confusion matrix and execution time. This study compared K-Nearest Neighbor (k-NN) and Backward Elimination methods with K-nearest neighbor (k-NN) without selection features. The best accuracy of the Backward Elimination and K-Nearest Neighbor (K-NN) methods was 91%, as was the K-Nearest Neighbor (k-NN) method without selection features. Both had similar k values (k = 3) and Manhattan distance. The backward elimination method reduced the number of features from 22 to 14. Meanwhile, the execution times of the Backward Elimination and K-Nearest Neighbor (k-NN) methods got better results as each distance averaged 26.54, 19.23, and 68.09 seconds. K-Nearest Neighbor (k-NN) execution times without selection features were 26.83, 19.39, and 68.84, respectively. In conclusion, backward elimination did not increase accuracy because it yielded the same accuracy. However, backward elimination and K-nearest Neighbor (k-NN) produced faster results, with differences of 29%, 16%, and 75%, respectively.

JOIV International Journal on Informatics VisualizationVol. 8(3)
Institut Teknologi Adhi Tama Surabaya (ID)
Good health and well-being
Openalex Percentile: Top 31%
Energy Load and Power Forecasting
0.63
AI Navigator

Ask Laika to Summarize, Analyze, and Connect papers live on the map.

Summarize Papers & Methodologies

Extract key findings, datasets, and comparative methods across publications.

Benchmark Rankings & Visual Analytics

Rank top research institutions, authors, funders, topics, and journals by Field-Weighted Citation Impact (FWCI) and paper volume with instant charts.

Connect Distant Disciplines

Bridge topological clusters on the map to find hidden collaborative intersections.