EUVIMEDEUVIMED entdecken
Open Access · CC BY 4.0

Perbandingan Kinerja Algoritma K-Nearest Neighbors dan Decision Tree untuk Klasifikasi Diabetes

Amar Haris Yunianto, Egia Rosi Subhiyakto

Building of Informatics, Technology and Science (BITS) · 16.03.2025 · 6 (4) · 2601-2611

DOI: 10.47065/bits.v6i4.6550 ↗

Kurz gefasst

Fachartikel in der Zeitschrift Building of Informatics, Technology and Science (BITS), online erschienen am 16.03.2025. Verfasst von Amar Haris Yunianto und 1 weiteren Autor:innen. Der Volltext ist frei zugänglich (Open Access, CC BY 4.0).

AbstractBibliografische AngabenZitierenVerwandte Studien

Abstract (Originalsprache)

Diabetes is a chronic metabolic disease that is a major concern in global health due to its increasing prevalence, including in Indonesia, with significant impacts on individual health and health systems. This study aims to compare the performance of K-Nearest Neighbors (KNN) and Decision Tree (DT) algorithms in diabetes classification using the Pima Indians Diabetes Database (PIDD) dataset. Research methods include data collection, pre-processing, missing value handling, outlier detection and handling, and data balancing techniques using Synthetic Minority Oversampling Technique (SMOTE) to overcome class imbalance in the dataset. Model implementation is done by optimizing parameters using GridSearchCV, while performance evaluation is done based on accuracy, precision, recall, and F1 score matrices. The results show that the DT algorithm has superior performance compared to KNN, both without SMOTE and with SMOTE. In the model without SMOTE, DT achieved 85.71% accuracy, while KNN only reached 83.12%. After applying SMOTE, the performance of both algorithms improved significantly, with DT achieving 92% accuracy, 94% precision, 90.38% recall, and 92.16% F1 score, while KNN achieved 91% accuracy, 96.59% recall, and 90.43% F1 score. This study revealed that the use of SMOTE effectively improved the model's performance in handling data imbalance, while the DT algorithm showed better performance stability. These findings are expected to make a significant contribution to the development of more accurate prediction models for diabetes diagnosis, while enriching insights into the application of machine learning in the healthcare field.

Zitieren

APA

Yunianto, A. H., & Subhiyakto, E. R. (2025). Perbandingan Kinerja Algoritma K-Nearest Neighbors dan Decision Tree untuk Klasifikasi Diabetes. Building of Informatics, Technology and Science (BITS), 6(4), 2601-2611. https://doi.org/10.47065/bits.v6i4.6550

Vancouver

Yunianto AH, Subhiyakto ER. Perbandingan Kinerja Algoritma K-Nearest Neighbors dan Decision Tree untuk Klasifikasi Diabetes. Building of Informatics, Technology and Science (BITS). 2025;6(4):2601-2611. doi:10.47065/bits.v6i4.6550

BibTeX
@article{Yunianto2025,
  author = {Yunianto, Amar Haris and Subhiyakto, Egia Rosi},
  title = {Perbandingan Kinerja Algoritma K-Nearest Neighbors dan Decision Tree untuk Klasifikasi Diabetes},
  journal = {Building of Informatics, Technology and Science (BITS)},
  year = {2025},
  volume = {6},
  number = {4},
  pages = {2601--2611},
  doi = {10.47065/bits.v6i4.6550}
}
Kostenlos starten →