Texture Analysis and Classification of Lontara Batik Using GLCM and k-Nearest Neighbor

Authors

  • Mohammad Yazdi Pusadan Universitas Tadulako
  • Fuad Mahfud Universitas Tadulako
  • Chairunnisa AR. Lamasitudju Universitas Tadulako
  • Anisa Yulandari UniversitasTadulako
  • Sabarudin Saputra Universitas Tadulako

DOI:

https://doi.org/10.29207/resti.v10i3.7497

Keywords:

batik lontara, gray level co-occurrence matrix (GLCM), k-Nearest Neighbor (k-NN)

Abstract

Batik is an Indonesian cultural heritage recognized by UNESCO as a Masterpiece of the Oral and Intangible Heritage of Humanity. One distinctive regional variation is Batik Lontara from South Sulawesi, which features motifs derived from the traditional Bugis–Makassar Lontara script. However, the visual similarity between woven and non-woven (stamped) Batik Lontara makes manual identification difficult for the general public. This study proposes an image-based classification approach to distinguish woven and non-woven Batik Lontara using texture analysis and machine learning techniques. Texture features were extracted from batik images using the Gray Level Co-occurrence Matrix (GLCM), including contrast, homogeneity, energy, and entropy. The extracted features were then classified using the k-Nearest Neighbor (k-NN) algorithm with varying values of k (5, 7, and 9). The dataset consisted of Batik Lontara images captured using a smartphone camera and divided into training and testing sets using both hold-out and k-fold cross-validation schemes. Experimental results show that the highest classification accuracy of 86% was achieved using the k-NN algorithm with k = 9 under 5-fold cross-validation, while the hold-out method produced the best accuracy of 87% at k = 5. These results demonstrate that the proposed GLCM and k-NN-based approach is effective for classifying Batik Lontara types and has strong potential for supporting cultural heritage preservation through digital image processing.

Downloads

Download data is not yet available.

References

D. T. Afrianto, “Lontara Batik as an Affirmation of Bugis-Makassar Cultural Identity and Legitimacy,” J. Pakarena, vol. 3, no. 2, p. 22, 2020, doi: 10.26858/p.v3i2.13062.

A. Asnawi, M. Hadrawi, A. Amrawaty, and S. Nurlaelah, “The public perception of the Bali cattle-Lontara motif cloth product as local wisdom in South Sulawesi,” IOP Conf. Ser. Earth Environ. Sci., vol. 788, no. 1, 2021, doi: 10.1088/1755-1315/788/1/012206.

Trisakti Akbar, Muhammad Fajar B, Muhammad Akbar Amir, Andi Akram Nur Risal, Nur Azizah Ayu Safanah, and M. Miftach Fakhri, “Sulsel Typical Batik Motif Classification Using Neural Network Method With Glcm Feature Extraction,” J. Deep Learn. Comput. Vis. Digit. Image Process., pp. 24–33, 2023, doi: 10.61255/decoding.v1i1.49.

Pemerintah RI, “Ministerial Regulation Concerning the Utilization of the ‘Batik Indonesia’ Batikmark,” 2007.

Presiden Republik Indonesia, “Presidential Regulation of the Republic of Indonesia No. 33 of 2009 Regarding the Designation of National Batik Day,” Pres. Republik Indones., 2009.

KEMENTERIAN PERDAGANGAN, “Regulation No. 53/M-DAG/PER/7/2015 of the Indonesian Ministry of Trade Regarding the Export of Batik and Batik-Motif Textile Products,” PERMENDAG RI No. 53/M-DAG/PER/7/2015, 2015.

Kementerian Perindustrian, “Regulation No. 10/2023 of the Indonesian Ministry of Industry on Green Industry Standards in the Batik Sector,” 2023.

E. T. Yuniar, H. Susiatiningsih, and F. Eko Wahyudi, “Strategies for Achieving the Sustainable Development Goals in Pekalongan City,” J. Int. Relations, vol. 8, pp. 217–231, 2022, doi: https://doi.org/10.14710/jirud.v8i2.33512

S. Sudarmiatin and R. Fitri, “Green Entrepreneurship Model in The Batik Industry: a Solution Towards Sustainable Development goals (SDGs),” J. Bus. Manag. Rev., vol. 4, no. 11, pp. 857–870, 2023, doi: 10.47153/jbmr411.8392023.

T. R. Simanjuntak, R. A. Yanuartha, S. N. Sukmi, and P. Hergianasari, “Penta-Helix Collaboration Model in Community Development (Batik Making in Sangiran),” Int. J. Multicult. Multireligious Underst., vol. 10, no. 10, p. 120, 2023, doi: 10.18415/ijmmu.v10i10.5103.

KEMENPAREKRAF, “Regulation of the Minister of Tourism and Creative Economy Number 11 of 2022,” Peratur. MENTERI PARIWISATA DAN Ekon., 2022.

I. H. Rather, S. Kumar, and A. H. Gandomi, Breaking the data barrier: a review of deep learning techniques for democratizing AI with small datasets, vol. 57, no. 9. Springer Netherlands, 2024. doi: 10.1007/s10462-024-10859-3.

