Abstract
A new objective fabric pilling evaluation method based on wavelet transform and the local binary pattern (LBP) is developed. The surface pills are identified from the high-frequency noise, fabric texture, and illuminative variation of a pilled fabric image by the two-dimensional discrete wavelet transform. The energies of each detailed sub-image at scales 4–6 in three orientations (horizontal, vertical, and diagonal) and the LBP features of the reconstructed detail image from scales 3 to 6 are calculated as elements of the pilling feature vector to characterize the pilling intensity. These feature values are normalized and the vector dimensions are reduced by principal component analysis. Then the support vector machine, a kind of data mining tool, is used as a classifier to classify the pilling grades. The result suggests that the proposed method can successfully evaluate the pilling intensity of knitted fabrics and could be applicable to practical objective pilling evaluation.
Keywords
Fabric surface pilling that affects the quality of products is perceived as a serious problem for the apparel industry. 1 Pilling is a process in which the entangled fuzzes, protruding from fibers, form pills on the fabric surface. 2 Pilling is an important indicator for evaluating fabric performance and quality. Generally, for the assessment of fabric pilling grades, pilled fabric specimens are compared with a set of standard pilling images by an expert to determine the grade of pilling on a level ranging from 1 to 5 (from severe pilling to no pilling). 3 However, this subjective evaluation might be inconsistent and inaccurate in different evaluation personnel.
For an objective pilling evaluating process, a number of automated image analysis systems have been developed and reported. 4 – 8 All of these methods employ either expensive and complicated equipment or complex image processing algorithms involving multiple stages. 9 The wavelet analysis has appeared in the literature to evaluate the pilling intensity objectively. The discrete wavelet transform (DWT) has been used to identify the pilling information in the spatial domain or frequency domain. 10 – 12 However, all of the above those methods can only provide the gross summary information about the entire image, not accurate local information.
In this study, an integrated feature extraction technique combining two-dimensional discrete wavelet transform (2DDWT) with the local binary pattern (LBP) for pilled fabric image recognition is proposed. The wavelet describes the texture characteristics from the global pixels, while the LBP from the local or pixel neighborhood area describes the texture changes. These two characteristics can well complement each other, because the LBP does not consider the pixels relatively far from the central pixel, but the wavelet just does. In this paper, the pilled images are transformed with the wavelet function Coif1. Pills are identified by the reconstructed detailed sub-images at scales 4–6 (see Figure 1(e)), and then the wavelet features are extracted. The LBP features of the reconstructed detail image from scales 3–6 (see Figure 1(f)) are also used as pilling features. These features, in 19 dimensions, yield excellent pilling grade classification. By using principal component analysis (PCA) to reduce the dimension of the pilling feature vector, the support vector machine (SVM) is used to evaluate pilling grades.
The reconstructed detail images at scales (a) 1–2, (b) 2–3, (c) 3–4, (d) 5–6, (e) 4–6, (f) 3–6, (g) the scale 7 approximation image using wavelet Coif1, and (h) the original pilling knitted sample image.
Two-dimensional discrete wavelet transform
The wavelet transform has a good localization property simultaneously in the time domain and frequency domain. Because it uses a gradually refining sampling step length in the time domain or frequency domain for the high-frequency components, it can focus on any detail of the object, which is called “mathematical microscope”.
A fabric image can be viewed as a two-dimensional signal, and the specific process of using two-dimensional wavelet transform in the image is that the one-dimensional wavelet transform is used sequentially for the rows and columns of a matrix consisting of the pixel gray value.
The result of wavelet decomposition on the image
The algorithm is illustrated in Figure 2, where Lo_D is the low-pass filter, Hi_D is the high-pass filter; “2 ↓ 1” represents downsampling columns retaining the even column, “1 ↓ 2” represents downsampling rows retaining the even row, and Two-dimensional discrete wavelet decomposition algorithm.
A pilled fabric image includes information such as the high-frequency noise, fabric texture, fuzz, pills, surface unevenness, and illuminative variation, while pills are the main features in the pilling evaluating procedure. 15 In order to acquire pilling information, we can reconstruct the fabric image with wavelet components. The reconstruction process is converse to the decomposition process. There is a simple and effective method to attain the reconstructed pilling images by simply setting the irrelevant detail coefficients to zero. 3
Local binary pattern
The LBP, which was first proposed by Ojala (Ojala et al.; 16 Ahonen et al. 17 ), is a kind of operator that describes the texture characteristics effectively. The LBP features have a highly discriminative ability, high computational efficiency, the rotational invariance, gray invariance, and other significant advantages.
The basic LBP operator
The application process of the LBP operator is similar to the template operation in the filtering process, the progressive-scanning image (see Figure 3). For each pixel (xc, yc), the gray value ic is used as threshold of a local 3 × 3 window pixel gray value in(n = 0, 1, 2, … , 7) for binarization. If the neighbor has a higher or equal gray value than the central pixel, it is assigned a code bit 1, otherwise 0. These bits are read out according to a certain order, such as clockwise, and placed in a dyadic code word in accordance with Equation (1):
Basic local binary pattern operator.
Circular neighborhood LBPP, R operator
The basic LBP operator has been further extended to achieve rotational invariance. Using a circular neighborhood with bilinear interpolation operation allows us to get any radius and any number of neighbors. This kind of LBP operator is usually written as LBPP,
R
, where P indicates the number of pixels contained in the neighbors and R is the neighbor radius. Three common LBP operators written, as LBP8,2, LBP16,2, and LBP24,3, are shown in Figure 4. With circular LBP patterns, the image is evaluated around a pixel on a circle around the pixel. For detecting small changes effectively in textures, we used eight circular neighbor points on images. This LBP description is more compact and more robust against noise.
Circularly symmetric neighbor sets for different (P, R).
Through further improvement, Ojala et al.
16
put forward the uniform patterns concept, which is another major improvement of the LBP operator. For a LBP, if the number of 0/1 changes is no more than two in the same circular structure, it is called a uniform pattern, written as
Figure 5 shows the radius R = 1, neighbors P = 8 corresponding to the P + 1 = 9 kinds of uniform patterns (white points are 1, black points are 0).
R = 1, P = 8 corresponding to the uniform pattern.
After the LBP transform, the feature vectors could be calculated from their histograms. In this paper, we calculate the 10-dimensional frequency histogram with a uniform LBP of eight circular neighbor points. The uniform histogram realizes the histogram dimensional reduction and contains important texture information, with good statistical significance.
Experimental details
Method
The method proposed in this paper is shown in Figure 6. After normalization and PCA, these features are used as the input values of the SVM for training and testing.
Diagram of the proposed method.
Sample preparation
The standard knitted pilling test image set has five pilling grades (1–5). For each pilling grade, there are 10 sample images of 512 × 512 pixels (see Figure 7), each of which includes all of the pilling information.
Standard knitted pilling test image set.
Image transformation
The pilling image is transformed by the wavelet decomposition and reconstruction, and the results are showed in Figure 1. It is obvious that scale 1 and scale 2 detailed sub-images have no pilling information; they contain the highest frequency noise (see Figures 1(a) and 1(b)) in the original image. Scale 3 comprises mainly fabric texture and scale 4 has some small pills (see Figures 1(b) and 1(c)). Scales 5 and 6 include lots of different size fuzz and pills (see Figure 1(d)); scale 7 is the approximation image with largely background illuminative variation (see Figure 1(g)). Combining scale 4 with scale 6 detailed sub-images, Figure 1(e) is the reconstructed image, which captures almost all of the pilling information. Figure 1(f), which is reconstructed by combining scale 3 with scale 6 detailed sub-images, is almost identical to the original image (see Figure 1(h)), except background gray values.
From the above analysis, the fuzz and pills could be identified by the wavelet decomposition and reconstruction detailed images at several scales; the minimum size of pills will be measured further by the LBP technique.
Wavelet feature extraction
The wavelet feature contains the energies of three directional (h, v, d) detailed sub-images at scales 4–6. The energy is defined as
LBP feature extraction
Wavelet transform has multi-scale characteristics and the uniform LBP operator has the shift and rotation invariance for describing the texture changes. These two characteristics can well complement each other.
The LBP feature is presented by the frequency histogram. We extracted the LBP feature from the reconstructed fabric texture image that is shown in Figure 1(f).
The combined detection approach is used for the experiment process evaluating the standard knitted pilling images. We extract the energies of each detail sub-image at scales 4–6 in three directions and the LBP features of the reconstructed detail image from scales 3–6 as the elements of the pilling feature vector to characterize the pilling intensity.
Pilling evaluation using the SVM
The SVM is a new machine learning method based on the structural risk minimization principle. It is a supervised learning system that has been developed from statistical learning theory.18,19 The goal of the SVM is to find an optimal separating hyperplane, which can give the input samples correctly classified as consistent and distinct categories, and make the classification interval between the divided input samples the largest possible.
Given a training sample set (xi, yi), i = 1, 2, 3, … , n, x ∈ Rd, y ∈ (+1, −1) is the class label. The linear discriminant function in the d-dimensional space is
In this paper, the radial basis kernel function (RBF) is the first choice:
All of the sample images are extracted features according to the above experimental procedure, and the original data set (see Figure 8(a)) contains the class labels and several attributes. Firstly, this data set should be separated into training and testing sets. Secondly, both the training and testing data are scaled to the range [0, 1]; the training data scaling are showed in Figures 8(b) and (c). This is very important for the SVM to avoid the data in the greater numeric range dominating those in the smaller numeric range. Thirdly, the feature vector is 19 dimensions, making it too large to use the SVM. With PCA, several representative pilling features can be extracted from the original data. In Figure 8(f), we can see that the first four principal components account for more than 90% of the variance in the data set, thus they are selected as the input data of the SVM. After PCA, the first three principal components plots of training and testing sets are as shown in Figures 8(d) and (e). This can more convenient for the SVM to classify the pilling samples accurately. Finally, these features are operated by the SVM and, in the process, the SVM can produce a model based on the training data, which predicts the target values of the testing data. Figure 8(g) is the classification result of the testing data using the SVM, and the classification accuracy is 95%.
The classification process of the pilling samples using the support vector machine.
Conclusion
We have provided an effective way to objectively evaluate the pilling grades of standard pilling test images based on wavelet transform and the LBP. It has been found that the fabric texture information comes from the high-frequency detailed sub-images and the pilling information is from the low-frequency ones. Therefore, the fuzz and pills can be identified by using wavelet decomposition and reconstruction: the reconstructed detail image at scales 4–6 captures almost all of the pilling information and the fabric texture image from the reconstructed scales 3–6 detailed images is almost identical to the original image. The combined pilling feature vector contains the wavelet features and the LBP features. These feature values are classified by the SVM to evaluate the pilling grades. The classification results further verify the ability of the pilling identification and characterization method.
Footnotes
Funding
This work was supported by the Scientific Research Program funded by Shaanxi Provincial Education Department (grant numbers 11JK0910, 11JK0919), Shaanxi, PRC.
