Abstract
Fabric smoothness appearance assessment plays an important role in the textile and apparel industry. To evaluate fabric smoothness objectively, different methods have been proposed based on computer vision technology. To further improve the performance and promote the application of the assessment methods, this paper reports a hybrid computer vision system for objective assessment of fabric smoothness appearance with an ensemble classifier to integrate the advantages of the different image feature sets, which are extracted based on different image processing technologies. The image acquisition environment is established in this system with the selection of illumination parameters—intensity, position angle and altitudinal angle—by a designed strategy. The main steps of the strategy include determination of priority by information gain analysis and parameter selection by classifier performance analysis. The support vector machine classifiers trained by each feature sets are grouped into an ensemble by a self-adapting weighted voting method and the redundant feature sets are eliminated based on the weights of the feature sets. The final result shows evaluation accuracies with 82.86% under 0-degree error, 97.14% under 0.5-degree error and 100% under 1-degree error, which outperforms the other methods in the same environment and verifies the applicability of the proposed system.
Fabric smoothness after laundering is regarded in the textile and garment industry 1 as a vital characteristic of a fabric when evaluating the tendency of the fabric to wrinkle. The quantity of wrinkles on a fabric after being subjected to laundering procedures has a bearing on its ‘ease-of-care’ related properties (durable press, easy care, minimum iron, after-wash appearance, etc.). Conventionally, the smoothness of the fabric samples after standard laundering is assessed visually in accordance with smoothness appearance replicas in six degrees of smoothness (SA-1, SA-2, SA-3, SA-3.5, SA-4, SA-5) referring to the relevant standards.2,3 However, human vision is affected by individual physical, psychological and environmental factors, with low precision and poor reproducibility. 4 To avoid such limitations, objective methods of evaluation have been proposed by researchers in recent years. Previous research has treated the assessment of fabric smoothness as an object classification problem, which generally includes three main steps: acquisition of data on specimen surface, extraction of appearance features and classification of degree of smoothness.
According to the data forms, two types of methods exist in this field: two dimensional (2D) and three dimensional (3D). The 2D methods are based on 2D digital images of the fabric samples captured by a scanner or an industrial camera. The imaging environment of scanners is stable, but their vertical incident light weakens the gray-scale changes that represent the fabric wrinkles. Integrated with the non-vertical incident light, industrial array cameras can capture images with rich wrinkle features under conditions similar to the manual method. As the 2D image of the fabric is a projection of its depth map from the world space to the imaging space going through the effect of light and shadow and the sensor imaging, the 2D method is a kind of indirect observation. As a type of direct observation, on the other hand, 3D methods utilize 3D depth maps of the fabric samples captured by the technologies of laser triangulation,5,6 photometric stereo vision7,8 and binocular stereo vision9,10 as the raw data. These 3D methods have recently attracted more attention in the field, however, they suffer a number of inevitable drawbacks such as poor efficiency, high cost and high calibration complexity. In the authors' opinion, although 2D methods can only provide indirect observations of the fabric surface, they can still provide sufficient information for evaluation of fabric smoothness, due to the phenomenon that a trained tester can well assess a specimen with only 2D images observed by eye. The main problem that needs to be solved initially is to determine a highly adaptable image acquisition environment which provides the most reliable foundation for the further stable and effective feature extraction and smoothness classification.
Based on the captured data, a number of features based on different technologies are applied to describe the smoothness of fabrics. The features are listed below, based on the different data forms:
Features from 2D images: edge area; shade area
11
; variation of the gray-level intensity
12
; angular second moment, contrast, correlation, entropy of the gray-level co-occurrence matrix13,14; gray-scale range around the edges15,16; the fast Fourier transform subtotal in a specific frequency range
17
; orientation, hardness, density and contrast of wavelet coefficients.
18
Features from 3D depth maps: length, surface area, volume under the surface, mean principal curvatures, mean maximum twist of every sub-block of the depth map
5
; arithmetic average roughness, root mean square roughness, 10-point height, bearing surface ratio, wrinkle sharpness, wrinkle density6,19; fractal dimension
20
; maximum amplitude, sharpness, density, maximum amplitude of the first derivative of the cross profile of the edges10,21; mean, mean deviation, and standard deviation of the height values in each row.
22
For the classification models, minimum distance algorithm, 17 fuzzy priority similarity comparison method, 14 neural network,6,13 support vector machine (SVM),4,18 are widely used. In addition, differing from the traditional machine learning algorithms which depend heavily on the representation of the input image, deep learning algorithms can extract the high-level, abstract features from the input images by introducing representations that are expressed in terms of other simpler representations. 23 Such algorithms have been widely used in the field of image classification, for example, of ships 24 or vehicles, 25 hyperspectral image classification, 26 and candidate classification in detection of lung nodules. 27 However, the performance of deep learning algorithms depends heavily on the amount of training data, which is not well satisfied due to the small sample in this research. In the experiments conducted for this research, the performances of a series of well-known deep learning models are discussed.
As introduced above, the authors infer that 2D methods are sufficient to solve the problem. To explore further the possibility of the application of 2D methods in fabric smoothness assessment, the image acquisition environment needs to be further considered and it needs to be controlled because the environment greatly influences the visibility of wrinkle features in images. In addition, although several series of image features have been proposed independently in this area, the combination and comparison of different image features, and the possibility of improvement of the classifier ensemble, can be further explored. This research proposes a 2D-image-based system for the objective assessment of fabric smoothness with a synthesis discussion on the determination of the image acquisition environment, the selection of features and the classifier ensemble. First, an image acquisition system was established with a mechanism designed to capture images in different illumination environments. A number of feature sets based on different image processing technologies were then selected and used to train the SVM models. To determine a highly adaptable illumination environment, the information gain was used to select an initial environment and assign priorities to the parameters, that is, the position angle, altitudinal angle and intensity of the illumination, which were then selected by consideration of the classification accuracy and environment stability. Finally, a self-adapting weighted voting method was proposed to eliminate redundant feature sets and construct a classifier ensemble which can obtain a better result than any single feature sets or classifiers.
The contribution of this research is as follows:
Considering the inevitable disadvantages of the 3D methods, the feasibility of the more efficient and economical 2D methods is discussed and verified, promoting the further industrial application of the objective fabric smoothness assessment system. The image acquisition environment is widely discussed for different image features to evaluate the fabric smoothness, which provides a new reference for further research in this area. Based on the previous studies, a series of image feature sets is concluded and proposed. An ensemble classifier is established, which selects and combines the different feature sets and was found to outperform every individual classifier trained by every single feature set.
Method
In this section, the constitution of the proposed system is introduced, which includes the image acquisition system, image preprocessing, features extraction, classification model, feature evaluation, feature selection and classifier ensemble.
Image acquisition system
The main purpose of this research is to propose a 2D-image-based fabric smoothness assessment system with high stability across different conditions, for which the basic research data set is an image set of fabric specimens under different illumination environments. An image acquisition system able to capture images of the specimens under numerous different light conditions was designed. As shown in Figure 1, the whole system is set up in a light box. An objective table is set up at the bottom center of the light box, with a CCD camera (Point Grey Chameleon CMLN-13S2C) installed vertically above it to capture images of the specimen. To control the light environment, a light control module, including a strip-LED light source, two step-motors, a rotating arm and a screw rod, is built around the center pole of the objective table. As shown in Figure 1, step-motor A controls the light source on the rotating arm to rotate about the specimen horizontally, and step-motor B controls the light source to move up and down vertically. With cooperation between step-motor A and step-motor B, the light source can be moved in space. Additionally, with the help of the light source controller, images of the specimen can be captured under different light conditions with the combination of different position angle, altitudinal angle and intensity of the light source. To avoid interference from reflected light inside the light box, the internal surface of the light box was covered with black flocking fabric. Using this image acquisition system, images of a set of fabric samples were captured under different illumination environments, as illustrated in Figure 2.
Image acquisition system for 2D images of fabric samples. Image of a fabric sample captured by the proposed image acquisition system under different environments: column (1): illumination intensity change; column (2): position angle change; column (3): altitudinal angle change.

