Heavy metal contaminated soil passivation material regional suitability screening method and application

By constructing a passivation material remediation case library and using machine learning models, the problem of long screening period and high cost of passivation materials has been solved, rapid and accurate screening of heavy metal-contaminated soil has been achieved, and soil remediation efficiency and food safety have been improved.

CN118734073AInactive Publication Date: 2024-10-01AGRO ENVIRONMENTAL PROTECTION INST OF MIN OF AGRI

Patent Information

Application Number
CN202410890180.9
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-07-04
Publication Date
2024-10-01
Estimated Expiration
Not applicable · inactive patent

AI Technical Summary

Technical Problem

In the existing technology, the screening of passivation materials relies on a large number of tests, resulting in a long cycle and high cost. It is difficult to match the specific needs of the target plot and lacks a fast and efficient method to predict the passivation effect of heavy metal contaminated soil.

Method used

By constructing a passivation material repair case library, using machine learning models for feature selection and prediction, a model for passivation material regional suitability screening is developed, the main control factors in the repair process are identified, and passivation materials under different regional conditions are formulated. Screening strategy.

Benefits of technology

It achieves rapid and accurate screening of passivation materials for farmland soil pollution remediation, shortens the screening cycle, improves prediction accuracy and efficiency, reduces costs, provides a more feasible and sustainable solution, and improves soil remediation efficiency and food safety.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118734073A_ABST
    Figure CN118734073A_ABST
Patent Text Reader

Abstract

The invention belongs to the technical field of agricultural environment and data processing, and discloses a heavy metal contaminated soil passivation material regional suitability screening method and application. According to the method, adsorption performance data of different passivation materials are collected and analyzed, feature selection and prediction are conducted through a machine learning model, and the adaptability of the passivation materials is obtained; and the passivation material suitable for agricultural soil pollution remediation is efficiently screened out. According to the method, the machine learning model is introduced, so that rapid and accurate screening of the farmland soil pollution remediation passivation material is realized. The method has the advantages of being easy and convenient to operate, low in cost, high in efficiency and the like, can be widely applied to the field of agricultural soil pollution remediation, provides a more feasible and sustainable solution, provides a new passivation material regional screening strategy for agricultural soil pollution remediation, is beneficial for improving the soil remediation efficiency, and has a wide application prospect. The ecological environment and food safety are protected.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The invention belongs to the field of agricultural environment and data processing technology, and in particular to a method and application of regional suitability screening of heavy metal polluted soil passivation materials. Background Art

[0002] Due to the potential toxicity and poor biodegradability of heavy metals, it is urgent to strengthen the control of heavy metal pollution in soil. Passivation materials are important carriers of remediation technology because of their quick effect, low cost and easy operation. However, due to the influence of the different structures of passivation materials and the different soil pollution characteristics from place to place, the remediation effects of different passivation materials on soils of the same nature and the same passivation material on soils of different properties vary greatly, which increases the difficulty of evaluating and screening the effects of passivation materials. At present, the screening of passivation materials mainly relies on a large number of experiments, which has a long cycle, high cost, and is difficult to match the specific needs of the target plots. Therefore, a fast, efficient and economical method for predicting the passivation effect of heavy metals is needed to make scientific decisions on the regional suitability screening of passivation materials.

[0003] Due to the widespread application of passivation materials in the past decade, a large amount of soil remediation data has been accumulated. This invention builds a case library of passivation material remediation, and then uses machine learning to carry out big data mining instead of experimental verification, which may provide new solutions for the prediction of the effect of passivation materials and the screening of regional suitability, in order to provide data basis and technical support for the precise remediation of contaminated cultivated land soil, which has important scientific and practical significance. Summary of the invention

[0004] The purpose of the present invention is to overcome the deficiencies in the prior art and provide a method and application for regional suitability screening of passivation materials for heavy metal contaminated soil.

[0005] The technical solution adopted by the present invention to solve its technical problem is:

[0006] A method for screening regional suitability of heavy metal contaminated soil, the method collects and analyzes data on the use of passivation materials to repair soil heavy metal pollution, uses a machine learning model to perform feature selection and prediction, and efficiently screens out passivation materials suitable for conditions in different regions.

[0007] Furthermore, the method comprises the following steps:

[0008] (1) Establish a remediation case database with the heavy metal contaminated soil properties, passivation material structure properties and remediation application conditions as input features and the heavy metal passivation effect, i.e. the change in the effective content of heavy metals before and after remediation, as output variables;

[0009] (2) Develop and optimize a machine learning model for regional suitability screening of passivation materials;

[0010] (3) Based on the proposed model, the main controlling factors in the repair process are identified through input feature importance analysis;

[0011] (4) Based on the proposed model, a screening strategy for passivation materials under different regional conditions was developed, and the passivation effect of the materials in heavy metal-contaminated cultivated soils was predicted.

[0012] Furthermore, the method specifically includes the following steps:

[0013] (1) Database establishment

[0014] Based on the multi-year multi-site test work and targeted literature search throughout the country, the information including the properties of heavy metal-contaminated soil, the structural properties of passivation materials, the conditions for remediation and the passivation effects of heavy metals were classified and integrated to build a database of passivation material remediation cases.

[0015] (2) Data preprocessing

[0016] Ensure the quality and availability of data by preprocessing the collected data, including parameter unit conversion, missing value supplementation and standardization operations;

[0017] (2.1) Unit conversion

[0018] After data collection, to ensure the uniformity of the units, all collected data were unit transformed;

[0019] (2.2) Missing data input

[0020] In order to avoid discarding data sets with missing values, Python is introduced to generate reasonable numbers to predict missing data by observing the distribution of variables in the data set and the relationship between them. All data sets are divided into samples with missing values ​​and samples with no missing values, and the samples are fitted to obtain the prediction of missing values.

[0021] (2.3) Data standardization

[0022] In order to obtain consistent units for the selected variable values, the input and output parameters are standardized using Z-score normalization before being input into the machine learning model; the input features are standardized using StandardScaler in Scikit-Learn. The specific formula for the standardization is as follows:

[0023]

