Abstract

Fiber contents in cotton/terylene and cotton/wool blended textiles were tested by near infrared (NIR) spectroscopy combined with back propagation (BP) neural network. Near infrared spectra of samples were obtained in the range of 4000 cm−1~10000 cm−1. Wavelet Transform (WT) was used for noise reduction and compression of spectra data. The correction models of cotton/terylene and cotton/wool contents based on BP neural network and reconstructed spectral signals were established. The number of hidden neurons, learning rate, momentum factor, and learning times was optimized, and decomposition scale of WT was discussed. Experimental results have shown that this approach by Fourier transformation NIR based on the BP neural network to predict the fiber content of textile can satisfy the requirement of quantitative analysis and is also suitable for other fiber content measurements of blended textiles.

1. Introduction

Textiles are necessaries of human life. With the development of textile industry and the people’s living standards, the kinds of pure textile, blended textile, and intertexture are increasing gradually. The requirement of analysis to fibers is also raised in the fields of production, scientific research, and trade. The various fiber content is index of textile quality, and how to measure it has an important meaning. Traditional chemical solution is a quantitative detecting method, which has long testing time, and a series of solvents should be prepared to dissolve the fiber, and lots of harmful gases would be produced and pollute the working environment [1].

NIR is referred to as the electromagnetic wave in the wavelength range of 780 nm~2526 nm, which has wide spectrum bands, weak absorption, and more information and is produced by the absorption of frequency doubling and frequency summing caused by molecular radicals’ vibration. Using stoichiometry method to solve the extraction of spectrum information and background interference, the good testing results will be obtained. Combination of NIR with stechiometry is more suitable to quantitive analysis and has been already applied to the fields of medicine, food, agriculture, chemical industry, and environment monitoring [28]. Applications of NIR to testing the fiber contents in textiles have been reported [912]. Most of these reports used the pretreatment method to preprocess spectrum data and sieve method to screening variables and then built up the model of partial least square (PLS) method. The progression is inconvenient.

In our previous work, the fiber contents of cotton/terylene blended textiles were predicted by NIR combined with BP neural network, and a decomposition scale 3 of WT was used. In this work, the near infrared spectra of 51 samples with different cotton/terylene and cotton/wool contents were directly reduced and denoised by Wavelet Transform (WT). The correction models of cotton/terylene and cotton/wool contents in blended textiles based on BP neural network were established. The number of hidden neurons, learning rate, momentum factor, and learning times was optimized, and a different decomposition scale of WT was used. Comparison of prediction results of BP models with PLS model was given.

2. Materials and Methods

2.1. Materials Preparation

The materials were provided by School of Materials Science and Engineering, Wuhan University of Science and Engineering. The textiles of pure cotton and pure terylene or wool were crushed into fibers about 1 mm long, respectively, and fully mixed with different ratio in order to prepare the blended samples with different cotton/terylene or cotton/wool contents. Each sample had the same mass of 0.05 g, and 51 samples were prepared, in which the content of cotton increased by mass fraction gradient of 2%, and the content of terylene or wool decreased by mass fraction gradient of 2%. 10 samples were selected randomly as validation set, and the other 41 samples were used as calibration set.

2.2. NIR Collection

Before NIR collection, the samples were dried at the temperature of 60°C by the galvanothermy blasting dry oven with constant temperature made by Shanghai Suopu Instrument Co., Ltd., whose type is DHG-9030A.

We used the Fourier NIR analyzer with the type of ANTARIS II, made by Thermo Nicolet Instrument Inc. of USA. The detector was InGaAs detector, and the scanning wavenumber range was from 4000 cm−1 to 10000 cm−1. Accessories of integrating sphere for diffuse reflection were adopted. The sampling resolution was 8 cm−1. The light source was a halogen tungsten lamp. The sample cell was rotated 120° every time. For each sample, the spectrum data were acquired at three angles, and the average was used. All the spectral data were collected under the condition of constant temperature of 20°C. The NIR of samples with different cotton/terylene contents was shown in Figure 1.

2.3. BP Neural Network

Artificial neural network (ANN) has a powerful learning ability and can realize the high nonlinear mapping between the input and output [13]. BP neural network is a study process of error back propagation arithmetic which includes two processes of information forward propagation and error back propagation. The neurons of the input layer receive the external information and pass it to neurons of intermediate layers. The intermediate layer can be designed as single or multihidden configuration. A forward learning propagation is finished when the information passed to neurons of the output layer by the last hidden layer is further treated, and the results are outputted to the outside by the output layer. The stage of error back propagation will begin when the factual output does not accord with the expected output. The error is back propagated from the output layer to the hidden layer and the input layer and corrects the weights of each layer according to gradient descent. The circular information of  forward propagation and error back propagation is a course that the weight of each layer is adjusted continually and the neural network is trained constantly. This course will not be stopped until the output error is reduced to the accepted degree, or the preset times of training are reached.

2.4. Wavelet Transform

Wavelet analysis is a new field of mathematics, which has wide application such as smoothing, noise reduction, compression, and transfer. Compared with linear smoothing, the WT smoothing has a distinct advantage especially on details of signal [14]. The original data were denoised by WT. Two functions of ddencmp and wdencmp were used. Ddencmp function can create the threshold scheme of noise reduction by WT, that is, find the default. Wdencmp function can use WT to de-noise. The main procedure to compress one-dimensional signal includes the wavelet analyzing of signal, the threshold treatment for high frequency coefficient and one dimension wavelet reconstruction. The two WT functions of wavedec and appcoef provided by MATLAB were used to compress the spectrum data and accelerate the model calculation, where wavedec is one-dimensional wavelet analyzing function of multiple scales, and appcoef is a picking-up function of one-dimensional wavelet low frequency coefficient.

