Cargando…

Lightweight Algorithm for Apple Detection Based on an Improved YOLOv5 Model

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...

Descripción completa

Detalles Bibliográficos
Autores principales: Sun, Yu, Zhang, Dongwei, Guo, Xindong, Yang, Hua
Formato: Online Artículo Texto
Lenguaje:English
Publicado: MDPI 2023
Materias:
Acceso en línea:https://www.ncbi.nlm.nih.gov/pmc/articles/PMC10490290/
https://www.ncbi.nlm.nih.gov/pubmed/37687279
http://dx.doi.org/10.3390/plants12173032
_version_ 1785103810031517696
author Sun, Yu
Zhang, Dongwei
Guo, Xindong
Yang, Hua
author_facet Sun, Yu
Zhang, Dongwei
Guo, Xindong
Yang, Hua
author_sort Sun, Yu
collection PubMed
description 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 [Formula: see text] 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.
format Online
Article
Text
id pubmed-10490290
institution National Center for Biotechnology Information
language English
publishDate 2023
publisher MDPI
record_format MEDLINE/PubMed
spelling pubmed-104902902023-09-09 Lightweight Algorithm for Apple Detection Based on an Improved YOLOv5 Model Sun, Yu Zhang, Dongwei Guo, Xindong Yang, Hua Plants (Basel) Article 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 [Formula: see text] 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. MDPI 2023-08-23 /pmc/articles/PMC10490290/ /pubmed/37687279 http://dx.doi.org/10.3390/plants12173032 Text en © 2023 by the authors. https://creativecommons.org/licenses/by/4.0/Licensee MDPI, Basel, Switzerland. This article is an open access article distributed under the terms and conditions of the Creative Commons Attribution (CC BY) license (https://creativecommons.org/licenses/by/4.0/).
spellingShingle Article
Sun, Yu
Zhang, Dongwei
Guo, Xindong
Yang, Hua
Lightweight Algorithm for Apple Detection Based on an Improved YOLOv5 Model
title Lightweight Algorithm for Apple Detection Based on an Improved YOLOv5 Model
title_full Lightweight Algorithm for Apple Detection Based on an Improved YOLOv5 Model
title_fullStr Lightweight Algorithm for Apple Detection Based on an Improved YOLOv5 Model
title_full_unstemmed Lightweight Algorithm for Apple Detection Based on an Improved YOLOv5 Model
title_short Lightweight Algorithm for Apple Detection Based on an Improved YOLOv5 Model
title_sort lightweight algorithm for apple detection based on an improved yolov5 model
topic Article
url https://www.ncbi.nlm.nih.gov/pmc/articles/PMC10490290/
https://www.ncbi.nlm.nih.gov/pubmed/37687279
http://dx.doi.org/10.3390/plants12173032
work_keys_str_mv AT sunyu lightweightalgorithmforappledetectionbasedonanimprovedyolov5model
AT zhangdongwei lightweightalgorithmforappledetectionbasedonanimprovedyolov5model
AT guoxindong lightweightalgorithmforappledetectionbasedonanimprovedyolov5model
AT yanghua lightweightalgorithmforappledetectionbasedonanimprovedyolov5model