Method and system for predicting adsorption performance of metal organic framework material on precious metal ions in solution and storage medium

By combining stacked ensemble models and Bayesian optimization, the accuracy and efficiency issues of noble metal ion adsorption prediction in existing technologies are solved, enabling efficient prediction and optimization of noble metal ion adsorption materials and reducing R&D costs.

CN121528353AActive Publication Date: 2026-02-13UNIV OF SCI & TECH BEIJING
View PDF 4 Cites 0 Cited by

Patent Information

Application Number
CN202511619272.4
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-11-06
Publication Date
2026-02-13
Estimated Expiration
2045-11-06

AI Technical Summary

Technical Problem

In existing technologies, single machine learning models and grid search methods suffer from overfitting or underfitting problems in predicting the adsorption capacity of noble metal ions, resulting in limited prediction accuracy. Furthermore, traditional methods cannot effectively utilize prior knowledge for model optimization in small sample scenarios, leading to high R&D costs and low efficiency for noble metal ion adsorption materials.

Method used

A stacked ensemble model-based approach is adopted, combining random forest, extreme gradient boosting, and lightweight gradient boosting machine as base models, gradient boosting tree as meta-model, Bayesian optimization for hyperparameter tuning, and partial least squares analysis of variable importance to construct a prediction system for noble metal ion adsorption performance.

Benefits of technology

It improves the accuracy of predicting the adsorption performance of noble metal ions, reduces computational costs and time, adapts to complex factors affecting adsorption capacity, and realizes the prediction and optimization of highly efficient noble metal ion adsorption materials.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN121528353A_ABST
    Figure CN121528353A_ABST
Patent Text Reader

Abstract

The invention discloses a method and system for predicting the adsorption performance of a metal organic framework material on precious metal ions in a solution and a storage medium, and belongs to the field of precious metal resource recovery. The method comprises the following steps: collecting and sorting experimental data, sorting and screening the data, and performing quantitative processing to form a database; dividing the database into a training set and a test set, constructing a stacked integrated machine learning model for training, carrying out hyper-parameter tuning by adopting Bayesian optimization, and carrying out prediction by utilizing the optimized model to obtain the prediction performance of the model; fitting is conducted through a partial least square method, importance scores of different variables are calculated, the influence degree on the precious metal ion adsorption capacity is analyzed, and the variables with the low importance scores are screened and removed; and predicting the new experimental data by using the trained stack integration model, and evaluating the prediction effect of the stack integration model on the adsorption performance of the MOFs. According to the technical scheme, the prediction accuracy of the adsorption performance of the MOFs material on the precious metal ions in the solution can be improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of precious metal resource recycling, and in particular to a method, system, and storage medium for predicting the adsorption performance of metal-organic frameworks (MOFs) for precious metal ions in solution based on a stacked integration model. Background Technology

[0002] Precious metals, including gold, silver, and platinum group metals, possess excellent physical and chemical properties and have wide applications in electronics, jewelry, medical devices, aerospace, and other fields. In recent years, the demand for precious metals has continued to grow, while mineral resources are insufficient to meet this increasing demand. Simultaneously, with rapid economic development and improved living standards, a large amount of electronic waste containing precious metals is generated annually. Currently, only a small amount of secondary precious metal resources are effectively recycled, resulting in serious resource waste and environmental pollution. Therefore, the efficient recycling and utilization of secondary precious metal resources is of great significance for economic development and environmental protection.

[0003] Methods for recovering precious metal ions from aqueous solutions mainly include chemical precipitation, membrane separation, solvent extraction, microbial methods, and adsorption. Among these, adsorption refers to the use of adsorbent materials to enrich and recover precious metal ions from solution through physicochemical reactions. Due to its advantages such as simple operation, high efficiency, low cost, and no secondary pollution, it is considered one of the most promising technologies. Commonly used adsorbent materials include activated carbon, resins, and biosorbents, but they all have certain limitations, such as low adsorption capacity and difficult regeneration of activated carbon, poor selectivity of ion exchange resins, and poor mechanical properties and low adsorption capacity of biosorbents. Therefore, there is an urgent need to develop new and highly efficient precious metal ion adsorption materials.

[0004] Metal-organic frameworks (MOFs), also known as porous coordination polymers, possess extremely high specific surface areas, large porosities, and flexible pore structures, making them highly promising for the recycling of precious metal secondary resources. For novel precious metal ion adsorbents, the adsorption capacity is a crucial indicator for evaluating their adsorption performance. Currently, numerous researchers have synthesized various modified MOF materials through extensive experiments, significantly improving the selectivity and adsorption efficiency for precious metal ions. Theoretically, an infinite number of MOF materials can be obtained by changing the types and coordination modes of organic ligands and metal nodes. However, exploring the development of MOF adsorbent materials through artificial experiments is extremely costly in terms of both economic and time resources, limiting the research and development of novel MOF adsorbent materials.

[0005] Machine learning boasts advantages such as low computational cost and strong predictive power, enabling it to analyze patterns from large amounts of data and predict unknown data. Applying machine learning to the research and development of new materials can significantly shorten the development cycle, improve efficiency, and reduce costs. Currently, related technologies often employ a single machine learning model combined with grid search for hyperparameter tuning to predict adsorption amounts. However, the fixed structure and learning preferences of a single model make it difficult to adapt to complex factors influencing adsorption amounts. In scenarios with uneven training sample distribution or strong feature correlations, it is prone to overfitting or underfitting, resulting in limited prediction accuracy. Grid search, as a traditional hyperparameter tuning method, exhaustively searches all possible parameter combinations within a predefined hyperparameter space and selects the optimal combination through cross-validation. However, this method involves high computational cost, and its optimization effect depends on the discretization of candidate hyperparameter values, limiting tuning accuracy. Therefore, the combination of a single model and grid search cannot effectively utilize prior knowledge to assist model optimization in small-sample scenarios, further amplifying performance deficiencies. Summary of the Invention

[0006] To address the shortcomings of existing technologies, this invention proposes a method, system, and storage medium for predicting the adsorption performance of noble metal ions in solution by MOFs based on a stacked integration model, which can improve the accuracy of predicting the adsorption performance of noble metal ions in solution by MOFs materials.

[0007] This invention provides the following technical solution:

[0008] According to a first aspect of the present invention, a method for predicting the adsorption performance of noble metal ions in solution by metal-organic frameworks (MOFs) based on a stacked integration model is provided, characterized by comprising the following steps:

[0009] S1. Collect and organize experimental data on the adsorption of noble metal ions in solution by MOFs materials with transition metal ions as metal centers, including the chemical properties, structural properties and adsorption experimental conditions of the MOFs materials as input variables, and the adsorption amount of noble metal ions as target variables. Organize and screen the data and perform quantitative processing to form a database.

[0010] S2, the database is divided into training set and test set, a stacked ensemble machine learning model is constructed, the stacked ensemble machine learning model is trained based on the training set, and Bayesian optimization is used simultaneously to perform hyperparameter tuning on the model (including base model and meta-model), and then the tuned model is used to predict the test set, and finally the prediction performance of the stacked ensemble machine learning model is obtained.

[0011] S3. Partial Least Squares (PLS) was used to fit the data and calculate the importance scores of the chemical properties, structural properties and adsorption experimental conditions of the MOFs material as different variables. The influence of these variables on the adsorption amount of the noble metal ions was analyzed and variables with low importance scores were removed.

