Classifying Indonesian Batik Motifs by Region Using Swin Small Transformer Architecture
Abstract views: 9 , PDF downloads: 3Abstract
Batik plays a crucial role in Indonesian cultural heritage, with regional motifs encoding local philosophies, identities, and socio-historical contexts while also sustaining creative industries and tourism. Automated classification of batik by region can support documentation, education, and authentication, yet remains challenging due to visually overlapping patterns, high intra-class variability, and subtle inter-regional differences. Building on recent advances in Vision Transformers, this study investigates the Swin Small Transformer architecture for classifying Indonesian batik motifs into five regional categories: Jawa Barat, Jawa Tengah, Jawa Timur, Madura, and Yogyakarta. The proposed framework employs the swin_small_patch4_window7_224} model initialized with ImageNet-pretrained weights and fine-tuned on a curated regional batik dataset. The hierarchical shifted-window attention mechanism of Swin is leveraged to capture both local repetitive elements and broader compositional structures that characterize regional styles. Experimental evaluation on a held-out test set consisting of 80 images demonstrates outstanding performance. The model achieves perfect classification results with overall accuracy, macro-averaged precision, recall, and F1-score all reaching 1.0000. No misclassifications are observed across any regional category, indicating that the proposed architecture effectively learns discriminative representations of regional batik motifs. These findings suggest that hierarchical Vision Transformers can robustly model the nuanced visual cues underpinning regional identity in batik patterns and provide a strong alternative to conventional convolutional neural network approaches. Beyond batik classification, the proposed framework may be extended to other cultural-heritage textile applications, supporting digital preservation, educational initiatives, and large-scale documentation of traditional artistic assets.
Downloads

This work is licensed under a Creative Commons Attribution-ShareAlike 4.0 International License.
References
[2] Y. Lu et al., "A Museum Artifact Classification Model Based on Cross-Modal Attention Fusion and Generative Data Augmentation," Scientific Reports, vol. 16, 2025.
[3] S. Prasomphan, "Toward Fine-Grained Image Retrieval with Adaptive Deep Learning for Cultural Heritage Image," Computer Systems Science and Engineering, vol. 44, pp. 1295–1307, 2022.
[4] P. Widodo et al., "Batik Pattern Classification Using Texture-Based Feature Extraction Methods," International Journal of Computer Applications, 2021.
[5] N. K. Sari and A. Rahman, "Comparative Analysis of GLCM, LBP, and SIFT for Indonesian Batik Classification," Journal of Information Technology Research, 2022.
[6] A. Krizhevsky, I. Sutskever, and G. E. Hinton, "ImageNet Classification with Deep Convolutional Neural Networks," Communications of the ACM, vol. 60, no. 6, pp. 84–90, 2017.
[7] K. He et al., "Deep Residual Learning for Image Recognition," in Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition (CVPR), 2016, pp. 770–778.
[8] A. Dosovitskiy et al., "An Image Is Worth 16×16 Words: Transformers for Image Recognition at Scale," in Proceedings of the International Conference on Learning Representations (ICLR), 2021.
[9] Z. Liu et al., "Swin Transformer: Hierarchical Vision Transformer Using Shifted Windows," in Proceedings of the IEEE/CVF International Conference on Computer Vision (ICCV), 2021, pp. 9992–10002.
[10] X. Dong et al., "CSWin Transformer: A General Vision Transformer Backbone with Cross-Shaped Windows," in Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR), 2022, pp. 12114–12124.
[11] D. Trisnawarman et al., "Comparative Study of CNN and Vision Transformers on Indonesian Traditional Cakes Classification," International Journal of Advances in Artificial Intelligence and Machine Learning, 2025.
[12] G. Wong, "A Comparative Study of Convolutional Neural Network and Vision Transformer Models as Classifiers of East Asian Traditional Clothing," Journal of High School Science, 2025.
[13] A. Hassani et al., "Neighborhood Attention Transformer," in Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR), 2022, pp. 6185–6194.
[14] N. Ebert et al., "PLG-ViT: Vision Transformer with Parallel Local and Global Self-Attention," Sensors, vol. 23, 2023.
[15] D. Kaur, "Comparative Study of CNN and Transformer Models for Image Classification," International Journal of Integrative Studies, 2025.
[16] S. Takahashi et al., "Comparison of Vision Transformers and Convolutional Neural Networks in Medical Image Analysis: A Systematic Review," Journal of Medical Systems, vol. 48, 2024.
[17] O. N. Manzari et al., "MedViT: A Robust Vision Transformer for Generalized Medical Image Classification," Computers in Biology and Medicine, vol. 157, Art. no. 106791, 2023.
[18] D. Badar et al., "Transformer Attention Fusion for Fine-Grained Medical Image Classification," Scientific Reports, vol. 15, 2025.
[19] B. Madhavi et al., "SwinConvNeXt: A Fused Deep Learning Architecture for Real-Time Garbage Image Classification," Scientific Reports, vol. 15, 2025.
[20] J. Plested and T. Gedeon, "Deep Transfer Learning for Image Classification: A Survey," Artificial Intelligence Review, vol. 59, 2022.
[21] N. Baker et al., "A Transfer Learning Evaluation of Deep Neural Networks for Image Classification," Machine Learning and Knowledge Extraction, vol. 4, pp. 22–41, 2022.
[22] R. Archana and P. Jeevaraj, "Deep Learning Models for Digital Image Processing: A Review," Artificial Intelligence Review, vol. 57, 2024.
[23] J. Sun et al., "Deep Learning Models for Cultural Pattern Recognition: Preserving Intangible Heritage Through Intelligent Documentation Systems," Future Technology, 2025.
[24] J. Winterbottom et al., "A Deep Learning Approach to Fight Illicit Trafficking of Antiquities Using Artefact Instance Classification," Scientific Reports, vol. 12, 2022.
[25] M. Bahrami and A. Albadvi, "Deep Learning for Identifying Cultural Heritage Buildings in Need of Conservation Using Image Classification and Grad-CAM," ACM Journal on Computing and Cultural Heritage, vol. 17, 2023.
[26] A. Radford et al., "Learning Transferable Visual Models From Natural Language Supervision," arXiv preprint arXiv:2103.00020, 2021.
[27] T. Chen et al., "ImageNet Pre-Training and Two-Step Transfer Learning in Image Classification," Scientific Reports, vol. 16, 2026.







