Вы находитесь на странице: 1из 12

IEEE TRANSACTIONS ON INSTRUMENTATION AND MEASUREMENT, VOL. 66, NO.

10, OCTOBER 2017 2585

Steel Surface Defect Detection Using a New


Haar–Weibull-Variance Model in
Unsupervised Manner
Kun Liu, Heying Wang, Haiyong Chen, Erqing Qu, Ying Tian, and Hexu Sun, Senior Member, IEEE

Abstract— Automatic defect detection on the steel surface is more than 80% of all products, which has become one of
a challenging task in computer vision, owing to miscellaneous the most important materials in aerospace, machinery, and
patterns of the defects, low contrast between the defect and automobile industry. The surface quality of strip steel is an
background, the existence of pseudo defects, and so on. In this
paper, a new Haar-Weibull-variance (HWV) model is proposed important performance indicator. However, it is inevitable for
for steel surface defect detection in an unsupervised manner. the surface of strip steel to contain different kinds of defects,
First, an anisotropic diffusion model is utilized to eliminate such as massive rupture, scratch, and rolled in scale. The
the influence of pseudodefects. Second, a new HWV model defects affect the appearance of the steel and reduce the
is established to characterize the texture distribution of each properties of the product, such as corrosion resistance and
local patch in the image. The proposed model can project
the texture distribution of each patch into the low-dimensional fatigue strength.
space with only two parameters. The parameter distribution In the past, the defect inspection was completed by human
of the whole image can also be unified into the form of vision. However, it is becoming more and more difficult for
linear radiation in an Euclidean space. The reliable background human vision to meet the requirement of quickness, reliability,
can be extracted via the formation of parameter distribution, and robustness. Thus, nondestructive testing technique (NDT)
by which the model parameter can be optimized further. Finally,
the adaptive threshold can be determined to distinguish the has emerged in recent years. Qaddoumi et al. [1] has proposed
defect from the background. Experimental results show that a novel near-field microwave NDT, which was employed to
the proposed method can detect an arbitrary type of defect detect defects in nonceramic insulators. Foudazi et al. [2], [3]
on the homogeneously textured surface and achieve an average have applied the active microwave thermography technique to
detection rate of 96.2% on the data set, which outperforms the detect the defects on steel surface and carbon-fiber-reinforced
previous methods.
polymer-strengthened cement-based materials successfully. In
Index Terms— Defect detection, Haar wavelet coefficient, this paper, we mainly discuss the detection approach based on
unsupervised, variance, Weibull model. the computer vision technology. It facilitates the collection of
surface quality information and finds the relevant failures in
I. I NTRODUCTION
time during the production process. Defect detection methods

S URFACE quality inspection is one of the important


aspects of industrial production. As one of the main
products of iron and steel class, the steel strip accounts for
can be classified into the supervised and the unsupervised
manner. Supervised methods mainly rely on an adequate and
representative set of training data [4]–[6]. However, in rare
Manuscript received December 11, 2016; revised April 13, 2017; accepted cases, there exists a complete set of defect measurements in
May 14, 2017. Date of publication July 18, 2017; date of current version an actual production environment. In this case, unsupervised
September 13, 2017. This work was supported in part by the National Natural methods based on anomaly detection can be of great practical
Science Foundation of China under Grant 61403119 and in part by the
Natural Science Foundation of Hebei Province under Grant F201402166. The value, which can locate the abnormal regions by evaluating
Associate Editor coordinating the review process was Dr. Sergey Kharkovsky. and comparing the local patches in the image [7], [8].
(Corresponding Author: Ying Tian.) Generally, current anomaly detection methods can be
K. Liu, H. Wang, and H. Chen are with the School of Control Science
and Engineering, Hebei University of Technology, Tianjin 300130, classified into three groups: statistical-, spectral-, and model-
China (e-mail: liukun03@mails.thu.edu.cn; wangheying215@163.com; based techniques. Historically, statistical approaches were used
haiyong.chen@hebut.edu.cn). to analyze texture by evaluating the spatial distribution of pixel
E. Qu is with Tangshan Iron and Steel Company Ltd.,
Tangshan 063000, China, and also with the School of Control Science intensities. In those approaches, the defects were detected by
and Engineering, Hebei University of Technology, Tianjin 300130, China using the first-order statistics, such as mean-, variance-, and
(e-mail: querqing@126.com). histogram-based computations together with the second-order
Y. Tian is with the School of Mechanical Engineering, Tianjin University,
Tianjin 300072, China, and also with the Key Laboratory of Equipment Design statistics based on the cooccurrence matrix. Reference [9]
and Manufacturing Technology, Tianjin University, Tianjin 300350, China utilized the histogram of gray information to detect the surface
(e-mail: tianying09@163.com). defects of an aluminum disk. The local binary pattern (LBP)
H. Sun is with the School of Control Science and Engineering, Hebei
University of Technology, Tianjin 300000, China, and also with the School was applied to achieve real-time defect detection of metallic
of Electrical Engineering, Hebei University of Science and Technology, surfaces [10], [11]. However, it is sensitive to noise and
Shijiazhuang 050000, China (e-mail: hxsun@hebut.edu.cn). has a limited ability to represent miscellaneous textures.
Color versions of one or more of the figures in this paper are available
online at http://ieeexplore.ieee.org. Song and Yan [12] proposed a robust feature descriptor
Digital Object Identifier 10.1109/TIM.2017.2712838 against noise named the adjacent evaluation completed
0018-9456 © 2017 IEEE. Personal use is permitted, but republication/redistribution requires IEEE permission.
See http://www.ieee.org/publications_standards/publications/rights/index.html for more information.
2586 IEEE TRANSACTIONS ON INSTRUMENTATION AND MEASUREMENT, VOL. 66, NO. 10, OCTOBER 2017