[0024] in, and x i are the standardized value and original value of the input variable, μ and σ are the mean and standard deviation of the sample data, respectively; similar scales are obtained, which is approximately a normal distribution;

[0025] (3) Important feature selection

[0026] Comprehensively consider the results of correlation analysis, cluster analysis and important feature analysis, clarify the impact of input features on output variables, and select important features that are both representative and contain key information. The specific process is as follows:

[0027] (3.1) Correlation analysis

[0028] Through correlation analysis, the correlation degree between each input feature and the output variable is evaluated; the Pearson correlation coefficient PCC is used to perform correlation analysis on different variables. xy The specific formula is as follows:

[0029]

[0030] Among them, ρ xy For feature-to-target or target-to-target PCC, and The input features x are i and the output variable y i The average value of , n is the number of data samples in the data set;

[0031] (3.2) Cluster analysis

[0032] Cluster analysis was performed based on Pearson’s rank correlation, and features with high correlation, indicating similar information, were grouped into a cluster;

[0033] (3.3) Important feature screening

[0034] Based on machine model research, the role of input features relative to output variables is explained, the importance value corresponding to the input features is obtained, and the importance of the input features is reasonably determined; in the screening process, features belonging to different empirical categories in the same cluster are not removed; for features of the same empirical category in the same cluster, the retention or removal is determined based on their importance and the size of the correlation with the output variable. Relatively important and highly correlated input features are retained, otherwise they are removed;

[0035] (4) Model development

[0036] (4.1) Model selection

[0037] Select multiple potential machine learning algorithms based on the characteristics of the data;

[0038] (4.2) Model construction

[0039] The data set was randomly divided into two parts: 70% for model training and 30% for model testing. In order to evaluate the generalization and randomness of the model, all models were cross-validated five times to reduce overfitting. Five different random seeds were used for five repeated validations, and the results reported the average recognition accuracy. The average test performance of 5 times was taken to obtain an effect prediction model with high accuracy and strong generalization ability to predict the repair effect of passivation materials. The root mean square error RMSE, mean absolute error MAE and determination coefficient R in the test performance were 2 The specific formula is as follows:

[0040]

[0041] in, To predict the output, is the true value of the output report, y m is the average value of the output value, and n is the number of data samples in the training or test data set;

[0042] The prediction interval coverage probability PICP is used to calculate the probability that the value falls within the prediction interval 5%-95%; the specific formula of the prediction interval coverage probability is as follows:

[0043]

[0044] Among them, y t is the observed value, and are the prediction lower and upper limits, respectively, and n is the number of data samples in the training or test data set;

[0045] Finally, the grid search method was used to obtain the optimal hyperparameters;

[0046] (5) Model optimization

[0047] The best model obtained in the model construction is tuned by cross-validation, grid search and other technical means; the hyperparameters and ranges that need to be debugged are determined, and the hyperparameters are adjusted by trial and error method based on RMSE. Five cross-validations are used in the training process, and the data set is divided into 5 subsets. Each subset is used as a test set in one iteration, and the remaining subsets are used as training sets; each combination of training set and test set is trained and tested, and cross-validation is repeated 5 times. The results of 5 iterations are taken, and the RMSE score of each parameter combination is compared. The parameter combination with the smallest RMSE value is selected as the final hyperparameter setting to optimize the model performance; after optimization, the modeling of step (4.2) is performed again;

[0048] (6) Model explanation

[0049] By means of feature importance analysis, Shapley additive interpretation, partial dependence diagrams, etc., the reasons behind the model results are explained. Combined with the theoretical basis of the structure-activity relationship of the previous passivation material structure and heavy metal removal performance, the key influencing factors in the properties of heavy metal contaminated soil, the structural properties of passivation materials, and the remediation application conditions are further analyzed to further analyze the contribution of the heavy metal passivation effect and how they positively or negatively affect the model prediction;

[0050] (6.1) Feature importance analysis

[0051] The feature importance ranking function in the random forest model is used to evaluate the importance of each input feature in the properties of heavy metal contaminated soil, the structural properties of passivation materials, and the remediation application conditions. In Scikit-learn, this function is obtained through the feature_importances_ attribute. The weighted average of each input feature on the split nodes in all decision trees is calculated to obtain the corresponding importance value, clarifying the contribution of each input feature to the model results.

[0052] (6.2) Shapley Additive Interpretation

[0053] The Shapley Additive Explanation (SHAP) method is used to describe the relative importance of each input feature to the output variable in the properties of heavy metal-contaminated soil, the structural properties of passivation materials, and the remediation application conditions. The marginal contribution of each input feature to the output variable is calculated, and the black box model (such as a deep neural network or an integrated model) is explained globally and locally. For each output variable result, the model generates a SHAP value, which represents the impact of the descriptor on the behavior of the data point.

[0054] (6.3) Partial dependence graph

[0055] Partial Dependence Plots (PDPs) are used to systematically express the correlation between each input feature and the output variable and a group of input features in the properties of heavy metal contaminated soil, the structural properties of passivation materials, and the remediation application conditions, and the values ​​of other input features, i.e., complementary features, are marginalized; how the input features positively or negatively affect the output variables is explained, and the influence trend on the heavy metal passivation effect is determined;

[0056] (7) Model application

[0057] The soil property values ​​obtained by sampling and testing are input into the model obtained in step (5). According to the output variable results of the model, a data set of structural properties of passivation materials with better remediation effects is screened out; at the same time, based on the properties of heavy metal contaminated soil and the structural properties of passivation materials, the heavy metal passivation effects of these materials are predicted, and then the remediation potential of the passivation materials is determined.

[0058] Furthermore, the classified integrated information includes regional geographical location, cultivated land type, area, soil organic matter content, soil pH value, soil cation exchange capacity, heavy metal concentration, passivation material element content, specific surface area, application amount and application time, and changes in the effective content of heavy metals in the soil before and after restoration; the heavy metal pollution indicators include Cd, Hg, As, Pb, and Cr.

[0059] Furthermore, the heavy metal passivation effect is evaluated by the change in the effective content of heavy metals before and after repair, which can be directly obtained from experimental data or calculated as a percentage using the following formula:

[0060]

