Comparative Analysis of YOLOv5n and YOLOv8n Deep Learning Models for Precision Detection of Klowong Defects in Batik Fabric
DOI:
https://doi.org/10.38043/tiers.v6i1.6499Keywords:
Batik, Deep Learning, Klowong, YOLOv5n, YOLOv8nAbstract
This study presents a comparative analysis of two deep learning object detection models, YOLOv5n and YOLOv8n, for the precies identification of Klowong defects in batik fabric. The evaluation was carried out using a custom dataset consisting of 3,138 annotated images, with 921 allocated for testing and containing 1,295 defect instances across nine defect classes. The main findings show that YOLOv8n outperforms YOLOv5n in both speed and accuracy. YOLOv8n achieved a higher F1-score of 0.87 at a lower confidence threshold (0.297), compared to YOLOv5n’s F1-score of 0.86 at a higher threshold (0.46). In addition, YOLOv8n reduced training time significantly (0.320 hours vs. 0.868 hours) and delivered much faster inference speed (2.9 ms/image), nearly three times quicker than YOLOv5n. Although both models performed well in detecting common defects, YOLOv8n showed more stable results on complex defect types. These improvements make YOLOv8n more suitable for real-time applications in batik production environments. Its efficiency and accuracy support the development of fast and reliable automated quality control systems in traditional textile industries. This research emphasizes the importance of using modern lightweight architectures like YOLOv8n to enhance defect detection performance in practical manufacturing settings.
Downloads
References
D. S. E. Atmaja, S. Wibirama, M. K. Herliansyah, and A. Sudiarso, “Comparative study of integral image and normalized cross-correlation methods for defect detection on Batik klowong fabric,” Results in Engineering, vol. 25, Mar. 2025, doi: 10.1016/j.rineng.2025.104124.
F. A. Putra et al., “Classification of Batik Authenticity Using Convolutional Neural Network Algorithm with Transfer Learning Method,” in 2021 6th International Conference on Informatics and Computing, ICIC 2021, Institute of Electrical and Electronics Engineers Inc., 2021. doi: 10.1109/ICIC54025.2021.9632937.
N. W. Parwati Septiani et al., “Convolutional Neural Network (CNN) Algorithm for Geometrical Batik Sade’ Motifs,” in ICCoSITE 2023 - International Conference on Computer Science, Information Technology and Engineering: Digital Transformation Strategy in Facing the VUCA and TUNA Era, Institute of Electrical and Electronics Engineers Inc., 2023, pp. 597–602. doi: 10.1109/ICCoSITE57641.2023.10127829.
S. Akhmad, A. Arendra, Mu’Alim, K. Winarso, and R. Hidayat, “Design of the mBatik, textile hot wax applicator to emulate hand drawn batik using CNC plotter machine and characterization of wax plotting parameters,” in Journal of Physics: Conference Series, Institute of Physics Publishing, Jul. 2020. doi: 10.1088/1742-6596/1569/3/032026.
W. Wesnina, M. Prabawati, and M. Noerharyono, “Integrating traditional and contemporary in digital techniques: the analysis of Indonesian batik motifs evolution,” Cogent Arts Humanit, vol. 12, no. 1, 2025, doi: 10.1080/23311983.2025.2474845.
D. A. Mardani, Pranowo, and A. J. Santoso, “Deep learning for recognition of Javanese batik patterns,” 2020, p. 030012. doi: 10.1063/5.0000686.
S. P. D. Kristiana, A. M. S. Asih, and A. Sudiarso, “Designing Simulation to Improve Production Efficiency of Batik Industry,” Simul Gaming, vol. 54, no. 6, pp. 730–759, Dec. 2023, doi: 10.1177/10468781231205667.
N. A. M. Asri, A. M. A. Hamid, Norhashimahshaffiar, N. A. Sukindar, S. I. Syedshaharuddin, and F. S. Hassan, “APPLICATION OF HOUSE OF QUALITY IN THE CONCEPTUAL DESIGN OF BATIK WAX EXTRUDER AND PRINTER,” IIUM Engineering Journal, vol. 23, no. 1, pp. 310–328, 2022, doi: 10.31436/IIUMEJ.V23I1.1842.
M. Naufal Daffa’ulhaq and A. Sudiarso, “Parameter Optimization of Writing Batik Machine with Synthetic & Natural Fabric *Correspondence,” 2023.
K. Kudiya, B. Sumintono, S. Sabana, and A. Sachari, “Batik Artisans’ Judgment of Batik Wax Quality and Its Criteria: An Application of the Many-Facets Rasch Model,” in Pacific Rim Objective Measurement Symposium (PROMS) 2016 Conference Proceedings, Singapore: Springer Singapore, 2018, pp. 27–37. doi: 10.1007/978-981-10-8138-5_3.
A. Z. Khoirunnisa and I. K. Sunarya, “Analysis of the Mawar Gentong Surakarta Batik Motif in A Charles Sanders Peirce’s Semiotic Study,” in Proceedings of the 3rd International Conference on Arts and Arts Education (ICAAE 2019), Paris, France: Atlantis Press, 2020. doi: 10.2991/assehr.k.200703.012.
A. Fitri Mustafida, A. Sudiarso, and M. Kusumawan Herliansyah, “CNC Parameter Optimization for Leather Batik Production,” 2024.
R. Syamwil, “Conservation of batik: Conseptual framework of design and process development,” 2018, p. 020043. doi: 10.1063/1.5028101.
X. Jun, J. Wang, J. Zhou, S. Meng, R. Pan, and W. Gao, “Fabric defect detection based on a deep convolutional neural network using a two-stage strategy,” Textile Research Journal, vol. 91, no. 1–2, pp. 130–142, Jan. 2021, doi: 10.1177/0040517520935984.
K. Yu, W. Lyu, X. Yu, Q. Guo, W. Xu, and L. Zhang, “FA-YOLO: A High-Precision and Efficient Method for Fabric Defect Detection in Textile Industry,” IEICE Transactions on Fundamentals of Electronics, Communications and Computer Sciences, vol. E107.A, no. 6, pp. 890–898, Jun. 2024, doi: 10.1587/transfun.2023EAP1030.
W. Pebrianto, P. Mudjirahardjo, and S. H. Pramono, “YOLO Method Analysis and Comparison for Real-Time Human Face Detection,” in Proceedings - 11th Electrical Power, Electronics, Communications, Control, and Informatics Seminar, EECCIS 2022, Institute of Electrical and Electronics Engineers Inc., 2022, pp. 333–338. doi: 10.1109/EECCIS54468.2022.9902919.
H. Zhao and T. Zhang, “Fabric Surface Defect Detection Using SE-SSDNet,” Symmetry (Basel), vol. 14, no. 11, Nov. 2022, doi: 10.3390/sym14112373.
S. Sahani, P. Sumbre, and M. Biradar, “Fabric Defect Detection Using YOLO V8,” in 2024 8th International Conference on Computing, Communication, Control and Automation, ICCUBEA 2024, Institute of Electrical and Electronics Engineers Inc., 2024. doi: 10.1109/ICCUBEA61740.2024.10775212.
X. Yue, Q. Wang, L. He, Y. Li, and D. Tang, “Research on Tiny Target Detection Technology of Fabric Defects Based on Improved YOLO,” Applied Sciences (Switzerland), vol. 12, no. 13, Jul. 2022, doi: 10.3390/app12136823.
W. Song, D. Lang, J. Zhang, M. Zheng, and X. Li, “Textile Defect Detection Algorithm Based on the Improved YOLOv8,” IEEE Access, 2025, doi: 10.1109/ACCESS.2025.3528771.
Z. Yaohui, R. Jia, and L. Yu, “Yolov7-Tinier: Towards High-Precision and Lightweight Detection of Fabric Defects in Textile Plant,” Fibers and Polymers, Sep. 2024, doi: 10.1007/s12221-024-00662-w.
Y. Chen et al., “Research on Fabric Defect Detection Algorithm Based on YOLO-V8,” in 2025 Asia-Europe Conference on Cybersecurity, Internet of Things and Soft Computing (CITSC), IEEE, Jan. 2025, pp. 1018–1022. doi: 10.1109/CITSC64390.2025.00189.
V. A. Adibhatla, H. C. Chih, C. C. Hsu, J. Cheng, M. F. Abbod, and J. S. Shieh, “Applying deep learning to defect detection in printed circuit boards via a newest model of you-only-look-once,” Mathematical Biosciences and Engineering, vol. 18, no. 4, pp. 4411–4428, 2021, doi: 10.3934/mbe.2021223.
Z. Qi, L. Ding, X. Li, J. Hu, B. Lyu, and A. Xiang, “Detecting and Classifying Defective Products in Images Using YOLO.”
M. Hussain, “YOLOv5, YOLOv8 and YOLOv10: The Go-To Detectors for Real-time Vision,” Jul. 2024, [Online]. Available: http://arxiv.org/abs/2407.02988
B. Mahaur and K. K. Mishra, “Small-object detection based on YOLOv5 in autonomous driving systems,” Pattern Recognit Lett, vol. 168, pp. 115–122, Apr. 2023, doi: 10.1016/j.patrec.2023.03.009.
S. Rahman, J. H. Rony, J. Uddin, and M. A. Samad, “Real-Time Obstacle Detection with YOLOv8 in a WSN Using UAV Aerial Photography,” J Imaging, vol. 9, no. 10, Oct. 2023, doi: 10.3390/jimaging9100216.
M. Mao and M. Hong, “YOLO Object Detection for Real-Time Fabric Defect Inspection in the Textile Industry: A Review of YOLOv1 to YOLOv11,” Sensors, vol. 25, no. 7, p. 2270, Apr. 2025, doi: 10.3390/s25072270.
Downloads
Published
How to Cite
Issue
Section
License
Copyright (c) 2025 Rifqi Restu Hamidi, Muhammad Kusumawan Herliansyah, Denny Sukma Eka Atmaja, Andi Sudiarso

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