Macadamia (Macadamia integrifolia) detection and recognition based on improved YOLOv7 algorithm

被引:0
|
作者
Lin, Zuxiang [1 ]
Ma, Rong [1 ]
Wang, Yingdong [1 ]
Li, Jiaqiang [1 ]
He, Chao [1 ,2 ]
Liu, Xueyuan [1 ]
Yu, Haisheng [1 ]
机构
[1] Southwest Forestry Univ, Coll Mech & Transportat Engn, Kunming 650224, Peoples R China
[2] Dehong Vocat Coll, Dehong, Peoples R China
关键词
AFPN; BiFormer attention mechanism; deep learning; macadamia (<italic>Macadamia integrifolia</italic>); repulsion loss function; YOLOv7; model; FRUIT;
D O I
10.1111/aab.12975
中图分类号
S [农业科学];
学科分类号
09 ;
摘要
Timely and accurate macadamia identification is the key to automated orchard harvesting. This study proposes an improved recognition method for the YOLOv7 model to address fruit overlap, leaf-trunk occlusion and small target problems in complex backgrounds. First, the novel BiFormer attention mechanism is introduced. This mechanism utilizes two-layer routing to achieve dynamic sparse attention, effectively reducing the number of computations, enhancing the perception of small-scale targets. Second, the asymptotic feature pyramid network (AFPN) replaces the YOLOv7 backbone network, reducing the semantic differences and parameters between different layers and improving small target detection in complex scenes. In addition, the repulsion loss function replaces the YOLOv7 default loss function to address dense fruit arrangement and fruit occlusion in the data set. This successfully reduces false detections. The validity of the model is verified by ablation and comparison experiments, which show that the improved YOLOv7 model achieves an average accuracy, precision, recall and F1 value of 99.7%, 99.6%, 99.3% and 99.4%, respectively. The average accuracy of the improved model increased by 7.5 percentage points compared with that of the YOLOv7 model. Overall, the improved YOLOv7 model can accurately recognize macadamia under complex lighting and background conditions with high detection accuracy and robustness.
引用
收藏
页数:15
相关论文
共 50 条
  • [21] An improved algorithm for sesame seedling and weed detection based on YOLOV7
    Yu G.
    Sun H.
    Xiao Z.
    Dai C.
    International Journal of Wireless and Mobile Computing, 2024, 26 (03) : 282 - 290
  • [22] Improved SAR Ship Detection Algorithm for YOLOv7
    Xiao, Zhenjiu
    Lin, Bohan
    Qu, Haicheng
    Computer Engineering and Applications, 2023, 59 (15) : 243 - 252
  • [23] Small target flame detection algorithm based on improved YOLOv7
    Niu, Shaoshan
    Zhu, Yun
    Wang, Jianyu
    Xu, Zhengxing
    JOURNAL OF ELECTRONIC IMAGING, 2023, 32 (05)
  • [24] YOLOv7-GCM: a detection algorithm for creek waste based on improved YOLOv7 model
    Qin, Jianhua
    Zhou, Honglan
    Yi, Huaian
    Ma, Luyao
    Nie, Jianhan
    Huang, Tingting
    PATTERN ANALYSIS AND APPLICATIONS, 2024, 27 (04)
  • [25] Weed detection and recognition in complex wheat fields based on an improved YOLOv7
    Wang, Kaixin
    Hu, Xihong
    Zheng, Huiwen
    Lan, Maoyang
    Liu, Changjiang
    Liu, Yihui
    Zhong, Lei
    Li, Hai
    Tan, Suiyan
    FRONTIERS IN PLANT SCIENCE, 2024, 15
  • [26] Banana Pseudostem Visual Detection Method Based on Improved YOLOV7 Detection Algorithm
    Cai, Liyuan
    Liang, Jingming
    Xu, Xing
    Duan, Jieli
    Yang, Zhou
    AGRONOMY-BASEL, 2023, 13 (04):
  • [27] An Underwater Target Detection Algorithm Based on Attention Mechanism and Improved YOLOv7
    Ren, Liqiu
    Li, Zhanying
    He, Xueyu
    Kong, Lingyan
    Zhang, Yinghao
    CMC-COMPUTERS MATERIALS & CONTINUA, 2024, 78 (02): : 2829 - 2845
  • [28] Improved Lightweight Underwater Target Detection Algorithm of YOLOv7
    Xin, Shi'ao
    Ge, Haibo
    Yuan, Hao
    Yang, Yudi
    Yao, Yang
    Computer Engineering and Applications, 2024, 60 (03)
  • [29] Pavement Defect Detection Algorithm Based on Improved YOLOv7 Complex Background
    Zou, Chunlong
    Huang, Peile
    Wang, Shenghuai
    Wang, Chen
    Wang, Hongxia
    IEEE ACCESS, 2024, 12 : 32870 - 32880
  • [30] Transparent Component Defect Detection Method Based on Improved YOLOv7 Algorithm
    Xiao, Qixun
    Huang, Jingde
    Huang, Zhangyu
    Li, Chenyu
    Xu, Jie
    INTERNATIONAL JOURNAL OF PATTERN RECOGNITION AND ARTIFICIAL INTELLIGENCE, 2023, 37 (14)