Intelligent Traffic Management: Comparative Evaluation of YOLOv3, YOLOv5, and YOLOv8 for Vehicle Detection in Urban Environments in Montería, Colombia
Darío Doria Usta, Ricardo Hundelshaussen Rubio, César López Martínez, João Felipe Coimbra Leite Costa, Diego Machado Marques · Future Transportation · 2025
This study compares the performance of three YOLO-based object detection models—YOLOv3, YOLOv5, and YOLOv8—for vehicle detection and classification at an urban intersection in Montería, Colombia. Recordings from five consecutive days, spanning three time slots, were used, totaling approximately 135,000 frames with variability in lighting and weather conditions. Frames were preprocessed by maintaining the aspect ratio and were normalized according to each model. The evaluation employed models pre-trained on COCO, without fine-tuning, enabling an objective assessment of their generalization capacity. Precision, recall, F1-score, and [email protected] were computed globally and by vehicle class. YOLOv5 achieved the best balance between precision and recall (F1-score = 0.78) and the highest mAP (0.63), while YOLOv3 showed lower recall and mAP, and YOLOv8 performed competitively but slightly below YOLOv5. Cars and motorcycles were the most robust classes, whereas bicycles and trucks showed greater detection challenges. Visual evaluation confirmed stable performance on cloudy days and in light rain, with reduced accuracy under sunny conditions with high contrast. These findings highlight the potential of modern YOLO architectures for intelligent urban traffic monitoring and management. The generated dataset constitutes a replicable resource for future mobility research in similar contexts.