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

Method for silver streak detection on embossed surfaces based on inpainting network

간접 관련 엔지니어링 플라스틱 · (23) 컴파운드 (3) 자동차 인테리어 소재(21) 에폭시수지

기본 정보

저자
  1. Kazumoto Tanaka — Department of Informatics, Faculty of Engineering, Kindai University, Higashi-Hiroshima, Japan
DOI
10.1088/2631-8695/adac2f
저널
Engineering Research Express
발행년도
2025
발행기관
IOP Publishing
피인용수
0
라이선스
cc-by
논문 유형
–
언어
–
원문 페이지
https://doi.org/10.1088/2631-8695/adac2f
토픽
Surface Roughness and Optical Measurements
OpenAlex ID
W4406607920

평가 내용

관련도
간접 관련
사업분야
엔지니어링 플라스틱 · (23) 컴파운드
부 분야
(3) 자동차 인테리어 소재, (21) 에폭시수지
R&D 측면
물성·성능 평가
확신도
0.80
근거 용어
silver streak detection, embossed plastic-moulded products, defect detection, inpainting network, automated inspection
판단 근거
본 논문은 플라스틱 성형 제품(embossed plastic-moulded products) 표면의 결함인 'silver streak'를 AI로 자동 검출하는 기술을 다룹니다. 이는 코오롱인더스트리의 엔지니어링 플라스틱(23) 및 자동차 인테리어 소재(3) 제조 공정 중 품질 관리(QC) 단계에 직접 적용 가능한 기술입니다.
R&D 활용 포인트
플라스틱 컴파운드 및 자동차 내장재 성형 공정에서 발생하는 표면 결함을 실시간으로 자동 검출하는 비전 검사 시스템 구축에 활용 가능합니다.
평가 입력
본문 46,936자 중 30,032자 발췌

초록

Abstract Silver streaks in embossed plastic-moulded products are among the most challengigng defects to detect in images. Currently, performing a completely automated inspection is impossible. Compared to embossed textures, silver streaks exhibit slightly higher contrast, and experienced inspectors use this as a key indicator for detection. Therefore, in this study, we developed an artificial intelligence that learns the contrast of the textures of defect-free products to enable automated inspection. Specifically, we used an inpainting network that learns to repair images in which the defect-free texture regions are masked. The proposed method identifies defects by assessing the repair error in defective textures, which the network cannot accurately reconstruct due to a lack of prior learning. The method was tested on real plastic-moulded products and demonstrated extremely high accuracy in detecting silver streaks.

본문 46,936자

