Nondestructive testing method for early recessive damage of kiwi fruit based on structured hyperspectral system

By combining hyperspectral and structured lighting technology, the structured hyperspectral system solves the problem of early hidden damage detection of fruits, achieves high-accuracy damage identification and classification, significantly improves detection accuracy and practicality, and prolongs the life of fruits. shelf life.

CN118583789APending Publication Date: 2024-09-03NANJING TECH UNIV
View PDF 0 Cites 1 Cited by

Patent Information

Application Number
CN202410641672.4
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-05-22
Publication Date
2024-09-03

AI Technical Summary

Technical Problem

Existing technology is difficult to effectively detect early-stage invisible damage to fruits, especially the hidden subcutaneous damage that kiwifruit may suffer during picking, sorting, packaging, preservation, storage, and transportation, leading to early aging and rot of the fruit.

Method used

Using a detection method based on a structured hyperspectral system, combined with hyperspectral camera and structured lighting technology, sinusoidal gray stripes are generated through computer programming, projected onto the surface of the sample to be measured, phase images at specific frequencies are collected, and the model is decoded into a complete image. Obtain structured spectral values ​​in the area of ​​interest to identify early fruit damage.

Benefits of technology

It achieves high-accuracy detection of early damage to fruits, especially the identification and classification of damage invisible to the naked eye, improves detection accuracy and practicality, and significantly extends the shelf life of fruits.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118583789A
    Figure CN118583789A
Patent Text Reader

Abstract

