Constructing an interpretable QSPR method and system for predicting PCE based on XGBoost regression model based on SHAP value
Through the XGBoost regression model based on SHAP value, the problem of difficulty in predicting the efficiency of N-P organic sensitizers in the existing technology is solved, and fast, low-cost and efficient prediction and discovery of high-performance dyes are achieved, reducing R&D costs and time, and providing Provides a deep understanding of molecular structure and electrolyte conditions.
Patent Information
- Application Number
- CN202111001675.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-08-30
- Publication Date
- 2024-10-29
- Estimated Expiration
- 2041-08-30
AI Technical Summary
Existing technology is difficult to quickly and effectively predict and discover efficient N-P organic sensitizers, resulting in limited improvements in the photoelectric conversion efficiency of dye-sensitized solar cells, and the experimental process is cumbersome and expensive.
An interpretable XGBoost regression model is built based on SHAP values, descriptors are generated through Dragon calculation, SHAP is used to nest XGBoost screening features, a quantitative structural relationship model is established, and the power conversion efficiency of N-P organic sensitizers is predicted to achieve high-throughput screening. , reduce costs and time.
Achieve fast, low-cost, pollution-free prediction of the power conversion efficiency of N-P organic sensitizers, shorten R&D time, reduce R&D costs, provide in-depth understanding of molecular structure and electrolyte conditions, and help discover new high-performance Candidate dye molecules.
Smart Images