본문 펼치기
Engineering Research <u>Express</u> PAPER • OPEN ACCESS ## Method for silver streak detection on embossed surfaces based on inpainting network To cite this article: Kazumoto Tanaka 2025 Eng. Res. Express 7 015417 View the <u>[article online](https://doi.org/10.1088/2631-8695/adac2f)</u> for updates and enhancements. You may also like <u>Unsupervised defect detection based on</u> <u>the pseudo-defect generation</u> <u>Jie-kang Feng</u> <u>Virtual-sample-based defect detection</u> <u>algorithm for aluminum tube surface</u> <u>Ning Lang, Decheng Wang, Peng Cheng</u> et al. <u>Attention Pyramid Dilated Region-based</u> <u>Model for Metallurgical Defect Detection</u> <u>Danpeng Cheng, Wuxin Sha, Zuo Xu et al.</u> This content was downloaded from IP address 211.188.55.116 on 02/11/2026 at 17:00 OPEN ACCESS RECEIVED 2 September 2024 REVISED 10 January 2025 ACCEPTED FOR PUBLICATION 20 January 2025 PUBLISHED 31 January 2025 Original content from this work may be used under [the terms of the Creative](https://creativecommons.org/licenses/by/4.0/) [Commons Attribution 4.0](https://creativecommons.org/licenses/by/4.0/) [licence.](https://creativecommons.org/licenses/by/4.0/) Any further distribution of this work must maintain attribution to the author(s) and the title of the work, journal citation and DOI. PAPER # Method for silver streak detection on embossed surfaces based on inpainting network Kazumoto Tanaka Department of Informatics, Faculty of Engineering, Kindai University, Higashi-Hiroshima, Japan [E-mail: kazumoto@hiro.kindai.ac.jp](mailto:kazumoto@hiro.kindai.ac.jp) Keywords: silver streak, embossed surface, automated inspection, masked blob, inpainting network Abstract Silver streaks in embossed plastic-moulded products are among the most challengigng defects to detect in images. Currently, performing a completely automated inspection is impossible. Compared to embossed textures, silver streaks exhibit slightly higher contrast, and experienced inspectors use this as a key indicator for detection. Therefore, in this study, we developed an artificial intelligence that learns the contrast of the textures of defect-free products to enable automated inspection. Specifically, we used an inpainting network that learns to repair images in which the defect-free texture regions are masked. The proposed method identifies defects by assessing the repair error in defective textures, which the network cannot accurately reconstruct due to a lack of prior learning. The method was tested on real plastic-moulded products and demonstrated extremely high accuracy in detecting silver streaks. 1. Introduction Numerous studies have been conducted to automate the visual inspection of industrial products to reduce the burden on workers and improve quality. In particular, approaches that apply image-processing technology have been vigorously pursued [1]. However, numerous defects are still difficult to detect automatically, including silver streaks. Silver streaks are defects caused by air bubbles in moulded plastic products. They appear whitish when illuminated by light; therefore, if the surface of the moulded product is plain, automated detection is not difficult. This is because high-frequency filters, such as image differentiation filters emphasise only the silver streaks. However, when silver streaks appear in the irregular textures of embossed surfaces, both the embossed convexity and defect will shine in the image (refer to figure 1). Therefore, both will be detected by highfrequency filtering, making it very difficult to distinguish them. In addition, the non-uniform luminance distribution owing to the curvature of the inspection surface makes automatic detection even more difficult. Consequently, at present, no established technology is available for the fully automated inspection of silver streaks on embossed plastic-moulded products. Thus, in the current manufacturing process, inspectors use their eyes to check for the presence of silver streaks using slight differences in contrast (silver streaks are slightly stronger) as clues. However, such a visual inspection has several disadvantages: - Training skilled inspectors is time consuming and involves significant labour costs. - Fatigue from overuse of the eyes can cause even skilled inspectors to miss defects, which can affect the reliability of the product. - The criteria for judging slight differences in contrast by eye cannot be quantified; therefore, the criteria vary slightly between inspectors. Consequently, the quality of different products may vary. This study aims to reduce workers’ reliance on their eyesight and stabilise product quality at a high level, to automate visual inspection. To achieve this goal, we developed an innovative method that combines preprocessing to detect all pixels with a higher contrast than their surroundings (in this study, the connected © 2025 The Author(s). Published by IOP Publishing Ltd Figure 1. Orange peel embossed surface image of injection-moulded product. The bright areas indicated by the arrows are the silver streaks. Other bright areas are embossed convexities. components of these pixels are known as blobs) and a deep neural network (DNN) to extract silver streaks from the blobs. The contributions of this study are summarised as follows: - The first silver streak detection method for embossed surfaces is proposed. - The proposed method is demonstrated to detect silver streaks with high accuracy using actual industrial products. - We show that a practical detection capability can be achieved using only good product images, although it is difficult to collect a large number of actual defect images for DNN training. The remainder of this paper is organised as follows. Section 2 describes related studies and our approach. The silver streak detection method is described in section 3. The results of the defect inspection experiment using this method are presented in section 4. In section 5, the defect detection performance of the proposed method and practical issues are discussed. Finally, section 6 concludes the paper and outlines future work. 2. Related work Traditional image-based defect detection methods employ statistical techniques to evaluate features, such as texture and shape, extracted through template matching or manually developed image processing algorithms [2]. However, factors like lighting conditions (illumination and shadow effects), surface reflectance, noise, and variations in defect characteristics (size, shape, texture) significantly affect detection performance. Frequently, extensive trial and error is necessary to select suitable feature values and adjust parameters. In recent years, propelled by the success of DNN approaches in object detection and recognition, research on defect detection using DNNs has proliferated. In DNN-based studies, numerous approaches employ convolutional neural networks (CNNs), with CNNbased encoder-decoder networks often producing a heat map in the decoder output to indicate image defects [3]. Study [4] utilised a pre-trained VGG-16 model [5] to extract multi-scale features, enhancing defect detection across various resolutions. An ensemble framework combining multiple CNNs was proposed in [6], where models were trained on images captured under different lighting conditions to classify various bearing defect patterns. Study [7] introduced a multi-attentional backbone based on the ResNet architecture [8] for bearing surface inspection, designed to extract both spatial and semantic defect information. Recently, approaches that replace encoder modules with transformer architectures have been explored. Study [9] introduced an intelligent surface defect detection method employing a transformer-based encoder, enhancing the model’s ability to capture long-range dependencies associated with defects. Study [10] presented a transformer-based network featuring an encoder based on the Mix ViT architecture [11], designed to perceive the multi-scale features of rail surface defects. Generally, performance improves as the depth of CNN layers increases, but this also raises computational costs. To address this issue, studies have focused on designing lightweight and efficient CNN architectures. In the field of automatic lesion detection in medical images, study [12] proposed a lightweight model with 4.8 M trainable parameters, compared to the 45.6 to 256.7 M parameters in previous CNN models. Similarly, study [13] improved network performance while reducing computational cost (trainable parameters: 9.23 M) by integrating operators such as Canny, Sobel, and Gabor filters with efficient convolutional layers. While these approaches manually optimise architecture, other studies automatically determine efficient network configurations. Study [14] formulated the architecture design process as a constrained optimisation problem, balancing performance indicators like accuracy and efficiency, and iteratively generating an optimal lightweight architecture. Finally, we will examine studies on detecting foreign matter on textured surfaces, the primary focus of this research. In [15], a convolutional autoencoder was employed to detect defects by transforming an image with a defect on a textured surface into one with the texture removed, thereby highlighting the defect. However, challenges arise in distinguishing between texture and similar-looking defects; silver streaks, the subject of our study, exemplify such defects. To enhance defect detection using the YOLOv8 object detector [16], an attention module was integrated to improve the detection of foreign objects on wood textures [17]. Nevertheless, training DNNs like these requires a substantial number of training images. Since defect images are scarce, as manufacturers strive to minimise defects, obtaining sufficient training data poses a significant challenge. This is a common problem in the development of DNN-based automatic inspection, and several approaches can be used to address this problem. The first approach uses a DNN that transforms the image intensity distribution of defect-free images into a distribution in a latent space. Therefore, training is possible using only defect-free images. When a defect image is input into the DNN, it is mapped to the low probability density region of the latent distribution; thus, the defect can be determined (e.g., [18]). Alternatively, the distance-based approach evaluates the distance between an input image and a defect-free image using a DNN that has learned the distance function between defect-free images (e.g., [19]). Approaches are also available for artificially generating defect images. For example, in [20], a defect image was generated by artificially generating noise from a defect-free image. The study trained a reconstructive network to repair artificially corrupted images and a discriminative network to detect the repair, and a framework was proposed to determine whether the image input to the reconstructive network was defective. Thus, this study, as well as ours, belongs to the category of reconstruction-based approaches. The basic idea of the reconstruction-based method is that the differences between images before and after the reconstruction of a defective image are expected to be larger than those of a defect-free image. Therefore, defects can be determined by evaluating the differences. The differences are evaluated using a discriminative network (DNN) trained to spot defect repair or directly using the L2 distance of the pixel intensity or structural similarity (SSIM [21]). This category can be further divided into the following categories according to the images used for training: artificial defect images [20], only defect-free images [22], partially masked artificial defect images [23], and partially masked defect-free images [24–26]. The use of masked images is an application of inpainting [27] because it restores the masked regions. As it is very difficult to place an automatically generated image of silver streaks, which are the subject of our study, naturally in an actual embossed image, our study used only masked defect-free images for training. The approach is described in detail in the following sections. A DNN model that learns to repair mask regions in defect-free images fails to repair masks in defective regions, and by evaluating this error, it is expected to detect defective regions. However, the model may become overly generalised, and even defective regions may be restored. To address this problem, a memory-based reconstructive network was proposed, which makes it difficult to recover defective regions that do not exist in a memory module to memorise defect-free regions [28]. However, the memory module increases the computational complexity of the DNN. Another issue is determining where to mask the defect-free images during training and where to mask the images to be inspected during testing. In [24], the original image was segmented into superpixels, each of which was masked. In [25], the image was segmented into grids and multiple randomly selected grids were masked. However, for defect detection, masking must be repeated such that all areas of the image are masked. In [26], the areas to be masked were narrowed by evaluating the accuracy of the recovery using the SSIM during this iterative process. To address this problem, we focus on the fact that silver streaks have a slightly higher contrast than embossed convex areas (refer to figure 1). In the training mode, we mask all embossing in the defect-free image. This trains the inpainting network to specialise in restoring only embossments and suppresses the generalisation of the restoration. In the inspection mode, blob detection is performed on the input image and all blobs are masked. This masks all embossed convexities and silver streaks, which are detected by thresholding the magnitude of the repair error of the inpainting network. The flowchart of the proposed method is shown in figure 2. 3. Methods The proposed silver streak detection method consists of blob masking and inpainting error detection. These methods are described in the following sections. Figure 2. Flow of the proposed method. The original image with masked blob regions and the mask image are input into the inpainting network. During training, the original image is a defect-free image, and the loss is calculated from the difference between the masked region of the output image from the inpainting network and the masked region of the original image. The dotted arrow indicates the error feedback during training. During testing, the repair errors per blob are evaluated. Figure 3. Top: Blobs extracted from the image in figure 1. The white areas are the blobs. Bottom: Original image with blob masked. 3.1. Blob masking Because both embossed convexities and silver streaks stand out brightly, the multiple-scale LoG blob detector [29] is used to detect the prominent areas. Blobs of various scales are extracted from the original image I by detecting the local extrema of the LoG scale-space representation. Next, a mask image M is generated with the detected blob regions set to 0 and other areas set to 1, following which equation (1) is used to obtain an image _I_ <sup>_ˆ_</sup> with the blobs of the original image masked out. _Iˆ_ = _I_  _M_ _,_ (1) where  denotes the Hadamard product. Examples of images with detected blobs and blob masking are shown in figure 3. 3.2. Inpainting error detection We used the partial convolutional U-Net (PConv U-Net) [30] as the inpainting network. The input images to the network are a mask image M and an image _I_ <sup>_ˆ_</sup> with masked blobs. Instead of the convolutional layer of the original U-Net [31], this network uses a partial convolutional (PConv) layer with M to control the convolution operations. PConv does not use the pixels of the missing parts (masked parts) of the input image in the convolution; therefore, it can prevent degradation of the image quality. The PConv operation is expressed as follows [30]: <u>1)</u> + _b_, _if_ 0 ⎧ _w_ _T_ ( _x_  _m_ ) _<u>sum</u>_ <u>(1)</u> + _b_, _if_ 0 < _sum_ ( _m_ ) _x_ ¢ = _sum_ ( _m_ ), (2) ⎧ _w_ _T_ ( _x_  _m_ ) _<u>sum</u>_ <u>(1)</u> + _b_, _if_ 0 < ¢ = _sum_ ( _m_ ) ⎨ ⎩ _sum_ ( _m_ ), (2 0, _otherwise_ _<u>sum</u>_ <u>(1)</u> + _b_, _if_ 0 < _sum_ _sum_ ( _m_ ) _otherwise_ where x′, w, x, m, b, and sum(1) denote the results of the operation in the current convolution (sliding) window, a vector of the convolution filter weights, a vector of the feature values (pixel values) for the window, a vector of binary data in the corresponding window of M, the bias, and the number of pixels in the window, respectively. Due to x  m in equation (2), information regarding the missing parts of the image is notused in the convolution. In addition, sum(1)/sum(m) is a scale adjuster that reduces the effect of the proportion of unmasked pixels in the window on x’. In addition, in the PConv layer, M is updated according to equation (3). This causes the mask area to shrink as the PConv U-Net layer deepens and the missing parts of _I_ <sup>_ˆ_</sup> are repaired. 1, _if_ 0 < _sum_ ( _m_ ) _m_ ¢ = ⎧, (3) ⎨⎩0, _otherwise_ where m′ denotes the central pixel value within the window of M for which sum(m) is calculated. The error in the output of PConv U-Net is defined as the sum of the product of the six types of errors and hyperparameters [30]. The six types of errors include pixel-wise errors in the masked regions, pixel-wise errors in the unmasked regions, perceptual errors across the image, and smoothness errors in the image intensity distribution. They are designed to enable inpainting of a variety of real-world images. However, because our study focuses on restoring embossed blobs, only pixel-wise errors in the blob region are used. Therefore, this study defines the error E fed back to the network during training as follows: E = _MSE_ ((( _I_ - _I_ _¢_ )  _M¯_ )∣blob regions), (4) where _I_ _¢_, _M_ <sup>_¯_</sup>, and MSE denote the output of the network, inversion of M, and mean square error, respectively. The error _e_ _i_ for the ith blob is defined by equation (5). _e_ _i_ = _x_ ((( _I_ - _I_ _¢_ )  _M¯_ )∣blob = i, 0), (5) where _x_ ( _p_, _q_ ) represents a function that computes max( _pij_, _qij_ ) <sup>pixel-wise. The determination of whether a</sup> blob is a silver streak depends on the definition in equation (6). ⎧ _Defect_ _blob_, _if_ _th_  max( _e_ _i_ ) , (6) ⎨⎩ _Defect_ - _free_ _blob_, _otherwise_ where th and max( _e_ _i_ ) <sup>denote a threshold value that is determined experimentally and the largest element value</sup> in _e_ _i_ . 4. Experiments This section describes the training of PConv U-Net, defect detection experiment, and results. The tests were conducted using actual factory products. 4.1. Network training The plastic-moulded products used in the experiments are shown in figure 4. A camera and light source were positioned above the inspection surface, and images were captured by placing the workpiece on a turntable, rotating it in 45° increments to account for variations in illumination. Each input image for the network was created by integrating multiple images (eight in total) to enhance the signal-to-noise ratio (SNR). As only a small portion of the product image needed inspection, and it was belt-shaped, multiple 64 × 64 pixel monochrome images (referred to as patches; see figure 4) were extracted from this area and used as input images for the network. Consequently, our PConv U-Net is a modified version of the original network (input image size: 512 × 512 × 3 channels) adapted for 64 × 64 × 1 channel inputs (figure 5) and was trained from scratch. By using patches as input images, numerous training samples can be generated from a limited number of defect-free images. In this experiment, approximately 20,000 patches were collected, with 15,000 used for training and the remainder for evaluation. Image intensity was normalised to a range of 0.0 to 1.0, and the patches were randomly flipped during training. The model was trained for 200 epochs using mini-batches of 32. Figure 4. Sample of the plastic-moulded product used in the experiment. The area surrounded by the two yellow lines is the area to be inspected. However, note that the patches are extracted to include some of the area outside this area. This is to cover a large area, considering the error in the position at which the product is set in the inspection device. The Adam optimiser [32] was employed with a learning rate of 0.0002, and momentum parameters 1 and 2 set to 0.5 and 0.999, respectively. The maximum error value for the repair of the masked defect-free blobs (embossed convex parts) in the evaluation images was 0.0211 (note that this is a value in terms of the normalised intensity). Figure 6 shows an example of the output (error value map) when the defective product image was input into the post-trained network. The error values for the repair of the silver streaks were larger than those for the defect-free blobs, which made it possible to detect the defects. 4.2. Inspection experiment The images used in the experiment were captured under the same lighting conditions as those used for training. Silver streaks may not be visible in some images depending on the lighting conditions, and images in which the defects were visible were selected for the experiment. The visibility of the silver streaks was determined based on whether they were detected as blobs. Thus, 400 patches containing silver streaks and the same number of defectfree patches were collected. We evaluated the proposed model by conducting an experiment to determine whether the patch images were defective. Accuracy, Recall, Precision, and AUC were used to evaluate the model. These evaluation indices are briefly described as follows. Accuracy is the proportion of correct classifications, whether positive (i.e. defective) or negative (i.e. defectfree), and is expressed as follows: _<u>TP</u>_ <u>+</u> _<u>TN</u>_ _Accuracy_ = (7) _TP_ + _TN_ + _FP_ + _FN_ <sup>,</sup> where TP, FP, FN, and TN denote the numbers of correctly identified defective patches, defect-free patches mistakenly identified as defects, defective patches mistakenly identified as defect-free patches, and correctly identified defect-free patches, respectively. Recall is the ratio of correctly identified positives by the model, and is expressed as follows: _<u>TP</u>_ _Recall_ = (8) _TP_ + _FN_ <sup>.</sup> Precision is the ratio of actual positives to those in which the model is judged as positive, and is expressed as follows: _<u>TP</u>_ _Precision_ = (9) _TP_ + _FP_ <sup>.</sup> AUC refers to the ‘area under the receiver operating characteristic (ROC) curve’. The x- and y-axes in ROC curves represent the false positive rate (FP/(FP + TN)) and true positive rate (TP/(TP + FN)), respectively. The ROC curve is generated by varying the threshold for positive and negative classifications. Therefore, the AUC calculated from the ROC is a metric that can be used to evaluate model performance in a general manner, independent of a specific threshold [33]. One method to set the threshold for the repair error value to determine whether a blob is a silver streak is to use a maximum error value of 0.0211 for the defect-free blobs used in the evaluation (section 4.1). Another method uses the minimum error value of defect blobs as the threshold. To achieve this, the minimum error Figure 5. Structure of PConv U-Net used in the experiment. values of the silver streaks used in the experiment were examined. Histograms of the max( _e_ _i_ ) <sup>values for the</sup> defect-free blobs and defective blobs used in the inspection experiment are shown in figure 7. On this basis, we set the threshold for the minimum error of the defective blobs to 0.0248. Using these, we performed a defective/ Figure 6. Error resulting from inputting the blob-masked image in figure 3 into the inpainting network (corresponding to the difference image in figure 2). Silver streaks are detected as prominent white areas. Figure 7. Histogram of max( _e_ _i_ ) <sup>in defect-free blobs and defective blobs used in the inspection experiments. The horizontal axis is the</sup> maximum image intensity error (max( _e_ _i_ )) when the masked blobs are repaired using the network. Note that the image intensity is normalised to 0.0 to 1.0. The vertical axis is the number of blobs. Note that the two distributions overlap slightly. defect-free judgement, and the results were TP = 400, FP = 36, FN = 0, and TN = 364 for a threshold of 0.0211 and TP = 400, FP = 14, FN = 0, and TN = 386 for a threshold of 0.0248. The corresponding confusion matrices are shown in figures 8 and 9. In addition, the ROC curve, which plots the false positive and true positive rates while varying the threshold from 0.000 to 1.000, is shown in figure 10. The AUC was 0.999. The evaluation values for the above models are summarised in table 1. Finally, we measured the time required for the inspection. Using a PC (Windows OS, 2.40 GHz Intel Core i7 CPU, Nvidia RTX 4060 laptop GPU), approximately 5.5 s were required for one product image of size 1440 × 1080. Instead of directly inputting the entire product image into the network, the proposed method sequentially inputs multiple patches extracted from the entire image. In the experiment, 257 patches were extracted, and the average processing time per patch (64× 64 pixels) was 0.0211 s. 5. Discussion Because the number of positive and negative data points used in the experiment was the same, and there was no bias, the following can be considered based on the Accuracy, Recall, and Precision values. For the two thresholds used in the experiment described in section 4.2, the Recall was 1.000, that is, there was no failure in defect detection. The ability to detect defects during manufacturing is the most important requirement for an automatic inspection system. Models that produce too many positive judgements have high Recall values; however, the Precision was 0.917 and 0.966, respectively; therefore, the reliability of defect detection was high. In addition, the Accuracy was 0.955 and 0.983, respectively, and the rate of defective/defect-free classification can be said to be high. However, the Precision and Accuracy did not reach 1.000 because the FP was not zero. That is, a repair error value larger than the threshold occurred in the defect-free blobs. The FP value can be reduced in two manners. The first is to improve the repair performance of defect-free blobs further. Because all plastic-moulded products to be inspected are manufactured using the same mould, the embossed texture of the images obtained Figure 8. Confusion matrix for the threshold of 0.0211. Figure 9. Confusion matrix for the threshold of 0.0248. under the same lighting conditions is expected to follow a finite number of patterns. Therefore, preparing a sufficiently large number of images for training is effective. This is possible because the proposed method uses only defect-free images for training. The second is to increase the threshold such that good blobs are not mistakenly detected. However, this may result in missing defects; therefore, it is necessary to obtain an image with even more emphasis on silver streaks such that the repair error value for defective blobs also increases. This is based on the premise of establishing a ‘photographic method for detecting hard-to-see defects’, which is discussed as follows. The AUC was 0.999. In a study of the discrimination of respiratory infections [34], the following criteria based on the AUC were used to evaluate the binary classification method: excellent discrimination: AUC  0.90; good discrimination: 0.80  AUC < 0.90; fair discrimination: 0.70  AUC < 0.80; and poor discrimination: AUC < 0.70. Although the domain of classification was different from that in this study, according to this evaluation method, the proposed model can be considered a model with very high accuracy. Furthermore, in a study that used a DNN for object recognition to inspect plastic-moulded products [35], the AUC of the DNN model was 0.927. Although this study did not target defects in embossed textures, the AUC value of our network Figure 10. ROC curve. Table 1. Evaluation values for the model. Accuracy Recall Precision AUC Threshold 0.0211 0.955 1.000 0.917 0.999 0.0248 0.983 1.000 0.966 model was extremely high compared to those of other studies on the automatic inspection of plastic-moulded products. However, as mentioned in section 4.2, the experiments were conducted using images in which silver streaks could be detected as blobs. Thus, images without visible defects were not used. Therefore, if such images were included in the inspection experiments, the detection performance would decrease. However, even hard-to-see defects can be detected by experienced inspectors at manufacturing sites. In the case of hard-to-see defects, skilled inspectors observe the inspection surface while changing their viewpoint and the orientation of the object being inspected, that is, while changing the angle of incidence of the light from the inspection light source onto the inspection surface and the positio n of the eye that captures the reflected light. Based on this, we conducted a preliminary experiment using multiple light sources to explore potential solutions to this problem. In the previous experiment, only a light source above the inspection surface was used; however, in the preliminary experiment, a side-mounted light source was also employed (figure 11). In the initial setup with the top light source, six defects were not detected as blobs. Using the side light source, all these defects were detected in the image (figure 12) and recognised as defects by the trained network. Conversely, some defects detected with the top light source were not visible with the side light source, likely due to a bias in the direction of silver streak reflections. Such issues have been addressed by using multiple images obtained by sequentially activating different light sources [36]. A conceivable approach is to perform blob detection using images captured by sequentially activating the top and side light sources and then integrating the results. However, due to the limited number of defect samples, further data collection is necessary. Future work will involve determining an optimal light source layout that ensures a 100% blob detection rate while maintaining cost-effectiveness and system simplicity for implementation on production lines. Evaluating the robustness of defect detection against variations in lighting intensity on the production line and changes in lighting over time is also crucial. In this experiment, images of the workpiece were captured while rotating its position relative to the light sources for training to cope with variations in the illumination of the inspection surface. However, we did not quantitatively evaluate the robustness to changes in illumination. Once the layout of the multiple light sources is finalised, the next step will be to evaluate the network trained with images from these light sources, as well as to quantitatively assess its robustness against variations in each light source. This experiment was specifically conducted for the inspection of a particular product. Therefore, the size of the image input to the network was set to 64 × 64 depending on the image size of the target area of the product to be inspected. The structure of the original network [30] was modified accordingly (figure 5). When applying the Figure 11. Imaging equipment used in the experiment (the camera is positioned centrally at the back of the upper inspection light). The additional light used in the preliminary experiment to address the issue is installed to the side of the inspected product. Figure 12. From left to right: one of the six images where the defect was not detected as a blob with the top light source; the image taken using lateral lighting; the image showing blobs detected from the previous image (with the defect highlighted within the yellow box). proposed method to products of different sizes to those used in the experiments in this study, it is necessary to either capture photographs at an appropriate magnification to obtain 64 × 64-sized patches or change the input patch size of the network and modify the network structure accordingly. The time required to inspect each product image (approximately 5.5 s) is far from real-time processing, and accelerating the process is another issue for future work. There are two methods for accelerating this process: reduce the processing time for the patches, and reduce the number of patches. To reduce processing time, it is essential to decrease the model size. Studies [12, 13] outlined in section 2 proposed lightweight models, such as bottleneck layers with 1 × 1 convolutions. Additionally, the most recent study on inpainting [37] employs a lightweight attention mechanism with a group convolution module as a generator in the adversarial generative network framework, reducing the number of parameters to 7.3 M. This module also incorporates a parameter reduction mechanism using 1 × 1 convolutions. In contrast, the PConv U-Net used in this study has 33.3 M parameters, and there is potential to reduce processing time by replacing it with a network based on this generator. Furthermore, a study on generating high-density images from low-density ones using an inpainting network [38] demonstrated a speed improvement of up to 9.05 times by replacing the U-Net-based generator with a ResNet-based one. Therefore, redesigning with a ResNet-based architecture also appears promising. The novelty of this study lies in its approach of repairing masked blobs using an inpainting network and detecting silver streaks by evaluating the repair errors. This innovation would remain unaffected even if the PConv U-Net were replaced by another inpainting network. In addition, one method that has an immediate effect on reducing the processing time is to use a highperformance GPU. Comparing the GTX 1080 Ti (Nvidia), which is a GPU from a few generations ago, with the GPU used in the experiment (RTX 4060 laptop), the speed of the inspection process was improved by approximately 20%. Therefore, we can expect a reduction in time using an even more powerful GPU. Figure 13. Example of a flow mark (area highlighted by the yellow line). Figure 14. Left: DAGM class 9 texture with defects marked in the yellow squares. Right: result of extracting and masking blobs with conspicuously low intensity from their surroundings. Next, the number of patches handled by each PC can be reduced by dividing the patches among multiple PCs. Although the cost of the inspection equipment will increase, it should be within the range of labour costs that can be reduced through automation. Finally, the versatility of the proposed method is discussed. As outlined in section 3.1, our method employs a Log filter as a pre-processing step to detect regions that differ in intensity from their surroundings. The Log filter is effective in detecting silver streaks, which are the focus of our automated inspection. The inpainting network is then used to separate the silver streaks and the texture patterns simultaneously detected by the filter. Consequently, if silver streaks can be detected by the Log filter, the method can be applied to textures other than the embossed patterns used in this study. This is supported by the following observations. In addition to the intended embossing pattern, the surface of plastic-moulded products often exhibits textures caused by resin flow (flow marks) or the merging of molten resin (weld lines). These textures, which are acceptable within properly controlled production processes, were present on all the products used in this experiment (figure 13). Despite this, the inpainting network successfully recognised the silver streaks on these textures without misclassifying the textures themselves in the experiments. In particular, the network also learned to inpaint the defect-free blobs detected on these textures while distinguishing the silver streaks. Next, the applicability of this method is limited in terms of its ability to handle a wide range of defects and materials. For the method to be applicable, the defect must be detectable by the Log filter, meaning its intensity must be more prominent than its surrounding texture. Additionally, some texture, extractable by the filter, must be present on the material’s surface. Without this, it would not be possible to train the network using defect-free blobs. MVTecAD [39], a well-known dataset for anomaly detection in industrial products, does not appear to contain any of its 15 categories (such as bottles, metals, etc) that would suit the validation of our method. In contrast, the DAGM texture dataset [40] includes several textures that meet these conditions and are potentially applicable (figure 14). This represents a limitation of the proposed method. 6. Conclusions We have proposed an automatic silver streak inspection method using an inpainting network specialised for repairing images in which embossed textures are masked. The experimental results show that the proposed method could detect defects in images with extremely high accuracy. However, defects that did not appear as blobs in the image could not be detected, and this was not a real-time inspection process. Future issues to be addressed include establishing an optimal imaging system that can also capture hard-to-see defects and accelerate the processing time. Acknowledgments This study was supported by TAKAKI DELTA CHEMICAL CO., Ltd. Conflicts of interest The author declares no conflict of interest. Data availability statement The data cannot be made publicly available upon publication because they contain commercially sensitive information. The data that support the findings of this study are available upon reasonable request from the authors. Consent to participate Not applicable. ORCID iDs Kazumoto Tanaka [https://orcid.org/0000-0002-7324-3201](https://orcid.org/0000-0002-7324-3201) References [1] Azamfirei V, Psarommatis F and Lagrosen Y 2023 Application of automation for in-line quality inspection, a zero-defect [manufacturing approach J. Manuf. Syst. 67 1–22](https://doi.org/10.1016/j.jmsy.2022.12.010) [2] Malamas E N, Petrakis E G M, Zervakis M, Petit L and Legat J-D 2003 A survey on industrial vision systems, applications and tools [Image Vision Comput. 21 171–88](https://doi.org/10.1016/S0262-8856%0x2802%0x2900152-X) [3] Zheng X, Zheng S, Kong Y and Chen J 2021 Recent advances in surface defect inspection of industrial products using deep learning [techniques Int. J. Adv. Manuf. Technol. 113 35–58](https://doi.org/10.1007/s00170-021-06592-8) [4] Dong H, Song K, He Y, Xu J, Yan Y and Meng Q 2020 PGA-net: pyramid feature fusion and global context attention network for [automated surface defect detection IEEE Trans. Ind. Inf. 16 7448–58](https://doi.org/10.1109/TII.2019.2958826) [5] [Simonyan K and Zisserman A 2015 Very deep convolutional networks for largescale image recognition Proc. ICLR 2015 (https://doi.](https://doi.org/10.48550/arXiv.1409.1556) [org/10.48550/arXiv.1409.1556)](https://doi.org/10.48550/arXiv.1409.1556) [6] Ma J, Liu M, Hu S, Fu J, Chen G and Yang A 2023 A novel CNN ensemble framework for bearing surface defects classification based on [transfer learning Meas. Sci. Technol. 34 025902](https://doi.org/10.1088/1361-6501/ac9c22) [7] [Ma J, Hu S, Fu J and Chen G 2024 A hierarchical attention detector for bearing surface defect detection Expert Syst. Appl. 239 122365](https://doi.org/10.1016/j.eswa.2023.122365) [8] [Koonce B 2021 ResNet 50 Convolutional Neural Networks with Swift for Tensorflow (Apress) (https://doi.org/10.1007/978-1-4842-](https://doi.org/10.1007/978-1-4842-6168-2_6) [6168-2_6)](https://doi.org/10.1007/978-1-4842-6168-2_6) [9] Shang H, Sun C, Liu J, Chen X and Yan R 2023 Defect-aware transformer network for intelligent visual surface defect detection Adv. [Eng. Inf. 55 101882](https://doi.org/10.1016/j.aei.2023.101882) [10] Guo F, Liu J, Qian Y and Xie Q 2024 Rail surface defect detection using a transformer-based network Journal of Industrial Information [Integration 38 100584](https://doi.org/10.1016/j.jii.2024.100584) [11] Yu X, Wang J, Zhao Y and Gao Y 2023 Mix-ViT: mixing attentive vision transformer for ultra-fine-grained visual categorization Pattern [Recognit. 135 109131](https://doi.org/10.1016/j.patcog.2022.109131) [12] Iqbal I, Younus M, Walayat K, Kakar M U and Ma J 2021 Automated multi-class classification of skin lesions through deep [convolutional neural network with dermoscopic images Comput. Med. Imaging Graph. 88 101843](https://doi.org/10.1016/j.compmedimag.2020.101843) [13] Iqbal I, Ullah I, Peng T, Wang W and Ma N 2025 An end-to-end deep convolutional neural network-based data-driven fusion framework for identification of human induced pluripotent stem cell-derived endothelial cells in photomicrographs Eng. Appl. Artif. [Intell. 139 109573](https://doi.org/10.1016/j.engappai.2024.109573) [14] Xu C, Famouri M, Bathla G, Shafiee M J and Wong A 2025 High-throughput, high-performance deep learning-driven light guide plate [surface visual quality inspection tailored for real-world manufacturing environments Proc. AAAI-23 15745–51](https://doi.org/10.1609/aaai.v37i13.26869) [15] Liang Y, Xu K, Zhou P and Zhou D 2022 Automatic defect detection of texture surface with an efficient texture removal network Adv. [Eng. Inf. 53 101672](https://doi.org/10.1016/j.aei.2022.101672) [16] [Explore Ultralytics YOLOv8 https://yolov8.com/](https://yolov8.com/) [17] Zhou S, Zhu H, Liu X, Hu Q, Lu H and Peng Z 2024 Wood surface defect detection based on improved YOLOv8s IAENG International Journal of Computer Science 51 186–94 [18] Rudolph M, Wandt B and Rosenhahn B 2021 Same same but differnet: semi-supervised defect detection with normalizing flows Proc. [WACV2021 1906–15](https://doi.org/10.1109/WACV48630.2021.00195) [19] Roth K, Pemula L, Zepeda J, Schölkopf B, Brox T and Gehler P V 2022 Towards total recall in industrial anomaly detection Proc. [CVPR2022 14298–308](https://doi.org/10.1109/CVPR52688.2022.01392) [20] Zavrtanik V, Kristan M and Skočaj D 2021 DRÆM—a discriminatively trained reconstruction embedding for surface anomaly [detection Proc. ICCV2021 8310–9 (virtual)](https://doi.org/10.1109/ICCV48922.2021.00822) [21] Wang Z, Bovik A C, Sheikh H R and Simoncelli E P 2004 Image quality assessment: from error visibility to structural similarity IEEE [Trans. Image Process. 13 600–12](https://doi.org/10.1109/TIP.2003.819861) [22] Bergmann P, Lowe S, Fauser M, Sattlegger D and Steger C 2019 Improving unsupervised defect segmentation by applying structural [similarity to autoencoders Proc. VISAPP219 372–80](https://doi.org/10.5220/0007364503720380) [23] Jiang J, Zhu J, Bilal M, Cui Y, Kumar N, Dou R, Su F and Xu X 2023 Masked swin transformer U-net for industrial anomaly detection [IEEE Trans. Ind. Inf. 19 2200–9](https://doi.org/10.1109/TII.2022.3199228) [24] Li Z, Li N, Jiang K, Ma Z, Wei X, Hong X and Gong Y 2020 Superpixel masking and inpainting for self-supervised anomaly detection Proc. 31st BMVC (virtual) [25] Jing Y, Zheng H, Zheng W and Dongm K 2022 A pixel-wise foreign object debris detection method based on multi-scale feature [inpainting Aerospace 9 480](https://doi.org/10.3390/aerospace9090480) [26] Nakanishi H, Suzuki M and Matsuo Y 2022 Fixing the train-test objective discrepancy: iterative image inpainting for unsupervised [anomaly detection J. Inf. Process. 30 495–504](https://doi.org/10.2197/ipsjjip.30.495) [27] [Zhang X, Zhai D, Li T, Zhou Y and Lin Y 2023 Image inpainting based on deep learning: a review Information Fusion 90 74–94](https://doi.org/10.1016/j.inffus.2022.08.033) [28] Gong D, Liu L, Le V, Saha B, Mansour M R, Venkatesh S and van den Hengel A 2019 Memorizing normality to detect anomaly: [memory-augmented deep autoencoder for unsupervised anomaly detection Proc. ICCV2019 1705–14](https://doi.org/10.1109/ICCV.2019.00179) [29] [Lindeberg T 1998 Feature detection with automatic scale selection Int. J. Comput. Vision 30 79–116](https://doi.org/10.1023/A:1008045108935) [30] Liu G, Reda F A, Shih K J, Wang T-C, Tao A and Catanzaro B 2018 Image inpainting for irregular holes using partial convolutions Proc. ECCV2018 85–100 [31] Ronneberger O, Fischer P and Brox T 2015 U-net: convolutional networks for biomedical image segmentation Proc. MICCAI2015 234–41 [32] Kingma D P and Ba J 2015 Adam: a method for stochastic optimization Proc. ICLR2015 [33] [Bradley A P 1997 The use of the area under the roc curve in the evaluation of machine learning algorithms Pattern Recognit. 30 1145–59](https://doi.org/10.1016/S0031-3203%0x2896%0x2900142-2) [34] Muller M P, Tomlinson G, Marrie T J, Tang P, McGeer A, Low D E, Detsky A S and Gold W L 2005 Can routine laboratory tests discriminate between severe acute respiratory syndrome and other causes of community-acquired pneumonia? Clinical Infectious [Diseases 40 1079–86](https://doi.org/10.1086/428577) [35] Ha H and Jeong J 2021 CNN-based defect inspection for injection molding using edge computing and industrial IoT systems Appl. Sci. [11 6378](https://doi.org/10.3390/app11146378) [36] Fu G, Jia S, Zhu W, Yang J, Cao Y, Yang M Y and Cao Y 2022 Fusion of multi-light source illuminated images for effective defect [inspection on highly reflective surfaces Mech. Syst. Sig. Process. 175 109109](https://doi.org/10.1016/j.ymssp.2022.109109) [37] Chen Y, Xia R, Yang K and Zou K 2024 GCAM: lightweight image inpainting via group convolution and attention mechanism [International Journal of Machine Learning and Cybernetics 15 1815–25](https://doi.org/10.1007/s13042-023-01999-z) [38] Zhou Z, Kuang W, Wang Z and Huang Z-L 2022 ResNet-based image inpainting method for enhancing the imaging speed of single [molecule localization microscopy Opt. Express 30 31766–84](https://doi.org/10.1364/OE.467574) [39] Bergmann P, Batzner K, Fauser M, Sattlegger D and Steger C 2021 The MVTec anomaly detection dataset: a comprehensive real-world [dataset for unsupervised anomaly detection Int. J. Comput. Vision 129 1038–59](https://doi.org/10.1007/s11263-020-01400-4) [40] Wieler M, Hahn T and Hamprecht F A 2007 Weakly supervised learning for industrial optical inspection DAGM Symposium 6

