Cargando…
An Efficient and Intelligent Detection Method for Fabric Defects based on Improved YOLOv5
Limited by computing resources of embedded devices, there are problems in the field of fabric defect detection, including small defect size, extremely unbalanced aspect ratio of defect size, and slow detection speed. To address these problems, a sliding window multihead self-attention mechanism is 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/PMC9824629/ https://www.ncbi.nlm.nih.gov/pubmed/36616696 http://dx.doi.org/10.3390/s23010097 |
_version_ | 1784866457150029824 |
---|---|
author | Lin, Guijuan Liu, Keyu Xia, Xuke Yan, Ruopeng |
author_facet | Lin, Guijuan Liu, Keyu Xia, Xuke Yan, Ruopeng |
author_sort | Lin, Guijuan |
collection | PubMed |
description | Limited by computing resources of embedded devices, there are problems in the field of fabric defect detection, including small defect size, extremely unbalanced aspect ratio of defect size, and slow detection speed. To address these problems, a sliding window multihead self-attention mechanism is proposed for the detection of small targets, and the Swin Transformer module is introduced to replace the main module in the original YOLOv5 algorithm. First, to reduce the distance between several scales, the weighted bidirectional feature network is employed on embedded devices. In addition, it is helpful to improve the perception of small-target faults by incorporating a detection layer to achieve four-scale detection. At last, to improve the learning of positive sample instances and lower the missed detection rate, the generalized focal loss function is finally implemented on YOLOv5. Experimental results show that the accuracy of the improved algorithm on the fabric dataset reaches 85.6%, and the mAP is increased by 4.2% to 76.5%, which meets the requirements for real-time detection on embedded devices. |
format | Online Article Text |
id | pubmed-9824629 |
institution | National Center for Biotechnology Information |
language | English |
publishDate | 2022 |
publisher | MDPI |
record_format | MEDLINE/PubMed |
spelling | pubmed-98246292023-01-08 An Efficient and Intelligent Detection Method for Fabric Defects based on Improved YOLOv5 Lin, Guijuan Liu, Keyu Xia, Xuke Yan, Ruopeng Sensors (Basel) Article Limited by computing resources of embedded devices, there are problems in the field of fabric defect detection, including small defect size, extremely unbalanced aspect ratio of defect size, and slow detection speed. To address these problems, a sliding window multihead self-attention mechanism is proposed for the detection of small targets, and the Swin Transformer module is introduced to replace the main module in the original YOLOv5 algorithm. First, to reduce the distance between several scales, the weighted bidirectional feature network is employed on embedded devices. In addition, it is helpful to improve the perception of small-target faults by incorporating a detection layer to achieve four-scale detection. At last, to improve the learning of positive sample instances and lower the missed detection rate, the generalized focal loss function is finally implemented on YOLOv5. Experimental results show that the accuracy of the improved algorithm on the fabric dataset reaches 85.6%, and the mAP is increased by 4.2% to 76.5%, which meets the requirements for real-time detection on embedded devices. MDPI 2022-12-22 /pmc/articles/PMC9824629/ /pubmed/36616696 http://dx.doi.org/10.3390/s23010097 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 Lin, Guijuan Liu, Keyu Xia, Xuke Yan, Ruopeng An Efficient and Intelligent Detection Method for Fabric Defects based on Improved YOLOv5 |
title | An Efficient and Intelligent Detection Method for Fabric Defects based on Improved YOLOv5 |
title_full | An Efficient and Intelligent Detection Method for Fabric Defects based on Improved YOLOv5 |
title_fullStr | An Efficient and Intelligent Detection Method for Fabric Defects based on Improved YOLOv5 |
title_full_unstemmed | An Efficient and Intelligent Detection Method for Fabric Defects based on Improved YOLOv5 |
title_short | An Efficient and Intelligent Detection Method for Fabric Defects based on Improved YOLOv5 |
title_sort | efficient and intelligent detection method for fabric defects based on improved yolov5 |
topic | Article |
url | https://www.ncbi.nlm.nih.gov/pmc/articles/PMC9824629/ https://www.ncbi.nlm.nih.gov/pubmed/36616696 http://dx.doi.org/10.3390/s23010097 |
work_keys_str_mv | AT linguijuan anefficientandintelligentdetectionmethodforfabricdefectsbasedonimprovedyolov5 AT liukeyu anefficientandintelligentdetectionmethodforfabricdefectsbasedonimprovedyolov5 AT xiaxuke anefficientandintelligentdetectionmethodforfabricdefectsbasedonimprovedyolov5 AT yanruopeng anefficientandintelligentdetectionmethodforfabricdefectsbasedonimprovedyolov5 AT linguijuan efficientandintelligentdetectionmethodforfabricdefectsbasedonimprovedyolov5 AT liukeyu efficientandintelligentdetectionmethodforfabricdefectsbasedonimprovedyolov5 AT xiaxuke efficientandintelligentdetectionmethodforfabricdefectsbasedonimprovedyolov5 AT yanruopeng efficientandintelligentdetectionmethodforfabricdefectsbasedonimprovedyolov5 |