A method for generating a soil heavy metal content model based on ornamental plant morphological characteristics

Through the generation method of inverse soil heavy metal content model based on the morphological characteristics of ornamental plants, using technologies such as XGBoost, singular value decomposition and ridge regression, the problem of insufficient research on different varieties and early growth stages in the field of heavy metal contaminated soil has been solved, and a more efficient method has been achieved. Soil heavy metal monitoring and remediation.

CN118711692BActive Publication Date: 2024-10-29JILIN AGRICULTURAL UNIV
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202411218138.9
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-09-02
Publication Date
2024-10-29
Estimated Expiration
2044-09-02

AI Technical Summary

Technical Problem

Existing research in the field of heavy metal-contaminated soil is mostly limited to a single variety and maturity stage. There is a lack of research on different varieties and early stages of plant growth, making it difficult to effectively monitor and remediate heavy metal content in soil.

Method used

An inversion soil heavy metal content model generation method based on the morphological characteristics of ornamental plants is adopted. By obtaining plant morphological data and soil heavy metal content data, the XGBoost algorithm is used to screen the morphological characteristic parameters, and the model is constructed by combining singular value decomposition and ridge regression methods, and is optimized through gradient The algorithm improves the accuracy of the model and generates a model that can invert soil heavy metal content.

Benefits of technology

It improves the accuracy and reliability of soil heavy metal inversion, makes the model suitable for a wider range of soil inversion, and can more accurately predict the content of heavy metals in soil.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118711692B_ABST
    Figure CN118711692B_ABST
Patent Text Reader

Abstract

A method for generating a soil heavy metal content model by inverting the morphological characteristics of ornamental plants, relates to the field of information technology, and specifically to the technical field of plant remediation of heavy metal-contaminated soil. The invention aims at the technical problem that the existing technology is mostly limited to a single variety in the field of heavy metals, and the research on different varieties and the early stage of plant growth is still very scarce. The invention proposes the following scheme: S1: obtaining the morphological data of ornamental plants and the data on the heavy metal content in the soil of the ornamental plant planting area; S2: determining the morphological characteristic parameters; S3: selecting the matching morphological characteristic parameters by using the XGBoost algorithm; S4: constructing a sample data set and an inverted soil heavy metal content model; S5: using the sample data set to train the inverted soil heavy metal content model; S6: optimizing parameters to obtain an inverted soil heavy metal content model based on the morphological characteristics of ornamental plants. The invention has good application prospects in the field of heavy metal pollution.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The invention relates to the field of information technology, and in particular to the field of plant remediation of heavy metal polluted soil. Background Art

[0002] Heavy metals are widely present in the soil and are difficult to degrade, easy to accumulate, and have strong biological toxicity, posing a potential threat to the safe production of agricultural products. Therefore, it is particularly important to conduct research on the remediation of heavy metal-contaminated soil. Phytoremediation has gradually become an important measure for contaminated soil remediation due to its low cost, environmental friendliness, and simple operation. The use of ornamental plants to repair heavy metal-contaminated soil can take into account both ecological and economic benefits. Through the extraction, fixation, and volatilization of heavy metals by plants, the heavy metal content in the soil can be reduced or removed. This is not only low-cost, but also will not cause secondary pollution to the environment.

[0003] Nowadays, the classification research in the field of heavy metal pollution has been quite extensive, such as machine learning, spectroscopy, etc., and because machine learning technology has high sensitivity and good accuracy, it can accurately classify and predict the changes in phenotypic characteristics caused by copper and nickel stress. However, these methods are mostly limited to a single variety in the field of heavy metal research, and most of them are based on maturity. There is still a lack of research on different varieties and the early stages of plant growth. Summary of the invention

[0004] In view of the technical problems that the existing technologies for heavy metal research are mostly limited to a single variety and are mostly based on the maturity stage, and the research on different varieties and the early growth stage of plants is still very scarce, the present invention proposes the following solution:

[0005] A method for generating an inversion soil heavy metal content model based on ornamental plant morphological characteristics, the method comprising:

[0006] S1: Obtain the morphological data of ornamental plants and the data on heavy metal content in the soil of the ornamental plant planting area;

[0007] S2: determining morphological characteristic parameters based on the morphological data of the ornamental plant, wherein the morphological characteristic parameters include: plant height, stem thickness, top leaf length, top leaf width, seven leaf length and seven leaf width;

[0008] S3: using the morphological feature parameters as input, and selecting matching morphological feature parameters using the XGBoost algorithm;

[0009] S4: constructing a sample data set by combining the matched morphological characteristic parameters with the data of the heavy metal content in the soil; constructing a model based on the matched morphological characteristic parameters, and using a singular value decomposition method and a ridge regression method to improve the accuracy of the model, thereby obtaining an inverted soil heavy metal content model;

[0010] S5: using the sample data set to train the inversion soil heavy metal content model to obtain a trained inversion soil heavy metal content model;

[0011] S6: Optimizing the model parameters of the trained inversion model for soil heavy metal content to obtain an inversion model for soil heavy metal content based on the morphological characteristics of ornamental plants.

[0012] Further, the S3 specifically includes:

[0013] S301: Arranging the morphological feature parameters into a structured table form to obtain morphological feature parameters in a table form;

[0014] S302: performing missing value processing on the morphological feature parameters in the table form to obtain processed morphological feature parameters;

[0015] S303: performing feature coding conversion on the processed morphological feature parameters to obtain encoded morphological features;

[0016] S304: merging the morphological data of the ornamental plant and the encoded morphological features into a two-dimensional array;

[0017] S305: Using the XGBoost algorithm, screening is performed from the two-dimensional array to obtain the matching morphological feature parameters.

[0018] Further, in S4, the ridge regression method is:

[0019]

[0020] in, represents the regression coefficient, represents the number of samples, represents the predicted value of soil heavy metal content by ridge regression method, Indicates j The sample i The morphological characteristic parameters of the matching, Represents ornamental plant morphological data, represents the regularization term.

[0021] In S4, the singular value decomposition method is:

[0022]

[0023] in, Indicates that the morphological feature parameters are included k × l The matrix X , D represents a diagonal matrix, is the transpose of the orthogonal matrix containing the right singular vectors, Z is an orthogonal matrix containing left singular vectors.

[0024] Furthermore, in S6, the parameter optimization is implemented by a GBO algorithm. In the GBO algorithm, a gradient search rule is used to improve optimization efficiency, and a local escape operator is used to obtain a global optimal solution.

[0025] Furthermore, the gradient search rule is

[0026]

[0027] in, is a random number that conforms to the normal distribution. is the adaptive coefficient, , is the estimated value of the reward function, To prevent positive numbers with a denominator of 0, is the step size of gradient search, Indicates k The model parameters at the iteration.

[0028] The beneficial effects of the present invention are as follows: the soil heavy metal content inversion model of the present invention is applicable to the inversion of soil heavy metals in a wider range, and can effectively improve the accuracy and reliability of soil heavy metal inversion. BRIEF DESCRIPTION OF THE DRAWINGS

[0029] Figure 1 This is a flow chart of inverting soil heavy metals from ornamental plant morphological characteristics in implementation mode one. DETAILED DESCRIPTION

[0030] Implementation method 1: Combination Figure 1 This embodiment describes a method for generating a soil heavy metal content model by inverting the morphological characteristics of ornamental plants, the method comprising:

[0031] S1: Obtain the morphological data of ornamental plants and the data on heavy metal content in the soil of the ornamental plant planting area;

[0032] S2: determining morphological characteristic parameters based on the morphological data of the ornamental plant, wherein the morphological characteristic parameters include: plant height, stem thickness, top leaf length, top leaf width, seven leaf length and seven leaf width;

[0033] S3: using the morphological feature parameters as input, and selecting matching morphological feature parameters using the XGBoost algorithm;

[0034] S4: constructing a sample data set by combining the matched morphological characteristic parameters with the data of the heavy metal content in the soil; constructing a model based on the matched morphological characteristic parameters, and using a singular value decomposition method and a ridge regression method to improve the accuracy of the model, thereby obtaining an inverted soil heavy metal content model;