Z. Y. Shen, H. De Shen, and F. He, “A hybrid deep learning-based model for enhanced feature representation in image retrieval systems,” Egypt. Informatics J., vol. 31, no. February, p. 100717, 2025, doi: 10.1016/j.eij.2025.100717.

D. Wijaya and A. R. Widiarti, “Batik classification using KNN algorithm and GLCM features extraction,” E3S Web Conf., vol. 475, pp. 1–13, 2024, doi: 10.1051/e3sconf/202447502012.

Fathul Am and E. I. Sela, “Classification of Pekalongan Batik Based on Image Features Using the GLCM Method and Backpropagation Neural Networks,” J. Indones. Manaj. Inform. dan Komun., vol. 5, no. 1, pp. 614–621, 2024, doi: 10.35870/jimik.v5i1.532.

A. E. Minarno, M. Y. Hasanuddin, and Y. Azhar, “Batik Images Retrieval Using Pre-trained model and K-Nearest Neighbor,” Int. J. Informatics Vis., vol. 7, no. 1, pp. 115–121, 2023, doi: 10.30630/joiv.7.1.1299.

A. E. Minarno, I. Soesanti, and A. Nugroho, “Batik Classification using Microstructure Co-occurrence Histogram,” Int. J. Informatics Vis., vol. 8, no. March, pp. 134–140, 2024, doi: 10.62527/joiv.8.1.2152.

Y. Sari, M. Alkaff, and R. A. Pramunendar, “Classification of coastal and Inland Batik using GLCM and Canberra Distance,” AIP Conf. Proc., vol. 1977, no. June, 2018, doi: 10.1063/1.5042901.

Darussalam and G. Arief, “Texture Feature Extraction in Grape Image Classification Using K-Nearest Neighbor,” Resti, vol. 1, no. 1, pp. 19–25, 2018, doi: 10.29207/resti.v6i5.4137.

N. L. Chusna, N. Wiliani, and A. F. Abdillah, “Enhancing Ulos Batik Pattern Recognition through Machine Learning: A Study with KNN and SVM,” J. Ris. Inform., vol. 6, no. 3, pp. 175–184, 2024, doi: 10.34288/jri.v6i3.311.

S. Higashiyama et al., “Investigation of the effectiveness of no-reference metric in image evaluation in nuclear medicine,” PLoS One, vol. 19, no. 11 November, pp. 1–23, 2024, doi: 10.1371/journal.pone.0310305.

K. Zhang et al., “Image acquisition as novel colonoscopic quality indicator: a single-center retrospective study,” Front. Oncol., vol. 13, no. May, pp. 1–8, 2023, doi: 10.3389/fonc.2023.1090464.

H. Talebi and P. Milanfar, “Learning to Resize Images for Computer Vision Tasks,” Proc. IEEE Int. Conf. Comput. Vis., pp. 487–496, 2021, doi: 10.1109/ICCV48922.2021.00055.

K. R. Kulkarni and S. B. Bagal, “Facial expression recognition,” Proc. - IEEE Int. Conf. Inf. Process. ICIP 2015, pp. 535–539, 2016, doi: 10.1109/INFOP.2015.7489442.

B. Kim and R. F. Barber, “Black-box tests for algorithmic stability,” Inf. Inference, vol. 12, no. 4, pp. 2690–2719, 2023, doi: 10.1093/imaiai/iaad039.

P. Long and J. Zhao, “Equivalence, identity, and unitarity checking in black-box testing of quantum programs,” J. Syst. Softw., vol. 211, 2024, doi: 10.1016/j.jss.2024.112000.

A. F. Alshammari, “Implementation of Model Evaluation using Confusion Matrix in Python,” vol. 186, no. 50, pp. 42–48, 2024, doi: 10.5120/ijca2024924236.

J. Erbani, P. É. Portier, E. Egyed-Zsigmond, and D. Nurbakova, “Confusion Matrices: A Unified Theory,” IEEE Access, vol. 12, no. December, 2024, doi: 10.1109/ACCESS.2024.3507199.

J. Li, H. Sun, and J. Li, “Beyond confusion matrix: learning from multiple annotators with awareness of instance features,” Mach. Learn., vol. 112, no. 3, pp. 1053–1075, 2023, doi: 10.1007/s10994-022-06211-x.

A. Arias-Duart, E. Mariotti, D. Garcia-Gasulla, and J. M. Alonso-Moral, “A Confusion Matrix for Evaluating Feature Attribution Methods,” IEEE Comput. Soc. Conf. Comput. Vis. Pattern Recognit. Work., vol. 2023-June, no. Cv, pp. 3709–3714, 2023, doi: 10.1109/CVPRW59228.2023.00380.

Downloads

Published

2026-06-21

Issue

Section

Artificial Intelligence

How to Cite

Pusadan, M. Y. ., Mahfud, F. ., Lamasitudju, C. A. ., Yulandari, A. ., & Saputra, S. . (2026). Texture Analysis and Classification of Lontara Batik Using GLCM and k-Nearest Neighbor . Jurnal RESTI (Rekayasa Sistem Dan Teknologi Informasi), 10(3), 776-786. https://doi.org/10.29207/resti.v10i3.7497