Abstract
This study proposes an improved YOLOv8 model for vehicle and pedestrian detection in urban traffic monitoring systems. In order to improve the detection performance of the model, we introduced a multi-scale feature fusion module and an improved non-maximum suppression (NMS) algorithm based on the YOLOv8 model. The multi-scale feature fusion module enhances the model's detection ability for targets of different sizes by combining feature maps of different scales; the improved non-maximum suppression algorithm effectively reduces repeated detection and missed detection by optimizing the screening process of candidate boxes. Experimental results show that the improved YOLOv8 model exhibits excellent detection performance on the VisDrone2019 dataset, and outperforms other classic target detection models and the baseline YOLOv8 model in key indicators such as precision, recall, F1 score, and mean average precision (mAP). In addition, through visual analysis, our method demonstrates strong target detection capabilities in complex urban traffic environments, and can accurately identify and label targets of multiple categories. Finally, these results prove the effectiveness and superiority of the improved YOLOv8 model, providing reliable technical support for urban traffic monitoring systems.
Introduction
The integration of Unmanned Aerial Vehicles (UAVs) into urban traffic monitoring systems offers a flexible, bird's-eye perspective that traditional fixed cameras cannot match. However, this vantage point introduces significant computer vision challenges. Objects like pedestrians appear extremely small from high altitudes, and dense urban environments often lead to severe occlusions where vehicles and pedestrians overlap from the drone’s perspective. Furthermore, environmental factors such as changing light conditions and complex backgrounds add noise to the detection process. This paper details an optimized YOLOv8 architecture specifically designed to overcome these hurdles.
Methodology
The research focuses on enhancing the YOLOv8s (small) baseline model through two primary architectural modifications designed to handle the unique constraints of aerial imagery.
Multi-scale Feature Fusion (MFF)
To address the issue of scale variance, the authors implemented a Multi-scale Feature Fusion module. Based on the Feature Pyramid Network (FPN) concept, MFF fuses feature maps from different layers of the backbone network. By combining high-level semantic information (identifying what an object is) with low-level spatial details (precisely where its edges are), the model retains the fine-grained data necessary to detect tiny targets that often vanish in deeper network layers.
Improved Non-Maximum Suppression (INMS)
Standard Non-Maximum Suppression (NMS) uses a "hard threshold" to eliminate overlapping detection boxes. In crowded traffic, this often results in the accidental suppression of valid targets. The proposed Improved NMS (INMS) utilizes a "soft" weighting mechanism based on an exponential decay function. Instead of outright deleting overlapping boxes, it reduces their confidence scores, allowing the model to distinguish between multiple valid targets in dense clusters.
Data Augmentation
To enhance model robustness, a comprehensive suite of data augmentation techniques was applied. This included random rotations, flipping, color jittering, and the addition of Gaussian and salt-and-pepper noise to simulate the diverse weather and sensor conditions encountered in real-world drone operations.
Experimental Setup and Datasets
The model was rigorously evaluated using the VisDrone 2019 dataset, a benchmark for aerial object detection.
- Dataset Composition: Contains over 33,000 images and 280 videos captured by drones.
- Target Categories: Includes 10 distinct classes, such as pedestrians, cyclists, cars, trucks, and motorcycles.
- Complexity: The dataset is characterized by high object density, significant scale variation, and diverse lighting scenarios, making it an ideal test for the proposed improvements.
Results and Discussion
The improved YOLOv8 model demonstrated superior performance across several key metrics compared to the baseline and other state-of-the-art architectures.
Performance Metrics
The proposed model achieved a mean Average Precision ([email protected]) of 43.32%, representing a 4.8% increase over the baseline YOLOv8s score of 38.52%. Significant improvements were noted in challenging categories:
- Pedestrians: Accuracy increased from 40.62% to 45.92%.
- Motorcycles: Accuracy rose from 43.52% to 48.22%.
Comparative Analysis
When compared to other classic models on the same dataset, the improved YOLOv8 outperformed Faster R-CNN (39.12% mAP) and YOLOv7 (37.92% mAP).
Efficiency and Real-time Viability
Despite the architectural enhancements, the model remains highly efficient. With a file size of 21.6 MB and an average detection time of 6.2 ms per image, the system is well-suited for near-real-time applications on edge computing hardware typically used in drone ground stations.
Limitations and Future Directions
While the model shows strong performance, visual analysis indicates that detection accuracy still faces challenges in extreme low-light or nighttime conditions due to increased sensor noise. Future research will focus on:
- Low-light Optimization: Improving detection in nighttime urban environments.
- Edge Deployment: Further optimizing the model for direct deployment on drone-embedded systems, such as NVIDIA Jetson modules, to minimize latency.
- Real-world Testing: Validating the model's performance in diverse, unscripted real-world scenarios beyond benchmark datasets.
Conclusion
The proposed improvements to the YOLOv8 architecture—specifically the MFF module and INMS algorithm—effectively address the core challenges of drone-based urban traffic monitoring. By significantly boosting detection accuracy for small and occluded objects while maintaining high inference speeds, this research provides a reliable technical foundation for advanced urban traffic management systems.
Summary updated