Comparison of YOLOv8n and YOLOv8s Model Performance in Object Detection Using Evaluation Metrics and Confidence Scores
DOI:
https://doi.org/10.37859/coscitech.v7i1.11189
Abstract
Deep learning-based object detection has developed rapidly and is widely used in various computer vision applications. One of the most widely used methods is the You Only Look Once (YOLO) algorithm, which is capable of real-time object detection with a high degree of accuracy. This study aims to analyze the performance comparison of two variants of the YOLOv8 model, namely YOLOv8n and YOLOv8s, in detecting objects using evaluation metrics and confidence scores. The dataset used consists of 5000 images, which are divided into training data (70%), validation data (20%), and testing data (10%). Model performance evaluation is carried out using several object detection metrics, namely precision, recall, and mean Average Precision (mAP), as well as additional analysis in the form of computation time and confidence scores to assess the stability of the model's predictions. The results show that the YOLOv8n model achieved a precision value of 0.9313, while the YOLOv8s model achieved a recall value of 0.8415 and a mean Average Precision (mAP0.5) of 0.9055, which is slightly higher than YOLOv8n with a mAP0.5 value of 0.9009. In terms of computational efficiency, YOLOv8n has a faster training time of around 2670 seconds, compared to YOLOv8s which takes around 4477 seconds. In addition, the YOLOv8s model shows a higher confidence score, which indicates a better level of prediction confidence in detecting objects. Based on these results, it can be concluded that YOLOv8n is superior in computational efficiency, while YOLOv8s provides more stable and accurate detection performance. The results of this study are expected to serve as a reference in selecting the optimal object detection model for various computer vision-based applications
Downloads
References
B. Olivier, F. Guo, Y. Qian, and D. P. Connolly, “A Review of Computer Vision for Railways,” IEEE Trans. Intell. Transp. Syst., vol. 26, no. 7, pp. 11034–11065, 2025.
O. Alfiano and dan Santi Rahayu, “Implementasi Algoritma Deep Learning Yolo (You Only Look Once) Untuk Deteksi Kualitas Kentang Segar Dan Busuk Secara Real Time,” JORAPI J. Res. Publ. Innov., vol. 2, no. 3, pp. 2470–2478, 2024.
D. F. Dava, Kamdan, and Z. Alamsyah, “Implementation of an IoT-Based Smart Cane Using YOLO V3 to Enhance the Mobility and Safety of Visually Impaired Individuals,” J. CoSciTech (Computer Sci. Inf. Technol., vol. 6, no. 2, pp. 94–103, 2025.
M. A. Fathan, T. Sugiharto, and I. Lesmana, “Jurnal Computer Science and Information Technology ( CoSciTech ),” vol. 6, no. 2, pp. 140–147, 2025.
A. Rismayanti and R. Rahmadewi, “Deteksi Dan Klasifikasi Tingkat Kematangan Buah Mangga Harum Manis Menggunakan You Only Look Once (Yolo) V8,” JATI (Jurnal Mhs. Tek. Inform., vol. 9, no. 3, pp. 3645–3654, 2025.
D. J. Marcelleno, M. Pajar, K. Putra, C. Science, and U. T. Indonesia, “PERFORMANCE EVALUATION OF YOLOV8 IN REAL-TIME VEHICLE,” vol. 6, no. 1, pp. 269–279, 2025.
R. Wulanningrum, A. N. Handayani, and A. P. Wibawa, “Perbandingan Instance Segmentation Image Pada Yolo8,” J. Teknol. Inf. dan Ilmu Komput., vol. 11, no. 4, pp. 753–760, 2024.
Egga Naufal Daffa Tanadi, Dhian Satria Yudha Kartika, and Abdul Rezha Efrat Najaf, “Sistem Pendeteksi Penyakit Kanker Kulit Menggunakan Convolutional Neural Network Arsitektur YOLOv8 Berbasis Website,” Repeater Publ. Tek. Inform. dan Jar., vol. 2, no. 3, pp. 166–177, 2024.
A. A. S. Mustofa, R. Wulanningrum, and J. Sahertian, “Deteksi dan Klasifikasi Kue Tradisional Indonesia Menggunakan YOLOv8,” NERO (Networking Eng. Res. Oper., vol. 10, no. 1, pp. 25–36, 2025.
F. Ramadhani, A. Satria, and S. Dewi, “Identifikasi Kendaraan Bermotor pada Dashcam Mobil Menggunakan Algoritma YOLO,” Hello World J. Ilmu Komput., vol. 2, no. 4, pp. 199–206, 2024.
U. R. Nur Santoso and F. Gamar, “Deteksi Sampah Botol Plastik di Perairan Menggunakan YOLO v4-Tiny,” J. Teknol. Dan Sist. Inf. Bisnis, vol. 7, no. 1, pp. 91–98, 2025.
M. Ito, N. H. Kim, and N. Kogiso, “Conservative reliability index for epistemic uncertainty in reliability-based design optimization,” Struct. Multidiscip. Optim., vol. 57, no. 5, pp. 1919–1935, 2018