섹션 본문

섹션 본문이 없습니다.

참고문헌 33건

  1. A survey on industrial vision systems, applications and tools Image and Vision Computing · Elsevier BV · 2003 10.1016/s0262-8856(02)00152-x
  2. (제목 없음) International Journal of Computer Vision · Springer Science+Business Media · 1998 10.1023/a:1008045108935
  3. Can Routine Laboratory Tests Discriminate between Severe Acute Respiratory Syndrome and Other Causes of Community‐Acquired Pneumonia? Clinical Infectious Diseases · Oxford University Press · 2005 10.1086/428577
  4. Image quality assessment: from error visibility to structural similarity IEEE Transactions on Image Processing · Institute of Electrical and Electronics Engineers · 2004 10.1109/tip.2003.819861
  5. The use of the area under the ROC curve in the evaluation of machine learning algorithms Pattern Recognition · Elsevier BV · 1997 10.1016/s0031-3203(96)00142-2
  6. Improving Unsupervised Defect Segmentation by Applying Structural Similarity to Autoencoders Proceedings of the 17th International Joint Conference on Computer Vision, Imaging and Computer Graphics Theory and Applications · 2019 10.5220/0007364503720380
  7. Very Deep Convolutional Networks for Large-Scale Image Recognition arXiv (Cornell University) · Cornell University · 2014 10.48550/arxiv.1409.1556
  8. Memorizing Normality to Detect Anomaly: Memory-Augmented Deep Autoencoder for Unsupervised Anomaly Detection 2019 10.1109/iccv.2019.00179
  9. PGA-Net: Pyramid Feature Fusion and Global Context Attention Network for Automated Surface Defect Detection IEEE Transactions on Industrial Informatics · Institute of Electrical and Electronics Engineers · 2019 10.1109/tii.2019.2958826
  10. Automated multi-class classification of skin lesions through deep convolutional neural network with dermoscopic images Computerized Medical Imaging and Graphics · Elsevier BV · 2020 10.1016/j.compmedimag.2020.101843
  11. The MVTec Anomaly Detection Dataset: A Comprehensive Real-World Dataset for Unsupervised Anomaly Detection International Journal of Computer Vision · Springer Science+Business Media · 2021 10.1007/s11263-020-01400-4
  12. Same Same But DifferNet: Semi-Supervised Defect Detection with Normalizing Flows 2021 10.1109/wacv48630.2021.00195
  13. Recent advances in surface defect inspection of industrial products using deep learning techniques The International Journal of Advanced Manufacturing Technology · Springer Science+Business Media · 2021 10.1007/s00170-021-06592-8
  14. Towards Total Recall in Industrial Anomaly Detection 2022 IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR) · 2022 10.1109/cvpr52688.2022.01392
  15. CNN-Based Defect Inspection for Injection Molding Using Edge Computing and Industrial IoT Systems Applied Sciences · Multidisciplinary Digital Publishing Institute · 2021 10.3390/app11146378
  16. DRÆM – A discriminatively trained reconstruction embedding for surface anomaly detection 2021 IEEE/CVF International Conference on Computer Vision (ICCV) · 2021 10.1109/iccv48922.2021.00822
  17. Fusion of multi-light source illuminated images for effective defect inspection on highly reflective surfaces Mechanical Systems and Signal Processing · Elsevier BV · 2022 10.1016/j.ymssp.2022.109109
  18. ResNet 50 Apress eBooks · 2021 10.1007/978-1-4842-6168-2_6
  19. Automatic defect detection of texture surface with an efficient texture removal network Advanced Engineering Informatics · Elsevier BV · 2022 10.1016/j.aei.2022.101672
  20. ResNet-based image inpainting method for enhancing the imaging speed of single molecule localization microscopy Optics Express · Optica Publishing Group · 2022 10.1364/oe.467574
  21. Fixing the Train-test Objective Discrepancy: Iterative Image Inpainting for Unsupervised Anomaly Detection Journal of Information Processing · Information Processing Society of Japan · 2022 10.2197/ipsjjip.30.495
  22. Masked Swin Transformer Unet for Industrial Anomaly Detection IEEE Transactions on Industrial Informatics · Institute of Electrical and Electronics Engineers · 2022 10.1109/tii.2022.3199228
  23. A Pixel-Wise Foreign Object Debris Detection Method Based on Multi-Scale Feature Inpainting Aerospace · Multidisciplinary Digital Publishing Institute · 2022 10.3390/aerospace9090480
  24. Image inpainting based on deep learning: A review Information Fusion · Elsevier BV · 2022 10.1016/j.inffus.2022.08.033
  25. A novel CNN ensemble framework for bearing surface defects classification based on transfer learning Measurement Science and Technology · IOP Publishing · 2022 10.1088/1361-6501/ac9c22
  26. Mix-ViT: Mixing attentive vision transformer for ultra-fine-grained visual categorization Pattern Recognition · Elsevier BV · 2022 10.1016/j.patcog.2022.109131
  27. Application of automation for in-line quality inspection, a zero-defect manufacturing approach Journal of Manufacturing Systems · Elsevier BV · 2023 10.1016/j.jmsy.2022.12.010
  28. Defect-aware transformer network for intelligent visual surface defect detection Advanced Engineering Informatics · Elsevier BV · 2023 10.1016/j.aei.2023.101882
  29. High-Throughput, High-Performance Deep Learning-Driven Light Guide Plate Surface Visual Quality Inspection Tailored for Real-World Manufacturing Environments Proceedings of the AAAI Conference on Artificial Intelligence · Association for the Advancement of Artificial Intelligence · 2023 10.1609/aaai.v37i13.26869
  30. GCAM: lightweight image inpainting via group convolution and attention mechanism International Journal of Machine Learning and Cybernetics · Springer Science+Business Media · 2023 10.1007/s13042-023-01999-z
  31. A hierarchical attention detector for bearing surface defect detection Expert Systems with Applications · Elsevier BV · 2023 10.1016/j.eswa.2023.122365
  32. Rail surface defect detection using a transformer-based network Journal of Industrial Information Integration · Elsevier BV · 2024 10.1016/j.jii.2024.100584
  33. An end-to-end deep convolutional neural network-based data-driven fusion framework for identification of human induced pluripotent stem cell-derived endothelial cells in photomicrographs Engineering Applications of Artificial Intelligence · Elsevier BV · 2024 10.1016/j.engappai.2024.109573