Hyperspectral modeling method for estimating carbon-nitrogen ratio of crop leaf based on feature fusion

By carrying out strip intercropping on corn and soybeans, and combining vegetation index and wavelet characteristics, a hyperspectral model is constructed, which solves the problem in the existing technology that the model can only be applied to a single crop, and achieves efficient carbon control of corn and soybeans. Nitrogen ratio prediction improves the accuracy and generalization ability of the model.

CN118780935AInactive Publication Date: 2024-10-15SICHUAN AGRI UNIV

Patent Information

Application Number
CN202410768214.7
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-06-14
Publication Date
2024-10-15
Estimated Expiration
Not applicable · inactive patent

AI Technical Summary

Technical Problem

The existing technology lacks a hyperspectral modeling method that can simultaneously predict the carbon-nitrogen ratio of corn and soybean crops using a feature fusion method. As a result, the model can only be applied to a single crop and lacks generalization migration capabilities and prediction accuracy.

Method used

By intercropping corn and soybeans in strips, the spectral reflectance and carbon-nitrogen ratios of leaves at different growth stages were obtained, and the vegetation index and wavelet characteristics were combined to fuse them to build a hyperspectral model. The difference vegetation index and gaus4 wavelet coefficients were used as natural parameters. variables, multiple linear regression and random forest models were constructed to predict carbon-nitrogen ratios.

Benefits of technology

It realizes the simultaneous monitoring of corn and soybean crops, improves the prediction accuracy and the generalization migration ability of the model, and overcomes the limitation that the same model is only applicable to the same crop.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118780935A_ABST
    Figure CN118780935A_ABST
Patent Text Reader

Abstract

The invention relates to the field of agricultural information, in particular to a hyperspectral modeling method for estimating the carbon nitrogen ratio of a leaf based on feature fusion. Vegetation index features and wavelet features are fused, the internal relation between spectral features and the leaf carbon-nitrogen ratio is fully considered, one model can be used for monitoring corn and soybean at the same time, the prediction precision is effectively improved, the defect that in previous research, the same model is only suitable for the same crop is overcome, and the application prospect is wide. And the precision and the generalization migration capability of the model are improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The patent of this invention relates to the field of agricultural information, a hyperspectral modeling method for estimating the carbon-nitrogen ratio of leaves based on feature fusion. Background Art

[0002] The transport and distribution of plant carbon and nitrogen is a key process in plant growth and development, and their ratio is the carbon-nitrogen ratio. The carbon-nitrogen ratio in plants can reflect the strength of plant metabolism and nutrient utilization efficiency. Applying crop residues with a low carbon-nitrogen ratio to farmland can reduce soil carbon and nitrogen consumption and improve crop productivity. Therefore, real-time monitoring of the carbon-nitrogen ratio of crops plays an important role in their growth and development and the soil carbon-nitrogen cycle. However, although traditional methods for detecting carbon and nitrogen content are relatively accurate, they are costly, have a long cycle, and are highly destructive. Therefore, a simpler and more efficient method needs to be invented.

[0003] With the development of smart agriculture, hyperspectral remote sensing has become a practical technology for quickly and non-destructively estimating the carbon and nitrogen status of crops. However, previous studies have mainly focused on the spectral feature analysis of single crops and the construction of nitrogen content estimation models, and lack the ability to generalize and migrate models to other types of crops. Rapid monitoring of the carbon and nitrogen status of soybean and corn crops, especially the carbon-nitrogen ratio, is of great significance for guiding crop nutrient management and crop growth under composite planting systems. At present, there is no technology in the prior art that can simultaneously predict the carbon-nitrogen ratio of corn and soybean crops by feature fusion. Therefore, a method of fusing vegetation index features and wavelet features to effectively improve the prediction accuracy, improve the shortcomings of previous studies that the same model is only applicable to the same crop, and improve the accuracy and generalization and migration capabilities of the model. Hyperspectral modeling methods are needed in this field. Summary of the invention

[0004] Based on the above purpose, the technical solution of the present application discloses a hyperspectral modeling method for estimating the carbon-nitrogen ratio of crop leaves based on feature fusion, including:

[0005] Corn and soybean were intercropped in strips, pure nitrogen was applied to the intercropping area according to a gradient, and samples were taken at different growth stages; the sampling periods for corn were jointing stage, bell mouth stage, tasseling and silking stage, and grain filling stage; the sampling periods for soybean were five-leaf stage, initial flowering stage, initial pod stage, and grain filling stage;