[0012] S4. The trained stacked ensemble model is used to predict new experimental data to evaluate the predictive effect of the stacked ensemble model on the adsorption performance of MOFs.

[0013] Furthermore, in step S1, the noble metal ions include Au(III), Ag(I), and six platinum group metal ions: Pt(IV), Pd(II), Rh(III), Ir(IV), Os(IV), and Ru(IV).

[0014] The chemical properties of the MOFs materials include the topological polar surface area of ​​transition metal centers such as Fe, Cu, Zn, Zr, and Cr, as well as organic ligands. Number of hydrogen bond donors, number of hydrogen bond acceptors, molecular volume The number of dipole moments and different types of chemical bonds;

[0015] The different types of chemical bonds specifically include: CC, CN, CR, CS, C=C, NC, CC, CN, CO, CR,

[0016] C=C(aromatic), C=C(ring), C=N(ring), C=O, C≡N, N=N(ring), OR;

[0017] The terminology is defined as follows:

[0018] (1)(ring): refers to the cyclic structure in MOF organic ligands, including aromatic rings and alicyclic rings, only limited to the fact that both bonding atoms of the chemical bond are located on the ring or bonded to the ring;

[0019] (2)(aromatic): refers to an aromatic unsaturated bond, only limited to the fact that the C=C bond is located within the aromatic ring;

[0020] (3) R: refers to alkyl substituent;

[0021] The structural properties of the MOFs material include BET specific surface area (m²). 2 / g), pore size (nm) and pore volume (cm³) 3 / g);

[0022] The adsorption experimental conditions of the MOFs materials include metal ion concentration (mg / L), adsorbent dosage (mg), reaction time (min), pH value, and reaction temperature (K).

[0023] Here, in S1, the experimental data comes from relevant publications published in the past ten years. Literature is searched and screened in Web of Science and CNKI using keywords such as "MOF materials", "adsorption", and "noble metal ions". All data points are extracted from the text, charts, or supporting information of the literature. For data presented in the graphs without specific text descriptions, the Web Plot Digitizer tool is used to extract data from the graphs to ensure the accuracy of the data source.

[0024] Furthermore, in S1, the transition metal includes five transition metal ions: iron (Fe), copper (Cu), zinc (Zn), zirconium (Zr), and chromium (Cr).

[0025] Furthermore, in step S2, the database is divided into a training set and a test set in a ratio of 80%:20%.

[0026] Further, in step S2, the stacked ensemble machine learning model includes:

[0027] The first layer serves as the base learning layer, including three base models: Random Forest (RF), Extreme Gradient Boosting (XGBoost), and Lightweight Gradient Boosting Machine (LightGBM).

[0028] The generation of training set meta-features for each base model employs Q-fold cross-validation, specifically including: splitting the training set into Q folded subsets, where Q ranges from 5 to 10 to balance computational efficiency and meta-feature reliability; for each base model, training the base model using the remaining Q-1 folded subsets (excluding the i-th folded subset (i = 1, 2, ..., Q), and then using the trained base model to predict the i-th folded subset to obtain the predicted value corresponding to that folded subset; concatenating the predicted values ​​of all folded subsets to form training set meta-features consistent with the number of training set samples, i.e., the first predicted value meta-feature for each base model; retraining each base model using the complete training set; and then, for each base model trained using the complete training set, predicting the test set to obtain the test set meta-feature corresponding to each base model, i.e., the second predicted value meta-feature.

[0029] The second layer serves as the meta-learning layer, including the Gradient Boosting Tree (GBT) model as the meta-model:

[0030] The first predicted value meta-features of each base model obtained in the first layer are concatenated into a meta-training feature matrix, and the meta-model is trained using the amount of noble metal ion adsorption as a label; the second predicted value meta-features of each base model obtained in the first layer are concatenated into a meta-test feature matrix, which is input into the trained meta-model, and the final prediction result of the amount of noble metal ion adsorption corresponding to the test set is output.

[0031] Further, in step S1, the quantitative processing refers to extracting the SMILES codes of the organic ligands of the MOFs material from the PubChem database and calculating their topological polar surface areas using the RDkit toolkit. Number of hydrogen bond donors, number of hydrogen bond acceptors, molecular volume The dipole moment and the number of different types of chemical bonds enable a quantitative description of the chemical properties of the organic ligands in the MOFs materials.

[0032] Furthermore, in step S1, organizing and filtering the data refers to removing duplicate and invalid data, and statistically analyzing data missing information.

[0033] Furthermore, if data is missing, then step S1 will be followed by:

[0034] Given the presence of some missing values ​​in the original database, the missing values ​​were supplemented using K-Nearest Neighbor (KNN) imputation and mean imputation methods, respectively. The AdaBoost algorithm was then used to evaluate the prediction accuracy, determine the optimal imputation method, and form a complete database.

[0035] Furthermore, the method of evaluating prediction accuracy using the adaptive enhancement algorithm specifically involves using the mean absolute error (MAE) to evaluate prediction accuracy, calculated as follows:

[0036]

[0037] Among them, y i This represents the true value of the noble metal ion adsorption amount for the i-th sample. Let represent the predicted value of noble metal ion adsorption for the i-th sample, where i is the sample index, with values ​​from 1, 2, ..., n, and n is the total number of samples to be evaluated (n ≥ 1).

[0038] Furthermore, in step S3:

[0039] Features with an importance score >1 are considered core influence features;

[0040] Features with an importance score of 0.5 or less and ≤1 are considered to have significant influence.

[0041] Features with an importance score ≤ 0.5 are considered to have a weak influence and are thus considered to have a low importance score.

[0042] Furthermore, in step S2, the hyperparameter tuning using Bayesian optimization is as follows:

[0043] Determine the hyperparameter space X hp and the objective function f(x), where x ∈ X hp , x is the hyperparameter of the stacked ensemble machine learning model (including the base model and the meta-model) to be optimized, f(x) is the metric function for measuring the performance of the hyperparameter, and its value is the 3-fold cross-validation mean squared error CV-MSE corresponding to the hyperparameter x. For a given objective function value z, define the conditional probability distribution of the hyperparameter x as p(x|z);

[0044] In the Bayesian algorithm, focus on two types of conditional probability distributions p(x|z good ) and p(x|z bad ). Among them, p(x|z good ) represents that the objective function value CV-MSE is lower than the preset threshold τ, corresponding to "hyperparameter combinations with excellent performance", and the value of τ is the mean of the CV-MSE of 3 groups of hyperparameters in the initial random search stage. p(x|z bad ) represents that the objective function value CV-MSE is higher than or equal to the threshold τ, corresponding to "hyperparameter combinations with poor performance";

[0045] Use Gaussian Process (GP) as the probability model to model the mapping relationship between hyperparameters and performance. The Gaussian process prior distribution is defined as f(x) ∼ GP(m(x), k(x, x')), where m(x) = 0 is the mean function, and k(x, x') is the radial basis kernel function, which is used to measure the similarity between two hyperparameter combinations x and x'. The expression is:

[0046]

[0047] where D is the dimension of the hyperparameter space, that is, the total number of hyperparameters to be optimized, x d is the value of the d-th hyperparameter of the hyperparameter combination x, x d ′ is the value of the d-th hyperparameter in another hyperparameter combination x′, l d is the length scale of the d-th dimension hyperparameter, which is used to control the smoothness of the influence of the hyperparameter in this dimension on the performance. The larger l d , the smoother the influence of the change of the hyperparameter value on the performance;

[0048] Based on the N groups of hyperparameter-performance data D set = {(x hpx , y hps ) 丨 s = 1, *********N}(where x hpsLet s be the s-th combination of hyperparameters to be optimized, whose dimension is related to the hyperparameter space X. hp The dimension D is consistent, y hps =f(x) hps ) represents the CV-MSE value corresponding to this set of hyperparameters, and for the unknown hyperparameter x hp* performance f hp* Posterior inference is performed, and the posterior distribution remains a Gaussian distribution;

[0049] Select the next hyperparameter evaluation point, perform hyperparameter iteration, and after the iteration is complete, retrieve the data from dataset D. set The combination of hyperparameters with the smallest objective function value CV-MSE is selected as the optimal hyperparameters for the stacked ensemble machine learning model. The hyperparameters are then subjected to type adaptation processing to ensure consistency with the model parameter type requirements.

[0050] Furthermore, in step S2, the predictive performance metric of the stacked integration model is the coefficient of determination (R²). 2 Mean absolute error (MAE) and root mean square error (RMSE), R 2 The RMSE calculation method is as follows:

[0051]

[0052] Among them, y i This represents the true value of the noble metal ion adsorption amount for the i-th sample. This represents the predicted value of noble metal ion adsorption for the i-th sample. Let be the sample mean, i be the sample index, which takes the value 1, 2, ..., n, and n be the total number of samples being evaluated (n≥1).

[0053] Furthermore, in step S3, partial least squares (PLS) is used to fit the data and give a variable importance score. Based on the score results, the influence of different variables on the adsorption effect of noble metal ions is analyzed. The core formula of PLS ​​is as follows:

[0054] Table 1 Definitions of Basic Symbols

[0055]

[0056]

[0057] Data centerization:

[0058] Among them 1 n It is an n×1 vector of all 1s. Let X be the column mean of the independent variable matrix. By transposing it, matrix operations are used to simultaneously subtract the mean of the corresponding column from the independent variables of all samples, thus eliminating the influence of differences in dimensions.

[0059] Independent variable weights (m-th latent variable):

[0060] X m-1 Let y be the residual matrix of the independent variable after the (m-1)th iteration (initially X0). m-1 Let w be the residual vector of the dependent variable after the (m-1)th iteration (initially y0), and |||2 be the L2 norm (Euclidean distance) used to normalize the weight vector to ensure w m The modulus is 1 to avoid the weight values ​​being affected by the dimensions;

[0061] Independent variable score (m-th latent variable): t m =X m-1 w m ,

[0062] This indicates that the weight vector w m For the residual matrix X m-1 Performing a linear combination yields the m-th latent variable, t m Each element corresponds to a latent variable value of a sample;

[0063] Independent variable loading (m-th):

[0064] The numerator is the covariance of the residual matrix and the latent variables, and the denominator is the variance of the latent variables, P. m To measure the correlation between independent variables and latent variables (the larger the absolute value, the more significant the contribution of the independent variable to the latent variable);

[0065] Final regression coefficient: b = W(P) T W) -1 q,

[0066] W is a p×k weight matrix (each column corresponds to the weight vector w of a latent variable). m );