[0061] Among them, HMs immobilization efficiency is the passivation effect of heavy metals, C B0 (mg / kg) is the effective concentration of heavy metals in the soil before the control treatment, i.e., the passivation material restoration. B (mg / kg) is the effective concentration of heavy metals in soil after restoration by passivation materials.

[0062] Furthermore, the parameter unit conversion includes converting the applied mass percentage of biochar into kg / ha: 1% is equivalent to 15000 kg / ha; converting pH (CaCl2) into pH (H2O), and the specific formula is as follows:

[0063]

[0064] The specific formula for converting soil organic carbon SOC into soil organic matter SOM is as follows:

[0065] SOM=SOC / 0.58.

[0066] Furthermore, the missing data input includes a mean algorithm, an interpolation method, and a machine model regression algorithm; the specific usage process is as follows: first, each column is traversed to identify and process missing values; the columns considered are divided into two subsets: samples with missing values ​​and samples with no missing values; the feature matrix consists of all columns except the current missing values, and the target value corresponds to the value of the current column where the missing value does not exist; in addition, a separate feature matrix is ​​created for samples with missing values; SimpleImputer is used to fill the missing values ​​in the feature matrix, and then the algorithm is used to fit the missing values ​​with the samples to obtain predictions of the missing values.

[0067] Furthermore, the cluster analysis method includes a K-means clustering algorithm, a hierarchical clustering algorithm, a self-organizing map clustering algorithm, and a fuzzy C-means clustering algorithm;

[0068] Furthermore, the multiple potential machine learning include linear regression LR, Bayesian Ridge regression BayesianRidge and Ridge regression Ridge, as well as K nearest neighbor KNN, artificial neural network ANN, random forest RF, gradient boosted decision tree GBDT, decision tree DT and support vector regression SVR.

[0069] The method described above is used in the screening of passivation materials for heavy metal-contaminated cultivated land soil.

[0070] The advantages and effects achieved by the present invention are:

[0071] 1. The method of the present invention realizes the rapid and accurate screening of passivation materials for farmland soil pollution remediation by introducing a machine learning model. Traditional methods mostly rely on multi-point experiments for many years (2-3 years). The prediction time of the present invention is only tens of seconds to a few minutes, which can speed up the speed of remediation experiments and improve the prediction accuracy. 2 The PICP value and the PICP value are both above 0.9, with high accuracy. The method of the present invention has the advantages of simple operation, low cost, high efficiency, etc., can be widely used in the field of agricultural soil pollution remediation, provides a more feasible and sustainable solution, and provides a new passivation material screening strategy for agricultural soil pollution remediation, which helps to improve soil remediation efficiency, protect the ecological environment and food safety.

[0072] 2. The method of the present invention can quickly screen out passivation materials with better repair effects through model prediction, greatly shortening the screening cycle. Based on the training of a large amount of data, the model has a high prediction accuracy. On the training and test data sets, R 2 The values ​​of the RMSE and MAE are 3.393 and 5.848, 2.469 and 4.221, respectively. The remediation effect of the passivation material can be accurately evaluated. The present invention improves the efficiency and accuracy of the passivation material screening, reduces the cost, and provides a new solution for agricultural soil pollution remediation.

[0073] 3. The method of the present invention ensures the timeliness of the model and the credibility of the decision through model interpretability. At the same time, the model can be used to predict and screen according to different contaminated soil conditions, such as alkaline biochar (9.04 <pH BC <11.21) performed well in the remediation of Cd-contaminated soils, with the passivation effect exceeding 50% at each site, especially in acidic soils with high organic matter content. It has strong adaptability and flexibility.

[0074] 4. The screening method of the present invention comprises establishing a remediation case database including the properties of heavy metal contaminated soil, the structural properties of passivation materials, the remediation application conditions and the passivation effects of heavy metals; preprocessing and feature selection of the data to reduce the complexity of the model; then constructing a variety of machine learning models, and optimizing the models through cross-validation and grid search; then improving the credibility of the decision by interpreting the model prediction results; finally, obtaining the optimal remediation effect based on the input of the indicators to be decided for the soil in different regions; this can prevent the blindness of human decision-making and greatly improve the accuracy of decision-making; at the same time, historical data can be effectively used to provide data support for related remediation work in the later stage. BRIEF DESCRIPTION OF THE DRAWINGS

[0075] Figure 1 This is a schematic diagram of the process flow of the passivation material screening strategy for agricultural soil pollution remediation based on the machine learning model in an embodiment of the present invention;

[0076] Figure 2 is a Pearson correlation matrix diagram between any two features in the present invention;

[0077] Figure 3 It is an input feature analysis diagram of hierarchical clustering in the present invention;

[0078] Figure 4 This is an input feature importance analysis diagram based on the machine learning model in the present invention;

[0079] Figure 5 A hyperparameter adjustment diagram of the machine learning model in the present invention;

[0080] Figure 6 A regression diagram of the true and predicted values ​​of the machine learning model in the present invention;

[0081] Figure 7 is a prediction interval diagram of the machine learning model in the present invention;

[0082] Figure 8 A relative importance analysis diagram of selected empirical categories based on the feature importance of the random forest model in the present invention;

[0083] Fig. 9 A relative importance analysis diagram of selected empirical categories of the Shapley additive interpretation method in the present invention;

[0084] Fig.10 It is the unidirectional partial dependence graph of each input feature in the present invention. DETAILED DESCRIPTION

[0085] The present invention will be further described below in conjunction with the embodiments. The following embodiments are descriptive rather than restrictive, and the protection scope of the present invention cannot be limited by the following embodiments.

[0086] The various experimental operations involved in the specific embodiments are all routine techniques in the art. For parts not specially annotated in this document, ordinary technicians in the art can implement them by referring to various commonly used reference books, scientific and technological literature or related instructions, manuals, etc. before the filing date of this invention.

[0087] A method for screening the suitability of heavy metal contaminated soil areas, the method collects and analyzes the adsorption performance data of different passivation materials, and uses a machine learning model to perform feature selection and prediction, so as to efficiently screen out passivation materials suitable for agricultural soil pollution remediation.

