Implementasi YOLOv8n dan Deepsort untuk Deteksi Kecelakaan Serta Analisis Lalu Lintas Pada Video CCTV Jalan Raya
Abstract
The increasing number of motorized vehicles has created challenges in traffic management, particularly in monitoring highway incidents. Conventional CCTV surveillance relies heavily on human observation, making it prone to human error and delayed emergency responses. Therefore, this study proposes a web-based traffic analysis system utilizing Computer Vision technology. The YOLOv8n deep learning model is employed to perform accident detection, speed estimation, and vehicle counting simultaneously. The model was trained using 36 hyperparameter combinations in Google Colab. The best model achieved a mean Average Precision (mAP@50) of 0.862, with an mAP@50 of 0.881 for the accident class. Furthermore, the developed system was integrated with live CCTV streams and achieved an average processing speed of 25 Frames Per Second (FPS). The proposed system provides an integrated solution for real-time traffic analysis and accident detection, supporting more effective traffic monitoring.