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

Authors

  • 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

Keywords:

Classification, Fabric Color Fading, KNN, SVM, Random Forest

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.

Downloads

Download data is not yet available.

References

Agarwal, A., Kenney, A. M., Tan, Y. S., Tang, T. M., & Yu, B. (2025). Integrating Random Forests and Generalized Linear Models for Improved Accuracy and Interpretability.

Aliei, H., Carrera-Gallissa, E., & Cayuela, D. (2024). Evaluating the Impact of Washing Conditions on the Color Changes of Naturally Colored Cotton Fabrics: A Focus on Detergents, Water Types, and Temperature. Materials, 17(23), 5777. https://doi.org/10.3390/ma17235777

Aliei, H., Cayuela, D., Capdevila, F. J., & Carrera-Gallissà, E. (2024). Influence of Household Washing on the Colorimetric Properties of Intrinsically Natural Organic Cotton Fabrics. Journal of Natural Fibers, 21(1). https://doi.org/10.1080/15440478.2024.2351160

Arippudin, A. (2022). LAUNDRY SERVICE BUSINESS MANAGEMENT. Neo Journal of Economy and Social Humanities, 1(1), 9–16. https://doi.org/10.56403/nejesh.v1i1.3

Azmi, K., Defit, S., & Sumijan, S. (2023). Implementasi Convolutional Neural Network (CNN) Untuk Klasifikasi Batik Tanah Liat Sumatera Barat. JURNAL UNITEK, 16(1), 28–40. https://doi.org/10.52072/unitek.v16i1.504

Carrilho, R., Yaghoubi, E., Lindo, J., Hambarde, K., & Proença, H. (2024). Toward Automated Fabric Defect Detection: A Survey of Recent Computer Vision Approaches. Electronics, 13(18), 3728. https://doi.org/10.3390/electronics13183728

Daulay, R. S. (2024). Analisis Kritis dan Pengembangan Algoritma K-Nearest Neighbor (KNN): Sebuah Tinjauan Literatur. Jurnal Pendidikan Sains Dan Komputer, 4(02), 131–141. https://doi.org/10.47709/jpsk.v4i02.5055

Furferi, R., & Servi, M. (2023). A Machine Vision-Based Algorithm for Color Classification of Recycled Wool Fabrics. Applied Sciences, 13(4), 2464. https://doi.org/10.3390/app13042464

Guo, Y., Kang, X., Li, J., & Yang, Y. (2023). Automatic Fabric Defect Detection Method Using AC-YOLOv5. Electronics, 12(13), 2950. https://doi.org/10.3390/electronics12132950

Halder, R. K., Uddin, M. N., Uddin, Md. A., Aryal, S., & Khraisat, A. (2024). Enhancing K-nearest neighbor algorithm: a comprehensive review and performance analysis of modifications. Journal of Big Data, 11(1), 113. https://doi.org/10.1186/s40537-024-00973-y

Hasanin, T., Khoshgoftaar, T. M., Leevy, J. L., & Bauder, R. A. (2019). Severely imbalanced Big Data challenges: investigating data sampling approaches. Journal of Big Data, 6(1), 107. https://doi.org/10.1186/s40537-019-0274-4

Ibrahim, S. (2022). Improving Land Use/Cover Classification Accuracy from Random Forest Feature Importance Selection Based on Synergistic Use of Sentinel Data and Digital Elevation Model in Agriculturally Dominated Landscape. Agriculture, 13(1), 98. https://doi.org/10.3390/agriculture13010098

Kang, X., & Zhang, E. (2020). A Universal and Adaptive Fabric Defect Detection Algorithm Based on Sparse Dictionary Learning. IEEE Access, 8, 221808–221830. https://doi.org/10.1109/ACCESS.2020.3041849

Kaya, J. U. (2022). Klasifikasi Motif Kain Tenun menggunakan K-Nearest Neighbor Berdasarkan Gray Level Co-occurrence Matrix. 3(2). https://ejurnalunsam.id/index.php/jicom/

Kristiyanti, D. A., & Sri Hardani. (2023). Sentiment Analysis of Public Acceptance of Covid-19 Vaccines Types in Indonesia using Naïve Bayes, Support Vector Machine, and Long Short-Term Memory (LSTM). Jurnal RESTI (Rekayasa Sistem Dan Teknologi Informasi), 7(3), 722–732. https://doi.org/10.29207/resti.v7i3.4737

Liang, X. W., Jiang, A. P., Li, T., Xue, Y. Y., & Wang, G. T. (2020). LR-SMOTE — An improved unbalanced data set oversampling based on K-means and SVM. Knowledge-Based Systems, 196, 105845. https://doi.org/10.1016/j.knosys.2020.105845

Ma’ruf, M. T., Putra, E. D., Reswan, Y., & Juhardi, U. (2023). Classification Of Besurek Batik Fabrics Using Gray Level Co-Occurrence Matrix (GLCM) Features Extraction. Jurnal Komputer, Informasi Dan Teknologi, 3(2). https://doi.org/10.53697/jkomitek.v3i2.1211

Mehta, A., Sengupta, P., Garg, D., Singh, H., & Diamand, Y. S. (2023). Benchmarking the Effectiveness of Classification Algorithms and SVM Kernels for Dry Beans.

Meranggi, D. G. T., Yudistira, N., & Sari, Y. A. (2022). Batik Classification Using Convolutional Neural Network with Data Improvements. JOIV : International Journal on Informatics Visualization, 6(1), 6. https://doi.org/10.30630/joiv.6.1.716

Mienye, I. D., & Swart, T. G. (2024). A Comprehensive Review of Deep Learning: Architectures, Recent Advances, and Applications. Information, 15(12), 755. https://doi.org/10.3390/info15120755

Park, J., Kwon, S., & Jeong, S.-P. (2023). A study on improving turnover intention forecasting by solving imbalanced data problems: focusing on SMOTE and generative adversarial networks. Journal of Big Data, 10(1), 36. https://doi.org/10.1186/s40537-023-00715-6

Patil (ed), D., Rane (ed), N. L., Desai (ed), P., & Rane (ed), J. (2024). Trustworthy Artificial Intelligence in Industry and Society. In Trustworthy Artificial Intelligence in Industry and Society. Deep Science Publishing. https://doi.org/10.70593/978-81-981367-4-9

Purnamaningtyas, I., Fajria, H., & Bakti, S. (2022). Survey of Maintenance Implementation on Laundry Business in Indonesia, Jakarta Region. https://ieomsociety.org/proceedings/2022istanbul/112.pdf

Wijaya, D., & Widiarti, A. R. (2024). Batik classification using KNN algorithm and GLCM features extraction. E3S Web of Conferences, 475, 02012. https://doi.org/10.1051/e3sconf/202447502012

Yuan, X., Liu, S., Feng, W., & Dauphin, G. (2023). Feature Importance Ranking of Random Forest-Based End-to-End Learning Algorithm. Remote Sensing, 15(21), 5203. https://doi.org/10.3390/rs15215203

Downloads

Published

2026-06-15

How to Cite

Romindo, R., Triandes Sinaga, Kevin Bastian Sirait, Arosochi Yosua Daeli, & Jepronel Saragih. (2026). Klasifikasi Tingkat Kelunturan Warna Kain Menggunakan KNN, SVM, dan Random Forest. INSOLOGI: Jurnal Sains Dan Teknologi, 5(3), 1277–1285. Retrieved from https://journal.literasisains.id/index.php/insologi/article/view/8721

Issue

Section

Articles