[0035] S5: using the sample data set to train the inversion soil heavy metal content model to obtain a trained inversion soil heavy metal content model;

[0036] S6: Optimizing the model parameters of the trained inversion model for soil heavy metal content to obtain an inversion model for soil heavy metal content based on the morphological characteristics of ornamental plants.

[0037] First, the morphological data of ornamental plants such as plant height, stem thickness, top leaf length, top leaf width, seven leaf length, seven leaf width and the heavy metal content data in the soil of the planting area were collected. Then, the XGBoost algorithm was used to select the top two morphological features with high correlation with soil heavy metals from these morphological data. Subsequently, the selected morphological characteristic parameters were combined with the soil heavy metal content data to construct a sample data set. After that, a prediction model based on singular value decomposition and ridge regression method was constructed, and this data set was used to train the model to obtain an inversion model that can predict the soil heavy metal content. Finally, by optimizing the parameters of the model, a high-accuracy model for inverting the soil heavy metal content using the morphological characteristics of ornamental plants was obtained.

[0038] In S4, a kernel ridge regression model (KRR) was developed using the singular value decomposition method (SVD) and the ridge regression method (RR), and then the SKRR model was developed using the SVD and the generated KRR model. The SKRR model was mixed with the Ridge model using a linear relationship to establish the inversion soil heavy metal content model (H-SKRR).

[0039] Implementation method 2: This implementation method further limits the method for generating a soil heavy metal content model by inverting the morphological characteristics of ornamental plants described in Implementation method 1. In this implementation method, S3 specifically includes:

[0040] S301: Arranging the morphological feature parameters into a structured table form to obtain morphological feature parameters in a table form;

[0041] S302: performing missing value processing on the morphological feature parameters in the table form to obtain processed morphological feature parameters;

[0042] S303: performing feature coding conversion on the processed morphological feature parameters to obtain encoded morphological features;

[0043] S304: merging the morphological data of the ornamental plant and the encoded morphological features into a two-dimensional array;

[0044] S305: Using the XGBoost algorithm, screening is performed from the two-dimensional array to obtain the matching morphological feature parameters.

[0045] Implementation method three: This implementation method further limits the method for generating a soil heavy metal content model by inverting the morphological characteristics of ornamental plants described in implementation method one. In this implementation method, in S4, the ridge regression method is:

[0046]

[0047] in, represents the regression coefficient, represents the number of samples, represents the predicted value of soil heavy metal content by ridge regression method, Indicates j The sample i The morphological characteristic parameters of the matching, Represents ornamental plant morphological data, represents the regularization term.

[0048] Implementation method 4: This implementation method further limits the method for generating a soil heavy metal content model by inverting the morphological characteristics of ornamental plants described in implementation method 3. The regression coefficient for:

[0049]

[0050] in, is the identity matrix, is the penalty factor, To design the product of the transpose of the matrix and itself, is the dot product of the transpose of the design matrix and the response variable.

[0051] Among them, the regression coefficient Used to improve the accuracy of the model.

[0052] Implementation mode 5: This implementation mode further limits the method for generating a soil heavy metal content model by inverting the morphological characteristics of ornamental plants described in Implementation mode 1. In this implementation mode, in S4, the singular value decomposition method is:

[0053]

[0054] in, Indicates that the morphological feature parameters are included k × l The matrixX , D represents a diagonal matrix, is the transpose of the orthogonal matrix containing the right singular vectors, Z is an orthogonal matrix containing left singular vectors.

[0055] The singular value decomposition method is a commonly used matrix decomposition method, which can decompose a matrix into several member matrices. The singular value decomposition method can achieve dimensionality reduction through matrix decomposition.

[0056] The soil heavy metal inversion model uses the kernel function ( KF ) as a method to construct adaptive RR,

[0057] The kernel function is:

[0058]

[0059] in Expressed as a similarity measure between variables, represents weight;

[0060] Determining these weights requires maximizing the number of cuts made on the objective function.

[0061] The kernel ridge regression model is:

[0062]

