Cargando…
Foxtail Millet Ear Detection Method Based on Attention Mechanism and Improved YOLOv5
In the foxtail millet field, due to the dense distribution of the foxtail millet ears, morphological differences among foxtail millet ears, severe shading of stems and leaves, and complex background, it is difficult to identify the foxtail millet ears. To solve these practical problems, this study p...
Autores principales: | , , , , |
---|---|
Formato: | Online Artículo Texto |
Lenguaje: | English |
Publicado: |
MDPI
2022
|
Materias: | |
Acceso en línea: | https://www.ncbi.nlm.nih.gov/pmc/articles/PMC9654136/ https://www.ncbi.nlm.nih.gov/pubmed/36365902 http://dx.doi.org/10.3390/s22218206 |
_version_ | 1784828854991323136 |
---|---|
author | Qiu, Shujin Li, Yun Zhao, Huamin Li, Xiaobin Yuan, Xiangyang |
author_facet | Qiu, Shujin Li, Yun Zhao, Huamin Li, Xiaobin Yuan, Xiangyang |
author_sort | Qiu, Shujin |
collection | PubMed |
description | In the foxtail millet field, due to the dense distribution of the foxtail millet ears, morphological differences among foxtail millet ears, severe shading of stems and leaves, and complex background, it is difficult to identify the foxtail millet ears. To solve these practical problems, this study proposes a lightweight foxtail millet ear detection method based on improved YOLOv5. The improved model proposes to use the GhostNet module to optimize the model structure of the original YOLOv5, which can reduce the model parameters and the amount of calculation. This study adopts an approach that incorporates the Coordinate Attention (CA) mechanism into the model structure and adjusts the loss function to the Efficient Intersection over Union (EIOU) loss function. Experimental results show that these methods can effectively improve the detection effect of occlusion and small-sized foxtail millet ears. The recall, precision, F(1) score, and mean Average Precision (mAP) of the improved model were 97.70%, 93.80%, 95.81%, and 96.60%, respectively, the average detection time per image was 0.0181 s, and the model size was 8.12 MB. Comparing the improved model in this study with three lightweight object detection algorithms: YOLOv3_tiny, YOLOv5-Mobilenetv3small, and YOLOv5-Shufflenetv2, the improved model in this study shows better detection performance. It provides technical support to achieve rapid and accurate identification of multiple foxtail millet ear targets in complex environments in the field, which is important for improving foxtail millet ear yield and thus achieving intelligent detection of foxtail millet. |
format | Online Article Text |
id | pubmed-9654136 |
institution | National Center for Biotechnology Information |
language | English |
publishDate | 2022 |
publisher | MDPI |
record_format | MEDLINE/PubMed |
spelling | pubmed-96541362022-11-15 Foxtail Millet Ear Detection Method Based on Attention Mechanism and Improved YOLOv5 Qiu, Shujin Li, Yun Zhao, Huamin Li, Xiaobin Yuan, Xiangyang Sensors (Basel) Article In the foxtail millet field, due to the dense distribution of the foxtail millet ears, morphological differences among foxtail millet ears, severe shading of stems and leaves, and complex background, it is difficult to identify the foxtail millet ears. To solve these practical problems, this study proposes a lightweight foxtail millet ear detection method based on improved YOLOv5. The improved model proposes to use the GhostNet module to optimize the model structure of the original YOLOv5, which can reduce the model parameters and the amount of calculation. This study adopts an approach that incorporates the Coordinate Attention (CA) mechanism into the model structure and adjusts the loss function to the Efficient Intersection over Union (EIOU) loss function. Experimental results show that these methods can effectively improve the detection effect of occlusion and small-sized foxtail millet ears. The recall, precision, F(1) score, and mean Average Precision (mAP) of the improved model were 97.70%, 93.80%, 95.81%, and 96.60%, respectively, the average detection time per image was 0.0181 s, and the model size was 8.12 MB. Comparing the improved model in this study with three lightweight object detection algorithms: YOLOv3_tiny, YOLOv5-Mobilenetv3small, and YOLOv5-Shufflenetv2, the improved model in this study shows better detection performance. It provides technical support to achieve rapid and accurate identification of multiple foxtail millet ear targets in complex environments in the field, which is important for improving foxtail millet ear yield and thus achieving intelligent detection of foxtail millet. MDPI 2022-10-26 /pmc/articles/PMC9654136/ /pubmed/36365902 http://dx.doi.org/10.3390/s22218206 Text en © 2022 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 Qiu, Shujin Li, Yun Zhao, Huamin Li, Xiaobin Yuan, Xiangyang Foxtail Millet Ear Detection Method Based on Attention Mechanism and Improved YOLOv5 |
title | Foxtail Millet Ear Detection Method Based on Attention Mechanism and Improved YOLOv5 |
title_full | Foxtail Millet Ear Detection Method Based on Attention Mechanism and Improved YOLOv5 |
title_fullStr | Foxtail Millet Ear Detection Method Based on Attention Mechanism and Improved YOLOv5 |
title_full_unstemmed | Foxtail Millet Ear Detection Method Based on Attention Mechanism and Improved YOLOv5 |
title_short | Foxtail Millet Ear Detection Method Based on Attention Mechanism and Improved YOLOv5 |
title_sort | foxtail millet ear detection method based on attention mechanism and improved yolov5 |
topic | Article |
url | https://www.ncbi.nlm.nih.gov/pmc/articles/PMC9654136/ https://www.ncbi.nlm.nih.gov/pubmed/36365902 http://dx.doi.org/10.3390/s22218206 |
work_keys_str_mv | AT qiushujin foxtailmilleteardetectionmethodbasedonattentionmechanismandimprovedyolov5 AT liyun foxtailmilleteardetectionmethodbasedonattentionmechanismandimprovedyolov5 AT zhaohuamin foxtailmilleteardetectionmethodbasedonattentionmechanismandimprovedyolov5 AT lixiaobin foxtailmilleteardetectionmethodbasedonattentionmechanismandimprovedyolov5 AT yuanxiangyang foxtailmilleteardetectionmethodbasedonattentionmechanismandimprovedyolov5 |