Hyperparameter Tuning of YOLOv8n for Real-Time Material Truck Detection
DOI:
https://doi.org/10.24036/jtip.v19i2.1138Keywords:
YOLOv8n, object detection, truck detection, hyperparameter tuning, real-time monitoringAbstract
The increasing number of material trucks on arterial roads has posed challenges for traffic surveillance and regulatory compliance. Traditional monitoring techniques that rely on manual observation are often ineffective and susceptible to irregularities, highlighting the need for automated real-time monitoring systems. This study proposes a lightweight object detection approach using YOLOv8n to improve real-time truck detection performance in traffic monitoring applications. A quantitative experimental methodology was employed by performing hyperparameter tuning through adjustments to the number of epochs, batch size, optimizer, and learning rate. The dataset was collected from real traffic environments using smartphone cameras and CCTV (TP-Link Tapo C320WS). A total of 36 experimental configurations were evaluated using Precision, Recall, F1-score, mAP@50, and mAP@50–95 metrics. Experimental results showed that the optimal configuration, consisting of 100 epochs, a batch size of 16, the Adam optimizer, and a learning rate of 0.001, achieved a mean Average Precision (mAP)@50 of 0.9302 and mAP@50–95 of 0.7226. Although the performance improvement over the baseline YOLOv8n model was relatively modest, repeated experiments demonstrated improved model stability and consistency after hyperparameter optimization. Real-time deployment on a local GPU achieved a stable processing speed of 14–23 Frames Per Second, with an average of 19 FPS, enabling real-time monitoring performance aligned with the camera input rate. The integrated system successfully combines object detection, tracking, and license plate recognition for practical traffic monitoring applications. However, smaller objects such as license plates remained more challenging to detect due to localization limitations under occlusion and low-light conditions.
References
M. Kotthapalli, D. Ravipati, and R. Bhatia, “YOLOv1 to YOLOv11: A Comprehensive Survey of Real-Time Object Detection Innovations and Challenges,” Aug. 2025, [Online]. Available: http://arxiv.org/abs/2508.02067
C.-Y. Wang, A. Bochkovskiy, and H.-Y. M. Liao, “YOLOv7: Trainable bag-of-freebies sets new state-of-the-art for real-time object detectors.” [Online]. Available: https://github.com/
A. A. Murat and M. S. Kiran, “A comprehensive review on YOLO versions for object detection,” Oct. 01, 2025, Elsevier B.V. doi: 10.1016/j.jestch.2025.102161.
M. Bakirci, “Real-Time Vehicle Detection Using YOLOv8-Nano for Intelligent Transportation Systems,” Traitement du Signal, vol. 41, no. 04, pp. 1727–1740, Aug. 2024, doi: 10.18280/ts.410407.
Z. Wang, K. Zhang, F. Wu, and H. Lv, “YOLO-PEL: The Efficient and Lightweight Vehicle Detection Method Based on YOLO Algorithm,” Sensors, vol. 25, no. 7, Apr. 2025, doi: 10.3390/s25071959.
Y. Li, Y. Huang, and Q. Tao, “Improving real-time object detection in Internet-of-Things smart city traffic with YOLOv8-DSAF method,” Sci. Rep., vol. 14, no. 1, Dec. 2024, doi: 10.1038/s41598-024-68115-1.
J. Shen, Z. Zhang, J. Luo, and X. Zhang, “YOLOv5-TS: Detecting traffic signs in real-time,” Front. Phys., vol. 11, 2023, doi: 10.3389/fphy.2023.1297828.
M. Bakirci, “Utilizing YOLOv8 for enhanced traffic monitoring in intelligent transportation systems (ITS) applications,” Digit. Signal Process., vol. 152, p. 104594, 2024, doi: https://doi.org/10.1016/j.dsp.2024.104594.
J. W. Baek, J. Il Kim, M. H. Mun, and C. B. Kim, “Hyperparameter optimization to enhance the performance of deep learning models for the early detection of invasive turtles in Korea,” Sci. Rep., vol. 16, no. 1, Dec. 2026, doi: 10.1038/s41598-026-37636-2.
H. Saputra, K. Muchtar, N. Chitraningrum, A. Andria, and A. Febriana, “Performance evaluation of hyper-parameter tuning automation in YOLOV8 and YOLO-NAS for corn leaf disease detection,” Sinergi (Indonesia), vol. 29, no. 1, pp. 197–206, 2025, doi: 10.22441/sinergi.2025.1.018.
F. Hidayat, N. Billy, N. Russel Permana, and M. Evans Hariady, “Penerapan You Only Look Once dan DeepSORT untuk Deteksi Plat Nomor Kendaraan,” Jurnal Telematika, vol. 19, no. 2.
Indra Bayu Pangestu, M. Maimunah, and Mukhtar Hanafi, “Traffic Congestion Detection Using YOLOv8 Algorithm With CCTV Data,” PIKSEL : Penelitian Ilmu Komputer Sistem Embedded and Logic, vol. 12, no. 2, pp. 435–444, Sep. 2024, doi: 10.33558/piksel.v12i2.9953.
N. Sujana, M. Malik Mutoffar, and A. Azzam Haryanto, “ANALISIS KINERJA YOLOV8 OPTIMALISASI ROBOFLOW UNTUK DETEKSI EKSPRESI WAJAH EMOSIONAL DENGAN MACHINE LEARNING,” vol. 06, 2024.
P. Y. Putra et al., “JIP (Jurnal Informatika Polinema) DETEKSI KENDARAAN TRUK PADA VIDEO MENGGUNAKAN METODE TINY-YOLO V4”.
R. Apriliyanti, D. Kurniadi, D. Novaliendry, S. Rahmadika, and M. Farhan, “Real-Time Color Classification of Objects with an Improved MobileNetV2 CNN Model,” Jurnal Teknologi Informasi dan Pendidikan, vol. 18, no. 2, pp. 899–914, Aug. 2025, doi: 10.24036/jtip.v18i2.969.
R. S. Saputri, A. Apriliani, R. S. Amar, and L. Y. Astri, “Deteksi Dini Microsleep Pada Pengemudi Kendaraan Roda Empat Melalui Citra Mata Menggunakan Algoritma YOLOv8,” Jurnal PROCESSOR, vol. 20, no. 2, Oct. 2025, doi: 10.33998/processor.2025.20.2.2529.
D. Novaliendry, F. Rizal, M. Anwar, and D. Irfan, “Aplikasi Web untuk Klasifikasi dan Deteksi Penyakit Daun Tomat Menggunakan Model CNN dan YOLO,” Jurnal Teknologi Informasi dan Pendidikan, vol. 19, no. 1, pp. 1179–1192, Feb. 2026, doi: 10.24036/jtip.v19i1.1073.
F. Wijaya and D. Hermanto, “Implementasi Metode YOLOv8 Mendeteksi Komputer Aktif dengan Subjek Layar Monitor,” 2025.
G. D. Deepak and S. K. Bhat, “Optimizing YOLOv4 Hyperparameters for Enhanced Vehicle Detection in Intelligent Transportation Systems,” International Journal of Intelligent Transportation Systems Research, vol. 23, no. 3, pp. 1372–1384, Dec. 2025, doi: 10.1007/s13177-025-00519-3.
R. Fadilatul Fajriyah and Y. Sulistyo nugroho, “Analisis Tren Penelitian Hyperparameter Tuning dalam Software Engineering melalui Systematic Literature Review dan Bibliometric Analysis,” Jurnal Pendidikan dan Teknologi Indonesia, vol. 5, no. 8, pp. 2278–2294, Aug. 2025, doi: 10.52436/1.jpti.817.
B. Irawan, N. Andono, and R. Suko Basuki, “Optimization of Yolov5 Hyperparameter Using Adam Optimizer in Vehicle Object Detection,” 2024.
H. Yu, Q. Luo, W. Peng, L. Zheng, J. Ju, and H. Zhuo, “PKD-YOLOv8: A Collaborative Pruning and Knowledge Distillation Framework for Lightweight Rapeseed Pest Detection,” Sensors, vol. 25, no. 16, Aug. 2025, doi: 10.3390/s25165004.
Downloads
Published
How to Cite
Issue
Section
License
Copyright (c) 2026 Jurnal Teknologi Informasi dan Pendidikan

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













.png)