[0067] P is a p×k loading matrix (each column corresponds to a weight vector P of a latent variable). m );

[0068] (P T W) -1 Let P be a matrix T The inverse matrix of W ensures that the formula is invertible;

[0069] q is a k×1 dependent variable loading vector (in the case of a single dependent variable, each element corresponds to the q value of a latent variable);

[0070] Each element of b in the final b jThis represents the regression coefficient of the j-th independent variable on the adsorption amount, which can be directly used to calculate the variable importance score (the larger the absolute value of the coefficient, the more significant the impact).

[0071] According to a second aspect of the present invention, a system for predicting the adsorption performance of noble metal ions in solution by MOFs based on a stacked integration model is provided. The system includes: a processor and a memory for storing executable instructions; wherein the processor is configured to execute the executable instructions to perform the method for predicting the adsorption performance of noble metal ions in solution by MOFs based on a stacked integration model as described in any of the preceding aspects.

[0072] According to a third aspect of the present invention, a computer-readable storage medium is provided, wherein a computer program is stored thereon, and when the computer program is executed by a processor, it implements the method for predicting the adsorption performance of noble metal ions in solution by MOFs based on a stacked integration model as described in any of the preceding aspects.

[0073] The present invention provides a method for predicting the adsorption performance of noble metal ions in solution by MOFs based on a stacked integration model, which has the following beneficial effects:

[0074] (1) By using SMILES coding and RDkit toolkit to introduce the chemical properties of MOFs materials as descriptors, the types of factors affecting the adsorption amount are enriched. The chemical properties of MOFs materials have a significant impact on the adsorption amount and cannot be ignored. Introducing chemical descriptors as input variables can make the model's prediction effect more comprehensive and accurate.

[0075] (2) The stacked ensemble model employing "XGBoost, RF, and LightGBM as base models + GBT as meta-model" possesses multi-dimensional core advantages. Although the three base models all belong to the category of tree models, their learning mechanisms have different focuses. XGBoost excels at capturing nonlinear correlations such as aperture threshold effects.

[0076] RF can robustly uncover weakly correlated feature combinations between metal centers and ligands, while LightGBM can efficiently handle high-dimensional chemical bond features. These three technologies not only cover the key influencing factors of adsorption capacity but also ensure prediction consistency through the commonalities of tree models, laying a high-quality foundation for subsequent integration. The GBT meta-model can dynamically allocate the weights of the base models, accurately correcting the biases of single base models, balancing accuracy and interpretability, and exhibiting strong generalization ability. Compared to single base models, it achieves a three-dimensional balance of "accuracy-efficiency-interpretability," adapting to the actual needs of MOF adsorption capacity prediction.

[0077] (3) A Bayesian algorithm is introduced to perform hyperparameter tuning on the base model and meta-model. Based on the Gaussian process probability model, it can dynamically predict the optimal hyperparameter region using the searched hyperparameter-performance data. Through "initial random exploration + iterative directional optimization", the computational load of tuning is significantly reduced while accurately locating the globally optimal hyperparameter. Moreover, it quantifies the uncertainty of hyperparameter performance through posterior distribution, which can prioritize the exploration of high-potential regions and avoid the discretization bias of grid search. This optimizes the fitting accuracy and generalization ability of each base model and meta-model, providing key support for the efficient construction of stacked integrated models and high-precision adsorption prediction. At the same time, it takes into account both tuning efficiency and parameter reliability, adapting to the actual needs of MOFs materials with limited experimental data and high feature dimensions.

[0078] (4) By calculating the importance scores of different descriptors, the influence of different descriptors on the adsorption effect can be determined. Only descriptors with high importance scores are selected for fitting and prediction, which can optimize the descriptors, reduce redundancy, and thus save computational resources.

[0079] Source, improve computing speed. Attached Figure Description

[0080] To more clearly illustrate the embodiments of the present invention, the accompanying drawings used in the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For those skilled in the art, other drawings can be obtained based on the results shown in these drawings without creative effort.

