论文中文题名: | 铝型材表面异常自监督检测方法研究与系统实现 |
姓名: | |
学号: | 19207040027 |
保密级别: | 公开 |
论文语种: | chi |
学科代码: | 081001 |
学科名称: | 工学 - 信息与通信工程 - 通信与信息系统 |
学生类型: | 硕士 |
学位级别: | 工程硕士 |
学位年度: | 2024 |
培养单位: | 西安科技大学 |
院系: | |
专业: | |
研究方向: | 图像表面异常检测 |
第一导师姓名: | |
第一导师单位: | |
论文提交日期: | 2024-06-11 |
论文答辩日期: | 2024-05-29 |
论文外文题名: | Research and system implementation of self-supervised detection method for aluminum profile surface anomaly |
论文中文关键词: | |
论文外文关键词: | Aluminum profile ; Surface anomaly detection ; Self-supervision ; Complex texturing |
论文中文摘要: |
铝型材是重要的工业基础材料,其表面异常检测是保证产品质量的必要环节。目前表面异常检测方法存在图像背景复杂、主体姿态不统一、纹理分布随机、异常样本数量少、异常类型不确定以及现有重构模型无法生成高质量正常特征图像等问题。针对以上问题,主要工作如下: 提出了一种基于自适应位置编码的分割一切模型(Segmented Everything Model with Adaptive Position Encoding, SAM-APE)的铝型材数据预处理方法,解决了图像背景复杂、主体姿态不统一、纹理分布随机为表面异常检测带来强烈干扰的问题。首先利用单通道提取、二值化、SAM-APE、Sobel算子边缘检测等方法对铝型材主体部位进行目标定位,得到一个最终掩码(Final Mask, F-Mask),利用该掩码替换掉原始图像中的复杂背景部分;然后利用图像的几何运算技术,对图像进行自适应旋转、裁剪操作,提取出铝型材主体部位;最后通过全变分正则化图像去噪的方法去除了铝型材表面欠规则分布的纹理干扰,减少冗余数据。 (2)提出了一种采用傅里叶卷积图像修复模型(Fourier Convolutional Image Restoration Model, FCIRM)的铝型材表面异常检测方法,解决了异常样本数量少、异常类型不确定的问题,并且引入傅里叶卷积,使得模型在网络浅层具有全局感受野,提高了图像修复的质量。首先建立了FCIRM,有效提取出正常的图像特征;然后通过对区域特征图和对应修复图像结构相似性值比对,判断输入图像表面是否为存在异常;最后和现有流行的有监督检测方法对比,实验结果表明:在阿里云天池大赛铝型材数据集上的精确率达96.4%,F1值至少提升了10.3%。 (3)提出了一种采用多头注意力图像修复模型(Multiple Attention Image Restoration Model, MAIRM)的铝型材表面异常检测方法,解决了现有重构模型无法生成高质量正常特征图像的问题。首先建立了MAIRM,并利用通过基于SAM-APE的数据预处理方法得到的铝型材无异常图像对其进行训练,采用多头注意力提高模型对铝型材全局有效数据特征的关注度,使模型能够更准确地提取铝型材表面有效特征;然后利用训练好的MAIRM对区域特征图进行重构,并对重构前后的图像进行结构相似性比对;最后进行了实验,并和几种常见基于重构模型提出的表面异常检测方法进行了对比,结果表明:所提方法精确率和F1值分别达97.6%和96.7%。 (4)设计并实现了铝型材表面异常检测实验系统,验证了所提表面异常检测方法的有效性。利用构建的表面异常检测模型实现了铝型材的自动检测功能,并对表面异常检测功能进行了测试。 综上所述,提出的铝型材表面异常自监督检测方法能够准确检测铝型材表面是否存在异常,具有较高的检测精度,能够满足铝型材表面异常检测的要求。 |
论文外文摘要: |
Aluminum profiles are crucial industrial base materials, and surface anomaly detection is essential to ensure product quality. Current methods for surface anomaly detection face challenges such as complex image backgrounds, inconsistent object postures, random texture distributions, limited anomaly samples, uncertain anomaly types, and the inability of existing reconstruction models to generate high-quality normal feature images. To address these issues, the primary work includes the following: A method of aluminum profile surface anomaly detection using Fourier Convolutional Image Restoration Model (FCIRM) is proposed, which solves the problems of small number of anomaly samples and uncertainty of anomaly type, and introduces Fourier convolution, which makes the model have a global sensing field in the shallow layer of the network, and The quality of image restoration is improved. Firstly, FCIRM is established to effectively extract normal image features; then, by comparing the similarity value of the regional feature map and the corresponding restored image structure, we determine whether the input image surface is the presence of anomalies; finally, comparing with the existing popular supervised detection methods, the experimental results show that the accuracy rate on the aluminum profile dataset of the AliCloud Tianchi Competition is up to 96.4%, and the F1 value has been improved by at least 10.3%. A surface anomaly detection method for aluminum profiles using Multiple Attention Image Restoration Model (MAIRM) is proposed to solve the problem that the existing reconstruction models cannot generate high-quality normal feature images. Firstly, MAIRM is established and trained with the aluminum profile anomaly-free images obtained through SAM-APE-based data preprocessing method, which adopts multiple attention to improve the model's focus on the global valid data features of aluminum profiles, so that the model is able to extract the valid features of the surface of the aluminum profiles more accurately; and then, the region feature map is reconstructed with the trained MAIRM, and structural similarity comparisons are performed on the images before and after the reconstruction. Then the trained MAIRM is used to reconstruct the area feature map, and the structural similarity comparison of the images before and after the reconstruction is performed; finally, experiments are conducted and compared with several common surface anomaly detection methods proposed based on the reconstruction model, and the results show that: the accuracy rate and the F1 value of the proposed method reach 97.6% and 96.7%, respectively. An experimental system for surface abnormality detection of aluminum profiles was designed and implemented to verify the effectiveness of the proposed surface abnormality detection method. The automatic detection function of aluminum profiles is realized using the constructed surface abnormality detection model, and the surface abnormality detection function is tested. In summary, the proposed self-supervised detection method of aluminum profile surface abnormality can accurately detect whether there is abnormality on the surface of aluminum profile, has high detection accuracy, and can meet the requirements of aluminum profile surface abnormality detection. |
参考文献: |
[1] 侯文庆, 景会成, 周易林. 融合改进小波变换的小型磁瓦表面缺陷检测方法研究[J]. 制造业自动化, 2024, 46(01): 130-133+139. [2] 左才, 张勇斌, 齐元胜, 等. 基于机器视觉的印刷品表面划痕缺陷检测[J]. 印刷与数字媒体技术研究, 2023, (05): 42-48. [3] 王正家, 昝傲, 谷峰. 基于 Gabor 滤波的软包电池表面缺陷检测[J]. 组合机床与自动化加工技术, 2023, (11): 146-149. [18] 董豪, 李少波, 杨静, 等. 基于特征融合与语义引导的药用胶囊表面缺陷检测[J]. 计算机集成制造系统, 2022, 8: 1-21. [19] 王延舒, 余建波. 基于自适应全局定位算法的带钢表面缺陷检测[J]. 自动化学报, 2023, 45(1): 1-16. [41] 张大锦, 刘辉, 陈甫刚, 等. 频域多方向C-UNet及动态损失的工业烟尘图像分割[J]. 控制理论与应用, 2023, 1-12. [44] 彭家磊, 黄成泉, 雷欢, 等. 自适应空间强度约束和 KL 信息的模糊 C 均值彩色噪声图像分割[J]. 控制与决策 2023, 12: 1-9. [48] 刘建欣, 潘如如, 周建. 基于欠完备字典重构的无监督织物疵点检测方法[J]. 上海交通大学学报, 2023, 7: 1-16. [49] 马敏, 郭鑫, 于洁. 改进正则化半阈值算法的ECT图像重建[J]. 仪器仪表学报, 2022, 43(05): 110-119. [59] Pukelsheim F. The three sigma rule[J]. The American Statistician, 1994, 48(2): 88-91. |
中图分类号: | TP399 |
开放日期: | 2024-06-11 |