Melola Discovery

← Melola Discovery

Journal

Random Forest Algorithm Optimization using K-Nearest Neighborand SMOTE on Diabetes Disease

Recursive Journal of Informatics · Vol. 3 No. 1 (2025) · pp. 43–50

DOI
10.15294/rji.v3i1.1576
ISSN
2986-6588, 2963-5551
Published
2025-03-28
Publisher
Universitas Negeri Semarang
Language
eng

Abstract

Abstract. Diabetes is a chronic disease that can cause long-term damage, dysfunction and failure of various organs in the body. Diabetes occurs due to an increase in blood sugar (glucose) levels exceeding normal values. Early diagnosis of diseases is crucial for addressing them, especially in the case of diabetes, which is one of the chronic illnesses. Purpose: This study aims to find out how the implementation of the K-Nearest Neighbor algorithm with the Synthetic Minority Oversampling Technique (SMOTE) in optimizing Random Forest algorithm for diabetes disease prediction. Methods/Study design/approach: This study uses the Pima Indian Diabetes Dataset, the random forest algorithm for the classification, k-nearest neighbor for optimization, and SMOTE for the minority class oversampling. Result/Findings: The prediction accuracy of the model using SMOTE and k-nearest neighbor is 92,86%. Meanwhile, the model that does not use SMOTE and k-nearest neighbor obtains an accuracy of 83,03%. Novelty/Originality/Value: This research shows that the use of random forest algorithm with k-nearest neighbor and SMOTE gives better accuracy than without using k-nearest neighbor and SMOTE.

Keywords

Collaboration network of the authors

23 authors · 64 co-authorship links

Hover or tap a name to highlight its co-authors. Double-click to open the author's page.

  • State University of Semarang
  • Affiliation unknown
  • Different organisations
  • Same organisation
  • Affiliation unknown
  • Thicker line = more joint articles · bigger circle = more articles
Show as table
Co-authorOrganisationJoint articles
Arif WidiyatmokoState University of Semarang3
Muhamad TaufiqState University of Semarang2
Melissa Salma DarmawanState University of Semarang2
Indah Urwatin WusqoState University of Semarang2
Rima Ayu CahyaniState University of Semarang2
Dela Rista DamayantiState University of Semarang2
Renita Arianti HapsariState University of Semarang2
Fathan ArsyadaniState University of Semarang2
Wahyu HardyantoState University of Semarang2
Epafraditus MemorianoState University of Semarang1
Agung LaksonoState University of Semarang1
Alfat MutoriqState University of Semarang1
Alfandy Himawan Bagus RafliState University of Semarang1
Kholiq BudimanState University of Semarang1
Fitri Arum SasiState University of Semarang1
Nila Prasetya AryaniAffiliation unknown1
Defin AndestianAffiliation unknown1
SugiyantoAffiliation unknown1
Wahyu SetyaningrumAffiliation unknown1
M Fadil MardiansyahAffiliation unknown1
Muhamad Anbiya Nur IslamAffiliation unknown1

Affiliations come from OpenAlex; journal OAI-PMH metadata carries none. Authors without an OpenAlex ID are matched by name, which can merge or split people.

Metadata source: OAI-PMH (metadata jurnal) https://journal.unnes.ac.id/journals/rji/oai, first harvested 6 Nov 2026, last seen 8 Nov 2026.
Original metadata (oai_dc)
<oai_dc:dc xmlns="http://www.openarchives.org/OAI/2.0/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:oai_dc="http://www.openarchives.org/OAI/2.0/oai_dc/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.openarchives.org/OAI/2.0/oai_dc/  http://www.openarchives.org/OAI/2.0/oai_dc.xsd">
	<dc:title xml:lang="en">Random Forest Algorithm Optimization using K-Nearest Neighborand SMOTE on Diabetes Disease</dc:title>
	<dc:creator xml:lang="en">Krishandhie, Syuja Zhafran Rakha</dc:creator>
	<dc:creator xml:lang="en">Purwinarko, Aji</dc:creator>
	<dc:subject xml:lang="en">Diabetes Disease, Random Forest, K-Nearest Neighbor, SMOTE</dc:subject>
	<dc:description xml:lang="en">Abstract. Diabetes is a chronic disease that can cause long-term damage, dysfunction and failure of various organs in the body. Diabetes occurs due to an increase in blood sugar (glucose) levels exceeding normal values. Early diagnosis of diseases is crucial for addressing them, especially in the case of diabetes, which is one of the chronic illnesses.
Purpose: This study aims to find out how the implementation of the K-Nearest Neighbor algorithm with the Synthetic Minority Oversampling Technique (SMOTE) in optimizing Random Forest algorithm for diabetes disease prediction.
Methods/Study design/approach: This study uses the Pima Indian Diabetes Dataset, the random forest algorithm for the classification, k-nearest neighbor for optimization, and SMOTE for the minority class oversampling.
Result/Findings: The prediction accuracy of the model using SMOTE and k-nearest neighbor is 92,86%. Meanwhile, the model that does not use SMOTE and k-nearest neighbor obtains an accuracy of 83,03%.
Novelty/Originality/Value: This research shows that the use of random forest algorithm with k-nearest neighbor and SMOTE gives better accuracy than without using k-nearest neighbor and SMOTE.</dc:description>
	<dc:publisher xml:lang="en">Universitas Negeri Semarang</dc:publisher>
	<dc:date>2025-03-28</dc:date>
	<dc:type>info:eu-repo/semantics/article</dc:type>
	<dc:type>info:eu-repo/semantics/publishedVersion</dc:type>
	<dc:type xml:lang="en">Peer-reviewed Article</dc:type>
	<dc:format>application/pdf</dc:format>
	<dc:identifier>https://journal.unnes.ac.id/journals/rji/article/view/1576</dc:identifier>
	<dc:identifier>10.15294/rji.v3i1.1576</dc:identifier>
	<dc:source xml:lang="en">Recursive Journal of Informatics; Vol. 3 No. 1 (2025): March 2025; 43-50</dc:source>
	<dc:source>2986-6588</dc:source>
	<dc:source>2963-5551</dc:source>
	<dc:source>10.15294/rji.v3i1</dc:source>
	<dc:language>eng</dc:language>
	<dc:relation>https://journal.unnes.ac.id/journals/rji/article/view/1576/3434</dc:relation>
	<dc:rights xml:lang="en">Copyright (c) 2025 Recursive Journal of Informatics</dc:rights>
</oai_dc:dc>