Author
Listed:
- Junhong Zhao
(College of Engineering, South China Agricultural University, Guangzhou 510642, China
Institute of Facility Agriculture, Guangdong Academy of Agricultural Sciences, Guangzhou 510640, China)
- Xingzhi Yao
(College of Engineering, South China Agricultural University, Guangzhou 510642, China)
- Yu Wang
(College of Engineering, South China Agricultural University, Guangzhou 510642, China)
- Zhenfeng Yi
(College of Engineering, South China Agricultural University, Guangzhou 510642, China)
- Yuming Xie
(Institute of Facility Agriculture, Guangdong Academy of Agricultural Sciences, Guangzhou 510640, China)
- Xingxing Zhou
(Institute of Facility Agriculture, Guangdong Academy of Agricultural Sciences, Guangzhou 510640, China)
Abstract
Mechanized harvesting is the key technology to solving the high cost and low efficiency of manual harvesting, and the key to realizing mechanized harvesting lies in the accurate and fast identification and localization of targets. In this paper, a lightweight YOLOv5s model is improved for efficiently identifying grape fruits and stems. On the one hand, it improves the CSP module in YOLOv5s using the Ghost module, reducing model parameters through ghost feature maps and cost-effective linear operations. On the other hand, it replaces traditional convolutions with deep convolutions to further reduce the model’s computational load. The model is trained on datasets under different environments (normal light, low light, strong light, noise) to enhance the model’s generalization and robustness. The model is applied to the recognition of grape fruits and stems, and the experimental results show that the overall accuracy, recall rate, mAP, and F1 score of the model are 96.8%, 97.7%, 98.6%, and 97.2% respectively. The average detection time on a GPU is 4.5 ms, with a frame rate of 221 FPS, and the weight size generated during training is 5.8 MB. Compared to the original YOLOv5s, YOLOv5m, YOLOv5l, and YOLOv5x models under the specific orchard environment of a grape greenhouse, the proposed model improves accuracy by 1%, decreases the recall rate by 0.2%, increases the F1 score by 0.4%, and maintains the same mAP. In terms of weight size, it is reduced by 61.1% compared to the original model, and is only 1.8% and 5.5% of the Faster-RCNN and SSD models, respectively. The FPS is increased by 43.5% compared to the original model, and is 11.05 times and 8.84 times that of the Faster-RCNN and SSD models, respectively. On a CPU, the average detection time is 23.9 ms, with a frame rate of 41.9 FPS, representing a 31% improvement over the original model. The test results demonstrate that the lightweight-improved YOLOv5s model proposed in the study, while maintaining accuracy, significantly reduces the model size, enhances recognition speed, and can provide fast and accurate identification and localization for robotic harvesting.
Suggested Citation
Junhong Zhao & Xingzhi Yao & Yu Wang & Zhenfeng Yi & Yuming Xie & Xingxing Zhou, 2024.
"Lightweight-Improved YOLOv5s Model for Grape Fruit and Stem Recognition,"
Agriculture, MDPI, vol. 14(5), pages 1-15, May.
Handle:
RePEc:gam:jagris:v:14:y:2024:i:5:p:774-:d:1396465
Download full text from publisher
Corrections
All material on this site has been provided by the respective publishers and authors. You can help correct errors and omissions. When requesting a correction, please mention this item's handle: RePEc:gam:jagris:v:14:y:2024:i:5:p:774-:d:1396465. See general information about how to correct material in RePEc.
If you have authored this item and are not yet registered with RePEc, we encourage you to do it here. This allows to link your profile to this item. It also allows you to accept potential citations to this item that we are uncertain about.
We have no bibliographic references for this item. You can help adding them by using this form .
If you know of missing items citing this one, you can help us creating those links by adding the relevant references in the same way as above, for each refering item. If you are a registered author of this item, you may also want to check the "citations" tab in your RePEc Author Service profile, as there may be some citations waiting for confirmation.
For technical questions regarding this item, or to correct its authors, title, abstract, bibliographic or download information, contact: MDPI Indexing Manager (email available below). General contact details of provider: https://www.mdpi.com .
Please note that corrections may take a couple of weeks to filter through
the various RePEc services.