Classification of Hijab Types Based on Gray Level Co-occurrence Matrix Features and the K-Nearest Neighbor (KNN) Algorithm

  • Nazwa Alya Faradita Universitas Islam Negeri Sumatera Utara
  • M. Fakhriza Universitas Islam Negeri Sumatera Utara
Keywords: Classification, GLCM, K-Nearest Neighbor, Texture Feature Extraction, Hijab

Article Metrics

Abstract view : 329 times

Abstract

This study aims to build an automatic classification system to address the challenge of visually identifying hijab types by utilizing digital image processing technology. The research scope is limited to two categories: pashmina and instant hijabs. The applied method involves the Gray Level Co-occurrence Matrix (GLCM) to extract texture features in four angular directions, which yields four primary feature values: Contrast, Energy, Correlation, and Homogeneity. These features are subsequently classified using the K-Nearest Neighbor (KNN) algorithm with the Euclidean Distance metric. The dataset used consists of 60 image samples, divided into 48 training data and 12 test data. Testing was conducted with varying K-values (1, 3, 5, and 7). The results show that the classification system using the GLCM and KNN combination is effective, achieving a peak accuracy of 83.33% at K-values of 3, 5, and 7. This outcome confirms the capability of GLCM-extracted texture features to distinguish between the two hijab types and highlights the potential application of this system in the field of Muslim fashion.

References

Ayundasari, D., Siregar, Y. D., & Yasmin, N. (2024). POLA TREN HIJAB GENERASI Z STUDI KASUS MAHASISWI UIN SUMATERA UTARA. Dar El Ilmi: Jurnal Keagamaan, Pendidikan Dan Humaniora, 91–103. https://ojs.stiemahardhika.ac.id/index.php/mahardika/article/view/285.
Azmi, F. et al. (2025) ‘Intelligent Actuator Control in Smart Agriculture through Machine Learning and Sensor Data Integration’, ZERO: Jurnal Sains, Matematika dan Terapan, 9(1), pp. 150–161. doi:http://dx.doi.org/10.30829/zero.v9i1.24421.
Gibran, M.K. et al. (2024) ‘Sentiment Analysis of Platform X Users on Starlink Using Naive Bayes’, Instal: Jurnal Komputer, 16(03), pp. 210–220. https://doi.org/10.54209/jurnalinstall.v16i03.240.
Hadi, H. P., & Rachmawanto, E. H. (2022). EKSTRAKSI FITUR WARNA DAN GLCM PADA ALGORITMA KNN UNTUK KLASIFIKASI KEMATANGAN RAMBUTAN. JIP (Jurnal Informatika Polinema), 8.
Haikal, F., Razak, M., & Umar, N. (2022). Citra Digital Untuk Klasifikasi Kualitas Udang Windu Menggunakan Algoritma GLCM dan K-Nearest Neighbor. JURNAL INFORMATIKA, 9(2), 93–102. http://ejournal.bsi.ac.id/ejurnal/index.php/ji
Jatmoko, C., & Sinaga, D. (2022). Metode K-Nearest Neighbor dan Ekstraksi Fitur GLCM untuk Mengklasifikasikan Biji Kopi Robusta dan Arabika Lokal. SEMINAR NASIONAL TEKNOLOGI DAN MULTIDISIPLIN ILMU SEMNASTEKMU, 2. https://prosiding.stekom.ac.id/index.php/semnastekmu
Kurniawan, R., Nasution, R. H., & Nasution, S. M. B. (2024). PENERAPAN METODE GRAY LEVEL CO-OCCURRENCE MATRIX DAN KNN UNTUK MENDETEKSI TINGKAT KEMATANGAN BUAH MENGKUDU. Journal of Science and Social Research, 2, 765–772. http://jurnal.goretanpena.com/index.php/JSSR
Lamasgi, Z. Y., Serwin, Lasena, Y., & Husdi. (2022). Identifikasi Tingkat Kesegaran Ikan Tuna Menggunakan Metode GLCM dan KNN. 4.
Lamasigi, Z. Y. (2021). DCT untuk Ekstraksi Fitur Berbasis GLCM Pada Identifikasi Batik Menggunakan K-NN. Jambura Journal of Electrical and Electronics Engineering, 3(1).
Lutfia, M. A., Setyawan, F. X. A., Alam, S., Yulianti, T., & Fitriawan, H. (2023). Implementasi Ekstraksi Fitur Menggunakan Gray Level Co-Occurrence Matrices (GLCM) dan K-Nearest Neighbor (K-NN) Untuk Klasifikasi Jenis Kain Dasar. SNTE (Seminar Nasional Teknik Elektro), 3(1).
Nafisah, N., Adam, R. I., & Carudin. (2021). Klasifikasi K-NN dalam Identifikasi Penyakit COVID-19 Menggunakan Ekstraksi Fitur GLCM. Journal of Applied Informatics and Computing (JAIC), 5(2), 128–132. http://jurnal.polibatam.ac.id/index.php/JAIC
Neneng, Puspasningrum, A. S., & Aldino, A. A. (2021). Perbandingan Hasil Klasifikasi Jenis Daging Menggunakan Ekstraksi Ciri Tekstur Gray Level Co-occurrence Matrices (GLCM) Dan Local Binary Pattern (LBP). SMATIKA, 11(1), 48–52.
Pulungan, M. R., Furqan, M., & Rifki, M. I. (2024). KLASIFIKASI PENYAKIT PADA DAUN CABAI MENGGUNAKAN GRAY LEVEL CO-OCCURRENCE MATRIX DAN K-NEAREST NEIGHBOR. Computer Science and Information Technology, 5, 2776–7027.
Ratuannisa, T. (2024). The Generalization of Muslim Wear to Modest Wear in 2010s Indonesia’s Fashion Trend. Practice of Fashion and Textile Education Journal, 4(2).
Rustanto, D. W., Liantoni, F., & Prakisya, N. P. T. (2024). Identifikasi Penyakit Daun pada Tanaman Padi Menggunakan Ekstraksi Fitur Gray Level Co-occurrence Matrix (GLCM) dan Metode K-Nearest Neighbour (KNN). Jurnal Sistem Dan Teknologi Informasi (JustIN), 12(1), 100. https://doi.org/10.26418/justin.v12i1.69752
Sarimole, F. M., & Diadi, R. R. (2022). KLASIFIKASI JENIS JAMUR MENGGUNAKAN EKSTRAKSI FITUR GLCM DAN K-NEAREST NEIGHBOR (KNN). 4(3), 286–290.
Syahrul Ilhamy, R., & Sanjaya, U. P. (2023). Algoritma K-Nearest Neighbors (KNN) untuk Klasifikasi Citra Buah Pisang dengan Ekstraksi Ciri Gray Level Co-Occurrence. Jurnal Telematika, 17(2).
Published
2025-10-20
How to Cite
Faradita, N. A., & M. Fakhriza. (2025). Classification of Hijab Types Based on Gray Level Co-occurrence Matrix Features and the K-Nearest Neighbor (KNN) Algorithm. Jurnal Multimedia Dan Teknologi Informasi (Jatilima), 7(03), 740-747. https://doi.org/10.54209/jatilima.v7i03.1737