Cargando…
TBC-YOLOv7: a refined YOLOv7-based algorithm for tea bud grading detection
INTRODUCTION: Accurate grading identification of tea buds is a prerequisite for automated tea-picking based on machine vision system. However, current target detection algorithms face challenges in detecting tea bud grades in complex backgrounds. In this paper, an improved YOLOv7 tea bud grading det...
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/PMC10469839/ https://www.ncbi.nlm.nih.gov/pubmed/37662161 http://dx.doi.org/10.3389/fpls.2023.1223410 |
_version_ | 1785099535776743424 |
---|---|
author | Wang, Siyang Wu, Dasheng Zheng, Xinyu |
author_facet | Wang, Siyang Wu, Dasheng Zheng, Xinyu |
author_sort | Wang, Siyang |
collection | PubMed |
description | INTRODUCTION: Accurate grading identification of tea buds is a prerequisite for automated tea-picking based on machine vision system. However, current target detection algorithms face challenges in detecting tea bud grades in complex backgrounds. In this paper, an improved YOLOv7 tea bud grading detection algorithm TBC-YOLOv7 is proposed. METHODS: The TBC-YOLOv7 algorithm incorporates the transformer architecture design in the natural language processing field, integrating the transformer module based on the contextual information in the feature map into the YOLOv7 algorithm, thereby facilitating self-attention learning and enhancing the connection of global feature information. To fuse feature information at different scales, the TBC-YOLOv7 algorithm employs a bidirectional feature pyramid network. In addition, coordinate attention is embedded into the critical positions of the network to suppress useless background details while paying more attention to the prominent features of tea buds. The SIOU loss function is applied as the bounding box loss function to improve the convergence speed of the network. RESULT: The results of the experiments indicate that the TBC-YOLOv7 is effective in all grades of samples in the test set. Specifically, the model achieves a precision of 88.2% and 86.9%, with corresponding recall of 81% and 75.9%. The mean average precision of the model reaches 87.5%, 3.4% higher than the original YOLOv7, with average precision values of up to 90% for one bud with one leaf. Furthermore, the F1 score reaches 0.83. The model’s performance outperforms the YOLOv7 model in terms of the number of parameters. Finally, the results of the model detection exhibit a high degree of correlation with the actual manual annotation results ( [Formula: see text] =0.89), with the root mean square error of 1.54. DISCUSSION: The TBC-YOLOv7 model proposed in this paper exhibits superior performance in vision recognition, indicating that the improved YOLOv7 model fused with transformer-style module can achieve higher grading accuracy on densely growing tea buds, thereby enables the grade detection of tea buds in practical scenarios, providing solution and technical support for automated collection of tea buds and the judging of grades. |
format | Online Article Text |
id | pubmed-10469839 |
institution | National Center for Biotechnology Information |
language | English |
publishDate | 2023 |
publisher | Frontiers Media S.A. |
record_format | MEDLINE/PubMed |
spelling | pubmed-104698392023-09-01 TBC-YOLOv7: a refined YOLOv7-based algorithm for tea bud grading detection Wang, Siyang Wu, Dasheng Zheng, Xinyu Front Plant Sci Plant Science INTRODUCTION: Accurate grading identification of tea buds is a prerequisite for automated tea-picking based on machine vision system. However, current target detection algorithms face challenges in detecting tea bud grades in complex backgrounds. In this paper, an improved YOLOv7 tea bud grading detection algorithm TBC-YOLOv7 is proposed. METHODS: The TBC-YOLOv7 algorithm incorporates the transformer architecture design in the natural language processing field, integrating the transformer module based on the contextual information in the feature map into the YOLOv7 algorithm, thereby facilitating self-attention learning and enhancing the connection of global feature information. To fuse feature information at different scales, the TBC-YOLOv7 algorithm employs a bidirectional feature pyramid network. In addition, coordinate attention is embedded into the critical positions of the network to suppress useless background details while paying more attention to the prominent features of tea buds. The SIOU loss function is applied as the bounding box loss function to improve the convergence speed of the network. RESULT: The results of the experiments indicate that the TBC-YOLOv7 is effective in all grades of samples in the test set. Specifically, the model achieves a precision of 88.2% and 86.9%, with corresponding recall of 81% and 75.9%. The mean average precision of the model reaches 87.5%, 3.4% higher than the original YOLOv7, with average precision values of up to 90% for one bud with one leaf. Furthermore, the F1 score reaches 0.83. The model’s performance outperforms the YOLOv7 model in terms of the number of parameters. Finally, the results of the model detection exhibit a high degree of correlation with the actual manual annotation results ( [Formula: see text] =0.89), with the root mean square error of 1.54. DISCUSSION: The TBC-YOLOv7 model proposed in this paper exhibits superior performance in vision recognition, indicating that the improved YOLOv7 model fused with transformer-style module can achieve higher grading accuracy on densely growing tea buds, thereby enables the grade detection of tea buds in practical scenarios, providing solution and technical support for automated collection of tea buds and the judging of grades. Frontiers Media S.A. 2023-08-17 /pmc/articles/PMC10469839/ /pubmed/37662161 http://dx.doi.org/10.3389/fpls.2023.1223410 Text en Copyright © 2023 Wang, Wu and Zheng 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, Siyang Wu, Dasheng Zheng, Xinyu TBC-YOLOv7: a refined YOLOv7-based algorithm for tea bud grading detection |
title | TBC-YOLOv7: a refined YOLOv7-based algorithm for tea bud grading detection |
title_full | TBC-YOLOv7: a refined YOLOv7-based algorithm for tea bud grading detection |
title_fullStr | TBC-YOLOv7: a refined YOLOv7-based algorithm for tea bud grading detection |
title_full_unstemmed | TBC-YOLOv7: a refined YOLOv7-based algorithm for tea bud grading detection |
title_short | TBC-YOLOv7: a refined YOLOv7-based algorithm for tea bud grading detection |
title_sort | tbc-yolov7: a refined yolov7-based algorithm for tea bud grading detection |
topic | Plant Science |
url | https://www.ncbi.nlm.nih.gov/pmc/articles/PMC10469839/ https://www.ncbi.nlm.nih.gov/pubmed/37662161 http://dx.doi.org/10.3389/fpls.2023.1223410 |
work_keys_str_mv | AT wangsiyang tbcyolov7arefinedyolov7basedalgorithmforteabudgradingdetection AT wudasheng tbcyolov7arefinedyolov7basedalgorithmforteabudgradingdetection AT zhengxinyu tbcyolov7arefinedyolov7basedalgorithmforteabudgradingdetection |