[0088] Preferably, the method comprises the following steps:

[0089] (1) Establish a remediation case database with the heavy metal contaminated soil properties, passivation material structure properties and remediation application conditions as input features and the heavy metal passivation effect, i.e. the change in the effective content of heavy metals before and after remediation, as output variables;

[0090] (2) Develop and optimize a machine learning model for regional suitability screening of passivation materials;

[0091] (3) Based on the proposed model, the main controlling factors in the repair process are identified through input feature importance analysis;

[0092] (4) Based on the proposed model, a screening strategy for passivation materials under different regional conditions was developed, and the passivation effect of the materials in heavy metal-contaminated cultivated soils was predicted.

[0093] Preferably, the method specifically comprises the following steps:

[0094] (1) Database establishment

[0095] Based on the multi-year multi-site test work and targeted literature search throughout the country, the information including the properties of heavy metal-contaminated soil, the structural properties of passivation materials, the conditions for remediation and the changes in the effective content of heavy metals in the soil before and after remediation were classified and integrated to build a database of passivation material remediation cases.

[0096] (2) Data preprocessing

[0097] Ensure the quality and availability of data by preprocessing the collected data, including parameter unit conversion, missing value supplementation and standardization operations;

[0098] (2.1) Unit conversion

[0099] After data collection, to ensure the uniformity of the units, all collected data were unit transformed;

[0100] (2.2) Missing data input

[0101] In order to avoid discarding data sets with missing values, Python is introduced to generate reasonable numbers to predict missing data by observing the distribution of variables in the data set and the relationship between them. All data sets are divided into samples with missing values ​​and samples with no missing values, and the samples are fitted to obtain the prediction of missing values.

[0102] (2.3) Data standardization

[0103] In order to obtain consistent units for the selected variable values, the input and output parameters are standardized using Z-score normalization before being input into the machine learning model; the input features are standardized using StandardScaler in Scikit-Learn. The specific formula for the standardization is as follows:

[0104]

[0105] in, and x i are the standardized value and original value of the input variable, μ and σ are the mean and standard deviation of the sample data, respectively; similar scales are obtained, which is approximately a normal distribution;

[0106] (3) Important feature selection

[0107] Comprehensively consider the results of correlation analysis, cluster analysis and important feature analysis, clarify the impact of input features on output variables, and select important features that are both representative and contain key information. The specific process is as follows:

[0108] (3.1) Correlation analysis

[0109] Through correlation analysis, the correlation degree between each input feature and the output variable is evaluated; the Pearson correlation coefficient PCC is used to perform correlation analysis on different variables. xy The specific formula is as follows:

[0110]

[0111] Among them, ρ xy For feature-to-target or target-to-target PCC, and The input features x are i and the output variable y i The average value of , n is the number of data samples in the data set;

[0112] (3.2) Cluster analysis

[0113] Cluster analysis was performed based on Pearson’s rank correlation, and features with high correlation, indicating similar information, were grouped into a cluster;

[0114] (3.3) Important feature screening

[0115] Based on machine model research, the role of input features relative to output variables is explained, the importance value corresponding to the input features is obtained, and the importance of the input features is reasonably determined; in the screening process, features belonging to different empirical categories in the same cluster are not removed; for features of the same empirical category in the same cluster, the retention or removal is determined based on their importance and the size of the correlation with the output variable. Relatively important and highly correlated input features are retained, otherwise they are removed;

[0116] (4) Model development

[0117] (4.1) Model selection

[0118] Select multiple potential machine learning algorithms based on the characteristics of the data;

[0119] (4.2) Model construction

[0120] The data set was randomly divided into two parts: 70% for model training and 30% for model testing. In order to evaluate the generalization and randomness of the model, all models were cross-validated five times to reduce overfitting. Five different random seeds were used for five repeated validations, and the results reported the average recognition accuracy. The average test performance of 5 times was taken to obtain an effect prediction model with high accuracy and strong generalization ability to predict the repair effect of passivation materials. The root mean square error RMSE, mean absolute error MAE and determination coefficient R in the test performance were 2 The specific formula is as follows:

[0121]

[0122] in, To predict the output, is the true value of the output report, y m is the average value of the output value, and n is the number of data samples in the training or test data set;

[0123] The prediction interval coverage probability PICP is used to calculate the probability that the value falls within the prediction interval 5-95%; the specific formula of the prediction interval coverage probability is as follows:

[0124]

[0125] Among them, y t is the observed value, and are the prediction lower and upper limits, respectively, and n is the number of data samples in the training or test data set;

[0126] Finally, the grid search method was used to obtain the optimal hyperparameters;

[0127] (5) Model optimization

[0128] The best model obtained in the model construction is tuned by cross-validation, grid search and other technical means; the hyperparameters and ranges that need to be debugged are determined, and the hyperparameters are adjusted by trial and error method based on RMSE. Five cross-validations are used in the training process, and the data set is divided into 5 subsets. Each subset is used as a test set in one iteration, and the remaining subsets are used as training sets; each combination of training set and test set is trained and tested, and cross-validation is repeated 5 times. The results of 5 iterations are taken, and the RMSE score of each parameter combination is compared. The parameter combination with the smallest RMSE value is selected as the final hyperparameter setting to optimize the model performance; after optimization, the modeling of step (4.2) is performed again;

[0129] (6) Model explanation

[0130] By means of feature importance analysis, Shapley additive interpretation, partial dependence diagrams, etc., the reasons behind the model results are explained. Combined with the theoretical basis of the structure-activity relationship of the previous passivation material structure and heavy metal removal performance, the key influencing factors in the properties of heavy metal-contaminated soil, the structural properties of passivation materials, and the remediation application conditions are further analyzed to further analyze the contribution of the key influencing factors to the passivation effect and how they positively or negatively affect the model prediction;

[0131] (6.1) Feature importance analysis

[0132] The feature importance ranking function in the random forest model is used to evaluate the importance of each input feature in the properties of heavy metal contaminated soil, the structural properties of passivation materials, and the remediation application conditions. In Scikit-learn, this function is obtained through the feature_importances_ attribute. The weighted average of each input feature on the split nodes in all decision trees is calculated to obtain the corresponding importance value, clarifying the contribution of each input feature to the model results.