[0006] The spectral reflectance and carbon-nitrogen ratio of the sampled leaves were obtained respectively;

[0007] The obtained carbon-nitrogen ratios of corn and soybean leaves are mixed and arranged in ascending order, and then corresponded one by one with the spectral reflectance data to form a data set, and a modeling set is divided;

[0008] The spectral reflectance of the modeling set is freely combined in any two bands according to the vegetation index formula, and a correlation analysis is performed with the corresponding carbon-nitrogen ratio. The vegetation index with the best correlation is selected as the first independent variable of the model. Then, continuous wavelet transform processing is performed to screen out the wavelet coefficient with the best correlation as the second independent variable of the model. The leaf carbon-nitrogen ratio is used as the dependent variable to construct a hyperspectral model of the crop leaf carbon-nitrogen ratio.

[0009] Furthermore, the gradient level of applying pure nitrogen is: N0: 0 kg / hm 2 ; N1: 120kg / hm 2 ; N2: 210kg / hm 2 ; N3: 300kg / hm 2 .

[0010] Furthermore, the modeling set is divided in such a way that 3 values ​​are taken from every 4 values ​​of the data set to obtain the modeling set.

[0011] Furthermore, the vegetation index formula includes:

[0012] Difference vegetation index: R- i .-R -j ;

[0013] Ratio vegetation index: R- i . / R -j ;

[0014] Normalized difference vegetation index: (R -i .-R -j .) / (R -i .+R -j .);

[0015] Wherein, Ri and Rj represent the spectral reflectance at wavelengths of i nm and j nm respectively, and i≠j.

[0016] Furthermore, the continuous wavelet transformation process is specifically as follows: in the MATLAB environment, the original spectral data is decomposed into 1-10 scales using the gaus4 mother wavelet function, and the wavelet function formula is:

[0017]

[0018] Among them, f(t) is the spectral reflectance data, t is the spectral band (350~2500nm), Ψa,b(t) is the wavelet function, a is the scale factor, and b is the translation factor.

[0019] Compared with the prior art, the present invention has the following beneficial effects: the present invention integrates vegetation index features and wavelet features, fully considers the intrinsic relationship between spectral features and leaf carbon-nitrogen ratios, can use one model to simultaneously monitor both corn and soybean crops, effectively improves the prediction accuracy, and improves the shortcoming in previous studies that the same model is only applicable to the same crop, thereby improving the accuracy and generalization and migration capabilities of the model. BRIEF DESCRIPTION OF THE DRAWINGS

[0020] Attached Figure 1 This is the correlation analysis between three vegetation indices and leaf carbon-nitrogen ratios;

[0021] Attached Figure 2 It is the flow chart of continuous wavelet transform;

[0022] Attached Figure 3 Validate results for the random forest model;

[0023] Attached Figure 4 Verify the results for the multiple linear regression model. DETAILED DESCRIPTION

[0024] The present invention is further described in detail below in conjunction with specific examples. This implementation case is implemented based on the technology of the present invention, and a detailed implementation method and specific operation process are now given to illustrate that the present invention is creative, but the protection scope of the present invention is not limited to the following examples.

[0025] The first embodiment of the present application discloses a hyperspectral modeling method for estimating the carbon-nitrogen ratio of crop leaves based on feature fusion, comprising:

[0026] Corn and soybean were intercropped in strips, pure nitrogen was applied to the intercropping area according to a gradient, and samples were taken at different growth stages; the sampling periods for corn were jointing stage, bell mouth stage, tasseling and silking stage, and grain filling stage; the sampling periods for soybean were five-leaf stage, initial flowering stage, initial pod stage, and grain filling stage;

[0027] The spectral reflectance and carbon-nitrogen ratio of the sampled leaves were obtained respectively;

[0028] The obtained carbon-nitrogen ratios of corn and soybean leaves are mixed and arranged in ascending order, and then corresponded one by one with the spectral reflectance data to form a data set, and a modeling set is divided;

[0029] The spectral reflectance of the modeling set is freely combined in any two bands according to the vegetation index formula, and a correlation analysis is performed with the corresponding carbon-nitrogen ratio. The vegetation index with the best correlation is selected as the first independent variable of the model. Then, continuous wavelet transform processing is performed to screen out the wavelet coefficient with the best correlation as the second independent variable of the model. The leaf carbon-nitrogen ratio is used as the dependent variable to construct a hyperspectral model of the crop leaf carbon-nitrogen ratio.

