Cashmere has become one of the most popular raw materials in the textile industry because of its comfortable hand feel and excellent thermal insulation [1]. However, the international cashmere market is facing great challenges. The cashmere and wool fibers have similar appearance and touch, and they are mainly identified according to their scale characteristics [2]. Sometimes, merchants hide the lower-priced wool in cashmere products, which affects the stable operation of the textile industry market [3]. At present, the identification of cashmere and wool mainly uses the human eye to observe the microscopic pictures of the two [4]. This is an extremely time-consuming and error-prone work, and the result of identification is not reliable. Thus, in order to meet the need of cashmere products in the market, it is necessary to develop an automatic classification system that can identify the fiber of cashmere and wool quickly and precisely.
In recent years, many workers have applied the image processing technology to the recognition of cashmere and wool. In ref. [5], a method of the recognition of cashmere and wool fibers has been determined, which uses eight morphological features based on the difference between cashmere and wool fiber scale. In ref. [6], a Bayesian model for recognizing the cashmere and wool has been established using the three morphological features of fiber. In the identification system of cashmere and wool which is based on the different morphological features of fiber, because of the complex background of collected images, sometimes it is difficult to obtain the morphological feature of fiber. The recognition method of texture features has high recognition accuracy based on the objective expression of fiber features. The scale texture of the fiber image is classified by the feature extraction model established by the image processing method.
In ref. [7], the cashmere and wool were identified by abstracting the Tamura texture features. In ref. [8], the morphological and textural features of fiber were extracted by the gray-level co-occurrence matrix algorithm and interactive measurement algorithm and then the fibers of cashmere and wool were identified quickly and accurately by using the
Deep learning technology is favored for its good performance in classification. In recent years, some deep learning architectures for cashmere and wool classification have been developed. In ref. [12], a vision-based fiber recognition framework based on image segmentation and deep convolution neural network was proposed. This method can be used to segment overlapping and adhesive translucent fibers. Luo et al. [13] proposed a residual network method to identify cashmere and cashmere fiber. The results show that the proposed residual network model with 18 weight layers has the highest accuracy. In ref. [14], it applied four pre-trained convolutional neural networks (including AlexNet, VGG-16, VGG-19, and GoogLeNet) to transfer learning, evaluating the performance difference between the four network architectures to identify similar fibers. The convolutional neural network (CNN) system shows good classification accuracy in the classification of similar fibers of cashmere and wool. However, because the system requires a large amount of sample data to train the network model, it cannot achieve a good recognition accuracy with a limited amount of data.
In this article, we propose a feature fusion method of the wavelet multi-scale image based on the maximum inter-class variance, which is used to obtain good features for distinguishing cashmere and wool fibers, while reducing the demand for data volume and the computational complexity of the algorithm. This method fuses the Tamura texture features extracted through the Discrete Wavelet Transform. At present, wavelet transform is widely used in various image classification and image fusion technologies [15–16]. Compared with traditional texture feature extraction methods, the wavelet transform of images based on multi-scale decomposition has shown successful results in expressing the details of images and classifying image texture features. In this article, we propose a method for the classification of cashmere and wool using discrete wavelets for multi-scale feature fusion of fiber images. Section 2 gives the details of the proposed classification method of cashmere and wool. The analysis of the experimental results is presented in Section 3, and Section 4 is the conclusion.
Due to the differences in growth environment, breeding methods, and matching breeding, cashmere coarsening has become very common, and the distinction between cashmere and wool has become more complex. In this work, an automatic recognition method for cashmere and wool is proposed. It extracts the texture features of fiber images through image processing technology and fuses them into feature vectors that can distinguish them significantly according to the idea of maximum inter-class variance. The system block diagram to be implemented is shown in Figure 1. First, the collected source image of fiber is enhanced and cropped to reduce the influence of background on feature extraction and obtain the target area of the image for feature extraction. Then, the Tamura texture features of each sub-image decomposed by the Discrete Wavelet Transform of the target image are extracted. Afterward, the optimal weight is introduced for feature fusion based on the method of maximum inter-class variance, and then the fused features are normalized. Finally, support vector machine (SVM) is used for classification to obtain the final recognition accuracy.
Figure 1
The flow chart of cashmere and wool classification method.