[0133] (6.2) Shapley Additive Interpretation

[0134] The Shapley Additive Explanation (SHAP) method is used to describe the relative importance of each input feature to the output variable in the properties of heavy metal-contaminated soil, the structural properties of passivation materials, and the remediation application conditions. The marginal contribution of each input feature to the output variable is calculated, and the black box model (such as a deep neural network or an integrated model) is explained globally and locally. For each output variable result, the model generates a SHAP value, which represents the impact of the descriptor on the behavior of the data point.

[0135] (6.3) Partial dependence graph

[0136] Partial Dependence Plots (PDPs) are used to systematically express the correlation between each input feature and the output variable and a group of input features in the properties of heavy metal contaminated soil, the structural properties of passivation materials, and the remediation application conditions, and the values ​​of other input features, i.e., complementary features, are marginalized; how the input features positively or negatively affect the output variables is explained, and the influence trend on the heavy metal passivation effect is determined;

[0137] (7) Model application

[0138] The soil property values ​​obtained by sampling and testing are input into the model obtained in step (5). According to the output variable results of the model, a data set of the structural properties of the passivation material with better remediation effect is screened out; at the same time, based on the properties of the heavy metal contaminated soil and the structural properties of the passivation material, the heavy metal passivation effect of these materials is predicted, and then the remediation potential of the passivation material is determined. Figure 1 shown.

[0139] Preferably, the classified integrated information includes regional geographical location, arable land type, area, etc., soil organic matter content, soil pH value, soil cation exchange capacity, heavy metal concentration, etc., passivation material pH value, element content, specific surface area, passivation material application amount, etc., and changes in the effective content of heavy metals in the soil before and after restoration; the heavy metal pollution indicators include Cd, Hg, As, Pb, and Cr.

[0140] Preferably, the passivation effect of the heavy metals in the soil is evaluated by the change in the effective content of the heavy metals before and after the restoration, which can be directly obtained from the experimental data or calculated as a percentage using the following formula:

[0141]

[0142] Among them, HMs immobilization efficiency is the passivation effect of heavy metals, C B0 (mg / kg) is the effective concentration of heavy metals in the soil before the control treatment, i.e., the passivation material restoration. B(mg / kg) is the effective concentration of heavy metals in soil after restoration by passivation materials.

[0143] Preferably, the parameter unit conversion includes converting the applied mass percentage of biochar into kg / ha: 1% is equivalent to 15000 kg / ha; converting pH (CaCl2) into pH (H2O), and the specific formula is as follows:

[0144]

[0145] The specific formula for converting soil organic carbon SOC into soil organic matter SOM is as follows:

[0146] SOM=SOC / 0.58.

[0147] Preferably, the missing data input includes a mean algorithm, an interpolation method, and a machine model regression algorithm; the specific usage process is as follows: first, each column is traversed to identify and process missing values; the columns considered are divided into two subsets: samples with missing values ​​and samples with no missing values; the feature matrix consists of all columns except the current missing values, and the target value corresponds to the value of the current column where the missing value does not exist; in addition, a separate feature matrix is ​​created for samples with missing values; SimpleImputer is used to fill the missing values ​​in the feature matrix, and then the algorithm is used to fit the missing values ​​to the samples to obtain predictions of the missing values.

[0148] Preferably, the cluster analysis method includes K-means clustering algorithm, hierarchical clustering algorithm, self-organizing map clustering algorithm, fuzzy C-means clustering algorithm;

[0149] Preferably, the multiple potential machine learning include linear regression LR, Bayesian Ridge regression BayesianRidge and Ridge regression Ridge, as well as K nearest neighbor KNN, artificial neural network ANN, random forest RF, gradient boosting decision tree GBDT, decision tree DT and support vector regression SVR.

[0150] The method described above is used in the screening of passivation materials for heavy metal-contaminated cultivated land soil.

[0151] Specifically, the relevant preparation and detection are as follows:

[0152] Example 1

[0153] Prediction of biochar passivation effect on cadmium contaminated soil:

[0154] 1. Database establishment

[0155] (1) The present invention selects the commonly used passivation material biochar as the model material, selects the common heavy metal cadmium as the target pollutant, and searches for peer-reviewed literature published in the past 20 years from "China National Knowledge Infrastructure" and "Web of Science" based on multi-year multi-point experimental work and targeted literature retrieval across the country;

[0156] (2) Through systematic literature review and data collection, data were directly extracted from tables, supplementary materials, or figures using Plot Digitizer 2.6.8 software (http: / / plotdigitize r.sourceforge.net / ), and a total of 1465 data points involving 25 variables were obtained and classified;

[0157] In view of the diversity of the collected data, the influencing variables will be screened according to the following three categories. The properties of heavy metal contaminated soil include: sand content, powder content, clay content, cation exchange capacity, conductivity, soil pH, soil organic matter; biochar structural properties include: biochar pH, yield, ash content, cation exchange capacity, specific surface area, total pore volume, carbon content, nitrogen content, hydrogen content, oxygen content, oxygen-carbon molar ratio, hydrogen-carbon molar ratio, oxygen-nitrogen-carbon molar ratio, and conductivity; remediation application conditions include: biochar application amount, experimental time, and total soil Cd concentration.

[0158] The passivation effect of heavy metals in soil is evaluated by the change in the effective content of heavy metals before and after remediation, which can be obtained directly from experimental data or calculated as a percentage using the following formula:

[0159]

[0160] Among them, HMs immobilization efficiency is the passivation effect of heavy metals, C B0 (mg / kg) is the effective concentration of heavy metals in the soil before the control treatment, i.e., the passivation material restoration. B (mg / kg) is the effective concentration of heavy metals in soil after restoration by passivation materials;

[0161] 2. Data preprocessing

