Nondestructive testing system design for biological product based on vibration signal analysis of acceleration sensor

In order to reduce the disadvantages of current biological product quality testing methods, taking the quality testing in cocoon trade markets as an example, this paper has proposed a quality nondestructive testing method for biological products based on the analysis of vibration signal from acceleration sensors. According to the wavelet transformation analysis on the random vibration signal acquired from the acceleration sensor, the random vibration signal related to the silkworm chrysalis quality has been analyzed and reconstructed; then the characteristic values such as: mean value, variance, mean square root, waveform index, pulse factor, and so on of the quality signal have been extracted also; and then the characteristic values of the quality have been optimally selected within a fuzzy clustering method; at the end, a RBF neural network testing model with characteristic values from the silkworm chrysalis quality as an input signal was built. With these procedures, this paper has established a quality nondestructive testing system for silkworm chrysalis quality based on acceleration sensor signal measurement. The results from the application experiments demonstrated the effectiveness and applicability of this quality nondestructive system for quality testing of biological products. This quality nondestructive testing system has many advantages, including shortening the testing time, avoiding sample waste from traditional testing method, increasing the accuracy and reliability, which shows many bright social and economic benefits. This paper also provides the design and application of quality nondestructive testing systems based on vibration signal analysis with a theoretical support and experimental basis.


Introduction
At present, the nondestructive testing of biological products is one of the important research directions in food field, medicine field, light industry field and so on.But how to identify the characteristic value effectively, rapidly, accurately and to determine the target parameters of biological products is still a difficult problem [1].For example, to purchase and sale the biological products such as cocoon in light industries field currently, the operation mode of cocoon quality rating consists usually in taking 50 g fresh specimens from cocoon to strip the cocoon covering, to cut and to pour out the pupa, to shed the skin, to remove the dirt, and to dry them to get no-water quality, then to measure the dry shell quality.Based on the dry shell quality, grade the cocoon, usually select 9.2 g dry shell quality having the quasi level, and each difference 0.2 g has its level [2].Because of baking the shell for a long time, a lot of cocoon stations only evaluate the cocoon by touch and ocular estimation in the face of thousands of cocoon households.But this method only can be used to evaluate the visual quality of cocoon, and the testing precision of the method is very low, also the evaluation results could be influenced by subjective factors and practical experience of evaluator cannot achieve the high quality and high price.To cut the cocoon and to weight it, one must destroy the sample, to cause great economic waste.According to the statistics, about 930 t of fresh cocoon may be wasted every year, the direct economic losses amounted to RMB 13 million.
In order to realize the hedonic price and reduce the economic loss during the purchasing of cocoon, the cocoon quality nondestructive testing technology without cutting cocoon develops rapidly in recent years.Many related researches have been carried out by the China Test Research Institute, Sichuan Academy of Agricultural Sciences, Zhejiang Academy of Agricultural Sciences and so on, and the principle of suspension separation application momentum, two weighing method, elastic determination method, image recognition method, THz wave method, magnetic resonance imaging method and et al had been put forward [3].However, due to the detection accuracy is not stable; there is still a distance from the practice.Such as, the detection is based on image processing method [4], through the lighting of cocoon, using CCD camera image acquisition and processing, to calculate the dry shell quality of cocoon, but due to cocoon surface shape and internal structure difference and light affected by external disturbance, the detection effect and accuracy are not ideal.The [5] had studied the THz wave technology in the application of nondestructive measurement of agricultural products, and which became a research hotspot in recent stage, but most studies were conducted under laboratory conditions, which ignored many factors, so it was difficult to ensure the accuracy of test results from the practical application, there was a certain gap.The [6] using mechanical detection technology established the test system response to acquire the response signal and to analyze the signal frequency characteristics of the biological materials.The good correlation between the main response frequency and the quality of the material properties had been analyzed, but due to measurement limitations, the effect was not satisfactory.In addition, the silkworm and other crop products were detected by the NMR nondestructive testing technique in [7], and the results were satisfactory.But because of expensive equipment, equipment of large volume and low detection cost effect, which was not suitable for the practical application of low prices of agricultural products.
Therefore, the paper proposes a new method for cocoon quality nondestructive testing based on vibration signal analysis.It is aimed to sample the random vibration response signal of biological products by the acceleration sensor using the wavelet transform method to decompose and reconstruct the vibration signal by wavelet transform, and to extract the characteristic value [8].Then it is optimum to select the characteristic value by fuzzy clustering method [9].Then using the characteristic signals as the input, the RBF neural network identification model has been set up to realize the nondestructive quality testing for silkworm chrysalis.Comparing with the traditional testing method, the nondestructive testing method that proposed in the paper can greatly short the operation time, and can avoid wasting a large number of samples.The recognition results have higher precision and higher reliability.And the nondestructive testing method that designed in the paper is expected to obtain obvious social and economic benefits [10].

