Rapid Detection of Ripe Tomatoes in Unstructured Environments
ABSTRACT To achieve efficient detection of ripe tomatoes in unstructured environments, this paper proposed an improved YOLOv7 rapid detection network model for ripe tomatoes. Firstly, the original YOLOv7 backbone network's CSP‐Darknet53 structure was replaced by the FasterNet network structure to enhance model detection efficiency and reduce the parameters of the model. Secondly, the Global Attention Mechanism (GAM) was introduced to improve the tomato feature expression ability with a small increase in model parameters. Next, a Diverse Branch Block (DBB) module was integrated into the ELAN module in the head structure to improve the model's inference efficiency. Finally, the batch normalization layer γ was selected as the parameter of the sparsity factor in the algorithm. The L 1 regularization term was used to train the original model for sparsity, and the slim pruning algorithm was used for global channel pruning to compress the model size. The pruned model was retrained through model fine‐tuning to adjust the detection accuracy to near the level before pruning. The experimental results show that the improved model has a mean average precision of 96.49%, which is basically unchanged compared to the original model. However, the model parameter count, the computation, and the model size were reduced by 52.16%, 56.84%, and 36.95%, respectively, resulting in a 32.09% increase in the recognition frame rate. Compared to similar object detection models, such as SSD, YOLOv3, YOLOv4, YOLOv5s, YOLOX, and YOLOv8, the Improved‐YOLOv7 model reduced the parameter by 4.44% to 89.05%, computational complexity by 30.37% to 91.18%, and model size by 26.43% to 72.16%. This paper provided technical support for the recognition of ripe tomatoes in unstructured environments.
Authors
- Weirong Zhang (ORCID: https://orcid.org/0000-0002-8887-2342)
- Fangfang Gao (ORCID: https://orcid.org/0000-0003-0432-3459)
- Jiangtao Qi (ORCID: https://orcid.org/0000-0002-4644-6273)
- Bo Zhao (ORCID: https://orcid.org/0000-0002-5359-8072)
- Xv Cong
- Hui Guo (ORCID: https://orcid.org/0009-0001-1340-4878)
Institutions
- Jilin University (CN)
- Chinese Academy of Agricultural Mechanization Sciences (CN)
- Weihai Science and Technology Bureau (CN)
Publication Details
- Journal
- Journal of Field Robotics
- Published
- 2025-04-15
- DOI
- https://doi.org/10.1002/rob.22556
- Citations
- 2
- Primary Topic
- Smart Agriculture and AI
- Type
- article
- Field-Weighted Citation Impact
- 3.50
Funders
- Jilin Scientific and Technological Development Program