Pear Fruit Detection Model in Natural Environment Based on Lightweight Transformer Architecture

被引:1
|
作者
Huang, Zheng [1 ,2 ]
Zhang, Xiuhua [1 ,2 ]
Wang, Hongsen [1 ,2 ]
Wei, Huajie [1 ,2 ]
Zhang, Yi [1 ,2 ]
Zhou, Guihong [2 ,3 ]
机构
[1] Hebei Agr Univ, Coll Mech & Elect Engn, Baoding 071001, Peoples R China
[2] Hebei Intelligent Agr Technol Innovat Ctr, Baoding 071001, Peoples R China
[3] Hebei Agr Univ, Coll Informat Sci & Technol, Baoding 071001, Peoples R China
来源
AGRICULTURE-BASEL | 2025年 / 15卷 / 01期
关键词
fruit detection; lightweight Transformer; RT-DETR; Xinli No. 7; FasterNet; Slim-Neck;
D O I
10.3390/agriculture15010024
中图分类号
S3 [农学(农艺学)];
学科分类号
0901 ;
摘要
Aiming at the problems of low precision, slow speed and difficult detection of small target pear fruit in a real environment, this paper designs a pear fruit detection model in a natural environment based on a lightweight Transformer architecture based on the RT-DETR model. Meanwhile, Xinli No. 7 fruit data set with different environmental conditions is established. First, based on the original model, the backbone was replaced with a lightweight FasterNet network. Secondly, HiLo, an improved and efficient attention mechanism with high and low-frequency information extraction, was used to make the model lightweight and improve the feature extraction ability of Xinli No. 7 in complex environments. The CCFM module is reconstructed based on the Slim-Neck method, and the loss function of the original model is replaced with the Shape-NWD small target detection mechanism loss function to enhance the feature extraction capability of the network. The comparison test between RT-DETR and YOLOv5m, YOLOv7, YOLOv8m and YOLOv10m, Deformable-DETR models shows that RT-DETR can achieve a good balance in terms of model lightweight and recognition accuracy compared with other models, and comprehensively exceed the detection accuracy of the current advanced YOLOv10 algorithm, which can realize the rapid detection of Xinli No. 7 fruit. In this paper, the accuracy rate, recall rate and average accuracy of the improved model reached 93.7%, 91.9% and 98%, respectively, and compared with the original model, the number of params, calculation amount and weight memory was reduced by 48.47%, 56.2% and 48.31%, respectively. This model provides technical support for Xinli No. 7 fruit detection and model deployment in complex environments.
引用
收藏
页数:16
相关论文
共 50 条
  • [1] Camellia oleifera Fruit Detection Algorithm in Natural Environment Based on Lightweight Convolutional Neural Network
    Li, Zefeng
    Kang, Lichun
    Rao, Honghui
    Nie, Ganggang
    Tan, Yuhan
    Liu, Muhua
    APPLIED SCIENCES-BASEL, 2023, 13 (18):
  • [2] Dragon fruit detection in natural orchard environment by integrating lightweight network and attention mechanism
    Zhang, Bin
    Wang, Rongrong
    Zhang, Huiming
    Yin, Chenghai
    Xia, Yuyang
    Fu, Meng
    Fu, Wei
    FRONTIERS IN PLANT SCIENCE, 2022, 13
  • [3] Automatic pixel-level detection of tire defects based on a lightweight Transformer architecture
    Sun, Yingwei
    Liu, Xiyu
    Zhai, Xiaodi
    Sun, Kuizhi
    Zhao, Mengmeng
    Chang, Yankang
    Zhang, Yan
    MEASUREMENT SCIENCE AND TECHNOLOGY, 2023, 34 (08)
  • [4] A lightweight waxberry fruit detection model based on YOLOv5
    Yang, Chengyu
    Liu, Jun
    He, Jianting
    IET IMAGE PROCESSING, 2024, 18 (07) : 1796 - 1808
  • [5] LiwTERM: A Lightweight Transformer-based Model for Dermatological Multimodal Lesion Detection
    Souza, Luis A., Jr.
    Pacheco, Andre G. C.
    de Angelo, Gabriel G.
    Oliveira-Santos, Thiago
    Palm, Christoph
    Papa, Joao P.
    2024 37TH SIBGRAPI CONFERENCE ON GRAPHICS, PATTERNS AND IMAGES, SIBGRAPI 2024, 2024, : 229 - 234
  • [6] Intelligent Detection of Lightweight "Yuluxiang" Pear in Non-Structural Environment Based on YOLO-GEW
    Ren, Rui
    Sun, Haixia
    Zhang, Shujuan
    Wang, Ning
    Lu, Xinyuan
    Jing, Jianping
    Xin, Mingming
    Cui, Tianyu
    AGRONOMY-BASEL, 2023, 13 (09):
  • [7] Lightweight detection method for lotus seedpod in natural environment
    Tang, Tao
    Wang, Xu
    Ma, Zenghong
    Hong, Weiwei
    Yu, Gaohong
    Ye, Bingliang
    INTERNATIONAL JOURNAL OF AGRICULTURAL AND BIOLOGICAL ENGINEERING, 2023, 16 (06) : 197 - 206
  • [8] Apple and Pear Model for Optimal Production and Fruit Grade in a Changing Environment
    Sousa, Miguel L.
    Goncalves, Marta
    Fialho, Delia
    Ramos, Antonio
    Lopes, Joao P.
    Oliveira, Cristina M.
    Paulo De Melo-Abreu, J.
    HORTICULTURAE, 2022, 8 (10)
  • [9] Efficient detection model of green target fruit based on optimized Transformer network
    Jia W.
    Meng H.
    Ma X.
    Zhao Y.
    Ji Z.
    Zheng Y.
    Zheng, Yuanjie (yjzheng@sdnu.edu.cn), 1600, Chinese Society of Agricultural Engineering (37): : 163 - 170
  • [10] Deep learning model based on Transformer architecture for peripheral blood leukocyte detection
    Leng B.
    Leng M.
    Chang Z.
    Ge M.
    Dong W.
    Yi Qi Yi Biao Xue Bao/Chinese Journal of Scientific Instrument, 2023, 44 (05): : 113 - 120