Nondestructive testing system established for biological product
The basic principle of the nondestructive testing method is to fix the cocoon shell in the test bench shown in Fig. 1 (the silkworm chrysalis can random vibrate in the cocoon shell), and the vibration exciter with sine law excitation From the experiment it is known that, under the conditions of excitation frequency and excitation power invariable, if the quality of the silkworm chrysalis is greater, the greater random vibration signal amplitude of the silkworm chrysalis in the cocoon shell can be obtained, and the greater variance.The vibration testing device is shown as Fig. 1.The testing device is mainly composed of electromagnetic vibration exciter, piezoelectric acceleration sensor, charge amplifier, power amplifier, data acquisition card and so on.The nondestructive testing system structure chart that used to sample and process the cocoon vibration signal is shown in Fig. 2.

Wavelet decomposition and characteristic extraction of vibration response signal
During the measuring course, 25 grain cocoons are randomly selected from a group of cocoons, and randomly fixed in the test bench shown in Fig. 1.The sampling frame length is set as 8192, and the sampling frequency is 2 MHz, then the original vibration signal can be sampled shown in Fig. 3.

Fig. 3. Original vibration signal of cocoon
Discrete process the original vibration signal of cocoon that measured by acceleration sensor, and select Eq. ( 1) to be the discrete processing function [13][14][15]: If , ≤ then: If , ≤ then: Then based on Eq. ( 1), Eq. ( 2) and Eq. ( 3), the binary wavelet transform of cocoon random vibration signal can be expressed as: where, , is the dual operator of , .To discrete process the continuous time , the finite length sequences discrete wavelet transform of vibration signal can be described as : Namely, the wavelet decomposition discrete form of random vibration signal can be obtained as Eq. ( 5) and Eq. ( 6).Then based on Eq. ( 5) and Eq. ( 6), the wavelet packet reconstruction of can be expressed as: where, is the No. decomposition sequence of the finite length sequences which are wavelet packet decomposed with layer; ℎ and are the low pass and high pass filter functions; ℎ and ̅ are the dual operators of ℎ and .
Use the 4-layers wavelet packet decomposition method to analyze the vibration signal shown in Fig. 3, then the energy spectrum can be obtained to be the identification characteristic value of the silkworm chrysalis quality.Four detail characteristic coefficients can be gotten as shown in Fig. 4, where = 1, 2, 3, 4.
The detail characteristic coefficients shown in Fig. 4 are the important indicator, which can be used to distinguish the different type vibration signals such as silkworm chrysalis and noise signal and so on from the vibration signal of cocoon.
In the paper, to normalize the process and energy of the four-layers detail characteristic space coefficients, then the normalized energy distribution of each detail characteristic space can be gotten as shown in Fig. 5.In Fig. 5, the horizontal coordinate express that the detail characteristic space of No. layer is ( =1, 2, 3, 4).Know from Fig. 5 that, the energy of the cocoon's vibration response signal is concentrated in the first layer and second layer.According to the energy value, to order the different wavelet decomposition layers and to form the characteristic vector, then the characteristic frequency band of the vibration signal of different silkworm chrysalis quality can be identified [16,17].
Based on the frequency band energy, the wavelet characteristic extraction algorithm can be designed as follows: (1) To reduce the noise of the vibration response signal of the cocoon and then to decompose the 4 layers' wavelet packet the signal, to extract the 2 4 (remember to ) unit's frequency components of the signal characteristic from low frequency to high frequency of every layer respectively; (2) To wavelet packet decompose and reconstruct the vibration signal, then to extract the vibration signal in each frequency band, and express them as

