원시데이터 수집 시스템
선정목록으로

Detecting of Circular Knitting Fabric Defects Using VGG16 Architecture

간접 관련 패션 · (24) 패션(코오롱FnC) (3) 자동차 인테리어 소재

기본 정보

저자
  1. Kazım Hanbay — İNÖNÜ ÜNİVERSİTESİ
DOI
10.46810/tdfd.1105343
저널
Türk doğa ve fen dergisi :/Türk doğa ve fen dergisi
발행년도
2022
발행기관
–
피인용수
2
라이선스
cc-by-nc
논문 유형
–
언어
–
원문 페이지
https://doi.org/10.46810/tdfd.1105343
토픽
Surface Roughness and Optical Measurements
OpenAlex ID
W4283693385

평가 내용

관련도
간접 관련
사업분야
패션 · (24) 패션(코오롱FnC)
부 분야
(3) 자동차 인테리어 소재
R&D 측면
공정·제조
확신도
0.90
근거 용어
Circular knitting fabric, Fabric defect detection, VGG16, Deep learning, Quality control
판단 근거
본 논문은 원형 편직물(Circular knitting fabric)의 결함을 딥러닝(VGG16)으로 자동 검출하는 기술을 다루고 있습니다. 이는 코오롱인더스트리의 패션(24) 및 자동차 인테리어 소재(3) 사업에서 사용하는 섬유/원단의 품질 관리 공정에 직접적으로 응용 가능한 기술입니다.
R&D 활용 포인트
섬유 제조 공정 내 실시간 자동 결함 검사 시스템(AI Vision Inspection) 구축을 통해 품질 관리 효율성을 높이고 불량률을 낮추는 데 활용 가능합니다.
평가 입력
본문 21,189자

초록

Although the conventional image processing methods can detect fabric defects, fabric defect detection is an open research problem due to the diversity of defect types. In this paper, the feasibility of VGG16 deep learning architecture for fabric defect detection has been demonstrated. A new fabric defect database is used. The pre-trained model of VGG16 architecture on the new database is built. Thus, the training time of the model is reduced. The experimental results show that the VGG16 model outperforms the traditional Shearlet transform and GLCM methods.

본문 21,189자

본문 펼치기
Cilt 11, Sayı 2, Sayfa 125-129, 2022 Volume 11, Issue 2, Page 125-129, 2022 <u>Araştırma Makalesi</u> <u>https://doi.org/10.46810/tdfd.1105343</u> <u>Research Article</u> ``` www.dergipark.gov.tr/tdfd ``` Detecting of Circular Knitting Fabric Defects Using VGG16 Architecture Kazım HANBAY <sup>1*</sup> 1 Inonu University, Department of Software Engineering, Malatya, Türkiye Kazım HANBAY ORCID No: 0000-0003-1374-1417 _*_ C _orresponding author: kazimhanbay@gmail.com_ (Received: 18.04.2022, Accepted: 07.06.2022, Online Publication: 29.06.2022) Keywords Fabric defect, Deep learning, Defect detection Abstract: Although the conventional image processing methods can detect fabric defects, fabric defect detection is an open research problem due to the diversity of defect types. In this paper, the feasibility of VGG16 deep learning architecture for fabric defect detection has been demonstrated. A new fabric defect database is used. The pre-trained model of VGG16 architecture on the new database is built. Thus, the training time of the model is reduced. The experimental results show that the VGG16 model outperforms the traditional Shearlet transform and GLCM methods. VGG16 Mimarisi Kullanılarak Yuvarlak Örgü Kumaş Hatalarının Tespit Edilmesi Anahtar Öz: Geleneksel görüntü işleme metotları kumaş hatalarını tespit edebilmelerine rağmen kumaş Kelimeler hatası tespiti hata tiplerinin çeşitliliği yüzünden açık bir problemdir. Bu çalışmada VGG16 derin Kumaş hatası, öğrenme mimarisinin kumaş hatası tespiti için uygunluğu gösterilmiştir. Yeni bir kumaş hatası veri Derin öğrenme, tabanı kullanılmıştır. Daha önceden eğitilmiş VGG16 mimarisi veri tabanı üzerinde inşa edilmiştir. Hata tespiti Böylece modelin eğitim süresi azaltılmıştır. Deneysel sonuçlar VGG16 modelinin geleneksel Shearlet dönüşümü ve GLCM metotlarından daha iyi olduğunu göstermektedir. Well-known methods such as Fourier transform, 1. INTRODUCTION histogram-based approaches [3], gray level co occurrence matrix (GLCM) [4], and local binary Today, the demand for fabric and fabric products is pattern [5] are used to determine this distortion. In increasing. Fabric quality is a determining parameter in particular, metrics such as energy calculated on the the demand for the product. Fabric defect control, image in GLCM-based methods emphasize the change which has traditionally been human-oriented, includes in images with distortion [6]. Spectral methods such as different problems. For example, labor costs, Fourier transform and wavelet transform are used to carelessness and mistakes cause important mistakes to detect fabric defects. On the other hand, Vermak et al. be overlooked. Therefore, the importance of automatic [7] analyzed the real and imaginary parts of the wavelet fabric defect detection systems is increasing. With coefficients of the fabric image based on energy. Thus, automatic systems, information about the location, size they calculated detailed information about the defect. and type of the defects can be obtained. Some well- Shearlet transform was used to classify defects in terms known types of circular knitting fabric defects are of textural properties of fabric images in different shown in Figure 1. scales and directions [8]. Thus, multi-scale methods have been developed that can effectively detect the Until now, many different defect detection methods presence of a defect. Thanks to the sensitive texture have been developed using image processing and information provided by the Shearlet transformation, machine learning methods. These methods can be the defective pixel regions can be detected. examined in two main groups [1]: traditional image processing methods and convolutional neural networks In recent years, it has been tried to detect difficult (CNNs)-based methods. Traditional methods rely on fabric defects by using deep learning algorithms. The extracting color and texture-based features of the fabric ability of CNN-based methods to obtain high-level image. Regular texture breaks down when errors occur features from fabric images has enabled them to be in fabric images with regular texture [2]. This used extensively in this field. Chen et al. [1] developed degradation is also reflected in the extracted features. a defect detection system by using Gabor transform, Anahtar Kelimeler Kumaş hatası, Derin öğrenme, Hata tespiti 125 Well-known methods such as Fourier transform, histogram-based approaches [3], gray level cooccurrence matrix (GLCM) [4], and local binary pattern [5] are used to determine this distortion. In particular, metrics such as energy calculated on the image in GLCM-based methods emphasize the change in images with distortion [6]. Spectral methods such as Fourier transform and wavelet transform are used to detect fabric defects. On the other hand, Vermak et al. [7] analyzed the real and imaginary parts of the wavelet coefficients of the fabric image based on energy. Thus, they calculated detailed information about the defect. Shearlet transform was used to classify defects in terms of textural properties of fabric images in different scales and directions [8]. Thus, multi-scale methods have been developed that can effectively detect the presence of a defect. Thanks to the sensitive texture information provided by the Shearlet transformation, the defective pixel regions can be detected. In recent years, it has been tried to detect difficult fabric defects by using deep learning algorithms. The ability of CNN-based methods to obtain high-level features from fabric images has enabled them to be used extensively in this field. Chen et al. [1] developed a defect detection system by using Gabor transform, <mark>Tr. Doğa ve Fen Derg. Cilt 11, Sayı 2, Sayfa 125-129, 2022</mark> <mark>Tr. J. Nature Sci. Volume 11, Issue 2, Page 125-129, 2022</mark> genetic algorithm and CNN architecture. By integrating Gabor kernels into the Faster R-CNN architecture, the feature calculation capability of the CNN architecture has been improved. On the other hand, Li and Li [9] developed a defect detection system with multi-scale training with the Cascade R-CNN model. Fabric images were analyzed at different resolutions with a multi-scale approach. Liu et al. [10] proposed a fabric defect detection system called DLSE-Net, using semantic information generated by connecting different network layers. Thus, instead of a single network layer, the entire network was optimized and information such as noise and background were tried to be distinguished from defects. In another study, a convolutional denoising autoencoder network was developed to detect fabric defects. By designing an architecture that can calculate the probability of defects, fabric defects can be successfully detected with the help of some prior knowledge [11]. The success of the CNN architecture has been improved with the mechanism called the pairwise-potential activation layer. In a CNN architecture designed to segment fabric defects and decide if there are faults, the network is split in two. [12]. The first part is segmentation and the second part is decision making. With this method, which can also work in real-time, a specific fabric defect detectionbased deep learning architecture is proposed. (a) tear (b) needle breakages (c)dropped stiches (d)press-off Figure 1. Circular knitting fabric defects With the use of deep learning methods, successful comparison are briefly mentioned. The experimental results have been obtained without the need to results are discussed in Section 3. In Section 4, some calculate complex hand-craft features. However, deep conclusions are presented. learning models have some limitations in fabric defect detection. For example, it is sometimes difficult to 2. MATERIAL AND METHOD determine the size of the training dataset to obtain a good result. Especially when examining different types In this study, a database containing the types of defects of woven and knitted fabrics, it is necessary to build frequently encountered in circular knitting fabrics has databases containing fabric type-specific defects. This used. Defect detection has been made by using the causes intensive labor and raw material loss in the created database both with traditional methods and fabric factory. Therefore, it is necessary to optimize the VGG16 deep learning architecture. In this section, training data needs of existing deep learning models. firstly, information about the database will be given. For this purpose, it is necessary to work on CNN Then, the basic information and parameters of the models that produce successful results with less methods used will be explained. training data. Existing studies mostly focused on woven fabric defects. However, there is a need for a 2.1. Fabric Dataset CNN model that can produce successful results in knitted fabric types. Although there are different databases containing woven fabric defects in the literature, there is almost no In this study, a deep learning-based defect detection database containing defects in circular knitting fabrics. system is proposed that can detect the types of defects In this study, the database developed by Hanbay et al. frequently encountered in knitting fabrics produced on [8] has used. This database is constructed with video circular knitting machines. The results obtained by images obtained from the image acquisition testing the performance of the VGG16 [13] CNN mechanism installed on the circular knitting machine. architecture in knitting fabric defects were analyzed. A line-scan camera was used for image acquisition. The database used is problem-specific and has been The recording process was started by finely adjusting used in traditional image processing methods before. the line light source according to the line sensor Thanks to this study, the performances of traditional position. Defective and defect-free fabric images were methods and VGG16 deep learning architecture will be recorded in video form. Then, the database images compared for the first time in detecting knitting fabric were obtained by dividing each of them into 250×256 defects. Thus, detailed information will be given to the images. In the last case, a database consisting of a total reader about the performance difference between the of 13820 defective and defect-free fabric images was methods in the detection of knitting fabric defects. built. The database contains the most common fabric In Section 2, information about the database used and defects such as needle breakages, hole, press-off and the VGG16 network architecture is given. In addition, gout. Some defect-free and defective images can be the traditional image processing methods used in the shown in Figure 2. 126 <mark>Tr. Doğa ve Fen Derg. Cilt 11, Sayı 2, Sayfa 125-129, 2022</mark> <mark>Tr. J. Nature Sci. Volume 11, Issue 2, Page 125-129, 2022</mark> Defect-free fabric images (a) (b) (c) (d) Figure 2. Examples of the popular defect-free and defective images. First row: defect-free fabric images. Second row: defective images (a) needle breakages, (b) holes, (c) press-off, (d) gout 2.2. VGG16 Network Construction The VGG16 deep network used in this study generally consists of 5 block convolution layers. There are two convolution layers in the first two blocks and three in the last three blocks. The last three convolutional layers are fine-tuned layers. The step size of the convolution layer is 1 and each is 3×3. The size of the input layer is 224×224×3. There are max-pooling layers in every 5 blocks. The 5 maximum pooling layers have a step size of 2, each 2×2 in size. There are 3 fully connected layers. For training the VGG16 architecture, the BatchSize value is 32. Parameters are optimized with the Adam optimization method. VGG16 architecture is given in Figure 3. The transfer learning approach is also used in this study. The main purpose of transfer learning is that convolutional weights are frozen during training. Weights are fixed and thus all parameters of the deep network are not trained. Fully connected layers are added to the deep model. Thus the transfer learning approach and the pre-trained weights of VGG16 architecture are used to solve fabric defect detection problems. Figure 3. VGG16 architecture 2.3. Traditional Comparison Methods The results obtained from the VGG16 architecture are compared with traditional image processing and machine learning methods. Thus the strengths and weaknesses of the method of the VGG16 architecture have been revealed. The study using the Shearlet transform on the same fabric database was used in the comparison [8]. The 1×24 feature vectors obtained from the Shearlet transform were classified by an artificial neural network. Another method used in 127 <mark>Tr. Doğa ve Fen Derg. Cilt 11, Sayı 2, Sayfa 125-129, 2022</mark> <mark>Tr. J. Nature Sci. Volume 11, Issue 2, Page 125-129, 2022</mark> comparison uses GLCM features. Contrast, energy, correlation and homogeneity parameters were calculated from the GLCM information of the fabric image. By combining the obtained features, a feature vector with the size of 1×236 was obtained. The artificial neural network was used for classification. 3. EXPERIMENTAL RESULTS In this section, VGG16 deep learning architecture is run on the fabric database containing circular knitting fabric defects. In addition, a comprehensive comparison was made by obtaining the results of traditional image processing methods. There are 3000 defective and 15320 defect-free fabric images in the database. In the Shearlet transform method, feature vectors were created by analyzing images in different directions and comparison uses GLCM features. Contrast, energy, scales. In the GLCM method, 4 different features of correlation and homogeneity parameters were each image are calculated and combined into a single calculated from the GLCM information of the fabric feature vector. The learning rate in VGG16 architecture image. By combining the obtained features, a feature is taken as 0.0001. vector with the size of 1×236 was obtained. The artificial neural network was used for classification. Table 1 shows the defect detection results of the VGG16 architecture. Very high classification success 3. EXPERIMENTAL RESULTS has been achieved with VGG16. Stable results are obtained for the other 3 parameters. The VGG16 In this section, VGG16 deep learning architecture is architecture is trained faster with the transfer learning run on the fabric database containing circular knitting approach. In addition, the layer structure of the fabric defects. In addition, a comprehensive network has a structure to analyze fabric defects. In the comparison was made by obtaining the results of first layers, the convolutional structure is used to traditional image processing methods. There are 3000 characterize the defected pixel regions. Thus, the defective and 15320 defect-free fabric images in the spatial location of the defect is revealed. The layer database. structure, which can make more precise calculations, is used for defect analysis and detection in the next In the Shearlet transform method, feature vectors were layers. created by analyzing images in different directions and <u>Table 1.</u> <u>Classification results of VGG16 architecture</u> <u>Method</u> <u>Precision</u> <u>Recall</u> <u>f1-score</u> <u>Accuracy</u> <u>Defected</u> <u>99.97</u> <u>99.79</u> <u>0.98</u> <u>99.98</u> <u>Defect-free</u> <u>99.86</u> <u>99.74</u> <u>0.98</u> <u>99.84</u> The Receiver Operator Characteristic (ROC) curve of 5. As can be seen, classification accuracy has steadily the method is shown in Figure 4. ROC analysis is an improved iteratively. In addition, the loss function indicator of the stable operation of the trained deep curve has progressed iteratively and reached a model. As can be seen from the ROC curve of defected reasonable level. Thus, the network has done the fabric, fabric defects are stably and accurately learning process without overfitting and in a distinguished. determined manner. 5. As can be seen, classification accuracy has steadily improved iteratively. In addition, the loss function curve has progressed iteratively and reached a reasonable level. Thus, the network has done the learning process without overfitting and in a determined manner. In the last comparison, VGG16 architecture and traditional methods have been compared in terms of classification accuracy. The results obtained are shown in Table 2. Shearlet transform and GLCM features are classified by the artificial neural network. As can be seen from the results, the VGG16 model achieved better results. By obtaining high-level features of fabric images, defected pixels can be distinguished. Also, the proposed model is able to distinguish defect-free fabrics from defected ones. This prevents false positive results. 128 Figure 4. The ROC curve of VGG16 architecture The data of the accuracy and loss function on the database of the VGG16 architecture are given in Figure Figure 5. Classification accuracy (a) and loss function (b) of training and validation sets along with epochs <mark>Tr. Doğa ve Fen Derg. Cilt 11, Sayı 2, Sayfa 125-129, 2022</mark> <mark>Tr. J. Nature Sci. Volume 11, Issue 2, Page 125-129, 2022</mark> In the last comparison, VGG16 architecture and traditional methods have been compared in terms of classification accuracy. The results obtained are shown in Table 2. Shearlet transform and GLCM features are classified by the artificial neural network. As can be seen from the results, the VGG16 model achieved better results. By obtaining high-level features of fabric images, defected pixels can be distinguished. Also, the proposed model is able to distinguish defect-free fabrics from defected ones. This prevents false positive results. Table 2. Classification results of VGG16, Shearlet transform and <u>GLCM features</u> <u>Method</u> <u>Accuracy (%)</u> <u>VGG16</u> <u>99.98</u> <u>Shearlet transform</u> <u>95.46</u> <u>GLCM</u> <u>93.00</u> 4. CONCLUSION In this study, the defect detection success of VGG16 deep learning architecture in circular knitting fabrics has been investigated. A new fabric database is used that has not been tested in the VGG16 architecture before. By making use of the positive contributions of the transfer learning approach, the training period has been kept to a minimum. The success of the method is also compared with two traditional feature extraction methods as Shearlet transform and GLCM method. The feature vectors of these traditional methods are classified by the artificial neural network. The experimental results show that the VGG16 architecture gives much better results than traditional methods in detecting fabric defects. In the future, it is considered to improve the convolution layers of the VGG16 architecture. Thus, it is planned to carry out studies for real-time use in fabric defect detection. REFERENCES [1] Chen M, Yu L, Zhi C, Sun R, Zhu S, Gao Z, et al. Improved faster R-CNN for fabric defect detection based on Gabor filter with Genetic Algorithm optimization. Comput Ind. 2022.134:103551. [2] Hanbay K, Talu MF, Özgüven ÖF. Fabric defect detection systems and methods—A systematic literature review. Optik (Stuttg). 2016 Dec 1;127(24):11960–73. [3] Cuifang Z, Yu C, Jiacheng M. Fabric defect detection algorithm based on PHOG and SVM. Indian J Fibre Text Res. 2020;45:123–6. [4] Zhu D, Pan R, Gao W, Zhang J. Yarn-Dyed fabric defect detection based on autocorrelation function and GLCM. Autex Res J. 2015. 15(3):226–32. [5] Pourkaramdel Z, Fekri-Ershad S, Nanni L. Fabric defect detection based on completed local quartet patterns and majority decision algorithm. Expert Syst Appl. 2022 .198:116827. [6] Zhang B, Tang C. A Method for Defect Detection of Yarn-Dyed Fabric Based on Frequency Domain Filtering and Similarity Measurement. Autex Res J. 2019 Sep 1;19(3):257–62. [7] Vermaak H, Nsengiyumva P, Luwes N. Using the Dual-Tree Complex Wavelet Transform for Improved Fabric Defect Detection. J Sensors. 2016.–8. [8] Hanbay K, Fatih Talu M, Özgüven ÖF, Öztürk D. Real-Time Detection of Knitting Fabric Defects Using Shearlet Transform. Tekst ve Konfeksiyon. 29(1):2019. 3-10. [9] Li F, Li F. Bag of tricks for fabric defect detection based on Cascade R-CNN: https://doi.org/101177/0040517520955229. 2020.91(5–6):599–612. [10] Liu Z, Huo Z, Li C, Dong Y, Li B. DLSE-Net: A robust weakly supervised network for fabric defect detection. Displays. 2021 Jul 1;68:102008. [11] Ouyang W, Xu B, Hou J, Yuan X. Fabric Defect Detection Using Activation Layer Embedded Convolutional Neural Network. IEEE Access. 2019;7:70130–40. [12] Huang Y, Jing J, Wang Z. Fabric Defect Segmentation Method Based on Deep Learning. IEEE Trans Instrum Meas. 2021;70:1–15. [13] Simonyan K, Zisserman A. Very Deep Convolutional Networks for Large-Scale Image Recognition. In: 3rd International Conference on Learning Representations, ICLR 2015 Conference Track Proceedings. International Conference on Learning Representations, ICLR; 2014. p. 1–14. 129