LBPs (AECLBP). The second-order statistics based on the characterize the stochastic texture distribution. By the pro-
cooccurrence matrix were applied to a visual inspection posed model, the parameter distribution on all local patches
system [13], [14] with a high computational load. can be unified into the form of linear radiation in an Euclidean
Tsai et al. [15] proposed a measure based on the weighted space. By taking the origin as the reference point in the
covariance matrix to detect the defects on homogeneously proposed model space and evaluating the distance of each
textured surfaces, such as LCD panel and deer-skin leather. sample to the origin, the defects can be located accurately.
And the integral image technique was also applied to reduce Our approach is independent of any defect type.
the computation complexity. Briefly, the main contribution of this paper is to develop a
Spectral approaches imply a bank of filters applied to the new model-based approach to detect the steel surface defects.
image, in which the energy of the filter responses is utilized The advantages of the proposed approach are shown as
as a feature to distinguish the defects from the background. follows.
The filter operation is often done by transforming the image 1) An arbitrary type of defect on the homogeneously
into a frequency domain. Li and Tsai [16] developed the textured surface can be detected, including subtle and
Fourier image reconstruction technique for the solar cells miscellaneous defects, even under the low contrast
inspection. Aiger and Talbot [17] proposed the phase only condition.
transform, individually algorithm, which utilized only the 2) The proposed model can project the stochastic texture
phase information of the Fourier transform to detect the distribution to the low-dimensional space with compact
defects on periodic textured surfaces. Choi and Kim [18] representation.
proposed a two-step approach (TS) to extend the PHOT 3) No massive labeled images and exhaustive training data
method by increasing a phase of local refinement. Over- are required, and the adaptive threshold can be set for
all, the methods based on the Fourier transform are global each image.
approaches, which lack the capability for identifying local The remaining part of this paper is organized as follows.
features. The methods based on the Gabor transform give Section II presents the new defect detection scheme concretely.
consideration to the local texture property besides the global Section III gives the experimental results on the defective
statistical property. Bi et al. [19] applied the Gabor transform images collected from the practical production line and the
in the multiple fixed orientations and scales to detect the comparison with other methods. Last, the conclusion is given
defects in a liquid crystal display. In addition, the wavelet in Section IV.
transform can describe the texture flexibly and can auto-
matically adjust the spatial resolution according to the fre- II. D EFECT D ETECTION S CHEME
quency characteristic. The wavelet transform was utilized to
describe the texture of the semiconductor wafer dies [20]. The proposed defect detection scheme includes four
Li and Tsai [21] extracted features by the wavelet coefficients steps, which are image preprocessing, building the original
to identify defects in the solar wafers successfully. HWV (O-HWV) model on the local patches in the image,
Model-based approaches can achieve a better detection modifying and optimizing HWV model, and locating defects
performance by the texture analysis if the prior knowledge by an adaptive threshold. First, the anisotropic diffusion
about the texture pattern is available. Gan and Zhao [22] process is implemented to eliminate the effect of the pseudode-
proposed a modified local binary fitting model for LCD fects in the background. Second, the Haar feature is extracted
detection, in which the initial contour needed to be preset. from local patches on which the Weibull fit is computed. Third,
Xu and Huang [23] provided the Gaussian Markov ran- the O-HWV model can be built by combining the Weibull
dom field for assessing the quality of nanomaterial and parameter with variance of each local patch after normaliza-
Gu et al. [24] proposed a new Mumford–Shah model for multi- tion. Next, the HWV model is optimized after locating the
phase image segmentation. Besides, recent studies have shown reliable defect-free patches. Finally, the defects can be detected
that Weibull distribution can accurately model a wide variety by evaluating the distance of each sample to the origin in the
of natural and handmade images [25]. Anomaly detection on HWV space. The total framework is shown in Fig. 1.
the textured surface, such as textile, stone, or wood, has been
realized based on the Weibull model [26]. Two parameters A. Anisotropic Diffusion Processing
of a Weibull fit were estimated for the distribution of image Due to the rough background texture and the similar texture
gradients in local patches. By taking the mean or median of of local defects to the background, there are some pseudo-
all samples in the Weibull space as the reference point and defects within the background. To avoid the disturbance of
evaluating the distance of each sample to the reference point, the pseudodefects, an effective mechanism must be applied
the defective regions were detected. The method is mainly to smooth the background and preserve the defects simul-
applicable to the subtle defect detection. taneously. The anisotropic diffusion model was introduced
In this paper, we present a new defect detection algorithm by Perona and Malik [27] in image processing for scale-
based on the Weibull model. Different from the method in [26], space description and edge detection. Here, it is utilized
the Haar feature is utilized to replace the local gradient to suppress the interference of the pseudodefects within the
magnitude, which can extract more complete texture infor- background. The defect-free area can be smoothed, while the
mation besides the edge response. More importantly, a new defective region can be preserved by assigning different diffu-
Haar–Weibull-variance (HWV) model is developed to sion coefficients according to the distribution of the intensity.
LIU et al.: STEEL SURFACE DEFECT DETECTION USING A NEW HWV MODEL IN UNSUPERVISED MANNER 2587

Fig. 1. Total framework of the proposed method.

The anisotropic diffusion model is given by be obtained by different combinations of high-pass and low-
pass filter on row and column. For an image of size M × N,
1  x
4
 the row transformation can be obtained by
It +1 (i, j ) = It (i, j ) + ct (i, j ) · ∇ Itx (i, j ) (1)
4  √
x=1 I R (i, j ) = [I (i, 2 j ) + I (i, 2 j + 1)]/ 2 √ (3)
where t refers to the number of iterations, I0 (i, j ) repre- I R (i, j + (N/2)) = [I (i, 2 j ) − I (i, 2 j + 1)]/ 2
sents the input image, It (i, j ) is the intensity at the coor- where I (i, j ) is the intensity of the input image, I R (i, j ) is the
dinates (i , j ) of input image at the tth iteration, ∇ Itx (i, j ), row-transformed result, i ranges from 0 to M −1, and j ranges
x = 1, . . . , 4 represents the gradient of intensity in four- from 0 to (N/2) − 1. Next, the column transformation can be
connected directions, and ctx (i, j ) represents the diffusion obtained by
coefficient which has a negative correlation with ∇ Itx (i, j ),  √
that is IC (i, j ) = [I R (2i, j ) + I R (2i + 1, j )]/ 2 √ (4)
    2  IC (i + (M/2), j ) = [I R (2i, j ) − I R (2i + 1, j )]/ 2
