Acta Agriculturae Zhejiangensis ›› 2022, Vol. 34 ›› Issue (11): 2522-2532.DOI: 10.3969/j.issn.1004-1524.2022.11.21

• Biosystems Engineering • Previous Articles     Next Articles

Real-time detection of orchard cherry based on YOLOV4 model

ZHOU Pinzhi1,2(), PEI Yuekun1,2,*(), WEI Ran1,2, ZHANG Yongfei1,2, GU Yu1,2   

  1. 1. Beidou High Precision Positioning Service Technology Engineering Laboratory of Liaoning Province, Dalian Unviersity, Dalian 116622, Liaoning, China
    2. Environment Sensing and Intelligent Control Key Laboratory of Dalian,Dalian University, Dalian 116622, Liaoning, China
  • Received:2021-05-07 Online:2022-11-25 Published:2022-11-29
  • Contact: PEI Yuekun

Abstract:

In order to solve the problem of difficulty in target recognition and low detection accuracy in the state monitoring of cherries in different growth periods under natural environment, this paper proposed an improved convolutional neural network cherry classification and detection model based on CSPDarknet53. The feature extraction network used in the classic YOLOV4 had a deeper number of layers and could extract more advanced abstract features, but had a weak local perception of the target. By integrating the CBAM attention mechanism on the CSPDarknet53 network structure, the perception of local features of the target was enhanced. Furthermore, the accuracy of target detection was improved, its feature extraction and target detection capabilities were better than the original algorithm, the feature layer output of the feature extraction network was adjusted, and the third layer output to the second layer output was changed to increase the acquisition of small target semantic information, k-means algorithm was used to optimize the size of the prior frame to adapt to the size of the cherry target, and ablation experiment analysis was conducted. The results showed that the improved YOLOV4 cherry detection model had an average accuracy of 92.31% and an F1 score of 87.3%, which was better than Faster RCNN, YOLOV3 and the original YOLOV4 algorithm. The detection speed was 40.23 frames·s-1, which was suitable for natural environments. It provided a theoretical and technical basis for realizing automatic monitoring of fruit growth status in orchards.

Key words: cherry, maturity, attention mechanism

CLC Number: