基于无监督学习的纺织品缺陷检测算法

Daitao Wang, Wenjing Yu, Peiyin Lian, Mingjun Zhang
{"title":"基于无监督学习的纺织品缺陷检测算法","authors":"Daitao Wang, Wenjing Yu, Peiyin Lian, Mingjun Zhang","doi":"10.1109/ICIVC55077.2022.9887216","DOIUrl":null,"url":null,"abstract":"In order to solve the problem of lack of sample data and high cost of dataset due to the large number of abnormal samples and high-precision marking data required by current deep learning algorithms in textile defect detection, a pixel-level real-time defect detection scheme based on autoencoder and morphology was proposed in this paper. Algorithm is innovation in that can carry on the network training by unsupervised learning, as opposed to supervised learning needs a large number of high-precision marking abnormal samples, the algorithm relies on the dataset is only normal sample data, and no need to tag samples. In addition to reducing the production cost of large dataset, textile defects of various sizes can be detected in real-time at the pixel level. The algorithm steps are described as follows: First, the normal textile image is input into the network for encoding and decoding, and the underlying feature information of textile image is learned and reconstructed into a new image. Secondly, the encoding and decoding stages were combined horizontally to obtain better fitting effect. By subtracting the input image from the reconstructed image, the difference matrix of the input image and the reconstructed image was obtained to obtain the range of the defect area. Finally, Dilate, Median Filtering and Edge Detection are used to amplify and denoise the features of the defect region to obtain the final accurate defect region. The experimental results show that the scheme can effectively detect textile defects in real-time at pixel-level only when normal samples are used as dataset. Compared with supervised learning based algorithms such as RCNN and YOLO, this scheme only needs normal samples as dataset to carry out network training, which greatly reduces the cost of making dataset. Besides, Accuracy and F1-score can both reach over 0.95 in 4 different textile datasets, and its FPS is 36.2. Meet the requirements of real-time detection. The code and models will be made publicly available at https://github.com/hanknewbird/anomaly-detection.","PeriodicalId":227073,"journal":{"name":"2022 7th International Conference on Image, Vision and Computing (ICIVC)","volume":"32 1","pages":"0"},"PeriodicalIF":0.0000,"publicationDate":"2022-07-26","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"","citationCount":"1","resultStr":"{\"title\":\"Textile Defect Detection Algorithm Based on Unsupervised Learning\",\"authors\":\"Daitao Wang, Wenjing Yu, Peiyin Lian, Mingjun Zhang\",\"doi\":\"10.1109/ICIVC55077.2022.9887216\",\"DOIUrl\":null,\"url\":null,\"abstract\":\"In order to solve the problem of lack of sample data and high cost of dataset due to the large number of abnormal samples and high-precision marking data required by current deep learning algorithms in textile defect detection, a pixel-level real-time defect detection scheme based on autoencoder and morphology was proposed in this paper. Algorithm is innovation in that can carry on the network training by unsupervised learning, as opposed to supervised learning needs a large number of high-precision marking abnormal samples, the algorithm relies on the dataset is only normal sample data, and no need to tag samples. In addition to reducing the production cost of large dataset, textile defects of various sizes can be detected in real-time at the pixel level. The algorithm steps are described as follows: First, the normal textile image is input into the network for encoding and decoding, and the underlying feature information of textile image is learned and reconstructed into a new image. Secondly, the encoding and decoding stages were combined horizontally to obtain better fitting effect. By subtracting the input image from the reconstructed image, the difference matrix of the input image and the reconstructed image was obtained to obtain the range of the defect area. Finally, Dilate, Median Filtering and Edge Detection are used to amplify and denoise the features of the defect region to obtain the final accurate defect region. The experimental results show that the scheme can effectively detect textile defects in real-time at pixel-level only when normal samples are used as dataset. Compared with supervised learning based algorithms such as RCNN and YOLO, this scheme only needs normal samples as dataset to carry out network training, which greatly reduces the cost of making dataset. Besides, Accuracy and F1-score can both reach over 0.95 in 4 different textile datasets, and its FPS is 36.2. Meet the requirements of real-time detection. The code and models will be made publicly available at https://github.com/hanknewbird/anomaly-detection.\",\"PeriodicalId\":227073,\"journal\":{\"name\":\"2022 7th International Conference on Image, Vision and Computing (ICIVC)\",\"volume\":\"32 1\",\"pages\":\"0\"},\"PeriodicalIF\":0.0000,\"publicationDate\":\"2022-07-26\",\"publicationTypes\":\"Journal Article\",\"fieldsOfStudy\":null,\"isOpenAccess\":false,\"openAccessPdf\":\"\",\"citationCount\":\"1\",\"resultStr\":null,\"platform\":\"Semanticscholar\",\"paperid\":null,\"PeriodicalName\":\"2022 7th International Conference on Image, Vision and Computing (ICIVC)\",\"FirstCategoryId\":\"1085\",\"ListUrlMain\":\"https://doi.org/10.1109/ICIVC55077.2022.9887216\",\"RegionNum\":0,\"RegionCategory\":null,\"ArticlePicture\":[],\"TitleCN\":null,\"AbstractTextCN\":null,\"PMCID\":null,\"EPubDate\":\"\",\"PubModel\":\"\",\"JCR\":\"\",\"JCRName\":\"\",\"Score\":null,\"Total\":0}","platform":"Semanticscholar","paperid":null,"PeriodicalName":"2022 7th International Conference on Image, Vision and Computing (ICIVC)","FirstCategoryId":"1085","ListUrlMain":"https://doi.org/10.1109/ICIVC55077.2022.9887216","RegionNum":0,"RegionCategory":null,"ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":null,"EPubDate":"","PubModel":"","JCR":"","JCRName":"","Score":null,"Total":0}
引用次数: 1

摘要

针对当前深度学习算法在纺织品缺陷检测中需要大量异常样本和高精度标记数据而导致样本数据缺乏和数据集成本高的问题,提出了一种基于自编码器和形态学的像素级实时缺陷检测方案。算法的创新之处在于可以通过无监督学习进行网络训练,相对于监督学习需要大量高精度标记异常样本,该算法所依赖的数据集仅为正常样本数据,不需要对样本进行标记。除了降低大数据集的生产成本外,还可以在像素级实时检测各种尺寸的纺织品缺陷。算法步骤如下:首先,将正常的纺织品图像输入到网络中进行编码解码,学习纺织品图像的底层特征信息并重构成新的图像。其次,将编码和解码阶段横向结合,获得更好的拟合效果;通过重建图像减去输入图像,得到输入图像与重建图像的差矩阵,得到缺陷区域的范围。最后,利用扩张、中值滤波和边缘检测对缺陷区域的特征进行放大和去噪,得到最终准确的缺陷区域。实验结果表明,该方法仅以正常样本为数据集,就能有效地在像素级实时检测纺织品疵点。与RCNN、YOLO等基于监督学习的算法相比,该方案只需要正态样本作为数据集进行网络训练,大大降低了制作数据集的成本。在4个不同的纺织数据集上,准确率和F1-score均达到0.95以上,FPS为36.2。满足实时检测的要求。代码和模型将在https://github.com/hanknewbird/anomaly-detection上公开提供。
本文章由计算机程序翻译,如有差异,请以英文原文为准。
Textile Defect Detection Algorithm Based on Unsupervised Learning
In order to solve the problem of lack of sample data and high cost of dataset due to the large number of abnormal samples and high-precision marking data required by current deep learning algorithms in textile defect detection, a pixel-level real-time defect detection scheme based on autoencoder and morphology was proposed in this paper. Algorithm is innovation in that can carry on the network training by unsupervised learning, as opposed to supervised learning needs a large number of high-precision marking abnormal samples, the algorithm relies on the dataset is only normal sample data, and no need to tag samples. In addition to reducing the production cost of large dataset, textile defects of various sizes can be detected in real-time at the pixel level. The algorithm steps are described as follows: First, the normal textile image is input into the network for encoding and decoding, and the underlying feature information of textile image is learned and reconstructed into a new image. Secondly, the encoding and decoding stages were combined horizontally to obtain better fitting effect. By subtracting the input image from the reconstructed image, the difference matrix of the input image and the reconstructed image was obtained to obtain the range of the defect area. Finally, Dilate, Median Filtering and Edge Detection are used to amplify and denoise the features of the defect region to obtain the final accurate defect region. The experimental results show that the scheme can effectively detect textile defects in real-time at pixel-level only when normal samples are used as dataset. Compared with supervised learning based algorithms such as RCNN and YOLO, this scheme only needs normal samples as dataset to carry out network training, which greatly reduces the cost of making dataset. Besides, Accuracy and F1-score can both reach over 0.95 in 4 different textile datasets, and its FPS is 36.2. Meet the requirements of real-time detection. The code and models will be made publicly available at https://github.com/hanknewbird/anomaly-detection.
求助全文
通过发布文献求助,成功后即可免费获取论文全文。 去求助
来源期刊
自引率
0.00%
发文量
0
×
引用
GB/T 7714-2015
复制
MLA
复制
APA
复制
导出至
BibTeX EndNote RefMan NoteFirst NoteExpress
×
提示
您的信息不完整,为了账户安全,请先补充。
现在去补充
×
提示
您因"违规操作"
具体请查看互助需知
我知道了
×
提示
确定
请完成安全验证×
copy
已复制链接
快去分享给好友吧!
我知道了
右上角分享
点击右上角分享
0
联系我们:info@booksci.cn Book学术提供免费学术资源搜索服务,方便国内外学者检索中英文文献。致力于提供最便捷和优质的服务体验。 Copyright © 2023 布克学术 All rights reserved.
京ICP备2023020795号-1
ghs 京公网安备 11010802042870号
Book学术文献互助
Book学术文献互助群
群 号:604180095
Book学术官方微信