3. Results and Discussion

3.1. Spectral Band Selection

For each sample, NIR included 601 spectrum data. If these 601 spectral data were all used, the dimension of input data would be very large and result in low speed of computer treatment. From Figure 1, we could find that the characteristic absorption peaks were focused in the wavenumber range from 4000 cm−1 to 7000 cm−1, which included lots of information about samples. So the spectral data in this wavenumber range were used as spectrum analysis. The number of spectral data in the wavenumber range of 4000 cm−1~7000 cm−1 was 321.

3.2. Wavelet Compression of Spectrum Data and the Choice of Wavelet Modulus

When using wavelet to compress the data, the more the decomposition scale is, the fewer the data size and the dimension of input data are, which hoists the prediction speed of correction model. At the same time the severe distortion leads to the low prediction accuracy of correction model. Taking into account both the prediction speed and accuracy of correction model, the decomposition scales of 3, 4, and 5 were selected, respectively, and wavelet basis function was bd1. The NIR models of blended textile were built up, and the spectrum data of 321 were compressed to 41, 21, and 11.

The reconstructed spectrum signals at decomposition scale of 3 are shown in Figure 2. Comparing Figure 2 with NIR of blended textiles, it can be seen that the reconstructed spectrum signals with wavelet modulus of 41 kept the original information of characteristic peaks in large degree and could not affect the prediction accuracy of correction model.

3.3. Optimization of Network Parameters
3.3.1. Determination of Number of Neurons in Hidden Layers

The absorbency in wavenumber range of 4000 cm−1~7000 cm−1 was the input of neural network. With the wavelet analyzing scale of 3, the number of nodes of input layer was 41, and the number of nodes of output layer was 2, corresponding to the contents of cotton and terylene. The number of hidden nodes determined the complexity of BP neural network. If the number of neurons in output layer was extensively few, the error would vary little after it decreased to a certain extent, the weights of BP neural network would not be enough, and good prediction results could not be achieved. If the number of neurons in output layer was too much, the network structure would be too complex, the training time would be very long and be difficult to converge, and the phenomena of overfitting, oscillation would appear. In our work, the number of hidden nodes was directly decided by the prediction results.

The number of hidden neurons was selected in the range of 15~22; the prediction effect for cotton/terylene samples was checked according to root-mean-square error (RMSE) and the mean absolute error (MAE). The fewer the RMSE and MAE were, the higher the precision of calibration and prediction was. For the wavelet decomposition scale of 3, when the number of hidden neurons was selected as 17, the predicting precision was higher. For the wavelet decomposition scale of 4, the structure of network was 21-13-2. For the wavelet analyzing scale of 5, the structure of network was 11-9-2.

3.3.2. Choice of Training Parameters of Network

The training times and the predicting ability of network were the main evaluating indicators of ANN. It was expected that the reliable prediction results for unknown samples were provided, and the training times were not too much. Therefore, for the 51 samples, 10 samples were selected randomly as validation set, and the other 41 samples were used as training set. Learning rate had much effect on iteration, and its value was selected in 0.01~0.8 commonly. Large learning rate might lead to instability of network, and little learning rate could lead to long training time and low convergence speed. For raising the convergence speed, the momentum item was improved. By debugging, the training parameters of network were made certain: the learning rate was 0.6, the momentum factor was 0.3, target error value was set as 0.00003, and the training times were set as 5000.

3.4. Results and Analysis

Table 1 gives the prediction results of cotton/terylene validation samples at decomposition scale of 3, where CV, PV, AE, MAE, RMSE, and are the chemical value, prediction value, absolute error, mean absolute value, root-mean-square error, and correlation coefficients respectively. Table 2 gives the comparison of prediction results of BP model at analyzing scales of 3, 4, and 5 (marked as WT-ca3-BP, WT-ca4-BP, and WT-ca5-BP correspondingly) with PLS model. By using WT-ca3-BP model, the AE was less than 4%, the MAE was 1.26% for cotton and 1.29% for terylene, and the RMSE was 1.86% for cotton and 1.89% for terylene. Correlation coefficients of cotton and terylene contents between prediction value and chemical value both were 0.998, and the prediction precision was the best. Comparing the BP models with PLS model, it can be found that the prediction precisions at the wavelet analyzing scales of 3, 4, and 5 both were better than PLS model. Therefore BP model was more suitable for determination of fiber contents of blended textile than PLS model. For cotton/wool samples, the best prediction accuracy was achieved when the compression scale was 4 and the network configuration was 21-13-2. RMSE was 2.20% and 2.44%, respectively (shown in Table 3).

4. Conclusions

A method for quantitative measurement of contents of blended textile by NIR based on BP neural network was investigated. 51 samples were prepared, in which 10 samples were selected randomly as validation set and the other 41 samples were used as calibration set. WT was used for the noise reduction and compression of spectra data. The correction models of cotton/terylene and cotton/wool contents based on BP neural network were established, the training parameters of network were optimized, and their prediction results were compared with PLS model. The BP model combined with WT has the characteristics of simplicity, and stability, high prediction accuracy and is fit for quantitative analysis for textile fiber.

Acknowledgments

This work was supported in part by the National Natural Science Foundation of China no. 6110803 and no. 51003082 and Natural Science Foundation of Hubei Province no. 2009CBD295.