Performance-Efficiency Tradeoff Analysis of YOLOv8 Variants for Real-Time Multiclass Vehicle Detection in High-Density Traffic

https://doi.org/10.56741/IISTR.esl.001702

Authors

Keywords:

5-Fold Cross-Validation, Class Imbalance, Traffic Monitoring, Vehicle Detection, YOLOv8

Abstract

The growing number of vehicles in Indonesia increases the need for an efficient and reliable traffic monitoring system. In Garut Regency, traffic monitoring is still carried out manually without the support of artificial intelligence, thus limiting the effectiveness of real-time traffic analysis. This study develops and evaluates a CCTV image-based vehicle classification model using YOLOv8 with a focus on application in real-world traffic conditions. The development process follows the Machine Learning Life Cycle (MLLC) stages, including data acquisition, preprocessing, training, and model evaluation. The dataset comprises 1,200 CCTV traffic images from 10 locations in Garut Regency, supplemented by 7,426 additional images from the Roboflow platform to enhance the diversity of viewpoints and visual conditions. To address class imbalance, an undersampling technique is applied so that each vehicle category, motorcycle, car, truck, bus, and public transportation, has a balanced number of instances. Three YOLOv8 variants, namely Nano, Small, and Medium, are trained and evaluated using two testing schemes: a 70:20:10 data split and a 5-fold cross-validation method. Performance evaluation was conducted using the mean Average Precision (mAP), precision, recall, and inference speed metrics. The experimental results show that YOLOv8m with the 5-Fold Cross Validation scheme produces the best performance with mAP@50 of 0.947, precision of 0.932, and recall of 0.883, while YOLOv8n excels in terms of inference speed with an average of ±8.77 ms/frame. These findings suggest that the selection of YOLOv8 variants should consider the balance between accuracy and computational efficiency and confirm the potential of YOLOv8 as an initial component of an automated CCTV-based traffic monitoring system in real-world environments with limited resources.

Downloads

Download data is not yet available.

Author Biographies

Dede Kurniadi, Institut Teknologi Garut

Associate Professor in Computer Science at Institut Teknologi Garut

Asri Mulyani, Institut Teknologi Garut

Associate Professor in Computer Science.

Nuraisah Nuraisah, Institut Teknologi Garut

Student in Informatics Engineering

References

Badan Pusat Statistik, “Jumlah Kendaraan Bermotor Menurut Provinsi dan Jenis Kendaraan (unit), 2023,” .bps.go.id, 2023.

UU Lalu Lintas & Angkutan Jalan Nomor 22, Undang-Undang Lalu Lintas Dan Angkutan Jalan Nomor 22 Tahun 2009, vol. 19, no. 19. 2009.

M. S. Maulana and B. I. Nugroho, “Sistem Klasifikasi Jenis Kendaraan Melalui Teknik Olah Citra Digital,” vol. 11, no. 2, 2022. DOI: https://doi.org/10.12962/j23373539.v11i2.110007

D. Iskandar Mulyana and M. A. Rofik, “Implementasi Deteksi Real Time Klasifikasi Jenis Kendaraan Di Indonesia Menggunakan Metode YOLOV5,” Jurnal Pendidikan Tambusai, vol. 6, no. 3, pp. 13971–13982, 2022, doi: 10.31004/jptam.v6i3.4825. DOI: https://doi.org/10.31004/jptam.v6i3.4825

R. Abdulhakim, Carudin, and B. Arif Dermawan, “Analisis dan Penerapan Algoritma Convolutional Neural Network untuk Klasifikasi Kendaraan Prioritas,” Jurnal Sains dan Informatika, vol. 7, no. 2, pp. 135–144, 2021, doi: 10.34128/jsi.v7i2.335. DOI: https://doi.org/10.34128/jsi.v7i2.335

A. S. Pratama, Bayu Aditya, Sayuti Rahman, “Klasifikasi Jenis Kendaraan Pada Jalan Raya Menggunakan Yolov7,” Detikproperti, vol. 5, no. 4, pp. 119–121, 2023. DOI: https://doi.org/10.51401/jinteks.v5i4.3493

R. Dwiyanto, D. W. Widodo, and P. Kasih, “Implementasi Metode You Only Look Once ( YOLOv5 ) Untuk Klasifikasi Kendaraan Pada CCTV Kabupaten Tulungagung,” Seminar Nasional Inovasi Teknologi, vol. 1, no. 1, pp. 102–104, 2022.

Ibnu Daqiqil Id, Machine Learning : Teori, Studi Kasus dan Implementasi Menggunakan Python, 1st ed., no. July. Riau: UR PRESS, 2021. doi: 10.5281/zenodo.5113507.

X. Chen et al., “Evolved Optimizer for Vision,” no. Figure 1, pp. 1–14, 2022.

L. Wright and N. Demeure, “Ranger21: a synergistic deep learning optimizer,” 2021.

A. Amwin, “Deteksi Dan Klasifikasi Kendaraan Berbasis Algoritma You Only Look Once (YOLO),” Universitas Islam Indonesia, pp. 1–60, 2021.

