纺织学报 ›› 2024, Vol. 45 ›› Issue (10): 89-94.doi: 10.13475/j.fzxb.20230602001

• 纺织工程 • 上一篇    下一篇

基于改进甲壳虫全域搜索算法的机织物疵点检测

李杨1, 张永超1,2, 彭来湖2(), 胡旭东2, 袁嫣红2   

  1. 1.浙江机电职业技术大学 自动化学院, 浙江 杭州 310000
    2.浙江理工大学 浙江省现代纺织装备技术重点实验室, 浙江 杭州 310018
  • 收稿日期:2023-07-25 修回日期:2024-04-29 出版日期:2024-10-15 发布日期:2024-10-22
  • 通讯作者: 彭来湖(1980—),男,教授,博士。主要研究方向为针织装备控制技术。E-mail:laihup@zstu.edu.cn
  • 作者简介:李杨(1994—),男,博士。主要研究方向为纺织装备自动化。
  • 基金资助:
    浙江省“尖兵”计划项目(2022C0065)

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 Published:2024-10-15 Online:2024-10-22

摘要:

为解决深度学习模型在面对跨场景的织物疵点检测时存在泛化性能差的问题,在甲壳虫全域搜索算法(BAS)的基础上添加了本地搜索能力构建了一种基于甲壳虫算法的混合算法,该算法可具体分为训练阶段和检测阶段。在训练阶段,通过对无疵点织物进行训练构建二维Gabor滤波器,然后使用改进BAS的混合模型对Gabor滤波器的参数进行了优化,使改进后的算法具备全局搜索和局部搜索的能力;在检测阶段,根据在训练阶段获得最佳参数构造Gabor滤波器,对待检测的织物图像进行卷积运算,并对卷积后图像进行二值化处理,最终识别待测试织物是否含有疵点。实验结果表明:该方法的特征提取具有良好的类别区分性,更加集中在疵点范围内,检测准确率可达99.26%,具有良好的稳定性和泛化性能。

关键词: 深度学习, 全域搜索算法, Gabor滤波器, 织物疵点检测, 泛化性能, 图像识别

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

中图分类号: 

  • TS181.9

图1

织物疵点检测流程"

图2

阈值分割结果"

图3

BAS-GSA模型的准确率与训练损失"

图4

不同方法特征可视化结果 注:x、y为共同轴。"

图5

不同方法对织物疵点提取特征热力图"

图6

织物疵点检测结果"

表1

算法检测效果"

方法 误检率 特异性 准确率
文献[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] 陆寅雯, 侯珏, 杨阳, 顾冰菲, 张宏伟, 刘正. 基于姿态嵌入机制和多尺度注意力的单张着装图像视频合成[J]. 纺织学报, 2024, 45(07): 165-172.
[2] 文嘉琪, 李新荣, 冯文倩, 李瀚森. 印花面料的边缘轮廓快速提取方法[J]. 纺织学报, 2024, 45(05): 165-173.
[3] 胡旭东, 汤炜, 曾志发, 汝欣, 彭来湖, 李建强, 王博平. 基于轻量化卷积神经网络的纬编针织物组织结构分类[J]. 纺织学报, 2024, 45(05): 60-69.
[4] 陆伟健, 屠佳佳, 王俊茹, 韩思捷, 史伟民. 基于改进残差网络的空纱筒识别模型[J]. 纺织学报, 2024, 45(01): 194-202.
[5] 池盼盼, 梅琛楠, 王焰, 肖红, 钟跃崎. 基于边缘填充的单兵迷彩伪装小目标检测[J]. 纺织学报, 2024, 45(01): 112-119.
[6] 杨宏脉, 张效栋, 闫宁, 朱琳琳, 李娜娜. 一种高鲁棒性经编机上断纱在线检测算法[J]. 纺织学报, 2023, 44(05): 139-146.
[7] 顾冰菲, 张健, 徐凯忆, 赵崧灵, 叶凡, 侯珏. 复杂背景下人体轮廓及其参数提取[J]. 纺织学报, 2023, 44(03): 168-175.
[8] 李杨, 彭来湖, 李建强, 刘建廷, 郑秋扬, 胡旭东. 基于深度信念网络的织物疵点检测[J]. 纺织学报, 2023, 44(02): 143-150.
[9] 王斌, 李敏, 雷承霖, 何儒汉. 基于深度学习的织物疵点检测研究进展[J]. 纺织学报, 2023, 44(01): 219-227.
[10] 陈佳, 杨聪聪, 刘军平, 何儒汉, 梁金星. 手绘草图到服装图像的跨域生成[J]. 纺织学报, 2023, 44(01): 171-178.
[11] 安亦锦, 薛文良, 丁亦, 张顺连. 基于图像处理的纺织品耐摩擦色牢度评级[J]. 纺织学报, 2022, 43(12): 131-137.
[12] 陈金广, 李雪, 邵景峰, 马丽丽. 改进YOLOv5网络的轻量级服装目标检测方法[J]. 纺织学报, 2022, 43(10): 155-160.
[13] 孙春红, 丁广太, 方坤. 基于稀疏字典学习的羊绒与羊毛分类[J]. 纺织学报, 2022, 43(04): 28-32.
[14] 刘国维, 潘如如, 高卫东, 周建. 基于总变差的织物疵点分割方法[J]. 纺织学报, 2021, 42(11): 64-70.
[15] 江慧, 马彪. 基于服装风格的款式相似度算法[J]. 纺织学报, 2021, 42(11): 129-136.
Viewed
Full text


Abstract

Cited

  Shared   
  Discussed   
No Suggested Reading articles found!