[0081] Figure 1 This is a step sequence diagram of an embodiment of the present invention;

[0082] Figure 2 This is a fitting graph of the predicted values ​​and the true values ​​obtained by training a stacked ensemble model using Embodiment 1 of the present invention;

[0083] Figure 3 This is the optimal number of components selected when calculating the importance score of variables in Embodiment 1 of the present invention;

[0084] Figure 4 These are the results of importance scores for different variables;

[0085] Figure 5 This is a comparison chart of the predicted values ​​of adsorption results using a stacked ensemble model and the experimental results. Detailed Implementation

[0086] The technical solution will now be clearly and completely described with reference to the accompanying drawings in the embodiments of the present invention. Obviously, the specific embodiments described are only a part of the embodiments of the present invention, and not all of them. All other embodiments obtained by those skilled in the art based on the embodiments of the present invention without creative effort are within the scope of protection of the present invention.

[0087] A method for predicting the adsorption performance of noble metal ions in solution by MOFs based on a stacked ensemble model, the method comprising the following steps:

[0088] S1. Collect and organize experimental data on the adsorption of noble metal ions in solution by MOFs materials with five transition metal ions as metal centers: iron (Fe), copper (Cu), zinc (Zn), zirconium (Zr), and chromium (Cr). The chemical properties, structural properties, and adsorption experimental conditions of the MOFs materials are used as input variables, and the adsorption amount of noble metal ions is used as the target variable. The data are organized and screened, and the qualitative data are quantified to form the original database.

[0089] S2. Based on the presence of some missing values ​​in the original database, the missing values ​​are supplemented using K-nearest neighbor (KNN) imputation and mean imputation respectively. The AdaBoost algorithm is used to evaluate the prediction accuracy, determine the best imputation method, and form a complete database.

[0090] S3. The database is divided into training set and test set according to the ratio of 80%:20%. A stacked ensemble machine learning model is constructed. The stacked ensemble machine learning model is trained based on the training set. During the process, Bayesian optimization is used to tune the hyperparameters of each base model and meta-model. The tuned model is then used to predict the test set. Finally, the prediction performance of the single model and the stacked ensemble model are obtained respectively.

[0091] Among them, a stacked ensemble machine learning model is constructed. The first layer, as the base learning layer, includes the Random Forest (RF) model, the Extreme Gradient Boosting (XGBoost) model, and the Lightweight Gradient Boosting Machine (LightGBM) model. These three base models are trained with the training set respectively.

[0092] Using Q-fold cross-validation, each base model is used to predict values ​​on the training set, generating a new set of predicted values ​​(meta-features). Simultaneously, the trained base models are used to predict values ​​on the test set, generating meta-features for the test set.

[0093] The second layer, as a meta-learning layer, uses the Gradient Boosting Tree (GBT) model. It takes the multiple predicted values ​​(meta-features) generated by the first layer as a new input matrix and the original adsorption amount as the output to train the GBT model and obtain the final prediction result.

[0094] S4. Partial Least Squares (PLS) is used for fitting, the importance scores of different variables are calculated, the influence of different factors on the adsorption results is analyzed, and descriptors with higher importance scores are selected to reduce the amount of computation required for model prediction and improve computational efficiency.

[0095] S5. The trained stacked ensemble model is used to predict new experimental data to evaluate the predictive effect of the stacked ensemble model on the adsorption performance of MOFs.

[0096] Furthermore, in step S1, the experimental data comes from relevant publications published in the past decade. Literature is searched and screened in Web of Science and CNKI using keywords such as "MOF materials", "adsorption", and "noble metal ions". All data points are extracted from the text, charts, or supporting information of the literature. For data presented in the graphs without specific text descriptions, the Web Plot Digitizer tool is used to extract the data from the graphs to ensure the accuracy of the data source.

[0097] Furthermore, in step S1, the adsorbed noble metal ions include Au(III), Ag(I), and platinum group metal ions such as Pt(IV) and Pd(II);

[0098] The chemical properties of the MOFs material include the topological polar surface area of ​​five transition metal centers (Fe, Cu, Zn, Zr, and Cr) and organic ligands. Number of hydrogen bond donors, number of hydrogen bond acceptors, molecular volume The dipole moment and the number of different types of chemical bonds, structural properties including BET specific surface area (m²) 2 / g), pore size (nm) and pore volume (cm³) 3 / g), the experimental conditions included metal ion concentration (mg / L), adsorbent dosage (mg), reaction time (min), pH value and reaction temperature (K).

[0099] Furthermore, in step S1, organizing and filtering the data refers to removing duplicate and invalid data, and statistically analyzing data missing information.

[0100] Furthermore, in step S1, quantifying the qualitative data involves extracting the SMILES codes of each organic ligand from the PubChem database and calculating its topological polar surface area using the RDkit toolkit. Number of hydrogen bond donors, number of hydrogen bond acceptors, molecular volume By measuring the dipole moment and the number of different types of chemical bonds, a quantitative description of the chemical properties of organic ligands in MOF materials can be achieved.

[0101] Furthermore, in step S2, the AdaBoost algorithm is used to evaluate the prediction accuracy using the mean absolute error (MAE), calculated as follows:

[0102]

[0103] Among them, y i This represents the true value of the noble metal ion adsorption amount for the i-th sample. Let i be the predicted value of the noble metal ion adsorption amount of the i-th sample, where i is the sample index, which takes the value 1, 2, ..., n, and n is the total number of samples to be evaluated (n≥1).

[0104] Furthermore, in step S3, the hyperparameter tuning of each base model using Bayesian optimization is as follows:

[0105] Determine the hyperparameter space X hp and the objective function f(x), where x∈X hp x is the hyperparameter of the machine learning model to be optimized, f(x) is the index function that measures the performance of the hyperparameter, and the value is the 3-fold cross-validation mean square error (CV-MSE) corresponding to the hyperparameter x. For a given objective function value z, the conditional probability distribution of the hyperparameter x is defined as p(x|z).

[0106] In Bayesian algorithms, the focus is on p(x|z) good ) and p(x|z bad Two types of conditional probability distributions, where p(x|z) good The statement indicates that the objective function value (CV-MSE) is lower than a preset threshold τ, corresponding to a "high-performance hyperparameter combination". τ is the mean of the CV-MSE of the three hyperparameter sets during the initial random search phase. bad ) indicates that the objective function value (CV-MSE) is higher than or equal to the threshold τ, corresponding to "poor performance hyperparameter combination";