[0030] In this embodiment, the strip intercropping pattern used is a 2-row planting pattern of 2 rows of corn and 2 rows of soybeans. The corn varieties are Denghai 605 and Zhongyu No. 3, and the soybean varieties are Nandou 12 and Guixia No. 7.

[0031] In this embodiment, the gradient level of pure nitrogen applied to corn is: N0: 0 kg / hm 2 ; N1: 120kg / hm 2 ; N2: 210kg / hm 2 ; N3: 300kg / hm 2 The strip-shaped cover area was divided into experimental plots, and the above concentrations of pure nitrogen were applied to different experimental plots, and each nitrogen fertilizer gradient was repeated three times. When sampling, the experimental plots with different pure nitrogen concentrations were sampled separately to obtain experimental leaves. The purpose of setting different corn nitrogen application gradients is to increase the diversity and coverage of data samples, improve the generalization ability of the model, and thus improve the prediction accuracy and stability of the model.

[0032] In this embodiment, the specific method of obtaining the spectral reflectance of the sampled leaves is: using the AvaField-3 portable hyperspectral ground object spectrometer to measure the leaf reflectance spectrum of the target plant. The spectral sampling range of the instrument is 350-2500nm, and the spectral reflectance within the range of 350-2500nm is collected. The spectral sampling interval is 0.6nm, and the measurement is 1nm (350-1100nm) and 6nm (1100-2500nm). The final value is 2503nm, the field of view angle is 25°, the light source is a 60W full-spectrum halogen light lamp, the zenith angle is 45°, and it is preheated for 30 minutes before use to ensure that the provided light source is stable. When measuring the leaf reflectance spectrum, the optical fiber probe is placed vertically about 10cm above the sample surface (the diameter of the reflectance spectrum measurement range is about 2.2cm). When measuring, the leaf is placed flat on a black wooden board (the light absorption rate is approximately 100%). Each sample is measured three times, and the average reflectance value of the three spectral measurements is taken as the leaf spectral reflectance of the sample. After the reflectance spectrum of each sample is measured, a white board is used for calibration and correction in time to obtain the spectral reflectance in the range of 350-2500nm.

