Journal of Textile Research ›› 2024, Vol. 45 ›› Issue (10): 89-94.doi: 10.13475/j.fzxb.20230602001

• Textile Engineering • Previous Articles     Next Articles

Fabric defect detection based on improved cross-scene Beetle global search algorithm

LI Yang1, ZHANG Yongchao1,2, PENG Laihu2(), HU Xudong2, YUAN Yanhong2   

  1. 1. School of Automation, Zhejiang Mechanical and Electrical Vocational and Technical College, Hangzhou, Zhejiang 310000, China
    2. Key Laboratory of Modern Textile Machinery & Technology of Zhejiang Province, Zhejiang Sci-Tech University, Hangzhou, Zhejiang 310018, China
  • Received:2023-07-25 Revised:2024-04-29 Online:2024-10-15 Published:2024-10-22
  • Contact: PENG Laihu E-mail:laihup@zstu.edu.cn

Abstract:

Objective Deep learning models have poor generalization performance when faced with cross-scene fabric defect detection, and there is relatively little research on dynamic cross scene transfer methods. Due to the influence of camera type, parameters, environmental lighting and other image acquisition conditions, there are significant differences in the distribution of fabric image data. How to accurately extract target domain data under various imaging conditions and achieve effective detection of fabric defects across scenes is an urgent problem to be solved. To this end, a hybrid algorithm based on the Beetle global search algorithm(BAS) was constructed by adding local search capabilities to the global search capability of BAS to tackle the complexity and diversity in fabric images during fabric defect detection.

Method This research constructed a hybrid algorithm based on the Beetle algorithm by adding local search capabilities to the global search capability of BAS. Gabor filters were used to select the optimal parameters and establish a fabric detection scheme. In order to solve the optimization problem of the Beetle algorithm, local search capability was added to the global search capability of BAS. In order to obtain accurate binarization detection results, the image underwent threshold segmentation based on the use of low-pass filtering to convolution the results again.

Results In order to verify the effectiveness of the BAS model, the method proposed in this paper was compared with the methods in references. It was seen that the accuracy curve of this method was improved fastest and took the shortest time to reach the maximum accuracy, but the loss function curve fluctuated greatly. To verify the accuracy of the proposed method, the T-SNE method was used to visualize the features of fabric defects using the improved BAS method and the methods used in references. The method in this article showed a smaller distance in the embedding space, but the feature similarity extracted from defects and hole defects at the edge of the image was higher. To verify whether the proposed method extracted the features of defects, the Grad CAM method was used to visualize the defect features extracted by the model. The focus of this method was more concentrated within the range of fabric defects, and it was less affected by the background area. This verified that this method could effectively identify defect areas and has good generalization performance for cross-scene fabric defect detection. The optimal Gabor filter was used for fabric defect detection, and the defect detection effect of the proposed algorithm was evaluated in the form of binary images. The results show that the fabric defects detected by this algorithm are clear and accurate.

Conclusion The loss function curve of the method in this paper converge quickly, and the accuracy curve convergence value is high. The space for extracting all defect features of defects is closer, and the distance between each defect is larger. This proves that the features extracted from fabric defects in this paper are classified differently, and are less affected by the background. It verifies that the method in this paper can effectively identify the defect area with good generalization performance for cross-scene fabric defect detection. In practical applications, obtaining fabric images is influenced by lighting and fabric texture, which can affect the applicability of the model across-scenes, such as camera angle, fabric type, and camera parameters. The next step is to conduct research on other influencing factors such as camera angle and fabric type to further improve the model's generalization ability across scenes.

Key words: deep learning, global search algorithm, Gabor filter, fabric defect detection, generalization performance, pattern recognition

CLC Number: 

  • TS181.9

Fig.1

Fabric defect detection process"

Fig.2

Threshold segmentation results.(a)Grayscale image;(b)Segmentation results"

Fig.3

Accuracy and training loss of BAS-GSA model. (a)Verification accuracy;(b)Training loss rate"

Fig.4

Visualization results of different methods. (a)References[6]; (b) References[10];(c) References[12];(d) Feature distribution"

Fig.5

Thermal diagram of feature extraction of fabric defects by different methods. (a) Original image; (b) References[6];(c)References[10]; (d)References[12]; (e) Our method"

Fig.6

Fabric defect detection results. (a) Original image; (b) Detection result"

Tab.1

Algorithm detection effect%"

