Penerapan Algoritma K-Nearest Neighbor untuk Klasifikasi Persediaan Kain Sasirangan pada UMKM

Authors

DOI:

https://doi.org/10.30998/string.v11i1.3411

Keywords:

Inventory, Fabric Sasirangan, K-Nearest Neighbor, Classification, SMEs

Abstract

An inventory classification system plays an important role in supporting stock management among Sasirangan fabric MSMEs in Banjarmasin, South Kalimantan. This study aims to develop a web-based Sasirangan fabric inventory classification system using the K-Nearest Neighbor (KNN) algorithm. The system classifies fabric inventory into three categories: low, medium, and high. This study used 198 inventory data records from MSMEs in Banjarmasin, consisting of 158 training data and 40 testing data. The research stages included data collection, preprocessing, splitting the data into training and testing sets, implementing the KNN algorithm, and evaluating model performance using a confusion matrix and classification evaluation metrics. The evaluation results showed that the KNN model achieved accuracy, precision, recall, and F1-score values of 0.9500 based on the weighted average. Based on the macro average, the KNN model achieved precision, recall, and F1-score values of 0.9484. These results indicate that KNN can classify Sasirangan fabric inventory accurately, stably, and consistently. In addition, KNN demonstrated better performance than Naive Bayes, which achieved an accuracy value of 0.8000. Therefore, improving the quantity and quality of data, conducting feature selection, and optimizing the value of k through parameter tuning are necessary to improve the accuracy of Sasirangan fabric inventory classification.

Downloads

Download data is not yet available.

Author Biographies

  • Sry Dhina Pohan, Universitas Nahdlatul Ulama Indonesia

    Information System

  • Khairul Huda, Universitas Karya Husada Semarang

    Informatika

  • Muhammad Fadhli Dzil Ikram, Sriwijaya University

    Ilmu Komputer

Downloads

Published

2026-08-05

Issue

Section

Articles

How to Cite

Pohan, S. D., Huda, K., & Ikram, M. F. D. (2026). Penerapan Algoritma K-Nearest Neighbor untuk Klasifikasi Persediaan Kain Sasirangan pada UMKM. STRING (Satuan Tulisan Riset Dan Inovasi Teknologi), 11(1), 30–39. https://doi.org/10.30998/string.v11i1.3411