선정목록으로
A nested autoencoder approach to automated defect inspection on textured surfaces
간접 관련 산업용 섬유 · (17) 스펀본드 부직포 (1) 에어백(3) 자동차 인테리어 소재(24) 패션(코오롱FnC)
기본 정보
- 저자
- DOI
- 10.34768/amcs-2021-0035
- 저널
- International Journal of Applied Mathematics and Computer Science
- 발행년도
- 2021
- 발행기관
- De Gruyter Open
- 피인용수
- 4
- 라이선스
- cc-by-nc-nd
- 논문 유형
- –
- 언어
- –
- 원문 페이지
- https://doi.org/10.34768/amcs-2021-0035
- 토픽
- Surface Roughness and Optical Measurements
- OpenAlex ID
- W3204399907
평가 내용
- 관련도
- 간접 관련
- 사업분야
- 산업용 섬유 · (17) 스펀본드 부직포
- 부 분야
- (1) 에어백, (3) 자동차 인테리어 소재, (24) 패션(코오롱FnC)
- R&D 측면
- 공정·제조
- 확신도
- 0.80
- 근거 용어
- automated visual inspection, defect detection, textured surfaces, fabrics, nested autoencoder
- 판단 근거
- 본 논문은 딥러닝(Autoencoder)을 이용해 질감이 있는 표면(특히 직물/섬유)의 결함을 자동으로 검출하는 기술을 다룹니다. 이는 코오롱인더스트리의 산업용 부직포, 타이어코드, 자동차 인테리어 소재 등의 제조 공정 내 품질 관리(Visual Inspection) 시스템에 직접 적용 가능한 기술입니다.
- R&D 활용 포인트
- 섬유(부직포, 타이어코드 등) 및 인공피혁 생산 라인에서 실시간으로 제품의 결함(구멍, 오염, 실 끊김 등)을 검출하는 지능형 검사 시스템 구축에 활용 가능합니다.
- 평가 입력
- 본문 36,862자
초록
In recent years, there has been a highly competitive pressure on industrial production. To keep ahead of the competition, emerging technologies must be developed and incorporated. Automated visual inspection systems, which improve the overall mass production quantity and quality in lines, are crucial. The modifications of the inspection system involve excessive time and money costs. Therefore, these systems should be flexible in terms of fulfilling the changing requirements of high capacity production support. A coherent defect detection model as a primary application to be used in a real-time intelligent visual surface inspection system is proposed in this paper. The method utilizes a new approach consisting of nested autoencoders trained with defect-free and defect injected samples to detect defects. Making use of two nested autoencoders, the proposed approach shows great performance in eliminating defects. The first autoencoder is used essentially for feature extraction and reconstructing the image from these features. The second one is employed to identify and fix defects in the feature code. Defects are detected by thresholding the difference between decoded feature code outputs of the first and the second autoencoder. The proposed model has a 96% detection rate and a relatively good segmentation performance while being able to inspect fabrics driven at high speeds.
본문 36,862자
본문 펼치기
Int. J. Appl. Math. Comput. Sci., 2021, Vol. 31, No. 3, 515–523
<u>DOI: 10.34768/amcs-2021-0035</u>
A NESTED AUTOENCODER APPROACH TO AUTOMATED DEFECT
INSPECTION ON TEXTURED SURFACES
MUHAMMED ALI NUR OZ <sup>_a,∗_</sup>, OZGUR TURAY KAYMAKCI <sup>_b_</sup>, MUHARREM MERCIMEK <sup>_a_</sup>
_a_ Department of Control and Automation Engineering
Yildiz Technical University
Cifte Havuzlar, Davutpasa Campus, 34220 Esenler, Istanbul, Turkey
e-mail: [{maoz,mercimek}@yildiz.edu.tr](mailto:{maoz, mercimek}@yildiz.edu.tr)
_b_ Department of Electronics Engineering
Canakkale Onsekiz Mart University
Barbaros Mahallesi Terzioglu Campus, Prof. Dr Sevim Bulut Street, No. 20, Canakkale, Turkey
e-mail: [okaymakci@comu.edu.tr](mailto:okaymakci@comu.edu.tr)
In recent years, there has been a highly competitive pressure on industrial production. To keep ahead of the competition,
emerging technologies must be developed and incorporated. Automated visual inspection systems, which improve the overall mass production quantity and quality in lines, are crucial. The modifications of the inspection system involve excessive
time and money costs. Therefore, these systems should be flexible in terms of fulfilling the changing requirements of high
capacity production support. A coherent defect detection model as a primary application to be used in a real-time intelligent
visual surface inspection system is proposed in this paper. The method utilizes a new approach consisting of nested autoencoders trained with defect-free and defect injected samples to detect defects. Making use of two nested autoencoders,
the proposed approach shows great performance in eliminating defects. The first autoencoder is used essentially for feature
extraction and reconstructing the image from these features. The second one is employed to identify and fix defects in the
feature code. Defects are detected by thresholding the difference between decoded feature code outputs of the first and the
second autoencoder. The proposed model has a 96% detection rate and a relatively good segmentation performance while
being able to inspect fabrics driven at high speeds.
Keywords: autoencoders, defect detection, automatic visual inspection, deep learning.
1. Introduction
The globalization of industry is gaining momentum and its
scope of influence is increasing. Renovating the machine
and information technology infrastructure for a company
can be a solution as long as the risk to reward ratio is
remarkable. Companies rarely endorse such changes. On
the other hand, expectations of target customers regarding
product quality and quantity must be met to keep a
competitive edge in this race. Thus, having a leading-edge
product inspection maintains its importance. Automated
visual inspection systems, one of the key technologies
in industrial manufacturing or production, lifts the total
production quantity and quality compared with those
obtained with traditional inspection methods.
_∗_ Corresponding author
© 2021 M.A.N. Oz et al.
This is an open access article distributed under
Visual inspection can be described as examining
industrial products by acquiring image data of different
modalities. Certain standards, specifications or
requirements should be considered in doing so. Color,
area/volume defects, texture printing offsets, thread/knit
defects are some of the flaws or defects often checked
during the inspection. Exemplifying the principles of
visual inspection systems (VISs) is cumbersome since
these systems differ widely in the type of products and
defects elaborated. Recently, intelligent automated visual
systems have been flourishing to be used in the product
lines, and they share a general workflow to pin down the
defects. This is the category of VISs examined in this
paper.
Essentially the appointed goal for a VIS is to
determine whether or not a product is defective and
<u>M.A.N. Oz</u> _<u>et al.</u>_
51 ~~6~~
to report defects if there are any. Da Costa _et_ _al_ .
(2020) utilized deep residual neural network (ResNet50)
classifiers to sort defective products. Wei _et_ _al_ .
(2019) proposed the use of compressive sensing for the
augmentation of the training samples, which enables
training convolutional neural networks (CNNs) with a
satisfying performance from a small number of samples.
Zhang _et al_ . (2019) proposed an on-line detection system
that can capture multiple images from different angles to
detect defects.
The objective of a VIS can be appointed solely as
the classification of a product as either defective or not,
and this can be worthwhile in some applications. On
the other hand, developing an inspection technology now
demands the extraction of detailed reports by getting
involved with the depiction and localization of the defects.
The number, location, size, and type of defects determine
the quality of the product. Generally, if the quality of
a product cannot be brought to a certain level, then it
will be priced accordingly. Furthermore, information
about defects can also be used to detect and prevent
malfunctioning processes in the production line. Hence,
a VIS should be able to extract comprehensive data from
defects.
To segment out defects, Li _et_ _al._ (2019b)
introduced a new texture-feature description operator,
the multi-directional binary pattern (MDBP). The
operator was reported to be detecting defects using a
threshold obtained from the similarity between the feature
matrices extracted from non-defective and defective
fabric images. Also, Li _et al._ (2019a) proposed separating
images into defective and background regions using
low-rank decomposition and efficient second-order
orientation-aware descriptors. Yu _et_ _al_ . (2018) presented
a coarse-to-fine model to find rail surface defects, and
Wang _et_ _al_ . (2018) proposed a guidance template-based
method. A fully convolutional neural network was
proposed to detect and identify defects on different types
of surfaces: wooden surfaces (He _et al._, 2019; 2020), tires
(Wang _et_ _al._, 2019b) and fabrics (Ouyang _et_ _al_ ., 2019).
Although these methods perform well, they essentially
suffer from the use of a limited number of samples as the
input.
In the production line, products in focus can be
replaced by structurally different new ones. Hence,
the VIS should be applicable, rapidly and conveniently
adjustable to these new products. Lizarraga-Morales
_et_ _al_ . (2019) proposed rough-set-based rules involving
the extraction of binary features from both defective and
defect-free images and in this wise detection of defects on
textiles with certain patterns. For defect detection, Li _et al_ .
(2016) presented Fisher criterion based stacked denoising
autoencoders trained with limited defect-free samples.
Luo _et al_ . (2019) proposed the selectively dominant local
binary patterns framework that could be applied to a
variety of manufacturing industries. Wang _et_ _al._ (2019a)
presented an entity sparsity pursuit to identify rare defects
that violate the low-rank structure of the image. Alipour
and Harris (2020) proposed improving the robustness of
material-specific deep learning models for crack detection
to be used for various materials. The most significant
shortcoming of these methods is that a large data set is
always required to train or adjust these models.
The systems in industrial production are designed
to minimize defects, thus obtaining sufficiently
defective images of the products for training becomes
a time-consuming task. Recently, researchers have
proposed systems that do not need defective data
to develop all-purpose intelligent VISs. Lian _et_ _al_ .
(2019) proposed an adversarial network to generate
numerous exaggerated samples on the defects to improve
the performance of the classifiers. Sun _et_ _al_ . (2019)
used transfer learning with adaptive multiscale image
collection. To detect defects without negative samples, Jia
_et al_ . (2020) proposed splitting the image into lattices and
measuring image similarity with respect to the template
statistics learned from defect-free samples. Similarly,
Kang and Zhang (2019) presented the Elo-rating
algorithm and utilized it on the integral image to detect
defects in fabrics. Similar efforts for the same objective
have been undertaken in several other research areas
involving unsupervised deep learning methods such
as the stacked de-noising convolutional auto-encoder
(Xie _et_ _al_ ., 2019) or the deep convolutional generative
adversarial network (Hu _et al_ ., 2019).
The methods mentioned above deserve appreciation,
yet a significant amount of human intervention to
keep the system running remains a necessity. Yang
_et_ _al_ . (2019) addressed this problem and proposed
a fast and accurate multiscale feature-clustering-based
convolutional autoencoder method using only defect-free
samples; the detection of defects with high accuracy
with very little human intervention was achieved.
Similarly, Bergmann _et_ _al_ . (2019) advised the use
of unsupervised-learning-based convolutional denoising
autoencoder networks consisting of different Gaussian
pyramid levels. The capabilities of these methods are
the state of the art, yet training times, the size of the
presented networks and the data sets that were used to test
performance were kept fairly simple.
The main thrust of this paper is establishing a defect
detection model to be used in a real-time intelligent visual
surface inspection system. The system can detect defects
that are scattered on repetitive textures patterns with high
accuracy, and the method requires very low training time
as well as low memory. The proposed approach does not
require defective samples for the training phase, and it can
be used in a variety of different materials.
<u>A nested autoencoder approach to automated defect inspection on textured surfaces</u>
~~51~~ 7
Encoder Network Decoder Network
conv1
conv2
conv3
2. Proposed approach
conv12
conv12
conv4
conv5
conv6
fc1
fc2
fc3
fc4
fc5
conv11
conv10
conv7 conv8 conv9
conv11
conv10
Subtraction
conv7 conv8 conv9
fc6
Fig. 1. Overall architecture of the proposed nested AE model.
2.1. Network architecture of the nested autoencoder.
Traditionally, neural networks are trained to detect and
segment defective areas of images using labeled images of
both defective and normal samples. However, creating a
balanced training set that includes numerous defect types
is a challenging task as defects are usually very rare.
Taking advantage of unsupervised learning approaches,
which do not require labeled data, neural networks can
be trained to segment defects without defective samples.
Autoencoders (AEs) are the most widely used
architectures for unsupervised learning tasks. They can
reconstruct an image without the manipulation of a user
or the need for label. An AE forces the data through a
bottleneck and then reconstructs, the original data from
the bottleneck representation which is also referred to as
code. Standard fully connected AEs perform poorly on
images and the size of the neural network for acceptable
performance has to be quite large. This results in a poor
and tedious training phase.
Convolutional autoencoders (CAEs), on the other
hand, can capture local spatial features by a series of
filters called kernels and, with a large number of layers,
extract high-level features from an image. An encoder,
which houses the generation of the bottleneck effect and
produces a feature representation as the result, can be
designed using the convolution and pooling layer. The
decoder, which reconstructs the image from the feature
representation, can be built using the upsampling and
convolution layers.
It is assumed that, by training convolutional
autoencoders on defect-free samples, the CAE gains
the ability to extract only features related to defect-free
samples. Therefore, when a defect is present on the tested
image, the CAE will not be able to regenerated the same
defect at its output. Taking advantage of this property,
defects can be detected and segmented using the residuals
of the input and output image. However, a major problem
with this assumption is that AEs tend to “peek” at the input
image, thus generating an image that is more similar to the
defective input one than its defect-free equivalent (Bhattad
_et_ _al_ ., 2018). This peeking behavior, which is a result of
features that AEs learn during training, might also be able
to represent defective areas of input images.
A simple way to overcome this problem is the use of
a narrower bottleneck. This provides better reconstruction
performance, yet presents fewer reconstruction details.
Another method is to train CAEs to exploit randomly
applied masks similar to denoising AEs. However, this
method is computationally expensive in application.
In this paper, we propose a nested AE architecture
for real-time defect detection which is capable of turning
defective images into their defect-free counterparts and
segmenting out the texture defects seen in inspected
images. It also provides a low run time and training time
as well as low complexity. The proposed architecture
suggests that two nested AEs can overcome the cheating
habits of AEs. The first one is composed of CNNs
and extracts useful features for the reconstruction of the
image, and it will be referred to as the feature extraction
AE.
The encoding module of the feature extraction AE,
_E_, first transforms the defective input image _X_ ˜ to
<u>M.A.N. Oz</u> _<u>et al.</u>_
51 ~~8~~
_Training: Step 1_
Input Images
(Defectless Samples)
Feature
Encoder
Feature Autoencoder
(Convolutional Nueral Network)
Defect Injection
� <sup>�</sup> �
Concancate
Feature
Decoder
Split Images
��
�
_Training: Step 2_
���� � <sup>�</sup> ��
���� � �����
- � �� � <sup>�</sup> ��
Reconstrution Autoencoder
(Dense Nueral Network)
Reconstruction
Encoder
Reconstruction
Decoder
- � �� � <sup>�</sup> �� - � �� � ��
Fig. 2. Training steps of the proposed nested AE defect detection scheme.
the feature space, where the image is encoded into a
one-dimensional feature vector _C_ . The encoder module
can be defined as a nonlinear mapping function
_E_ : _X_ _→_ _C,_
and input image feature vectors _C_ <sup>˜</sup> _′_ . As a result, a
predicted flawless image _X_ <sup>_c_</sup> and the reconstructed image
_X_ _′_ are obtained. The decoder module can be defined as a
and input image feature vectors _C_ <sup>˜</sup>
_X_ _′_ are obtained. The decoder module can be defined as a
nonlinear mapping function
_′_ ) _,_
_C_ = _E_ ( _X_ ) _,_
_C_ = _ϕE_ ( _WE_ _◦_ _X_ + _bE_ ) _,_
_X_
(1)
_X_
_′_ = _D_ ( _C_
_′_ + _bD_ ) _,_
(3)
_′_ = _ϕD_ ( _WD ◦_ _C_
where _WE_, _bE_ and _ϕE_ represent kernels, bias vectors and
the convolution operation, respectively.
Instead of reconstructing a defect-free image, the
second AE, which can be referred to as the prediction
AE, _P_, predicts defect-free counterparts of the extracted
feature vector. Predicting a defect-free image feature
vector _C_ _′_ from the defective feature vector _C_ ˜ _′_ is much
image _X_ _′_ and the reconstructed input image _X_ ˜ _′_ is
computed and then the absolute value of the difference
is used to obtain an error map.
_′_ and the reconstructed input image _X_ ˜
_X_ ˜ _′_ = _D_ ( ˜ _C_ _′_ ) _,_
_X_ ˜ _′_ = _ϕD_ ( _WD ◦_ _C_ ˜ _′_
_X_ ˜
_′_ = _D_ ( ˜ _C_
_′_ = _ϕD_ ( _WD ◦_ _C_ ˜
_′_ + _bD_ ) _,_
_′_ from the defective feature vector _C_ ˜
vector _C_ _′_ from the defective feature vector _C_ ˜ _′_ is much
more effective and robust since the AE cannot distort
the response using the input image or the feature vector.
The reconstruction module can be defined as a nonlinear
mapping function
where _WD_, _bD_ and _ϕD_ represent kernels, bias vectors and
convolution operation, respectively.
The difference between the predicted defect-free
image _X_ _′_ and the reconstructed input image _X_ ˜ _′_ is
_EM_ = _|X_ _′_ _−_ _X_ ˜
_C_
_′_ = _R_ ( ˜ _C_ _′_ ) _,_
_′|._ (4)
(2)
_C_
_′_ = _ϕR_ ( _WR_ ˜ _C_ _′_ + _bR_ ) _,_
where _WR_, _bR_ and _ϕR_ represent kernels, bias vectors and
the convolution operation, respectively.
Finally, the decoder module of the feature extraction
AE generates two images from predicted defect-free _C_ _′_
These two images are used instead of the original image
_X_ ˜ in order to remove the unmodeled detail from the error
map.
A segmented image _S_ is obtained after flaws
are detected and segmented out using a fixed global
<u>A nested autoencoder approach to automated defect inspection on textured surfaces</u>
~~51~~ 9
threshold _T_
_S_ ( _x, y_ ) =
0 if _EM_ ( _x, y_ ) _≥_ _T,_
(5)
1 otherwise _._
train the prediction AE, with the target vector being their
defect-free counterparts as the outputs _C_ out = _CT_ + _CT_ .
The prediction AE is also trained using the mean square
error as the metric
- _N_
_i_ =1
_′_
�� _C_ in _−_ _C_ out��2 _,_ (7)
The overall architecture of the proposed model is given in
Fig. 1.
2.2. Training nested AE for defect detection. The
design of a real-time inspection system can be a long
and arduous task. The execution time of the algorithms
must be precise and very low to meet the production
speed demands. A defect detection algorithm must
be as simple as possible while ensuring high detection
rates. Furthermore, the algorithm must be able to process
multiple split images in parallel without paying an extra
bit of attention to its context. In that, training input
images _X_ should be fragmented into the dimensions of
the smallest repetitive pattern. In the proposed defect
detection scheme, training and testing are carried out
without any delays in processing the fragmented images.
Our assumption is that the lighting is optimal and the
image acquisition system is stable.
To train the nested AE with only a few good samples,
fragmented images _XT_ are intentionally injected with
defects. This step is similar to the corruption step of
denoising the AE, but instead of random noise, the images
are injected with artificial defects such as randomly
generated lines, solid and translucent circles. These
artificial defects have been chosen empirically to train the
network, and they carry characteristics similar to the ones
of the defects encountered in real-life systems.
The proposed architecture is trained in two phases,
and training the feature extraction AE is the first phase.
This AE projects the images to be inspected to a
one-dimensional invertible feature space. To this end,
both good fabric _XT_ and the defect injected samples _X_ <sup>˜</sup> _T_
are concatenated and used to train the feature extraction
AE. Training is considered successful when the smallest
texture fibers and minimum size defects are accurately
modeled in the reconstructed images. The feature
extraction AE is trained according to the mean square
error
_L_ pr = <sup>1</sup>
_N_
where _C_ out _′_ <sup>is the predicted output.</sup>
The training scheme steps are given in Fig. 2.
2.3. Testing the nested AE. Once the images to be
detected are split into patches of convenient sizes, for each
patch the corresponding feature vector is extracted with
the help of the encoder module of the feature extraction
AE. A feature vector is then fed into the prediction AE to
get its counterpart defect-free feature vector. These two
vectors are then converted back to the image domain by
the decoder module of the feature extraction AE. Finally,
two images are obtained as
_X_ ˜
_T′_ <sup>=</sup> <sup>_D_</sup> <sup>(</sup> <sup>_E_</sup> <sup>( ˜</sup> <sup>_XT_</sup> <sup>))</sup> <sup>_,_</sup>
_XT_ <sup>_c_</sup> <sup>=</sup> <sup>_D_</sup> <sup>(</sup> <sup>_P_</sup> <sup>(</sup> <sup>_E_</sup> <sup>( ˜</sup> <sup>_XT_</sup> <sup>)))</sup> <sup>_,_</sup>
(8)
�� _XT i −_ _XT_
_′_
_i_
where _X_ ˜ _T_ is the image to be inspected, _X_ ˜ _T′_ <sup>is</sup> <sup>the</sup>
reconstructed image and _XT_ is the defect-free image.
An error map is generated with a simple difference
operation between these two images. The error map
is passed through a simple average filter for better
visualization of the regions with errors. The threshold
level, used to detect and segment flaws from the EM, is
chosen as the maximum value of the error maps calculated
from good fabric samples.
2.4. Experimental results. In this section, the
proposed nested AE structure is tested on a challenging
data set and the performance is presented and discussed.
Since the method is designed to be used in defect detection
systems, defect detection performance will be evaluated
considering the rates more than the segmentation success.
Other performance criteria such as the speed, size, and
complexity of the algorithm will be discussed.
We tested our method on the MVTec anomaly
detection data set, which is a quite complex and
challenging dataset for defect inspection when compared
with the ones in the literature (MVTEC AD, 2019). The
data set consists of 3629 images from 15 categories
for training and verification, and 1725 images from
15 categories for testing. The proposed method has
been tested on the carpet image set, which is indeed a
textile product, and contains 279 samples for training
and 117 samples for testing. The training set consists
of only defect-free images. The test set consists of
flawless images coming along with various types of
_L_ out = <sup>1</sup>
_N_
- _N_
_i_ =1
��2 _,_ (6)
where _N_ is the batch size.
In the second phase, the prediction AE is trained to
predict the corresponding defect-free feature vector from
the input. After the successful training of the feature
extraction AE, good fabric samples and defect injected
samples are passed through the encoder of the outer
AE, resulting in defective _C_ <sup>˜</sup> _T_ and their corresponding
good feature vectors _CT_ . Defective feature vectors and
defect-free vectors are concatenated as _C_ in = _C_ <sup>˜</sup> _T_ + _CT_ to
<u>M.A.N. Oz</u> _<u>et al.</u>_
52 ~~0~~
Table 1. Accuracy (Acc.), sensitivity (Sens.) and specificity
(Spec.) measures calculated for each defect type.
Defect No. of No. of Acc. Sens. Spec.
types images faults
Color 19 21 0.7619 0.7619
Cut 17 18 1.0000 1.0000
Good 28 28 1.0000 - 0.0000
Hole 17 17 0.8500 1.0000 1.0000
Metal
Cont.
17 18 1.0000 1.0000
Fig. 3. Test results of the proposed nested AE model for five dif
ferent defect types. Top to bottom are the original defective samples, ground-truth regions, reconstructed images
and predicted defect-free images, respectively.
defects such as color, cut, hole, metal contamination, and
thread. Synthetic defects similar to the abnormalities
that may arise in real industrial inspection scenarios were
superposed onto the test images. All images have a spatial
resolution of 1024 _×_ 1024 pixels. The images are reported
to be acquired under optimal lighting conditions. For the
derived defective image regions, there are accompanying
pixel-level segmented patch images, and these can be
treated as the ground truth for the defects.
For a comprehensive defect detection task, both
the shape and size of the defect must be accurately
determined. The performance of the method is evaluated
with respect to these two attributes of the defects.
Accuracy, sensitivity, specificity criteria will be used
to discuss defect detection performance. Test results
will be labeled as true-positive (TP), false-positive (FP),
true-negative (TN) and false-negative (FN). If a defective
image is classified as defective, then the test result is TP;
however, if the defective image is classified as defect-free
then the test result is FN. Similarly, if a defect-free image
is classified as defective, then the test result is FP and also
if a defect-free image is classified as defect-free than the
test result is TN. The expressions for accuracy, sensitivity,
specificity terms can be stated as follows:
TP + TN
accuracy = TP + TN + FP + FN <sup>_,_</sup>
TP
sensitivity = TP + FN <sup>_,_</sup>
TN
specificity = TN + FP <sup>_._</sup>
(9)
Thread 19 20 1.0000 1.0000
All 117 122 0.9660 0.9468 0.9677
Accuracy, sensitivity and specificity measures
calculated for each defect type are given in Table 1.
Accuracy is the ability to distinguish defective and good
samples. The proposed method is able to mark 96% of all
cases correctly. It has a low accuracy of 76% in color
defects, which is essentially because we experimented
on monochrome images for the sake of computation
time, and the network size and the color characteristics
of the samples were ignored. Consequently, color
defects that are originally present can be indistinguishable
in monochrome image use. Sensitivity measures the
ability to differentiate defective samples correctly, just
like specificity measures the ability to differentiate good
samples.
In order to evaluate the defective region segmentation
performance of the method, the relative per-region overlap
of the segmentation set _Ss_ and ground truth set _Sg_
is calculated using the Jaccard index, which is the
intersection between two sets divided by their union,
_LC_ = <sup>_|Ss ∩_</sup> <sup>_Sg|_</sup> (10)
_|Ss ∪_ _Sg|_ <sup>_._</sup>
Defect detection and defective region segmentation
performance of the proposed method is compared with the
results of commonly used methods taken from the work
of Bergmann _et al_ . (2019) and the results are presented in
Table 2. The reconstructed images are given in Fig. 3 to
exemplify the performance of these methods for different
defect types.
Even when tested on a challenging data set, the
proposed method is able to detect and segment defective
regions successfully. The segmentation success depends
on the size of the defect dealt with. Segmentation of
thin or tiny defects is a demanding task. One reason
for this is the minimum threshold, which results in zero
false positives in training images. Altering the number
of pixels fit inside the anticipated minimum defect size
<u>A nested autoencoder approach to automated defect inspection on textured surfaces</u>
~~52~~ 1
Table 2. Detection rates and segmentation (Seg.) performance comparison of the proposed method with other commonly used ap
proaches such as structural similarity autoencoders, L2 autoencoders, anomaly detection with generative adversarial networks,
CNN feature dictionary and texture inspection. Top to bottom are the ratio of correctly classified normal samples, correctly
classified defective samples and overall segmentation performance values, respectively.
AE
Per. Ours
(SSIM)
AE
(L2)
AnoGAN
CNN
feature
dictionary
Texture
inspection
Detection
rates
0.97 0.43 0.57 0.82 0.89 0.57
0.95 0.97 0.42 0.16 0.36 0.61
Seg. 0.78 0.69 0.38 0.34 0.20 0.29
by increasing the resolution of the image can be still an
expensive way out.
A visual comparison of standard AE based methods
and the proposed method is provided in Fig. 4. Vanilla
AEs and denoising AEs are trained to have the same
layers as the external AE. Their reconstruction capabilities
have been presented to be inefficient by merely evaluating
the test results. As mentioned before, the strong reason
why both the denoising AE and the vanilla AE fail to
reconstruct a defect-free image is their direct connection
to the input image causing AEs to cheat. The proposed
method overcomes their incompetence by employing an
inner AE, which also has the advantage of reconstructing
much smaller data. Our method can reconstruct a
defect-free sample even in the most challenging cases.
The proposed method is trained on a PC with an
Nvidia RTX 2080 GPU, equipped with 32 GB of RAM,
an Intel i7-9700k processor, and a Windows 10 64-bit
operating system. The network can be trained under six
hours. The running time of the algorithm is 88 ms for
an image of a 1024 _×_ 1024 resolution. Considering that 1
mm corresponds to 5 pixels and our method is suitable for
parallel operation, it can be deduced that the algorithm can
inspect fabric webs flowing at 2 m/s with several parallel
cameras. Besides, unlike most models in the literature,
this network only has a size of 300 MB and can be used in
embedded systems.
3. Conclusion
With the push of the developing technology and
competitive industrial environment, a great demand has
emerged for intelligent visual inspection systems. An
intelligent visual inspection system should be applicable
to different textured and patterned surfaces and can be
adjusted quickly to new products. Moreover, it should
keep pace with high production speed. Nested AEs are
the main thrust of this study, and the proposed method
can recognize surface defects in the real world and it
requires only defect-free sample images for training. The
first of two nested AEs extracts the features of the image
Fig. 4. Comparison of standard AE based methods with the
proposed nested AE approach. Top to bottom are the
original defective samples, predicted defect-free images
of the vanilla convolutional AE, the denoising convolutional AE and the proposed nested AE, respectively.
and reconstructs the image from these features. The
other is used to identify and fix defects in the feature
code. The nested AE is trainable under six hours
for very complex patterned surfaces. Our method is
suitable for a real-time system due to its small footprint
and fast operation. The proposed approach is tested
on a real-world complex dataset provided by MVTec
with 97% defect detection and 78% pixel-level defective
region segmentation accuracy. In future work, we plan
<u>M.A.N. Oz</u> _<u>et al.</u>_
52 ~~2~~
to increase pixel-level detection accuracy by comparing
reconstructed defective and defect-free images with a
better method instead of a simple subtraction operation.
Acknowledgment
This research is funded by the Scientific and
Technological Research Council of Turkey (TUBITAK)
under the project number 118E607.
References
Alipour, M. and Harris, D.K. (2020). Increasing the robustness
of material-specific deep learning models for crack
detection across different materials, _Engineering_ _Struc-_
_tures_ 206 : 110157.
Bergmann, P., Fauser, M., Sattlegger, D. and Steger, C. (2019).
MVTec AD—A comprehensive real-world dataset for
unsupervised anomaly detection, _Proceedings of the IEEE_
_Conference_ _on_ _Computer_ _Vision_ _and_ _Pattern_ _Recognition,_
_Long Beach, USA_, pp. 9592–9600.
Bhattad, A., Rock, J. and Forsyth, D. (2018). Detecting
anomalous faces with ‘no peeking’ autoencoders, _arXiv_
1802.05798.
da Costa, A.Z., Figueroa, H.E. and Fracarolli, J.A. (2020).
Computer vision based detection of external defects on
tomatoes using deep learning, _Biosystems_ _Engineering_
190 : 131–144.
He, T., Liu, Y., Xu, C., Zhou, X., Hu, Z. and Fan,
J. (2019). A fully convolutional neural network for
wood defect location and identification, _IEEE_ _Access_
7 : 123453–123462.
He, T., Liu, Y., Yu, Y., Zhao, Q. and Hu, Z. (2020). Application
of deep convolutional neural network on feature extraction
and detection of wood defects, _Measurement_ 152 : 107357.
Hu, G., Huang, J., Wang, Q., Li, J., Xu, Z. and
Huang, X. (2019). Unsupervised fabric defect detection
based on a deep convolutional generative adversarial
network, _Textile_ _Research_ _Journal_ 90 (3–4): 247–270,
DOI:10.1177/0040517519862880.
Jia, L., Chen, C., Xu, S. and Shen, J. (2020). Fabric defect
inspection based on lattice segmentation and template
statistics, _Information Sciences_ 512 : 964–984.
Kang, X. and Zhang, E. (2019). A universal defect detection
approach for various types of fabrics based on the
Elo-rating algorithm of the integral image, _Textile Research_
_Journal_ 89 (21–22): 4766–4793.
Li, C., Gao, G., Liu, Z., Huang, D. and Xi, J. (2019a). Defect
detection for patterned fabric images based on GHOG and
low-rank decomposition, _IEEE Access_ 7 : 83962–83973.
Li, F., Yuan, L., Zhang, K. and Li, W. (2019b). A
defect detection method for unpatterned fabric based
on multidirectional binary patterns and the gray-level
co-occurrence matrix, _Textile_ _Research_ _Journal_ 90 (7–8):
776–796, DOI: 10.1177/0040517519879904.
Li, Y., Zhao, W. and Pan, J. (2016). Deformable patterned fabric
defect detection with fisher criterion-based deep learning,
_IEEE_ _Transactions_ _on_ _Automation_ _Science_ _and_ _Engineer-_
_ing_ 14 (2): 1256–1264.
Lian, J., Jia, W., Zareapoor, M., Zheng, Y., Luo, R., Jain, D.K.
and Kumar, N. (2019). Deep learning based small surface
defect detection via exaggerated local variation-based
generative adversarial network, _IEEE Transactions_ _on_ _In-_
_dustrial Informatics_ 16 (2): 1343–1351.
Lizarraga-Morales, R.A., Correa-Tome, F.E., Sanchez-Yanez,
R.E. and Cepeda-Negrete, J. (2019). On the use of binary
features in a rule-based approach for defect detection on
patterned textiles, _IEEE Access_ 7 : 18042–18049.
Luo, Q., Fang, X., Sun, Y., Liu, L., Ai, J., Yang, C. and Simpson,
O. (2019). Surface defect classification for hot-rolled steel
strips by selectively dominant local binary patterns, _IEEE_
_Access_ 7 : 23488–23499.
MVTEC AD (2019). _MVTEC_ _Anomaly_ _Detection_ _Dataset_,
MVTec Software GmbH, Munich, [https://www.mvt](https://www.mvtec.com/company/research/datasets/mvtec-ad)
[ec.com/company/research/datasets/mvtec](https://www.mvtec.com/company/research/datasets/mvtec-ad)
[-ad.](https://www.mvtec.com/company/research/datasets/mvtec-ad)
Ouyang, W., Xu, B., Hou, J. and Yuan, X. (2019). Fabric defect
detection using activation layer embedded convolutional
neural network, _IEEE Access_ 7 : 70130–70140.
Sun, J., Wang, P., Luo, Y.-K. and Li, W. (2019). Surface defects
detection based on adaptive multiscale image collection
and convolutional neural networks, _IEEE Transactions_ _on_
_Instrumentation and Measurement_ 68 (12): 4787–4797.
Wang, H., Zhang, J., Tian, Y., Chen, H., Sun, H. and Liu, K.
(2018). A simple guidance template-based defect detection
method for strip steel surfaces, _IEEE_ _Transactions_ _on_ _In-_
_dustrial Informatics_ 15 (5): 2798–2809.
Wang, J., Li, Q., Gan, J., Yu, H. and Yang, X. (2019a).
Surface defect detection via entity sparsity pursuit with
intrinsic priors, _IEEE Transactions on Industrial Informat-_
_ics_ 16 (1): 141–150.
Wang, R., Guo, Q., Lu, S. and Zhang, C. (2019b). Tire defect
detection using fully convolutional network, _IEEE Access_
7 : 43502–43510.
Wei, B., Hao, K., Tang, X.-s. and Ding, Y. (2019). A new method
using the convolutional neural network with compressive
sensing for fabric defect classification based on small
sample sizes, _Textile Research Journal_ 89 (17): 3539–3555.
Xie, H., Zhang, Y. and Wu, Z. (2019). Fabric defect detection
method combing image pyramid and direction template,
_IEEE Access_ 7 : 182320–182334.
Yang, H., Chen, Y., Song, K. and Yin, Z. (2019). Multiscale
feature-clustering-based fully convolutional autoencoder
for fast accurate visual inspection of texture surface
defects, _IEEE_ _Transactions_ _on_ _Automation_ _Science_ _and_
_Engineering_ 16 (3): 1450–1467.
Yu, H., Li, Q., Tan, Y., Gan, J., Wang, J., Geng, Y.-a. and Jia,
L. (2018). A coarse-to-fine model for rail surface defect
detection, _IEEE Transactions on Instrumentation and Mea-_
_surement_ 68 (3): 656–666.
<u>A nested autoencoder approach to automated defect inspection on textured surfaces</u>
~~52~~ 3
Zhang, Z., Wen, G. and Chen, S. (2019). Weld
image deep learning-based on-line defects detection
using convolutional neural networks for Al alloy in
robotic arc welding, _Journal_ _of_ _Manufacturing_ _Processes_
45 : 208–216.
Muhammed Ali Nur Oz received his BS degree from Sakarya University, Sakarya, Turkey,
in 2012. He obtained his MS degree in 2015 from
Yildiz Technical University, Istanbul, Turkey,
which is where he is currently pursuing his PhD
degree. He is now a research assistant in control and automation engineering, Yildiz Technical University. His research interests include image processing, pattern recognition, and machine
learning.
Ozgur Turay Kaymakci received his PhD degree in control engineering from Istanbul Technical University, Turkey, in 2007. He is currently an associate professor at the Electronics
Engineering Department of Canakkale 18 Mart
University. His research interests include discrete event systems, industrial automation systems, functional safety and process control.
Muharrem Mercimek received his BS and MS
degrees from Yildiz Technical University, Istanbul, Turkey. While pursuing a doctorate he was
a research assistant in the Imaging, Robotics,
and Intelligent Systems Lab, University of Tennessee, Knoxville, USA, and he was awarded a
PhD degree in 2013. Since 2014 he has been a
faculty member at the Control and Automation
Department, Yildiz Technical University.
Received: 6 March 2021
Revised: 8 May 2021
Accepted: 10 June 2021
섹션 본문
섹션 본문이 없습니다.
참고문헌 24건
- Deformable Patterned Fabric Defect Detection With Fisher Criterion-Based Deep Learning IEEE Transactions on Automation Science and Engineering · Institute of Electrical and Electronics Engineers · 2016 10.1109/tase.2016.2520955
- Defect Detection for Patterned Fabric Images Based on GHOG and Low-Rank Decomposition IEEE Access · Institute of Electrical and Electronics Engineers · 2019 10.1109/access.2019.2925196
- Detecting Anomalous Faces with 'No Peeking' Autoencoders arXiv (Cornell University) · Cornell University · 2018 10.48550/arxiv.1802.05798
- A new method using the convolutional neural network with compressive sensing for fabric defect classification based on small sample sizes Textile Research Journal · SAGE Publishing · 2018 10.1177/0040517518813656
- A Simple Guidance Template-Based Defect Detection Method for Strip Steel Surfaces IEEE Transactions on Industrial Informatics · Institute of Electrical and Electronics Engineers · 2018 10.1109/tii.2018.2887145
- Multiscale Feature-Clustering-Based Fully Convolutional Autoencoder for Fast Accurate Visual Inspection of Texture Surface Defects IEEE Transactions on Automation Science and Engineering · Institute of Electrical and Electronics Engineers · 2019 10.1109/tase.2018.2886031
- A Coarse-to-Fine Model for Rail Surface Defect Detection IEEE Transactions on Instrumentation and Measurement · Institute of Electrical and Electronics Engineers · 2018 10.1109/tim.2018.2853958
- Surface Defect Classification for Hot-Rolled Steel Strips by Selectively Dominant Local Binary Patterns IEEE Access · Institute of Electrical and Electronics Engineers · 2019 10.1109/access.2019.2898215
- On the Use of Binary Features in a Rule-Based Approach for Defect Detection on Patterned Textiles IEEE Access · Institute of Electrical and Electronics Engineers · 2019 10.1109/access.2019.2896078
- Surface Defects Detection Based on Adaptive Multiscale Image Collection and Convolutional Neural Networks IEEE Transactions on Instrumentation and Measurement · Institute of Electrical and Electronics Engineers · 2019 10.1109/tim.2019.2899478
- Tire Defect Detection Using Fully Convolutional Network IEEE Access · Institute of Electrical and Electronics Engineers · 2019 10.1109/access.2019.2908483
- A universal defect detection approach for various types of fabrics based on the Elo-rating algorithm of the integral image Textile Research Journal · SAGE Publishing · 2019 10.1177/0040517519840636
- Surface Defect Detection via Entity Sparsity Pursuit With Intrinsic Priors IEEE Transactions on Industrial Informatics · Institute of Electrical and Electronics Engineers · 2019 10.1109/tii.2019.2917522
- Fabric Defect Detection Using Activation Layer Embedded Convolutional Neural Network IEEE Access · Institute of Electrical and Electronics Engineers · 2019 10.1109/access.2019.2913620
- MVTec AD — A Comprehensive Real-World Dataset for Unsupervised Anomaly Detection 2019 10.1109/cvpr.2019.00982
- Unsupervised fabric defect detection based on a deep convolutional generative adversarial network Textile Research Journal · SAGE Publishing · 2019 10.1177/0040517519862880
- A Fully Convolutional Neural Network for Wood Defect Location and Identification IEEE Access · Institute of Electrical and Electronics Engineers · 2019 10.1109/access.2019.2937461
- Deep-Learning-Based Small Surface Defect Detection via an Exaggerated Local Variation-Based Generative Adversarial Network IEEE Transactions on Industrial Informatics · Institute of Electrical and Electronics Engineers · 2019 10.1109/tii.2019.2945403
- A defect detection method for unpatterned fabric based on multidirectional binary patterns and the gray-level co-occurrence matrix Textile Research Journal · SAGE Publishing · 2019 10.1177/0040517519879904
- Fabric defect inspection based on lattice segmentation and template statistics Information Sciences · Elsevier BV · 2019 10.1016/j.ins.2019.10.032
- Application of deep convolutional neural network on feature extraction and detection of wood defects Measurement · Elsevier BV · 2019 10.1016/j.measurement.2019.107357
- Fabric Defect Detection Method Combing Image Pyramid and Direction Template IEEE Access · Institute of Electrical and Electronics Engineers · 2019 10.1109/access.2019.2959880
- Computer vision based detection of external defects on tomatoes using deep learning Biosystems Engineering · Elsevier BV · 2020 10.1016/j.biosystemseng.2019.12.003
- Increasing the robustness of material-specific deep learning models for crack detection across different materials Engineering Structures · Elsevier BV · 2020 10.1016/j.engstruct.2019.110157