In this study, cashmere and wool fibers from northern China are used as raw materials for the experiment, and the experimental images obtained from cashmere and wool fibers by scanning electron microscope are used as the data set of this article. The cashmere and wool fiber images are 400 images each in this study, and the magnification is set to 1,000 times in the SEM, and the horizontal and vertical resolutions are set to 96 dpi, respectively. In Figure 2(a) and (b), microscopic images of cashmere and wool fibers magnified by scanning electron microscopy are shown, respectively. Image processing and feature extraction are implemented in Python. The data set is divided into two groups, one is used for the training set, as the cross-validation of the system, and the other is used as the test set to evaluate the final recognition effect.
Figure 2
Fiber image provided by scanning electron microscope: (a) cashmere and (b) wool.

In order to reduce the interference information and obtain the detailed information of the target fiber, the texture of the fiber image is first enhanced by the adaptive texture enhancement algorithm, and then these images are binarized by the Otsu threshold method [17]. This part mainly distinguishes the image background from the original fiber area, and then it fills the area of interest and removes noise. Then it calculates the angle that needs to be rotated after obtaining the center axis of the fiber to facilitate subsequent cropping operations. Finally, the fiber-filled image is used as a template, and the original image is cropped to obtain the target area for subsequent fiber feature extraction. This process is shown in Figure 3.
Figure 3
Image preprocessing process: (a) original image, (b) enhancement, (c) binarization, (d) fill the image, (e) remove outliers, (f) central axis, (g) rotation angle, (h) rotate, and (i) crop.

Wavelet transform is called image microscope in image processing. Its ability of the multi-scale decomposition can decompose and separate the image information layer by layer through low-pass and high-pass filters [18]. The Discrete Wavelet Transform of image is to use a series of wavelets with different scales to decompose the original image signal into multiple detail images and approximate images. In this article, the Haar wavelet is used to decompose the cashmere and wool fiber images. The Haar scale function is expressed by the following equation [19]:
Figure 4
Wavelet multi-scale decomposition of cashmere image.

In order to make full use of the image information in low-frequency and high-frequency domain, the Tamura texture feature is extracted through the detailed and approximate sub-images which are obtained after the wavelet decomposition [20], which will better characterize the difference of fiber scales. Constructing the texture feature vectors of cashmere and wool with the largest divisibility is based on the feature fusion using the maximum inter-class variance. Assuming that after the original image is subsampled, the feature vector of the approximate image is
For obtaining the optimal feature fusion coefficient, the metric is introduced to measure the contrast of inter-class variance and intra-class variance. Its representation is shown in the following equation:
In the last step of the whole cashmere and wool recognition system, different classifiers are used to verify the fused feature performance for ten-fold cross-validation. These classifiers are
In this work, the size of the collected fiber images does not affect the final characteristics of the fibers, so the size of each image is cropped to 256 × 256 pixels for subsequent processing, and then the grayscale operation is performed on these images. In order to obtain the feature vectors with the maximum inter-class variance, the features extracted from the four sub-images of wavelet decomposition are fused linearly by introducing the weight, and the metric factor
Difference between intra-class and inter-class variance
Class | Image | Intra-class | Inter-class |
|
---|---|---|---|---|
Cashmere |
| 0.227 | 0.375 | 0.563 |
Wool |
| 0.217 |
The recognition accuracy of the extracted features of each sub-image is evaluated using SVM, as shown in Table 2. The results show that when the diagonal high-frequency detail information is used to characterize the image, and the extracted features obtain the highest recognition accuracy, the difference between the detailed features in the diagonal direction of the cashmere and wool fiber scales is obvious.
Performance measure values of original and sub-image features
Features | Accuracy (%) | Precision (%) | Recall (%) |
---|---|---|---|
Original | 88.47 | 88.16 | 88.71 |
Approximate | 82.86 | 82.04 | 83.40 |
Horizontal | 78.06 | 75.92 | 79.32 |
Vertical | 79.90 | 77.76 | 81.24 |
Diagonal | 84.29 | 83.88 | 84.57 |
To visualize the extracted high-dimensional feature data, map the multi-dimensional data to a two-dimensional plane. Figure 5 shows the features of the target area and different sub-images. It also reflects the separability between features after linear fusion based on the maximum inter-class variance. The performance measures are used in this article, which are accuracy, precision, recall,
Figure 5
Comparison of the distribution of different feature vectors.