方法 误检率 特异性 准确率
文献[6] 3.14 97.23 97.68
文献[10] 8.23 88.75 91.35
文献[12] 5.16 95.31 96.12
本文方法 2.81 98.73 99.26
[1] 张星烨. 织物疵点自动检测系统关键技术的研究[D]. 无锡: 江南大学, 2012:4-5.
ZHANG Xingye. Research on key technologies of fabric defect automatic detection system[D] Wuxi: Jiangnan University, 2012:4-5.
[2] 温智婕. 图像纹理特征表示方法研究与应用[D]. 大连: 大连理工大学, 2008:7-8.
WEN Zhijie. Research and application of image texture feature representation method[D]. Dalian: Dalian University of Technology, 2008:7-8.
[3] 王世坤. 基于纹理特征的绝缘子目标识别与跟踪研究[D]. 北京: 华北电力大学, 2010:5-6.
WANG Shikun. Research on insulator target recognition and tracking based on texture features[D]. Beijing: North China Electric Power University, 2010:5-6.
[4] HANBAY K, MUHAMMED T, ÖMER F Ö. Fabric defect detection systems and methods-a systematic literature review[J]. Optik, 2016, 127(24):11960-11973.
[5] CHETVERIKOV D, HANBURY A. Finding defects in texture using regularity and local orientation[J]. Pattern Recognition, 2002, 35(10):2165-2180.
[6] YAPI D, ALLILI M S, BAAZIZ N. Automatic fabric defect detection using learning-based local textural distributions in the contourlet domain[J]. IEEE Transactions on Automation Science and Engineering, 2017, 15(3): 1014-1026.
[7] SERDAROGLU A, ERTUZUN A, ERCIL A. Defect detection in textile fabric images using wavelet transforms and independent compo nent analysis[J]. Pattern Recognition, 2006, 16: 61-64.
[8] JING J, YANG P, LI P. Supervised defect detection on textile fabrics via optimal Gabor flter[J]. Journal of the Textile Institute, 2014, 44(1):40-57.
[9] MINA B, FARAHNAZ M. Inspection of textile fabrics based on the optimal Gabor flter[J]. Signal Image and Video Processing, 2021, 15: 1617-1625.
[10] HU G H. Optimal ring Gabor flter design for texture defect detection using a simulated annealing algorithm[C]//2014 International Conference on Information Science, Electronics and Electrical Engineering. Sapporo:ISEEE, 2014. DOI: 10.1109/InfoSEEE.2014.6947789.
[11] LI Y, LUO H, CONG H, et al. Fabric defect detection algorithm using RDPSO-based optimal Gabor flter[J]. Journal of The Textile Institute, 2019, 110(4): 487-495.
[12] SO Y, KIM J, HWANG H. Fabric defect detection using hybrid particle swarm optimization-gravitational search algorithm and Gabor flter[J]. Journal of the Optical Society of America A, 2020, 37(7): 1229-1235.
[13] CHI R, SU Y, QU Z, et al. A hybridization of cuckoo search and diferential evolution for the logistics distribution center location problem[J]. Mathematical Problems in Engineering, 2019(1):1-16.
[14] VAN DER M L, HINTON G. Visualizing data using tSNE[J]. Journal of Machine Learning Research, 2008, 9(11): 2579-2605.
[15] SELVARAJU R R, COGSWELL M, DAS A, et al. Grad-CAM: visual explanations from deep networks via gradient-based localization[C]// IEEE International Conference on Computer Vision. Venice: IEEE, 2017: 618-626.
[1] LU Yinwen, HOU Jue, YANG Yang, GU Bingfei, ZHANG Hongwei, LIU Zheng. Single dress image video synthesis based on pose embedding and multi-scale attention [J]. Journal of Textile Research, 2024, 45(07): 165-172.
[2] WEN Jiaqi, LI Xinrong, FENG Wenqian, LI Hansen. Rapid extraction of edge contours of printed fabrics [J]. Journal of Textile Research, 2024, 45(05): 165-173.
[3] LU Weijian, TU Jiajia, WANG Junru, HAN Sijie, SHI Weimin. Model for empty bobbin recognition based on improved residual network [J]. Journal of Textile Research, 2024, 45(01): 194-202.
[4] CHI Panpan, MEI Chennan, WANG Yan, XIAO Hong, ZHONG Yueqi. Single soldier camouflage small target detection based on boundary-filling [J]. Journal of Textile Research, 2024, 45(01): 112-119.
[5] YAN Benchao, PAN Ruru, ZHOU Jian, WANG Lei, WANG Xiaohu. Real-time detection of fabric defects based on use of improved Itti salient model [J]. Journal of Textile Research, 2023, 44(07): 95-102.
[6] YANG Hongmai, ZHANG Xiaodong, YAN Ning, ZHU Linlin, LI Na'na. Robustness algorithm for online yarn breakage detection in warp knitting machines [J]. Journal of Textile Research, 2023, 44(05): 139-146.
[7] GU Bingfei, ZHANG Jian, XU Kaiyi, ZHAO Songling, YE Fan, HOU Jue. Human contour and parameter extraction from complex background [J]. Journal of Textile Research, 2023, 44(03): 168-175.
[8] LI Yang, PENG Laihu, LI Jianqiang, LIU Jianting, ZHENG Qiuyang, HU Xudong. Fabric defect detection based on deep-belief network [J]. Journal of Textile Research, 2023, 44(02): 143-150.
[9] WANG Bin, LI Min, LEI Chenglin, HE Ruhan. Research progress in fabric defect detection based on deep learning [J]. Journal of Textile Research, 2023, 44(01): 219-227.
[10] CHEN Jia, YANG Congcong, LIU Junping, HE Ruhan, LIANG Jinxing. Cross-domain generation for transferring hand-drawn sketches to garment images [J]. Journal of Textile Research, 2023, 44(01): 171-178.
[11] AN Yijin, XUE Wenliang, DING Yi, ZHANG Shunlian. Evaluation of textile color rubbing fastness based on image processing [J]. Journal of Textile Research, 2022, 43(12): 131-137.
[12] ZHENG Zhaolun, LU Yujun. Dual-algorithm for fabric defect detection based on singular value decomposition [J]. Journal of Textile Research, 2022, 43(11): 59-67.
[13] CHEN Jinguang, LI Xue, SHAO Jingfeng, MA Lili. Lightweight clothing detection method based on an improved YOLOv5 network [J]. Journal of Textile Research, 2022, 43(10): 155-160.
[14] JIANG Hui, MA Biao. Style similarity algorithm based on clothing style [J]. Journal of Textile Research, 2021, 42(11): 129-136.
[15] YANG Zhengyan, XUE Wenliang, ZHANG Chuanxiong, DING Yi, MA Yanxue. Recommendations for user's bottoms matching based on generative adversarial networks [J]. Journal of Textile Research, 2021, 42(07): 164-168.
Viewed
Full text


Abstract

Cited

  Shared   
  Discussed   
No Suggested Reading articles found!