ctx (i, j ) = g ∇ Itx (i, j ) = 1/ 1 + |∇ Itx (i, j )|K (2)
where IC (i, j ) is the column-transformed result of I R (i, j ),
where K acts as an edge strength threshold and it is a constant. i ranges from 0 to (M/2) − 1, and j ranges from 0 to N − 1.
The diffusion coefficient will take lower value at high-gradient By the similar transformation, the four subimages can be
edges and take higher value within the isotropic background. defined as


⎪ A(i, j ) = IC (i, j )

B. Building the HWV Model D1 (i, j ) = IC (i, j + (N/2))
(5)

⎪ D2 (i, j ) = IC (i + (M/2), j )
1) Haar Feature Extraction: In [26], the Weibull model ⎩
D3 (i, j ) = IC (i + (M/2), j + (N/2))
was utilized to evaluate the stochastic texture by performing
a Weibull fit to the distribution of local gradient magnitude where A(i, j ) is the approximate coefficient matrix of the
obtained by a Gaussian derivative filter. However, it is unsuit- given image, D1 (i, j ), D2 (i, j ), and D3 (i, j ) are the hori-
able for the defects with gradual intensity or with the low zontal, vertical, and diagonal coefficient matrix individually,
contrast to the background, since there is no noticeable edge i ranges from 0 to (M/2)−1, and j ranges from 0 to (N/2)−1.
response in the local range. Here, Haar feature is utilized to For a given defective image with an M × N size, the approx-
replace the local gradient magnitude, which can enhance the imate, horizontal, vertical, and diagonal coefficient matrix are
defective regions globally and extract more complete texture shown in Fig. 2(b)–(d), which get the size of (M/2) × (N/2)
information besides the edge response. individually. It can be observed that the approximate coeffi-
In this paper, we use the Haar decomposition coefficient cient matrix includes most energy of the image and it can
as the texture feature. The process of obtaining Haar feature enhance the defective regions globally. In addition, a given
set is performed as the following steps. First, a low-pass filter image can be decomposed into different resolution levels to
combined with a high-pass filter is applied to each row of the extract Haar feature set. Here, we choose the approximate
steel image, respectively. Then, the similar filter is applied to coefficient matrix in one-level decomposition as the original
each column in the above resulted image. Four subimages can feature.
2588 IEEE TRANSACTIONS ON INSTRUMENTATION AND MEASUREMENT, VOL. 66, NO. 10, OCTOBER 2017

colors. From the parameter distribution in the Weibull space,


we can find that the scale parameter in the Weibull model is
mainly related to brightness of the given patch. The region
with lower brightness will generate a smaller scale parameter.
Meanwhile, the shape parameter in the Weibull model is
mainly related to the richness of the textures, such as contrast,
roughness, and orientation. The region with richer texture
generates a smaller shape parameter.
Although it seems reasonable to analyze the texture of
the steel surface by Weibull fit, it is difficult to locate the
defects accurately by the Weibull model. From the results in
Fig. 2. Haar-decomposed results in one-level for a given image. (a) Input Fig. 3(d1) and (d3), it is observed that there exists a blurry
image. (b) Approximate coefficient matrix. (c) Horizontal coefficient matrix.
(d) Vertical coefficient matrix. (e) Diagonal coefficient matrix.
boundary between the defective and defect-free samples in the
Weibull space.
3) Weighting With the Variance Information: To address
2) Weibull Parameter Extraction: In recent studies, the
the above problem, we introduce the variance parameter to
Weibull distribution has been utilized to model various types
the Weibull model. To some extent, variance represents the
of signals, such as stochastic textures [28], radar [29], and
uniformity or richness of the texture within a region, which
sonar [30]. The Weibull model can yield a spectrum of
has a similar meaning to the shape parameter in the Weibull
distributions, including the exponential, Gaussian, and Raleigh
model. Since the defective regions contain richer texture than
distribution by adjusting model parameters. For the texture
the homogeneous background in most cases, the variance
obeying random distribution, Weibull parameters can build a
of the defective region is larger than that of the defect-free
complete orthogonal basis, which can depict image contrast,
region. Therefore, by weighting the shape parameter with
roughness, orientation, scale, and shape effectively. The para-
the variance, the interclass distance between the defect and
meterized Weibull distribution is given with the probability
the background can be increased further. Furthermore, the
density function as follows:
parameter distribution of the whole image can be transformed
 β
β I (x) β−1 − I (x) into a uniform form for different types of defects by weighting
f α,β (I (x)) = e α
(6) the scale parameter with the variance in the similar way.
α α
Before the weighting operation, the scale, shape, and vari-
where I (x) is intensity of the given image, α > 0 represents ance parameter must be normalized, since they may be of a
the scale parameter, and β > 0 represents the shape parameter. different scale. Particularly, the variance parameter is mapped
We model the texture distribution of each Haar-decomposed inversely to preserve a relatively consistent relationship with
patch in the given image by determining Weibull parameters shape parameter in the Weibull model. Then, the normalization
with maximum likelihood estimation. The maximum likeli- operation is performed as follows:
hood estimation of α and β can be derived by
n αci = (αi − αmin )/(αmax − αmin ) (9)
1
n β
1 i=1 I (x i ) ln I (x i ) βci = (βi − βmin )/(βmax − βmin )
+ ln I (x i ) = n β
(7) (10)
β h i=1 I (x i )
i=1
 n  σci = (σmax − σi )/(σmax − σmin ) (11)
