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 条
  • [1] Ship Detection and Recognition Based on Improved YOLOv7
    Wu, Wei
    Li, Xiulai
    Hu, Zhuhua
    Liu, Xiaozhang
    CMC-COMPUTERS MATERIALS & CONTINUA, 2023, 76 (01): : 489 - 498
  • [2] Helmet Detection Algorithm Based on Improved YOLOv7
    Yilihamu, Yaermaimaiti
    Liu, Yajie
    Xi, Lingfei
    Wang, Ruohao
    AUTOMATIC CONTROL AND COMPUTER SCIENCES, 2024, 58 (06) : 642 - 655
  • [3] A Flame Detection Algorithm Based on Improved YOLOv7
    Yan, Guibao
    Guo, Jialin
    Zhu, Dongyi
    Zhang, Shuming
    Xing, Rui
    Xiao, Zhangshu
    Wang, Qichao
    APPLIED SCIENCES-BASEL, 2023, 13 (16):
  • [4] Night target detection algorithm based on improved YOLOv7
    Bowen, Zheng
    Huacai, Lu
    Shengbo, Zhu
    Xinqiang, Chen
    Hongwei, Xing
    SCIENTIFIC REPORTS, 2024, 14 (01):
  • [5] Mask wearing detection algorithm based on improved YOLOv7
    Luo, Fang
    Zhang, Yin
    Xu, Lunhui
    Zhang, Zhiliang
    Li, Ming
    Zhang, Weixiong
    MEASUREMENT & CONTROL, 2024, 57 (06): : 751 - 762
  • [6] Pedestrian Fall Detection Algorithm Based on Improved YOLOv7
    Wang, Fei
    Zhang, Yunchu
    Zhang, Xinyi
    Liu, Yiming
    NEURAL COMPUTING FOR ADVANCED APPLICATIONS, NCAA 2024, PT I, 2025, 2181 : 437 - 448
  • [7] Mine Personnel Detection Algorithm Based on Improved YOLOv7
    Shao X.
    Li X.
    Yang Y.
    Yuan Z.
    Yang T.
    Dianzi Keji Daxue Xuebao/Journal of the University of Electronic Science and Technology of China, 2024, 53 (03): : 414 - 423
  • [8] Recognition algorithm for laboratory protective equipment based on improved YOLOv7
    Luo, Huijuan
    Liu, Wenjing
    Xu, Pinghu
    Zhang, Lijun
    Li, Lin
    HELIYON, 2024, 10 (16)
  • [9] Highway Obstacle Recognition Based on Improved YOLOv7 and Defogging Algorithm
    Fan, Mingliang
    Liu, Jing
    Yu, Jiaming
    IOT AS A SERVICE, IOTAAS 2023, 2025, 585 : 22 - 34
  • [10] Fruit Target Recognition and Maturity Detection Based on Improved YOLOv7
    Chen Q.
    Li R.
    Hu L.
    Zhang Y.
    Computer-Aided Design and Applications, 2024, 21 (S25): : 156 - 170