The system evaluates the extracted features by using several typical classifiers for cross-validation. Using the features fused by introducing weights, different classifiers are evaluated through ten-fold cross-validation in this article, as shown in Table 3. The results show that the SVM with Gaussian kernel has the highest recognition rate. It shows 95.20% precision, 95.86% recall, and 96.16%
Performance measure values of different classifiers
Classifier | Accuracy (%) | Precision (%) | Recall (%) |
| MCE (%) |
---|---|---|---|---|---|
KNN | 92.35 | 91.84 | 92.78 | 92.31 | 7.65 |
LDA | 91.12 | 90.20 | 91.89 | 91.04 | 8.88 |
SVM | 95.20 | 96.46 | 95.86 | 96.16 | 4.80 |
On the basis of the same ratio of the training set and test set, the various existing methods of feature extraction and the method used in this article are evaluated. As shown in Figure 6, the method in this article shows a high recognition rate in classifying cashmere and wool fibers.
Figure 6
Comparison with the existing method.

In this article, an automatic classification method for cashmere and wool fibers is proposed. The method mainly obtains the feature vectors with the largest discriminative degree through the method of feature fusion based on the maximum inter-class variance. First, the original image is preprocessed to obtain the target fiber region, so as to reduce the impact of interference information such as background and noise. Then, the image is decomposed by the Discrete Wavelet Transform to obtain sub-images with approximate information and detail information of the image, and then the Tamura texture features are extracted from them, respectively. Next, these weights of the feature fusion are determined, and the feature vectors with the maximum inter-class variance are input into the classifier. By using different classifiers to evaluate the performance of the extracted features, it shows that the SVM classifier has the highest accuracy with an accuracy of 95.20%. The results indicate that the optimal feature vector of the cashmere and wool is obtained by fusing these features linearly, improving the recognition accuracy of fibers. However, there are still some shortcomings of this method, such as the small amount of sample data and the experimental errors. Therefore, more diverse fiber samples will be collected on the recognition of animal fibers in the future.
Figure 1

Figure 2

Figure 3

Figure 4

Figure 5

Figure 6

