Fabric defect detection algorithm based on improved YOLOv8

Aiming at the problems of low detection accuracy and high leakage rate in traditional detection algorithms, an improved YOLOv8 algorithm is proposed for automatic detection of fabric defects. A swin transformer block was added to the C2f module in the backbone network, which can transfer information...

Ausführliche Beschreibung

Gespeichert in:
Bibliographische Detailangaben
Veröffentlicht in:Textile research journal 2024-07
Hauptverfasser: Chen, Chang, Zhou, Qihong, Li, Shujia, Luo, Dong, Tan, Gaochao
Format: Artikel
Sprache:eng
Online-Zugang:Volltext
Tags: Tag hinzufügen
Keine Tags, Fügen Sie den ersten Tag hinzu!
container_end_page
container_issue
container_start_page
container_title Textile research journal
container_volume
creator Chen, Chang
Zhou, Qihong
Li, Shujia
Luo, Dong
Tan, Gaochao
description Aiming at the problems of low detection accuracy and high leakage rate in traditional detection algorithms, an improved YOLOv8 algorithm is proposed for automatic detection of fabric defects. A swin transformer block was added to the C2f module in the backbone network, which can transfer information between multiple attention layers in parallel to capture fabric defect information and improve the detection accuracy of small-sized defects. To enhance the model’s performance in detecting defects of various sizes, a bidirectional feature pyramid network (BiFPN) was incorporated into the neck. This allows for the assignment of different weights to defect features in different layers. A convolution block attention module (CBAM) was added to the feature fusion layer, enabling the model to automatically increase the weight of essential features and suppress nonessential features during training to solve the problem of leakage detection of small-sized defects due to occlusion and background confusion. The Wise-IoU (WIoU) loss function replaces the conventional loss function, addressing sample imbalance and directing the model to prioritize average-quality samples. This modification contributes to an overall improvement in the model’s performance. The results of the experiment proved that on the self-constructed fabric defect dataset, the algorithm in this paper achieved an accuracy of 97.7%, recall of 95.1%, and mAP of 96.8%, which are 4.4%, 9.4%, and 5.1% higher than those of the YOLOv8 algorithm, respectively. On the AliCloud Tianchi dataset, the algorithm achieves 52.3%, 49.2%, and 49.8% in terms of accuracy, recall, and mAP, respectively, which is an improvement of 4.4% in terms of accuracy, 2.8% in terms of recall, and 2.7% in terms of mAP compared with the baseline algorithm. The improved YOLOv8 algorithm has a high detection accuracy, low leakage rate, and a detection speed of 107.5 FPS, which aligns with the real-time defect detection speed in the industry.
doi_str_mv 10.1177/00405175241261092
format Article
fullrecord <record><control><sourceid>crossref</sourceid><recordid>TN_cdi_crossref_primary_10_1177_00405175241261092</recordid><sourceformat>XML</sourceformat><sourcesystem>PC</sourcesystem><sourcerecordid>10_1177_00405175241261092</sourcerecordid><originalsourceid>FETCH-LOGICAL-c127t-dd254ac92160714f551a040885818fae66c8fcdf14ae65abe44c7dd3f7eedf383</originalsourceid><addsrcrecordid>eNplj81KxDAUhYMoWEcfwF1fIJqbJr133MngqFDoxlnMqqT50crUDkkZ8O1N0Z2r73DP4XAPY7cg7gAQ74VQQgNqqUDWINbyjBWAquaIis5Zsfh8CVyyq5Q-hRBESAV72Jo-DrZ0Png7Z8wZw_RVmsP7FIf5Yyx7k7wr82kYj3E6Zb1vm_ZE1-wimEPyN39csd326W3zwpv2-XXz2HALEmfunNTK2LWEWiCooDWY_AyRJqBgfF1bCtYFUFlr03ulLDpXBfTehYqqFYPfXhunlKIP3TEOo4nfHYhuGd_9G1_9AMkRS-I</addsrcrecordid><sourcetype>Aggregation Database</sourcetype><iscdi>true</iscdi><recordtype>article</recordtype></control><display><type>article</type><title>Fabric defect detection algorithm based on improved YOLOv8</title><source>SAGE Complete A-Z List</source><creator>Chen, Chang ; Zhou, Qihong ; Li, Shujia ; Luo, Dong ; Tan, Gaochao</creator><creatorcontrib>Chen, Chang ; Zhou, Qihong ; Li, Shujia ; Luo, Dong ; Tan, Gaochao</creatorcontrib><description>Aiming at the problems of low detection accuracy and high leakage rate in traditional detection algorithms, an improved YOLOv8 algorithm is proposed for automatic detection of fabric defects. A swin transformer block was added to the C2f module in the backbone network, which can transfer information between multiple attention layers in parallel to capture fabric defect information and improve the detection accuracy of small-sized defects. To enhance the model’s performance in detecting defects of various sizes, a bidirectional feature pyramid network (BiFPN) was incorporated into the neck. This allows for the assignment of different weights to defect features in different layers. A convolution block attention module (CBAM) was added to the feature fusion layer, enabling the model to automatically increase the weight of essential features and suppress nonessential features during training to solve the problem of leakage detection of small-sized defects due to occlusion and background confusion. The Wise-IoU (WIoU) loss function replaces the conventional loss function, addressing sample imbalance and directing the model to prioritize average-quality samples. This modification contributes to an overall improvement in the model’s performance. The results of the experiment proved that on the self-constructed fabric defect dataset, the algorithm in this paper achieved an accuracy of 97.7%, recall of 95.1%, and mAP of 96.8%, which are 4.4%, 9.4%, and 5.1% higher than those of the YOLOv8 algorithm, respectively. On the AliCloud Tianchi dataset, the algorithm achieves 52.3%, 49.2%, and 49.8% in terms of accuracy, recall, and mAP, respectively, which is an improvement of 4.4% in terms of accuracy, 2.8% in terms of recall, and 2.7% in terms of mAP compared with the baseline algorithm. The improved YOLOv8 algorithm has a high detection accuracy, low leakage rate, and a detection speed of 107.5 FPS, which aligns with the real-time defect detection speed in the industry.</description><identifier>ISSN: 0040-5175</identifier><identifier>EISSN: 1746-7748</identifier><identifier>DOI: 10.1177/00405175241261092</identifier><language>eng</language><ispartof>Textile research journal, 2024-07</ispartof><lds50>peer_reviewed</lds50><woscitedreferencessubscribed>false</woscitedreferencessubscribed><cites>FETCH-LOGICAL-c127t-dd254ac92160714f551a040885818fae66c8fcdf14ae65abe44c7dd3f7eedf383</cites><orcidid>0000-0001-7140-7762 ; 0000-0002-5587-8991 ; 0009-0006-8790-8813</orcidid></display><links><openurl>$$Topenurl_article</openurl><openurlfulltext>$$Topenurlfull_article</openurlfulltext><thumbnail>$$Tsyndetics_thumb_exl</thumbnail><link.rule.ids>314,780,784,27923,27924</link.rule.ids></links><search><creatorcontrib>Chen, Chang</creatorcontrib><creatorcontrib>Zhou, Qihong</creatorcontrib><creatorcontrib>Li, Shujia</creatorcontrib><creatorcontrib>Luo, Dong</creatorcontrib><creatorcontrib>Tan, Gaochao</creatorcontrib><title>Fabric defect detection algorithm based on improved YOLOv8</title><title>Textile research journal</title><description>Aiming at the problems of low detection accuracy and high leakage rate in traditional detection algorithms, an improved YOLOv8 algorithm is proposed for automatic detection of fabric defects. A swin transformer block was added to the C2f module in the backbone network, which can transfer information between multiple attention layers in parallel to capture fabric defect information and improve the detection accuracy of small-sized defects. To enhance the model’s performance in detecting defects of various sizes, a bidirectional feature pyramid network (BiFPN) was incorporated into the neck. This allows for the assignment of different weights to defect features in different layers. A convolution block attention module (CBAM) was added to the feature fusion layer, enabling the model to automatically increase the weight of essential features and suppress nonessential features during training to solve the problem of leakage detection of small-sized defects due to occlusion and background confusion. The Wise-IoU (WIoU) loss function replaces the conventional loss function, addressing sample imbalance and directing the model to prioritize average-quality samples. This modification contributes to an overall improvement in the model’s performance. The results of the experiment proved that on the self-constructed fabric defect dataset, the algorithm in this paper achieved an accuracy of 97.7%, recall of 95.1%, and mAP of 96.8%, which are 4.4%, 9.4%, and 5.1% higher than those of the YOLOv8 algorithm, respectively. On the AliCloud Tianchi dataset, the algorithm achieves 52.3%, 49.2%, and 49.8% in terms of accuracy, recall, and mAP, respectively, which is an improvement of 4.4% in terms of accuracy, 2.8% in terms of recall, and 2.7% in terms of mAP compared with the baseline algorithm. The improved YOLOv8 algorithm has a high detection accuracy, low leakage rate, and a detection speed of 107.5 FPS, which aligns with the real-time defect detection speed in the industry.</description><issn>0040-5175</issn><issn>1746-7748</issn><fulltext>true</fulltext><rsrctype>article</rsrctype><creationdate>2024</creationdate><recordtype>article</recordtype><recordid>eNplj81KxDAUhYMoWEcfwF1fIJqbJr133MngqFDoxlnMqqT50crUDkkZ8O1N0Z2r73DP4XAPY7cg7gAQ74VQQgNqqUDWINbyjBWAquaIis5Zsfh8CVyyq5Q-hRBESAV72Jo-DrZ0Png7Z8wZw_RVmsP7FIf5Yyx7k7wr82kYj3E6Zb1vm_ZE1-wimEPyN39csd326W3zwpv2-XXz2HALEmfunNTK2LWEWiCooDWY_AyRJqBgfF1bCtYFUFlr03ulLDpXBfTehYqqFYPfXhunlKIP3TEOo4nfHYhuGd_9G1_9AMkRS-I</recordid><startdate>20240725</startdate><enddate>20240725</enddate><creator>Chen, Chang</creator><creator>Zhou, Qihong</creator><creator>Li, Shujia</creator><creator>Luo, Dong</creator><creator>Tan, Gaochao</creator><scope>AAYXX</scope><scope>CITATION</scope><orcidid>https://orcid.org/0000-0001-7140-7762</orcidid><orcidid>https://orcid.org/0000-0002-5587-8991</orcidid><orcidid>https://orcid.org/0009-0006-8790-8813</orcidid></search><sort><creationdate>20240725</creationdate><title>Fabric defect detection algorithm based on improved YOLOv8</title><author>Chen, Chang ; Zhou, Qihong ; Li, Shujia ; Luo, Dong ; Tan, Gaochao</author></sort><facets><frbrtype>5</frbrtype><frbrgroupid>cdi_FETCH-LOGICAL-c127t-dd254ac92160714f551a040885818fae66c8fcdf14ae65abe44c7dd3f7eedf383</frbrgroupid><rsrctype>articles</rsrctype><prefilter>articles</prefilter><language>eng</language><creationdate>2024</creationdate><toplevel>peer_reviewed</toplevel><toplevel>online_resources</toplevel><creatorcontrib>Chen, Chang</creatorcontrib><creatorcontrib>Zhou, Qihong</creatorcontrib><creatorcontrib>Li, Shujia</creatorcontrib><creatorcontrib>Luo, Dong</creatorcontrib><creatorcontrib>Tan, Gaochao</creatorcontrib><collection>CrossRef</collection><jtitle>Textile research journal</jtitle></facets><delivery><delcategory>Remote Search Resource</delcategory><fulltext>fulltext</fulltext></delivery><addata><au>Chen, Chang</au><au>Zhou, Qihong</au><au>Li, Shujia</au><au>Luo, Dong</au><au>Tan, Gaochao</au><format>journal</format><genre>article</genre><ristype>JOUR</ristype><atitle>Fabric defect detection algorithm based on improved YOLOv8</atitle><jtitle>Textile research journal</jtitle><date>2024-07-25</date><risdate>2024</risdate><issn>0040-5175</issn><eissn>1746-7748</eissn><abstract>Aiming at the problems of low detection accuracy and high leakage rate in traditional detection algorithms, an improved YOLOv8 algorithm is proposed for automatic detection of fabric defects. A swin transformer block was added to the C2f module in the backbone network, which can transfer information between multiple attention layers in parallel to capture fabric defect information and improve the detection accuracy of small-sized defects. To enhance the model’s performance in detecting defects of various sizes, a bidirectional feature pyramid network (BiFPN) was incorporated into the neck. This allows for the assignment of different weights to defect features in different layers. A convolution block attention module (CBAM) was added to the feature fusion layer, enabling the model to automatically increase the weight of essential features and suppress nonessential features during training to solve the problem of leakage detection of small-sized defects due to occlusion and background confusion. The Wise-IoU (WIoU) loss function replaces the conventional loss function, addressing sample imbalance and directing the model to prioritize average-quality samples. This modification contributes to an overall improvement in the model’s performance. The results of the experiment proved that on the self-constructed fabric defect dataset, the algorithm in this paper achieved an accuracy of 97.7%, recall of 95.1%, and mAP of 96.8%, which are 4.4%, 9.4%, and 5.1% higher than those of the YOLOv8 algorithm, respectively. On the AliCloud Tianchi dataset, the algorithm achieves 52.3%, 49.2%, and 49.8% in terms of accuracy, recall, and mAP, respectively, which is an improvement of 4.4% in terms of accuracy, 2.8% in terms of recall, and 2.7% in terms of mAP compared with the baseline algorithm. The improved YOLOv8 algorithm has a high detection accuracy, low leakage rate, and a detection speed of 107.5 FPS, which aligns with the real-time defect detection speed in the industry.</abstract><doi>10.1177/00405175241261092</doi><orcidid>https://orcid.org/0000-0001-7140-7762</orcidid><orcidid>https://orcid.org/0000-0002-5587-8991</orcidid><orcidid>https://orcid.org/0009-0006-8790-8813</orcidid></addata></record>
fulltext fulltext
identifier ISSN: 0040-5175
ispartof Textile research journal, 2024-07
issn 0040-5175
1746-7748
language eng
recordid cdi_crossref_primary_10_1177_00405175241261092
source SAGE Complete A-Z List
title Fabric defect detection algorithm based on improved YOLOv8
url https://sfx.bib-bvb.de/sfx_tum?ctx_ver=Z39.88-2004&ctx_enc=info:ofi/enc:UTF-8&ctx_tim=2025-01-12T01%3A32%3A23IST&url_ver=Z39.88-2004&url_ctx_fmt=infofi/fmt:kev:mtx:ctx&rfr_id=info:sid/primo.exlibrisgroup.com:primo3-Article-crossref&rft_val_fmt=info:ofi/fmt:kev:mtx:journal&rft.genre=article&rft.atitle=Fabric%20defect%20detection%20algorithm%20based%20on%20improved%20YOLOv8&rft.jtitle=Textile%20research%20journal&rft.au=Chen,%20Chang&rft.date=2024-07-25&rft.issn=0040-5175&rft.eissn=1746-7748&rft_id=info:doi/10.1177/00405175241261092&rft_dat=%3Ccrossref%3E10_1177_00405175241261092%3C/crossref%3E%3Curl%3E%3C/url%3E&disable_directlink=true&sfx.directlink=off&sfx.report_link=0&rft_id=info:oai/&rft_id=info:pmid/&rfr_iscdi=true