论文中文题名: | 织物表面缺陷无监督检测方法研究与系统实现 |
姓名: | |
学号: | 21207035005 |
保密级别: | 公开 |
论文语种: | chi |
学科代码: | 080902 |
学科名称: | 工学 - 电子科学与技术(可授工学、理学学位) - 电路与系统 |
学生类型: | 硕士 |
学位级别: | 工学硕士 |
学位年度: | 2024 |
培养单位: | 西安科技大学 |
院系: | |
专业: | |
研究方向: | 图像表面缺陷检测 |
第一导师姓名: | |
第一导师单位: | |
论文提交日期: | 2024-06-11 |
论文答辩日期: | 2024-06-04 |
论文外文题名: | Research and System Implementation of Unsupervised Detection Method for Surface Defects on Fabrics |
论文中文关键词: | |
论文外文关键词: | |
论文中文摘要: |
在织物生产中表面缺陷检测是质量控制的关键手段。无监督深度学习重建方法可有效解决织物缺陷样本稀缺、标注成本高昂以及先验知识匮乏等问题。然而目前无监督重建模型在将缺陷图像高质量地重建为无缺陷图像的任务上仍然面临挑战,重建结果存在图像模糊、缺陷残留和纹理不一致等问题。针对以上问题,主要工作如下: (1)提出了一种面向时间步长自适应扩散模型的织物表面图像重建方法,解决了现有模型的重建结果存在图像模糊和缺陷残留的问题。首先构建使用单纯形噪声控制扩散过程的去噪扩散概率模型(Simplex noise-Denoising Diffusion Probabilistic Model, SN-DDPM),通过递归式地优化后验潜在向量分布,使模型逐渐逼近无缺陷样本表面特征的概率分布;其次利用时间步长自适应模块动态调整最佳时间步长,使模型能够灵活适应不同数据分布;最后通过与七种无监督缺陷检测方法对比,SN-DDPM获得最佳重建结果,在结构相似度指标和峰值信噪比指标的平均值上分别提高了0.01和0.16dB。 (2)提出了一种基于频率调谐显著性检测的缺陷分割方法,解决了已有检测方法精度低,存在细小目标难以检出的问题。首先使用SN-DDPM将缺陷图像重建为无缺陷图像;其次通过图像差分、频率调谐显著性检测以及阈值二值化等图像处理手段分割缺陷;最后进行实验并将所提方法与当前应用的七种无监督缺陷检测方法进行对比,实验结果表明:所提方法在F1和IoU的平均值上分别提高了5.42%和7.61%。 (3)提出了一种面向掩码修复模型的织物表面缺陷检测方法,解决了重建结果存在纹理不一致的问题。首先利用以Transformer为架构的掩码修复模型(Mask repair model, MRM)捕获全图的特征关系,引入结构相似度作为约束有效关注织物的纹理特性;然后以SN-DDPM的重建结果作为引导获取目标掩码,使用掩码的方式修复缺陷区域;最后利用基于频率调谐显著性检测的缺陷分割方法分割缺陷。实验结果表明:相比于SN-DDPM,该方法在结构相似度指标和峰值信噪比指标的平均值上分别提高了0.05和3.35dB,在F1和IoU的平均值上分别提高了4.52%和2.35%。 (4)设计并实现了织物表面缺陷无监督检测系统,验证了所提表面缺陷检测方法的有效性。首先对MRM知识蒸馏并优化掩码策略,参数量减少91.30%,平均单张图像检测时间缩短至0.08s;其次将知识蒸馏后的掩码修复模型(Knowledge Distillation- Progressive Mask Repair Model, KD-PMRM)部署至硬件装置,并搭建缺陷管理软件;最后通过实验测试,结果表明:该系统可有效分割缺陷并将缺陷图像上传至管理软件,系统响应平均时间41ms。 综上所述,提出的织物表面缺陷无监督检测方法可以检测未定义缺陷,具有较高的检测精度和较强的泛化能力,能够满足织物表面缺陷检测场景的需求。 |
论文外文摘要: |
Surface defect detection is a key means of quality control in fabric production. Unsupervised deep learning reconstruction methods can effectively solve problems such as scarcity of fabric defect samples, high labeling costs, and lack of prior knowledge. However, currently unsupervised reconstruction models still face challenges in reconstructing defect images into defect free images with high quality, resulting in image blurring, residual defects, and inconsistent textures in the reconstruction results. In response to the above issues, the main tasks are as follows: (1)A fabric surface image reconstruction method oriented to the time-step adaptive diffusion model is proposed, which solves the problems of image blurring and defect residue in the reconstruction results of existing models. Firstly, Simplex Noise -- Denoising Diffusion Probabilistic Model (SN-DDPM) is constructed to gradually approach to the probability distribution of surface features of the defect-free samples through multiple iterative diffusions. Secondly, the timestep adaptive module is utilized to dynamically adjust the optimal timestep, enabling the model to flexibly adapt to different data distributions. Finally, by comparing with seven unsupervised defect detection methods, SN-DDPM obtains the best reconstruction results, which improves the average values of structural similarity index and peak signal-to-noise ratio index by 0.01 and 0.16 dB, respectively. (2)A defect segmentation method based on frequency-tuned saliency detection is proposed to solve the problem of low accuracy of existing detection methods and the existence of fine targets that are difficult to detect. Firstly, the defect image is reconstructed into a defect-free image using SN-DDPM. Secondly, the defects are segmented by image processing means such as image differencing, frequency-tuned saliency detection, and threshold binarization. Finally, experiments are carried out and an exhaustive comparison is made between the proposed method and the seven currently widely used unsupervised defect detection methods, and the results of the experiments show that: the proposed method improves the average value of F1 and IoU by 5.42% and 7.61%, respectively. (3)A fabric surface defect detection method oriented to the mask repair model is proposed to solve the problem of texture inconsistency in the reconstruction results. Firstly, we utilize the Mask repair model (MRM) with Transformer as the architecture to capture the feature relationship of the whole map, and introduce the structural similarity as a constraint to pay attention to the texture characteristics of the fabric effectively. Then we use the reconstruction result of SN-DDPM as a guide to obtain the target mask, and repair the defective region using the mask. Finally, we utilize the defect segmentation method based on frequency tuning and significance detection. Finally, the defect segmentation method based on frequency tuning and significance detection is utilized to segment the defects. The experimental results show that compared with SN-DDPM, this method improves the structural similarity index and peak signal-to-noise ratio index by 0.05 and 3.35 dB on average, and the F1 value and IoU value by 4.52% and 2.35% on average, respectively. (4)An unsupervised inspection system for fabric surface defects is designed and implemented, and the effectiveness of the proposed surface defect detection method is verified. Firstly, the knowledge distillation of MRM and the optimization of masking strategy reduce the amount of parameters by 91.30%, and the average single image detection time is shortened to 0.08s. Secondly, the knowledge distillation- Progressive Mask Repair Model (KD-PMRM) is deployed to the hardware device, and the defect management software is built. Finally, the experimental test shows that the system can effectively segment the defects and upload the defects images to the fabric surface unsupervised detection system. and build the defect management software. Through the experimental test, the results show that the system can effectively segment the defects and upload the defect images to the management software, and the average system response time is 41ms. In summary, the proposed unsupervised method for detecting defects on fabric surfaces demonstrates a notable capacity to identify uncharacterized anomalies with high precision and robust generalization, thereby fulfilling the requisite criteria for fabric surface defect detection applications. |
参考文献: |
[4] 邵家鑫, 都东, 石涵, 等. 基于厚壁工件X射线实时成像的焊缝缺陷自动检测[J]. 清华大学学报(自然科学版), 2013, 53(02): 150-154. [6] 杨海瑞, 谈志杰, 喻虹, 等. 基于单幅散斑的X射线强度关联缺陷检测方法[J]. 光学学报, 2023, 43(10): 301-308. [9] 张翠平, 许小婷. 牙齿无损探伤有限元分析[J]. 医用生物力学, 2023, 38(05):899-904. [10] 武麒阳, 杜红秀, 王聪聪. 自密实混凝土钢管柱超声检测内部缺陷研究[J]. 太原理工大学学报, 2023, 54(06): 1144-1152. [11] 夏庆国. 光电测量的新能源汽车车轮踏面缺陷检测方法[J]. 激光杂志, 2021, 42(05): 161-165. [12] 张静, 叶玉堂, 谢煜, 等. 金属圆柱工件缺陷的光电检测[J]. 光学精密工程, 2014, 22(07): 1871-1876. [13] 王娜, 刘立拓, 宋晓娇, 等. 基于过焦扫描光学显微镜的光学元件亚表面缺陷检测方法[J]. 光学学报, 2023, 43(21): 120-127. [16] 朱刘盅, 李竞择, 吴磊, 等. 基于Gabor滤波器的光纤缺陷检测方法[J]. 南京理工大学学报, 2022, 46(01): 119-126. [17] 仰梓淮, 黄海鸿, 刘贺, 等. 基于颜色直方图的电路板表面缺陷检测[J]. 计算机集成制造系统, 2024, 1(09): 1-15. [25] 蒋尚俊, 易辉, 李红涛, 等. 基于迁移学习与ResNet的太阳电池缺陷检测方法[J]. 太阳能学报, 2023, 44(07): 116-121. [48] Zhang H. Yarn-dyed Fabric Image Dataset Version 1, 2021. http://github.com/ZHW-AI/YDFID-1 [65] 王睿, 齐建鹏, 陈亮, 等. 面向边缘智能的协同推理综述[J]. 计算机研究与发展, 2023, 60(02): 398-414. |
中图分类号: | TP399 |
开放日期: | 2024-06-11 |