Lightweight-Improved YOLOv5s Model for Grape Fruit and Stem Recognition

被引:4
|
作者
Zhao, Junhong [1 ,2 ]
Yao, Xingzhi [1 ]
Wang, Yu [1 ]
Yi, Zhenfeng [1 ]
Xie, Yuming [2 ]
Zhou, Xingxing [2 ]
机构
[1] South China Agr Univ, Coll Engn, Guangzhou 510642, Peoples R China
[2] Guangdong Acad Agr Sci, Inst Facil Agr, Guangzhou 510640, Peoples R China
来源
AGRICULTURE-BASEL | 2024年 / 14卷 / 05期
关键词
YOLOv5s; lightweight; target detection; mechanized picking; grape fruits and stems;
D O I
10.3390/agriculture14050774
中图分类号
S3 [农学(农艺学)];
学科分类号
0901 ;
摘要
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.
引用
收藏
页数:15
相关论文
共 50 条
  • [1] A passion fruit counting method based on the lightweight YOLOv5s and improved DeepSORT
    Tu, Shuqin
    Huang, Yufei
    Liang, Yun
    Liu, Hongxing
    Cai, Yifan
    Lei, Hua
    PRECISION AGRICULTURE, 2024, 25 (03) : 1731 - 1750
  • [2] A passion fruit counting method based on the lightweight YOLOv5s and improved DeepSORT
    Shuqin Tu
    Yufei Huang
    Yun Liang
    Hongxing Liu
    Yifan Cai
    Hua Lei
    Precision Agriculture, 2024, 25 : 1731 - 1750
  • [3] Lightweight Traffic Sign Recognition and Detection Algorithm Based on Improved YOLOv5s
    Liu, Fei
    Zhong, Yanfen
    Qiu, Jiawei
    LASER & OPTOELECTRONICS PROGRESS, 2024, 61 (24)
  • [4] Lightweight Vehicle Detection Based on Improved YOLOv5s
    Wang, Yuhai
    Xu, Shuobo
    Wang, Peng
    Li, Kefeng
    Song, Ze
    Zheng, Quanfeng
    Li, Yanshun
    He, Qiang
    SENSORS, 2024, 24 (04)
  • [5] Lightweight detection model for coal gangue identification based on improved YOLOv5s
    Shang, Deyong
    Lv, Zhibin
    Gao, Zehua
    Li, Yuntao
    JOURNAL OF REAL-TIME IMAGE PROCESSING, 2024, 21 (04)
  • [6] A Lightweight Network Based on Improved YOLOv5s for Insulator Defect Detection
    Liu, Cong
    Yi, Wentao
    Liu, Min
    Wang, Yifeng
    Hu, Sheng
    Wu, Minghu
    ELECTRONICS, 2023, 12 (20)
  • [7] Lightweight Surface Litter Detection Algorithm Based on Improved YOLOv5s
    Chen, Zunliang
    Huang, Chengxu
    Duan, Lucheng
    Tan, Baohua
    CMC-COMPUTERS MATERIALS & CONTINUA, 2023, 76 (01): : 1085 - 1102
  • [8] A Lightweight Crop Pest Detection Algorithm Based on Improved Yolov5s
    Zhang, Jing
    Wang, Jun
    Zhao, Maocheng
    AGRONOMY-BASEL, 2023, 13 (07):
  • [9] Lightweight Target Detection for Coal and Gangue Based on Improved Yolov5s
    Cao, Zhenguan
    Fang, Liao
    Li, Zhuoqin
    Li, Jinbiao
    PROCESSES, 2023, 11 (04)
  • [10] Improved Method for Apple Fruit Target Detection Based on YOLOv5s
    Wang, Huaiwen
    Feng, Jianguo
    Yin, Honghuan
    AGRICULTURE-BASEL, 2023, 13 (11):