Acta Agriculturae Zhejiangensis ›› 2024, Vol. 36 ›› Issue (6): 1413-1424.DOI: 10.3969/j.issn.1004-1524.20230822

• Biosystems Engineering • Previous Articles     Next Articles

A lightweight tea buds terminal detection model based on YOLOv5s

ZHU Mingmin1(), ZHANG Guoping1,*(), TAN Jianjun2, SUN Lingjiao2, ZHU Li1,3, JIAO Jie2   

  1. 1. College of Physical Science and Technology, Central China Normal University, Wuhan 430079, China
    2. College of Intelligent Engineering, Hubei Enshi College, Enshi 445000, Hubei,China
    3. College of Intelligent Science and Engineering, Hubei Minzu University, Enshi 445000, Hubei, China
  • Received:2023-07-03 Online:2024-06-25 Published:2024-07-02

Abstract:

Rapid and accurate identification of tea buds in tea garden environments is one of the key technologies for achieving intelligent tea picking. However, the complexity of the tea buds detection model leads to problems such as large model parameters, computational complexity, and model size, which limits the deployment of this model in embedded devices of tea picking robots. In view of this, this article proposes a lightweight tea buds terminal detection model based on YOLOv5s. Firstly, the lightweight network GhostNet is used to replace the Backbone network in YOLOv5s, and the Neck network is reconstructed to reduce the parameters, computation and memory consumption of the model. The improved model reduces 47.64%, 49.36% and 45.51% respectively. Secondly, by introducing a coordinated attention(CA) mechanism to suppress image background information, the model’s feature extraction ability for tea buds is enhanced. Next, multi-scale context (MSC) module is introduced into the Neck network to effectively fuse shallow image features and deep semantic features, which helps the network model extract effective recognition information. Then, the boundary box regression Loss function CIOU is replaced by EIOU to accelerate the Rate of convergence of the Loss function and improve the positioning accuracy of the tea buds boundary box. The experiment result shows that compared with the original YOLOv5s model, the improved model reduces the parameter count, computational complexity, and model memory usage by 3 Mb, 7.3 Gb, and 6.37 Mb, respectively, and improves detection accuracy by 0.3%. Finally, the model was transplanted to the Raspberry Pi platform through model transformation. After environmental deployment and inference engine acceleration, the lightweight model achieved the goal of detecting tea buds on Raspberry Pi with limited resources and computing power. It also improved the recognition accuracy of tea buds to a certain extent, providing theoretical research and technical support for the intelligent picking of tea buds.

Key words: tea bud detection, Raspberry Pie, lightweight, attention mechanism

CLC Number: