Cargando…
An improved YOLOv5s model using feature concatenation with attention mechanism for real-time fruit detection and counting
An improved YOLOv5s model was proposed and validated on a new fruit dataset to solve the real-time detection task in a complex environment. With the incorporation of feature concatenation and an attention mechanism into the original YOLOv5s network, the improved YOLOv5s recorded 122 layers, 4.4 × 10...
Autores principales: | , , |
---|---|
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/PMC10332635/ https://www.ncbi.nlm.nih.gov/pubmed/37434602 http://dx.doi.org/10.3389/fpls.2023.1153505 |
_version_ | 1785070477818986496 |
---|---|
author | Lawal, Olarewaju Mubashiru Zhu, Shengyan Cheng, Kui |
author_facet | Lawal, Olarewaju Mubashiru Zhu, Shengyan Cheng, Kui |
author_sort | Lawal, Olarewaju Mubashiru |
collection | PubMed |
description | An improved YOLOv5s model was proposed and validated on a new fruit dataset to solve the real-time detection task in a complex environment. With the incorporation of feature concatenation and an attention mechanism into the original YOLOv5s network, the improved YOLOv5s recorded 122 layers, 4.4 × 10(6) params, 12.8 GFLOPs, and 8.8 MB weight size, which are 45.5%, 30.2%, 14.1%, and 31.3% smaller than the original YOLOv5s, respectively. Meanwhile, the obtained 93.4% of mAP tested on the valid set, 96.0% of mAP tested on the test set, and 74 fps of speed tested on videos using improved YOLOv5s is 0.6%, 0.5%, and 10.4% higher than the original YOLOv5s model, respectively. Using videos, the fruit tracking and counting tested on the improved YOLOv5s observed less missed and incorrect detections compared to the original YOLOv5s. Furthermore, the aggregated detection performance of improved YOLOv5s outperformed the network of GhostYOLOv5s, YOLOv4-tiny, and YOLOv7-tiny, including other mainstream YOLO variants. Therefore, the improved YOLOv5s is lightweight with reduced computation costs, can better generalize against complex conditions, and is applicable for real-time detection in fruit picking robots and low-power devices. |
format | Online Article Text |
id | pubmed-10332635 |
institution | National Center for Biotechnology Information |
language | English |
publishDate | 2023 |
publisher | Frontiers Media S.A. |
record_format | MEDLINE/PubMed |
spelling | pubmed-103326352023-07-11 An improved YOLOv5s model using feature concatenation with attention mechanism for real-time fruit detection and counting Lawal, Olarewaju Mubashiru Zhu, Shengyan Cheng, Kui Front Plant Sci Plant Science An improved YOLOv5s model was proposed and validated on a new fruit dataset to solve the real-time detection task in a complex environment. With the incorporation of feature concatenation and an attention mechanism into the original YOLOv5s network, the improved YOLOv5s recorded 122 layers, 4.4 × 10(6) params, 12.8 GFLOPs, and 8.8 MB weight size, which are 45.5%, 30.2%, 14.1%, and 31.3% smaller than the original YOLOv5s, respectively. Meanwhile, the obtained 93.4% of mAP tested on the valid set, 96.0% of mAP tested on the test set, and 74 fps of speed tested on videos using improved YOLOv5s is 0.6%, 0.5%, and 10.4% higher than the original YOLOv5s model, respectively. Using videos, the fruit tracking and counting tested on the improved YOLOv5s observed less missed and incorrect detections compared to the original YOLOv5s. Furthermore, the aggregated detection performance of improved YOLOv5s outperformed the network of GhostYOLOv5s, YOLOv4-tiny, and YOLOv7-tiny, including other mainstream YOLO variants. Therefore, the improved YOLOv5s is lightweight with reduced computation costs, can better generalize against complex conditions, and is applicable for real-time detection in fruit picking robots and low-power devices. Frontiers Media S.A. 2023-06-26 /pmc/articles/PMC10332635/ /pubmed/37434602 http://dx.doi.org/10.3389/fpls.2023.1153505 Text en Copyright © 2023 Lawal, Zhu and Cheng 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 Lawal, Olarewaju Mubashiru Zhu, Shengyan Cheng, Kui An improved YOLOv5s model using feature concatenation with attention mechanism for real-time fruit detection and counting |
title | An improved YOLOv5s model using feature concatenation with attention mechanism for real-time fruit detection and counting |
title_full | An improved YOLOv5s model using feature concatenation with attention mechanism for real-time fruit detection and counting |
title_fullStr | An improved YOLOv5s model using feature concatenation with attention mechanism for real-time fruit detection and counting |
title_full_unstemmed | An improved YOLOv5s model using feature concatenation with attention mechanism for real-time fruit detection and counting |
title_short | An improved YOLOv5s model using feature concatenation with attention mechanism for real-time fruit detection and counting |
title_sort | improved yolov5s model using feature concatenation with attention mechanism for real-time fruit detection and counting |
topic | Plant Science |
url | https://www.ncbi.nlm.nih.gov/pmc/articles/PMC10332635/ https://www.ncbi.nlm.nih.gov/pubmed/37434602 http://dx.doi.org/10.3389/fpls.2023.1153505 |
work_keys_str_mv | AT lawalolarewajumubashiru animprovedyolov5smodelusingfeatureconcatenationwithattentionmechanismforrealtimefruitdetectionandcounting AT zhushengyan animprovedyolov5smodelusingfeatureconcatenationwithattentionmechanismforrealtimefruitdetectionandcounting AT chengkui animprovedyolov5smodelusingfeatureconcatenationwithattentionmechanismforrealtimefruitdetectionandcounting AT lawalolarewajumubashiru improvedyolov5smodelusingfeatureconcatenationwithattentionmechanismforrealtimefruitdetectionandcounting AT zhushengyan improvedyolov5smodelusingfeatureconcatenationwithattentionmechanismforrealtimefruitdetectionandcounting AT chengkui improvedyolov5smodelusingfeatureconcatenationwithattentionmechanismforrealtimefruitdetectionandcounting |