[0107] A Gaussian process (GP) is used as the probabilistic model to model the hyperparameter-performance mapping relationship. The prior distribution of the Gaussian process is defined as f(x) ~ GP(m(x), k(x, x')), where m(x) = 0 is the mean function and k(x, x') is the radial basis function kernel function, expressed as:

[0108]

[0109] Where D is the dimension of the hyperparameter space, i.e., the total number of hyperparameters to be optimized, x d Let x be the value of the d-th hyperparameter in the hyperparameter combination x. d$l_d'$ is the value of the $d$-th hyperparameter in another hyperparameter combination $x'$. d $l_d$ is the length scale of the $d$-th dimensional hyperparameter, which is used to control the smoothness of the influence of the hyperparameter in this dimension on the performance. d The larger $l_d$ is, the gentler the influence of the change in the hyperparameter value on the performance.

[0110] Based on the $N$ groups of hyperparameter-performance data $D$ set $=\{(x$ hps , $y$ hps ) | $s = 1, 2, \ldots, N\}$ (where $x$ hps is the $s$-th group of hyperparameter combinations to be optimized, whose dimension is consistent with the dimension $D$ of the hyperparameter space $X$ hp , and $y$ hps $= f(x$ hps ) is the CV-MSE value corresponding to this group of hyperparameters. For the performance $f$ hp* of the unknown hyperparameter $x$ hp* posterior inference is carried out, and the posterior distribution is still a Gaussian distribution.

[0111] Select the next hyperparameter evaluation point for hyperparameter iteration. After the iteration ends, select the hyperparameter combination with the smallest CV-MSE value of the objective function from the dataset $D$ set as the optimal hyperparameters of the corresponding machine learning model, and perform type adaptation processing on the hyperparameters to ensure consistency with the requirements of the model parameter types.

[0112] Furthermore, in the step S3, the prediction performance indicators of the single model and the stacked ensemble model are the coefficient of determination ($R$ 2 ), the mean absolute error (MAE), and the root mean square error (RMSE). The calculation methods of $R$ 2 and RMSE are as follows:

[0113]

[0114] where $y$ i is the true value of the noble metal ion adsorption capacity of the $i$-th sample, is the predicted value of the noble metal ion adsorption capacity of the $i$-th sample, is the sample mean, $i$ is the sample index, taking values of $1, 2, \ldots, n$, and $n$ is the total number of evaluation samples ($n \geq 1$);

[0115] Furthermore, in the step S4, PLS is used for fitting to give the variable importance score. According to the scoring results, analyze the influence degree of different variables on the noble metal ion adsorption effect. The core formula of PLS is as follows:

[0116] Table 2 Basic symbol definitions

[0117]

[0118]

[0119] Data centerization:

[0120] Among them 1 n It is an n×1 vector of all 1s. Let X be the column mean of the independent variable matrix. By transposing it, matrix operations are used to simultaneously subtract the mean of the corresponding column from the independent variables of all samples, thus eliminating the influence of differences in dimensions.

[0121] Independent variable weights (m-th latent variable):

[0122] Independent variable score (m-th latent variable): t m =X m-1 w m

[0123] Independent variable loading (m-th):

[0124] Final regression coefficient: b = W(P) T W) -1 q.

[0125] Example 1

[0126] This invention provides a method for predicting the adsorption performance of Au(III) in solution using MOFs based on a stacked integration model. The implementation steps are as follows: Figure 1 As shown:

[0127] (1) Collect and organize experimental data on the adsorption of Au(III) in solution by MOFs materials with five transition metal ions as metal centers: iron (Fe), copper (Cu), zinc (Zn), zirconium (Zr), and chromium (Cr). The chemical properties, structural properties, and adsorption experimental conditions of the MOFs materials are used as input variables, and the adsorption amount of Au(III) is used as the target variable. The data are organized and screened, and the qualitative data are quantified to form the original database.

[0128] The original experimental data on Au(III) adsorption of relevant MOF materials were all obtained from publicly published literature. Literature was searched in Web of Science and CNKI using keywords such as "MOF materials," "adsorption," and "Au(III)" to select relevant publications from the past decade. The chemical properties of the MOF materials included the topological polar surface areas of transition metal centers such as Fe, Cu, Zn, Zr, and Cr, as well as organic ligands. Number of hydrogen bond donors, number of hydrogen bond acceptors, molecular volume The dipole moment and the number of different types of chemical bonds, structural properties including BET specific surface area (m²) 2 / g), pore size (nm) and pore volume (cm³) 3 The experimental conditions included metal ion concentration (mg / L), adsorbent dosage (mg), reaction time (min), pH value, and reaction temperature (K). All data points were extracted from the text, figures, or supporting information in the literature. For data presented in graphs without specific textual descriptions, the Web Plot Digitizer tool was used to extract the data from the graphs to ensure the accuracy of the data sources. After data collection, the data were filtered and organized to form a database.

[0129] Duplicate and invalid data were removed from the database, and data missing information was statistically analyzed. The SMILES codes for each organic ligand were extracted from the PubChem database, and their topological polar surface areas were calculated using the RDkit toolkit. Number of hydrogen bond donors, number of hydrogen bond acceptors, molecular volume By measuring the dipole moment and the number of different types of chemical bonds, a quantitative description of the chemical properties of organic ligands in MOF materials can be achieved.

[0130] (2) Given the presence of some missing values ​​in the original database, K-Nearest Neighbor (KNN) imputation and mean imputation methods were used to fill in the missing values. The AdaBoost algorithm was used to evaluate the prediction accuracy, and the mean absolute error (MAE) was used as the comparison metric, which was obtained through the following formula:

[0131]

[0132] Among them, y i This represents the true value of the noble metal ion adsorption amount for the i-th sample. Let i be the predicted value of the noble metal ion adsorption amount of the i-th sample, where i is the sample index, which takes the value 1, 2, ..., n, and n is the total number of samples to be evaluated (n≥1).

[0133] The mean interpolation method was ultimately determined to be the best interpolation method, thus forming a complete database.

[0134] (3) The database was divided into training and test sets in an 80%:20% ratio. A stacked ensemble machine learning model was constructed using Python tools. The first layer, as the base learning layer, included a random forest (RF) model, an extreme gradient boosting (XGBoost) model, and a lightweight gradient boosting machine (LightGBM) model. Q-fold cross-validation was used to predict the training set with each base model, generating a new set of predicted values ​​(meta-features). At the same time, the trained base models were used to predict the test set, generating meta-features for the test set. The second layer, as the meta-learning layer, used a gradient boosting tree (GBT) model. The multiple predicted values ​​(meta-features) generated by the first layer were used as a new input matrix, and the original adsorption value was used as the output value to train the GBT model, obtaining the final prediction results.

[0135] Stacked ensemble machine learning models are used to train and predict on the training and test sets respectively. During the process, Bayesian optimization is used to tune the hyperparameters of each base model, as detailed below:

[0136] Determine the hyperparameter space X hp and the objective function f(x), where x∈X hp x is the hyperparameter of the machine learning model to be optimized, f(x) is the index function that measures the performance of the hyperparameter, and the value is the 3-fold cross-validation mean square error (CV-MSE) corresponding to the hyperparameter x. For a given objective function value z, the conditional probability distribution of the hyperparameter x is defined as p(x|z).

[0137] In Bayesian algorithms, the focus is on p(x|z) good ) and p(x|z bad Two types of conditional probability distributions, where p(x|z) good The statement indicates that the objective function value (CV-MSE) is lower than a preset threshold τ, corresponding to a "high-performance hyperparameter combination". τ is the mean of the CV-MSE of the three hyperparameter sets during the initial random search phase. bad ) indicates that the objective function value (CV-MSE) is higher than or equal to the threshold τ, corresponding to "poor performance hyperparameter combination";