[0162] (1) In this embodiment, the sklearn.ensemble package (version 1.3.2) is introduced to implement the regression algorithm interpolation based on the random forest model. Traverse each column to identify and process missing values; the columns considered are divided into two subsets: samples with missing values ​​and samples with non-missing values; the feature matrix consists of all columns except the current missing values, and the target value corresponds to the value of the current column where the missing value does not exist. In addition, a separate feature matrix is ​​created for the samples with missing values; SimpleImputer is used to fill the missing values ​​in the feature matrix, and then the random forest model is used to fit the missing values ​​with the samples to obtain the prediction of the missing values. According to the determination of ±3σ in the normal distribution, the sample data coverage rate reaches 100% within the distribution interval of [u-3σ, u+3σ]. It shows that the distribution of the data sample follows the principle of normal distribution; the collected data is converted into consistent units, missing values ​​are processed, and other operations are performed to ensure the quality and availability of the data.

[0163] (2) Develop ML models by standardizing relatively ideal datasets using Python.

[0164] 3. Feature Selection

[0165] (1) PCC is used to study the correlation between any two input features ( Figure 2 ). The clusters and empirical classifications were determined using domain knowledge (including the properties of heavy metal-contaminated soil, the structural properties of biochar, and the conditions for remediation application). During the filtering process, features belonging to different empirical categories in the same cluster were not removed. By using a threshold of 1.5, the clusters were divided into four specific clusters ( Figure 3 , Figure 4 );

[0166] (2) Based on PCC and feature importance ( Figure 2-Figure 4 ), cluster (I) contains pH BC , Ash, E.C. BC , pH soil , SOM, EC soil , Clay and Silt, retain pH BC , pH soil and SOM as input features, and remove other features as unnecessary features. BC, (O+N) / C, O / C and O content In cluster (Ⅱ), O content was retained as an input feature considering that its importance was higher than the other three features. SSA, TPV, Yield and N content were deleted as redundant features in cluster (Ⅲ) because the correlation between yield and Cd availability reduction efficiency was extremely weak (PCC = 0.13). SSA was positively correlated with TPV (PCC = 0.97). To avoid multicollinearity, TPV was excluded as it was considered less important than SSA in terms of feature importance. Total Cd concentration was selected as the input feature as it was the only soil attribute in cluster (Ⅲ). In the final cluster (Ⅳ), H / C and Sand were identified as non-essential features and deleted considering the PCCs and importance analysis. Dosage was selected BC , Time, C and H content and CEC soil As input features for model development.

[0167] 4. Model development

[0168] (1) The selected input features were used to compare their predictions of soil Cd passivation effects. The R 2 After five cross-validations, RMSE and MAE are visualized using regression plots. Figures 5 to 7 ;

[0169] (2) In this example, the nonlinear model outperforms the linear model in terms of accuracy. The three tree-based ML models (RF, GBDT, and DT) have higher prediction accuracy. 2 The values ​​are 0.869, 0.853 and 0.826 respectively. The test R of RF model 2 The RF model has the lowest uncertainty in each cluster (PICP is 0.864), and the PICP% obtained in all stages is almost similar, with a confidence level of nearly 90%, indicating the robustness of the prediction model. The specific statistical measurement and uncertainty analysis of the Cd passivation effect in soil are shown in Table 1. Table 1 Statistical measurement and uncertainty analysis of Cd passivation effect in soil using LR, BayesianRidge, Ridge, KNN, ANN, RF, GBDT, DT and SVR algorithms

[0170] Table 1 Statistical measurement and uncertainty analysis of Cd passivation effect

[0171]

[0172]

[0173] 5. Model update

[0174] (1) In this example, the RF model has accurate and reliable performance and is the best algorithm for predicting soil Cd fixation efficiency. Therefore, it was selected for further post-processing. In order to further improve the reliability and accuracy of the RF prediction model, the trial-and-error method based on RMSE was used to adjust the hyperparameters and optimize the model performance. The optimization focuses on adjusting the maximum depth (max_depth) and number of DTs (n_estimators) in the RF model ( Figure 4 ), we tried values ​​between 1 and 60 and 10 and 600 for max_depth and n_estimators, respectively. When max_depth and n_estimators are 50 and 500, respectively, RMSE is the smallest, thus achieving the best prediction performance;

[0175] (2) The optimized RF model outperforms the original RF model on both training and test datasets. 2 The RF models are shown in Table 2. The uncertainty bands of the optimized RF model are 0.977 and 0.907, the RMSEs are 3.393 and 5.848, and the MAEs are 2.469 and 4.221. Most of the observations fall within the prediction interval in the uncertainty band of the optimized RF model. In addition, the optimized RF model obtains larger training and test PICPs than the original RF model. The statistical measurements and uncertainty analysis of the optimized RF model are shown in Table 2.

[0176] Table 2 Statistical measurement and uncertainty analysis of the optimized RF model

[0177]

[0178] 6. Model Interpretation

[0179] (1) The RF interpreter provides a score based on the importance of each input feature in the RF, indicating the contribution of each input feature to the decision tree in the model. This score is calculated explicitly for each variable in the dataset, allowing attributes to be ranked and compared. In contrast, SHAP treats the prediction as a cumulative sum of descriptor contributions, with each descriptor having a SHAP value. In a specific embodiment, feature importance is roughly similar to the input variable importance value of the SHAP analysis ( Figure 8 , Fig. 9 ). Feature importance analysis showed that the importance of input features was as follows: biochar structural properties (60.96%) > remediation application conditions (19.6%) ≈ heavy metal contaminated soil properties (19.44%). pH BCIt was considered to be the most critical factor, which is consistent with its key role in soil Cd fixation after biochar application. Since 88% of the biochar types in the dataset are alkaline, they tend to increase soil pH, leading to the formation of insoluble Cd precipitation. BC and Time were positively correlated with soil Cd fixation efficiency;

[0180] (2) Using PDPs to understand the contribution of the most important characteristics to the passivation of soil heavy metal Cd by biochar ( Fig.10 ), among which the pH value (10-11) and dosage (7500-75000 kg / ha) of biochar are the most important characteristic parameters affecting soil Cd passivation. The soil Cd passivation effect is best when the pH of biochar and soil is about 10.8 and 8.2, respectively. For the biochar dosage, after a dosage of 45000 kg / ha, the Cd passivation effect gradually reaches equilibrium due to the excess of Cd binding sites. A similar trend was also observed under the influence of time. From 60 to 90 days, a slow increase in the Cd passivation effect was observed. The N and C contents of biochar are important indicators for predicting the soil Cd passivation effect. The N content is positively correlated with the soil Cd passivation effect in the range of 0.5-2.0%, while the Cd passivation effect is higher when the C content is between 20% and 40%.