Image preprocessing
To rectify the uneven illumination background in images caused by the one-sided light source, an image preprocessing operation is applied to the original image I as follows:
Features extraction
To study the performance of different kinds of features extracted from the fabric images, eight different feature sets were selected by reference to the literature and developed by the authors.
1. Edge-based features
First, the Canny edge operator is applied to an input image I to generate an edge binary image
Edge-based features set 1
As proposed in previous research,
16
three statistical features: the mode of
Edge-based features sets 2 and 3
In this study, to discuss further the information in Gray-level distribution-based features In another study,
14
a set of features are extracted from the image based on the first-order statistical analysis of the pixel gra- level distribution. The feature set has four elements, as follows: Variance Gray-level commensal matrix-based features Based on the gray-level commensal matrix (GLCM) on direction θ of the fabric image, namely Fourier spectrum-based features Using the fast Fourier transform (FFT), the input image can be converted from the spatial domain into the discrete Fourier frequency domain.17,28 Fourier spectrum amplitude in some specific frequency ranges was calculated as the feature to evaluate the fabric smoothness in a previous study.
17
In this paper, a set of ranges covering the whole Fourier spectrum is considered, in which the amplitudes are calculated and grouped as the feature set Wavelet-based features: Wavelet transform (WT) can decompose the image into different frequency domains on different directions and compose their wavelet coefficients into a pyramid-structured wavelet decomposition.
18
To discuss the performance of the wavelet-based features, in this paper, two feature sets are selected to be used in the experiment.
Wavelet-based-features set 1
The fabric image is processed by a 2D Haar WT operation and a pyramid-structured decomposition is generated, in which every rectangle
Wavelet-based-features set 2
In addition to the
Classification model
This paper has shown how the feature sets can be extracted from an input fabric image. To further acquire the smoothness degree of the specimen and evaluate the performance of the different feature sets, the feature sets of the images in the dataset are trained by the support vector machine (SVM) model. For a training set of instance-label pairs
Verifiable indicator
As proposed above, different kinds of features can be extracted from the fabric images. To evaluate the effectiveness and stability of the features, a specific index has to be used. In this paper, information gain, which is widely used in the feature selection field,
30
is used as such an index. The feature data set is described as D, in which every row describes a sample and every column describes a specific feature. When the ith feature a is being discussed, the value of a can divide D into V subsets, thus the information gain
Feature selection and classifier ensemble method
Based on the above feature sets and the SVM classifier, several different classifiers can be generated. Finally, to generate the best performing classification result, in this paper, a weighted voting classifier ensemble method is proposed based on linear regression, which includes two main steps: weight determination and elimination of feature sets.
Weight determination
Note that n SVM classifiers have been trained based on the above n feature sets, which generate predictions for the m samples comprising an
This objective function is equivalent to the linear regression problem whose closed-form solution can be obtained.
Elimination of feature sets
After the weight vector has been determined, the weighted voting can be implied. However, the performance of the classifiers ensemble can be further discussed by eliminating some redundant feature sets. For this purpose, a greedy algorithm can be used, which eliminates the least-weighted feature set one by one and evaluates performance of the remaining ensemble. Finally, the classifiers ensemble can be selected based on the consideration of feature simplification and accuracy of final classification.
Experiment
Experiment setup
With the exception of the image acquisition system describe above, all the experiments in this study were conducted on a personal computer with Intel(R) Core(TM) I7-4790 CPU(3.6 GHz) 16GB RAM and GPU of Nvidia(R) GTX 1080Ti. All the algorithms were implemented by MATLAB under the Windows 10 and Linux operating system. The SVM was implemented by the LIBSVM. 29 The deep learning algorithms were implemented by the PyTorch. 31
Materials
Information on fabric samples and number of samples in different degrees of smoothness appearance
Parameters in the image acquisition system
In the experiments, five-fold cross-validation was applied to evaluate the classification performance reasonably. In this process, the whole data set was uniformly divided into five subsets, each of which was treated as the testing set in turn with the others being treated as the training set. The final result was computed by the average result across the five subsets. Thus, the training sample size was 308 and the testing sample size was 77 on average for each subset.
Results and discussion
In this research, the main purpose is to establish a whole system including determination of image acquisition environment, selection of feature sets and classifier ensemble, which will finally result in a stable and efficient solution for the objective assessment of fabric smoothness.
Determination of the image acquisition environment includes three main parameters of illumination: intensity, position angle, and altitudinal angle. In the experimental process, the illumination intensity and altitudinal angle was set in a specific value and the illumination position angle was selected as the number of illumination directions, that is, determining the number of fabric images with different illumination position angles to be used to extract features.
Initial environment selection
VMIG of feature sets under different conditions
Determination of parameters of the image acquisition system
Performance of the feature sets with different numbers of illumination direction angles
The performance of the classifiers trained on different feature sets in a specific environment can be used to verify the effectiveness of the model in such an environment, however, it is not enough to demonstrate the environmental stability and robustness. Thus, in the experiments, SVM classifiers trained on the feature sets extracted from one specific environment were tested on both the specific environment and the corresponding neighboring environments. For instance, the neighboring environments of environment 3-2 are environment 3-1 and 3-3 when discussing the illumination intensity; and they are environment 4-2 and 4-2 when discussing the altitudinal angle. In addition, to evaluate the maximum assessment possibility of the feature sets in a specific environment, the extreme maximum classification accuracy
Classification accuracy and environment stability performance of the feature sets according to change of altitudinal angle of illumination
Classification accuracy and environment stability performance of the feature sets according to change of illumination intensity
Feature selection and classifiers ensemble
When the image acquisition environment had been determined, the ensemble method proposed in the previous section was applied. The weights of the feature sets are given in Table 7, and the performance of the classifier ensemble in the feature sets elimination process is shown in Figure 3. In this process, as the data set was reduced by the proposed method, the classification accuracy of the classifier ensemble increased at first, and then decreased when there were less than five remaining feature sets, which verifies the redundancy of the first three feature sets. Thus the final reserved feature sets were determined, as shown in Table 7. The final classification accuracy of the classifier ensemble reached 82.86% and was much higher than any single classifier in the same environment.
Classification accuracy of the classifier ensemble as feature sets are eliminated. Weights and the elimination condition of the feature sets generated by the proposed method
Comparison of results of different methods
Results obtained by existing models
In respect of real-world application, although the proposed method needs more execution time than the other traditional methods, it is still much faster than the deep learning methods. In addition, the execution time of 3.498 seconds per sample and the assessment accuracy of acc0 82.60%, acc0.5 97.14% and acc1 100% are applicable to some extent in real applications in enterprises or testing organizations, based on the authors' consultations with the testing departments of the potential user organizations.
Conclusion
In this study, a 2D-image-based objective system for the assessment of fabric smoothness was established. First, an image acquisition system was built with the capability of controlling the illumination environment. With a number of feature sets extracted from the fabric images in different illumination environments, the ideal environment was obtained by a designed strategy. Finally, by the proposed feature selection and classifier ensemble method, the system generated superior classification results with an 82.86% classification accuracy. The study provides a hybrid solution for the assessment of fabric smoothness based on 2D images, which develops the previous studies in this field into the possibility of further real-world application.
There are some limitations in this study, however. Limited by the characteristics of 2D images, only white fabrics are used and discussed in this study. The adaptation of the system to color fabrics with complex and diverse patterns is limited by the challenge of establishing a universal feature set to distinguish a colored pattern from the pattern caused by the wrinkles. The adaptation of the system to color fabrics will be considered in the authors' future research. In addition, the assessment accuracy could be improved by other models that are better adapted to the human vision, which will also be considered in the authors' further study.
Footnotes
Declaration of conflicting interests
The authors declared no potential conflicts of interest with respect to the research, authorship, and/or publication of this article.
Funding
The authors disclosed receipt of the following financial support for the research, authorship, and/or publication of this article: This research was supported in part by the National Key R&D Program of China under Grant 2017YFB0309200, the National Natural Science Foundation of China under Grant 61802152, the Natural Science Foundation of Jiangsu Province under Grant BK20180602, the China Postdoctoral Science Foundation Funded Project under Grant 2018M640453, the Jiangsu Province Postdoctoral Science Foundation under Grant 2018K037B, the Fundamental Research Funds for the Central Universities under Grant JUSRP11805, the Fundamental Research Funds for the Central Universities under Grant JUSRP51907A.
