Apple surface defect detection based on lightweight improved YOLOv5s

Autor: Lv, Lijun, Yilihamu, Yaermaimaiti, Ye, Yalin
Zdroj: International Journal of Information and Communication Technology; 2024, Vol. 24 Issue: 7 p113-128, 16p
Abstrakt: Aiming at the current Apple surface defect detection algorithms with a large quantity of parameters, and poor real-time detection, a defect detection model to improve YOLOv5s is proposed. With the YOLOv5s model serving as a foundation, the EfficientNetv2 structure takes the role of the YOLOv5s model's backbone network. Second, by including the EMA attention mechanism in the neck component, the model's ability to extract important characteristics can be improved. Finally, using Alpha-IoU to optimise the IoU loss function can successfully raise the precision of the prediction box. The experimental findings demonstrate that the model size of the improved YOLOv5s model in this paper have been reduced by 20%, the recognition speed has been increased by 39.3%, and the mAP has been improved by 1.4%. In contrast to the initial model, the improved model has a smaller model size and a faster detection speed, while guaranteeing the detection accuracy.
Databáze: Supplemental Index