Jurnal Armada Informatika
Vol 10 No 1 (2026): Juni

Skin Disease Classification System and Drug Recommendation Based on Symptoms Using K-Nearest Neighbor (KNN) Algorithm

Alfin Akbar (Universitas Islam Indragiri)
Dwi Yuli Prasetyo (Universitas Islam Indragiri)



Article Info

Publish Date
17 Jun 2026

Abstract

Skin diseases are among the most common health problems affecting the community. This study aims to develop a skin disease classification system based on symptoms using the K-Nearest Neighbor (KNN) algorithm and to provide treatment recommendations. The dataset used consists of 405 records containing disease symptoms, disease location, disease shape, disease name, and treatment recommendations. Text-based symptom data were transformed into numerical representations using the Term Frequency-Inverse Document Frequency (TF-IDF) method before the classification process was carried out using the KNN algorithm. The experiments were conducted using K values of 3, 5, and 7. The results showed that the best performance was achieved with K=7, obtaining an accuracy of 90.12%, a precision of 0.91, a recall of 0.93, and an F1-score of 0.91. Meanwhile, K=5 achieved an accuracy of 88.89%, and K=3 achieved an accuracy of 87.65%. Furthermore, the system was successfully implemented using Streamlit, allowing users to interactively classify skin diseases and obtain treatment recommendations based on the symptoms entered.

Copyrights © 2026






Journal Info

Abbrev

jai

Publisher

Subject

Computer Science & IT Control & Systems Engineering

Description

Jurnal Armada Informatika, an Indonesian national journal, publishes high quality research papers in the broad field of Informatics and Computer Science, which encompasses software engineering, information system development, computer systems, computer network, algorithms and computation, and social ...