1 
αβ = I (x i )β (8) where αi , βi , and σi (i = 1, 2, . . . , n) are the scale, shape,
h and variance extracted from the i th Haar-decomposed patch,
i=1
respectively, n is the total number of patches in the given
where h is the number of pixels in each patch.
image, α, β, and σ are parameter matrices formed by αi , βi ,
Several defective and defect-free patches are selected ran-
and σi individually, αmin , βmin , and σmin are the minimum
domly from several defective images containing the oil
values of the corresponding parameter matrices, αmax , βmax ,
stain, white dot, roll marks, and pitted surface individually
and σmax are the maximum values of the corresponding
in Fig. 3(a). The corresponding probability density curves by
parameter matrices, and αci , βci , and σci are the normalized
Weibull fit on these patches are shown in Fig. 3(b). As a
values of αi , βi , and σi , which are mapped to the range [0,1].
result, the probability density curves of the defect-free patches
Fig. 4 explains the normalization procedure for a given
own similar sharp peaks and overlap each other, which are
image that is divided into 5 × 5 overlapping patches. Scale,
noticeably different from those of the defective patches. At the
shape, and variance parameter can be extracted from each local
same time, the curves of defective patches are different from
patch to form the corresponding matrices α, β, and σ . αc , βc ,
each other.
and σc represent the parameter matrices after normalization.
To analyze the statistic characteristic of Weibull parameters
After the normalization, a new HWV model can be built
further, the Weibull space determined by the scale and shape
by weighting the scale, shape parameter with the variance
parameter on all local patches is built. For three defective
parameter according to
images in Fig. 3(c1)–(c3), the corresponding Weibull spaces  
are shown, respectively, in Fig. 3(d1)–(d3), in which the αi = ξ αci + ζ σci
(12)
defective and defect-free samples are labeled with different βi = ξβci + ζ σci
LIU et al.: STEEL SURFACE DEFECT DETECTION USING A NEW HWV MODEL IN UNSUPERVISED MANNER 2589

Fig. 3. Statistic results of the Weibull distribution. (a) Four defective images and selected patches. (b) Corresponding Weibull parameters and probability
density curves, in which the defective patches are labeled as red and defect-free patches are labeled as other colors. (c1)–(c3) Three defective images.
(d1)–(d3) Corresponding Weibull spaces, in which the red points correspond to the defective patches and the blue points correspond to defect-free patches.

there still exists a blurry boundary between the two clusters.


For example, for the defects with low-contrast or containing
similar texture with the background in Fig. 5(a5) and (a6),
the two clusters overlap each other to some extent. In order
to detect an arbitrary type of defect, the HWV model will
be modified and optimized further. For a clear description,
the above-mentioned model is named the O-HWV model.

C. Modifying HWV Parameters


The initial assumption in the HWV model is that the defec-
tive regions involve richer texture than the background, which
cannot be applicable to all defects. There exist some defects
with different intensities from the background, whereas the
texture distributions are similar to the background. Therefore,
we expect to find a parameter for each local patch, which can
Fig. 4. Normalization process for a given image. represent the intensity deviation with the background besides
describing the texture distribution.
To achieve the goal, we update the variance of each local
where αi is the weighted scale (w-scale) parameter and βi
patch by referring the intensity of the background. In this way,
is the weighted shape (w-shape) parameter for the i th local
the defective patches will get larger variance than the defect-
patch, ξ and ζ are the weights, and ξ + ζ = 1.
free patches in all cases. Concretely, the reliable background
The HWV space determined by the w-scale and w-shape
patches can be extracted by selecting the farthest sample from
parameters on all sliding patches is shown for several given
the origin in the O-HWV space. To avoid the disturbance,
images in Fig. 5(a1)–(a6). In the HWV space, two clusters are
multiple samples close to the farthest sample are collected
formed by defective and defect-free samples, which are totally
and the average intensity of the corresponding patches m is
away from each other. Furthermore, the parameter distribution
computed by
of HWV model can be unified into the form of linear radiation ⎛ ⎞
for different defect types. The defective samples are closer  c s/2 
s/2
to the origin, whereas the defect-free samples are further m= ⎝ A g (x, y)⎠ (c(s/2)2 − 1) (13)
away from the origin in the HWV space. In a few cases, g=1 x=1 y=1
2590 IEEE TRANSACTIONS ON INSTRUMENTATION AND MEASUREMENT, VOL. 66, NO. 10, OCTOBER 2017

Fig. 5. Parameter distribution in the O-HWV space. (a1)–(a6) Input images. (b1)–(b6) Corresponding parameter distributions, in which red points represent
the defective patches and blue points represent the defect-free patches.

where c is the number of the collected samples, A g is the Haar texture with the background in Fig. 6(e) and (f), there exists
feature of the gth background patch (g = 1, . . . , c), (x, y) a larger gap between two clusters in the M-HWV space than
denotes the pixel coordinates in the given patch, and s is the in the other spaces.
size of each patch.
Applying the above mean m, the updated variance parameter Algorithm 1 Feature Extracting Process of HWV Model
is computed on all local patches in the image by
Initialize:

s/2 
s/2 Pre-processing of the anisotropic diffusion for image I0 .
σi = (Ai (x, y) − m)2 ((s/2)2 − 1) (14) Choice patch size:
x=1 y=1 Patches with a size of s × s pixel and an overlap of 50%.
δi = (1/2) log σi (15) Build HWV model:
For the i th patch:
where Ai is the Haar feature of the i th local patch in the image, 1) Extract the Haar feature Ai ;
σi is the updated variance parameter, and δi is the logarithmic 2) Obtain parameters αi , βi and σi ;
transformation of σi . 3) Calculate original HWV parameters αi and βi after
Next, the normalization and weighting operation on all normalization.
local patches are performed again to get the modified HWV
Modify HWV parameters:
(M-HWV) model. The functions are formalized using
1) Compute the value m of the background;
δci = (δmax − δi )/(δmax − δmin ) (16) For the i th patch:
 
