A method for detecting fruit surface decay using short-wave near-infrared
By collecting short-wave near-infrared spectrum data on the fruit surface and using a fuzzy decision-making environment to optimize regression coefficients and membership degrees, the problem of difficult feature wavelength selection is solved, and the accurate identification of fruit rot levels and detection efficiency are improved.
Patent Information
- Application Number
- CN202210942890.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-08-08
- Publication Date
- 2024-10-29
- Estimated Expiration
- 2042-08-08
AI Technical Summary
The existing technology has difficulty in selecting characteristic wavelengths in fruit surface rot detection, which leads to problems of increased model complexity and reduced stability, especially under the influence of spectral noise signals.
By collecting different degrees of short-wave near-infrared spectral data on the fruit surface, the objective function in the fuzzy decision-making environment is established, the Lagrangian function is introduced, the regression coefficient and membership degree are optimized, the key band characteristic values are selected, the fuzzy decision-making identification matrix is constructed, and the fruit is realized Identification of levels of decay.
It improves the stability and detection efficiency of the model, reduces the influence of noise signals, can accurately identify the rotten level of fruits, and is suitable for industrial real-time online detection.
Smart Images

Figure BDA0003786457690000022 
Figure BDA0003786457690000031 
Figure BDA0003786457690000032
Abstract
Description
Technical Field
[0001] The invention belongs to the technical field of post-harvest processing of fruits, and specifically relates to a method for detecting the surface rot condition of climacteric fruits in a short-wave near-infrared manner by combining technical theories such as fuzzy decision optimization and spectral analysis. Background Art
[0002] Spectral analysis technology is a qualitative and quantitative analysis technology based on the absorption characteristics of electromagnetic waves by a certain material component. Near infrared analysis technology is one of the spectral analysis technologies that has been very active in the field of fruit post-harvest processing in recent years and has received widespread attention and application. Near infrared light refers to electromagnetic waves with wavelengths between the visible region and the mid-infrared region, with a general wavelength range of 780 to 2526nm (wave number of 12820 to 3959cm -1 ), and the near infrared spectrum is usually divided into short-wave near infrared region (780-1100nm) and long-wave near infrared region (1100-2526nm). Compared with other non-destructive testing technologies, near infrared spectroscopy analysis technology has fast analysis speed and no pollution, no sample pretreatment, simple operation, and can simultaneously measure multiple components and indicators, thus facilitating real-time online detection of industry, but requires a large number of representative samples for analysis and modeling.
[0003] Fruit rot is the result of the interaction between the aging of the fruit itself (internal cause) and pathogen infection (external cause). After being picked, climacteric fruits such as apples, bananas, mangoes, kiwis, and tomatoes undergo a climacteric process from fresh to rotten. It is a physiological process from ripening to ripening of fleshy fruits, after which the fruit will enter aging and rot. In the process from ripening to aging, there is a stage in which the respiration intensity increases rapidly and endogenous ethylene is produced in large quantities, which is called the respiratory peak. During this period, when endogenous ethylene is produced in large quantities, since ethylene is an important factor in regulating the initiation of fruit ripening, a series of changes will occur inside the fruit: starch is converted into sugar, organic acids are decomposed, the acidity of the fruit decreases, and the activity of pectinase increases to differentiate pectin and soften the flesh. After the respiratory peak, the fruit will quickly age and rot.
[0004] Characteristic wavelength selection is very important for establishing a stable spectral model. For spectral data, there are usually many spectral wavelength variables, ranging from hundreds to thousands of wavelength variables. Some wavelength variables do not contain useful information and are noise signals. If all wavelength variables are used to establish the model, two problems will arise. First, the time required for modeling becomes longer and the model becomes more complex; second, the spectral noise signal is included in the model, affecting the stability of the model. Therefore, it is very necessary to select characteristic wavelengths before modeling. Multiple linear regression is the most basic and most commonly used method in near-infrared spectroscopy modeling. In the characteristic spectral range obtained by monitoring the surface of the fruit, the jump-type fruits with different degrees of decay may show similar spectral profiles due to the common component structure in the fruit, but the changes in the chemical composition of the internal organic matter caused by the degree of decay will gradually decrease with the deepening of the degree of decay from fresh to deep. Summary of the invention
[0005] The invention aims to collect short-wave near-infrared spectral band data of different degrees of fruit surface decay for analysis; firstly, a standard index characteristic value matrix of the absorbance of the corresponding spectral band can be set in combination with factors such as harvesting and storage, and the relative membership of the characteristic values of different bands of the short-wave near-infrared spectrum to the concept of decay and the relative membership of the standard values of the absorbance corresponding to the spectral bands of different levels to the concept of decay can be analyzed; then, a minimum objective function with equality constraints under a fuzzy decision environment can be established to solve the optimal membership and regression coefficient under the scenario of minimum square of the corrected standard error, and the Lagrangian constant is introduced to establish the Lagrangian function so as to become an unconstrained minimum problem to obtain the optimal value expression of the membership and regression coefficient; a sample set fuzzy decision recognition matrix for detecting fruit surface decay by short-wave near-infrared can be established through a sample set to obtain the regression coefficient; finally, the updated regression coefficient and the spectral characterization set are used to obtain the optimal membership of the fruit relative to the standard level, and the number of rows corresponding to the maximum value is the level corresponding to the fruit.
[0006] In order to achieve the above object, the present invention includes Figure 1 The following steps are shown in :
[0007] Step 1: For a certain type of transitional fruit, the spectral representation of the fruit surface from freshness after picking to ripening and rotting can be divided into c levels. After spectral preprocessing, λ1,λ2,···,λ m The combination of m short-wave near-infrared spectral bands is used as the short-wave near-infrared spectral band set, and the absorbance of the m spectral bands is used as the indicator feature; the absorbance of n fruits of this kind through the m spectral bands is measured and counted as the short-wave near-infrared spectral characterization set of the fruit is X=(x i,j ) m×n , where x i,jrepresents the absorbance of short-wave near-infrared spectral band i of fruit j, where 1≤i≤m, 1≤j≤n; let the regression coefficient of the absorbance of spectral band i corresponding to c levels be w h,i , where 1≤h≤c, corresponding to c levels of residual χ h , the chemical composition of fruit j can be expressed as Considering the characteristic spectral range of short-wave near-infrared, the transitional fruits of different degrees of decay may show similar spectral profiles due to the common component structure in the fruit, but the change of the internal organic chemical composition of the spectrum due to the degree of decay will gradually decrease with the deepening of the degree of decay from fresh to deep. Therefore, the spectrum characterization set of a certain transitional fruit in the present invention can be identified according to the absorbance conditions of m short-wave near-infrared spectral bands according to the standard values corresponding to c levels. Combined with factors such as harvesting and storage, the standard index eigenvalue matrix of the absorbance of the corresponding spectral band can be set as follows:
[0008]
[0009] Among them, y i,h Indicates the standard value of absorbance of spectral band i corresponding to level h, a i,max Corresponding to the very fresh standard value of absorbance of spectral band i, a i,min The absorbance standard value of spectral band i corresponding to severe decay, α and β are power function index parameters of factors such as harvesting and storage conditions.
[0010] Therefore, the relative membership degree r of the feature value of short-wave near-infrared spectrum band i of fruit j to the concept of decay can be set i,j It is expressed as:
[0011]
[0012] Among them, y i,1 is the standard value of spectral band index i about level 1 (used to mark very fresh), y i,c is the standard value of spectral band index i for level c (used to mark severe decay).
[0013] Assume that the standard value of absorbance of spectral band i of level h is y i,h The relative membership degree s of the concept of decay i,h It can be expressed as:
[0014]
[0015] Step 2: Assume that the fuzzy decision recognition matrix of n fruits used for short-wave near-infrared detection of fruit surface rot is U = (u h,j ) c×n , where u h,jis the optimal membership of fruit j relative to standard grade h; a minimum objective function with equality constraints in a fuzzy decision environment can be established to solve the optimal membership u in the scenario of minimum square of corrected standard error h,j and the regression coefficient w h,i :
[0016]
[0017] Where Δ is the subjective supervision factor, and 0<Δ<1;
[0018] Since the optimal membership u in the constraint condition h,j Must meet And the regression coefficient of absorbance satisfies Then we can introduce the Lagrange constant ξ and ζ and min{F(u h,j ,w i,h )} to establish the Lagrangian function L(u h,j ,w i,h ,ξ,ζ), thus transforming the minimization problem with equality constraints expressed in equation (4) into an unconstrained minimization problem, which can be solved by the unconstrained minimization objective function in equation (5):
[0019]
[0020] Step 3: Calculate the first-order derivative of the objective function of the unconstrained minimum in equation (5), and considering that the derivative can be set to 0 due to the extreme value, we can get:
[0021]
[0022]
[0023] Considering and Thus, we can get the membership degree u h,j and the regression coefficient w h,i The optimized value of:
[0024]
[0025]
[0026] Taking the second-order derivative of the unconstrained minimum objective function in equation (5) yields:
[0027]
[0028]
[0029] Discover and are obviously greater than 0, and because and This satisfies the condition for finding the minimum value of the function.
[0030] Step 4: Consider using laboratory testing or other methods to perform short-wave near-infrared spectral data statistics on n′ of this type of climacteric fruits as a sample set, thereby establishing a sample representation set X′=(x i,j′ ) m×n′ , and determine the grade σ of fruit j′ in the sample set j′ ; It can be seen that the optimal membership degree of the sample set fruit j′ relative to the standard level h can be expressed as Then the fuzzy decision recognition matrix of the sample set of n′ fruits for short-wave near-infrared detection of fruit surface rot can be established as U′=(u h,j′ ) c×n′ Substituting the short-wave near-infrared spectral band sample characterization set X′ of n′ fruits into equations (2) and (3), we can obtain r i,j′ and i,k , thus the regression coefficient w of this kind of transitional fruit can be obtained through formula (9) h,i , where 1≤i≤m, 1≤h≤c, we know that 0≤w h,i <1, and then for different levels h will (w h,i ) 1×m Take d limited items from large to small to satisfy The remainder in (w h,i ) 1×m The elements in are set to 0, where select() is a function that selects the maximum value in the matrix in turn, Θ is the regression coefficient threshold of the spectral band; the updated regression coefficient w h,i Combined with the sample representation set X′, the corresponding residual χ can be obtained by data comparison h ; Characterization set X = (x i,j ) m×n Combined with formula (2), the calculated r i,j , and s calculated with the representation set X′ i,k And the updated regression coefficient w h,i Substituting into formula (9) we can get the optimal membership degree u of fruit j relative to standard grade h: h,j , where 1≤j≤n, 1≤h≤c, then The corresponding h is the level corresponding to fruit j. BRIEF DESCRIPTION OF THE DRAWINGS
[0031] Figure 1 : Flowchart of short-wave near-infrared detection of fruit surface decay. DETAILED DESCRIPTION
[0032] The technical solution provided by the present invention will be described in detail below in conjunction with a specific embodiment of using short-wave near-infrared detection of surface decay in ponkan, including Figure 1 The following steps are shown in :
[0033] Step 1: The spectral characterization of the surface of ponkan from fresh to ripe to rotten after picking can be divided into 5 levels, from 1 to 5, respectively, very fresh, fresh, ripe, slightly rotten, and severely rotten. After spectral preprocessing, the absorbance can be selected as the peak position in the 700-800nm band related to the color of the ponkan fruit skin, especially when the intensity of the peak and trough nearby varies due to the different picking and storage time, and m=13 short-wave near-infrared spectral band combinations are used as the short-wave near-infrared spectral band set, and the absorbance of m spectral bands is used as the indicator feature; the absorbance of n=200 ponkans of this kind through m spectral bands is measured and counted as the short-wave near-infrared spectral characterization set X=(x i,j ) m×n , where x i,j represents the absorbance of short-wave near-infrared spectral band i of ponkan fruit j, where 1≤i≤m, 1≤j≤n; let the regression coefficient of the absorbance of spectral band i corresponding to c=5 levels be w h,i , where 1≤h≤c, let the residual corresponding to c levels be χ h , then the chemical composition of j can be set to Combined with the conditions of harvesting and storage, the standard index eigenvalue matrix of the spectral band absorbance in formula (1) can be set to represent it, and the power function index parameters α and β of the conditions of harvesting and storage can be considered to be set to 5 and 3 respectively. In actual operation, the representative color index H° (i.e., color difference angle) can be considered to establish the standard index eigenvalue matrix. Its value range in the 700-800nm band is 57.3 to 97.62, the average value is 64.51, the standard deviation is 6.00, and the coefficient of variation is 9.30, which can meet the needs of establishing the fruit correction model and verification model of ponkan during the harvesting and storage stages. Therefore, a can be set i,max and a i,min The value of
[0034] Therefore, the relative membership degree r of the characteristic value of short-wave near-infrared spectrum band i of ponkan fruit j to the concept of decay can be set i,j and the standard value y of absorbance of spectral band i of level h i,h The relative membership degree s of the concept of decay i,h Respectively expressed as:
[0035]
[0036]
[0037] Among them, the standard value y of spectral band index i with respect to level 1 i,1 and the standard value y of spectral band index i for level c i,c According to H ° It is set based on the value of the 700-800nm band.
[0038] Step 2: Assume that the fuzzy decision recognition matrix of n = 200 ponkan fruits used for shortwave near infrared detection of fruit surface rot is U = (u h,j ) c×n , where u h,j is the optimal membership degree of j relative to the standard level h = 5; the minimum objective function min{F(u h,j ,w i,h )} to solve the optimal membership u in the scenario with the minimum square of the corrected standard error h,j and the regression coefficient w h,i , where the subjective supervision factor Δ can be set to 0.5;
[0039] Since the optimal membership u in the constraint condition h,j Must meet And the regression coefficient of absorbance satisfies Then we can introduce the Lagrange constant ξ and ζ and min{F(u h,j ,w i,h )} to establish the Lagrangian function, thus transforming the minimization problem with equality constraints expressed in equation (4) into an unconstrained minimization problem. h,j ,w i,h ,ξ,ζ)} to solve;
[0040] Step 3: Calculate the first-order derivative of the objective function for the unconstrained minimum in equation (5), and considering that the derivative can be set to 0 due to the extreme value, we can get and The expression of and The membership degree u can be obtained by h,j and the regression coefficient w h,i The optimized value expression of is:
[0041]
[0042]
[0043] The unconstrained minimum objective function in equation (5) can be used to obtain the second-order derivatives in equations (10) and (11), and it can be found that and are obviously greater than 0, and because and This satisfies the condition for finding the minimum value of the function.
[0044] Step 4: Consider using laboratory testing or other methods to perform short-wave near-infrared spectral data statistics on n′=50 ponkans of this type as a sample set, thereby establishing a sample representation set X′=(x i,j′ ) m×n′ , and determine the grade σ of the ponkan fruit j′ in the sample set j′ ; It can be seen that the optimal membership degree of the sample set ponkan fruit j′ relative to the standard grade h can be expressed as Then the fuzzy decision recognition matrix of the sample set of n′ fruits for short-wave near-infrared detection of surface rot of ponkan fruit can be established as U′=(u h,j′ ) c×n′ Substituting the short-wave near-infrared spectral band sample characterization set X′ of n′ ponkan fruits into equations (2) and (3), we can calculate r i,j′ and i,k , thus the regression coefficient w of this kind of tangerine can be obtained through formula (9) h,i , where 1≤i≤m, 1≤h≤c, we know that 0≤w h,i <1, and then for different levels h will (w h,i ) 1×m The elements in the equation are taken from large to small to a limited number of d items, and the regression coefficient threshold value Θ of the spectral band is set to 0.98. It is found that when the number of items d is 5, it can be satisfied. The remainder in (w h,i ) 1×m The elements in are set to 0; the updated regression coefficient w h,i Combined with the sample representation set X′, the corresponding residual χ can be obtained by data comparison h ; Characterization set X = (x i,j ) m×n Combined with formula (2), the calculated r i,j , and s calculated with the representation set X′ i,k And the updated regression coefficient w h,i Substituting into formula (9) we can get the optimal membership degree u of the tangerine fruit j to be tested relative to the standard grade h: h,j ,but The corresponding h value is the level of the tangerine fruit that needs to be tested.
Claims
1. A method for detecting fruit surface rot by short-wave near-infrared, characterized in that: The following steps are involved: Step 1: The spectral characteristics of a certain type of transitional fruit from freshness after picking to ripening and rotting are divided into c levels. After spectral preprocessing, λ1,λ2,…,λ m The combination of m short-wave near-infrared spectral bands is taken as the short-wave near-infrared spectral band set, and the absorbance of m spectral bands is taken as the index feature. Suppose the absorbance of n fruits of this kind through m spectral bands is measured and counted as the short-wave near-infrared spectral characterization set of the fruit is X=(x i,j ) m×n , where x i,j represents the absorbance of short-wave near-infrared spectral band i of fruit j, where 1≤i≤m, 1≤j≤n, and the regression coefficient of the absorbance of spectral band i corresponding to c levels is w h,i , where 1≤h≤c, the chemical composition of fruit j is expressed by multiple linear regression as where χ h For the residual corresponding to c levels, the expression of the standard indicator eigenvalue matrix Y of the absorbance of the corresponding spectral band is set in combination with factors such as harvesting and storage, and the relative membership r of the eigenvalue of the short-wave near-infrared spectral band i of fruit j to the concept of decay is set i,j and the standard value y of absorbance of spectral band i of level h i,h The relative membership degree s of the concept of decay i,h Expression of Step 2: Assume that the fuzzy decision recognition matrix of n fruits used for short-wave near-infrared detection of fruit surface rot is U = (u h,j ) c×n , where u h,j is the optimal membership of fruit j relative to the standard grade h. Then, a minimum objective function with equality constraints in a fuzzy decision environment is established and converted to an unconstrained minimum objective function to solve the optimal membership u in the scenario of minimum square of the corrected standard error. h,j and the regression coefficient w h,i ; Step 3: Derivative the objective function of the unconstrained minimum, and considering that the derivative is set to 0 due to the extreme value, the objective function with respect to u is obtained h,j and w i,h The derivative of , thus obtaining the membership degree u h,j and the regression coefficient w h,i The optimized value expression of ; Step 4: Consider using laboratory testing or other methods to perform short-wave near-infrared spectral data statistics on n′ of this type of climacteric fruits as a sample set, thereby establishing a sample representation set X′=(x i,j′ ) m×n′ , and determine the grade σ of fruit j′ in the sample set j′ , and it can be seen that the optimal membership of the sample set fruit j′ relative to the standard level h is expressed as Then the fuzzy decision recognition matrix of the sample set of n′ fruits used for short-wave near-infrared detection of fruit surface rot is established as U′=(u h,j′ ) c×n′ ; The short-wave near-infrared spectral band sample representation set X′ of n′ fruits and r i,j′ and i,k The calculation expression of the sample representation set X′ corresponds to r i,j′ and i,k , and thus the regression coefficient w of this kind of transitional fruit is obtained by calculating the optimal value of the regression coefficient h,i , where 1≤i≤m, 1≤h≤c, we know that 0≤w h,i <1, and then for different levels h will (w h,i ) 1×m Take d limited items from large to small to satisfy The remainder in (w h,i ) 1×m The elements in are set to 0, where select() is a function that selects the maximum value in the matrix in turn, Θ is the regression coefficient threshold of the spectral band; the updated regression coefficient w h,i Combine the sample representation set X′ to compare the data and obtain the corresponding residual χ h ; Characterization set X combined with formula (2) to calculate r i,j , and s calculated with the representation set X′ i,k And the updated regression coefficient w h,i Substitute the expression of the membership optimization value into the formula to obtain the optimal membership u of fruit j relative to the standard grade h h,j , where 1≤j≤n, 1≤h≤c, then The corresponding h is the level corresponding to fruit j; In step 1, the calculation expression of the standard index eigenvalue matrix corresponding to the spectral band absorbance is expressed as: Among them, y i,h Indicates the standard value of absorbance of spectral band i corresponding to level h, a i,max Corresponding to the very fresh standard value of absorbance of spectral band i, a i,min The standard value of absorbance of spectral band i corresponding to severe decay, α and β are the power function index parameters of factors such as harvest and storage; In step 1, the relative membership degree r of the eigenvalue of short-wave near-infrared spectrum band i of fruit j to the concept of decay i,j The calculation expression is expressed as: Among them, y i,1 is the spectral band index i about level 1 used to mark very fresh standard values, y i,c is the standard value of spectral band index i for level c used to mark severe decay; In step 1, the standard value of absorbance y for spectral band i of level h i,h The relative membership degree s of the concept of decay i,h The calculation expression is expressed as: In step 2, the objective function of finding the minimum value with equality constraints in the fuzzy decision environment is expressed as: Where △ is the subjective supervision factor, and 0<△<1; In step 2, the objective function of unconstrained minimization is expressed as: Among them, ξ and ζ are Lagrange constants; In step 3, the membership degree u h,j and the regression coefficient w h,i The calculation expression of the optimized value is expressed as: Which must meet and conditions.
2. The method for detecting fruit surface rot by short-wave near infrared according to claim 1, characterized in that: In step 3, the objective function for unconstrained minimization is h,j and w i,h The first and second derivatives of are expressed as:
Citation Information
Patent Citations
Method for detecting and grading internal quality of fruits
CN101949834A
Mid-autumn crispy jujube sugar degree nondestructive test method
CN105044021A