섹션 본문

섹션 본문이 없습니다.

참고문헌 12건

  1. Fabric defect detection systems and methods—A systematic literature review Optik · Elsevier BV · 2016 10.1016/j.ijleo.2016.09.110
  2. Using the Dual-Tree Complex Wavelet Transform for Improved Fabric Defect Detection Journal of Sensors · Hindawi Publishing Corporation · 2016 10.1155/2016/9794723
  3. REAL-TIME DETECTION OF KNITTING FABRIC DEFECTS USING SHEARLET TRANSFORM TEKSTİL VE KONFEKSİYON · Tekstil Ve Konfeksiyon · 2018 10.32710/tekstilvekonfeksiyon.482888
  4. A Method for Defect Detection of Yarn-Dyed Fabric Based on Frequency Domain Filtering and Similarity Measurement Autex Research Journal · De Gruyter Open · 2018 10.1515/aut-2018-0040
  5. Fabric Defect Detection Using Activation Layer Embedded Convolutional Neural Network IEEE Access · Institute of Electrical and Electronics Engineers · 2019 10.1109/access.2019.2913620
  6. Fabric defect detection algorithm based on PHOG and SVM Indian Journal of Fibre & Textile Research · NISCAIR · 2020 10.56042/ijftr.v45i1.22046
  7. Bag of tricks for fabric defect detection based on Cascade R-CNN Textile Research Journal · SAGE Publishing · 2020 10.1177/0040517520955229
  8. Fabric Defect Segmentation Method Based on Deep Learning IEEE Transactions on Instrumentation and Measurement · Institute of Electrical and Electronics Engineers · 2021 10.1109/tim.2020.3047190
  9. DLSE-Net: A robust weakly supervised network for fabric defect detection Displays · Elsevier BV · 2021 10.1016/j.displa.2021.102008
  10. Improved faster R-CNN for fabric defect detection based on Gabor filter with Genetic Algorithm optimization Computers in Industry · Elsevier BV · 2021 10.1016/j.compind.2021.103551
  11. Fabric defect detection based on completed local quartet patterns and majority decision algorithm Expert Systems with Applications · Elsevier BV · 2022 10.1016/j.eswa.2022.116827
  12. Yarn-Dyed Fabric Defect Detection Based On Autocorrelation Function And GLCM Autex Research Journal · De Gruyter Open · 2015 10.1515/aut-2015-0001