αi = ξ  αi + ζ  δci 2) Compute the updated variance parameter σi ;
(17)
βi = ξ  βi + ζ  δci 3) Assign the new feature δi to the current patch, let δi =
(1/2) log σi ;
where δci is the normalized value of δi on the i th local patch,
4) Obtain modified HWV parameters αi and βi ;
which is in the range of 0 and 1, δ is the parameter matrix
5) Measure the Euclidean distance di between (αi , βi ) and
formed by δi (i = 1, 2, . . . , ), δmax and δmin are the maximum
the origin.
and minimum values of updated variance parameter matrix,
ξ  and ζ  are the weighted coefficients, ξ  + ζ  = 1, and Determine the adaptive threshold.
αi and βi represent the modified scale and shape parameter,
which are abbreviated as m-scale and m-shape individually.
To verify the performance of the proposed model, the
comparison of parameter distribution by the Weibull model, D. Defect Detection Based on Adaptive Threshold
O-HWV model, and M-HWV model is accomplished. For By the M-HWV model, the parameter distribution can be
several representative defective images, the parameter distri- unified into the form of linear radiation for different defect
butions in the Weibull space, O-HWV space, and M-HWV types. The defective samples are closer to the origin in the
space are shown individually in Fig. 6. From the results, it can M-HWV space, whereas those of defect-free patches are
be observed that each cluster can get a smaller within-class further away from the origin. There exists a larger gap between
distance in the O-HWV space than in the Weibull space. two clusters representing defective and defect-free region.
A uniform distribution pattern with a fixed reference point Intuitively, by evaluating the distance of samples with the
(i.e., the origin) is formed for different defect types. Further- origin in the M-HWV space, the defective regions can be
more, for the defects with low-contrast or containing similar located.
LIU et al.: STEEL SURFACE DEFECT DETECTION USING A NEW HWV MODEL IN UNSUPERVISED MANNER 2591

Fig. 6. Comparison of the parameter distributions. (a) six defective images. (b)–(f) Corresponding parameter distributions in the Weibull space,
O-HWV space, and M-HWV space, in which the samples of defective patch are labeled as red and the samples of defect-free patch are labeled as blue.

In order to distinguish the defective patches from the defect- 36-kHz horizontal scanning frequency. The field of view of
free patches, the adaptive threshold is obtained in our appli- each camera is 1000 mm. There exists an overlap of 120 mm
cation. Here, we apply Otsu’s algorithm based on the cluster between the fields of view of two cameras. The distance
theory to determine the threshold. The traditional Otsu’s algo- between the camera and the surface of strip steel is 1130 mm.
rithm is used to gain optimal image segmentation result by The width of the strip steel is 1748 mm. The LED bar light
maximizing the gray-level difference between the objects and illuminates the steel surface in the frequent flash mode, which
the background. Based on the Otsu theory, we maximize the can ensure the collection of clear and high-contrast images.
between-class distance between the defect and the background The conveyor unit utilizes the combination of multiple
after evaluating the distance of the samples with the origin in rollers, which can increase the thread to avoid the equipment
the M-HWV space. The proposed method can get the optimal disjoint in some emergent cases and increase the tension to
threshold and defective regions can be located accurately. avoid the fluctuation caused by long-distance transmission.
In summary, the procedure of our algorithm can be The sheet thickness of the steel varies from 1.5 to 10 mm.
described in Algorithm 1. According to the required thickness, the rolling speed of the
steel plate ranges from 3 to 20 m/s. The image processing
III. E XPERIMENTAL R ESULTS unit is performed by the high-performance server. It contains
A. Defect Detection System 2 × 1.6 GHz processor with 48-GB memory, which can
satisfy the demand of high-speed image processing. Parts of
This section presents the total framework of steel surface
the hardware system and the processing procedure are given
inspection system. The inspection system consists of the image
in Fig. 7.
collection device, light source, and conveyor unit. The image
acquisition system is one of the important subsystems, which
can guarantee that the clear defective images are collected B. Data Set and Parameter Setting
in a well-defined manner. There are two groups of cameras In order to verify the performance of the proposed method,
installed above and below the steel surface, respectively. Each we collect the defective images captured by industrial charge-
group contains two cameras for real-time image acquisition. coupled device cameras on the actual production line in Han-
The cameras used here are the monochrome linear array dan Steel Factory. The data set includes almost 100 000 defec-
camera made by DALSA, with 2048 × 2 pixel resolution and tive images. The defects can be divided into different types
2592 IEEE TRANSACTIONS ON INSTRUMENTATION AND MEASUREMENT, VOL. 66, NO. 10, OCTOBER 2017

Fig. 7. Hardware system and the detection processing. (a) Parts of the hardware. (b) Procedure of defect detection.

of local patches in order to avoid border artifacts. The patch


size s is fixed at 16 with an overlap of 50% for a compromise
with the computational efficiency.
Besides, the two groups of weights need to be determined,
which include ξ and ζ in the O-HWV model and ξ  and ζ 
in the M-HWV model. For the O-HWV model, the constraint
is that the weighted coefficient ζ is larger than ξ , which can
guarantee the uniform linear radiation formation for different
kinds of defects in the Euclidean space. Here, αi is set to
0.3 and ζ is given by 0.7. In the M-HWV model, the variance
of each patch is updated in order to detect the defective patches
containing a similar texture to the background. ξ  and ζ  are
utilized to weight the w-scale and w-shape parameter with the
updated variance. Since the intensity of the background is not
completely uniform, the updated variance cannot account for
Fig. 8. Some representative defective images. (a1)–(a7) Block-type defects.
(b1) and (b2) Line-type defects. (c1) Dot-type defects. (d1)–(d4) Embedded- a too large proportion in the M-HWV model. Here, αi is set
type defects. (e1) Gradual-type defects. to 0.8 and ζ  is given by 0.2.

according to the texture and geometric property. Block-type C. Performance Estimation


defects have complicated and miscellaneous patterns, such as In this paper, our method is compared with the TS [18],
massive rupture, drops tar, crush, floating, oil stain, and roll Gabor [19], AECLBP [12], and Weibull-based (WB) meth-
marks. Line-type defects are thin, such as scratch. Dot-type ods [26] on the given data set. According to [18], [19],
defects are subtle, such as white dot. Embedded-type defects and [26], the optimal threshold is set manually for the WB,
have no noticeable edge, such as pitted surface and mountain. TS, and Gabor methods. As an illustration, Fig. 9 shows
For the gradual-type defects such as shadow, there exists no six representative defective images and the corresponding
noticeable intensity change within the local regions. Some detection results. The original images are shown in the first
representative defective images are shown in Fig. 8. Here, column and the corresponding results given from the second
1200 defective images, including different types, are used to column to seventh column, respectively.
verify the performance of the proposed method. The spectral-based TS method can detect defects by sup-
In the stage of image preprocessing, we have to determine pressing the periodic texture of the background. The detection
two parameters: the number of iterations t and the diffusion results are shown in Fig. 9(b1)–(b6), from which it is observed
coefficient K for the anisotropic diffusion model. If K or t is that the TS method can get better detection results for defec-
set too large, the diffusion process will result in a blurred tive regions with noticeable edge response, such as shown
image. Conversely, if K or t is set too small, the diffusion in Fig. 9(b2) and (b6). However, for the defects with regular
process will stop smoothing in earlier iterations. The optimal texture such as the gradual-type defect in Fig. 9(a1), the line-
performance is achieved when t is 5 and K is 10. type defect in Fig. 9(a5), and the internal defect in Fig. 9(a3),
The size of local patches needs to be determined before it achieves poor performance. It can be explained by the fact
building the model, which influences the accuracy of defect that the regular texture of the defects may be considered as
detection. Furthermore, it is necessary to determine the overlap periodic signal to some extent, which is suppressed during the
LIU et al.: STEEL SURFACE DEFECT DETECTION USING A NEW HWV MODEL IN UNSUPERVISED MANNER 2593

