Analisis dan Optimasi Jumlah Dataset pada YOLOv8 untuk Inspeksi Stamping Otomatis


  • Khairul Ma’mur * Mail Universitas Negeri Semarang, Semarang, Indonesia
  • Tatyantoro Andrasto Universitas Negeri Semarang, Semarang, Indonesia
  • Arief Arfriandi Universitas Negeri Semarang, Semarang, Indonesia
  • (*) Corresponding Author
Keywords: YOLOv8; Computer Vision; Stamping; Object Detection; Real-Time

Abstract

Quality inspection of stamping products in the manufacturing industry is generally performed manually, which may lead to errors caused by operator fatigue, inconsistent observations, and low inspection efficiency. This study aims to implement the You Only Look Once version 8 (YOLOv8) algorithm to automatically detect and classify stamping products into Good and Not Good (NG) categories. The research stages included dataset collection, data preprocessing, model training, validation, and real-time testing. To analyze the effect of dataset size on model performance, three training scenarios were conducted using 100, 1,134, and 1,552 images with identical training parameters. Model performance was evaluated using Precision, Recall, mean Average Precision at 50% Intersection over Union (mAP50), mean Average Precision at 50%–95% Intersection over Union (mAP50–95), and a confusion matrix. The results indicate that increasing the number of datasets improves the performance of the YOLOv8 model. The model trained using 1,552 images achieved the best performance, with a Precision of 99.8%, Recall of 100%, mAP50 of 99.5%, and mAP50–95 of 96.6%, representing an improvement of 11.7 percentage points in mAP50–95 compared with the model trained using 100 images, which achieved an mAP50–95 of 84.9%. These findings indicate that increasing the dataset size enhances the model's generalization capability in recognizing variations in stamping quality. The best-performing model was subsequently implemented in real-time testing using a laptop camera and was able to consistently detect and classify stamping products under various lighting conditions, achieving a testing accuracy of 90%.

Downloads

Download data is not yet available.

References

Afifah, V., & Erniwati, S. (2025). YOLOv8 for Object Detection: A Comprehensive Review of Advances,Techniques, and Applications. IJACI : International Journal of Advanced Computing and Informatics, 2(1), 53–61. https://doi.org/10.71129/ijaci.v2i1.pp53-61

Ali, M. L., & Zhang, Z. (2024). The YOLO Framework: A Comprehensive Review of Evolution, Applications, and Benchmarks in Object Detection. Computers, 13(12). https://doi.org/10.3390/computers13120336

Artanto, G. A., Hanafi, Z., Iman, R. M., & Stefanie, A. (2025). Implementasi Yolov8 Pada Sistem Deteksi Penyakit Ikan Mas Koki Menggunakan Raspberry Pi 5. Jurnal Informatika Dan Teknik Elektro Terapan, 13(3). https://doi.org/10.23960/jitet.v13i3.6770

Ayuningtyas, A. D. (2025). Industri Manufaktur Sumbang 18,98% terhadap PDB Indonesia. GoodStats. https://goodstats.id/article/industri-manufaktur-sumbang-18-98-terhadap-pdb-indonesia-tSkW8

Chai, J., Zeng, H., Li, A., & Ngai, E. W. T. (2021). Deep learning in computer vision: A critical review of emerging techniques and application scenarios. Machine Learning with Applications, 6(August), 100134. https://doi.org/10.1016/j.mlwa.2021.100134

Diwan, T., Anirudh, G., & Tembhurne, J. V. (2023). Object detection using YOLO: challenges, architectural successors, datasets and applications. Multimedia Tools and Applications, 82(6), 9243–9275. https://doi.org/10.1007/s11042-022-13644-y

Dosluoglu, T., & Macdonald, M. (2022). Circuit Design for Predictive Maintenance. 1–4. https://doi.org/https://doi.org/10.54364/AAIML.2022.1136

Fernando, L. L., & Utaminingrum, F. (2024). Rancang Bangun Sistem Klasifikasi Sampah Menggunakan Yolov8 Berbasis Raspberry Pi 4. 1(1), 1–5. https://j-ptiik.ub.ac.id/index.php/j-ptiik/article/view/13779