[0181] 7. Model Application

[0182] (1) In this embodiment, the pH values ​​of the three sites are selected as acidic, neutral and alkaline. soil 、CEC soil , SOM and Cd total Data. pH BC , SSA, C, N, H and O ranges are selected from the data set with step sizes of 0.5 and 50 m, respectively. 2 / g, 10%, 0.5%, 0.5% and 5%. In order to improve the fixation efficiency, the experimental time was set to 139 days according to PDPs, and the biochar application amount was set to 45000 kg / ha;

[0183] (2) Using the optimized model, the soil property values ​​of the three sites were input into the model. A set of target biochar property data for each site and the optimal soil Cd fixation efficiency for each site were generated. <pH BC <11.21) performed well in the remediation of Cd-contaminated soils, with the passivation effect of each site exceeding 50%. Especially in acidic soils with high organic matter. The optimal biochar performance data predicted by the RF model are shown in Table 3.

[0184] Table 3 Optimal biochar performance data predicted by RF model

[0185]

[0186]

[0187] Although the embodiments of the present invention are disclosed for illustrative purposes, those skilled in the art will appreciate that various substitutions, changes and modifications are possible without departing from the spirit and scope of the present invention and the appended claims. Therefore, the scope of the present invention is not limited to the contents disclosed in the embodiments.

Claims

1. A method for screening suitability of heavy metal contaminated soil areas, characterized by: The method collects and analyzes the adsorption performance data of different passivation materials and uses a machine learning model to perform feature selection and prediction, thereby efficiently screening out passivation materials suitable for agricultural soil pollution remediation.

2. The method according to claim 1, characterized in that: The method comprises the following steps: (1) Establish a remediation case database with the heavy metal contaminated soil properties, passivation material structure properties and remediation application conditions as input features and the heavy metal passivation effect, i.e. the change in the effective content of heavy metals before and after remediation, as output variables; (2) Develop and optimize a machine learning model for regional suitability screening of passivation materials; (3) Based on the proposed model, the main controlling factors in the repair process are identified through input feature importance analysis; (4) Based on the proposed model, a screening strategy for passivation materials under different regional conditions was developed, and the passivation effect of the materials in heavy metal-contaminated cultivated soils was predicted.

3. The method according to claim 1, characterized in that: The specific steps include: (1) Database establishment Based on the multi-year multi-site test work and targeted literature search throughout the country, the information including the properties of heavy metal-contaminated soil, the structural properties of passivation materials, the conditions for remediation and the passivation effects of heavy metals were classified and integrated to build a database of passivation material remediation cases. (2) Data preprocessing Ensure the quality and availability of data by preprocessing the collected data, including parameter unit conversion, missing value supplementation and standardization operations; (2.1) Unit conversion After data collection, to ensure the uniformity of the units, all collected data were unit transformed; (2.2) Missing data input In order to avoid discarding data sets with missing values, Python is introduced to generate reasonable numbers to predict missing data by observing the distribution of variables in the data set and the relationship between them. All data sets are divided into samples with missing values ​​and samples with no missing values, and the samples are fitted to obtain the prediction of missing values. (2.3) Data standardization In order to obtain consistent units for the selected variable values, the input and output parameters are standardized using Z-score normalization before being input into the machine learning model; the input features are standardized using StandardScaler in Scikit-Learn. The specific formula for the standardization is as follows: in, and x i are the standardized value and original value of the input variable, μ and σ are the mean and standard deviation of the sample data, respectively; similar scales are obtained, which is approximately a normal distribution; (3) Important feature selection Comprehensively consider the results of correlation analysis, cluster analysis and important feature analysis, clarify the impact of input features on output variables, and select important features that are both representative and contain key information. The specific process is as follows: (3.1) Correlation analysis Through correlation analysis, the correlation degree between each input feature and the output variable is evaluated; the Pearson correlation coefficient PCC is used to perform correlation analysis on different variables. xy The specific formula is as follows: Among them, ρ xy For feature-to-target or target-to-target PCC, and The input features x are i and the output variable y i The average value of , n is the number of data samples in the data set; (3.2) Cluster analysis Cluster analysis was performed based on Pearson’s rank correlation, and features with high correlation, indicating similar information, were grouped into a cluster; (3.3) Important feature screening Based on machine model research, the role of input features relative to output variables is explained, the importance value corresponding to the input features is obtained, and the importance of the input features is reasonably determined; in the screening process, features belonging to different empirical categories in the same cluster are not removed; for features of the same empirical category in the same cluster, the retention or removal is determined based on their importance and the size of the correlation with the output variable. Relatively important and highly correlated input features are retained, otherwise they are removed; (4) Model development (4.1) Model selection Select multiple potential machine learning algorithms based on the characteristics of the data; (4.2) Model construction The data set was randomly divided into two parts: 70% for model training and 30% for model testing. In order to evaluate the generalization and randomness of the model, all models were cross-validated five times to reduce overfitting. Five different random seeds were used for five repeated validations, and the results reported the average recognition accuracy. The average test performance of 5 times was taken to obtain an effect prediction model with high accuracy and strong generalization ability to predict the repair effect of passivation materials. The root mean square error RMSE, mean absolute error MAE and determination coefficient R in the test performance were 2 The specific formula is as follows: in, To predict the output, is the true value of the output report, y m is the average value of the output value, and n is the number of data samples in the training or test data set; The prediction interval coverage probability PICP is used to calculate the probability that the value falls within the prediction interval 5%-95%; the specific formula of the prediction interval coverage probability is as follows: Among them, y t is the observed value, and are the prediction lower and upper limits, respectively, and n is the number of data samples in the training or test data set; Finally, the grid search method was used to obtain the optimal hyperparameters; (5) Model optimization Tune the best model obtained in model construction; determine the hyperparameters and ranges that need to be debugged, and use the trial-and-error method based on RMSE to adjust the hyperparameters. Five cross-validations are used in the training process, and the data set is divided into 5 subsets. Each subset is used as a test set in one iteration, and the remaining subsets are used as training sets; train and test each combination of training set and test set, repeat cross-validation 5 times, take the results of 5 iterations, and compare the RMSE scores of each parameter combination. Select the parameter combination with the smallest RMSE value as the final hyperparameter setting to optimize model performance; after optimization, perform modeling in step (4.2) again; (6) Model explanation By means of feature importance analysis, Shapley additive interpretation, and partial dependence diagram, the reasons behind the model results are explained. Combined with the theoretical basis of the structure-activity relationship of the previous passivation material structure and heavy metal removal performance, the contribution of the key influencing factors in the properties of heavy metal contaminated soil, the structural properties of the passivation materials, and the remediation application conditions to the heavy metal passivation effect and how they positively or negatively affect the model prediction are further analyzed; (6.1) Feature importance analysis The feature importance ranking function in the random forest model is used to evaluate the importance of each input feature in the properties of heavy metal contaminated soil, the structural properties of passivation materials, and the remediation application conditions. In Scikit-learn, this function is obtained through the feature_importances_ attribute. The weighted average of each input feature on the split nodes in all decision trees is calculated to obtain the corresponding importance value, clarifying the contribution of each input feature to the model results. (6.2) Shapley Additive Interpretation The Shapley Additive Explanation (SHAP) method is used to describe the relative importance of each input feature to the output variable in the properties of heavy metal contaminated soil, the structural properties of passivation materials, and the remediation application conditions. The marginal contribution of each input feature to the output variable is calculated, and the black box model is interpreted globally and locally. For each output variable result, the model generates a SHAP value, which represents the impact of the descriptor on the behavior of the data point. (6.3) Partial dependence graph Partial dependence diagrams are used to systematically express the correlation between each input feature and the output variable and a group of input features in the properties of heavy metal contaminated soil, the structural properties of passivation materials, and the remediation application conditions, and the values ​​of other input features, i.e., complementary features, are marginalized; how the input features positively or negatively affect the output variables is explained, and the influence trend on the heavy metal passivation effect is indeed determined; (7) Model application The soil property values ​​obtained by sampling and testing are input into the model obtained in step (5). According to the output variable results of the model, a data set of structural properties of passivation materials with better remediation effects is screened out; at the same time, based on the properties of heavy metal contaminated soil and the structural properties of passivation materials, the heavy metal passivation effects of these materials are predicted, and then the remediation potential of the passivation materials is determined.