Performance measure values of different classifiers
Classifier | Accuracy (%) | Precision (%) | Recall (%) |
|
MCE (%) |
---|---|---|---|---|---|
KNN | 92.35 | 91.84 | 92.78 | 92.31 | 7.65 |
LDA | 91.12 | 90.20 | 91.89 | 91.04 | 8.88 |
SVM | 95.20 | 96.46 | 95.86 | 96.16 | 4.80 |
Performance measure values of original and sub-image features
Features | Accuracy (%) | Precision (%) | Recall (%) |
---|---|---|---|
Original | 88.47 | 88.16 | 88.71 |
Approximate | 82.86 | 82.04 | 83.40 |
Horizontal | 78.06 | 75.92 | 79.32 |
Vertical | 79.90 | 77.76 | 81.24 |
Diagonal | 84.29 | 83.88 | 84.57 |
Difference between intra-class and inter-class variance
Class | Image | Intra-class | Inter-class |
|
---|---|---|---|---|
Cashmere |
|
0.227 | 0.375 | 0.563 |
Wool |
|
0.217 |
Automatic Identification Of Wrist Position In A Virtual Environment For Garment Design Pressure Evaluation Of Seamless Yoga Leggings Designed With Partition Structure Tensile Properties Analysis Of 3D Flat-Knitted Inlay Fabric Reinforced Composites Using Acoustic Emission From Raw To Finished Cotton—Characterization By Interface Phenomena A Study on the Woven Construction of Fabric Dyed With Natural Indigo Dye and Finishing for Applying to Product Design for Home Textile Products A Calculation Method for the Deformation Behavior of Warp-Knitted Fabric Nondestructive Test Technology Research for Yarn Linear Density Unevenness Blend Electrospinning of Poly(Ɛ-Caprolactone) and Poly(Ethylene Glycol-400) Nanofibers Loaded with Ibuprofen as a Potential Drug Delivery System for Wound Dressings Study On Structure And Anti-Uv Properties Of Sericin Cocoons Fit And Pressure Comfort Evaluation On A Virtual Prototype Of A Tight-Fit Cycling Shirt Developing Real Avatars for the Apparel Industry and Analysing Fabric Draping in the Virtual Domain Review on Fabrication and Application of Regenerated Bombyx Mori Silk Fibroin MaterialsThe Effects of Sensory Marketing on Clothing-Buying Behavior Transport of Moisture in Car Seat Covers Review on 3D Fabrication at Nanoscale Investigation of the Performance of Cotton/Polyester Blend in Different Yarn Structures Design of Clothing with Encrypted Information of Lost Children Information Based on Chaotic System and DNA Theory Application of Spectral Analysis in Spinning Measurements Polyaniline Electrospun Composite Nanofibers Reinforced with Carbon Nanotubes Current Development and Future Prospects of Designing Sustainable Fashion Effect of Surface Modification of Himalayan Nettle Fiber and Characterization of the Morphology, Physical and Mechanical Properties Investigation of Actual Phenomena and Auxiliary Ultrasonic Welding Parameters on Seam Strength of PVC-Coated Hybrid Textiles Modeling Lean and Six Sigma Integration using Deep Learning: Applied to a Clothing Company Comparative Analysis of Structure and Properties of Stereoscopic Cocoon and Flat Cocoon Effect of Different Yarn Combinations on Auxetic Properties of Plied Yarns Analysis of Heat Transfer through a Protective Clothing Package Study on the Thermal and Impact Resistance Properties of Micro PA66/PU Synergistically Reinforced Multi-Layered Biaxial Weft Knitted Fabric Composites Fea-Based Structural Heat Transfer Characteristic of 3-D Orthogonal Woven Composite Subjected to the Non-Uniform Heat Load Comfort-Related Properies of Cotton Seersucker Fabrics Investigating textile-based electrodes for ECG monitoring in veterinary clinical practice Identification of metal threads from Croatian fabrics Automatic recognition of density and weave pattern of yarn-dyed fabric Non-planar 3D printed elements on textile substrate using a fused filament fabrication 3D printer Wearable design for occupational safety of Pb2+ water pollution monitoring based on fluorescent CDs Investigating the Effect of Recycled Cotton Included Fabrics on the Thermal Behaviour by Using a Female Thermal Manikin Investigation of surface geometry of seersucker woven fabrics Liquid moisture transport in stretched knitted fabrics Study on Process Optimization and Wetting Performance of Ultrasonic-Oxidized Wool Fiber Thermal Resistance of Gray Modal and Micromodal Socks Textronic Solutions Used for Premature Babies: A Review State of the art of presentation of clothing textiles in E-commerce with size matching issues Animal fiber recognition based on feature fusion of the maximum inter-class variance Tie-dyeing pattern fast-generation method based on deep-learning and digital-image-processing technology A review of textiles reflecting FIR produced by the human body Computer geometric modeling approach with filament assembly model for 2 × 1 and 3 × 1 twill woven fabric structures Single-sided Jacquard knit fabric development and seamless ski underwear zoning design based on body mapping sportswear Development of the Smart T-Shirt for Monitoring Thermal Status of Athletes Assessment and Semantic Categorization of Fabric Visual Texture Preferences Application of Coating Mixture Based on Silica Aerogel to Improve Thermal Protective Performance of Fabrics A Biomimetic Approach to Protective Glove Design: Inspirations from Nature and the Structural Limitations of Living Organisms Washing Characterization of Compression Socks Development of a Small, Covered Yarn Prototype Numerical Prediction of the Heat Transfer in Air Gap of Different Garment Models Archaeology and Virtual Simulation Restoration of Costumes in the Han Xizai Banquet Painting Modeling of Material Characteristics of Conventional Synthetic Fabrics