The invention provides a structured hyperspectral detection system and method capable of identifying collision damage, invisible to naked eyes, of kiwi fruits in the early stage. The system comprises a hyperspectral camera (HinaLea Image), a halogen tungsten lamp (150W), an optical fiber conduit, a projector (DLi CEL5500-Fiber), a computer and image acquisition software (TruScope), and is characterized in that the hyperspectral camera (HinaLea Image), the halogen tungsten lamp (150W), the optical fiber conduit, the projector (DLi CEL5500-Fiber), the computer and the image acquisition software (TruScope The detection method comprises the following steps of: after three 60cycles / m phase images are subjected to modulus resolution, calculating the average spectral reflectivity in a selected region of interest; and discriminating the damage and classifying the damage degree by adopting different modeling methods. The system has the advantages that illumination modes with different penetration depths can be realized by regulating and controlling the spatial frequency of sine light; multiband spectrum and image information are provided; the structured light image contains information of elastic photons and weak scattering photons, so that the image contrast and resolution are better, and the recognition accuracy is higher.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The invention relates to the field of early defect detection of fruits, and in particular to a detection method for non-destructively detecting collision damage of fruits that is invisible to the naked eye at an early stage. Background Art

[0002] Kiwifruit is rich in nutrition and tastes sweet and sour. It is in great demand in the market. However, it may be damaged in different types and degrees during the process of picking, sorting, packaging, preservation, storage, transportation, sales, etc. Due to the high hardness in the early stage and the unclear bruise site, the human eye cannot identify this early hidden subcutaneous damage. Because it is a ripening fruit, the bruise leads to faster respiration, which accelerates the aging and decay of the fruit. In severe cases, it will also infect the surrounding healthy fruits, causing large-scale spoilage and decay. At present, in response to this kind of damage that is invisible to the naked eye, relevant researchers have tried to use optical non-destructive testing technology (such as hyperspectral / multispectral imaging, visible near-infrared spectroscopy, etc.) to detect damage to apples, peaches, etc. At present, optical systems generally use uniform illumination mode for imaging detection of agricultural products, by symmetrically installing the light source around the sample to be tested or evenly distributing the light of multiple light sources to reduce unnecessary shadows. However, due to the limited detection depth, the detection accuracy of internal damage is low and the practicality is low. In recent years, researchers have also invented structured illumination (SI) based on spatial frequency domain reflectance to detect the quality of agricultural products. Unlike uniform illumination, SI is called illuminating an object with structured light or patterned light. Its detection capability depends on its image resolution, contrast and depth resolution characteristics. This technology has been applied to damage and disease detection of apples, peaches, citrus and cucumbers. This invention integrates the advantages of hyperspectral and structured illumination reflectance imaging technologies to explore their potential for detecting early hidden damage in kiwifruit. Summary of the invention

[0003] The present invention provides a method for detecting early fruit damage based on a structured hyperspectral system. The method has a high accuracy rate in detecting damaged fruits, especially for detecting damaged fruits that are invisible to the naked eye in the early stage.

[0004] The invention discloses a method for detecting early damage of fruits based on a structured hyperspectral system. The hyperspectral system comprises a hyperspectral camera, a light source, an optical fiber conduit, a projector and a computer. The computer is respectively connected to the hyperspectral camera and the projector. The light source is connected to the projector through the optical fiber conduit. The hyperspectral camera, the projector and the sample to be tested are placed in a closed dark box. Sinusoidal grayscale stripes are generated by computer programming, and the sinusoidal stripes are projected onto the surface of the sample to be tested through the projector. The hyperspectral camera is used to collect pictures of different phases at a specific frequency, and the phase pictures are decoded into complete pictures. A region of interest of a suitable size is selected and a structured spectrum value of the region of interest is obtained to identify early damage of fruits.

[0005] The present invention adopts a new structured light illumination mode. The basic principle is to measure the spatial modulation transfer function (S-MTF) to quantitatively describe the absorption and scattering process of light in the medium. Different modes of light (generally sinusoidal stripe light) are generated through computer programming. The sinusoidal grayscale stripes are projected onto the object to be measured through a projector, and then three phase images at a specific frequency are collected using a hyperspectral camera. The phase images are then merged and converted into a complete image. Compared with ordinary illumination modes, structured light can not only adjust the different depths of penetration into the sample by changing the frequency of the sinusoidal light, but also the structured light image has better contrast and resolution. This makes it possible to better detect internal / unseen damage to fruits.

[0006] The structured hyperspectral system of the present invention is to add a hyperspectral camera to the structured light system, combining the advantages of the two technologies of structured light and hyperspectral to achieve the purpose of detecting early damage to fruits. The system consists of a hyperspectral camera, a light source, a computer and image acquisition software. The entire device is placed in a closed black box and specifically includes: a hyperspectral camera (band range is 400-1000nm), a halogen tungsten lamp with an adjustable light source of 150W, an optical fiber catheter, a projector (DLi CEL5500-Fiber, Digital Light Innovations, Austin, TX, USA), and the image acquisition software is the supporting software for the hyperspectral camera.

[0007] According to the three phase modes of sinusoidal structured light, sample information is collected at the three phases of -2 / 3π, 0 and 2 / 3π respectively. After decoding the image, the complete image information can be obtained. First, the spectrum after decoding at each pixel point is obtained, and then the spectrum values ​​of all pixels in the area of ​​interest are averaged to obtain the average spectrum value of the area of ​​interest in the image.

[0008] Sinusoidal image decoding is to obtain the alternating component (AC) from the three phase images collected. Through the cancellation of the sinusoidal illumination mode at -2 / 3π, 0 and 2 / 3π, it can be obtained by the following formula:

[0009]

[0010] Among them, I1, I2, and I3 are three images with different phases, and the phase difference between them is 2π / 3.

[0011] The process of collecting diffuse reflection images of samples using the structured hyperspectral system is as follows: sinusoidal grayscale stripes with different phases at a specific frequency are generated by MATLAB (The MathWorks, Inc., Natick, MA, USA), and imported into the software supporting the projector (DLP CEL conductor control software). The projector is controlled to generate structured light and project it on the surface of the sample to be tested. The hyperspectral camera collects three diffuse reflection images and saves them in the computer in real time.

[0012] As an improvement, a projector CEL5500 developed by a professional company (Digital Light Innovations, Austin, TX, USA) was used, and there is supporting software to control the output of structured light. It is more stable and easier to use than a simple commercial projector.

[0013] As an improvement, the hyperspectral camera uses visible near-infrared imaging in the range of 400-1000nm, which is suitable for fruit quality detection.

[0014] As an improvement, Python is used to demodulate the image and calculate the average spectral value of the area of ​​interest. First, the three phase images of each sample are read. The phase difference between the three phases is 2π / 3. When the phase image is demodulated, the complete image information can be obtained by phase cancellation.

[0015] The present invention provides a structured hyperspectral detection system and method capable of identifying and classifying early damage to fruits that is invisible to the naked eye. The system comprises: a hyperspectral camera, a halogen tungsten lamp, an optical fiber catheter, a projector, a computer and image acquisition software. Sinusoidal stripe light is generated by computer programming, projected onto the object to be tested by a projection device, and three phase images of -2 / 3π, 0 and 2 / 3π are taken by a hyperspectral camera. The phase images are then demodulated into complete images, and spectral information is obtained. The damage detection method is: select some healthy and damaged samples, and manually extract the structured light spectral information of the damaged and healthy areas. Compared with ordinary lighting modes, the advantages of this system are not only that different penetration depths can be achieved; but also that the image can produce better contrast and resolution. BRIEF DESCRIPTION OF THE DRAWINGS

[0016] Figure 1 It is a schematic diagram of the structure of the structured hyperspectral system of the present invention;

[0017] Figure 2 This is a schematic diagram of simulating collision damage of kiwi fruit in the experiment;

[0018] Figure 3 Schematic diagram of the appearance and internal cutting of kiwifruit at different times of damage;

[0019] Figure 4 The hyperspectral reflectance of healthy and different damaged time kiwifruit;

[0020] Figure 5 Structured hyperspectral (spatial frequency is 60 cycles / m) reflectance of healthy and different damaged time kiwifruit; DETAILED DESCRIPTION

[0021] A method for detecting early damage of kiwifruit based on structured hyperspectral technology, the specific implementation method is as follows:

[0022] 1. Materials and methods

[0023] Zespri kiwifruit was purchased from the farmers' market in Pukou District, Nanjing, Jiangsu Province. Kiwifruits with uniform maturity, no damage, and no disease were selected. A wooden ball with a diameter of 70 mm and a weight of 135 g was used as the test device material. The wooden ball was used to impact the equator of the kiwifruit. The impact energy was quantified by controlling the falling height of the wooden ball. Figure 2 As shown. In this study, the impact energy is 0.5 J and the falling height of the wooden ball is about 37 cm. Information collection was performed on the samples at 0 h, 2 d, 4 d, 6 d, and 8 d after the simulated collision damage. Figure 3 These are the appearance and internal cut pictures of kiwifruit samples at 0h, 2d, 4d, 6d and 8d after damage occurred.

[0024] 2. Spectral information collection

[0025] The structured hyperspectral system group consists of a hyperspectral camera ((4250, HinaLea Imaging, Emeryville, CA, USA), with a band range of 400-1000nm and a spectral resolution of 2nm), a 150W adjustable halogen tungsten lamp, an optical fiber catheter, a projector (DLi CEL5500-Fiber, Digital Light Innovations, Austin, TX, USA) and image acquisition software, such as Figure 1As shown. Sinusoidal grayscale patterns of different phases at specific frequencies were generated by MATLAB (The MathWorks, Inc., Natick, MA, USA). According to preliminary studies, the preferred spatial frequency is 60 cycles / m, which is imported into the software supporting the projector (DLP CEL conductor control software) to control the projector to generate structured light and illuminate the sample surface. The light source was set to 150W, and the incident angle relative to the vertical axis was about 30°. The damaged area of ​​each kiwifruit sample was facing the camera. Under the sinusoidal illumination mode, three reflection images were obtained from each band in the sample, and the three-phase offsets were -2 / 3π, 0 and 2 / 3π, respectively. This is an 8-bit grayscale bitmap image generated in MATLAB (the Mathworks, Inc., Natick, MA, USA).

[0026] 3. Image decoding

[0027] The acquired images were first calibrated to correct for the non-uniform pattern projection caused by the projector. The total reflection signal and dark signal response (i.e., the camera was covered, completely blocking any incident light) generated by a 98% reflectivity Spectralon plate (Labsphere, Inc, North Sutton, NH) were used to calculate the total reflection signal and dark signal response (i.e., the camera was covered, completely blocking any incident light) according to the following equation:

[0028]

[0029] Among them, Rn is the corrected phase image, Rr is the original noise image, Rb is the acquired dark field image, and Rw is the white plate calibration image of the calibration reference plate.

[0030] Sinusoidal image decoding is to obtain the alternating component (AC) from the three phase images collected. Through the cancellation of the sinusoidal illumination mode at -2 / 3π, 0 and 2 / 3π, it can be obtained by the following formula:

[0031]

[0032] Among them, I1, I2, and I3 are three images with different phases, and the phase difference between them is 2π / 3.

[0033] 4. Damage identification

[0034] First, the size range of the region of interest at the damaged part at the equator was delineated, and then the structured spectrum of the region of interest was extracted. The structured spectrum values ​​were modeled and analyzed to qualitatively detect whether the kiwifruit was damaged and determine the damage time.

[0035] Each group of 60 samples was divided into a training set and a prediction set in a ratio of 2:1. The original data was processed by "Autoscale" to ensure the consistency of scales between different feature variables. Partial Least Squares Discriminant Analysis (PLS-DA), Support Vector Machine (SVM), Artificial Neural Network (ANN) and eXtreme Gradient Boosting (XGBoost) models were established to conduct qualitative classification analysis of damaged kiwifruit. In order to evaluate the performance of the model structure, the accuracy metric was defined and calculated:

[0036]

[0037] Among them, TP, FP, TN, and FN represent true positives, false positives, true negatives, and false negatives, respectively.

[0038] 5. Test results

[0039] 5.1 Analysis of spectral response changes

[0040] Figure 4 The change trend of structural hyperspectral reflectance at a spatial frequency of 60 cycles / m for healthy and different damaged kiwifruits. Mechanical damage causes internal defects and physiological disorders in fruit tissues, which can cause changes in the thermal properties of the fruit, thus causing changes in the spectral response of sensitive bands. Overall, the spectral peaks of all samples are roughly similar, and the spectral reflectance of damaged samples is higher than that of healthy samples, showing an increase-decrease-increase trend. The damaged samples at 0h and 2d have obvious differences in the spectrum compared with the healthy samples, and the relative reflectance of the spectrum reaches the highest on the 4th day and then decreases.

[0041] 5.2 Kiwifruit damage detection results based on structured hyperspectral

[0042] Partial least squares discriminant analysis, support vector machine, artificial neural network and extreme gradient boosting tree models were established to conduct qualitative classification analysis of damaged kiwifruit. First, four models were used to classify healthy samples and kiwifruit samples with different bruise times (0h, 2d, 4d, 6d, 8d). The results are shown in Table 1. All four models showed that the damage detection accuracy of structured hyperspectral was always higher than that of hyperspectral, among which the accuracy of artificial neural network was the highest. In addition, we also analyzed the different degrees of damage of kiwifruit according to different damage times, defining the damage 0h as early, 2d and 4d as middle, 6d and 8d as late, and the damage detection results are shown in Table 2. All four models showed that the damage detection accuracy of structured hyperspectral was higher than that of hyperspectral, among which the accuracy of artificial neural network was the highest. In order to further highlight the ability of the two groups of spectral technologies to detect early damage, we also classified the healthy and damaged kiwifruit samples at 0h. The results are shown in Table 3. The detection accuracy of hyperspectral was close to 100%, and the detection accuracy of structured hyperspectral was 100%. The above results prove that the accuracy of structured hyperspectral detection of damage is higher than that of traditional hyperspectral detection, and that structured hyperspectral nondestructive detection of early hidden damage in kiwifruit has excellent performance and great application potential.

[0043] Table 1 Binary classification damage detection results of kiwifruit based on HSI and S-HSI

[0044]

[0045] Table 2 Kiwifruit damage classification results based on HSI and S-HSI

[0046]

[0047] Table 3 Damage detection results of healthy and damaged 0h kiwifruit based on HSI and S-HSI

[0048]

Claims

1. A nondestructive detection method for early hidden damage of kiwifruit based on a structured hyperspectral system, characterized by: The structured hyperspectral system includes a hyperspectral camera, a light source (a 150W halogen tungsten lamp), an optical fiber catheter, a projector (DLiCEL5500-Fiber) and a computer. The computer is equipped with TruScope image acquisition software (HinaLea Imaging, Emeryville, CA, USA). The computer is connected to the hyperspectral camera and the projector respectively. The light source is connected to the projector through an optical fiber catheter. The hyperspectral camera, the light source, the projector and the kiwifruit sample are placed in a closed dark box, and the background of the dark box is black and non-reflective. Sinusoidal grayscale stripes of a specific frequency are generated by computer programming using MATLAB R2020a software, and the sinusoidal stripes are projected onto the sample to be tested through a projector. After correction by a blackboard and a whiteboard, different phase images are taken using a hyperspectral camera, and the collected phase image of the specific spatial frequency is demodulated into a diffuse reflectance image of the sample to be tested using a three-phase demodulation algorithm in Python. The average spectral value of the region of interest (ROI) of the damaged part of the kiwifruit, that is, the spectral reflectance of the structured hyperspectrum, is extracted, and a partial least squares discriminant analysis (Partial Least Squares Discriminant Analysis) is established. LeastSquares Discriminant Analysis (PLS-DA), Support Vector Machine (SVM), Artificial Neural Network (ANN) and eXtreme GradientBoosting (XGBoost) models were used to perform qualitative classification analysis on damaged kiwifruit, thereby identifying early hidden damage of the samples to be tested.

2. The nondestructive detection method for early hidden damage of kiwifruit based on structured hyperspectral according to claim 1, characterized in that: The hyperspectral camera (4250, HinaLea Imaging, Emeryville, CA, USA) used in this system has a spectral range of 400–1000 nm and a spectral resolution of 2 nm.

3. The nondestructive detection method for early hidden damage of kiwifruit based on structured hyperspectral according to claim 1, characterized in that: The collision energy and height were calculated according to the following formula to prepare the simulated damaged kiwifruit: Where m1 and m2 represent the weight of the wooden ball and the swing arm, respectively, l is the length of the swing arm, and h is the falling height of the wooden ball. The swing arm consists of a 23 cm long, 40 g steel rod, one end of which is fixed on the pivot, and the other end is a 70 mm diameter, 135 g wooden ball. The wooden ball is dropped from a height of about 37 cm so that the kiwifruit surface receives just 0.5 J of energy. The structured hyperspectral information is collected at 0h, 2d, 4d, 6d, and 8d of collision damage.

4. The nondestructive detection method for early hidden damage of kiwifruit based on a structured hyperspectral system as claimed in claim 1, characterized in that: The computer generates sinusoidal grayscale stripes with specific frequencies and different phases through MATLAB (The MathWorks, Inc., Natick, MA, USA) software, and imports them into the software supporting the projector (DLP CEL conductor control software). The projector is controlled to generate structured light to illuminate the surface of the sample to be tested, and the hyperspectral camera collects the diffuse reflection image and saves it in the computer in real time.

5. The nondestructive detection method for early hidden damage of kiwifruit based on structured hyperspectral according to claim 1, characterized in that: The spatial frequency of the sinusoidal grayscale stripes is 60 cycles / m, the emitting light source is about 25 cm away from the sample to be tested, and there are approximately 3 grayscale stripes of each phase projected onto the sample surface.

6. The nondestructive detection method for early hidden damage of kiwifruit based on structured hyperspectral according to claim 1, characterized in that: The parameters in the acquisition software TruScope were set as follows: wavelength range 400-1000 nm, gain 10, exposure time 1000 ms during calibration, exposure time 800 ms during acquisition, and whiteboard reflectivity 90%.

7. The nondestructive detection method for early hidden damage of kiwifruit based on structured hyperspectral according to claim 1, characterized in that: Use Python to demodulate the image and calculate the average spectral value of the ROI. First, read the three phase images of each sample. The phase difference between the three phases is 2π / 3. When the phase image is demodulated, the complete image information can be obtained by phase cancellation. The alternating component (AC) image is obtained by the following formula: Among them, I1, I2, and I3 are three different phase images at the same frequency. At the same time, the traditional hyperspectral image with uniform illumination is not demodulated. Then, a 250*200 pixel area is selected as the region of interest in the central bruise area of ​​the AC image of the given hyperspectral image / structured hyperspectral image, and the average spectral value of each pixel in the area is calculated. Since the spectral value of each pixel of the sample is the grayscale intensity of the corresponding band, the spectrum corresponding to each pixel on the image can be obtained by demodulating the image of each band through Python.

8. The nondestructive detection method for early hidden damage of kiwifruit based on structured hyperspectral according to claim 7, characterized in that: The average spectral reflectance of each group of samples was analyzed by PLS, SVM, ANN, and XGBoost modeling, where each group of 60 samples was divided into a training set and a prediction set at a ratio of 2:

1. The original data was processed by "Autoscale" to ensure the consistency of scales between different feature variables. The difference in detection accuracy between the traditional hyperspectral system and the structured hyperspectral system was compared based on the accuracy of damage identification by the model.

Citation Information

Cited By

  • Kiwi fruit multi-scale bruise detection method and readable storage medium

    CN120820499A