[0033] The method of obtaining the carbon-nitrogen ratio is as follows: after the spectral reflectance of the corn and soybean leaf samples is measured, the leaf samples are placed in an oven, fixed at 105°C for half an hour, then dried at 80°C to constant weight, then crushed through a 60-mesh sieve, and about 0.1g of leaf powder sample is weighed, and the organic carbon and total nitrogen content of the leaves are measured using a total organic carbon analyzer and a Kjeldahl nitrogen analyzer, respectively, to obtain the true leaf carbon content and nitrogen content of the two crops of corn and soybean. The ratio of the two is the leaf carbon-nitrogen ratio. Then the true carbon-nitrogen ratio of corn and soybean is arranged in order from small to large, and then a data set is formed by one-to-one correspondence with the spectral reflectance data to obtain a leaf carbon-nitrogen ratio and spectral reflectance correspondence table as shown in Table 1 (Note: The corresponding table shown in Table 1 is only used as an example and does not contain all the data. In this embodiment, a total of 400 sets of data (each carbon-nitrogen ratio corresponds to a spectral reflectance curve) are obtained for the spectrum in the range of 350-2500, and four nitrogen application levels are obtained for soybeans and corn at different growth stages.

[0034] Table 1 Correspondence between leaf carbon-nitrogen ratio and spectral reflectance (example)

[0035]

[0036] In a further embodiment, based on the spectral reflectance corresponding to each carbon-nitrogen ratio under different spectral data obtained, a modeling set is obtained by taking 3 values ​​every 4 values, and the remaining values ​​are used as a validation set to verify the accuracy of the constructed hyperspectral model. For example, based on Table 1, carbon-nitrogen ratios of 5.067486585, 5.258194232, 5.693039773 and the corresponding spectral reflectance are selected as the modeling set, and the carbon-nitrogen ratio of 2.779181854 and the corresponding spectral reflectance are used as the validation set for accuracy verification. That is, the modeling set has a total of 300 sets of data, and the validation set has a total of 100 sets of data.

[0037] The spectral reflectance of the modeling set is freely combined in any two bands according to the vegetation index formula, and a correlation analysis is performed with the corresponding carbon-nitrogen ratio. The vegetation index with the best correlation is selected as the first independent variable of the model. Then, continuous wavelet transform processing is performed to screen out the wavelet coefficient with the best correlation as the second independent variable of the model. The leaf carbon-nitrogen ratio is used as the dependent variable to construct a hyperspectral model of the crop leaf carbon-nitrogen ratio.

[0038] Furthermore, the vegetation index formula is:

[0039]

[0040] Wherein, Ri and Rj represent the spectral reflectance at wavelengths of i nm and j nm respectively, and i≠j.

[0041] The correlation between these three vegetation indices and the leaf carbon-nitrogen ratio was analyzed to select the vegetation index with the best correlation. Figure 1 As shown, Figure 1 The correlation analysis of the three vegetation indices corresponds to the best bands. Among them, the difference vegetation index in the band (691nm, 629nm) has the best correlation, with a correlation R = 0.823. Therefore, the difference vegetation index value under this band combination is used as the first independent variable of the model.

[0042] Furthermore, the continuous wavelet transformation process is specifically as follows: in the MATLAB 2016b environment, the original spectral data is decomposed into 1-10 scales using the gaus4 mother wavelet function, and the wavelet function formula is:

[0043]

[0044] Among them, f(t) is the spectral reflectance data, t is the spectral band (350~2500nm), Ψa,b(t) is the wavelet function, a is the scale factor, and b is the translation factor.

[0045] In this embodiment, the following continuous wavelet transform functions are used to process the spectral data: hear, db, sym, coif, bior, rbio, gaus, meyr, dmey, mexh, morl. The applicant has verified that based on the corn and soybean strip intercropping mode, after being processed by gaus4 (i.e., the fourth-order derivative of the Gaussian function), the wavelet characteristics of the spectrum have the highest correlation with the carbon-nitrogen ratio, with a correlation coefficient of -0.823. Therefore, the wavelet coefficient corresponding to gaus4 is selected as the independent variable of the model.

[0046] In MATLAB 2016b, the operation process of the continuous wavelet transform package is as follows Figure 2 As shown in the figure, the continuous wavelet transform transforms the one-dimensional spectral data into a two-dimensional matrix of wavelet coefficients composed of spectral bands and decomposition scales, and then the obtained wavelet coefficients are correlated with the carbon-nitrogen ratio of the leaves to obtain their significance at the 0.01 or 0.05 level. In this method, after running the program package, the best wavelet function is gaus4, and the correlation is -0.823 at the band of 2085nm. It is used as the second independent variable of the model.

[0047] Then, the leaf carbon-nitrogen ratio is used as the dependent variable, the difference vegetation index and the wavelet coefficient corresponding to gaus4 are used as two feature independent variables, and the multiple linear regression and random forest machine learning methods are used to perform feature fusion and then construct a model. The model constructed by the multiple linear regression after calculation in this embodiment is: Y (carbon-nitrogen ratio)

[0048] =-821.6783*DVI+(-1285.5671)*gaus4+27.1036.

[0049] Among them, the random forest model is essentially a complex integrated model, and its formula is difficult to express concisely. Therefore, only the parameter information of the random forest model is shown in this invention. In this example, the number of trees used in the random forest model is 100, and K-fold cross validation is used, with the fold number set to 5. The data set is divided into a training set and a test set, and repeated multiple times to evaluate the performance of the model. In each iteration, the model is trained on a different training set and evaluated on the corresponding test set, thereby obtaining the average performance index of the model. In the visualization image constructed by the random forest model in this example, R 2 and RMSE are based on the results of cross-validation rather than the results of the complete dataset, which can more accurately evaluate the performance of the model.

[0050] Test Example 1 Model Verification

[0051] The coefficient of determination R 2 The hyperspectral model of the carbon-nitrogen ratio of crop leaves constructed was verified by using the root mean square error (RMSE). Specifically, the vegetation index characteristics and wavelet characteristics were extracted from the spectral data in the validation set obtained in the specific implementation method according to the present implementation method, and the spectral data were substituted into the constructed model to obtain the predicted carbon-nitrogen ratio; the predicted value was then fitted with the measured value in the validation set, and the R 2 And RMSE test model accuracy. Among them, the determination coefficient R 2 The hyperspectral model of the carbon-nitrogen ratio of crop leaves was verified by using the root mean square error (RMSE). The specific formula is:

[0052]

[0053] The test results are as follows Figure 2 , Figure 3 : From R 2 From the two evaluation indicators of R and RMSE, the multivariate linear regression model and random forest model constructed based on vegetation index and wavelet feature fusion can better predict the carbon-nitrogen ratio of leaves. 2 =0.804, RMSE = 4.012) is better than the multiple linear regression model (R 2 =0.784, RMSE = 4.133). This is because random forest is an ensemble learning method based on decision trees, which can better capture the nonlinear relationship in the model training set and has a better effect on handling outliers and noise. In addition, the results based on K-fold cross validation can better reflect the performance of the model on real data.