Fig. 9. Comparison of the proposed method with traditional methods. a(1)–a(6) Six defective images. b(1)–b(6) Detection results of the TS method.
c(1)–c(6) Detection results of the Gabor method. d(1)–d(6) Detection results of the AECLBP method. e(1)–e(6) Detection results of the WB method. f(1)–f(6)
Detection results of the O-HWV based method. g(1)–g(6) Detection results of the M-HWV based method. The defective regions are labeled as red points or
blocks.

detection process. In addition, false positives are detected at with high contrast, which results in more false negatives,
the same time owing to the disturbance of the regular texture. as shown in Fig. 9(c2). In addition, in terms of the defects with
The wavelet-based Gabor method can be used to detect low contrast to the background, the edge cannot be detected
defects by filtering the given image in different directions. effectively, such as shown in Fig. 9(c3).
As suggested in [19], there are several parameters selected as: The AECLBP method is a supervised method, which
a mask size of 11 × 11 pixels, a central frequency of 1/8, and extracts the texture features on local patches. Based on
eight directions started from 0° to 180° with the 22.5° interval. the relationship among the central pixel, its neighbors,
The detection results are shown in Fig. 9(c1)–(c6). For the and adjacent evaluation windows of each local region,
Gabor method, the number of red points representing the three operators are established, including AECLBP_Sign,
defective pixels decreases when compared with the TS method. AECLBP_Magnitude, and AECLBP_Center. In this exper-
In other words, the Gabor method produces less false positives. iment, the size of local patch is 5 × 5 and the size of
The Gabor method mainly detects the edges of the defects adjacent evaluation window is 3 × 3. The training data
2594 IEEE TRANSACTIONS ON INSTRUMENTATION AND MEASUREMENT, VOL. 66, NO. 10, OCTOBER 2017

TABLE I
C OMPARISON OF P ERCENTAGE P RECISION , R ECALL , AND F -M EASURE OF D EFECT D ETECTION ON 12 D IFFERENT
T YPES OF D EFECTS U SING O UR M ETHODS AND T RADITIONAL M ETHODS

set consists of patches with a 25 × 25 pixel size, which a particular data set. Therefore, two performance indexes,
includes 3600 defective patches with 12 types of defects including Precision (Pr) and Recall (Re), are defined as
and 1600 defect-free patches. The classifier used here is the follows:
support vector machine. The final detection results are shown TP
in Fig. 9(d1)–(d6). When compared with the TS method and Precision =
TP + FP
Gabor method, the AECLBP method can get better detection TP
results. However, it is difficult to detect the defects with the Recall = (18)
TP + FN
similar intensity to the background.
where TP, FP, and FN represent the number of true posi-
In the WB method, the scale and the shape parameter are
tives, false positives, and false negatives, respectively. The
extracted from the local patch with a 16 × 16 pixel size.
F-measure (Fm) is also calculated to evaluate the overall
The detection results are shown in Fig. 9(e1)–(e6). Based
performance of defect detection based on precision and recall.
on the gradient magnitude, the method cannot perform well
The F-measure is defined as
for the defects with no noticeable edge, such as shown
in Fig. 9(e1)–(e3). In addition, there are some false positives 2 × Precision × Recall
F − measure = . (19)
for the defects in Fig. 9(a4)–(a6) owing to the uncertain Precision + Recall
reference point. For 12 different types of defective images, the quantitative
The detection results based on our methods are shown evaluation based on the statistic results is shown in Table I. The
in Fig. 9(f1)–(f6) and (g1)–(g6). For the O-HWV method, most results obtained by the TS, Gabor, AECLBP, WB, O-HWV,
of the defects can be detected accurately except those with the and M-HWV methods are shown, respectively. For example,
uniform texture distribution. Moreover, less false positives are the first row of Table I shows the experimental results obtained
detected by the O-HWV method than TS, Gabor, AECLBP, on the white dot type of defective images using six different
and WB methods. Furthermore, the M-HWV method can methods. The precision, recall, and F-measure are given in
decrease the false negatives compared with the O-HWV different columns for each method individually. The last row
method. Overall, it achieves much better performance than the shows the overall performance of different methods.
other five methods. From Table I, it can be observed that the TS method
Furthermore, a quantitative evaluation based on the statistic has a lower recall rate than the other methods because of
results is given to compare the proposed method with the suppressing the regular texture. Especially, the TS method
traditional methods. In the case of defect detection application, performs badly for scratch, floating, and shadow. Moreover,
only accuracy is not an appropriate performance measure on the TS method and the Gabor method get lower precision rate
LIU et al.: STEEL SURFACE DEFECT DETECTION USING A NEW HWV MODEL IN UNSUPERVISED MANNER 2595

methods. For the block-type and gradual-type defect such as


massive rupture, floating, and shadow, the M-HWV method
can give more accurate results. Overall, the performance of
the proposed M-HWV method is more competitive and better
than that of the other methods.

