Lightweight Algorithm for Apple Detection Based on an Improved YOLOv5 Model

被引:7
|
作者
Sun, Yu [1 ]
Zhang, Dongwei [1 ]
Guo, Xindong [1 ,2 ]
Yang, Hua [1 ]
机构
[1] Shanxi Agr Univ, Coll Informat Sci & Engn, Jinzhong 030801, Peoples R China
[2] North Univ China, Coll Comp Sci & Technol, Taiyuan 030051, Peoples R China
来源
PLANTS-BASEL | 2023年 / 12卷 / 17期
关键词
YOLOv5; lightweight; attention mechanism; object detection; deep learning; RECOGNITION; VISION; TREE;
D O I
10.3390/plants12173032
中图分类号
Q94 [植物学];
学科分类号
071001 ;
摘要
The detection algorithm of the apple-picking robot contains a complex network structure and huge parameter volume, which seriously limits the inference speed. To enable automatic apple picking in complex unstructured environments based on embedded platforms, we propose a lightweight YOLOv5-CS model for apple detection based on YOLOv5n. Firstly, we introduced the lightweight C3-light module to replace C3 to enhance the extraction of spatial features and boots the running speed. Then, we incorporated SimAM, a parameter-free attention module, into the neck layer to improve the model's accuracy. The results showed that the size and inference speed of YOLOv5-CS were 6.25 MB and 0.014 s, which were 45 and 1.2 times that of the YOLOv5n model, respectively. The number of floating-point operations (FLOPs) were reduced by 15.56%, and the average precision (AP) reached 99.1%. Finally, we conducted extensive experiments, and the results showed that the YOLOv5-CS outperformed mainstream networks in terms of AP, speed, and model size. Thus, our real-time YOLOv5-CS model detects apples in complex orchard environments efficiently and provides technical support for visual recognition systems for intelligent apple-picking devices.
引用
收藏
页数:18
相关论文
共 50 条
  • [1] Lightweight UAV Detection Algorithm Based on Improved YOLOv5
    Peng, Yi
    Tu, Xinyue
    Yang, Qingqing
    Li, Rui
    [J]. Hunan Daxue Xuebao/Journal of Hunan University Natural Sciences, 2023, 50 (12): : 28 - 38
  • [2] Lightweight Fire Detection Algorithm Based on Improved YOLOv5
    Zhang, Dawei
    Chen, Yutang
    [J]. INTERNATIONAL JOURNAL OF ADVANCED COMPUTER SCIENCE AND APPLICATIONS, 2024, 15 (06) : 809 - 816
  • [3] A lightweight method for apple-on-tree detection based on improved YOLOv5
    Li, Mei
    Zhang, Jiachuang
    Liu, Hubin
    Yuan, Yuhui
    Li, Junhui
    Zhao, Longlian
    [J]. SIGNAL IMAGE AND VIDEO PROCESSING, 2024, 18 (10) : 6713 - 6727
  • [4] Improved YOLOv5 Lightweight Mask Detection Algorithm
    Liu, Chonghao
    Pan, Lihu
    Yang, Fan
    Zhang, Rui
    [J]. Computer Engineering and Applications, 2023, 59 (07) : 232 - 241
  • [5] Research on lightweight algorithm for gangue detection based on improved Yolov5
    Yuan, Xinpeng
    Fu, Zhibo
    Zhang, Bowen
    Xie, Zhengkun
    Gan, Rui
    [J]. SCIENTIFIC REPORTS, 2024, 14 (01)
  • [6] Research on lightweight algorithm for gangue detection based on improved Yolov5
    Xinpeng Yuan
    Zhibo Fu
    Bowen Zhang
    Zhengkun Xie
    Rui Gan
    [J]. Scientific Reports, 14
  • [7] A Lightweight Military Target Detection Algorithm Based on Improved YOLOv5
    Du, Xiuli
    Song, Linkai
    Lv, Yana
    Qiu, Shaoming
    [J]. ELECTRONICS, 2022, 11 (20)
  • [8] Lightweight object detection algorithm for robots with improved YOLOv5
    Liu, Gang
    Hu, Yanxin
    Chen, Zhiyu
    Guo, Jianwei
    Ni, Peng
    [J]. ENGINEERING APPLICATIONS OF ARTIFICIAL INTELLIGENCE, 2023, 123
  • [9] Lightweight improved YOLOv5 algorithm for PCB defect detection
    Xie, Yinggang
    Zhao, Yanwei
    [J]. Journal of Supercomputing, 2025, 81 (01):
  • [10] Lightweight forest smoke and fire detection algorithm based on improved YOLOv5
    Yang, Jie
    Zhu, Wenchao
    Sun, Ting
    Ren, Xiaojun
    Liu, Fang
    [J]. PLOS ONE, 2023, 18 (09):