[0054] Through verification of independent samples, the verification effects of the two modeling methods are good and the differences are small. The R value of the model verification set based on the random forest algorithm is 2 The R value of the model validation set of multiple linear regression is 0.706, the RMSE is 4.659, and the ... 2 The value of the validation set is 0.706, and the RMSE is 4.660. Through the evaluation of the validation set, it can be considered that the model of the present invention has a good construction effect, and the model has high robustness and robustness. In subsequent practical applications, there is no need to divide the validation set, and the model can be constructed according to the method described in the present invention.

[0055] The above description is only a preferred embodiment of the present invention and is not intended to limit the present invention. Adjustments may be made according to different implementation scenarios.

[0056] Finally, it should be noted that the above implementation cases are only used to illustrate the technical solution of the present invention rather than to limit it. Although the present invention has been described in detail with reference to the preferred implementation cases, those skilled in the art should understand that the technical solution of the present invention can be modified or replaced by equivalents without departing from the purpose and scope of the technical solution of the present invention, which should be included in the scope of the claims of the present invention.

Claims

1. A hyperspectral modeling method for estimating the carbon-nitrogen ratio of crop leaves based on feature fusion, characterized in that: include: Corn and soybean were intercropped in strips, pure nitrogen was applied to the intercropping area according to a gradient, and samples were taken at different growth stages; the sampling periods for corn were jointing stage, bell mouth stage, tasseling and silking stage, and grain filling stage; the sampling periods for soybean were five-leaf stage, initial flowering stage, initial pod stage, and grain filling stage; The spectral reflectance and carbon-nitrogen ratio of the sampled leaves were obtained respectively; The obtained carbon-nitrogen ratios of corn and soybean leaves are mixed and arranged in ascending order, and then corresponded one by one with the spectral reflectance data to form a data set, and a modeling set is divided; The spectral reflectance of the modeling set is freely combined in any two bands according to the vegetation index formula, and the correlation analysis is performed with the corresponding carbon-nitrogen ratio, and the vegetation index with the best correlation is selected as the first independent variable of the model; Then, continuous wavelet transform processing was performed to screen out the wavelet coefficient with the best correlation as the second independent variable of the model. The leaf carbon-nitrogen ratio was used as the dependent variable to construct a hyperspectral model of the crop leaf carbon-nitrogen ratio.

2. The method according to claim 1, characterized in that: The gradient level of applying pure nitrogen is: N0: 0 kg / hm 2 ; N1: 120kg / hm 2 ; N2: 210kg / hm 2 ; N3: 300kg / hm 2 .

3. The method according to claim 1, characterized in that: The modeling set is divided in such a way that 3 values ​​are taken from every 4 values ​​of the data set to obtain the modeling set.

4. The method according to claim 1, characterized in that: The vegetation index formula includes: Difference vegetation index: R- i. -R -j ; Ratio vegetation index: R- i. / R -j ; Normalized difference vegetation index: (R -i .-R -j .) / (R -i .+R -j .); Wherein, Ri and Rj represent the spectral reflectance at wavelengths of i nm and j nm respectively, and i≠j.

5. The method according to claim 1, characterized in that: The continuous wavelet transformation process is specifically as follows: in the MATLAB environment, the original spectrum data is decomposed into 1-10 scales using the gaus4 mother wavelet function, and the wavelet function formula is: Among them, f(t) is the spectral reflectance data, t is the spectral band (350~2500nm), Ψa,b(t) is the wavelet function, a is the scale factor and b is the translation factor.

Citation Information

Patent Citations

  • Method and system for imitating luminous environment

    CN102150569A

  • Measurement device for measuring spectroscopic data of intercropping soybean canopy

    CN103837482A

  • Remote sensing inversion model and method for carbon-nitrogen ratio of overground part of rice

    CN111855591A

  • Characteristic fusion and data enhancement-based energetic material bond dissociation energy prediction method

    CN117497095A

  • System for monitoring and controlling ammonium or ammonia concentration in soil and water

    WO2024052897A1

Cited By

  • Deep learning-based carbon-nitrogen ratio estimation method for hyperspectral reflectivity of leaf

    CN121808740A