Selection of preferred characteristic parameters based on fuzzy clustering
It is known from the analysis result of the wavelet decomposition and characteristic extraction of the cocoon vibration signal ahead, that many kinds of characteristic parameters of the random vibration signal of the silkworm chrysalis can be obtained, such as mean value, variance, mean square root, peak value number, waveform index, peak value factor, pulse factor, margin factor, wavelet transform 4-layer decomposition energy value and so on.Because the multiple and miscellaneous characteristic indicators will bring trouble to the analysis and some characteristic indicators are interrelated, if the interrelated indicators also are analyzed, which will bound to cause redundancy of the analysis.In order to avoid the blindness and subjectivity during the course of the characteristic parameters selected of the silkworm chrysalis vibration signal, based on the fuzzy clustering theory [18][19][20][21], the paper has designed a new selected method to carry out the selected preferred characteristic parameters.
Set the given sample in the test is = , , … , , fuzzy clustering number is , then setting objective function Eq. ( 9) can be obtained as: where, is the centre of No. category, is the membership degree of No. sample in No. category, and meet that: In order to obtain the optimal solution of objective function Eq. ( 9), set the constraint condition as Eq. ( 11) and Eq. ( 12): where, is the weighted coefficient of membership degree.Using the following algorithm, the characteristic sample of the cocoon vibration signal is optimally selected as: (1) Set the initial value of parameters and , the value of is usually set as 2 which can be gotten from the literature [22], and then calculate the initial clustering center value of ; (2) Calculate the value of and which are restricted by the constraint conditions Eq. ( 11) and Eq. ( 12); (3) Set the cluster trial range ∈, if the appropriate norm matrix − can be obtained, which make − <∈ satisfied, then stop the analysis, and according to the calculated result output to determine the preferred characteristic value; if the norm matrix − ≥∈, then turn to the step (2) to start the next calculating, until − <∈ be met.Based on the fuzzy clustering algorithm above, select the preferred characteristic identification indexes of the silkworm chrysalis quality that is shown as follows: root mean square, wavelet decomposition energy of No. 1 layer, wavelet decomposition energy of No. 2 layer, margin factor and wave form indicator.Where the root mean square is

Quality recognition model based on RBF neural network
At present, the methods of quality identification include orthogonal test, variance analysis, regression analysis and so on [23].Due to the characteristics value of the vibration signal and the quality of silkworm chrysalis has a complex multi-input single output nonlinear relationship, these methods of poor adaptability deal with this kind of problem, and the application of these methods overly depends upon the knowledge and experience of the research field, it is difficult to establish the accurate mathematical model to calculate the quality of silkworm.
Using five vibration signal characteristic values which are obtained by the fuzzy clustering optimization method as the input, and the identification of cocoon chrysalis quality value as the output, establish the RBF neural network model for cocoon nondestructive testing system [24].
The number of the hidden nodes of the neural network is optimized by the genetic algorithm to set 5. Set the initial weights, and the output layer of the neural network is 1.Then set up the RBF neural network structure shown in Fig. 6.

Fig. 6. RBF neural network model for silkworm chrysalis quality recognition
The mathematical description of each layer of Fig. 6 is as follows: network input vector is = , , … , ; the implicit node activation function uses the Gauss's function which can be obtained from literature [25] that , where is the RBF neural network expansion constant, which can be used to determine the response range of the neural network to the input.In Fig. 6, is the transform weight of every layer, where the superscript represents the transformation layer, and the subscript represents two nodes which are connected by transformation.This paper calculates the weight of every layer by the steepest gradient descent method, and the operation algorithm is shown as follows: (1) Use the small random number to initialize the weight of Fig. 6, and set the initial training time is = 0; (2) Randomly select a single sample = , , … , and expected output from the training sample, and set them to be the validation sample; (3) Calculate the actual output of the neural network as shown in Fig. 6 under the conditions of input which are set at step (2): where, is the number of training samples; ⋅ is the Sigmoid function and = 1 1 + ⁄ ; where, Δ = ; is the learning step size of the neural network as shown in Fig. 6; is the expansion constant of the implicit layer and the output layer which are calculated by the inverse calculation method.And the output layer is (5) Test the neural network as shown in Fig. 6 many times, if the average square variance of the actual output and desired output is less than the threshold value than set by the initial value, then stop the calculation, and the silkworm chrysalis quality identification value could be obtained from a random vibration signal , which is shown in Fig. 7.

