An Efficient and Intelligent Detection Method for Fabric Defects based on Improved YOLOv5

被引:26
作者
Lin, Guijuan [1 ]
Liu, Keyu [1 ]
Xia, Xuke [2 ]
Yan, Ruopeng [1 ]
机构
[1] Xiamen Univ Technol, Sch Mech & Automot Engn, Xiamen 361024, Peoples R China
[2] Chinese Acad Sci, Quanzhou Inst Equipment Mfg, Haixi Inst, Jinjiang 362216, Peoples R China
关键词
deep learning; computer vision; fabric detection; Swin Transformer; YOLOv5;
D O I
10.3390/s23010097
中图分类号
O65 [分析化学];
学科分类号
070302 ; 081704 ;
摘要
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.
引用
收藏
页数:16
相关论文
共 39 条
[1]  
Bochkovskiy A., 2020, YOLOv4: Optimal Speed and Accuracy of Object Detection, Vabs/2004.10934, P1
[2]  
Chen J., 2021, P 2021 IEEE INT C IM, P699
[3]   Improved faster R-CNN for fabric defect detection based on Gabor filter with Genetic Algorithm optimization [J].
Chen, Mengqi ;
Yu, Lingjie ;
Zhi, Chao ;
Sun, Runjun ;
Zhu, Shuangwu ;
Gao, Zhongyuan ;
Ke, Zhenxia ;
Zhu, Mengqiu ;
Zhang, Yuming .
COMPUTERS IN INDUSTRY, 2022, 134
[4]   Xception: Deep Learning with Depthwise Separable Convolutions [J].
Chollet, Francois .
30TH IEEE CONFERENCE ON COMPUTER VISION AND PATTERN RECOGNITION (CVPR 2017), 2017, :1800-1807
[5]   Development of a real-time machine vision system for functional textile fabric defect detection using a deep YOLOv4 model [J].
Dlamini, Sifundvolesihle ;
Kao, Chih-Yuan ;
Su, Shun-Lian ;
Jeffrey Kuo, Chung-Feng .
TEXTILE RESEARCH JOURNAL, 2022, 92 (5-6) :675-690
[6]   Rich feature hierarchies for accurate object detection and semantic segmentation [J].
Girshick, Ross ;
Donahue, Jeff ;
Darrell, Trevor ;
Malik, Jitendra .
2014 IEEE CONFERENCE ON COMPUTER VISION AND PATTERN RECOGNITION (CVPR), 2014, :580-587
[7]  
Gustian Dinda Aulia, 2019, 2019 International Seminar on Application for Technology of Information and Communication (iSemantic). Proceedings, P7, DOI 10.1109/ISEMANTIC.2019.8884329
[8]   GhostNet: More Features from Cheap Operations [J].
Han, Kai ;
Wang, Yunhe ;
Tian, Qi ;
Guo, Jianyuan ;
Xu, Chunjing ;
Xu, Chang .
2020 IEEE/CVF CONFERENCE ON COMPUTER VISION AND PATTERN RECOGNITION (CVPR), 2020, :1577-1586
[9]   Spatial Pyramid Pooling in Deep Convolutional Networks for Visual Recognition [J].
He, Kaiming ;
Zhang, Xiangyu ;
Ren, Shaoqing ;
Sun, Jian .
IEEE TRANSACTIONS ON PATTERN ANALYSIS AND MACHINE INTELLIGENCE, 2015, 37 (09) :1904-1916
[10]  
Hu J, 2018, PROC CVPR IEEE, P7132, DOI [10.1109/TPAMI.2019.2913372, 10.1109/CVPR.2018.00745]