Figure CN113808680B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to a method and system for predicting the power conversion efficiency (PCE) of nitrogen perylene (NP) organic sensitizers in dye-sensitized solar cells (DSSCs), and in particular to a quantitative structural relationship (QSPR) method for predicting PCE by constructing an interpretable XGBoost regression model based on SHAP values to discover efficient nitrogen perylene organic dyes. Background Art
[0002] With the rapid development of science and society, alleviating energy and pollution problems is urgent. Since Michael published his breakthrough results, dye-sensitized solar cells have attracted widespread attention due to their low cost, good flexibility, good stability, and high indoor efficiency. As the main component of DSSCs, sensitizers play a leading role in light capture, charge transfer, and charge recombination, which greatly affects the key parameter of DSSCs—PCE. Among them, NP-type pure organic dyes have excellent optical and physical properties, such as high molar extinction coefficient, high fluorescence quantum efficiency, and tunable band gap, and exhibit a fairly high photoelectric conversion efficiency as photosensitizers in DSSCs. The discovery of efficient new NP-type sensitizers will effectively improve the PCE of DSSCs. However, the chemical space of possible organic dyes is very large, and the experimental trial and error process is cumbersome and expensive. In order to accelerate the development of such sensitizers, it is necessary to use computational chemistry methods to design efficient potential NP-type sensitizers before experiments.
[0003] With the continuous development of computer software and artificial intelligence, the application of machine learning has become more and more extensive, and a series of high-performance machine learning models have been developed, such as support vector machines, random forests, and deep learning. XGBoost is the abbreviation of eXtreme Gradient Boosting, which is a gradient boosting decision tree algorithm based on iterative accumulation. XGBoost is an improvement and specific implementation of the gradient boosted regression tree (GBRT), which was first proposed by Chen Tianqi of the University of Washington in 2014. However, the internal principles of these machine learning models are difficult to understand. The Shapley Additive Model (SHAP) method regards all features as "contributors". For each predicted sample, the model generates a predicted value, and the SHAP value is the value assigned to each feature in the sample. The biggest advantage of the SHAP value is that it reflects the contribution of each feature to the target feature, and at the same time shows the positive and negative nature of its contribution. Therefore, using SHAP to nest XGBoost to select features and explain the model is very meaningful for the development of efficient NP sensitizers.
[0004] The quantitative structure-activity relationship (QSPR) model established by SHAP nested XGBoost technology is used to analyze the relationship between molecular structure and certain properties of the molecule. The candidate descriptors used in the model can quantitatively or qualitatively describe parameters such as molecular structure, molecular composition (such as the number of hydrogen bond donors, the number of chemical bonds), physicochemical properties (such as ester-water distribution coefficient) and molecular shape. In recent years, the QSPR model has been used to predict the PCE values of different types of solar cells. There is no doubt that the model of the above method provides some guidance for the design of solar cell materials. However, how to apply the XBGoost algorithm to predict the PCE of NP-type organic sensitizers still needs further exploration and research. Summary of the invention
[0005] In order to solve the problems of the prior art, the purpose of the present invention is to overcome the shortcomings of the prior art, and provide a QSPR method and system for predicting PCE by constructing an interpretable XGBoost regression model based on SHAP value, which can accelerate the discovery of NP-type organic sensitizers with high PCE, obtain descriptors of NP-type structures by Dragon calculation, use SHAP to nest XGBoost screening features, and use XGBoost algorithm modeling to predict the PCE of NP-type organic sensitizers, and high-throughput screening of candidate high-PCE organic dyes. The method is low-cost, simple and efficient, with complete and accurate data, no experiments, no complex calculation process, and no pollution.
[0006] In order to achieve the above invention purpose, the present invention adopts the following technical solution:
[0007] A QSPR method for constructing an interpretable XGBoost regression model to predict PCE based on SHAP values includes the following steps:
[0008] 1) Using a computer system to search for literature, search for the structure of NP-type dye molecules, electrolyte conditions and their corresponding PCE values from the literature;
[0009] 2) The collected dye molecules are divided into three fragments. The first two fragments are Ds (Doner Space) and Dc (Doner Core). The first two fragments are donors with electron-pushing groups, and the last fragment is A (Accepter), which is an acceptor with electron-withdrawing groups. The last fragment is prepared for the subsequent interpretation of the fragment effects and high-throughput screening;
[0010] 3) Use ChemDraw to draw the fragment structure of the dye molecule, optimize the molecule through MM2-Minimize energy in chem3D, and then use Dragon software to generate descriptors;
[0011] 4) Taking PCE value as the target variable and the descriptor generated by Dragon as the independent variable, data preprocessing is performed, and the preprocessed data set samples are used as data set samples for subsequent modeling;
[0012] 5) The initially screened data set was randomly divided into training set and test set, with the test set accounting for 15% of the entire data set, and the electrolyte conditions were distributed equally in the test set and the training set;
[0013] 6) Using SHAP nested XGBoost method to screen variables according to the “contribution value” of the target variable, the optimal variable subset selection for XGBoost modeling was obtained by comparative leave-one-out cross-validation;
[0014] 7) Establish a rapid prediction model for PCE of NP organic sensitizers using XGBoost regression;
[0015] 8) Predict the power conversion efficiency PCE of the molecule to be detected based on the established rapid prediction model of PCE of NP-type organic sensitizers;
[0016] 9) Further obtain the relationship between the variable and the target variable based on the positive and negative impact of the SHAP value;
[0017] 10) Consult the literature, use the explanation of the features in the references, and combine the variables further obtained according to the positive and negative effects of the SHAP values in step 9) to build a QSPR model;
[0018] 11) Consult the literature for molecules with excellent performance, automatically generate a large number of virtual samples through programming, put these virtual samples into the constructed QSPR model for high-throughput screening, and quickly predict the power conversion efficiency PCE value of NP-type organic sensitizers.
[0019] Preferably, in step 1), after searching the literature, the obtained data samples are preprocessed, including sorting out the molecular structure, electrolyte conditions and PCE of the samples, and determining the number of sample data.
[0020] Preferably, in step 6) and step 7), for a certain feature variable, TreeSHAP is used to calculate the SHAP value corresponding to the variable in all samples, and the average value is used as the importance value of the feature variable to obtain a global explanation; the SHAP nested XGBoost method is used to screen variables, starting from an initial naive model, and based on the errors of the observed values in the sample set, a new model is established for fitting, and added to the existing model in an additive form, and this process is iterated repeatedly to form an integrated model.
[0021] Preferably, in said step 11), the method for high-throughput screening comprises the following steps:
[0022] The design conditions are:
[0023] Select molecules with experimental or theoretical studies of PCE>12.5% in the literature, divide the fragments, optimize the molecules and generate descriptors in the same way as above, and use Python programming to generate a large number of virtual samples;
[0024] Then the generated large number of virtual samples are put into the constructed prediction model for forecasting.
[0025] A system for implementing a quantitative structural relationship method to predict the power conversion efficiency of an organic sensitizer, executing the QSPR method of the present invention for predicting PCE by constructing an interpretable XGBoost regression model based on SHAP values, comprising:
[0026] Input module: Search the structure, electrolyte conditions and corresponding PCE value of NP-type dye molecules from publicly published literature and use them as input data;
[0027] Data analysis module: Using the data obtained from the input module, the QSPR method of predicting PCE by constructing an interpretable XGBoost regression model based on SHAP values is executed to predict the power conversion efficiency of organic sensitizers;
[0028] Output module: outputs the power conversion efficiency of the organic sensitizer.
[0029] Compared with the prior art, the present invention has the following obvious outstanding substantive features and significant advantages:
[0030] 1. The process of predicting the PCE of NP-type organic sensitizers in the present invention is simple, fast and efficient. After optimizing with Chem3D-MM2-Minimize energy, the NP-type dye molecular fragments are combined with Dragon software to generate descriptors, and the atomic properties and structural parameters of all samples can be obtained in just a few seconds. After SHAP feature screening and XGBoost regression modeling, the PCE of NP-type organic sensitizers can be predicted in advance, which can also provide a reference for researchers and developers of dye-sensitized solar cells, shortening the R&D time and reducing the R&D cost.
[0031] 2. The present invention generates a prediction value for each prediction sample. The SHAP value is the value assigned to each feature in the sample. The positive and negative relationship between the SHAP value and the target feature value is combined with domain knowledge to explain the features and construct a QSPR model to gain a deeper understanding of the relationship between molecular structure, electrolyte conditions and photoelectric conversion efficiency, helping to solve the shortcomings of most methods that the features cannot be explained, thereby helping modelers to deeply understand and apply the model;
[0032] 3. The high-throughput screening results of the present invention do not involve experiments and chemicals for the random combination process of fragments, do not cause environmental pollution, comply with the concept of green environmental protection, and obtain high-performance new candidate dye molecules quickly, efficiently and economically. BRIEF DESCRIPTION OF THE DRAWINGS
[0033] Figure 1 Flow chart for implementing the present invention.
[0034] Figure 2 The figure shows an example of the fragmentation of some dye molecules (C261 and C275) of the present invention.
[0035] Figure 3 This is a graph of the SHAP-nested XGBoost feature screening results of the present invention.
[0036] Figure 4 This is a graph of the leave-one-out cross-validation results of the XGBoost regression model for predicting the PCE of NP-based organic sensitizers in the present invention.
[0037] Figure 5 This is an independent test set result diagram of the XGBoost regression model for predicting the PCE of NP-type organic sensitizers in the present invention.
[0038] Figure 6 This is a diagram showing the influence of the features selected by SHAP nested with XGBoost on the output value. DETAILED DESCRIPTION
[0039] The above scheme is further described below in conjunction with specific implementation examples. The preferred embodiments of the present invention are described in detail as follows:
[0040] Embodiment 1:
[0041] In this embodiment, see Figure 1 , a QSPR method for constructing an interpretable XGBoost regression model to predict PCE based on SHAP values, including the following steps:
[0042] 1) Using a computer system to search for literature, search for the structure of NP-type dye molecules, electrolyte conditions and their corresponding PCE values from the literature;
[0043] 2) The collected dye molecules are divided into three fragments. The first two fragments are Ds (Doner Space) and Dc (Doner Core). The first two fragments are donors with electron-pushing groups, and the last fragment is A (Accepter), which is an acceptor with electron-withdrawing groups. The last fragment is prepared for the subsequent interpretation of the fragment effects and high-throughput screening;
[0044] 3) Use ChemDraw to draw the fragment structure of the dye molecule, optimize the molecule in Chem3D using MM2-Minimize energy, and then generate descriptors using Dragon software; Optimizing the molecule in Chem3D using MM2-Minimize energy and generating descriptors using Dragon is a fast and accurate way to describe the molecular structure;
[0045] 4) Taking PCE value as the target variable and the descriptor generated by Dragon as the independent variable, data preprocessing is performed, and the preprocessed data set samples are used as data set samples for subsequent modeling;
[0046] 5) The initially screened data set was randomly divided into training set and test set, with the test set accounting for 15% of the entire data set, and the electrolyte conditions were distributed equally in the test set and the training set;
[0047] 6) Using SHAP nested XGBoost method to screen variables according to the “contribution value” of the target variable, the optimal variable subset selection for XGBoost modeling was obtained by comparative leave-one-out cross-validation;
[0048] 7) Establish a rapid prediction model for PCE of NP organic sensitizers using XGBoost regression;
[0049] 8) Predict the power conversion efficiency PCE of the molecule to be detected based on the established rapid prediction model of PCE of NP-type organic sensitizers;
[0050] 9) Further obtain the relationship between the variable and the target variable based on the positive and negative impact of the SHAP value;
[0051] 10) Consult the literature, use the explanation of the features in the references, and combine the variables further obtained according to the positive and negative effects of the SHAP values in step 9) to build a QSPR model;
[0052] 11) Consult the literature for molecules with excellent performance, automatically generate a large number of virtual samples through programming, put these virtual samples into the constructed QSPR model for high-throughput screening, and quickly predict the power conversion efficiency PCE value of NP-type organic sensitizers.
[0053] This embodiment constructs an interpretable XGBoost regression model based on SHAP value to predict the QSPR method and system of PCE, which can accelerate the discovery of high PCE NP-type organic sensitizers, obtain descriptors of NP-type structures through Dragon calculation, use SHAP to nest XGBoost screening features, and use XGBoost algorithm modeling to predict the PCE of NP-type organic sensitizers, and high-throughput screening of candidate high PCE organic dyes. The method is low-cost, simple and efficient, with complete and accurate data, no experiments, no complex calculation process, and no pollution.
[0054] Embodiment 2
[0055] This embodiment is basically the same as the first embodiment, except that:
[0056] In this embodiment, in step 1), after searching the literature, the obtained data samples are preprocessed, including sorting out the molecular structure, electrolyte conditions and PCE of the samples, and determining the number of sample data.
[0057] In this embodiment, in step 6) and step 7), for a certain feature variable, TreeSHAP is used to calculate the SHAP value corresponding to the variable in all samples, and the average value is used as the importance value of the feature variable to obtain a global explanation; the SHAP nested XGBoost method is used to screen variables, starting from an initial naive model, and based on the errors of the observed values in the sample set, a new model is established for fitting, and added to the existing model in an additive form, and this process is iterated repeatedly to form an integrated model.
[0058] In this embodiment, the SHAP method is combined with XGBoost to screen features, and the optimal feature subset for modeling is selected, from the original 984 features to 6 features; the XGBoost algorithm is used to establish a model for rapid prediction of PCE of NP-type organic sensitizers; based on the 6 features obtained by screening, the literature is consulted and the positive and negative effects of SHAP on the "contribution" of the target feature are explained in conjunction with the molecular structure, and a QSPR model is constructed;
[0059] In this embodiment, in step 11), the high-throughput screening method includes the following steps:
[0060] The design conditions are:
[0061] Select molecules with experimental or theoretical studies of PCE>12.5% in the literature, divide the fragments, optimize the molecules and generate descriptors in the same way as above, and use Python programming to generate a large number of virtual samples;
[0062] Then the generated large number of virtual samples are put into the constructed prediction model for forecasting.
[0063] The method of this embodiment calculates the descriptor of the structure of NP-type sensitizers, uses SHAP combined with XGBoost method to screen features and build models, and predicts the PCE value of NP-type sensitizers. These methods can get results in a few minutes, which is convenient and fast, without experiments and complicated calculations. At the same time, high-throughput screening avoids the high-performance (PCE>12.5%) molecular fragment combination that is difficult to obtain by blind trial and error based on experience. This embodiment builds an interpretable XGBoost regression model based on SHAP value to accelerate the discovery of a QSPR method for high-PCE NP-type organic sensitizers, establishes a data set sample; divides molecular fragments; Chem3D optimizes molecules; generates descriptors; randomly divides training sets and test sets; uses SHAP to nest XGBoost to screen variables and select the optimal variable subset for XGBoost modeling; uses XGBoost regression to establish a rapid prediction model for NP-type organic sensitizers; according to the established model, the PCE of the test set dye molecules is quickly predicted. According to the impact on the target features fed back by SHAP and the descriptors explained in the reference literature, the QSPR model is constructed according to the structure of the corresponding molecular fragment; a large number of virtual samples are generated by python, and the established XGBoost model is used for prediction. In this embodiment, based on reliable literature true values and modeling methods, the XGBoost prediction model of NP-type organic sensitizers constructed has the advantages of being convenient and fast, and having no chemical pollution.
[0064] Embodiment 3
[0065] This embodiment is basically the same as the above embodiment, with the following features:
[0066] In this embodiment, the step 2) divides the collected dye molecules into three fragments according to the empirical rules of the electron-withdrawing and electron-donating groups, where the Ds and Dc fragments are electron-donating donors and the A fragment is an electron-withdrawing acceptor, in preparation for subsequent fragment interpretation and high-throughput screening; the connecting parts of the fragments are replaced by free radicals, and the specific division method is shown in Figure 2 , subsequent instances of the fragment are replaced by letters.
[0067] In this embodiment, in step 3), the 2D structure of the collected NP dye molecules is drawn using ChemDraw, and then the optimal structure of the molecule is simply calculated using Chem3D-Calculations-MM2-Minimize Energy, and finally the corresponding descriptor is generated using Dragon software.
[0068] In this embodiment, the SHAP-embedded XGBoost in step 6) reduces the dimension of the features, first screens the features from 984 to 10, and then reorders the 10 features. Figure 3, the XGBoost algorithm is used for modeling, and the optimal feature subset is screened by comparing the evaluation criteria of the leave-one-out cross-validation method. The evaluation criteria of the leave-one-out cross-validation method include the correlation coefficient R, the determination coefficient R 2 and root mean square error RMSE, Figure 3 Ranked in the top 6.
[0069] In this embodiment, in step 10), the six features obtained by screening are interpreted by consulting literature and combining the positive and negative effects of SHAP on the "contribution" of the target feature with the molecular structure to construct a QSPR model.
[0070] The method of this embodiment preprocesses the data, calculates and sorts the data, and is a low-cost, simple and efficient method with complete and accurate data, no need for experiments, and no need for complex calculation processes.
[0071] Embodiment 4
[0072] This embodiment is basically the same as the above embodiment, with the following features:
[0073] In this embodiment,
[0074] A QSPR method for predicting PCE by constructing an interpretable XGBoost regression model based on SHAP values includes the following steps:
[0075] 1) Through literature research, search for NP dye molecules and PCE values from the literature as data set samples for subsequent modeling. The structural fragment combinations and PCE values of some NP dye molecules are shown in Table 1; Table 1 does not mark cobalt-based electrolytes, and the fragment division is shown in Figure 2 ;
[0076] Table 1. Partial data sample set of NP dye molecular structure and PCE value
[0077] Dye Name Ds structure Dc structure A structure PCE(%) C261 Ds1 Dc1 A1 8.8 C261 (iodine) Ds1 Dc1 A1 6.3 C275 Ds15 Dc14 A8 12.5 ND04 Ds9 Dc9 A4 7.0 NPS-1 Ds2 Dc13 A1 4.9 C281 Ds5 Dc7 A9 13.0 CPD-2 Ds6 Dc3 A12 5.2 C276 Ds5 Dc15 A7 9.4
[0078] 2) Using Dragon software to generate descriptors for the molecular fragment structures of NP dyes optimized by Chemdraw and Chem3D, 5271 descriptors were generated for each fragment, some of which are shown in Table 2;
[0079] Table 2. Partial descriptors of some NP dye molecules
[0080] Dye Name Target value (PCE) EL Ds-MW Dc-VE1sign_D Dc-IC4 A-nR06 C261 8.8 -5.1 368.59 0.6001222 4.83015 0 C261(iodine) 6.3 -4.6 368.59 0.6001222 4.83015 0 C275 12.5 -5.1 241.49 0.0024933 5.61426 2 ND04 7.0 -5.1 101.19 0.4248152 4.87508 2 NPS-1 4.9 -5.1 244.33 0.4006886 5.57812 0 C281 13.0 -5.1 317.59 0 5.26846 2 CPD-2 5.2 -5.1 133.23 0.2285400 4.14716 1 C276 9.4 -5.1 317.59 0.6634244 5.39111 2
[0081] 3) Descriptors with a Pearson correlation coefficient greater than 0.95 were removed to prevent overfitting, and 974 descriptors were obtained by preliminary screening of the data set; the training set and the test set were randomly divided into a ratio of 5:1, and the sample sizes of the training set and the test set were 45 and 9, respectively;
[0082] 4) Using SHAP nested XGBoost method to filter descriptors, first select the top 10 descriptors with the strongest influence, see Figure 3 , respectively Dc-SpMin2_Bh(s), EL, Dc-MW, A-P_VSA_s_6, A-MATS8e, Ds-GATS1s, Dc-Psi_i_A, Ds-GATS5m, A-JGI10, A-CIC4; the SHAP nested XGBoost method was used again to re-rank and model the training set NP dye molecule data. According to the evaluation criteria of the leave-one-out cross-validation, the evaluation criteria included R and RMSE, and the optimal subset was obtained. The data of the 6 optimal descriptors of some samples are shown in Table 3:
[0083] Table 3. Data table of the six optimal descriptors for some dyes
[0084]
[0085] 5) The XGBoost algorithm was used to perform regression modeling on the 45 NP-type dye molecule data samples in the training set, and an XGBoost rapid prediction model for NP-type organic sensitizers was established.
[0086] In this example, the leave-one-out cross-validation results of the XGBoost regression model for rapid prediction of NP-based organic sensitizers established based on 45 samples are as follows: Figure 4 In the leave-one-out cross-validation results of the modeling with 6 features, the actual value of the literature for NP-type dye molecules is closest to the model prediction value, with an R of 0.897 and a RMSE of 1.103.
[0087] In this example, the independent test set prediction results of the prediction XGBoost regression model for NP-based organic sensitizers established based on the SHAP screening feature are as follows: Figure 5 As shown in the figure, the prediction results of 9 samples in the test set are good, with the R between the actual value and the predicted value in the literature being 0.880 and the RMSE being 1.098.
[0088] The method in this embodiment uses sample data from literature to establish a SHAP screening feature XGBoost rapid prediction model for NP-type organic sensitizers. It has the advantages of low cost and green environmental protection, and evaluates the stability and reliability of the data modeling method with good results. It can also guide the actual operation of the experiment and avoid blindness.
[0089] Embodiment 5
[0090] This embodiment is basically the same as the above embodiment, with the following features:
[0091] In this embodiment, see Figure 6 In this embodiment, SHAP is used to nest the XGBoost method to calculate the positive and negative effects of each eigenvalue on the target feature, and the relationship between the feature and the target feature is further explained. Red indicates that the eigenvalue has a strong influence, and blue indicates that the feature has a weak influence. Red points appear more in positive influences, and blue points appear more in negative influences, indicating that this feature is positively correlated with the target feature; red points appear more in negative influences, and blue points appear more in positive influences, indicating that this feature is negatively correlated with the target feature. It can be seen that the Dc-SpMin2_Bh(s) feature is positively correlated with the target feature, EL is negatively correlated, Dc-MW is positively correlated, A-P_VSA_s_6 is positively correlated, A-MATS8e is negatively correlated, and Ds-GATS1s is positively correlated.
[0092] In this embodiment, the literature on 6 features is consulted, the relationship between their structure and electrolyte conditions and PCE is explained, and a QSPR model is established. The Dc-SpMin2_Bh(s) feature represents the minimum state absolute eigenvalue of the intrinsic state correction matrix of the Dc fragment -n2 / weighted by the relative intrinsic state; EL is the electrolyte condition, indicating that the cobalt-based electrolyte has a better photoelectric conversion efficiency for DSSC than the iodine-based electrolyte; Dc-MW is the molecular mass of the Dc fragment, indicating that the larger the molecular mass of the Dc fragment, the higher the PCE; A-P_VSA_s_6 is the molecular van der Waals surface area of the A fragment, indicating that the larger the molecular van der Waals surface area of the A fragment, the more advantageous it is for PCE; A-MATS8e is the Moran autocorrelation of the atomic Sanderson electronegativity weighted of the A fragment with a lag of 8; Ds-GATS1s is the Gary autocorrelation of the Ds fragment with a lag of 1 weighted by the intrinsic state, which explains the intrinsic state of the Ds fragment, such as the more π and the number of returning electrons, the higher the PCE value, and the model predicts more stable molecules with a longer half-life.
[0093] Embodiment 6
[0094] This embodiment is basically the same as the above embodiment, with the following features:
[0095] In this embodiment, an interpretable XGBoost regression model is constructed based on the SHAP value to accelerate the discovery of a QSPR method for high PCE NP-type organic sensitizers. High PCE samples are selected from the literature and added to the original data set. The characteristic values of the six features are obtained according to the same method. A large number of virtual samples generated by python are used for high-throughput screening. The screening results of some samples are shown in Table 4.
[0096] Table 4. Some high-throughput screening feature values and prediction results
[0097]
[0098] In this embodiment, the generated 90719 virtual samples are put into the established model, their corresponding PCEs are predicted, and molecular fragment combinations with PCEs greater than 12.8% are selected to guide the experiment.
[0099] Embodiment 7
[0100] This embodiment is basically the same as the above embodiment, with the following features:
[0101] In this embodiment, a system for implementing a quantitative structural relationship method to predict the power conversion efficiency of an organic sensitizer is implemented, and the QSPR method for predicting PCE by constructing an interpretable XGBoost regression model based on SHAP values in the above embodiment is implemented, including:
[0102] Input module: Search the structure, electrolyte conditions and corresponding PCE value of NP-type dye molecules from publicly published literature and use them as input data;
[0103] Data analysis module: Using the data obtained from the input module, the QSPR method of predicting PCE by constructing an interpretable XGBoost regression model based on SHAP values is executed to predict the power conversion efficiency of organic sensitizers;
[0104] Output module: outputs the power conversion efficiency of the organic sensitizer.
[0105] The system of this embodiment can quickly predict the power conversion efficiency (PCE) of nitrogen perylene (NP)-based organic sensitizers in dye-sensitized solar cells (DSSCs), especially constructing an interpretable XGBoost regression model based on SHAP value to predict the quantitative structural relationship (QSPR) of PCE, which is helpful for low-cost and high-efficiency discovery of efficient nitrogen perylene-based organic dyes.
[0106] In summary, the above embodiment constructs an interpretable XGBoost regression model based on SHAP value to accelerate the discovery of a QSPR method for high PCE NP-type organic sensitizers, including the following steps: (1) searching for the structure, electrolyte conditions and corresponding PCE values of NP-type organic sensitizers from the literature; (2) dividing the collected dye molecules into three fragments according to certain rules, with Ds and Dc fragments as donors and A fragment as an acceptor; (3) using ChemDraw to draw the fragment structure of the dye molecule, optimizing the molecule in Chem3D, and then using Dragon software to generate descriptors; (4) using PCE value as the target feature, Dragon-generated descriptors and electrolyte conditions as features, performing data preprocessing, and using the preprocessed data set samples as data set samples for subsequent modeling; (5) randomly dividing the data set into training set and test set, with a ratio of 5: 1 (wherein the electrolyte conditions are distributed the same in the test set and the training set) (6) Using SHAP nested XGBoost method to screen features according to the "contribution value" of the target feature, the optimal feature subset for XGBoost modeling is obtained by comparison and leave-one-out cross-validation; (7) Using XGBoost to establish a rapid prediction regression model for PCE of NP-type organic sensitizers; (8) According to the established rapid prediction model for PCE of NP-type organic sensitizers, the PCE of the test set is predicted; (9) The literature is consulted and combined with SHAP to interpret the features, and the relationship between the features and the target features is further obtained to construct a QSPR model; (10) The literature is consulted for reference molecules with excellent performance, and a large number of virtual samples are automatically generated through python, and these virtual samples are put into the constructed QSPR model for high-throughput screening to quickly predict the PCE of the newly combined NP-type dye molecules. The above embodiment is based on reliable literature real values and modeling methods, and the prediction model of NP-type organic sensitizers constructed has the advantages of convenience, speed, and no chemical pollution.
[0107] The above embodiment method avoids repeated experiments and the process of trial and error. Chem3D is used to optimize molecules, Dragon software generates structural descriptors, and SHAP nested XGBoost method feature screening and modeling are performed to predict the PCE value of NP-type organic sensitizers in advance. The operation process is simple, low-cost and pollution-free, and only one person is required to complete it. In the above embodiment method, SHAP and references are used to explain features and construct a QSPR model, which better explains the relationship between dye molecular structure, electrolyte conditions and function, and helps solve the shortcomings that most methods cannot explain. The above embodiment method uses XGBoost to establish a QSPR model for quickly predicting the PCE of NP-type organic sensitizers, and a large number of virtual samples are automatically generated through python. These samples are put into the constructed QSPR model for high-throughput screening, and the PCE of dye molecules with new combinations of fragments is quickly predicted, providing a reference for DSSC researchers, shortening research and development time, and reducing research and development costs.
[0108] The above describes the embodiments of the present invention in conjunction with the accompanying drawings, but the present invention is not limited to the above embodiments. Various changes can be made according to the purpose of the invention. Any changes, modifications, substitutions, combinations or simplifications made according to the spirit and principle of the technical solution of the present invention should be equivalent replacement methods. As long as they meet the purpose of the invention and do not deviate from the technical principles and inventive concepts of the present invention, they belong to the protection scope of the present invention.
Claims
1. A QSPR method for predicting PCE using an interpretable XGBoost regression model based on SHAP values, characterized in that: The following steps are involved: 1) Using a computer system to search for literature, search for the structure of NP-type dye molecules, electrolyte conditions and their corresponding PCE values from the literature; 2) The collected dye molecules are divided into three fragments. The first two fragments are Ds (DonerSpace) and Dc (DonerCore). The first two fragments are donors with electron-pushing groups, and the last fragment is A (Accepter), which is an acceptor with electron-withdrawing groups. The last fragment is prepared for the subsequent interpretation of the fragment effects and high-throughput screening; 3) Use ChemDraw to draw the fragment structure of the dye molecule, optimize the molecule through MM2-Minimizeenergy in chem3D, and then use Dragon software to generate descriptors; 4) Taking PCE value as the target variable and the descriptor generated by Dragon as the independent variable, data preprocessing is performed, and the preprocessed data set samples are used as data set samples for subsequent modeling; 5) The initially screened data set was randomly divided into training set and test set, with the test set accounting for 15% of the entire data set, and the electrolyte conditions were distributed equally in the test set and the training set; 6) Using the SHAP nested XGBoost method to screen variables according to the "contribution value" of the target variable, the optimal variable subset selection for XGBoost modeling was obtained by comparative leave-one-out cross-validation; 7) Establish a rapid prediction model for PCE of NP organic sensitizers using XGBoost regression; 8) Predict the power conversion efficiency PCE of the molecule to be detected based on the established rapid prediction model of PCE of NP-type organic sensitizers; 9) Further obtain the relationship between the variable and the target variable based on the positive and negative impact of the SHAP value; 10) Consult the literature, use the explanation of the features in the references, and combine the variables further obtained according to the positive and negative effects of the SHAP values in step 9) to build a QSPR model; 11) Consult the literature for molecules with excellent performance, automatically generate a large number of virtual samples through programming, put these virtual samples into the constructed QSPR model for high-throughput screening, and quickly predict the power conversion efficiency PCE value of NP-type organic sensitizers.
2. The QSPR method for predicting PCE by constructing an interpretable XGBoost regression model based on SHAP value according to claim 1, characterized in that: In the step 1), after searching the literature, the obtained data samples are preprocessed, including sorting out the molecular structure, electrolyte conditions and PCE of the samples, and determining the number of sample data.
3. The QSPR method for predicting PCE by constructing an interpretable XGBoost regression model based on SHAP value according to claim 1, characterized in that: In step 6) and step 7), for a certain feature variable, TreeSHAP is used to calculate the SHAP value corresponding to the variable in all samples, and its average value is used as the importance value of the feature variable to obtain a global explanation; the SHAP nested XGBoost method is used to screen variables, starting from an initial naive model, and based on the errors of the observed values in the sample set, a new model is established for fitting, and added to the existing model in an additive form, and this process is iterated repeatedly to form an integrated model.
4. The QSPR method for predicting PCE by constructing an interpretable XGBoost regression model based on SHAP value according to claim 1, characterized in that: In the step 11), the high-throughput screening method comprises the following steps: The design conditions are: Select molecules with experimental or theoretical studies of PCE>12.5% in the literature, divide the fragments, optimize the molecules and generate descriptors in the same way as above, and use Python programming to generate a large number of virtual samples; Then the generated large number of virtual samples are put into the constructed prediction model for forecasting.
5. A system for predicting the power conversion efficiency of an organic sensitizer by implementing a quantitative structural relationship method, executing the QSPR method for predicting PCE by constructing an interpretable XGBoost regression model based on SHAP values as described in any one of claims 1 to 4, characterized in that: include: Input module: Search the structure, electrolyte conditions and corresponding PCE value of NP-type dye molecules from publicly published literature and use them as input data; Data analysis module: Using the data obtained from the input module, the QSPR method of predicting PCE by constructing an interpretable XGBoost regression model based on SHAP values is executed to predict the power conversion efficiency of organic sensitizers; Output module: outputs the power conversion efficiency of the organic sensitizer.
