A soil spectral transfer function method for soil property prediction
Through the soil spectral transfer function method, relevant soil attributes are screened and combined with soil spectral information, and a machine learning algorithm is used to construct a spectral transfer function of soil attributes, which solves the problem of low soil attribute prediction accuracy in traditional methods and realizes the prediction of soil attributes that are difficult to obtain. Efficient forecasting.
Patent Information
- Application Number
- CN202410843698.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-27
- Publication Date
- 2024-10-29
- Estimated Expiration
- 2044-06-27
AI Technical Summary
Traditional methods are difficult to effectively obtain hard-to-obtain soil properties such as soil bulk density, resulting in a lack of large-scale soil property data, and the prediction accuracy of soil spectra alone is low or uncertain.
Using the soil spectral transfer function method, by screening relevant soil attributes, combined with soil spectral information, and using machine learning algorithms to construct the spectral transfer function of the predicted soil attributes, the prediction accuracy is improved.
It improves the accuracy and efficiency of soil attribute prediction, reduces costs, and can effectively predict difficult-to-obtain soil attributes, such as soil bulk density.
Smart Images

Figure CN118392828B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of spectral analysis, and in particular to a soil spectral transfer function method for soil property prediction. Background Art
[0002] The acquisition of traditional soil bulk density requires the collection of ring knife samples, but the soil sampling process is complicated, and the sampling and indoor analysis time cost is high. Compared with easily acquired soil properties such as soil pH, this is a type of soil property that is more difficult to obtain. For this type of soil property, it is difficult to meet the demand for relevant soil property data at a large regional scale using traditional methods. Therefore, this type of soil property is often missing in many current historical soil data, and only a small amount of data is often collected and analyzed in new soil survey tasks to reduce costs and improve efficiency.
[0003] For soil properties that are difficult to obtain, such as soil bulk density, they are currently mainly predicted and obtained through the soil transfer function (PTF) with the help of other soil properties that are easier to obtain or routinely analyzed. For example, soil bulk density is often predicted through the soil transfer function with the help of conventional soil properties such as soil organic matter and soil texture. The soil visible and near-infrared spectrometry (vis-NIR) has a simple measurement process and a short test time. It has shown great potential in the prediction of various soil chemical properties such as organic matter, but there is still great uncertainty in the prediction of properties such as soil bulk density. For this type of soil properties that have low prediction accuracy or great uncertainty when using soil spectra alone, soil spectra and other existing soil properties that are easier to obtain or routinely analyzed can be used simultaneously and predicted through soil transfer functions. At this time, the soil transfer function not only contains soil spectral information, but also contains other soil property information. Therefore, it has the potential to improve the accuracy of the predicted soil properties, which can be called the "soil spectral transfer function method." Summary of the invention
[0004] Purpose of the invention: The purpose of the present invention is to provide a soil spectral transfer function method for soil property prediction, which can effectively couple the information of soil properties and soil spectra, improve the prediction accuracy of predicted soil properties, and enhance the prediction level of soil properties that are difficult to obtain.
[0005] Technical solution: The soil spectral transfer function method for soil property prediction of the present invention comprises the following steps:
[0006] S1, screening other soil properties according to the correlation between the predicted soil property and other soil properties, and the correlation between other soil properties;
[0007] S2, for the air-dried soil sample, use a spectrometer to scan the soil sample in an indoor environment to obtain a spectrum of the soil sample;
[0008] S3, smoothing, standard normal transformation, first-order differentiation and high-noise band deletion are performed on the soil sample spectrum to obtain the visible light-near infrared diffuse reflectance spectrum for the soil spectral transfer function;
[0009] S4, taking the predicted soil property as the dependent variable, and taking other soil properties and soil visible-near infrared diffuse reflectance spectrum as the independent variables, constructing the predicted soil property spectral transfer function of different soil properties and soil visible-near infrared diffuse reflectance spectrum combinations;
[0010] S5, comparing the accuracies of the spectral transfer functions of the predicted soil properties, and determining the optimal soil spectral transfer function for the predicted soil properties.
[0011] Furthermore, in step S1, the implementation steps of screening other soil properties are as follows:
[0012] S11, calculate the Pearson correlation coefficient between the predicted soil attribute and other soil attributes, where the number of other soil attributes is recorded as N; if N ≥ 2, when the absolute value of the Pearson correlation coefficient between the predicted soil attribute and a certain other soil attribute is less than 0.3, then delete the other soil attribute; when the absolute values of the Pearson correlation coefficients between the predicted soil attribute and all other soil attributes are less than 0.3, then only the other soil attribute with the largest absolute value is retained, and the number of remaining other soil attributes is recorded as K, where K ≥ 1; if N = 1, directly enter step S2, at this time K = N;
[0013] S12, when K ≥ 2, calculate the Pearson correlation coefficient between other soil attributes. When the absolute value of the Pearson correlation coefficient between two soil attributes is greater than 0.7, delete any one of the soil attributes, and the number of remaining soil attributes is recorded as L, where L ≥ 1; if K = 1, directly enter step S2, at this time L = K.
[0014] Further, in step S2, the steps for obtaining the spectrum of the soil sample in the indoor environment are as follows:
[0015] S21, drying the soil sample in the shade indoors until the weight of the soil no longer changes, and the drying time is not less than 7 days;
[0016] S22, the shade-dried soil samples were ground and passed through a 2 mm sieve;
[0017] S23, using a visible light-near infrared diffuse reflectance spectrometer, perform spectral scanning on the ground and sieved soil sample, rotate the soil sample 90 degrees, scan and obtain spectra in four different directions, and take the average value of the spectra in the four directions as the spectrum of the soil sample; the visible light-near infrared diffuse reflectance spectrometer is required to have a spectral range of 350~2500nm and a spectral resolution of not less than 20 nm.
[0018] Further, in step S3, the steps for obtaining the visible light-near infrared diffuse reflectance spectrum for the soil spectral transfer function are as follows:
[0019] S31, using the SG smoothing method to perform spectral smoothing on the soil sample spectrum;
[0020] S32, performing spectrum transformation processing on the smoothed soil sample spectrum using standard normal transformation;
[0021] S33, performs first-order differential processing on the soil sample spectrum;
[0022] S34, for the spectra obtained in steps S31, S32 and S33, delete the spectra within the front 100nm range and the tail 50nm range of the spectrum, and obtain the smoothed soil visible light-near infrared diffuse reflectance spectrum, the soil visible light-near infrared diffuse reflectance spectrum after standard normal transformation, and the soil visible light-near infrared diffuse reflectance spectrum after first-order differential processing, which are respectively recorded as SG, SNV and FD soil visible light-near infrared diffuse reflectance spectra.
[0023] Further, in step S4, the implementation steps of constructing the predicted soil property spectral transfer function are as follows:
[0024] S41, for L other soil attributes, construct combinations of different numbers of other soil attributes from 1 to L with an interval of 1, wherein the other soil attributes in each combination are selected and determined according to the absolute value of the correlation coefficient between the other soil attributes and the predicted soil attributes, and the other soil attribute of the kth combination takes the absolute value of the correlation coefficient of the first k other soil attributes, 1≤k≤L, and a total of L other soil attribute combinations are generated;
[0025] S42, using L other soil property combinations and SG, SNV and FD soil visible-near-infrared diffuse reflectance spectra, with the predicted soil property as the dependent variable, and any other soil property combination and soil visible-near-infrared diffuse reflectance spectrum as the independent variables, using the machine learning algorithm, construct the predicted soil property spectral transfer function: predicted soil property = f (other soil property combination, soil visible-near-infrared diffuse reflectance spectrum), generating a total of 3*L predicted soil property spectral transfer functions.
[0026] Further, in step S5, the steps for determining the optimal soil spectral transfer function for the predicted soil property are as follows:
[0027] S51, using cross-validation or independent validation methods, calculate the determination coefficient R of the constructed 3*L predicted soil property spectral transfer functions 2 and root mean square error RMSE;
[0028] S52, according to R 2 The size of the soil spectral transfer function and RMSE are used to determine the optimal soil property transfer function to be predicted.
[0029] Compared with the prior art, the present invention has the following significant effects:
[0030] 1. The present invention couples soil spectral information with other soil properties that are easily obtained or routinely analyzed, and upgrades the traditional soil transfer function that only uses other soil properties to a soil spectral transfer function, which integrates the information of soil spectrum and other soil properties, and can improve the accuracy of predicted soil properties;
[0031] 2. In constructing the spectral transfer function of the predicted soil properties, the present invention first screens other soil properties based on the relationship between them and the predicted soil properties, and then further screens other soil properties for the soil spectral transfer function considering the correlation between other soil properties. Finally, by constructing a combination of soil visible light-near infrared diffuse reflectance spectra after different soil properties and different spectral pretreatments, and with the help of a machine learning algorithm, a spectral transfer function of the predicted soil properties is constructed, which can achieve high-precision prediction of the predicted soil properties and improve the level of soil property prediction. BRIEF DESCRIPTION OF THE DRAWINGS
[0032] Figure 1 It is the overall flow chart of the present invention;
[0033] Figure 2 The study area and the spatial distribution map of soil collection points in the embodiment;
[0034] Figure 3 A scatter plot of soil bulk density prediction results based on a soil spectral transfer function that couples a soil property with a spectrum in an embodiment;
[0035] Figure 4 It is a scatter plot of soil bulk density prediction results based on soil spectral transfer function that couples two soil properties and spectrum in the embodiment;
[0036] Figure 5 It is a scatter plot of soil bulk density prediction results based on soil spectral transfer function that couples three soil properties with the spectrum in the embodiment. DETAILED DESCRIPTION
[0037] The present invention is further described in detail below in conjunction with the accompanying drawings and specific implementation methods.
[0038] The present invention proposes a soil transfer function method, namely "soil spectral transfer function method", by coupling other easily acquired or conventionally analyzed soil properties and soil spectral information. First, other soil properties used in the soil spectral transfer function are screened, and soil properties with a strong correlation with the predicted soil properties are selected. Then, the soil spectrum is measured and obtained and the measured spectrum is preprocessed to reduce the influence of factors such as noise on the spectrum. Then, by constructing a combination of soil visible light-near infrared diffuse reflectance spectra after different soil properties and different spectral preprocessing, the predicted soil properties are predicted with the help of machine learning algorithms, and the optimal soil spectral transfer function of the predicted soil properties is selected according to the prediction accuracy.
[0039] In the prediction of soil properties that are difficult to obtain, such as soil bulk density and soil cation exchange capacity, the accuracy of prediction using other soil properties alone and with the help of soil transfer functions is not high, and there is also great uncertainty in prediction using soil spectra alone. Considering that the soil spectrum can comprehensively reflect the physical and chemical properties of the soil, and many soil properties are relatively easy or belong to conventional analysis properties, the soil spectrum and other soil property information can be used simultaneously for the predicted soil properties to improve the prediction accuracy. Therefore, the present invention provides a soil spectrum transfer function method for soil property prediction that comprehensively utilizes soil spectra and other soil property information, which is used to predict soil properties that are difficult to obtain, such as Figure 1 As shown, the specific steps include:
[0040] Step A, based on the correlation between the predicted soil attribute and other attributes, and the magnitude of the correlation between other soil attributes, screen other soil attributes, and then proceed to step B.
[0041] In practical application, the above step A specifically performs the following steps A1 to A2:
[0042] Step A1, calculate the Pearson correlation coefficient between the predicted soil attribute and other soil attributes, for example, the predicted soil attribute is soil bulk density or soil ion exchange capacity, and other soil attributes mainly include organic matter, soil texture (clay, silt and sand content), pH, soil moisture, etc.; the number of other soil attributes is recorded as N; if N ≥ 2, when the absolute value of the Pearson correlation coefficient between the predicted soil attribute and a certain other soil attribute is less than 0.3, then delete the other soil attribute; when the absolute value of the Pearson correlation coefficient between the predicted soil attribute and all other soil attributes is less than 0.3, then only retain the other soil attribute with the largest absolute value, and the remaining number of other soil attributes is recorded as K, where K ≥ 1; if N = 1, directly enter step B, at this time K = N;
[0043] In addition, the predicted soil property may also be organic matter, and other soil properties may be soil clay, etc.
[0044] Step A2: When K ≥ 2, calculate the Pearson correlation coefficients between other soil attributes. When the absolute value of the Pearson correlation coefficient between two soil attributes is greater than 0.7, delete any one of the soil attributes and record the number of remaining soil attributes as L, where L ≥ 1. If K = 1, go directly to step B, where L = K.
[0045] Step B, for the air-dried soil sample, use a spectrometer to perform a spectral scan on the soil sample in an indoor environment to obtain a spectrum of the soil sample, and then proceed to step C;
[0046] In practical application, the above step B specifically performs the following steps B1 to B3:
[0047] Step B1, in order to reduce the influence of soil moisture, the newly collected or historically preserved soil samples are dried in the shade indoors until the soil weight does not change, and the shade drying time is not less than 7 days, and then proceed to step B2;
[0048] Step B2, grinding the shade-dried soil sample and passing it through a 2 mm sieve to reduce the effect of soil particle size on the spectrum, and then proceeding to step B3;
[0049] Step B3, using a visible light-near infrared diffuse reflectance spectrometer, perform spectral scanning on the ground and sieved soil sample, rotate the soil sample 90 degrees, scan and obtain spectra in four different directions, and take the average value of the spectra in the four directions as the spectrum of the soil sample; wherein the visible light-near infrared diffuse reflectance spectrometer requires its spectral range of 350~2500 nm, and the spectral resolution is not less than 20nm, and then enter step C.
[0050] Step C, for the measured soil sample spectrum, smoothing, standard normal transformation, first-order differential and high noise band deletion are performed to obtain a visible light-near infrared diffuse reflectance spectrum for the soil spectral transfer function, and then enter step D;
[0051] In practical application, the above step C specifically performs the following steps C1 to C4:
[0052] Step C1, using the SG smoothing method (Savitzky-Golay Smoothing, SG) to perform spectrum smoothing on the measured soil sample spectrum, and then proceeding to step C2;
[0053] Step C2, for the smoothed soil sample spectrum, use Standard Normal Variate Transformation (SNV) to perform spectrum transformation processing, and then enter step C3;
[0054] Step C3, performing first-order differential processing (First Derivative, FD) on the measured soil sample spectrum, and then proceeding to step C4;
[0055] Step C4, for the spectra obtained in steps C1, C2 and C3, delete the spectra within the front 100nm range and the tail 50nm range of the spectrum, and obtain the smoothed soil visible light-near infrared diffuse reflectance spectrum, the soil visible light-near infrared diffuse reflectance spectrum after standard normal transformation, and the soil visible light-near infrared diffuse reflectance spectrum after first-order differential processing, which are respectively recorded as SG, SNV and FD soil visible light-near infrared diffuse reflectance spectra, and then enter step D.
[0056] Step D, taking the predicted soil property as the dependent variable, and taking other soil properties and the soil visible light-near infrared diffuse reflectance spectrum as the independent variables, constructing the predicted soil property spectral transfer function of different soil properties and soil visible light-near infrared diffuse reflectance spectrum combinations.
[0057] In practical application, the above step D specifically performs the following steps D1 to D2:
[0058] Step D1, for L other soil attributes, construct combinations of different numbers of other soil attributes from 1 to L with an interval of 1, there are L other soil attribute combinations in total, wherein the other soil attributes in each combination are selected and determined according to the absolute value of the correlation coefficient between the other soil attributes and the predicted soil attributes, for example, the other soil attributes of the kth combination take the absolute value of the correlation coefficient as the first k other soil attributes, 1≤k≤L, and then proceed to step D2;
[0059] Step D2, using L other soil property combinations and SG, SNV and FD soil visible light-near infrared diffuse reflectance spectra, with the predicted soil property as the dependent variable, and any other soil property combination and soil visible light-near infrared diffuse reflectance spectrum as the independent variable, you can use partial least squares regression (PLSR), random forest, support vector machine and deep neural network and other machine learning algorithms to construct the predicted soil property spectral transfer function: predicted soil property = f (other soil property combination, soil visible light-near infrared diffuse reflectance spectrum), generate a total of 3*L predicted soil property spectral transfer functions, and then enter step E.
[0060] Step E: comparing the accuracies of the spectral transfer functions of different predicted soil properties to determine the optimal soil spectral transfer function for the predicted soil properties.
[0061] In practical application, the above step E specifically performs the following steps E1 to E2:
[0062] Step E1, using the cross-validation or independent validation method, calculate the determination coefficient R of the constructed 3*L predicted soil property spectral transfer functions 2 (Coefficient of Determination) and RMSE (Root Mean Square Error), and then proceed to step E2;
[0063] Step E2, according to R 2 The size of RMSE determines the optimal soil spectral transfer function for the predicted soil properties, where R 2 The larger the value is and the smaller the RMSE is, the better the transfer function performance is.
[0064] The soil spectral transfer function method designed for soil property prediction is applied in practice. The surface and subsurface soil bulk density of black soil farmland in Northeast my country is used as the predicted soil property. Other soil properties include organic matter, water content and sand content. The soil sample point distribution is as follows: Figure 2 As shown, the construction of soil spectral transfer function for soil bulk density prediction is taken as an example to further describe in detail, but it is not intended to limit the present invention, and is specifically implemented as follows.
[0065] Step FA, based on the correlation between soil bulk density and organic matter, water content and sand content, and the size of the correlation between organic matter, water content and sand content, other soil properties in the soil spectral transfer function are screened, and then step FB is entered.
[0066] The above step FA is specifically as follows in the embodiment:
[0067] Step FA1, calculate the Pearson correlation coefficients between soil bulk density and organic matter, water content and sand content, which are -0.604, -0.528 and 0.353 respectively. Since the number of other soil attributes N = 3, and the absolute values of the Pearson correlation coefficients between soil bulk density and all other soil attributes are not less than 0.3, the three other soil attributes: organic matter, water content and sand content are not deleted, K = 3, and then enter step FA2;
[0068] Step FA2, because K ≥ 2, calculate the Pearson correlation coefficient between organic matter, water content and sand content. The correlation coefficients between organic matter and water content, organic matter and sand content, and water content and sand content are 0.621, -0.572 and -0.618, respectively. Because the absolute value of the Pearson correlation coefficient between any two other soil attributes is not greater than 0.7, the three other soil attributes: organic matter, water content and sand content are not deleted, L = 3, and then enter step FB.
[0069] Step FB, for the air-dried soil sample, use a spectrometer to perform a spectral scan on the soil sample in an indoor environment to obtain a spectrum of the soil sample, and then proceed to step FC;
[0070] The above step FB is specifically as follows in the embodiment:
[0071] Step FB1, in order to reduce the influence of soil moisture, the newly collected or historically preserved soil samples are dried in the shade indoors until the soil weight does not change, and the shade drying time is not less than 7 days, and then proceed to step FB2;
[0072] Step FB2, grinding the shade-dried soil sample and passing it through a 2 mm sieve, and then proceeding to step FB3;
[0073] Step FB3, use a visible light-near infrared diffuse reflectance spectrometer with a spectral range of 350~2500nm and a spectral resolution of less than 10nm to perform a spectral scan on the ground and sieved soil sample, rotate the soil sample 90°, scan and obtain spectra in 4 different directions, and take the average value of the spectra in the 4 directions as the spectrum of the soil sample, and then enter step FC.
[0074] Step FC, for the measured soil sample spectrum, smoothing, standard normal transformation, first-order differentiation and high noise band deletion are performed to obtain the visible light-near infrared diffuse reflectance spectrum for the soil spectral transfer function, and then enter step FD;
[0075] The above steps FC are specifically as follows in the embodiment:
[0076] Step FC1, for the measured 350~2500nm soil sample spectrum, use the SG smoothing method (Savitzky-Golay Smoothing, SG) to perform spectrum smoothing, and then enter step FC2;
[0077] Step FC2, for the SG-smoothed soil sample spectrum, use the Standard Normal Variate Transformation (SNV) to perform spectrum transformation processing, and then enter step FC3;
[0078] Step FC3, performing first-order differential processing (First Derivative, FD) on the measured soil sample spectrum, and then entering step FC4;
[0079] In step FC4, for the spectra obtained in steps S31, S32 and S33, the spectra within the front 100nm range and the tail 50nm range are deleted to obtain the smoothed soil visible light-near infrared diffuse reflectance spectrum, the soil visible light-near infrared diffuse reflectance spectrum after standard normal transformation, and the soil visible light-near infrared diffuse reflectance spectrum after first-order differential processing, which are respectively recorded as SG, SNV and FD soil visible light-near infrared diffuse reflectance spectra, with a spectral range of 450~2450nm, and then enter step FD.
[0080] In step FD, soil bulk density was used as the dependent variable, and organic matter, water content, sand content and soil visible-near-infrared diffuse reflectance spectra of SG, SNV and FD were used as independent variables to construct the soil bulk density spectral transfer function of different soil properties combined with soil visible-near-infrared diffuse reflectance spectra.
[0081] The above step FD is specifically as follows in the embodiment:
[0082] Step FD1, for the three other soil properties: organic matter, water content and sand content, construct combinations of different numbers of other soil properties from 1 to 3 with an interval of 1, because the Pearson correlation coefficients between soil bulk density and organic matter, water content and sand content are: -0.604, -0.528 and 0.353, respectively. According to the absolute value of the correlation coefficient, when there is 1 other soil property, organic matter is selected, when there are 2 other soil properties, organic matter and water content are selected, and when there are 3 other soil properties, organic matter, water content and sand content are selected. A total of 3 other soil property combinations are generated, and then enter step FD2;
[0083] Step FD2, using three other soil attribute combinations and soil visible-near-infrared diffuse reflectance spectra of SG, SNV and FD, taking soil bulk density as the dependent variable, taking any other soil attribute combination and soil visible-near-infrared diffuse reflectance spectrum as the independent variable, using the PLSR algorithm, constructing the soil bulk density spectrum transfer function: soil bulk density = f (other soil attribute combinations, soil visible-near-infrared diffuse reflectance spectrum), generating a total of 3*3 soil bulk density spectrum transfer functions, and then entering step FE;
[0084] Step FE, comparing the accuracy of soil bulk density spectral transfer function of different soil properties combined with soil visible light-near infrared diffuse reflectance spectrum, and determining the optimal spectral transfer function of soil bulk density.
[0085] The above steps FE are specifically as follows in the embodiment:
[0086] Step FE1, using the cross-validation method, calculate the determination coefficient R of the constructed 3*3 soil bulk density spectral transfer function 2 (Coefficient of Determination) and RMSE (Root Mean Square Error). When other soil properties are organic matter, the visible-near infrared diffuse reflectance spectrum of SG soil performs best. 2 and RMSE are 0.49 and 0.13 g / cm respectively. 3 ,like Figure 3 As shown in Figure 2, when other soil properties are organic matter and water content, the visible-near infrared diffuse reflectance spectrum of FD soil performs best, R 2 and RMSE are 0.56 and 0.12 g / cm respectively. 3 , like Figure 4 As shown in Figure 2, when other soil properties are organic matter, water content, and sand content, the visible-near infrared diffuse reflectance spectrum of FD soil performs best, R 2 and RMSE are 0.56 and 0.12 g / cm respectively. 3 ,like Figure 5 As shown, then enter step FE2;
[0087] Step FE2, according to R 2 The larger the value, the smaller the RMSE, the better the performance of soil spectral transfer function. When other soil attributes are organic matter and water content, and soil visible-near infrared diffuse reflectance spectrum is processed by FD, the same accuracy is obtained when other soil attributes are organic matter, water content and sand content, and soil visible-near infrared diffuse reflectance spectrum is processed by FD. 2 Both are: 0.56, RMSE are: 0.12g / cm 3,Therefore, the soil spectral transfer function for soil bulk density prediction is: soil bulk density = f (organic matter, water content, FD soil visible-near infrared diffuse reflectance spectrum) and soil bulk density = f (organic matter, water content, sand content, FD soil visible-near infrared diffuse reflectance spectrum).
[0088] The embodiments of the present invention are described in detail above with reference to the accompanying drawings, but the present invention is not limited to the above embodiments, and various changes can be made within the knowledge scope of those skilled in the art without departing from the spirit of the present invention.
Claims
1. A soil spectral transfer function method for soil property prediction, characterized in that: The steps include: S1, screening other soil properties according to the correlation between the predicted soil property and other soil properties, and the correlation between other soil properties; S2, for the air-dried soil sample, a spectrometer is used to perform a spectral scan on the soil sample in an indoor environment to obtain a spectrum of the soil sample; S3, the soil sample spectrum is smoothed, standard normal transformed, first-order differentiated, and high-noise band deleted to obtain the soil visible light-near infrared diffuse reflectance spectrum. The implementation steps are as follows: S31, using the SG smoothing method to perform spectral smoothing on the soil sample spectrum; S32, performing spectrum transformation processing on the smoothed soil sample spectrum using standard normal transformation; S33, first-order differential processing of the soil sample spectrum; S34, for the spectra obtained in steps S31, S32 and S33, the spectra within the front 100nm range and the tail 50nm range of the spectrum are deleted to obtain a smoothed soil visible light-near infrared diffuse reflectance spectrum, a soil visible light-near infrared diffuse reflectance spectrum after standard normal transformation, and a soil visible light-near infrared diffuse reflectance spectrum after first-order differential processing, which are respectively recorded as SG, SNV and FD soil visible light-near infrared diffuse reflectance spectra; S4, taking the predicted soil property as the dependent variable, and taking other soil properties and soil visible-near infrared diffuse reflectance spectrum as independent variables, construct the predicted soil property spectral transfer function of different soil properties and soil visible-near infrared diffuse reflectance spectrum combinations, and the implementation steps are as follows: S41, for L other soil attributes, construct combinations of different numbers of other soil attributes from 1 to L with an interval of 1, wherein the other soil attributes in each combination are selected and determined according to the absolute value of the correlation coefficient between the other soil attributes and the predicted soil attributes, and a total of L other soil attribute combinations are generated, wherein the other soil attribute of the kth combination takes the absolute value of the correlation coefficient as the first k other soil attributes, 1≤k≤L; S42, using L other soil attribute combinations and SG, SNV and FD soil visible-near-infrared diffuse reflectance spectra, taking the predicted soil attribute as the dependent variable, taking any other soil attribute combination and soil visible-near-infrared diffuse reflectance spectrum as the independent variable, using a machine learning algorithm, constructing a predicted soil attribute spectral transfer function: predicted soil attribute = f (other soil attribute combination, soil visible-near-infrared diffuse reflectance spectrum), generating a total of 3*L predicted soil attribute spectral transfer functions; S5, comparing the accuracy of the spectral transfer functions of the predicted soil properties, and determining the optimal soil spectral transfer function for the predicted soil properties; In step S1, the steps for implementing screening other soil properties are as follows: S11, calculate the Pearson correlation coefficient between the predicted soil attribute and other soil attributes, where the number of other soil attributes is recorded as N; if N ≥ 2, when the absolute value of the Pearson correlation coefficient between the predicted soil attribute and a certain other soil attribute is less than 0.3, then delete the other soil attribute; when the absolute values of the Pearson correlation coefficients between the predicted soil attribute and all other soil attributes are less than 0.3, then only the other soil attribute with the largest absolute value is retained, and the number of remaining other soil attributes is recorded as K, where K ≥ 1; if N = 1, directly enter step S2, at this time K = N; S12, when K≥2, calculate the Pearson correlation coefficient between other soil attributes. When the absolute value of the Pearson correlation coefficient between two soil attributes is greater than 0.7, delete any one of the soil attributes, and the number of remaining soil attributes is recorded as L, where L≥1; if K=1, directly enter step S2, at this time L=K.
2. The soil spectral transfer function method for soil property prediction according to claim 1, characterized in that: In step S2, the steps for obtaining the spectrum of the soil sample in the indoor environment are as follows: S21, drying the soil sample in the shade indoors until the weight of the soil no longer changes; S22, grinding the shade-dried soil sample and passing it through a 2 mm sieve; S23, using a visible light-near infrared diffuse reflectance spectrometer to perform a spectral scan on the ground and sieved soil sample, by rotating the soil sample 90 degrees, scanning and obtaining spectra in four different directions, and taking the average of the spectra in the four directions as the spectrum of the soil sample; wherein the visible light-near infrared diffuse reflectance spectrometer is required to have a spectral range of 350 to 2500 nm and a spectral resolution of not less than 20 nm.
3. The soil spectral transfer function method for soil property prediction according to claim 1, characterized in that: In step S5, the steps for determining the optimal soil spectral transfer function for the predicted soil property are as follows: S51, using cross-validation or independent validation methods, calculate the determination coefficient R of the constructed 3*L predicted soil property spectral transfer functions 2 and root mean square error RMSE; S52, according to R 2 The size of the soil spectral transfer function and RMSE are used to determine the optimal soil property transfer function to be predicted.
Citation Information
Patent Citations
Soil heavy metal visible and near infrared reflection spectrum feature diagnosing method
CN107167446A
GA-BP neural network model training method and terminal equipment
CN109299779A
