Jurnal Sains dan Teknologi
Vol. 5 No. 3 (2026): Juni 2026

Klasifikasi Tingkat Kelunturan Warna Kain Menggunakan KNN, SVM, dan Random Forest

Romindo Romindo (Universitas Pelita Harapan)
Triandes Sinaga (Universitas Pelita Harapan)
Kevin Bastian Sirait (Universitas Pelita Harapan)
Arosochi Yosua Daeli (Universitas Pelita Harapan)
Jepronel Saragih (Universitas Pelita Harapan)



Article Info

Publish Date
15 Jun 2026

Abstract

The laundry industry faces challenges in maintaining service quality, particularly regarding fabric color fading after washing. Assessments that are still performed manually tend to be subjective and inconsistent, so a more objective automated classification system is required. This study aims to apply and compare three algorithms, namely KNN, SVM, and Random Forest, to classify the level of fabric color fading based on digital images. The features used comprise color in the RGB and HSV spaces as well as shape in the form of area and shape ratio, all extracted automatically. A total of 300 images were divided into 250 training data and 50 testing data, then mapped into three categories, namely not faded, fairly faded, and faded. The testing results show that Random Forest delivers the best performance with an accuracy of 0.96, followed by SVM at 0.94 and KNN at 0.88. All models faced difficulties in recognizing the minority class due to data imbalance. This study proves that the machine learning approach, particularly Random Forest, is able to assess color fading levels more accurately and consistently than manual evaluation, while supporting quality control in the laundry industry.

Copyrights © 2026