Color-patterned fabric defect detection based on the improved YOLOv5s model
Source abstract
Abstract
The complex background pattern of color-patterned fabrics, the small target of some defects, the difficulty separating them from the background, and the extreme aspect ratio present challenges for their automated, real-time detection. To solve the above problems, the YOLOv5s-based color-patterned fabric defect detection algorithm was proposed by combining lightweight modules. For the small target defects of color-patterned fabrics, coordinate attention was introduced in the feature extraction part to guide the model to focus entirely on the target defect area and suppress the background noise of color-patterned fabrics. Meanwhile, the bidirectional feature pyramid network was introduced in the feature fusion part to give different fusion weights to the extracted feature maps, improve the efficiency of feature fusion, and guide the model further to distinguish the fabric defects from the color-patterned background. Finally, the k-means algorithm was used to generate anchor boxes for the extreme aspect ratio of fabric defects to improve the training efficiency and accuracy of the model. Self-built datasets were experimented with to verify the improved model’s detection effect. The results show that the improved YOLOv5s model can reach 87.7% and 0.881 in mean average precision and F1 score, which are 2.3% and 0.02 better than the original model, respectively. The detection speed of the improved YOLOv5s model reached 60.24 frames per second (GPU 1660). After deployment on the fabric defect detection platform, the speed of detecting color-patterned fabrics can reach 15 m/min.
Source: crossref · Quality: baseline
Research context
OpenAlex topics: Industrial Vision Systems and Defect Detection · Visual Attention and Saliency Detection · Advanced Neural Network Applications
SciVX discovery tags are terminology-based. OpenAlex topics are source-provided classifications.
Affiliations
College of Mechanical Engineering, Donghua University, China
Funding
National Key Research and Development Project
References (25)
Show source-provided references
1. Jin R · Math Problems Engng · 2021 · 2021 · 7321394
2. 10.1080/0040500920863121710.1080/00405009208631217 ↗
3. 10.1177/0040517521106008410.1177/00405175211060084 ↗
4. 10.1177/1558925021100834610.1177/15589250211008346 ↗
5. Li C · Security Commun Networks · 2021 · 2021 · 1
6. 10.1111/coin.1220610.1111/coin.12206 ↗
7. 10.1016/j.ins.2020.08.10010.1016/j.ins.2020.08.100 ↗
8. 10.1080/00405000.2014.92979010.1080/00405000.2014.929790 ↗
9. 10.1177/152808371349000210.1177/1528083713490002 ↗
10. 10.1177/155892502090826810.1177/1558925020908268 ↗
11. 10.1016/j.dsp.2022.10351410.1016/j.dsp.2022.103514 ↗
12. 10.1109/AI4I49448.2020.0001810.1109/AI4I49448.2020.00018 ↗
13. An J · Packag Eng · 2021 · 42 · 246
14. 10.1109/CVPR.2018.0074510.1109/CVPR.2018.00745 ↗
15. 10.1007/978-3-030-01234-2_110.1007/978-3-030-01234-2_1 ↗
16. 10.14504/ajr.8.S1.2210.14504/ajr.8.S1.22 ↗
17. Yue X · Appl Sci-Basel · 2022 · 12 · 16
18. 10.1108/IJCST-11-2021-016510.1108/IJCST-11-2021-0165 ↗
19. Lin TY, Maire M, Belongie S, et al. Microsoft COCO: Common Objects in Context. In: 13th European Conference on Computer Vision (ECCV). Zurich, Switzerland, 6–12 September 2014, Computer vision – ECCV, 2014, part V, pp. 740–755.10.1007/978-3-319-10602-1_48 ↗
20. 10.1007/978-3-030-87355-4_2210.1007/978-3-030-87355-4_22 ↗
21. 10.1109/CVPR46437.2021.0135010.1109/CVPR46437.2021.01350 ↗
22. Tan M, Pang R, Le QV. EfficientDet: Scalable and efficient object detection. In: 2020 IEEE/CVF Conference on Computer Vision and Pattern Recognition, CVPR 2020, 14–19 June 2020, Virtual, Online, United States, 2020, pp. 10778–10787. IEEE Computer Society.10.1109/CVPR42600.2020.01079 ↗
23. Guangdong Industrial Intelligent Manufacturing Innovation Competition [Competition 1]. Tianchi Competition – Ali Cloud Tianchi . 2019. See https://tianchi.aliyun.com/competition/entrance/231748/information (accessed 23 May 2023).
24. Bochkovskiy A · arXiv preprint arXiv: 200410934 · 2020
25. 10.1177/0040517522111147710.1177/00405175221111477 ↗