The disclosure relates to the field of non-destructive detection, in particular to a non-destructive detection system and method for internal defects of fruits.
The internal defects of the fruit will reduce the quality of the fruit and affect the consumers' intention to purchase. How to quickly and accurately identify the internal defects of the fruit is an issue that needs to be solved urgently. At present, the internal quality inspection of fruits in China mainly relies on the growers' experiences to make judgment by means of eye observation and listening to knocking sounds. Such manual method is not only time-consuming and labor-intensive, but also has low accuracy, and cannot meet the needs of high-throughput rapid and accurate detection. Therefore, it is urgent to construct a detection system for objective non-destructive detection of internal defects of fruits.
As a non-contact measurement method, laser Doppler vibration detection technology has the advantages of high sensitivity, fast dynamic response, and large measurement range. Such method is able to quickly, accurately and non-contact collect the vibration information of fruits. Since the vibration information of fruit is closely related to its mechanical and physical properties, laser Doppler vibrometer technology has the potential to detect internal defects of fruits.
The conventional fruit vibration data analysis method is to use the fast Fourier transform to convert the collected fruit vibration signal from the time-domain to the frequency-domain, extract the frequency-domain vibration characteristic parameters from the amplitude spectrum and phase spectrum, and establish a prediction model for inspecting the internal quality of the fruits based on these characteristic parameters. Although this method is simple and easy to implement, the online detection of internal defects in fruits is not accurate.
In order to solve the problems existing in the background technology, the present disclosure provides a non-destructive detection system and method for fruit internal defects based on wavelet transformation. The designed pulse type gas spray device is adopted to excite the sample, and a laser Doppler vibrometer is adopted to collect the vibration response signal of the sample. In addition, wavelet transform is adopted to analyze the original vibration response signal in the time-frequency-domain, and the vibration characteristic parameters are extracted to establish a prediction model for internal defects of the fruits.
In order to realize the above functions, the present disclosure adopts the following technical solutions:
The present disclosure includes an aluminum profile frame, a conveyor belt, a tray, a pulse type gas spray device and a laser Doppler vibrometer. The conveyor belt is horizontally arranged on the upper end surface of the aluminum profile frame along the fruit-conveying direction, and a detection station is arranged in the middle of the conveyor belt. The pulse type gas spray device and the laser Doppler vibrometer are respectively provided on both sides of the detection station. The tray is transported on the conveyor belt, and fruits are placed on the tray.
The pulse type gas spray device includes a vertical frame, an air pump, an oil-water separator, a stepper motor, a stainless steel screw rod, a moving slider, an air nozzle and a solenoid valve. The vertical frame is located on one side of the detection station, the stepper motor body is fixed on the upper end surface of the vertical frame. The output shaft of the stepper motor is coaxially connected to the vertical stainless steel screw rod through a coupling. The middle part of the stainless steel screw rod is threaded with a moving slider. There is a vertical guide rod movably sleeved on both sides of the moving slider. The guide rod is fixed and vertically arranged between the bottom and the top of the vertical frame, thereby forming a lead screw nut sliding pair.
An air nozzle is provided on a side of the moving slider facing the detection station. The output end of the air pump is connected to the air nozzle through an oil-water separator, a solenoid valve, and an internal channel of the moving slider.
The disclosure further includes a lifting platform, which is set at the lower end of the laser Doppler vibrometer and fixedly arranged on the aluminum profile frame.
One end of the aluminum profile frame is provided with a transmission device. The transmission device includes a transmission shaft and a stepper motor. The transmission shaft passes through a rear end of the aluminum profile frame and is drivingly connected to the conveyor belt, and the body of the stepper motor is fixedly arranged on the aluminum profile frame, the other end of the transmission shaft is connected to the output shaft of the stepping motor through a belt.
The disclosure further includes a PLC controller, and a photoelectric sensor is arranged beside the detection station: the stepping motor, the electromagnetic valve, the laser Doppler vibrometer, and the photoelectric sensor are all electrically connected to the PLC controller.
The method adopts a non-destructive detection system for internal defects of fruits. The fruits may be watermelons, kiwis, plums, cherries, etc. The internal defects of the fruits are defined as defects of whether they are hollow. The method includes the following steps:
S1. When the fruit samples are transported to the detection station, a pulse type gas spray device is adopted to spray high-pressure air on the fruit samples to excite the fruit samples, and the laser Doppler vibrometer is adopted to collect the original vibration response signals of the fruit samples.
S2. Wavelet transform processing is performed on the original vibration response signal, time-domain and frequency-domain vibration characteristic parameters are extracted, and a prediction model is established.
S3. The prediction model is adopted to detect the fruits to be tested, and the hollow fruits are filtered.
The step S2 is specifically as follows:
S2.1. First, a Daubechies wavelet db5 is used for the original vibration response signal and the number of decomposition layers j is 5 for wavelet transform denoising processing. Then 13 time-domain vibration characteristic parameters are extracted from the vibration response signal after wavelet transform denoising, mainly including an average value Xmean, an average amplitude Xarv, a root mean square Xrms, a peak-to-peak value Xpeak, a variance s2, a skewness coefficient Sk, a kurtosis Ku, a shape factor W, a pulse factor I, a peak factor C, a margin factor M, an attenuation coefficient α and a waveform index β.
S2.2. The filter function of wavelet transform is used again to filter the 13 time-domain vibration characteristic parameters, specifically: the number of decomposition layers j in the wavelet transform is adjusted to obtain the approximate coefficient aj within the specified frequency range, and the approximate coefficient aj uses fast Fourier transform to obtain the frequency-domain vibration response signal, and then 5 preliminary frequency-domain vibration characteristic parameters are extracted from the frequency-domain vibration response signal, mainly including the second to fourth order resonant frequencies f2, f3 and f4, the second-order resonance frequency amplitude A2 and frequency band amplitude BM85-160 between 85 Hz to 160 Hz.
S2.3. A part of the frequency-domain vibration characteristic parameters are adopted to eliminate the influence of the fruit sample mass on the resonance frequency according to the following calculation formula.
In the formula, fin is the i-th order standardized resonance frequency; m is the sample mass; m0 is a fixed mass; fi is the i-th order resonance frequency obtained by harmonic response analysis, where i=2, 3, 4.
Five frequency-domain vibration characteristic parameters are composed of three standardized resonance frequencies and the second-order resonance frequency amplitude A2 and frequency band amplitude BM85-160 among the five preliminary frequency-domain vibration characteristic parameters.
S2.4. The steel ball landfill method is adopted to measure the hollow volume of the fruit, and calculate the hollow rate H.
First, the fruit is cut along the equatorial plane, and steel balls with a diameter of 1 mm are continuously filled in the hollow part of the fruit sample until the hollow part is fully filled and aligned with the equatorial plane of the fruit sample. The total volume V0 of the filled steel balls is calculated, fruit samples without hollow parts will not be filled. The total volume V0 of the steel ball of the fruit sample without the hollow part is 0. The calculation formula for the hollow rate H of fruit samples is as follows:
S2.5. The original data set composed of 13 time-domain vibration characteristic parameters and 5 frequency-domain vibration characteristic parameters of all fruit samples is divided into a correction set and a verification set according to 2:1 through the sample set division method SPXY algorithm based on X-Y distance. According to the stepwise multiple linear regression method, part of the vibration characteristic parameters are screened from the time-domain and frequency-domain vibration characteristic parameters and used as the independent variables of the prediction model, and then different modeling methods are adopted to establish multiple different prediction models based on the correction set in sequence. Thereafter, the advantages and disadvantages of the multiple prediction models established are verified based on the verification set in turn.
The different modeling methods mentioned are stepwise multiple linear regression method, partial least squares regression method and BP neural network regression analysis method.
When the tray containing the fruit to be tested is transported to the detection station by the conveyor belt, the height of the air nozzle and the laser Doppler vibrometer probe are adjusted to the equatorial plane of the fruit to be tested through the stepper motor and lifting platform respectively. The photoelectric sensor is used to transmit the position signal to the PLC controller, and drive the pulse type gas spray device to spray high-pressure air on the fruit to be tested to excite the fruit to be tested. In the meantime, a laser Doppler vibrometer is adopted to collect the vibration response signal of the fruit to be tested.
Then the collected original vibration response signal is processed in the same method as the wavelet transform denoising in step S2 and the filter function of wavelet transform to obtain the time-domain and frequency-domain vibration characteristic parameters, and then the prediction model is used to obtain the hollow rate H of the fruit to be tested based on the time-domain and frequency-domain vibration characteristic parameters, and finally the hollow fruits are screened out.
Compared with existing technologies and methods, the present disclosure has the following advantages and benefits.
The data analysis method based on wavelet transform under the system of the present disclosure performs time-domain and frequency-domain analysis on the original vibration response signal, and extracts the time-domain and frequency-domain vibration characteristic parameters of the detected samples as independent variables of the prediction model, thereby improving the accuracy of the prediction model.
The disclosure has a simple operation process, may be applied to detect internal defects of other fruits, and has the characteristics of rapidity, efficiency, accuracy and so on.
The markings of various components in the drawing are as follows: 100, stepper motor, 200, transmission shaft, 300, pulse type gas spray device, 301, air pump, 302, oil-water separator, 303, stepper motor, 304, stainless steel screw rod, 305, moving slider, 306, air nozzle, 307, solenoid valve, 400, fruit, 500, conveyor belt, 600, tray, 700, lifting platform, 800, laser Doppler vibrometer.
The preferred embodiments of the present disclosure will be described in detail below in conjunction with the accompanying drawings, so that the advantages and features of the present disclosure can be more easily understood by those skilled in the art, so as to define the protection scope of the present disclosure more clearly.
As shown in
As shown in
There is an air nozzle 306 on one side of the moving slider 305 facing the detection station. The output end of the air pump 301 is connected to the air nozzle 306 through the oil-water separator 302, the solenoid valve 307, and the internal channel of the moving slider 305. The air flow pressure is adjusted by the oil-water separator 302, and the opening and closing of the air nozzle is controlled by the solenoid valve 307.
As shown in
One end of the aluminum profile frame is provided with a transmission device. The transmission device includes a transmission shaft 200 and a stepper motor 100. The transmission shaft 200 passes through a rear end of the aluminum profile frame and is drivingly connected to the conveyor belt 500. The body of the stepper motor 100 is fixedly arranged on the aluminum profile frame. The other end of the transmission shaft 200 is drivingly connected to the output shaft of the stepper motor 100 through a belt. Therefore, the stepper motor 100 drives the transmission shaft 200 to drive the conveyor belt 500 to move.
The detection system further includes a PLC controller, and a photoelectric sensor is arranged next to the detection station: the stepper motor 303, the solenoid valve 307, the laser Doppler vibrometer 800, and the photoelectric sensor are all electrically connected to the PLC controller.
The fruits involved in specific implementation are watermelons, kiwis, plums, cherries, etc. The internal defects of the fruits are defined as whether they are hollow.
The detection method of the detection system will be described in detail with reference to the embodiments. The present embodiment selects 108 Kirin watermelons as experimental samples.
The steps of this detection method are as follows:
S1. When the watermelon fruit 400 sample is transported to the detection station, a pulse type gas spray device 300 is adopted to spray a high-pressure air onto the watermelon fruit 400 sample to excite the watermelon fruit 400 sample, and a laser Doppler vibrometer 800 is adopted to collect the original vibration response signal of the watermelon fruit 400 sample.
S2. Wavelet transform processing is performed on the original vibration response signal, time-domain and frequency-domain vibration characteristic parameters are extracted, and a prediction model is established.
S3. The prediction model is adopted to detect watermelons of fruits 400 to be tested, and hollow watermelon fruits are screened.
Step S2 is specifically as follows:
S2.1. First, a Daubechies wavelet db5 is used for the original vibration response signal and the number of decomposition layers j is 5 for wavelet transform denoising processing. Then 13 time-domain vibration characteristic parameters are extracted from the vibration response signal after wavelet transform denoising, mainly including an average value Xmean, an average amplitude Xarv, a root mean square Xrms, a peak-to-peak value Xpeak, a variance s2, a skewness coefficient Sk, a kurtosis Ku, a shape factor W, a pulse factor I, a peak factor C, a margin factor M, an attenuation coefficient α and a waveform index β. Please see Table 1.
In the table: a xi is the data value of the time-domain vibration response signal; n is the number of data points of the time-domain vibration response signal; s is the standard deviation.
S2.2. The filter function of wavelet transform is used again to filter the 13 time-domain vibration characteristic parameters. The number of decomposition layers j is adjusted to obtain the approximate coefficientj within the specified frequency range, and fast Fourier transform is adopted on the approximate coefficientj to obtain the frequency-domain vibration response signal, and then 5 preliminary frequency-domain vibration characteristic parameters are extracted from the frequency-domain vibration response signal, mainly including the second to fourth order resonant frequencies f2, f3 and f4, the second-order resonance frequency amplitude A2 and frequency band amplitude BM85-160 between 85 Hz to 160 Hz. Specifically, the filter function of wavelet transform is that wavelet transform fixes the analyzed frequency-domain signal in a certain frequency band by adjusting the number of decomposition layers, which serves a function similar to a bandpass filter. Specifically, in the fitting process of wavelet transform, every time the number of decomposition layers j is increased, the wavelet coefficients will be reduced by half, and the frequency range will become half as compared with the original frequency range. Therefore, the analyzed frequency-domain signal may be fixed at a certain frequency band by adjusting the number of decomposition layers.
S2.3. A part of the frequency-domain vibration characteristic parameters is adopted to eliminate the influence of the watermelon fruit 400 sample mass on the resonance frequency according to the following calculation formula:
In the formula, fin is the i-th order standardized resonance frequency; m is the sample mass; m0 is 100 g; fi is the i-th order resonant frequency obtained by harmonic response analysis, where i=2, 3, 4.
Five frequency-domain vibration characteristic parameters are composed of three standardized resonance frequencies, the second-order resonance frequency amplitude A2 in the five preliminary frequency-domain vibration characteristic parameters, and the frequency band amplitude BM85-160 between 85 Hz to 160 Hz.
S2.4. The steel ball filling method is adopted to measure the hollow volume of watermelon fruit and calculate the hollow rate H:
First, the watermelon fruit is cut along the equatorial plane, and steel balls with a diameter of 1 mm are continuously filled in the hollow part of the watermelon fruit 400 sample until the hollow part is fully filled and aligned with the equatorial plane of the watermelon fruit 400 sample. The total volume, which is denoted as V0, of the filled steel balls is calculated, watermelon fruit 400 samples without hollow parts will not be filled. The total volume V0 of the steel ball of the watermelon fruit 400 sample without the hollow part is 0. The calculation formula for the hollow rate H of the watermelon fruit samples is as follows:
S2.5. The original data set composed of 13 time-domain vibration characteristic parameters and 5 frequency-domain vibration characteristic parameters of all watermelon fruit (400) samples is divided into a correction set and a verification set according to 2:1 through the sample set division method SPXY algorithm based on X-Y distance. According to the stepwise multiple linear regression method, part of the vibration characteristic parameters are screened from the time-domain and frequency-domain vibration characteristic parameters and used as the independent variables of the prediction model, and then different modeling methods are adopted to establish multiple different prediction models based on the correction set in sequence. Thereafter, the advantages and disadvantages of the multiple prediction models established are verified based on the verification set in turn.
The different modeling methods are stepwise multiple linear regression method, partial least squares regression method and BP neural network regression analysis method. Among them, the hidden layer and output layer activation functions of the BP neural network regression analysis method are selected as tangent-sigmoid function and purelin function respectively, and the learning efficiency and error range are set to 0.1 and 0.0004 respectively.
Step S3 is specifically as follows:
When the tray 600 containing the watermelon fruit 400 to be tested is transported to the detection station by the conveyor belt 500, the height of the air nozzle and the probe of the laser Doppler vibrometer 800 are adjusted to the equatorial plane of the watermelon fruit 400 to be tested through the stepping motor 303 and the lifting platform 700 respectively. The pulse width of the pulse type gas spray device 300 is set to 200 ms, the oil-water separator 302 is utilized to adjust the air pressure to 250 kPa: the photoelectric sensor is adopted to transmit the position signal to the PLC controller, and drive the pulse type gas spray device 300 to spray high-pressure air to the watermelon fruit 400 to be tested to excite the watermelon fruit 400 to be tested. In the meantime, a laser Doppler vibrometer 800 is adopted to collect the vibration response signal of the watermelon fruit 400 to be tested.
Then the collected original vibration response signal is processed in the same method as the wavelet transform denoising in step S2 and the filter function of wavelet transform to obtain the time-domain and frequency-domain vibration characteristic parameters, and then the prediction model is adopted to obtain the hollow rate H of watermelon fruits 400 to be tested according to the time-domain and frequency-domain vibration characteristic parameters. Finally, the hollow fruits are screened. In the present embodiment, the hollow rate of watermelon fruit 400 to be tested is specifically shown in Table 2.
In order to avoid the collinearity problem between the independent variables, when setting up the multivariate regression model, first the stepwise multiple linear regression method is adopted to screen the better variable combination. 10 independent variables are screened in this embodiment, which are Xmean, Ku, W, I, C, M, α, β, f2n, and BM85-160 respectively. Then, stepwise multiple linear regression method, partial least squares regression method, and BP neural network regression analysis method are adopted in sequence to establish a prediction model for hollow defects in watermelon. The results are shown in Table 3.
aThe 10 independent variables are Xmean, Ku, W, I, C, M, α, β, f2n, BM85-160.
As can be seen from Table 3, it is feasible to use the data analysis method based on wavelet transform to extract time-domain and frequency-domain vibration characteristic parameters to predict hollow watermelons. In addition, each module of the above-mentioned non-destructive detection system has certain adjustability and may be used to detect internal defects of other fruits.
Number | Date | Country | Kind |
---|---|---|---|
202210066516.0 | Jan 2022 | CN | national |
Filing Document | Filing Date | Country | Kind |
---|---|---|---|
PCT/CN2022/137242 | 12/7/2022 | WO |