Experiment and discussion
During every test, randomly select 25 grains from a number of cocoons, and randomly place them in the fixture shown in Fig. 1, made a total of 200 tests.According to the analysis method that deduced in the third part of the paper, decompose a wavelet of the vibration signals of the cocoons which sampled by the nondestructive testing system as shown in Fig. 2 to reconstruct random vibration signals of silkworm chrysalis as described in Eq. ( 7), and the characteristic energy layer shown in Fig. 4 and Fig. 5 can be also obtained by the by wavelet decomposition system.By the wavelet feature extraction algorithm based on frequency band energy analysis designed in the paper, the quality characteristics random vibration signal of silkworm could be gotten as Eq. ( 8).Based on Eq. ( 8) and the fuzzy clustering optimization algorithm for the quality vibration signal characteristic value which is derived in the fourth part of the paper, five characteristic values related to the silkworm chrysalis quality can be obtained: the root mean square, wavelet decomposition energy of No. 1 layer (the 1st layer shown in Fig. 5), wavelet decomposition energy of No. 2 layer (the 2nd layer shown in Fig. 5), margin factor and wave form indicator.Then use five characteristic values to be the input of the RBF neural network identification model shown in Fig. 6, the quality of silkworm identification value could be derived as shown in Fig. 7. Based on the steps shown above, the whole process from the random vibration signal of cocoon to the recognition quality value of silkworm can be accomplished perfectly.
During the tests, select 120 samples to be the training samples, and select 155 samples to be the prediction samples, then the prediction error statistical results can be obtained as shown in Table 1.As known from the Table 1, when the set error of the actual value and predicted value is less than 0.2 g, the number of prediction success value has the occupation ratio of 90.9677 % of the total sample number.Comparing the value of the error statistics and value of cocoon testing standard statistics (the statistics value shall reach more than 95 %), a certain difference can be found out.But the experiment proved that the detection method was feasible, and the comparison with the previous detection method was a great improvement [26], which could realize the principle of "high quality -high price, and low quality -low price" of the cocoon purchasing policy basically, and the accuracy of rating was stable and reliable, and there were little human factors, which could greatly improve the enthusiasm of the farmer.
Comparing with the literature [27], the nondestructive detection method that designed in this paper could effectively reduce a generalization error of each operation link during the process of detection, could improve the detection accuracy, and the highest detection accuracy could be increased to about 3.2 %.
Table 1 also shows that if the error of the actual value and predicted value is greater than 0.5 g, the occupation ratio is 5.8064 %.The reason may be that the silkworm chrysalis is stuck in the cocoon shell, which will result in that the silkworm chrysalis cannot produce the vibration signal, so it causes testing errors.In order to eliminate these kinds of error, add the multi-sensor data integration method to the vibration signal test above, used to detect the characteristic value of the cocoon's surface image related to the quality of cocoon shell by surface image testing sensor, and then integrate the vibration signal characteristic value and image characteristic value, in order to eliminate the error of single sensor testing.

Conclusions
Based on the acceleration sensor, the response vibration signal of biological products has been obtained in this paper.Then wavelet decomposition and reconstruction analysis has been conducted on the signal.The characteristic values of the signal have been optimized within the principle of fuzzy clustering.And a RBF neural network testing model has been built to detect the quality of the silkworm chrysalis.Then the quality nondestructive system for silkworm chrysalis has been designed and established based on the vibration signal analysis.
The application of the testing system has demonstrated the effectiveness and feasibility of this quality nondestructive testing method for silkworm chrysalis quality testing.The proposed method is significant because it can effectively increase the speed and accuracy of testing and extraction of biological product characteristic parameters, and it has strong anti-interference ability.Statistic data shows that this nondestructive testing method can increase the testing speed by about thirty-one times, and it has the testing accuracy rate of 90.97 percent, which eliminates the disadvantages in conventional methods, and increases the efficiency, accuracy and economic benefits.

Fig. 2 .
Fig. 2. Vibration signal test structure chart of nondestructive testing system

4 .Fig. 5 .
Fig. 5. Energy distribution of wavelet decomposition layer 2452.NONDESTRUCTIVE TESTING SYSTEM DESIGN FOR BIOLOGICAL PRODUCT BASED ON VIBRATION SIGNAL ANALYSIS OF ACCELERATIONSENSOR.XIAOHAO LI, TAO SHEN

Fig. 7 .
Fig. 7. Quality identification signal of silkworm chrysalis by RBF neural network (4) Adjust the weight from the input layer, the weight of No. layer is expressed as:

Table 1 .
Prediction error statistical results of prediction samples