Acta Agriculturae Zhejiangensis ›› 2023, Vol. 35 ›› Issue (9): 2240-2249.DOI: 10.3969/j.issn.1004-1524.20221447

• Biosystems Engineering • Previous Articles     Next Articles

Detection of piggery cleaning target under low-light condition

LI Qi(), LI Yuzhe()   

  1. College of Electronic Information and Artificial Intelligence, Shaanxi University of Science and Technology, Xi’an 710021, China
  • Received:2022-10-10 Online:2023-09-25 Published:2023-10-09
  • Contact: LI Yuzhe

Abstract:

The cleaning of piggery without manual intervention can effectively prevent pigs from contracting diseases. Aiming at the problems of weak light, inconspicuous features, and mutual occlusion in the piggery scene, the low detection accuracy of cleaning targets, an improved YOLOv5 algorithm was proposed. In the preconditioning stage, the Retinex algorithm based on bilateral filtering was used to improve the detection ability of the piggery cleaning target under low light conditions; In the cleaning target detection process, the CBAM (convolutional block attention module) attention mechanism was introduced into the backbone of the YOLOv5 network to enable the network to learn more effective feature information of the cleaning target in the piggery; The frame regression loss function in the network was improved, and the DIoU-NMS algorithm was used to filter out the candidate frame of the cleaning target in the piggery, which improved the detection accuracy of the cleaning target in the case of partial occlusion. The experimental results showed that the improved YOLOv5 target detection algorithm improved the accuracy rate by 7.3 percentage point, the recall rate by 7.6 percentage point, and the average accuracy by 7.1 percentage point compared with the benchmark algorithm on the test set of piggery cleaning targets. The robustness was higher in the case of target occlusion. The result provided a basis for the research and development of animal husbandry intelligent cleaning equipment.

Key words: piggery, cleaning target, low-light conditions, attention mechanism, YOLOv5 algorithm

CLC Number: