Acta Agriculturae Zhejiangensis ›› 2022, Vol. 34 ›› Issue (6): 1306-1315.DOI: 10.3969/j.issn.1004-1524.2022.06.21

• Biosystms Engineening • Previous Articles     Next Articles

Detection of forest pests based on improved YOLOv4

CHEN Daohuai1(), WANG Hangjun2,*()   

  1. 1. College of Information Engineering, Zhejiang A&F University, Hangzhou 311300, China
    2. College of Engineering and Technology, Jiyang College of Zhejiang A&F University, Zhuji 311800, Zhejiang, China
  • Received:2021-07-03 Online:2022-06-25 Published:2022-06-30
  • Contact: WANG Hangjun

Abstract:

Abstract:In order to improve the accuracy of pest detection in the forest, an improved algorithm based on YOLOv4 was proposed. First, based on the image captured by the intelligent pest capture device, the pest data set was made, and K-means algorithm was used to cluster the target frame of the sample data set. Based on the DIoU-NMS algorithm, the counting function of pests was realized. Then, feature fusion was added to the path aggregation network (PANet) structure of the model, as well as 104×104 hierarchical feature detection graph, to increase the recognition accuracy of small-sized pests. Finally, according to the efficiency and complexity of model detection, the combination of scale feature maps in the model was adjusted to ensure the detection accuracy, improve the detection efficiency and simplify the model. The experimental results showed that the mean average precision of the improved YOLOv4 model was 1.6 percent higher than that of the traditional YOLOv4 model with a better performance on the detection of small-sized pests. Besides, its speed was improved by 11.1 percent, and the model complexity and model parameters were reduced by 11.9 percent and 33.2 percent, respectively, as compared with the traditional YOLOv4 model, which was more suitable for application deployment.

Key words: forest pests, pest detection, deep learning

CLC Number: