Cargando…

A New Efficient Multi-Object Detection and Size Calculation for Blended Tobacco Shreds Using an Improved YOLOv7 Network and LWC Algorithm

Detection of the four tobacco shred varieties and the subsequent unbroken tobacco shred rate are the primary tasks in cigarette inspection lines. It is especially critical to identify both single and overlapped tobacco shreds at one time, that is, fast blended tobacco shred detection based on multip...

Descripción completa

Detalles Bibliográficos
Autores principales: Jia, Kunming, Niu, Qunfeng, Wang, Li, Niu, Yang, Ma, Wentao
Formato: Online Artículo Texto
Lenguaje:English
Publicado: MDPI 2023
Materias:
Acceso en línea:https://www.ncbi.nlm.nih.gov/pmc/articles/PMC10610831/
https://www.ncbi.nlm.nih.gov/pubmed/37896474
http://dx.doi.org/10.3390/s23208380
_version_ 1785128349230694400
author Jia, Kunming
Niu, Qunfeng
Wang, Li
Niu, Yang
Ma, Wentao
author_facet Jia, Kunming
Niu, Qunfeng
Wang, Li
Niu, Yang
Ma, Wentao
author_sort Jia, Kunming
collection PubMed
description Detection of the four tobacco shred varieties and the subsequent unbroken tobacco shred rate are the primary tasks in cigarette inspection lines. It is especially critical to identify both single and overlapped tobacco shreds at one time, that is, fast blended tobacco shred detection based on multiple targets. However, it is difficult to classify tiny single tobacco shreds with complex morphological characteristics, not to mention classifying tobacco shreds with 24 types of overlap, posing significant difficulties for machine vision-based blended tobacco shred multi-object detection and unbroken tobacco shred rate calculation tasks. This study focuses on the two challenges of identifying blended tobacco shreds and calculating the unbroken tobacco shred rate. In this paper, a new multi-object detection model is developed for blended tobacco shred images based on an improved YOLOv7-tiny model. YOLOv7-tiny is used as the multi-object detection network’s mainframe. A lightweight Resnet19 is used as the model backbone. The original SPPCSPC and coupled detection head are replaced with a new spatial pyramid SPPFCSPC and a decoupled joint detection head, respectively. An algorithm for two-dimensional size calculation of blended tobacco shreds (LWC) is also proposed, which is applied to blended tobacco shred object detection images to obtain independent tobacco shred objects and calculate the unbroken tobacco shred rate. The experimental results showed that the final detection precision, mAP@.5, mAP@.5:.95, and testing time were 0.883, 0.932, 0.795, and 4.12 ms, respectively. The average length and width detection accuracy of the blended tobacco shred samples were −1.7% and 13.2%, respectively. The model achieved high multi-object detection accuracy and 2D size calculation accuracy, which also conformed to the manual inspection process in the field. This study provides a new efficient implementation method for multi-object detection and size calculation of blended tobacco shreds in cigarette quality inspection lines and a new approach for other similar blended image multi-object detection tasks.
format Online
Article
Text
id pubmed-10610831
institution National Center for Biotechnology Information
language English
publishDate 2023
publisher MDPI
record_format MEDLINE/PubMed
spelling pubmed-106108312023-10-28 A New Efficient Multi-Object Detection and Size Calculation for Blended Tobacco Shreds Using an Improved YOLOv7 Network and LWC Algorithm Jia, Kunming Niu, Qunfeng Wang, Li Niu, Yang Ma, Wentao Sensors (Basel) Article Detection of the four tobacco shred varieties and the subsequent unbroken tobacco shred rate are the primary tasks in cigarette inspection lines. It is especially critical to identify both single and overlapped tobacco shreds at one time, that is, fast blended tobacco shred detection based on multiple targets. However, it is difficult to classify tiny single tobacco shreds with complex morphological characteristics, not to mention classifying tobacco shreds with 24 types of overlap, posing significant difficulties for machine vision-based blended tobacco shred multi-object detection and unbroken tobacco shred rate calculation tasks. This study focuses on the two challenges of identifying blended tobacco shreds and calculating the unbroken tobacco shred rate. In this paper, a new multi-object detection model is developed for blended tobacco shred images based on an improved YOLOv7-tiny model. YOLOv7-tiny is used as the multi-object detection network’s mainframe. A lightweight Resnet19 is used as the model backbone. The original SPPCSPC and coupled detection head are replaced with a new spatial pyramid SPPFCSPC and a decoupled joint detection head, respectively. An algorithm for two-dimensional size calculation of blended tobacco shreds (LWC) is also proposed, which is applied to blended tobacco shred object detection images to obtain independent tobacco shred objects and calculate the unbroken tobacco shred rate. The experimental results showed that the final detection precision, mAP@.5, mAP@.5:.95, and testing time were 0.883, 0.932, 0.795, and 4.12 ms, respectively. The average length and width detection accuracy of the blended tobacco shred samples were −1.7% and 13.2%, respectively. The model achieved high multi-object detection accuracy and 2D size calculation accuracy, which also conformed to the manual inspection process in the field. This study provides a new efficient implementation method for multi-object detection and size calculation of blended tobacco shreds in cigarette quality inspection lines and a new approach for other similar blended image multi-object detection tasks. MDPI 2023-10-11 /pmc/articles/PMC10610831/ /pubmed/37896474 http://dx.doi.org/10.3390/s23208380 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
Jia, Kunming
Niu, Qunfeng
Wang, Li
Niu, Yang
Ma, Wentao
A New Efficient Multi-Object Detection and Size Calculation for Blended Tobacco Shreds Using an Improved YOLOv7 Network and LWC Algorithm
title A New Efficient Multi-Object Detection and Size Calculation for Blended Tobacco Shreds Using an Improved YOLOv7 Network and LWC Algorithm
title_full A New Efficient Multi-Object Detection and Size Calculation for Blended Tobacco Shreds Using an Improved YOLOv7 Network and LWC Algorithm
title_fullStr A New Efficient Multi-Object Detection and Size Calculation for Blended Tobacco Shreds Using an Improved YOLOv7 Network and LWC Algorithm
title_full_unstemmed A New Efficient Multi-Object Detection and Size Calculation for Blended Tobacco Shreds Using an Improved YOLOv7 Network and LWC Algorithm
title_short A New Efficient Multi-Object Detection and Size Calculation for Blended Tobacco Shreds Using an Improved YOLOv7 Network and LWC Algorithm
title_sort new efficient multi-object detection and size calculation for blended tobacco shreds using an improved yolov7 network and lwc algorithm
topic Article
url https://www.ncbi.nlm.nih.gov/pmc/articles/PMC10610831/
https://www.ncbi.nlm.nih.gov/pubmed/37896474
http://dx.doi.org/10.3390/s23208380
work_keys_str_mv AT jiakunming anewefficientmultiobjectdetectionandsizecalculationforblendedtobaccoshredsusinganimprovedyolov7networkandlwcalgorithm
AT niuqunfeng anewefficientmultiobjectdetectionandsizecalculationforblendedtobaccoshredsusinganimprovedyolov7networkandlwcalgorithm
AT wangli anewefficientmultiobjectdetectionandsizecalculationforblendedtobaccoshredsusinganimprovedyolov7networkandlwcalgorithm
AT niuyang anewefficientmultiobjectdetectionandsizecalculationforblendedtobaccoshredsusinganimprovedyolov7networkandlwcalgorithm
AT mawentao anewefficientmultiobjectdetectionandsizecalculationforblendedtobaccoshredsusinganimprovedyolov7networkandlwcalgorithm
AT jiakunming newefficientmultiobjectdetectionandsizecalculationforblendedtobaccoshredsusinganimprovedyolov7networkandlwcalgorithm
AT niuqunfeng newefficientmultiobjectdetectionandsizecalculationforblendedtobaccoshredsusinganimprovedyolov7networkandlwcalgorithm
AT wangli newefficientmultiobjectdetectionandsizecalculationforblendedtobaccoshredsusinganimprovedyolov7networkandlwcalgorithm
AT niuyang newefficientmultiobjectdetectionandsizecalculationforblendedtobaccoshredsusinganimprovedyolov7networkandlwcalgorithm
AT mawentao newefficientmultiobjectdetectionandsizecalculationforblendedtobaccoshredsusinganimprovedyolov7networkandlwcalgorithm