Cargando…

Rapid detection of Yunnan Xiaomila based on lightweight YOLOv7 algorithm

INTRODUCTION: Real-time fruit detection is a prerequisite for using the Xiaomila pepper harvesting robot in the harvesting process. METHODS: To reduce the computational cost of the model and improve its accuracy in detecting dense distributions and occluded Xiaomila objects, this paper adopts YOLOv7...

Descripción completa

Detalles Bibliográficos
Autores principales: Wang, Fenghua, Jiang, Jin, Chen, Yu, Sun, Zhexing, Tang, Yuan, Lai, Qinghui, Zhu, Hailong
Formato: Online Artículo Texto
Lenguaje:English
Publicado: Frontiers Media S.A. 2023
Materias:
Acceso en línea:https://www.ncbi.nlm.nih.gov/pmc/articles/PMC10278889/
https://www.ncbi.nlm.nih.gov/pubmed/37342128
http://dx.doi.org/10.3389/fpls.2023.1200144
_version_ 1785060561043587072
author Wang, Fenghua
Jiang, Jin
Chen, Yu
Sun, Zhexing
Tang, Yuan
Lai, Qinghui
Zhu, Hailong
author_facet Wang, Fenghua
Jiang, Jin
Chen, Yu
Sun, Zhexing
Tang, Yuan
Lai, Qinghui
Zhu, Hailong
author_sort Wang, Fenghua
collection PubMed
description INTRODUCTION: Real-time fruit detection is a prerequisite for using the Xiaomila pepper harvesting robot in the harvesting process. METHODS: To reduce the computational cost of the model and improve its accuracy in detecting dense distributions and occluded Xiaomila objects, this paper adopts YOLOv7-tiny as the transfer learning model for the field detection of Xiaomila, collects images of immature and mature Xiaomila fruits under different lighting conditions, and proposes an effective model called YOLOv7-PD. Firstly, the main feature extraction network is fused with deformable convolution by replacing the traditional convolution module in the YOLOv7-tiny main network and the ELAN module with deformable convolution, which reduces network parameters while improving the detection accuracy of multi-scale Xiaomila targets. Secondly, the SE (Squeeze-and-Excitation) attention mechanism is introduced into the reconstructed main feature extraction network to improve its ability to extract key features of Xiaomila in complex environments, realizing multi-scale Xiaomila fruit detection. The effectiveness of the proposed method is verified through ablation experiments under different lighting conditions and model comparison experiments. RESULTS: The experimental results indicate that YOLOv7-PD achieves higher detection performance than other single-stage detection models. Through these improvements, YOLOv7-PD achieves a mAP (mean Average Precision) of 90.3%, which is 2.2%, 3.6%, and 5.5% higher than that of the original YOLOv7-tiny, YOLOv5s, and Mobilenetv3 models, respectively, the model size is reduced from 12.7 MB to 12.1 MB, and the model’s unit time computation is reduced from 13.1 GFlops to 10.3 GFlops. DISCUSSION: The results shows that compared to existing models, this model is more effective in detecting Xiaomila fruits in images, and the computational complexity of the model is smaller.
format Online
Article
Text
id pubmed-10278889
institution National Center for Biotechnology Information
language English
publishDate 2023
publisher Frontiers Media S.A.
record_format MEDLINE/PubMed
spelling pubmed-102788892023-06-20 Rapid detection of Yunnan Xiaomila based on lightweight YOLOv7 algorithm Wang, Fenghua Jiang, Jin Chen, Yu Sun, Zhexing Tang, Yuan Lai, Qinghui Zhu, Hailong Front Plant Sci Plant Science INTRODUCTION: Real-time fruit detection is a prerequisite for using the Xiaomila pepper harvesting robot in the harvesting process. METHODS: To reduce the computational cost of the model and improve its accuracy in detecting dense distributions and occluded Xiaomila objects, this paper adopts YOLOv7-tiny as the transfer learning model for the field detection of Xiaomila, collects images of immature and mature Xiaomila fruits under different lighting conditions, and proposes an effective model called YOLOv7-PD. Firstly, the main feature extraction network is fused with deformable convolution by replacing the traditional convolution module in the YOLOv7-tiny main network and the ELAN module with deformable convolution, which reduces network parameters while improving the detection accuracy of multi-scale Xiaomila targets. Secondly, the SE (Squeeze-and-Excitation) attention mechanism is introduced into the reconstructed main feature extraction network to improve its ability to extract key features of Xiaomila in complex environments, realizing multi-scale Xiaomila fruit detection. The effectiveness of the proposed method is verified through ablation experiments under different lighting conditions and model comparison experiments. RESULTS: The experimental results indicate that YOLOv7-PD achieves higher detection performance than other single-stage detection models. Through these improvements, YOLOv7-PD achieves a mAP (mean Average Precision) of 90.3%, which is 2.2%, 3.6%, and 5.5% higher than that of the original YOLOv7-tiny, YOLOv5s, and Mobilenetv3 models, respectively, the model size is reduced from 12.7 MB to 12.1 MB, and the model’s unit time computation is reduced from 13.1 GFlops to 10.3 GFlops. DISCUSSION: The results shows that compared to existing models, this model is more effective in detecting Xiaomila fruits in images, and the computational complexity of the model is smaller. Frontiers Media S.A. 2023-06-05 /pmc/articles/PMC10278889/ /pubmed/37342128 http://dx.doi.org/10.3389/fpls.2023.1200144 Text en Copyright © 2023 Wang, Jiang, Chen, Sun, Tang, Lai and Zhu https://creativecommons.org/licenses/by/4.0/This is an open-access article distributed under the terms of the Creative Commons Attribution License (CC BY). The use, distribution or reproduction in other forums is permitted, provided the original author(s) and the copyright owner(s) are credited and that the original publication in this journal is cited, in accordance with accepted academic practice. No use, distribution or reproduction is permitted which does not comply with these terms.
spellingShingle Plant Science
Wang, Fenghua
Jiang, Jin
Chen, Yu
Sun, Zhexing
Tang, Yuan
Lai, Qinghui
Zhu, Hailong
Rapid detection of Yunnan Xiaomila based on lightweight YOLOv7 algorithm
title Rapid detection of Yunnan Xiaomila based on lightweight YOLOv7 algorithm
title_full Rapid detection of Yunnan Xiaomila based on lightweight YOLOv7 algorithm
title_fullStr Rapid detection of Yunnan Xiaomila based on lightweight YOLOv7 algorithm
title_full_unstemmed Rapid detection of Yunnan Xiaomila based on lightweight YOLOv7 algorithm
title_short Rapid detection of Yunnan Xiaomila based on lightweight YOLOv7 algorithm
title_sort rapid detection of yunnan xiaomila based on lightweight yolov7 algorithm
topic Plant Science
url https://www.ncbi.nlm.nih.gov/pmc/articles/PMC10278889/
https://www.ncbi.nlm.nih.gov/pubmed/37342128
http://dx.doi.org/10.3389/fpls.2023.1200144
work_keys_str_mv AT wangfenghua rapiddetectionofyunnanxiaomilabasedonlightweightyolov7algorithm
AT jiangjin rapiddetectionofyunnanxiaomilabasedonlightweightyolov7algorithm
AT chenyu rapiddetectionofyunnanxiaomilabasedonlightweightyolov7algorithm
AT sunzhexing rapiddetectionofyunnanxiaomilabasedonlightweightyolov7algorithm
AT tangyuan rapiddetectionofyunnanxiaomilabasedonlightweightyolov7algorithm
AT laiqinghui rapiddetectionofyunnanxiaomilabasedonlightweightyolov7algorithm
AT zhuhailong rapiddetectionofyunnanxiaomilabasedonlightweightyolov7algorithm