IV. C ONCLUSION
We proposed a novel approach to detect the steel surface
defects in an unsupervised manner. The performance was
exhaustively evaluated on the challenging data set collected
from steel production lines, which includes massive defective
images with different patterns. A new HWV model was built
to characterize the stochastic texture of the steel surface. The
defective regions can be located by the adaptive threshold,
which is computed after evaluating the distance of each sample
with the origin in the M-HWV space.
The experimental results have shown that the proposed
Fig. 10. Variation of percentage F-measure by different methods.
model has stronger discriminatory power than the traditional
TABLE II Weibull model in terms of evaluating the texture distribution
C OMPARISON OF AVERAGE C OMPUTATIONAL T IME of the steel images. Using the proposed model, an arbitrary
type of defect on the homogeneously textured background
can be detected, including subtle and miscellaneous defects,
even under the low contrast condition. It can achieve high
performance (both precision and recall are higher than 0.96).
In addition, it is worth noting that the proposed novel
method does not involve any sophisticated learning algorithm.
Hence, the training and the exhaustive parameter optimization
are not required. Although the HWV model has been proposed
to detect the defects of steel surface, it is promising to extend
it to other similar application, such as the LCD and stone.

than the other methods for shadow, since there is no noticeable R EFERENCES
edge information. The WB method gets the similar precision [1] N. Qaddoumi, A. H. El-hag, M. A. Hosani, I. A. Mansouri, and
rate to the TS method and Gabor method, whereas it has a H. A. Ghufli, “Detecting defects in outdoor non-ceramic insulators using
higher recall rate than them. It can be explained by the fact near-field microwave non-destructive testing,” IEEE Trans. Dielectr.
Electr. Insul., vol. 17, no. 2, pp. 402–407, Apr. 2010.
that the WB method detects defects by evaluating the local [2] A. Foudazi, C. A. Edwards, M. T. Ghasr, and K. M. Donnell, “Active
patches in the global range. microwave thermography for defect detection of CFRP-strengthened
Comparatively, the AECLBP method has a better preci- cement-based materials,” IEEE Trans. Instrum. Meas., vol. 65, no. 11,
pp. 2612–2620, Nov. 2016.
sion and recall rate than the TS, Gabor, and WB methods. [3] A. Foudazi, M. T. Ghasr, and K. M. Donnell, “Characterization of
However, it is insensitive to the defects with the similar texture corroded reinforced steel bars by active microwave thermography,” IEEE
and intensity to the background. The O-HWV and M-HWV Trans. Instrum. Meas., vol. 64, no. 9, pp. 2583–2585, Sep. 2015.
[4] Y. Tian, M. Y. Fu, and F. Wu, “Steel plates fault diagnosis on the
methods can give a better precision rate than the other four basis of support vector machines,” Neurocomputing, vol. 151, no. 1,
methods. Furthermore, the M-HWV method achieves the best pp. 296–303, Mar. 2015.
performance in both terms of recall and F-measure. [5] S. Ghorai, A. Mukherjee, M. Gangadaran, and P. K. Dutta, “Automatic
defect detection on hot-rolled flat steel products,” IEEE Trans. Instrum.
In terms of computational efficiency, the average processing Meas., vol. 62, no. 3, pp. 612–621, Mar. 2013.
time per test image with the size 864 × 864 pixels of all these [6] S. C. Turaga, J. F. Murray, V. Jain, and F. Roth, “Convolutional networks
methods is summarized in Table II for comparison. Besides the can learn to generate affinity graphs for image segmentation,” Neural
Comput., vol. 22, no. 2, pp. 511–538, Feb. 2010.
size of the image, the computational efficiency is also related [7] T. Y. Li, J. Z. Tsai, R. S. Chang, L. W. Ho, and C. F. Yang, “Pretest
to the size of the local patch for the AECLBP, WB, O-HWV, gap Mura on TFT LCDs using the optical interference pattern sensing
and M-HWV methods and the number of filter directions for method and neural network classification,” IEEE Trans. Ind. Electron.,
vol. 60, no. 9, pp. 3976–3982, Sep. 2013.
the Gabor method. [8] M. H. Karimi and D. Asemani, “Surface defect detection in tiling indus-
As an illustration, a graphical representation of percent- tries using digital image processing methods: Analysis and evaluation,”
age F-measure based on the above six methods is shown ISA Trans., vol. 53, no. 3, pp. 834–844, 2014.
[9] M. Win, A. R. Bushroa, M. A. Hassan, N. M. Hilman, and
in Fig. 10. From the experimental results in Fig. 10, it is A. Ide-Ektessabi, “A contrast adjustment thresholding method for surface
observed that the O-HWV and M-HWV methods give better defect detection based on mesoscopy,” IEEE Trans. Ind. Informat.,
detection results than the others. For line-type, embedded- vol. 11, no. 3, pp. 642–649, Jun. 2015.
[10] M. Mansano, L. Pavesi, L. S. Oliveira, A. Britto, and A. Koerich,
type, and dot-type defects such as white dot, mountain, and “Inspection of metallic surfaces using local binary patterns,” in Proc.
scratch, the similar results are obtained using the two proposed IECON, Melbourne, VIC, Australia, 2011, pp. 2227–2231.
2596 IEEE TRANSACTIONS ON INSTRUMENTATION AND MEASUREMENT, VOL. 66, NO. 10, OCTOBER 2017