Guha, B., Moore, S., & Huyghe, J. M. (2023). Application and validation of machine vision inspection for efficient in-process monitoring of complex biomechanical device manufacturing. Journal of Engineering and Applied Science, 70(1), 1–19. https://doi.org/10.1186/s44147-023-00242-4

Lasmana, D., Husni, N. L., & Kusumanto, R. (2025). Deteksi Objek Menggunakan YOLOv5 dan YOLOv8 pada Perangkat Pemantauan Lingkungan. Jurnal Elektronika Dan Otomasi Industri, 12(2), 276–282. https://doi.org/10.33795/elkolind.v12i2.7615

Li, C., Li, L., Jiang, H., Weng, K., Geng, Y., Li, L., Ke, Z., Li, Q., Cheng, M., Nie, W., Li, Y., Zhang, B., Liang, Y., Zhou, L., Xu, X., Chu, X., Wei, X., & Wei, X. (2022). YOLOv6: A Single-Stage Object Detection Framework for Industrial Applications. http://arxiv.org/abs/2209.02976

Onaifo, F., Okandeji, A. ., Folorunsho, O., Essien, U. ., Oyedeji, A. ., & Abolade, O. . (2019). Comparison Of The Reliability Of Programmable Logic Controller And Electromagnetic Relay Control In Industrial Production Line. 38(4), 1030–1035. https://doi.org/https://doi.org/10.4314/njt.v38i4.28

Prasetio, B., & Pratiwi, N. (2025). Deteksi Sampah Organik dan Anorganik Menggunakan Model YOLOv8. JIPI (Jurnal Ilmiah Penelitian Dan Pembelajaran Informatika), 10(1), 494–506. https://doi.org/10.29100/jipi.v10i1.5965

Putra, W. P. N., Pradana, A. I., & Nurchim, N. (2024). Implementasi Sistem Penghitungan Volume Kendaraan Menggunakan YOLOv8. Jurnal Fasilkom, 14(2), 443–450. https://doi.org/10.37859/jf.v14i2.7395

Ren, Z., Fang, F., Yan, N., & Wu, Y. (2022). State of the Art in Defect Detection Based on Machine Vision. In International Journal of Precision Engineering and Manufacturing - Green Technology (Vol. 9, Issue 2). Korean Society for Precision Engineering. https://doi.org/10.1007/s40684-021-00343-6

Shaloo, M., Princz, G., Hörbe, R., & Erol, S. (2024). ScienceDirect ScienceDirect Flexible Flexible automation automation of of quality quality inspection inspection in in parts parts assembly assembly using using CNN-based machine machine learning learning. Procedia Computer Science, 232, 2921–2932. https://doi.org/10.1016/j.procs.2024.02.108

Sugiyono. (2021). Metode Penelitian Kuantitatif Kualitatif dan R&D (3rd ed.). Bandung: Alfabeta.

Taufiqurrahman, T., Hadi, A. P., & Siregar, R. E. (2024). Evaluasi Performa Yolov8 Dalam Deteksi Objek Di Depan Kendaraan Dengan Variasi Kondisi Lingkungan. Jurnal Minfo Polgan, 13(2), 1755–1773. https://doi.org/10.33395/jmp.v13i2.14228

Tian, H., Wang, D., Lin, J., Chen, Q., & Liu, Z. (2020). Surface defects detection of stamping and grinding flat parts based on machine vision. Sensors (Switzerland), 20(16), 1–17. https://doi.org/10.3390/s20164531

Wang, C. Y., Bochkovskiy, A., & Liao, H. Y. M. (2023). YOLOv7: Trainable Bag-of-Freebies Sets New State-of-the-Art for Real-Time Object Detectors. Proceedings of the IEEE Computer Society Conference on Computer Vision and Pattern Recognition, 2023-June, 7464–7475. https://doi.org/10.1109/CVPR52729.2023.00721

Xu, X., Jiang, Y., Chen, W., Huang, Y., Zhang, Y., & Sun, X. (2023). DAMO-YOLO : A Report on Real-Time Object Detection Design. http://arxiv.org/abs/2211.15444


Bila bermanfaat silahkan share artikel ini

Berikan Komentar Anda terhadap artikel Analisis dan Optimasi Jumlah Dataset pada YOLOv8 untuk Inspeksi Stamping Otomatis

Dimensions Badge
Article History
Published: 2026-06-28
Abstract View: 0 times
Section
Articles