Classification of Indonesian Batik Motifs using CNN VGG16 with Transfer Learning and Fine-Tuning

Faby Melia Shanni, Pratomo Setiaji, Wiwit Agus Triyanto

Abstract


Indonesian batik is a cultural heritage passed down through generations and officially recognized by UNESCO. However, the identification of batik motifs still relies heavily on manual assessment by experts. This study aims to develop an automated batik motif classification system using a Convolutional Neural Network (CNN) based on the VGG16 architecture with a transfer learning approach. The dataset was obtained from the Indonesia Batik Motifs repository on Kaggle and consists of three batik motif classes: Batik Bali, Batik Kawung, and Batik Megamendung. To address class imbalance, data augmentation was applied to produce a balanced dataset of 1,500 images, with 500 images per class. The dataset was then divided into training, validation, and testing sets using an 80:10:10 ratio. The preprocessing stage included grayscale image conversion to reduce computational complexity. The proposed model, fine-tuned on the last eight layers of VGG16, achieved a test accuracy of 98.00% with an F1-score of 0.98. Among the three classes, Batik Megamendung achieved the highest F1-score (0.99), followed by Batik Kawung (0.98) and Batik Bali (0.97). Comparative experiments showed that the proposed VGG16 transfer learning model outperformed both MobileNetV2 with transfer learning (97.33% accuracy) and VGG16 trained from scratch (33.33% accuracy). This study contributes to the development of an accurate batik motif classification system that can be deployed in real time through a Streamlit-based web application.

Keywords


batik motifs; convolutional neural networks; image classification; transfer learning;VGG16

Full Text:

PDF

References


E. Budimansyah, D. Ariawan, R. D. Maulana, W. R. Yudha, And M. Munsarif, “Klasifikasi Motif Batik Indonesia menggunakan Convolutional Neural Network (CNN),” Jurnal Komputer Dan Teknologi Informasi, Vol. 3, No. 2, Aug. 2025, DOI: 10.26714/Jkti.V3i2.18627.

H. Sastypratiwi And H. Muhardi, “International Journal on Informatics Visualization Journal Homepage : www.Joiv.Org/Index.Php/Joiv International Journal on Informatics Visualization Batik Recognition and Classification using Transfer Learning and Mobilenet Approach.” [Online]. Available: Www.Joiv.Org/Index.Php/Joiv

M. Vakalopoulou, S. Christodoulidis, N. Burgos, O. Colliot, And V. Lepetit, “Deep Learning: Basics and Convolutional Neural Networks (CNN)”, DOI: 10.1007/978-1-0716-3195-9_3ï.

S. S. F. Ardyani And C. A. Sari, “A Web-based for Demak Batik Classification using VGG16 Convolutional Neural Network,” Advance Sustainable Science, Engineering And Technology, Vol. 6, No. 4, Pp. 0240406-01-0240406–09, Aug. 2024, DOI: 10.26877/Asset.V6i4.771.

E. Khoirunnisa Et Al., “Enhanced Semarang Batik Classification using Mobilenetv2 and Data Augmentation,” Sinkron, Vol. 9, No. 1, Pp. 43–54, Jan. 2025, DOI: 10.33395/Sinkron.V9i1.14308.

F. Pratama, M. T. A. Bangsa, And A. Yudertha, “Klasifikasi Motif Batik Jambi menggunakan Convulotional Neural Network,” Riggs: Journal of Artificial Intelligence and Digital Business, Vol. 4, No. 4, Pp. 1515–1532, Nov. 2025, DOI: 10.31004/Riggs.V4i4.3602.

D. F. Aditama, Rr. H. P. Sejati, And F. I. Sanjaya, “Klasifikasi Motif Batik Solo menggunakan Convolutional Neural Network dengan Transfer Learning VGG16,” Tin: Terapan Informatika Nusantara, Vol. 6, No. 7, Pp. 1214–1224, Dec. 2025, DOI: 10.47065/Tin.V6i7.8940.

R. Fadiyah Alya And M. Wibowo, “Classification of Batik Motif using Transfer Learning on Convolutional Neural Network (CNN),” Vol. 4, No. 1, Pp. 161–170, 2023, DOI: 10.20884/1.Jutif.2023.4.1.564.

A. Akbar, M. Perdana, M. Fajar, And A. Muis Mappalotteng, “International Journal on Informatics Visualization Journal Homepage : www.Joiv.Org/Index.Php/Joiv International Journal on Informatics Visualization Enhancing Batik Classification Leveraging CNN Models and Transfer Learning.” [Online]. Available: Www.Joiv.Org/Index.Php/Joiv

W. Zeng, “Image Data Augmentation Techniques based on Deep Learning: A Survey,” 2024, American Institute Of Mathematical Sciences. DOI: 10.3934/Mbe.2024272.

D. Gede, T. Meranggi, N. Yudistira, And Y. A. Sari, “International Journal on Informatics Visualization Journal Homepage : www.Joiv.Org/Index.Php/Joiv International Journal on Informatics Visualization Batik Classification using Convolutional Neural Network with Data Improvements.” [Online]. Available: Www.Joiv.Org/Index.Php/Joiv

D. Sinaga, C. Jatmoko, S. Suprayogi, And N. Hedriyanto, “Multi-Layer Convolutional Neural Networks for Batik Image Classification,” Scientific Journal of Informatics, Vol. 11, No. 2, Pp. 477–484, May 2024, DOI: 10.15294/Sji.V11i2.3309.

R. Andrian Et Al., “Lampung Batik Classification using Alexnet, Efficientnet, Lenet and Mobilenet Architecture,” 2024. [Online]. Available: Www.Ijacsa.Thesai.Org

A. Kusuma Whardana, U. Alfaruq, A. Aziz, And U. T. Abeng, “Klasifikasi Motif Batik menggunakan Convolutional Neural Network (CNN) dengan Otsu Thresholding dan Median Filter,” 2025.

S. Arifin, “Klasifikasi Motif Batik menggunakan Metode Convolutional Neural Network (CNN) dengan Multi Class Clasification,” Jurnal Ilmiah It Cida : Diseminasi Teknologi Informasi, Vol. 10, No. 1, 2024.

S. P. Adithama, B. Yudi Dwiandiyanta, And S. B. Wiadji, “Identification of Batik in Central Java using The Transfer Learning Method 77.”

Kusanti, Jani & Noersasongko, Edi & Soeleman, Moch & Alzami, Farrikh & Purwanto, Purwanto & Hasibuan, Zainal. (2023). Pre-Processing of Resize and Region of Interest (ROI) to Improve the Accuracy of Batik Detection based on VGG-16. 242-247. 10.1109/EECSI59885.2023.10295666.




DOI: https://doi.org/10.32520/stmsi.v15i6.6467

Article Metrics

Abstract view : 0 times
PDF - 0 times

Refbacks

  • There are currently no refbacks.


Creative Commons License
This work is licensed under a Creative Commons Attribution-ShareAlike 4.0 International License.