[11] S. R. Aghdam, E. Amid, and M. F. Imani, “A fast method of steel surface Heying Wang received the B.S. degree from the
defect detection using decision trees applied to LBP based features,” in Hebei University of Technology, Tianjin, China,
Proc. ICIEA, Singapore, 2012, pp. 1447–1452. in 2014, where she is currently pursuing the M.S.
[12] K. Song and Y. Yan, “A noise robust method based on completed local degree in automation with the School of Control
binary patterns for hot-rolled steel strip surface defects,” Appl. Surf. Sci., Science and Engineering.
vol. 285, no. 21, pp. 858–864, Nov. 2013. Her current research interests include computer
[13] H. Zuo, Y. Wang, X. Yang, and X. Wang, “Fabric defect detection vision pattern recognition and machine learning.
based on texture enhancement,” in Proc. CISP, Chongqing, China, 2012,
pp. 876–880.
[14] L. Liu, F. Zhou, and Y. He, “Automated visual inspection system for
bogie block key under complex freight train environment,” IEEE Trans.
Instrum. Meas., vol. 65, no. 1, pp. 2–14, Jan. 2016.
[15] D.-M. Tsai, C.-M. Chen, W.-C. Li, and W.-Y. Chiu, “A fast regularity
measure for surface defect detection,” Mach. Vis. Appl., vol. 23, no. 5, Haiyong Chen received the M.S. degree from
pp. 869–886, Sep. 2012. the Harbin University of Science and Technology,
[16] W. C. Li and D. M. Tsai, “Automatic saw-mark detection in multicrys- Harbin, China, in 2005, and the Ph.D. degree from
talline solar wafer images,” Solar Energy Mater. Solar Cells, vol. 95, the Institute of Automation, Chinese Academy of
no. 8, pp. 2206–2220, Aug. 2011. Sciences, Beijing, China, in 2008.
[17] D. Aiger and H. Talbot, “The phase only transform for unsupervised He is currently an Associate Professor with the
surface defect detection,” in Proc. CVPR, San Francisco, CA, USA, School of Control Science and Engineering, Hebei
2010, pp. 295–302. University of Technology, Tianjin, China. His cur-
[18] J. Choi and C. Kim, “Unsupervised detection of surface defects: A two- rent research interests include image processing,
step approach,” in Proc. ICIP, Orlando, FL, USA, 2012, pp. 1037–1040. robot vision, and pattern recognition.
[19] X. Bi, X. Xu, and J. Shen, “An automatic detection method of Mura
defects for liquid crystal display using real Gabor filters,” in Proc. CISP,
Shenyang, China, 2015, pp. 871–875.
[20] C. H. Yeh, F. C. Wu, W. L. Ji, and C. Y. Huang, “A wavelet-based
approach in detecting visual defects on semiconductor wafer dies,” IEEE Erqing Qu received the B.S. degree from the
Trans. Semicond. Manuf., vol. 23, no. 2, pp. 284–292, May 2010. Beijing Institute of Technology, Beijing, China,
[21] W. C. Li and D. M. Tsai, “Wavelet-based defect detection in solar wafer in 1999, and the M.S degree in control engineering,
images with inhomogeneous texture,” Pattern Recognit., vol. 45, no. 2, Yanshan University, Hebei, China, in 2009. He is
pp. 742–756, Feb. 2012. currently pursuing the Ph.D. degree in automation
[22] Y. Gan and Q. Zhao, “An effective defect inspection method for LCD with the School of Control Science and Engineering,
using active contour model,” IEEE Trans. Instrum. Meas., vol. 62, no. 9, Hebei University of Technology, Tianjin, China.
pp. 2438–2445, Sep. 2013. He is currently a Senior Automation Engineer with
[23] L. Xu and Q. Huang, “Modeling the interactions among neighboring Tangshan Iron and Steel Company Ltd., Tangshan,
nanostructures for local feature characterization and defect detection,” China. His current research interests include steel
IEEE Trans. Autom. Sci. Eng., vol. 9, no. 4, pp. 745–754, Oct. 2012. inspection and its automation research.
[24] Y. Guet al, “A new Mumford-Shah type model involving a smooth-
ing operator for multiphase image segmentation,” in Proc. ICIP,
Quebec City, QC, Canada, 2015, pp. 1990–1994. Ying Tian received the M.S. degree in mechanical
[25] I. B. Ayed, N. Hennane, and A. Mitiche, “Unsupervised variational engineering from the Harbin Institute of Technol-
image segmentation/classification using a Weibull observation model,” ogy, Harbin, China, in 2003, and the Ph.D. degree
IEEE Trans. Image Process., vol. 15, no. 11, pp. 3431–3439, Nov. 2006. in mechanical engineering from Tianjin University,
[26] F. Timm and E. Barth, “Non-parametric texture defect detection using Tianjin, China, in 2010.
Weibull features,” in Proc. SPIE., vol. 7877, p. 78770J, Feb. 2011. She is currently a Lecturer with the School
[27] P. Perona and J. Malik, “Scale-space and edge detection using of Mechanical Engineering, Tianjin University,
anisotropic diffusion,” IEEE Trans. Pattern Anal. Mach. Intell., vol. 12, Tianjin, China, and the Key Laboratory of Equip-
no. 7, pp. 629–639, Jul. 1990. ment Design and Manufacturing Technology, Tianjin
[28] J. M. Geusebroek and A. W. M. Smeulders, “A six-stimulus theory for University. Her current research interests include
stochastic texture,” Int. J. Comput. Vis., vol. 62, no. 1, pp. 7–16, 2005. product’s energy modeling and simulation, inte-
[29] T.-T. V. Cao, “Modelling of inhomogeneity in radar clutter using grated system modeling, and product’s innovative and creative design
Weibull mixture densities,” IET Radar, Sonar Navigat., vol. 8, no. 3, methodology.
pp. 180–194, Mar. 2014.
[30] D. A. Abraham, J. M. Gelb, and A. W. Oldag, “Background and clutter
mixture distributions for active sonar statistics,” IEEE J. Ocean. Eng.,
vol. 36, no. 2, pp. 231–247, Apr. 2011. Hexu Sun (M’90–SM’96) received the Ph.D.
degree in automation from Northeastern University,
Shenyang, China, in 1993.
He has been a Professor with the School of Control
Science and Engineering, Hebei University of Tech-
Kun Liu received the M.S. degree from the Harbin nology, Tianjin, China, and the School of Electrical
Institute of Technology, Harbin, China, in 2003, Engineering, Hebei University of Science and Tech-
and the Ph.D. degree in automation from Tsinghua nology, Shijiazhuang, China. He has authored five
University, Beijing, China, in 2009. books and more than 130 journal and conference
She is currently an Associate Professor with the papers, and holds 13 U.S. patents and five computer
School of Control Science and Engineering, Hebei software copyrights. His current research interests
University of Technology, Tianjin, China. Her cur- include robotics and complex engineering system.
rent research interests include image processing, Dr. Sun was the recipient of many prestigious national awards from China.
computer vision, and pattern recognition. He was the Director in many societies and committees in China. He is
currently the invited Plenary Speaker and a General Co-Chair of many
international conferences.

Вам также может понравиться