4. The method according to claim 3, characterized in that: The classified integrated information includes regional geographical location, cultivated land type, area, soil organic matter content, soil pH value, soil cation exchange capacity, heavy metal concentration, passivation material element content, specific surface area, application amount and application time, and changes in the effective content of heavy metals in the soil before and after restoration; the heavy metal pollution indicators include Cd, Hg, As, Pb, and Cr.

5. The method according to claim 3, characterized in that: The heavy metal passivation effect is evaluated by the change in the effective content of heavy metals before and after repair, which can be directly obtained from experimental data or calculated as a percentage using the following formula: Among them, HMs immobilization efficiency is the passivation effect of heavy metals, C B0 (mg / kg) is the effective concentration of heavy metals in the soil before the control treatment, i.e., the passivation material restoration. B (mg / kg) is the effective concentration of heavy metals in soil after restoration by passivation materials.

6. The method according to claim 3, characterized in that: The parameter unit conversion includes converting the applied mass percentage of biochar into kg / ha: 1% is equivalent to 15000 kg / ha; converting pH (CaCl2) into pH (H2O), the specific formula is as follows: The specific formula for converting soil organic carbon SOC into soil organic matter SOM is as follows: SOM=SOC / 0.

58.

7. The method according to claim 3, characterized in that: The missing data input includes the mean algorithm, K-nearest neighbor method, interpolation method and machine model regression algorithm; the specific use process is as follows: first, traverse each column to identify and process missing values; the columns considered are divided into two subsets: samples with missing values ​​and samples with no missing values; the feature matrix consists of all columns except the current missing value, and the target value corresponds to the value of the current column where the missing value does not exist; in addition, a separate feature matrix is ​​created for samples with missing values; Use SimpleImputer to fill the missing values ​​in the feature matrix, and then use the algorithm to fit the missing values ​​to the samples to obtain the predictions of the missing values.

8. The method according to claim 3, characterized in that: The cluster analysis method includes K-means clustering algorithm, hierarchical clustering algorithm, self-organizing map clustering algorithm and fuzzy C-means clustering algorithm.

9. The method according to claim 3, characterized in that: The multiple potential machine learning include linear regression LR, Bayesian Ridge regression Bayesian Ridge and Ridge regression Ridge linear models, as well as K nearest neighbor KNN, artificial neural network ANN, random forest RF, gradient boosted decision tree GBDT, decision tree DT and support vector regression SVR.

10. Use of the method according to any one of claims 1 to 9 in screening of passivation materials for heavy metal-contaminated cultivated soil.

Citation Information

Patent Citations

  • Soil mineral content prediction method based on machine learning

    CN116148438A

  • Soil heavy metal content prediction method based on machine learning and application thereof

    CN116187543A

  • Crop heavy metal enrichment risk quantification method and system and storable medium

    CN116227692A

  • Analysis method and application of soil available cadmium influence factors

    CN117133372A

  • Soil heavy metal pollution driving factor identification method based on Catboost-SHAP model

    CN117290727A

Cited By

  • Method for extracting environment variable threshold and interaction effect influencing heavy metal content distribution in mining area

    CN120632663A

  • Adsorption-extraction combined heavy metal polluted water body remediation system and method

    CN120698556A

  • Heavy metal contaminated soil remediation system and method based on intelligent management and control

    CN120790650A

  • Nitrogen and phosphorus non-point source pollution key source region identification method based on weighted feature importance

    CN120951065A

  • Method for predicting microwave remediation efficiency of polycyclic aromatic hydrocarbon contaminated soil

    CN121017234A