[0138] A Gaussian process (GP) is used as the probabilistic model to model the hyperparameter-performance mapping relationship. The prior distribution of the Gaussian process is defined as f(x) ~ GP(m(x), k(x, x')), where m(x) = 0 is the mean function and k(x, x') is the radial basis function kernel function, expressed as:

[0139]

[0140] Where D is the hyperparameter dimension, x d Let l be the value of the d-th dimension of the hyperparameter x.d is the length scale of the d-dimensional hyperparameter;

[0141] Based on the N groups of hyperparameter-performance data D that have been searched set ={(x hps , y hps )|s = 1, 2, … N} (where x hps is the combination of hyperparameters to be optimized in the s-th group, and its dimension is consistent with the dimension D of the hyperparameter space X hp , y hps = f(x hps ) is the CV-MSE value corresponding to this group of hyperparameters, and posterior inference is performed on the performance f hp* of the unknown hyperparameter x hp* . The posterior distribution is still a Gaussian distribution;

[0142] Select the next hyperparameter evaluation point and perform hyperparameter iteration. After the iteration ends, select the combination of hyperparameters with the smallest CV-MSE value of the objective function from the dataset D set as the optimal hyperparameters of the corresponding machine learning model, and perform type adaptation processing on the hyperparameters to ensure consistency with the requirements of the model parameter types.

[0143] Finally, the prediction performances of the single model and the stacked ensemble model are obtained respectively. The prediction performance indicators are the coefficient of determination (R 2 ), the mean absolute error (MAE), and the root mean square error (RMSE). The calculation methods of R 2 and RMSE are as follows:

[0144] [[ID=3⑧]]

[0145] where y i is the true value of the noble metal ion adsorption amount of the i-th sample, is the predicted value of the noble metal ion adsorption amount of the i-th sample, is the sample mean, i is the sample index, taking values of 1, 2, …, n, and n is the total number of evaluation samples (n ≥ 1);

[0146] The comparison of the prediction performances of the single model and the stacked ensemble model is shown in Table 3:

[0147] Table 3 Comparison table of the prediction performances of the single model and the stacked ensemble model

[0148] Model type <![CDATA[Test set R 2 > Test set MAE Test set RMSE RF 0.8944 69.67 126.79 XGBoost 0.9188 59.28 111.14 LightGBM 0.8967 70.32 125.38 Stacked integration model 0.9436 54.33 92.66

[0149] As shown in the table above, the prediction performance of the stacked ensemble model is superior to that of a single model. This demonstrates that by using a Gradient Boosting Tree (GBT) model as the meta-learning layer in the second layer, the prediction patterns of each base model for key features are preserved. Furthermore, the GBT model's gradient boosting iterative mechanism achieves error complementarity, significantly improving prediction accuracy. Here, the fitting graph between the predicted and true values ​​obtained from training the stacked ensemble model is shown in the figure. Figure 2 As shown.

[0150] (4) Partial Least Squares (PLS) is used for fitting, the importance scores of different variables are calculated, the influence of different factors on the adsorption results is analyzed, and descriptors with higher importance scores are selected to reduce the amount of computation required for model prediction and improve computational efficiency. The core formula of PLS ​​is as follows:

[0151] Table 4 Definitions of Basic Symbols

[0152]

[0153]

[0154] Data centerization:

[0155] Among them 1 n It is an n×1 vector of all 1s. Let X be the column mean of the independent variable matrix. By transposing it, matrix operations are used to simultaneously subtract the mean of the corresponding column from the independent variables of all samples, thus eliminating the influence of differences in dimensions.

[0156] Independent variable weights (m-th latent variable):

[0157] Independent variable score (m-th latent variable): t m =X m-1 w m

[0158] Independent variable loading (m-th):

[0159] Final regression coefficient: b = W(P) T W) -1 q.

[0160] The higher the importance score, the greater the influence of the variable on the adsorption effect. Figure 3The results show that the validation error is minimized when the number of components is 4. To prevent overfitting, according to the 1SE principle, which is to select the simplest model within the standard error range based on the number of components corresponding to the minimum validation error, the optimal number of components is determined to be 3, which gives the model the best generalization ability. Figure 4 The importance scores of each variable were calculated using the optimal number of components (3). Importance scores measure the importance of features to the model; a VIP score > 1 indicates strong influence, while 0.5 < VIP score < 1 indicates moderate influence. According to the figure, variables with VIP scores > 0.5 include the metal centers Fe and Zr, the number of CO bonds in the organic ligands, the pore size of the MOF material, the concentration of Au(III) in the adsorption experiment, the mass of the adsorbent, adsorption time, and temperature. This indicates that these eight descriptors have a significant impact on the adsorption effect. Using only these eight descriptors as input variables to fit and train the stacked ensemble model, the R-value on the test set was [value missing]. 2 The value reached 0.9334, which is close to the fitting effect compared with training using all 40 descriptors. This indicates that selecting only descriptors with high importance scores for fitting and prediction can reduce descriptor redundancy and effectively save computational resources.

[0161] (5) Figure 5 The comparison figure shows that the trained stacked ensemble model can be used to predict new Au(III) adsorption experimental data, indicating that the stacked ensemble model has good predictive effect and generalization ability for MOF adsorption performance.

[0162] Example 2

[0163] This invention provides a method for predicting the adsorption performance of metal-organic frameworks (MOFs) for Pt(IV) in solution based on a stacked integration model. The implementation steps are as follows: Figure 1 As shown:

[0164] (1) Collect and organize experimental data on the adsorption of Pt(IV) in solution by MOFs materials with five transition metal ions as metal centers: iron (Fe), copper (Cu), zinc (Zn), zirconium (Zr), and chromium (Cr). The chemical properties, structural properties, and adsorption experimental conditions of MOFs materials are used as input variables, and the adsorption amount of Pt(IV) is used as output variable. The data are organized and screened, and the qualitative data are quantified to form the original database.

[0165] The original experimental data on the adsorption of Pt(IV) by relevant MOF materials were all obtained from publicly published literature. Literature was searched in Web of Science and CNKI using keywords such as "MOF materials," "adsorption," and "Pt(IV)" to select relevant publications from the past decade. The chemical properties of the MOF materials include the topological polar surface areas of transition metal centers such as Fe, Cu, Zn, Zr, and Cr, as well as organic ligands. Number of hydrogen bond donors, number of hydrogen bond acceptors, molecular volume The dipole moment and the number of different types of chemical bonds, structural properties including BET specific surface area (m²) 2 / g), pore size (nm) and pore volume (cm³) 3 The experimental conditions included metal ion concentration (mg / L), adsorbent dosage (mg), reaction time (min), pH value, and reaction temperature (K). All data points were extracted from literature text, figures, or supporting information. For data presented in graphs without specific textual descriptions, the Web Plot Digitizer tool was used to extract the data from the graphs to ensure the accuracy of the data sources. After data collection, the data were filtered and organized to form a database.

[0166] Duplicate and invalid data were removed from the database, and data missing information was statistically analyzed. The SMILES codes for each organic ligand were extracted from the PubChem database, and their topological polar surface areas were calculated using the RDkit toolkit. Number of hydrogen bond donors, number of hydrogen bond acceptors, molecular volume By measuring the dipole moment and the number of different types of chemical bonds, a quantitative description of the chemical properties of organic ligands in MOF materials can be achieved.

[0167] (2) Given the presence of some missing values ​​in the original database, K-Nearest Neighbor (KNN) imputation and mean imputation methods were used to fill in the missing values. The AdaBoost algorithm was used to evaluate the prediction accuracy, and the mean absolute error (MAE) was used as the comparison metric, which was obtained through the following formula:

[0168]

[0169] Among them, y i This represents the true value of the noble metal ion adsorption amount for the i-th sample. Let i be the predicted value of the noble metal ion adsorption amount of the i-th sample, where i is the sample index, which takes the value 1, 2, ..., n, and n is the total number of samples to be evaluated (n≥1).

[0170] Ultimately, the KNN interpolation method was determined to be the best interpolation method, and a complete database was formed.

[0171] (3) The database was divided into training and test sets in an 80%:20% ratio. A stacked ensemble machine learning model was constructed using Python tools. The first layer, as the base learning layer, included a random forest (RF) model, an extreme gradient boosting (XGBoost) model, and a lightweight gradient boosting machine (LightGBM) model. Q-fold cross-validation was used to predict the training set with each base model, generating a new set of predicted values ​​(meta-features). At the same time, the trained base models were used to predict the test set, generating meta-features for the test set. The second layer, as the meta-learning layer, used a gradient boosting tree (GBT) model. The multiple predicted values ​​(meta-features) generated by the first layer were used as a new input matrix, and the original adsorption amount was used as the output to train the GBT model, obtaining the final prediction results.

[0172] The stacked ensemble machine learning model was used to train and predict on the training and test sets respectively. During the process, Bayesian optimization was used to tune the hyperparameters of each base model. The prediction performance comparison between the single model and the stacked ensemble model is shown in Table 5.

[0173] Table 5. Comparison of Predictive Performance between Single Model and Stacked Synthesis Model

[0174] Model type <![CDATA[Test set R 2 > Test set MAE Test set RMSE RF 0.8767 57.64 104.74 XGBoost 0.9036 49.28 96.13 LightGBM 0.8925 57.31 106.84 Stacked integration model 0.9451 45.37 89.64

[0175] As shown in the table above, the prediction performance of the stacked ensemble model is better than that of the training performance of the single model. This also proves that because the second layer is used as the meta-learning layer and uses the gradient boosting tree (GBT) model, the scattered information of the base model is transformed into a deep characterization of the adsorption mechanism through the triple action of "bias correction-advantage enhancement-nonlinear adaptation", which ultimately improves the prediction accuracy.

[0176] (4) Partial Least Squares (PLS) is used for fitting, the importance scores of different variables are calculated, the influence of different factors on the adsorption results is analyzed, and descriptors with higher importance scores are selected to reduce the amount of computation required for model prediction and improve computational efficiency. The core formula of PLS ​​is as follows:

[0177] Table 6 Definitions of Basic Symbols

[0178]

[0179]

[0180] Data centerization:

[0181] Among them 1 n It is an n×1 vector of all 1s. Let X be the column mean of the independent variable matrix. By transposing it, matrix operations are used to simultaneously subtract the mean of the corresponding column from the independent variables of all samples, thus eliminating the influence of differences in dimensions.

[0182] Independent variable weights (m-th latent variable):

[0183] Independent variable score (m-th latent variable): t m =X m-1 w m

[0184] Independent variable loading (m-th):

[0185] Final regression coefficient: b = W(P) T W) -1 q.

[0186] The higher the importance score, the greater the influence of the variable on the adsorption effect. Selecting descriptors with high importance scores for fitting and prediction can reduce descriptor redundancy and effectively save computational resources.

[0187] The trained stacked ensemble model was used to predict new Pt(IV) adsorption experimental data to verify the predictive effect and generalization ability of the stacked ensemble model on the adsorption performance of MOFs.

[0188] It should be noted that, in this document, the terms "comprising," "including," or any other variations thereof are intended to cover non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements includes not only those elements but also other elements not expressly listed, or elements inherent to such a process, method, article, or apparatus. Unless otherwise specified, an element defined by the phrase "comprising one..." does not exclude the presence of other identical elements in the process, method, article, or apparatus that includes that element.

[0189] The sequence numbers of the above embodiments of the present invention are for descriptive purposes only and do not represent the superiority or inferiority of the embodiments.

[0190] Through the above description of the embodiments, those skilled in the art can clearly understand that the above implementation methods can be implemented by means of software plus necessary general-purpose hardware platforms. Of course, they can also be implemented by hardware, but in many cases the former is a better implementation method. Based on this understanding, the technical solution of the present invention, in essence, or the part that contributes to the prior art, can be embodied in the form of a software product. This computer software product is stored in a storage medium (such as ROM / RAM, magnetic disk, optical disk) and includes several instructions to cause a terminal (which may be a mobile phone, computer, server, air conditioner, or network device, etc.) to execute the methods described in the various embodiments of the present invention.

[0191] The embodiments of the present invention have been described above with reference to the accompanying drawings. However, the present invention is not limited to the specific embodiments described above. The specific embodiments described above are merely illustrative and not restrictive. Those skilled in the art can make many other forms under the guidance of the present invention without departing from the spirit and scope of the claims. All of these forms are within the protection scope of the present invention.

Claims

1. A method for predicting the adsorption performance of metal-organic frameworks (MOFs) materials for noble metal ions in solution based on stacked ensemble models, characterized in that, Comprise the following steps: S1, collecting and sorting the experimental data of the MOFs material with transition metal ions as metal center adsorbing noble metal ions in solution, including the chemical properties, structural properties and adsorption experimental conditions of the MOFs material as input variables, the adsorption amount of noble metal ions as target variable, sorting and screening the data and carrying out quantitative treatment, forming a database; S2, the database is divided into training set and test set, a stacked ensemble machine learning model is constructed, the stacked ensemble machine learning model is trained based on the training set, the model is simultaneously optimized in hyperparameters by using Bayesian optimization, and the optimized model is used to predict the test set, and finally the prediction performance of the stacked ensemble machine learning model is obtained; S3, using partial least squares method for fitting, calculating the importance score of the chemical properties, structural properties and adsorption experimental conditions of the MOFs material as different variables, analyzing the influence degree on the adsorption amount of the noble metal ions, and screening and removing the variables with lower importance score; S4, using the trained stacked ensemble model to predict new experimental data, and evaluating the prediction effect of the stacked ensemble model on the MOFs adsorption performance.

2. The prediction method of claim 1, wherein, In the step S1: The noble metal ions include Au(III), Ag(I) and Pt(IV), Pd(II), Rh(III), Ir(IV), Os(IV) and Ru(IV) six platinum group metal ions; Chemical properties of the MOFs material include topological polar surface area of transition metal centers of Fe, Cu, Zn, Zr, Cr, etc. and organic ligands Number of hydrogen bond donors, number of hydrogen bond acceptors, molecular volume Dipole moment and number of different types of chemical bonds; The different types of chemical bonds specifically include: (ring)C-C(ring), (ring)C-N, (ring)C-R, (ring)C-S(ring), (ring)C=C(ring), (ring)N-C(ring), C-C, C-N, C-O, C-R, C=C(aromatic), C=C(ring), C=N(ring), C=O, C≡N, N=N(ring), O-R; Wherein, the terms are defined as follows: (1) (ring): refers to the cyclic structure in the MOF organic ligand, including aromatic ring and aliphatic ring, only limiting that the two bonding atoms of the chemical bond are located on the ring or bonded to the ring; (2) (aromatic): refers to aromatic unsaturated bond, only limiting that the C=C bond is located in the aromatic ring; (3) R: refers to alkyl substituent group; Structural properties of the MOFs material include BET specific surface area (m 2 / g), pore size (nm), and pore volume (cm 3 / g); The adsorption experimental condition factors of the MOFs material include metal ion concentration (mg / L), adsorbent dosage (mg), reaction time (min), pH value and reaction temperature (K); The transition metal includes five transition metal ions of iron Fe, copper Cu, zinc Zn, zirconium Zr and chromium Cr.

3. The prediction method of claim 1, wherein, In the step S2, the stacked ensemble machine learning model comprises: The first layer is a base learning layer, including three base models of random forest model, extreme gradient boosting model and light gradient boosting machine model: The generation of the training set meta-feature of each base model adopts Q-fold cross-validation, specifically including: splitting the training set into Q fold subsets, wherein Q is 5-10, to balance the calculation efficiency and the reliability of the meta-feature; for each base model, using the remaining Q-1 fold subsets except the i-th fold subset to train the base model, i = 1, 2,..., Q, and then using the trained base model to predict the i-th fold subset to obtain the prediction value corresponding to the fold subset; splicing the prediction values of all fold subsets to form a training set meta-feature consistent with the number of training set samples, i.e. the first prediction value meta-feature of each base model; retraining each base model using the complete training set; then, for each base model trained using the complete training set, predicting the test set to obtain the test set meta-feature corresponding to each base model, i.e. the second prediction value meta-feature; The second layer is a meta-learning layer, including a gradient boosting tree model as a meta-model: Splice the first prediction value meta-feature of each base model obtained by the first layer into a meta-training feature matrix, take the noble metal ion adsorption amount as the label, and train the meta-model; splice the second prediction value meta-feature of each base model obtained by the first layer into a meta-test feature matrix, input the trained meta-model, and output the final prediction result of the noble metal ion adsorption amount corresponding to the test set.

4. The prediction method of claim 1, wherein, In the step S1, the quantitative processing refers to extracting the SMILES code of the MOFs material organic ligand through the PubChem database, and calculating the topological polar surface area thereof respectively by using the RDkit tool package The number of hydrogen bond donors, the number of hydrogen bond acceptors, the molecular volume The dipole moment and the number of different types of chemical bonds, thereby realizing the quantitative description of the chemical properties of the MOFs material organic ligand.

5. The prediction method of claim 1, wherein, In step S1, the data is arranged and screened to remove duplicate and invalid data, and the data missing condition is counted; If there is a data missing condition, the S1 further includes: According to the existence of partial missing values in the original database, the missing values are supplemented by using K-nearest neighbor interpolation method and mean interpolation method respectively, the prediction accuracy is evaluated by using an adaptive enhancement algorithm, the best interpolation method is determined, and a complete database is formed; The adaptive enhancement algorithm is used to evaluate the prediction accuracy, and the calculation method is as follows: wherein y i is a real value of the noble metal ion adsorption amount of the i th sample, is a predicted value of the noble metal ion adsorption amount of the i th sample, i is a sample index, takes a value of 1, 2, …, n, n is a total number of evaluation samples and n≥1.

6. The prediction method of claim 1, wherein, In step S3: The importance score > 1 is the core influence feature; 0.5 < importance score ≤ 1 is an important influence feature; The importance score ≤ 0.5 is a weak influence feature, which is considered to have a lower importance score.

7. The prediction method of claim 1, wherein, In step S2, the hyperparameters are optimized by using Bayesian optimization, specifically as follows: determining a hyperparameter space X hp and an objective function f(x), where x∈X hp , x is the hyperparameter of the stacked ensemble machine learning model to be optimized, f(x) is an index function measuring the performance of the hyperparameter, taking the value of the 3-fold cross-validation mean square error CV-MSE corresponding to the hyperparameter x, for a given objective function value z, the conditional probability distribution of the hyperparameter x is defined as p(x|z); In the Bayesian algorithm, two conditional probability distributions, p(x|z good ) and p(x|z bad ), are focused on, where p(x|z good ) represents the "good-performing hyperparameter combination" whose objective function value CV-MSE is lower than a preset threshold τ, and τ is the mean of the CV-MSE of the 3 groups of hyperparameters in the initial random search stage, and p(x|z bad ) represents the "poor-performing hyperparameter combination" whose objective function value CV-MSE is higher than or equal to the threshold τ. Gaussian process is used as a probability model to model the mapping relationship between hyperparameters and performance, and the Gaussian process prior distribution is defined as f(x) ~ GP(m(x), k(x, x')), wherein m(x) = 0 is the mean function, and k(x, x') is the radial basis kernel function, which is used to measure the similarity of two hyperparameter combinations x and x', and the expression is: where D is the dimension of the hyperparameter space, i.e., the total number of hyperparameters to be optimized, x d is the value of the d-th hyperparameter of the hyperparameter combination x, x d ′ is the value of the d-th hyperparameter of another hyperparameter combination x′, l d is the length scale of the d-th hyperparameter, which controls the smoothness of the performance impact of the d-th hyperparameter, l d The larger the length scale is, the more smooth the performance impact of the hyperparameter value change is. Based on the searched N groups of hyperparameter-performance data D set = {(x hps ,y hps ) | s = 1, 2, … N}, where x hps is the s-th group of hyperparameter combinations to be optimized, whose dimension is consistent with the dimension D of the hyperparameter space X hp , y hps = f(x hps ) is the CV-MSE value corresponding to the group of hyperparameters, and the posterior distribution of the performance f hp* of the unknown hyperparameters x hp* is still Gaussian distribution; Select the next hyperparameter evaluation point, perform hyperparameter iteration, and after iteration, select the hyperparameter combination with the minimum CV-MSE value from the dataset D set as the optimal hyperparameters of the stacked ensemble machine learning model, and perform type adaptation processing on the hyperparameters to ensure consistency with the model parameter type requirements.

8. The prediction method of claim 1, wherein, In step S2, the predictive performance metric of the stacked integration model is the coefficient of determination (R²). 2 Mean absolute error (MAE) and root mean square error (RMSE), R 2 The RMSE calculation method is as follows: wherein y i is a true value of the noble metal ion adsorption amount of the i-th sample, is a predicted value of the noble metal ion adsorption amount of the i-th sample, is a sample mean value, i is a sample index, and takes a value of 1, 2, …, n, and n is a total number of evaluation samples and n≥1.

9. A system for predicting the adsorption performance of MOFs for noble metal ions in solution based on stacked ensemble models, the system comprising: A processor and a memory for storing executable instructions; wherein the processor is configured to execute the executable instructions to perform the MOFs prediction method for the adsorption performance of noble metal ions in solution based on the stacked ensemble model according to any one of claims 1-8.

10. A computer readable storage medium, wherein, A computer program product, comprising a computer readable storage medium having computer program code stored therein, the computer program code configured such that, on execution by a processor, the processor is caused to perform the method of any one of claims 1 to 8.

Citation Information

Patent Citations

  • AI-accelerated characterization of materials

    CN117730331A

  • Method for predicting end-point quality of metallurgical process based on stacking integration strategy

    CN118197463A

  • Ruthenium, tin and indium doped lithium-rich manganese-based electrocatalyst screening method based on Bayesian optimization, electronic equipment and storage medium

    CN120636605A

  • AU2020101854A4