J. Terven, D. M. Córdova-Esparza, and J. A. Romero-González, “A Comprehensive Review of YOLO Architectures in Computer Vision: From YOLOv1 to YOLOv8 and YOLO-NAS,” Machine Learning and Knowledge Extraction, vol. 5, no. 4, pp. 1680–1716, 2023, doi: 10.3390/make5040083. DOI: https://doi.org/10.3390/make5040083

Ultralytics, “Ultralytics YOLO Docs,” Ultralytics.com, 2025.

I Gst Ngr Agung Hari Vijaya Kusuma, “Pengembangan Kursi Roda Otonom Berbasis Yolov8 Untuk Penghindaran Obstacle,” vol. 1, 2024.

V. Tiwari, R. C. Joshi, and M. K. Dutta, “Dense convolutional neural networks based multiclass plant disease detection and classification using leaf images,” Ecological Informatics, vol. 63, no. March, p. 101289, 2021, doi: 10.1016/j.ecoinf.2021.101289. DOI: https://doi.org/10.1016/j.ecoinf.2021.101289

I. K. Nti, O. Nyarko-Boateng, and J. Aning, “Performance of Machine Learning Algorithms with Different K Values in K-fold Cross-Validation,” International Journal of Information Technology and Computer Science, vol. 13, no. 6, pp. 61–71, 2021, doi: 10.5815/ijitcs.2021.06.05. DOI: https://doi.org/10.5815/ijitcs.2021.06.05

M. Nur, F. Amiruddin, D. A. Navastara, and A. Yuniarti, “Klasifikasi Jenis Kendaraan Darat di Indonesia Menggunakan Pendekatan Deep Learning,” vol. 13, no. 3, 2024. DOI: https://doi.org/10.12962/j23373539.v13i3.146954

P. Killeen, I. Kiringa, T. Yeap, and P. Branco, “Corn Grain Yield Prediction Using UAV-Based High Spatiotemporal Resolution Imagery, Machine Learning, and Spatial Cross-Validation,” Remote Sensing, vol. 16, no. 4, pp. 1–39, 2024, doi: 10.3390/rs16040683. DOI: https://doi.org/10.3390/rs16040683

J. Sanjaya and M. Ayub, “Augmentasi Data Pengenalan Citra Mobil Menggunakan Pendekatan Random Crop, Rotate, dan Mixup,” Jurnal Teknik Informatika dan Sistem Informasi, vol. 6, no. 2, pp. 311–323, 2020, doi: 10.28932/jutisi.v6i2.2688. DOI: https://doi.org/10.28932/jutisi.v6i2.2688

D. Kurniadi, A. A. Latif, A. Mulyani, and H. Aulawi, “Benchmarking YOLOv8 Variants with Transfer Learning for Real-Time Detection and Classification of Road Cracks and Potholes,” Jurnal RESTI (Rekayasa Sistem dan Teknologi Informasi), vol. 9, no. 4, pp. 771–780, Aug. 2025, doi: 10.29207/resti.v9i4.6710. DOI: https://doi.org/10.29207/resti.v9i4.6710

E. Tarisa and F. Ariany, “Perbandingan Kinerja Deep Learning Lenet Dan Alexnet Dengan Augmentasi Data Pada Identifikasi Anggrek,” JIKA (Jurnal Informatika), vol. 8, no. 1, p. 51, 2024, doi: 10.31000/jika.v8i1.9923. DOI: https://doi.org/10.31000/jika.v8i1.9923

M. Reyad, A. M. Sarhan, and M. Arafa, “A modified Adam algorithm for deep neural network optimization,” Neural Computing and Applications, vol. 35, no. 23, pp. 17095–17112, 2023, doi: 10.1007/s00521-023-08568-z. DOI: https://doi.org/10.1007/s00521-023-08568-z

L. Kah Meng, L. Jia Xin, H. Hooi Yi, Z. Arabee Abdul Salam, and N. Bo Wei, “A Machine Learning Approach for Face Mask Detection System with AdamW Optimizer,” Journal of Applied Technology and Innovation, vol. 7, no. 3, pp. 2600–7304, 2023. DOI: https://doi.org/10.65136/jati.v7i1.131

Parking Area Multi-Object Detection, “Deteksi 3 Jenis Kendaraan Computer Vision Project,” Roboflow, 2025.

New Workspace, “All dataset bus Computer Vision Project,” Roboflow, 2022.

Roboflow, “Klasifikasi Kendaraan Computer Vision Project,” Roboflow, 2024.

Published

2026-05-16

How to Cite

Kurniadi, D., Mulyani, A., & Nuraisah, N. (2026). Performance-Efficiency Tradeoff Analysis of YOLOv8 Variants for Real-Time Multiclass Vehicle Detection in High-Density Traffic. Engineering Science Letter, 5(01), 60–68. https://doi.org/10.56741/IISTR.esl.001702

Plaudit