[Paper Review] Channel Pruned YOLOv5-based Deep Learning Approach for Rapid and Accurate Outdoor Obstacles Detection
This paper proposes a channel-pruned YOLOv5 model for real-time, accurate outdoor obstacle detection, reducing model size by 49.7% and inference time by 52.5% while maintaining high mAP through structured pruning and data augmentation. The approach combines L1-norm sparse training on BN layers with optimized data pre-processing, achieving robust performance across diverse weather and distance conditions on a custom UAV-collected dataset.
One-stage algorithm have been widely used in target detection systems that need to be trained with massive data. Most of them perform well both in real-time and accuracy. However, due to their convolutional structure, they need more computing power and greater memory consumption. Hence, we applied pruning strategy to target detection networks to reduce the number of parameters and the size of model. To demonstrate the practicality of the pruning method, we select the YOLOv5 model for experiments and provide a data set of outdoor obstacles to show the effect of model. In this specific data set, in the best circumstances, the volume of the network model is reduced by 49.7% compared with the original model, and the reasoning time is reduced by 52.5%. Meanwhile, it also uses data processing methods to compensate for the drop in accuracy caused by pruning.
Motivation & Objective
- To develop a lightweight, real-time object detection model for outdoor obstacle detection suitable for deployment on resource-constrained platforms.
- To reduce YOLOv5’s model size and inference time without significant accuracy loss through structured channel pruning.
- To create and utilize a diverse, real-world obstacle dataset collected via UAVs under varying weather and distance conditions.
- To evaluate and optimize data pre-processing techniques that enhance detection accuracy post-pruning.
- To identify the optimal combination of pruning rate and data augmentation methods for balancing speed, size, and mAP performance.
Proposed method
- Pruning is applied to YOLOv5 by targeting the scaling parameter ε in the Batch Normalization (BN) layer, using L1-norm regularization to identify and remove less important channels.
- Sparse training is performed with L1-regularized loss to encourage channel sparsity, where channels with small ε values are pruned.
- The model is fine-tuned after pruning to recover accuracy, with the pruning rate set at 0.3 for optimal trade-off between size and performance.
- Five data pre-processing methods are evaluated: random shape training (sizes 320–512), random angle flipping (-5° to +5°), and adjustments to exposure, hue, and saturation.
- The best-performing data augmentation combination—random shape, random angle, and saturation variation—was selected to maximize mAP while minimizing redundant effects.
- The final model is trained and tested on a custom UAV-collected dataset with three weather conditions (sunny, cloudy, foggy) and multiple distances.
Experimental results
Research questions
- RQ1What is the optimal pruning rate for YOLOv5 that balances model compression and detection accuracy in outdoor obstacle detection?
- RQ2How do different data pre-processing techniques affect mAP in a pruned YOLOv5 model for obstacle detection?
- RQ3Which combination of data augmentation methods yields the highest mAP improvement without redundant or diminishing returns?
- RQ4How does pruning impact inference time and model size when applied to BN layers in YOLOv5?
- RQ5Can a pruned YOLOv5 model maintain high accuracy across diverse real-world conditions (weather, distance) with minimal performance degradation?
Key findings
- The pruned YOLOv5 model achieved a 49.7% reduction in model size and a 52.5% reduction in inference time compared to the original model.
- At a pruning rate of 0.3, the model maintained high accuracy with only a 2.4% drop in mAP when using conventional pruning, indicating strong robustness.
- Random shape training provided the largest mAP improvement (+0.40), followed by exposure, hue, and saturation adjustments, with cumulative gains of up to +0.52.
- The combination of random shape, random angle, and saturation variation data augmentation yielded the best performance, outperforming other combinations.
- The three selected pre-processing methods—random shape, random angle, and saturation variation—provided significant accuracy gains with minimal redundancy, making them ideal for deployment.
- The final model achieved a mAP of 75.19 on the test set after applying the optimized pruning and data augmentation pipeline, demonstrating high practicality for real-world use.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.