[0063] The kernel ridge regression model is similar to the traditional ridge regression model. The only difference is that the kernel method is used to replace all dot products and To obtain the morphological factors of ornamental plants α The exact value of the ornamental plant morphological factor is:

[0064]

[0065] in y , The kernel function was used as the input parameter of kernel ridge regression (KRR) for the actual values ​​of ornamental plant morphological data.

[0066] In the research process, the wavelet function was used to realize the matrix calculation. The matrix is:

[0067]

[0068] in, ε, δ and Represents the three coefficients of the kernel function.

[0069] Use the SVD method to calculate ( )and( )

[0070] .

[0071] The soil heavy metal inversion model is a hybrid of SVD, KRR and RR methods, and SVD is used to generate the regression factors of the KRR model ( ). This factor is applied to the input variables, allowing the model to simultaneously exploit the properties of SVD and ridge regression methods to encounter more effective inputs. To develop the SKRR model, it can be defined as:

[0072]

[0073] in

[0074]

[0075]

[0076] Based on the above formula, the predicted value of the morphological data of the ornamental plant by the SKRR model can be defined as:

[0077]

[0078] Finally, the SKRR model and the ridge regression method were hybridized using linear relationships to obtain the inversion soil heavy metal content model, which is:

[0079]

[0080] in, ω is a positive number in the interval [0, 1], is the predicted value of soil heavy metal content by the inversion soil heavy metal content model, is the predicted value of the morphological data of the ornamental plant by the SKRR model, is the predicted value of the morphological data of the ornamental plant using the ridge regression method.

[0081] Implementation method six: This implementation method is a further limitation of the method for generating a soil heavy metal content model by inverting the morphological characteristics of ornamental plants described in implementation method one. In this implementation method, in S6, the parameter optimization is achieved through the GBO algorithm. In the GBO algorithm, the gradient search rule is used to improve the optimization efficiency, and the local escape operator is used to obtain the global optimal solution.

[0082] Implementation 7: This implementation is a further limitation of the method for generating a soil heavy metal content model by inverting the morphological characteristics of ornamental plants described in Implementation 6. In this implementation, the gradient search rule is

[0083]

[0084] in, is a random number that conforms to the normal distribution. is the adaptive coefficient, , is the estimated value of the reward function, To prevent positive numbers with a denominator of 0, is the step size of the gradient search, Indicates k The model parameters at the iteration.

[0085] in:

[0086]

[0087]

[0088]

[0089] in, rand Generates random numbers that follow a normal distribution. and are the best and worst solutions. a 1 indicates the adaptive coefficient. DV Represents the direction of motion vector.

[0090] DV It is expressed as:

[0091]

[0092] in a 2 represents the adaptive coefficient, Indicates the number of iterations.

[0093] It is expressed as:

[0094]

[0095] in:

[0096]

[0097]

[0098] in c1, c2, c3 and c4 ( c1 scin = c2 scin = c3 scin = c4 scin = k ) means from [1, NP ], four integers randomly selected from Q represents the step length, NP Define the population size.

[0099] The soil heavy metal inversion model GBO optimization adopts a gradient search rule to create a new solution , the process is:

[0100]

[0101]

[0102] in:

[0103]

[0104] coefficient a 1 and a 2 is:

[0105]

[0106]

[0107] in:

[0108]

[0109]

[0110] in, represents the maximum number of iterations of the soil heavy metal inversion model, τ min and τ max are equal to 0.2 and 1.2 respectively. In addition, GBO generates additional solutions To enhance the local search, the additional solution is:

[0111]

[0112] Therefore, the new solution The definition is from the solution and The exported ones are represented as follows:

[0113]

[0114] in:

[0115]

[0116] in and Represents two random values ​​in the range [0, 1].

[0117] The partial escape operator is introduced into the GBO optimization algorithm of the soil heavy metal inversion model to prevent the emergence of suboptimal local solutions. , , , and These five solutions are grouped together to generate a new solution The partial escape operator can be expressed as:

[0118]

[0119]

[0120]

[0121]

[0122]

[0123]

[0124]

[0125] in, and Represents two random numbers in the interval [-1, 1], , and Represents three random quantities, which are:

[0126]

[0127]

[0128]

[0129] in Represents a number in the interval [0, 1].

[0130] but for:

[0131]

[0132]

[0133] in, represents a new random solution, Represents a random solution , f2 represents a random number in the interval [0, 1]. To obtain the solution for the next iteration, the following equation can be used as the last step:

[0134] 。

Claims

1. A method for generating an inversion soil heavy metal content model based on ornamental plant morphological characteristics, characterized in that: The method comprises: S1: Obtain the morphological data of ornamental plants and the data on heavy metal content in the soil of the ornamental plant planting area; S2: determining morphological characteristic parameters based on the morphological data of the ornamental plant, wherein the morphological characteristic parameters include: plant height, stem thickness, top leaf length, top leaf width, seven leaf length and seven leaf width; S3: using the morphological feature parameters as input, and selecting matching morphological feature parameters using the XGBoost algorithm; S4: constructing a sample data set by combining the matched morphological characteristic parameters with the data of the heavy metal content in the soil; constructing a model based on the matched morphological characteristic parameters, and using a singular value decomposition method and a ridge regression method to improve the accuracy of the model, thereby obtaining an inverted soil heavy metal content model; S5: using the sample data set to train the inversion soil heavy metal content model to obtain a trained inversion soil heavy metal content model; S6: Optimizing the model parameters of the trained inversion model for soil heavy metal content to obtain an inversion model for soil heavy metal content based on the morphological characteristics of ornamental plants.

2. The method for generating a soil heavy metal content inversion model based on ornamental plant morphological characteristics according to claim 1, characterized in that: The S3 specifically includes: S301: Arranging the morphological feature parameters into a structured table form to obtain morphological feature parameters in a table form; S302: performing missing value processing on the morphological feature parameters in the table form to obtain processed morphological feature parameters; S303: performing feature coding conversion on the processed morphological feature parameters to obtain encoded morphological features; S304: merging the morphological data of the ornamental plant and the encoded morphological features into a two-dimensional array; S305: Using the XGBoost algorithm, screening is performed from the two-dimensional array to obtain the matching morphological feature parameters.

3. The method for generating a soil heavy metal content inversion model based on ornamental plant morphological characteristics according to claim 1, characterized in that: In S4, the ridge regression method is: in, represents the regression coefficient, represents the number of samples, represents the predicted value of soil heavy metal content by ridge regression method, Indicates j The sample i The morphological characteristic parameters of the matching, Represents ornamental plant morphological data, represents the regularization term.

4. The method for generating a soil heavy metal content inversion model based on ornamental plant morphological characteristics according to claim 3, characterized in that: The regression coefficient for: in, is the identity matrix, is the penalty factor, To design the product of the transpose of the matrix and itself, is the dot product of the transpose of the design matrix and the response variable.

5. The method for generating a soil heavy metal content inversion model based on ornamental plant morphological characteristics according to claim 1, characterized in that: In S4, the singular value decomposition method is: in, Indicates that the morphological feature parameters are included k × l The matrix X , D represents a diagonal matrix, is the transpose of the orthogonal matrix containing the right singular vectors, Z is an orthogonal matrix containing left singular vectors.

6. The method for generating a soil heavy metal content inversion model based on ornamental plant morphological characteristics according to claim 1, characterized in that: In S6, the parameter optimization is implemented by the GBO algorithm. In the GBO algorithm, the gradient search rule is used to improve the optimization efficiency, and the local escape operator is used to obtain the global optimal solution.

7. The method for generating a soil heavy metal content inversion model based on ornamental plant morphological characteristics according to claim 6, characterized in that: The gradient search rule is in, is a random number that conforms to the normal distribution. is the adaptive coefficient, , is the estimated value of the reward function, To prevent positive numbers with a denominator of 0, is the step size of gradient search, Indicates k The model parameters at the iteration.

Citation Information

Patent Citations

  • Mining area ecological environment evolution driving factor weight quantitative analysis method

    CN113128134A

  • Tree species screening method for composite heavy metal pollution remediation

    CN113228870A