Pear Fruit Detection Model in Natural Environment Based on Lightweight Transformer Architecture
Zheng Huang,
Xiuhua Zhang (),
Hongsen Wang,
Huajie Wei,
Yi Zhang and
Guihong Zhou
Additional contact information
Zheng Huang: College of Mechanical and Electrical Engineering, Hebei Agricultural University, Baoding 071001, China
Xiuhua Zhang: College of Mechanical and Electrical Engineering, Hebei Agricultural University, Baoding 071001, China
Hongsen Wang: College of Mechanical and Electrical Engineering, Hebei Agricultural University, Baoding 071001, China
Huajie Wei: College of Mechanical and Electrical Engineering, Hebei Agricultural University, Baoding 071001, China
Yi Zhang: College of Mechanical and Electrical Engineering, Hebei Agricultural University, Baoding 071001, China
Guihong Zhou: Hebei Intelligent Agriculture Technology Innovation Center, Baoding 071001, China
Agriculture, 2024, vol. 15, issue 1, 1-16
Abstract:
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.
Keywords: fruit detection; lightweight Transformer; RT-DETR; Xinli No. 7; FasterNet; Slim-Neck (search for similar items in EconPapers)
JEL-codes: Q1 Q10 Q11 Q12 Q13 Q14 Q15 Q16 Q17 Q18 (search for similar items in EconPapers)
Date: 2024
References: View references in EconPapers View complete reference list from CitEc
Citations:
Downloads: (external link)
https://www.mdpi.com/2077-0472/15/1/24/pdf (application/pdf)
https://www.mdpi.com/2077-0472/15/1/24/ (text/html)
Related works:
This item may be available elsewhere in EconPapers: Search for items with the same title.
Export reference: BibTeX
RIS (EndNote, ProCite, RefMan)
HTML/Text
Persistent link: https://EconPapers.repec.org/RePEc:gam:jagris:v:15:y:2024:i:1:p:24-:d:1553237
Access Statistics for this article
Agriculture is currently edited by Ms. Leda Xuan
More articles in Agriculture from MDPI
Bibliographic data for series maintained by MDPI Indexing Manager ().