Method and system for realizing rapid prediction of maximum absorption wavelength of dye
Through the XGBoost algorithm and the maximum correlation and minimum redundant variable screening method, the maximum absorption wavelength of the dye is quickly predicted, which solves the problems of high detection cost and time-consuming in the existing technology, and realizes fast and low-cost dye research and development.
Patent Information
- Application Number
- CN202111001864.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-08-30
- Publication Date
- 2024-10-18
- Estimated Expiration
- 2041-08-30
AI Technical Summary
In the existing technology, the detection of the maximum absorption wavelength of dyes is costly and time-consuming, making it difficult to quickly predict new dyes that meet specific color requirements.
The XGBoost algorithm is combined with the maximum correlation and minimum redundant variable screening method to establish a model for quickly predicting the dye's maximum absorption wavelength by calculating the two-dimensional descriptor of the dye. The Dragon software is used to generate the descriptor and perform variable screening to achieve rapid prediction.
The maximum absorption wavelength result of the dye can be quickly obtained within a few minutes, which greatly reduces time and cost, avoids complicated experimental processes, and improves the efficiency of dye research and development.
Smart Images

Figure CN113808682B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of dye absorption spectrum research, and in particular to a method and a system for quickly predicting the maximum absorption wavelength of a dye based on an XGBoost algorithm. Background Art
[0002] Dyes are used as colorants in dyeing and printing textiles. They are also widely used in paints, plastics, paper, leather, optoelectronic communications, food, coatings, cosmetics, and photographic materials. In 1856, British scientist Birkin synthesized aniline violet, opening the era of synthetic dyes. In 1862, P. Griess discovered azo dyes - Bismarck Brown. Synthetic dyes have been developed for more than 150 years. Azo dyes have become the most diverse category, accounting for about 70% of all dyes in the world.
[0003] In recent years, with people's yearning for a better life and the pursuit of fashion and beauty, many novel dye products have appeared in the textile industry with a wide variety of colors. In order to meet people's higher requirements for color, researchers hope to find a method to quickly obtain parameters directly related to the color of the dye. The maximum absorption wavelength is one of the most important parameters reflecting the color of the dye. At present, the method for obtaining the maximum absorption wavelength of the dye is mainly to first prepare the synthesized dye into a solution of a certain concentration, and then use a UV-visible spectrophotometer for detection. Although this method can accurately detect the maximum absorption wavelength of the dye, it takes a long time and has a high experimental cost. There are certain difficulties in developing new dyes that meet specific color requirements.
[0004] With the development of artificial intelligence and big data, computer technology is increasingly used in the research and development of the chemical field, which makes it possible to apply algorithms to predict the maximum absorption wavelength of dyes and further develop new dyes. ExtremeGradient Boosting (which can be translated as extreme gradient boosting algorithm), referred to as XBGoost algorithm, was proposed by Dr. Tianqi Chen of the University of Washington in 2014. The algorithm is based on the gradient boosting decision tree of cumulative iteration, which is an improvement and specific implementation of the gradient boosting regression tree (GBRT). The XBGoost algorithm is committed to allowing the boosting tree to break through its own computing limits to achieve the engineering goal of fast computing and excellent performance. It also supports parallel computing, is suitable for small sample sets and large sample sets, and can train millions of samples. However, how to apply the XBGoost algorithm to quickly predict the parameters of dyes still needs further exploration and research. Summary of the invention
[0005] In order to solve the problem of high cost and long time consumption of the detection of the maximum absorption wavelength of dyes in the prior art, the purpose of the present invention is to overcome the shortcomings of the existing technology and provide a method and system for quickly predicting the maximum absorption wavelength of dyes. By calculating the two-dimensional descriptor of the dye, the variable screening method of maximum relevance minimum redundancy (mRMR) is used, and the model is established with the help of the XGBoost algorithm to quickly predict the maximum absorption wavelength value of the dye. Through the above method, the results can be quickly obtained within a few minutes, greatly reducing the time cost and detection cost, and the whole process does not require experiments and complicated calculations.
[0006] In order to achieve the above invention purpose, the present invention adopts the following technical solution:
[0007] A method for quickly predicting the maximum absorption wavelength of a dye based on an XGBoost algorithm comprises the following steps:
[0008] 1) using a computer system to search for the molecular structure of azo dyes and the corresponding experimental value of the maximum absorption wavelength from the literature, perform data preprocessing, sort out the molecular structure formula of the sample, obtain the experimental value of the maximum absorption wavelength of the sample, and use the preprocessed data set sample as the data set sample for subsequent modeling; the preprocessing of the data sample in the step 1) includes sorting out the molecular structure formula of the sample and obtaining the experimental value of the maximum absorption wavelength of the sample;
[0009] 2) using a chemical drawing program to draw the collected dye molecular structures on the samples of the data set, and using a descriptor generation program to generate corresponding descriptors;
[0010] 3) Taking the maximum absorption wavelength experimental value of the sample in the data set as the target variable, using the generated descriptor as the independent variable, removing redundant independent variables through the variable screening method, and retaining the best independent variable subset;
[0011] 4) Randomly dividing the data set into a training set and a test set;
[0012] 5) Perform secondary screening of the independent variables on the best independent variable subset, transform the screened best independent variables, and obtain a new independent variable subset;
[0013] 6) The target variable is the data set of step 1) as a sample, and the independent variable is the independent variable subset of step 6). The target variable and the independent variable are used to build a training model using the XGBoost algorithm to establish a rapid prediction model for the maximum absorption wavelength of azo dyes;
[0014] 7) According to the established rapid prediction model of the maximum absorption wavelength of the azo dye and the molecular structure of the azo dye to be tested, the maximum absorption wavelength of the azo dye to be tested is rapidly predicted.
[0015] Preferably, in step 5), 22 new independent variables are obtained, which are:
[0016] P(1)=-0.1468x1+0.07953x2+0.005442x3-0.1144x4-0.03946x5-0.7645x6-0.1187x7-0.02542x8+0.2509x9+0.2106x10+1.518x11-1.4 90x12+0.3446x13+1.073x14+0.1408x15+0.008882x16+3.373x17-0.08313x18+0.08137x19-0.1829x20+0.1180x21-0.1042x22-2.007;
[0017] P(2)=-0.3452x1-0.001333x2-0.1305x3+0.03473x4+0.06318x5+0.5968x6-0.08493x7-0.05796x8-0.4417x9-0.0002596x 10 +0.8958x 11 +0.6900x 12 -0.1266x 13 +0.3495x 14 -0.002020x 15 -0.03937x 16 +4.958x 17 -0.2235x 18 +0.06097x 19 -0.8796x 20 -0.04725x 21 +0.007784x 22 -3.015;
[0018] P(3)=-0.04478x1+0.03094x2+0.1164x3+0.4955x4+0.1280x5+0.5930x6-0.2875x7+0.1254x8+0.4020x9+0.08689x 10 -0.6100x 11 +1.735x 12 -0.01940x 13 +0.004682x 14 +0.05438x 15 +0.2704x 16 +6.064x 17 -0.1437x 18+0.04459x 19 +0.1100x 20 -0.09971x 21 +0.5054x 22 -3.849;
[0019] P(4)=-0.009321x1-0.06079x2+0.2526x3-0.2809x4+0.1216x5+0.06794x6-0.4561x7+0.05122x8+1.249x9-0.07666x 10 -0.7976x 11 +2.530x 12 -0.03591x 13 +1.490x 14 +0.1424x 15 +0.0004158x 16 +7.116x 17 -0.1939x 18 -0.004350x 19 -0.03845x 20 -0.1580x 21 -0.1890x 22 -3.298;
[0020] P(5)=+0.1486x1-0.04740x2+0.06389x3-0.4567x4-0.08375x5-1.068x6-0.1309x7+0.08396x8-0.2237x9-0.02917x 10 -1.069x 11 +0.6590x 12 +0.09570x 13 +0.5122x 14 +0.1219x 15 +0.1383x 16 +1.394x 17 -0.3684x 18 -0.005981x 19 +0.4988x 20 -0.2064x 21 -0.1966x 22 +0.1455;
[0021] P(6)=-0.06321x1-0.06233x2+0.09175x3-0.4032x4-0.03185x5-0.8999x6-0.6305x7+0.006485x8-0.08835x9-0.004323x 10 +0.4255x 11 -0.3270x 12 -0.04173x 13 -1.365x 14 +0.1730x 15 +0.2213x 16 -5.996x 17 -0.2242x 18 +0.01693x 19 +0.2991x 20 -0.3007x 21 +0.04562x 22 +3.766;
[0022] P(7)=+0.01173x1-0.05926x2+0.04441x3-0.4263x4-0.2526x5+0.6295x6-0.2542x7-0.02312x8-1.104x9+0.06854x 10 +0.1134x 11 +1.756x 12 +0.5732x 13 -0.4101x 14 +0.2815x 15 +0.1898x 16 -4.937x 17 -0.07380x 18 -0.01904x 19 -0.2896x 20 -0.1891x 21 +0.3324x 22 -0.1618;
[0023] P(8)=+0.1105x1-0.02617x2+0.02652x3-0.8271x4-0.05887x5+0.5631x6+0.02257x7-0.1536x8-1.503x9+0.3102x 10 -0.9672x 11 +0.7700x 12 +0.3457x 13 -0.06278x 14+0.2976x 15 +0.1385x 16 -0.9929x 17 +0.06927x 18 +0.03850x 19 -0.1615x 20 -0.3619x 21 +0.3208x 22 +0.2358;
[0024] P(9)=+0.02127x1-0.1786x2-0.06685x3-0.4015x4+0.3178x5-0.1032x6+0.2255x7-0.1113x8-0.9447x9+0.08232x 10 -1.404x 11 -0.8030x 12 +0.6998x 13 +0.1931x14+0.3646x 15 +0.2034x 16 -0.09102x 17 +0.08943x 18 +0.02135x 19 -0.2601x 20 -0.3098x 21 +0.7253x 22 +0.9554;
[0025] P(10)=-0.1770x1-0.1774x2+0.006306x3-0.2404x4-0.04884x5-0.2527x6+0.02039x7+0.03926x8-1.702x9+0.07748x 10 +0.5582x 11 -2.127x 12 +0.2517x 13 +0.8850x 14 +0.1794x 15 +0.04091x 16 +5.594x 17 +0.1376x 18 -0.05464x 19 +0.2750x 20 -0.2324x 21 +0.6710x 22 +2.790;
[0026] P(11)=-0.05616x1-0.06217x2-0.02304x3-0.1938x4+0.2139x5+0.1186x6+0.2535x7+0.08223x8-0.5295x9+0.3386x 10 +2.094x 11 -1.292x 12 -0.1709x 13 +1.838x 14 +0.1669x 15 -0.1044x 16 +0.6906x 17 +0.01153x 18 -0.1321x 19 +0.02713x 20 -0.1830x 21 +0.8217x 22 +0.6820;
[0027] P(12)=-0.3046x1-0.01073x2-0.02445x3-0.6758x4+0.2464x5-0.03164x6+0.01964x7+0.1548x8-0.7268x9+0.3027x 10 -1.149x 11 +0.1688x 12 -0.1605x 13 -1.350x 14 +0.1300x 15 -0.3169x 16 -0.3204x 17 +0.007568x 18 -0.06604x 19 +0.3098x 20 +0.02328x 21 +0.2713x 22 +0.8352;
[0028] P(13)=-0.04337x1-0.08791x2+0.07980x3-0.6369x4+0.1290x5-0.7322x6+0.3031x7+0.1606x8-0.8637x9+0.2216x 10 +0.1595x 11 +0.7907x 12 -0.6508x 13 -3.742x 14 +0.1753x15 -0.3929x 16 +1.428x 17 -0.004318x 18 -0.009281x 19 -0.3420x 20 +0.07558x 21 +0.6384x 22 +1.523;
[0029] P(14)=+0.02989x1-0.1218x2+0.05419x3-0.6072x4+0.1960x5-1.762x6+0.02483x7+0.2813x8-1.613x9+0.2832x 10 -0.1367x 11 +2.201x 12 -0.6199x 13 -0.6117x 14 +0.08369x 15 -0.4650x 16 -2.183x 17 +0.06825x 18 +0.05490x 19 -0.8920x 20 +0.06140x 21 +0.7572x 22 -0.7424;
[0030] P(15)=+0.1169x1-0.1483x2+0.01328x3-0.3053x4+0.1536x5-0.6943x6-0.1216x7+0.06248x8-0.6836x9+0.2833x 10 +0.9688x 11 +2.265x 12 +0.1987x 13 -0.9578x 14 -0.05165x 15 -0.6580x 16 -0.9617x 17 -0.02333x 18 +0.06494x 19 +0.3898x 20 +0.03080x 21 +0.9222x 22 -0.9825;
[0031] P(16)=-0.1550x1-0.1281x2+0.1309x3-0.05866x4-0.1344x5-1.094x6+0.2870x7+0.06733x8+0.5596x9+0.3920x 10 -0.3636x 11 +1.244x 12 +0.4942x 13 -1.000x 14 -0.1326x 15 -0.6449x 16 -2.707x 17 -0.04000x 18 +0.0535x 19 -0.2715x 20 -0.06113x 21 +1.050x 22 +0.9641;
[0032] P(17)=+0.08381x1-0.1054x2-0.1433x3-0.4815x4-0.1768x5-0.4814x6-0.08084x7+0.1586x8+1.579x9+0.3521x 10 +0.2724x 11 +0.6562x 12 +0.4360x 13 -1.893x 14 -0.09452x 15 -0.1887x 16 +1.826x 17 +0.05249x 18 +0.01277x 19 -0.5550x 20 -0.07673x 21 +0.1618x 22 +0.06534;
[0033] P(18)=+0.07249x1-0.1885x2-0.1806x3-0.09214x4-0.3839x5+0.5123x6-0.1603x7+0.07763x8+1.838x9+0.3805x 10 -1.214x 11 -0.5214x 12 -0.3239x 13 +0.2161x 14 +0.01676x15 -0.1699x 16 -0.4673x 17 +0.004565x 18 +0.04535x 19 -0.03797x 20 +0.01406x 21 +0.3348x 22 -1.027;
[0034] P(19)=-0.1175x1-0.1880x2-0.01379x3-0.3925x4-0.07044x5-0.2917x6+0.09341x7-0.06911x8+0.5469x9+0.3977x 10 +0.06104x 11 +1.581x 12 -0.2019x 13 +0.1832x 14 -0.07002x 15 +0.4297x 16 -0.4373x 17 -0.003169x 18 +0.0001358x 19 +0.2545x 20 +0.08886x 21 -0.06477x 22 -1.118;
[0035] P(20)=+0.08123x1-0.2253x2+0.08497x3-0.5679x4+0.03546x5+0.2170x6-0.2738x7-0.1333x8-0.1056x9+0.5705x 10 -1.070x 11 -0.9166x 12 -0.05864x 13 -0.2105x 14 -0.1546x 15 +0.4839x 16 +0.2875x 17 -0.09273x 18 -0.04427x 19 -0.5460x 20 +0.1642x 21 +0.1383x 22 +0.05128;
[0036] P(21)=-0.02327x1+0.08022x2-0.08145x3-0.5957x4-0.1105x5-1.042x6-0.2198x7-0.1200x8+0.4716x9-0.1289x 10 -0.7229x 11 +0.7876x 12 -0.1554x 13 +0.3089x 14 -0.02132x 15 +0.09991x 16 +1.897x 17 +0.01432x 18 -0.04045x 19 -0.04416x 20 +0.03642x 21 +1.123x 22 -0.4297;
[0037] P(22)=-0.04836x1+0.06341x2-0.005342x3-1.683x4-0.05461x5+0.3883x6+0.01348x7+0.002202x8+0.7124x9-0.2961x 10 +0.02117x 11 -0.5521x 12 -0.09357x 13 +1.039x 14 -0.07988x 15 +0.2085x 16 -0.01309x 17 -0.003115x 18 +0.03063x 19 +0.1140x 20 +0.04054x 21 +1.328x 22 -0.5431;
[0038] where x1: B_SM05_EA(dm), the 5th-order matrix of the edge adjacency matrix weighted by dipole moment; x2: A_F03[CO], the CO bond frequency at topological distance 3; x3: B_SM06_AEA(ri), the 6th-order matrix of the enhanced edge adjacency weighted by the resonance integral; x4: A_GATS7i, the Geary autocorrelation with lag 7 weighted by ionization potential; x5: B_C-001, the number of methyl groups; x6: A_GATS2e, the Geary autocorrelation with lag 2 weighted by Sanderson electronegativity; x7: B_Hy, the hydrophilic factor; x8: A_piPC09, the 9th-order molecular multipath number; x9: B_SpMin8_Bh(e), the minimum eigenvalue 8 of the Burden matrix weighted by Sanderson electronegativity; 10 :A_nO, number of oxygen atoms; x 11 :B_MATS3v, Moran's autocorrelation of lag 3 weighted by van der Waals volume; x 12 :A_GATS2m, quality-weighted Geary autocorrelation at lag 2; x 13 :B_NaasC, number of atoms of type aasC; x 14 :A_Eta_betaP_A, ETAπ and lone pair average VEM count; x 15 :B_piPC10, 10th order molecular multipath number; x 16 :A_ATS7m, Broto-Moreau autocorrelation at lag 7 (logarithmic function) weighted by quality; x 17 :B_SpMaxA_EA(dm), the normalized leading eigenvalue of the edge adjacency matrix weighted by the dipole moment; x 18 :B_SM07_AEA(ri), the 7th-order matrix of the resonance-integrated weighted enhanced edge adjacency; x 19 :A_SpAD_EA(dm), spectral absolute deviation of the edge adjacency matrix weighted by the dipole moment; x 20 :A_Hy, hydrophilic factor; x 21 :B_nBM, the number of multiple bonds; x 22 :A_GATS7v, Geary autocorrelation at lag 7 weighted by van der Waals volume.
[0039] Preferably, in step 3), the variable screening method is as follows:
[0040] First, calculate the correlation coefficients between each feature and between the features and the target value, sort them according to the size of the correlation coefficient, select features or directly delete redundant features whose correlation coefficients between features are greater than the threshold, and then find a set of features in the feature set that has the greatest correlation with the category but the least redundancy between features, and select them as the best independent variable subset.
[0041] Preferably, in the step 2), the collected dye molecular structures are drawn using Chemdraw software, the molecular structures are exported in the form of SMILES strings, and then the corresponding descriptors are generated using Dragon software.
[0042] Further preferably, in the step 3), the maximum absorption wavelength value of the experiment is used as the target variable, the descriptor generated by the Dragon software is used as the independent variable, one variable in the variable pair with an inter-variable correlation coefficient of 0.99 is deleted, and the independent variable with a larger correlation coefficient with the target variable is retained to obtain a preliminary screened independent variable data set and a target variable data set.
[0043] Preferably, in the step 4), the data set is randomly divided into a training set and a test set, and according to the data volume, the proportion of the test set does not exceed 20% of the entire data set.
[0044] Preferably, in the step 5), the best independent variable subset is subjected to secondary screening of independent variables, and the maximum relevance minimum redundancy (mRMR) method is combined with the XGBoost regression leave-one-out method to select the best independent variable subset for modeling.
[0045] A system for quickly predicting the maximum absorption wavelength of a dye, performing a method for quickly predicting the maximum absorption wavelength of a dye based on an XGBoost algorithm of the present invention, characterized in that it includes:
[0046] Input module: using a computer system, collect the molecular structure of azo dyes and their corresponding maximum absorption wavelength experimental values from the literature and use them as input data;
[0047] Data analysis module: using the data obtained from the input module, a method based on the XGBoost algorithm to quickly predict the maximum absorption wavelength of the dye is executed to quickly predict the maximum absorption wavelength of the azo dye to be detected;
[0048] Output module: outputs the data of the maximum absorption wavelength of the azo dye to be detected.
[0049] Compared with the prior art, the present invention has the following obvious outstanding substantive features and significant advantages:
[0050] 1. Green and environmentally friendly: The present invention avoids the complicated experimental synthesis process, does not require the synthesis of dye molecules, does not require the purchase of pharmaceutical reagents, and does not require the purchase of experimental instruments, which conforms to the concept of green environmental protection;
[0051] 2. High time efficiency: The independent variables used in the present invention are all descriptors obtained from the two-dimensional structure of the molecule. The Dragon software can generate descriptors of hundreds of molecules within one minute, which is highly time-effective and easy to use, and can be completed by one person;
[0052] 3. Short cycle: Through variable screening and XGBoost modeling, the present invention can predict the maximum absorption wavelength of dye molecules in advance, provide a favorable reference for dye R&D personnel, greatly reduce R&D costs, effectively shorten the R&D cycle, and avoid blind "trial and error" experiments;
[0053] 4. Low cost: The present invention performs certain screening and conversion of variables based on the independent variables generated by the Dragon software, and then uses XGBoost to build a model. The operation process is simple and the entire process can be completed using only a computer. BRIEF DESCRIPTION OF THE DRAWINGS
[0054] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, drawings of other embodiments can be obtained according to the description of the drawings.
[0055] Figure 1 It is the main flow chart of the method of the present invention.
[0056] Figure 2 This is a graph showing the XGBoost regression modeling results of the maximum absorption wavelength of the azo dye of the present invention.
[0057] Figure 3 This is a graph of the XGBoost regression leave-one-out cross-validation results of the maximum absorption wavelength of the azo dye of the present invention.
[0058] Figure 4 This is an XGBoost regression independent test set result diagram of the maximum absorption wavelength of the azo dye of the present invention. DETAILED DESCRIPTION
[0059] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0060] It should be noted that machine learning or deep learning methods are currently the most widely used data mining methods. Among the various algorithms, XGBoost (Extreme Gradient Boosting) is a parallel computing method that is suitable for both small sample sets and large sample sets. It is based on the cumulative iterative gradient boosting decision tree, which is an improvement and specific implementation of the gradient boosting regression tree (GBRT). The traditional GBRT algorithm only uses the first-order derivative of the Taylor expansion, but the XGBoost algorithm improves the objective function and introduces the objective error function to expand the second-order derivative, thereby improving the prediction accuracy of the model. Therefore, this method is suitable for rapid prediction of the maximum absorption wavelength of the dye.
[0061] The present invention proposes a method for quickly predicting the maximum absorption wavelength of dyes based on the XGBoost algorithm. Firstly, based on the characteristics of the molecular structure of azo dyes, descriptors are generated using Dragon software, and the method of further screening independent variables is explored; secondly, based on the basic principle of XGBoost, the specific framework process of quickly predicting the maximum absorption wavelength of dyes based on the XGBoost algorithm is studied.
[0062] 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:
[0063] Embodiment 1:
[0064] In this example, see Figure 1 and Figure 2 , a method for quickly predicting the maximum absorption wavelength of a dye based on an XGBoost algorithm, comprising the steps of:
[0065] 1) Using a computer system, search for the molecular structure of azo dyes and the corresponding experimental value of the maximum absorption wavelength from the literature, perform data preprocessing, sort out the molecular structure formula of the sample, obtain the experimental value of the maximum absorption wavelength of the sample, and use the preprocessed data set sample as the data set sample for subsequent modeling;
[0066] 2) using a chemical drawing program to draw the collected dye molecular structures on the samples of the data set, and using a descriptor generation program to generate corresponding descriptors;
[0067] 3) Taking the maximum absorption wavelength experimental value of the sample in the data set as the target variable, using the generated descriptor as the independent variable, removing redundant independent variables through the variable screening method, and retaining the best independent variable subset;
[0068] 4) Randomly dividing the data set into a training set and a test set;
[0069] 5) Perform secondary screening of the independent variables on the best independent variable subset, transform the screened best independent variables, and obtain a new independent variable subset;
[0070] 6) The target variable is the data set of step 1) as a sample, and the independent variable is the independent variable subset of step 6). The target variable and the independent variable are used to build a training model using the XGBoost algorithm to establish a rapid prediction model for the maximum absorption wavelength of azo dyes;
[0071] 7) According to the established rapid prediction model of the maximum absorption wavelength of the azo dye and the molecular structure of the azo dye to be tested, the maximum absorption wavelength of the azo dye to be tested is rapidly predicted.
[0072] The advantages of the method of this embodiment are that it does not require the synthesis of samples, does not require the sample to be sent for testing, is low-cost, and can quickly calculate a large number of samples at the same time. It can predict the maximum absorption wavelength of the dye and provide a favorable reference for the subsequent screening of dyes that meet specific color requirements, thereby improving research and development efficiency and shortening the research and development cycle.
[0073] Embodiment 2
[0074] This embodiment is basically the same as the first embodiment, except that:
[0075] In this embodiment, in step 2), the collected dye molecular structures are drawn using Chemdraw software, and the molecular structures are exported in the form of SMILES strings, and then the corresponding descriptors are generated using Dragon software.
[0076] In this embodiment, in the step 3), the maximum absorption wavelength value of the experiment is used as the target variable, the descriptor generated by the Dragon software is used as the independent variable, one variable in the variable pair with a correlation coefficient of 0.99 between the variables is deleted, and the independent variable with a larger correlation coefficient with the target variable is retained to obtain a preliminary screened independent variable data set and a target variable data set. This embodiment calculates the correlation coefficient between each feature and between the features and the target value, sorts them according to the size of the correlation coefficient, selects features or directly deletes redundant features with a correlation coefficient between features greater than a threshold, and then finds a set of features in the feature set that has the greatest correlation with the category but the least redundancy between features, and selects them as the best independent variable subset.
[0077] In this embodiment, in step 4), the data set is randomly divided into a training set and a test set. According to the data volume, the proportion of the test set does not exceed 20% of the entire data set.
[0078] In this embodiment, in step 5), the best independent variable subset is subjected to secondary screening of independent variables, and the maximum relevance minimum redundancy (mRMR) method is combined with the XGBoost regression leave-one-out method to select the best independent variable subset for modeling.
[0079] This embodiment is based on the XGBoost algorithm to quickly predict the maximum absorption wavelength of the dye, establish a data set sample; generate descriptors; randomly divide the training set and the test set; screen independent variables; and establish a rapid prediction model. This embodiment is based on reliable literature data and modeling methods, and the dye maximum absorption wavelength prediction model established has the advantages of high efficiency, convenience, low cost, and green environmental protection.
[0080] Embodiment 3
[0081] This embodiment is basically the same as the above embodiment, with the following features:
[0082] In this embodiment, in step 5), the new independent variable obtained is:
[0083] P(1)=-0.1468x1+0.07953x2+0.005442x3-0.1144x4-0.03946x5-0.7645x6-0.1187x7-0.02542x8+0.2509x9+0.2106x10+1.518x11-1.4 90x12+0.3446x13+1.073x14+0.1408x15+0.008882x16+3.373x17-0.08313x18+0.08137x19-0.1829x20+0.1180x21-0.1042x22-2.007;
[0084] P(2)=-0.3452x1-0.001333x2-0.1305x3+0.03473x4+0.06318x5+0.5968x6-0.08493x7-0.05796x8-0.4417x9-0.0002596x 10 +0.8958x 11 +0.6900x 12 -0.1266x 13 +0.3495x 14 -0.002020x 15 -0.03937x 16 +4.958x 17 -0.2235x 18 +0.06097x 19 -0.8796x 20 -0.04725x 21+0.007784x 22 -3.015;
[0085] P(3)=-0.04478x1+0.03094x2+0.1164x3+0.4955x4+0.1280x5+0.5930x6-0.2875x7+0.1254x8+0.4020x9+0.08689x 10 -0.6100x 11 +1.735x 12 -0.01940x 13 +0.004682x 14 +0.05438x 15 +0.2704x 16 +6.064x 17 -0.1437x 18 +0.04459x 19 +0.1100x 20 -0.09971x 21 +0.5054x 22 -3.849;
[0086] P(4)=-0.009321x1-0.06079x2+0.2526x3-0.2809x4+0.1216x5+0.06794x6-0.4561x7+0.05122x8+1.249x9-0.07666x 10 -0.7976x 11 +2.530x 12 -0.03591x 13 +1.490x 14 +0.1424x 15 +0.0004158x 16 +7.116x 17 -0.1939x 18 -0.004350x 19 -0.03845x 20 -0.1580x 21 -0.1890x 22 -3.298;
[0087] P(5)=+0.1486x1-0.04740x2+0.06389x3-0.4567x4-0.08375x5-1.068x6-0.1309x7+0.08396x8-0.2237x9-0.02917x 10 -1.069x 11 +0.6590x12 +0.09570x 13 +0.5122x 14 +0.1219x 15 +0.1383x 16 +1.394x 17 -0.3684x 18 -0.005981x 19 +0.4988x 20 -0.2064x 21 -0.1966x 22 +0.1455;
[0088] P(6)=-0.06321x1-0.06233x2+0.09175x3-0.4032x4-0.03185x5-0.8999x6-0.6305x7+0.006485x8-0.08835x9-0.004323x 10 +0.4255x 11 -0.3270x 12 -0.04173x 13 -1.365x 14 +0.1730x 15 +0.2213x 16 -5.996x 17 -0.2242x 18 +0.01693x 19 +0.2991x 20 -0.3007x 21 +0.04562x 22 +3.766;
[0089] P(7)=+0.01173x1-0.05926x2+0.04441x3-0.4263x4-0.2526x5+0.6295x6-0.2542x7-0.02312x8-1.104x9+0.06854x 10 +0.1134x 11 +1.756x 12 +0.5732x 13 -0.4101x 14 +0.2815x 15 +0.1898x 16 -4.937x 17 -0.07380x 18 -0.01904x 19 -0.2896x 20 -0.1891x 21+0.3324x 22 -0.1618;
[0090] P(8)=+0.1105x1-0.02617x2+0.02652x3-0.8271x4-0.05887x5+0.5631x6+0.02257x7-0.1536x8-1.503x9+0.3102x 10 -0.9672x 11 +0.7700x 12 +0.3457x 13 -0.06278x 14 +0.2976x 15 +0.1385x 16 -0.9929x 17 +0.06927x 18 +0.03850x 19 -0.1615x 20 -0.3619x 21 +0.3208x 22 +0.2358;
[0091] P(9)=+0.02127x1-0.1786x2-0.06685x3-0.4015x4+0.3178x5-0.1032x6+0.2255x7-0.1113x8-0.9447x9+0.08232x 10 -1.404x 11 -0.8030x 12 +0.6998x 13 +0.1931x14+0.3646x 15 +0.2034x 16 -0.09102x 17 +0.08943x 18 +0.02135x 19 -0.2601x 20 -0.3098x 21 +0.7253x 22 +0.9554;
[0092] P(10)=-0.1770x1-0.1774x2+0.006306x3-0.2404x4-0.04884x5-0.2527x6+0.02039x7+0.03926x8-1.702x9+0.07748x 10 +0.5582x 11 -2.127x 12+0.2517x 13 +0.8850x 14 +0.1794x 15 +0.04091x 16 +5.594x 17 +0.1376x 18 -0.05464x 19 +0.2750x 20 -0.2324x 21 +0.6710x 22 +2.790;
[0093] P(11)=-0.05616x1-0.06217x2-0.02304x3-0.1938x4+0.2139x5+0.1186x6+0.2535x7+0.08223x8-0.5295x9+0.3386x 10 +2.094x 11 -1.292x 12 -0.1709x 13 +1.838x 14 +0.1669x 15 -0.1044x 16 +0.6906x 17 +0.01153x 18 -0.1321x 19 +0.02713x 20 -0.1830x 21 +0.8217x 22 +0.6820;
[0094] P(12)=-0.3046x1-0.01073x2-0.02445x3-0.6758x4+0.2464x5-0.03164x6+0.01964x7+0.1548x8-0.7268x9+0.3027x 10 -1.149x 11 +0.1688x 12 -0.1605x 13 -1.350x 14 +0.1300x 15 -0.3169x 16 -0.3204x 17 +0.007568x 18 -0.06604x 19 +0.3098x 20 +0.02328x 21 +0.2713x22 +0.8352;
[0095] P(13)=-0.04337x1-0.08791x2+0.07980x3-0.6369x4+0.1290x5-0.7322x6+0.3031x7+0.1606x8-0.8637x9+0.2216x 10 +0.1595x 11 +0.7907x 12 -0.6508x 13 -3.742x 14 +0.1753x 15 -0.3929x 16 +1.428x 17 -0.004318x 18 -0.009281x 19 -0.3420x 20 +0.07558x 21 +0.6384x 22 +1.523;
[0096] P(14)=+0.02989x1-0.1218x2+0.05419x3-0.6072x4+0.1960x5-1.762x6+0.02483x7+0.2813x8-1.613x9+0.2832x 10 -0.1367x 11 +2.201x 12 -0.6199x 13 -0.6117x 14 +0.08369x 15 -0.4650x 16 -2.183x 17 +0.06825x 18 +0.05490x 19 -0.8920x 20 +0.06140x 21 +0.7572x 22 -0.7424;
[0097] P(15)=+0.1169x1-0.1483x2+0.01328x3-0.3053x4+0.1536x5-0.6943x6-0.1216x7+0.06248x8-0.6836x9+0.2833x 10 +0.9688x 11 +2.265x 12 +0.1987x13 -0.9578x 14 -0.05165x 15 -0.6580x 16 -0.9617x 17 -0.02333x 18 +0.06494x 19 +0.3898x 20 +0.03080x 21 +0.9222x 22 -0.9825;
[0098] P(16)=-0.1550x1-0.1281x2+0.1309x3-0.05866x4-0.1344x5-1.094x6+0.2870x7+0.06733x8+0.5596x9+0.3920x 10 -0.3636x 11 +1.244x 12 +0.4942x 13 -1.000x 14 -0.1326x 15 -0.6449x 16 -2.707x 17 -0.04000x 18 +0.0535x 19 -0.2715x 20 -0.06113x 21 +1.050x 22 +0.9641;
[0099] P(17)=+0.08381x1-0.1054x2-0.1433x3-0.4815x4-0.1768x5-0.4814x6-0.08084x7+0.1586x8+1.579x9+0.3521x 10 +0.2724x 11 +0.6562x 12 +0.4360x 13 -1.893x 14 -0.09452x 15 -0.1887x 16 +1.826x 17 +0.05249x 18 +0.01277x 19 -0.5550x 20 -0.07673x 21 +0.1618x 22+0.06534;
[0100] P(18)=+0.07249x1-0.1885x2-0.1806x3-0.09214x4-0.3839x5+0.5123x6-0.1603x7+0.07763x8+1.838x9+0.3805x 10 -1.214x 11 -0.5214x 12 -0.3239x 13 +0.2161x 14 +0.01676x 15 -0.1699x 16 -0.4673x 17 +0.004565x 18 +0.04535x 19 -0.03797x 20 +0.01406x 21 +0.3348x 22 -1.027;
[0101] P(19)=-0.1175x1-0.1880x2-0.01379x3-0.3925x4-0.07044x5-0.2917x6+0.09341x7-0.06911x8+0.5469x9+0.3977x 10 +0.06104x 11 +1.581x 12 -0.2019x 13 +0.1832x 14 -0.07002x 15 +0.4297x 16 -0.4373x 17 -0.003169x 18 +0.0001358x 19 +0.2545x 20 +0.08886x 21 -0.06477x 22 -1.118;
[0102] P(20)=+0.08123x1-0.2253x2+0.08497x3-0.5679x4+0.03546x5+0.2170x6-0.2738x7-0.1333x8-0.1056x9+0.5705x 10 -1.070x 11 -0.9166x 12 -0.05864x13 -0.2105x 14 -0.1546x 15 +0.4839x 16 +0.2875x 17 -0.09273x 18 -0.04427x 19 -0.5460x 20 +0.1642x 21 +0.1383x 22 +0.05128;
[0103] P(21)=-0.02327x1+0.08022x2-0.08145x3-0.5957x4-0.1105x5-1.042x6-0.2198x7-0.1200x8+0.4716x9-0.1289x 10 -0.7229x 11 +0.7876x 12 -0.1554x 13 +0.3089x 14 -0.02132x 15 +0.09991x 16 +1.897x 17 +0.01432x 18 -0.04045x 19 -0.04416x 20 +0.03642x 21 +1.123x 22 -0.4297;
[0104] P(22)=-0.04836x1+0.06341x2-0.005342x3-1.683x4-0.05461x5+0.3883x6+0.01348x7+0.002202x8+0.7124x9-0.2961x 10 +0.02117x 11 -0.5521x 12 -0.09357x 13 +1.039x 14 -0.07988x 15 +0.2085x 16 -0.01309x 17 -0.003115x 18 +0.03063x 19 +0.1140x 20 +0.04054x 21 +1.328x22 -0.5431
[0105] where x1: B_SM05_EA(dm), the 5th-order matrix of the edge adjacency matrix weighted by dipole moment; x2: A_F03[CO], the CO bond frequency at topological distance 3; x3: B_SM06_AEA(ri), the 6th-order matrix of the enhanced edge adjacency weighted by the resonance integral; x4: A_GATS7i, the Geary autocorrelation with lag 7 weighted by ionization potential; x5: B_C-001, the number of methyl groups; x6: A_GATS2e, the Geary autocorrelation with lag 2 weighted by Sanderson electronegativity; x7: B_Hy, the hydrophilic factor; x8: A_piPC09, the 9th-order molecular multipath number; x9: B_SpMin8_Bh(e), the minimum eigenvalue 8 of the Burden matrix weighted by Sanderson electronegativity; 10 :A_nO, number of oxygen atoms; x 11 :B_MATS3v, Moran's autocorrelation of lag 3 weighted by van der Waals volume; x 12 :A_GATS2m, quality-weighted Geary autocorrelation at lag 2; x 13 :B_NaasC, number of atoms of type aasC; x 14 :A_Eta_betaP_A, ETAπ and lone pair average VEM count; x 15 :B_piPC10, 10th order molecular multipath number; x 16 :A_ATS7m, Broto-Moreau autocorrelation at lag 7 (logarithmic function) weighted by quality; x 17 :B_SpMaxA_EA(dm), the normalized leading eigenvalue of the edge adjacency matrix weighted by the dipole moment; x 18 :B_SM07_AEA(ri), the 7th-order matrix of the resonance-integrated weighted enhanced edge adjacency; x 19 :A_SpAD_EA(dm), spectral absolute deviation of the edge adjacency matrix weighted by the dipole moment; x 20 :A_Hy, hydrophilic factor; x 21 :B_nBM, the number of multiple bonds; x 22 :A_GATS7v, Geary autocorrelation at lag 7 weighted by van der Waals volume.
[0106] This embodiment transforms the selected optimal independent variables to obtain new independent variables, providing rich variable conditions and variable resources.
[0107] Embodiment 4
[0108] This embodiment is basically the same as the above embodiment, with the following features:
[0109] In this embodiment, a method for quickly predicting the maximum absorption wavelength of a dye based on an XGBoost algorithm comprises the following steps:
[0110] (1) Using a computer system, we searched the literature for the molecular structure of monoazo dyes and the corresponding experimental values of the maximum absorption wavelength. A total of 212 monoazo dye molecules that met the requirements were found. Some of their structures and maximum absorption wavelength values are shown in Table 1:
[0111] Table 1. Molecular structures of monoazo dyes and experimental values of their maximum absorption wavelengths in some literature
[0112]
[0113] (2) A total of 10,540 descriptors were generated from the two-dimensional structure of azo dyes drawn by Chemdraw software using Dragon software. Some of the descriptors are shown in Table 2:
[0114] Table 2. Part of the azo dye descriptor table generated by Dragon
[0115] A_MW A_AMW A_S A_Se A_Mv B_nSK B_nTA B_nBM B_SCBO B_RBN 121.17 6.732 11.085 17.804 0.616 15 7 3 18 2 200.26 8.707 14.724 23.636 0.64 9 3 3 12 0 152.14 8.949 11.483 17.793 0.675 9 3 3 12 0 242.35 7.573 19.304 32.287 0.603 15 7 3 18 2 98.16 9.816 6.999 10.004 0.7 11 4 3 14 1 205.23 10.802 14.45 19.76 0.761 11 4 3 14 1 85.12 14.187 4.966 6.338 0.828 11 4 3 14 1 99.15 11.017 6.493 9.222 0.721 11 4 3 14 1 242.35 7.573 19.304 32.287 0.603 13 5 4 18 1 152.14 8.949 11.483 17.793 0.675 15 7 3 18 2
[0116] (3) The maximum absorption wavelength value was used as the target variable and the descriptors generated by Dragon were used as the independent variables. The independent variables were initially screened with the variable autocorrelation of 0.99, and 2173 descriptors were obtained;
[0117] (4) The training set and test set were randomly divided into two groups with a ratio of 4:1. The sample sizes of the training set and test set were 169 and 43, respectively.
[0118] (5) The maximum relevance minimum redundancy (mRMR) combined with the XGBoost regression algorithm was used to screen the descriptors, and 22 best descriptors were selected, namely x1: B_SM05_EA(dm), a 5th-order matrix of the edge adjacency matrix weighted by dipole moment; x2: A_F03[CO], CO bond frequency at topological distance 3; x3: B_SM06_AEA(ri), a 6th-order matrix of enhanced edge adjacency weighted by resonance integral; x4: A_GATS7i , Geary autocorrelation with lag 7 weighted by ionization potential; x5:B_C-001, number of methyl groups; x6:A_GATS2e, Geary autocorrelation with lag 2 weighted by Sanderson electronegativity; x7:B_Hy, hydrophilic factor; x8:A_piPC09, 9th-order molecular multipath number; x9:B_SpMin8_Bh(e), minimum eigenvalue 8 of the Burden matrix weighted by Sanderson electronegativity; x 10 :A_nO, number of oxygen atoms; x 11:B_MATS3v, Moran's autocorrelation of lag 3 weighted by van der Waals volume; x 12 :A_GATS2m, quality-weighted Geary autocorrelation at lag 2; x 13 :B_NaasC, number of atoms of type aasC; x 14 :A_Eta_betaP_A, ETAπ and lone pair average VEM count; x 15 :B_piPC10, 10th order molecular multipath number; x 16 :A_ATS7m, Broto-Moreau autocorrelation at lag 7 (logarithmic function) weighted by quality; x 17 :B_SpMaxA_EA(dm), the normalized leading eigenvalue of the edge adjacency matrix weighted by the dipole moment; x 18 :B_SM07_AEA(ri), the 7th-order matrix of the resonance-integrated weighted enhanced edge adjacency; x 19 :A_SpAD_EA(dm), spectral absolute deviation of the edge adjacency matrix weighted by the dipole moment; x 20 :A_Hy, hydrophilic factor; x 21 :B_nBM, the number of multiple bonds; x 22 :A_GATS7v, Geary autocorrelation with lag 7 weighted by van der Waals volume, the data of the 22 best descriptors for some samples are shown in Table 3:
[0119] Table 3. Partial data table of 22 best descriptors
[0120] <![CDATA[x1]]> <![CDATA[x2]]> <![CDATA[x3]]> <![CDATA[x4]]> <![CDATA[x5]]> <![CDATA[x6]]> <![CDATA[x7]]> <![CDATA[x8]]> <![CDATA[x9]]> <![CDATA[x 10 ]]> <![CDATA[x 11 ]]> 0 2 -3 1.909 6 1.494 -0.395 0 0.724 1 -0.407 4.118 6 0 0.501 0 0.806 2.042 3.71 0 3 -0.185 4.118 6 0 0 0 0.881 2.042 0 0 3 -0.185 0 9 -3 1.467 6 0.998 -0.395 4.08 0.724 3 -0.407 0 0 -6.87 0 3 0.638 -0.294 0 0 0 -0.438 0 4 -6.87 1.532 3 0.44 -0.294 5.6 0 2 -0.438 0 0 -6.87 0 3 1.13 -0.294 0 0 0 -0.438 0 0 -6.87 0 3 0.532 -0.294 0 0 0 -0.438 2.774 9 -5.28 1.467 2 0.998 -0.127 4.08 0 3 0.163 0 6 -3 0 6 0.881 -0.395 0 0.724 3 -0.407 <![CDATA[x 12 ]]> <![CDATA[x 13 ]]> <![CDATA[x 14 ]]> <![CDATA[x 15 ]]> <![CDATA[x 16 ]]> <![CDATA[x 17 ]]> <![CDATA[x 18 ]]> <![CDATA[x 19 ]]> <![CDATA[x 20 ]]> <![CDATA[x 21 ]]> <![CDATA[x 22 ]]> 0.872 0 0.444 0 0.409 0.101 -3.303 4.485 -0.848 3 1.998 0.887 0 0.538 0 0.472 0.263 0 4.485 0.679 3 0.643 0.732 0 0.636 0 0.527 0.263 0 9.71 -0.614 3 0.615 0.738 0 0.25 0 2.745 0.101 -3.303 13.96 -0.673 3 1.499 0.778 0 0.417 0 0 0.138 0 8.241 -0.614 3 0 0.833 0 0.857 0 2.412 0.138 0 13.037 -0.626 3 0.434 1.274 0 0.6 0 0 0.138 0 8.791 -0.359 3 0 0.575 0 0.5 0 0 0.138 0 10.498 -0.46 3 0 0.738 0 0.25 0 2.745 0.157 -5.41 13.96 -0.673 4 1.499 0.732 0 0.636 0 0.527 0.101 -3.303 9.71 -0.614 3 0.615
[0121] (6) Based on the descriptors selected in the above step (5), a new descriptor is generated by converting it according to the following formula, as shown in Table 4 for details;
[0122] Table 4. Part of the new descriptor table generated after conversion
[0123] P(1) P(2) P(3) P(4) P(5) P(6) P(7) P(8) P(9) P(10) P(11) -3.1782 0.9326 2.7342 0.8387 -2.0609 -0.5855 -1.0507 -1.1440 1.6655 -1.2725 0.8755 -2.1190 -2.8766 0.6954 -0.3338 0.3965 -2.2410 -1.1034 0.7956 -0.8393 0.7453 0.9077 -1.0234 -1.2532 -0.1511 -0.5920 -0.4816 -2.5011 -0.7928 2.1055 0.3496 0.4597 0.3345 -1.0710 0.5426 3.7107 -0.0215 -1.1129 0.6361 -1.6558 -0.8377 0.6952 -2.5634 -0.6051 -2.3897 0.3521 -1.3444 -1.0557 -0.7755 -0.1320 -0.8307 0.4198 1.7000 0.3583 -1.2323 -1.0580 0.3597 1.4789 -0.9158 -0.5661 -0.7803 -1.4076 -0.6287 0.8840 0.1023 -0.4554 -3.3106 0.8612 -0.1387 0.4932 -0.7565 -0.9010 0.1904 1.0472 1.2316 -0.6188 -1.5444 -1.7616 0.1799 -1.6415 -1.4686 -0.6903 0.0008 -1.3754 0.2606 1.8981 0.8092 -1.1241 -0.1992 1.1388 2.6359 -1.9418 -0.3458 0.3525 -0.2280 -0.3770 -0.9234 -1.5266 -0.0878 -0.8097 0.5624 1.0720 1.0985 -0.4026 0.3831 -1.6518 0.2217 1.1666 -1.8901 0.3023 P(12) P(13) P(14) P(15) P(16) P(17) P(18) P(19) P(20) P(21) P(22) 0.6781 -0.2404 -0.8922 0.5803 1.2131 -0.7119 0.1493 -0.8047 0.5099 0.4298 -0.2651 0.2357 0.9995 0.0369 0.7223 0.8211 0.0873 -0.2796 -0.0590 -0.8305 -0.2994 -0.3939 -0.9320 0.5323 0.1565 -0.0806 0.7933 0.1857 -0.1140 -0.1576 0.5844 0.0947 0.6444 0.9460 0.1229 -0.1649 -0.5885 0.4005 0.1342 -0.4190 -0.4544 0.3836 0.1407 0.1540 1.0789 0.3472 0.7419 0.1733 -0.3605 0.3058 0.0274 -0.1176 -0.0368 0.3212 -0.1299 -0.0725 -1.8064 1.1486 -1.0105 -0.7966 -0.2795 0.2466 0.1686 -0.5786 -0.2804 -1.4596 0.9426 -0.3979 0.6573 0.9147 -0.5049 -0.0866 0.0757 0.6217 -0.5868 0.2222 0.0234 0.8346 -0.1199 0.4177 -0.0857 -0.5011 0.0098 0.1934 -0.3530 -0.0752 0.1993 0.1140 -0.9628 0.2668 -0.0975 0.1320 -0.4544 0.3061 -0.3581 -0.7323 0.0425 0.0039 -0.2033 1.5820 -0.3709 -0.0230 0.1386 0.5897 0.0203 -0.1224 0.1812 1.2956 0.4548 1.0225
[0124] (7) Based on the new descriptors generated in step (6), a rapid prediction model for the maximum absorption wavelength of azo dyes is established using XGBoost regression;
[0125] (8) based on the established azo dye maximum absorption wavelength rapid prediction model and the azo dye molecule to be tested, rapidly predicting the maximum absorption wavelength value of the azo dye to be tested;
[0126] In this embodiment, the modeling effect of the maximum absorption wavelength prediction model of azo dyes established based on 169 XGBoost regression algorithms is as follows: Figure 2The XGBoost regression algorithm was used to perform regression modeling on the data of 169 azo dyes, and an XGBoost regression quantitative prediction model for the maximum absorption wavelength of monoazo dyes was established. The correlation coefficient between the model prediction value and the experimental value reported in the literature was 0.99, the average absolute error was 0.04, and the root mean square error was 0.23.
[0127] In this embodiment, the prediction results of the independent test set of the maximum absorption wavelength prediction model of azo dyes established based on 169 XGBoost regression algorithms are as follows: Figure 4 The XGBoost regression algorithm prediction model of azo dyes was established to predict 43 samples of the independent test set, and the prediction results were good. The average absolute error between the predicted value of azo dyes and the experimental value reported in the literature was 28.32.
[0128] Embodiment 5
[0129] This embodiment is basically the same as the above embodiment, with the following features:
[0130] In this embodiment, a system for quickly predicting the maximum absorption wavelength of a dye implements the method for quickly predicting the maximum absorption wavelength of a dye based on the XGBoost algorithm described in the above embodiment, including:
[0131] Input module: using a computer system, collect the molecular structure of azo dyes and their corresponding maximum absorption wavelength experimental values from the literature and use them as input data;
[0132] Data analysis module: using the data obtained from the input module, a method based on the XGBoost algorithm to quickly predict the maximum absorption wavelength of the dye is executed to quickly predict the maximum absorption wavelength of the azo dye to be detected;
[0133] Output module: outputs the data of the maximum absorption wavelength of the azo dye to be detected.
[0134] The advantages of the system of this embodiment are that it does not require the synthesis of samples or the sending of samples for testing when running the program, it is low-cost and can quickly calculate a large number of samples at the same time. It can predict the maximum absorption wavelength of the dye and provide a favorable reference for the subsequent screening of dyes that meet specific color requirements, thereby improving R&D efficiency and shortening the R&D cycle.
[0135] 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 method for quickly predicting the maximum absorption wavelength of a dye based on the XGBoost algorithm, characterized in that: The steps include: 1) Using a computer system, search for the molecular structure of azo dyes and the corresponding experimental value of the maximum absorption wavelength from the literature, perform data preprocessing, sort out the molecular structure formula of the sample, obtain the experimental value of the maximum absorption wavelength of the sample, and use the preprocessed data set sample as the data set sample for subsequent modeling; 2) using a chemical drawing program to draw the collected dye molecular structures on the samples of the data set, and using a descriptor generation program to generate corresponding descriptors; 3) Taking the maximum absorption wavelength experimental value of the sample in the data set as the target variable, using the generated descriptor as the independent variable, removing redundant independent variables through the variable screening method, and retaining the best independent variable subset; 4) Randomly dividing the data set into a training set and a test set; 5) Perform secondary screening of the independent variables on the best independent variable subset, transform the screened best independent variables, and obtain a new independent variable subset; 6) The target variable is the data set of step 1) as a sample, and the independent variable is the independent variable subset of step 6). The target variable and the independent variable are used to build a training model using the XGBoost algorithm to establish a rapid prediction model for the maximum absorption wavelength of azo dyes; 7) According to the established rapid prediction model of the maximum absorption wavelength of the azo dye and the molecular structure of the azo dye to be tested, the maximum absorption wavelength of the azo dye to be tested is rapidly predicted.
2. The method for quickly predicting the maximum absorption wavelength of a dye based on the XGBoost algorithm according to claim 1, characterized in that: In step 5), the new independent variable obtained is: P(1)=-0.1468x1+0.07953x2+0.005442x3-0.1144x4-0.03946x5-0.7645x6-0.1187x7-0.02542x8+0.2509x9+0.2106x10+1.518x11-1.4 90x12+0.3446x13+1.073x14+0.1408x15+0.008882x16+3.373x17-0.08313x18+0.08137x19-0.1829x20+0.1180x21-0.1042x22-2.007; P(2)=-0.3452x1-0.001333x2-0.1305x3+0.03473x4+0.06318x5+0.5968x6-0.08493x7-0.05796x8-0.4417x9-0.0002596x 10 +0.8958x 11 +0.6900x 12 -0.1266x 13 +0.3495x 14 -0.002020x 15 -0.03937x 16 +4.958x 17 -0.2235x 18 +0.06097x 19 -0.8796x 20 -0.04725x 21 +0.007784x 22 -3.015; P(3)=-0.04478x1+0.03094x2+0.1164x3+0.4955x4+0.1280x5+0.5930x6-0.2875x7+0.1254x8+0.4020x9+0.08689x 10 -0.6100x 11 +1.735x 12 -0.01940x 13 +0.004682x 14 +0.05438x 15 +0.2704x 16 +6.064x 17 -0.1437x 18 +0.04459x 19 +0.1100x 20 -0.09971x 21 +0.5054x 22 -3.849; P(4)=-0.009321x1-0.06079x2+0.2526x3-0.2809x4+0.1216x5+0.06794x6-0.4561x7+0.05122x8+1.249x9-0.07666x 10 -0.7976x 11 +2.530x 12 -0.03591x 13 +1.490x 14 +0.1424x 15 +0.0004158x 16 +7.116x 17 -0.1939x 18 -0.004350x 19 -0.03845x 20 -0.1580x 21 -0.1890x 22 -3.298; P(5)=+0.1486x1-0.04740x2+0.06389x3-0.4567x4-0.08375x5-1.068x6-0.1309x7+0.08396x8-0.2237x9-0.02917x 10 -1.069x 11 +0.6590x 12 +0.09570x 13 +0.5122x 14 +0.1219x 15 +0.1383x 16 +1.394x 17 -0.3684x 18 -0.005981x 19 +0.4988x 20 -0.2064x 21 -0.1966x 22 +0.1455; P(6)=-0.06321x1-0.06233x2+0.09175x3-0.4032x4-0.03185x5-0.8999x6-0.6305x7+0.006485x8-0.08835x9-0.004323x 10 +0.4255x 11 -0.3270x 12 -0.04173x 13 -1.365x 14 +0.1730x 15 +0.2213x 16 -5.996x 17 -0.2242x 18 +0.01693x 19 +0.2991x 20 -0.3007x 21 +0.04562x 22 +3.766; P(7)=+0.01173x1-0.05926x2+0.04441x3-0.4263x4-0.2526x5+0.6295x6-0.2542x7-0.02312x8-1.104x9+0.06854x 10 +0.1134x 11 +1.756x 12 +0.5732x 13 -0.4101x 14 +0.2815x 15 +0.1898x 16 -4.937x 17 -0.07380x 18 -0.01904x 19 -0.2896x 20 -0.1891x 21 +0.3324x 22 -0.1618; P(8)=+0.1105x1-0.02617x2+0.02652x3-0.8271x4-0.05887x5+0.5631x6+0.02257x7-0.1536x8-1.503x9+0.3102x 10 -0.9672x 11 +0.7700x 12 +0.3457x 13 -0.06278x 14 +0.2976x 15 +0.1385x 16 -0.9929x 17 +0.06927x 18 +0.03850x 19 -0.1615x 20 -0.3619x 21 +0.3208x 22 +0.2358; P(9)=+0.02127x1-0.1786x2-0.06685x3-0.4015x4+0.3178x5-0.1032x6+0.2255x7-0.1113x8-0.9447x9+0.08232x 10 -1.404x 11 -0.8030x 12 +0.6998x 13 +0.1931x14+0.3646x 15 +0.2034x 16 -0.09102x 17 +0.08943x 18 +0.02135x 19 -0.2601x 20 -0.3098x 21 +0.7253x 22 +0.9554; P(10)=-0.1770x1-0.1774x2+0.006306x3-0.2404x4-0.04884x5-0.2527x6+0.02039x7+0.03926x8-1.702x9+0.07748x 10 +0.5582x 11 -2.127x 12 +0.2517x 13 +0.8850x 14 +0.1794x 15 +0.04091x 16 +5.594x 17 +0.1376x 18 -0.05464x 19 +0.2750x 20 -0.2324x 21 +0.6710x 22 +2.790; P(11)=-0.05616x1-0.06217x2-0.02304x3-0.1938x4+0.2139x5+0.1186x6+0.2535x7+0.08223x8-0.5295x9+0.3386x 10 +2.094x 11 -1.292x 12 -0.1709x 13 +1.838x 14 +0.1669x 15 -0.1044x 16 +0.6906x 17 +0.01153x 18 -0.1321x 19 +0.02713x 20 -0.1830x 21 +0.8217x 22 +0.6820; P(12)=-0.3046x1-0.01073x2-0.02445x3-0.6758x4+0.2464x5-0.03164x6+0.01964x7+0.1548x8-0.7268x9+0.3027x 10 -1.149x 11 +0.1688x 12 -0.1605x 13 -1.350x 14 +0.1300x 15 -0.3169x 16 -0.3204x 17 +0.007568x 18 -0.06604x 19 +0.3098x 20 +0.02328x 21 +0.2713x 22 +0.8352; P(13)=-0.04337x1-0.08791x2+0.07980x3-0.6369x4+0.1290x5-0.7322x6+0.3031x7+0.1606x8-0.8637x9+0.2216x 10 +0.1595x 11 +0.7907x 12 -0.6508x 13 -3.742x 14 +0.1753x 15 -0.3929x 16 +1.428x 17 -0.004318x 18 -0.009281x 19 -0.3420x 20 +0.07558x 21 +0.6384x 22 +1.523; P(14)=+0.02989x1-0.1218x2+0.05419x3-0.6072x4+0.1960x5-1.762x6+0.02483x7+0.2813x8-1.613x9+0.2832x 10 -0.1367x 11 +2.201x 12 -0.6199x 13 -0.6117x 14 +0.08369x 15 -0.4650x 16 -2.183x 17 +0.06825x 18 +0.05490x 19 -0.8920x 20 +0.06140x 21 +0.7572x 22 -0.7424; P(15)=+01169x1-01483x2+001328x3-03053x4+01536x5-06943x6-01216x7+006248x8-06836x9+0.2833x 10 +0.9688x 11 +2.265x 12 +0.1987x 13 -0.9578x 14 -0.05165x 15 -0.6580x 16 -0.9617x 17 -0.02333x 18 +0.06494x 19 +0.3898x 20 +0.03080x 21 +0.9222x 22 -0.9825; P(16)=-0.1550x1-0.1281x2+0.1309x3-0.05866x4-0.1344x5-1.094x6+0.2870x7+0.06733x8+0.5596x9+0.3920x 10 -0.3636x 11 +1.244x 12 +0.4942x 13 -1.000x 14 -0.1326x 15 -0.6449x 16 -2.707x 17 -0.04000x 18 +0.0535x 19 -0.2715x 20 -0.06113x 21 +1.050x 22 +0.9641; P(17)=+0.08381x1-0.1054x2-0.1433x3-0.4815x4-0.1768x5-0.4814x6-0.08084x7+0.1586x8+1.579x9+0.3521x 10 +0.2724x 11 +0.6562x 12 +0.4360x 13 -1.893x 14 -0.09452x 15 -0.1887x 16 +1.826x 17 +0.05249x 18 +0.01277x 19 -0.5550x 20 -0.07673x 21 +0.1618x 22 +0.06534; P(18)=+0.07249x1-0.1885x2-0.1806x3-0.09214x4-0.3839x5+0.5123x6-0.1603x7+0.07763x8+1.838x9+0.3805x 10 -1.214x 11 -0.5214x 12 -0.3239x 13 +0.2161x 14 +0.01676x 15 -0.1699x 16 -0.4673x 17 +0.004565x 18 +0.04535x 19 -0.03797x 20 +0.01406x 21 +0.3348x 22 -1.027; P(19)=-0.1175x1-0.1880x2-0.01379x3-0.3925x4-0.07044x5-0.2917x6+0.09341x7-0.06911x8+0.5469x9+0.3977x 10 +0.06104x 11 +1.581x 12 -0.2019x 13 +0.1832x 14 -0.07002x 15 +0.4297x 16 -0.4373x 17 -0.003169x 18 +0.0001358x 19 +0.2545x 20 +0.08886x 21 -0.06477x 22 -1.118; P(20)=+0.08123x1-0.2253x2+0.08497x3-0.5679x4+0.03546x5+0.2170x6-0.2738x7-0.1333x8-0.1056x9+0.5705x 10 -1.070x 11 -0.9166x 12 -0.05864x 13 -0.2105x 14 -0.1546x 15 +0.4839x 16 +0.2875x 17 -0.09273x 18 -0.04427x 19 -0.5460x 20 +0.1642x 21 +0.1383x 22 +0.05128; P(21)=-0.02327x1+0.08022x2-0.08145x3-0.5957x4-0.1105x5-1.042x6-0.2198x7-0.1200x8+0.4716x9-0.1289x 10 -0.7229x 11 +0.7876x 12 -0.1554x 13 +0.3089x 14 -0.02132x 15 +0.09991x 16 +1.897x 17 +0.01432x 18 -0.04045x 19 -0.04416x 20 +0.03642x 21 +1.123x 22 -0.4297; P(22)=-0.04836x1+0.06341x2-0.005342x3-1.683x4-0.05461x5+0.3883x6+0.01348x7+0.002202x8+0.7124x9-0.2961x 10 +0.02117x 11 -0.5521x 12 -0.09357x 13 +1.039x 14 -0.07988x 15 +0.2085x 16 -0.01309x 17 -0.003115x 18 +0.03063x 19 +0.1140x 20 +0.04054x 21 +1.328x 22 -0.5431; where x1: B_SM05_EA(dm), the 5th-order matrix of the edge adjacency matrix weighted by dipole moment; x2: A_F03[CO], the CO bond frequency at topological distance 3; x3: B_SM06_AEA(ri), the 6th-order matrix of the enhanced edge adjacency weighted by the resonance integral; x4: A_GATS7i, the Geary autocorrelation with lag 7 weighted by ionization potential; x5: B_C-001, the number of methyl groups; x6: A_GATS2e, the Geary autocorrelation with lag 2 weighted by Sanderson electronegativity; x7: B_Hy, the hydrophilic factor; x8: A_piPC09, the 9th-order molecular multipath number; x9: B_SpMin8_Bh(e), the minimum eigenvalue 8 of the Burden matrix weighted by Sanderson electronegativity; 10 :A_nO, number of oxygen atoms; x 11 :B_MATS3v, Moran's autocorrelation of lag 3 weighted by van der Waals volume; x 12 :A_GATS2m, quality-weighted Geary autocorrelation at lag 2; x 13 :B_NaasC, number of atoms of type aasC; x 14 :A_Eta_betaP_A, ETAπ and lone pair average VEM count; x 15 :B_piPC10, 10th order molecular multipath number; x 16 :A_ATS7m, Broto-Moreau autocorrelation at lag 7 (logarithmic function) weighted by quality; x 17 :B_SpMaxA_EA(dm), the normalized leading eigenvalue of the edge adjacency matrix weighted by the dipole moment; x 18 :B_SM07_AEA(ri), the 7th-order matrix of the resonance-integrated weighted enhanced edge adjacency; x 19 :A_SpAD_EA(dm), spectral absolute deviation of the edge adjacency matrix weighted by the dipole moment; x 20 :A_Hy, hydrophilic factor; x 21 :B_nBM, the number of multiple bonds; x 22 :A_GATS7v, Geary autocorrelation at lag 7 weighted by van der Waals volume.
3. The method for rapidly predicting the maximum absorption wavelength of a dye based on the XGBoost algorithm according to claim 1, characterized in that: In the step 3), the variable screening method is as follows: First, calculate the correlation coefficients between each feature and between the features and the target value, sort them according to the size of the correlation coefficient, select features or directly delete redundant features whose correlation coefficients between features are greater than the threshold, and then find a set of features in the feature set that has the greatest correlation with the category but the least redundancy between features, and select them as the best independent variable subset.
4. The method for rapidly predicting the maximum absorption wavelength of a dye based on the XGBoost algorithm according to claim 1, characterized in that: In the step 2), the collected dye molecular structures are drawn using Chemdraw software, and the molecular structures are exported in the form of SMILES strings, and then the corresponding descriptors are generated using Dragon software.
5. The method for rapidly predicting the maximum absorption wavelength of a dye based on the XGBoost algorithm according to claim 4, characterized in that: In the step 3), the maximum absorption wavelength value of the experiment is used as the target variable, and the descriptor generated by the Dragon software is used as the independent variable. One variable in the variable pair with a correlation coefficient of 0.99 is deleted, and the independent variable with a larger correlation coefficient with the target variable is retained to obtain a preliminary screened independent variable data set and a target variable data set.
6. The method for rapidly predicting the maximum absorption wavelength of a dye based on the XGBoost algorithm according to claim 1, characterized in that: In the step 4), the data set is randomly divided into a training set and a test set. According to the data volume, the proportion of the test set does not exceed 20% of the entire data set.
7. The method for rapidly predicting the maximum absorption wavelength of a dye based on the XGBoost algorithm according to claim 1, characterized in that: In the step 5), the best independent variable subset is subjected to secondary screening of independent variables, and the maximum relevance minimum redundancy (mRMR) method is combined with the XGBoost regression leave-one-out method to select the best independent variable subset for modeling.
8. A system for implementing rapid prediction of the maximum absorption wavelength of a dye, executing the method for rapid prediction of the maximum absorption wavelength of a dye based on the XGBoost algorithm as described in any one of claims 1 to 7, characterized in that: include: Input module: using a computer system, collect the molecular structure of azo dyes and their corresponding maximum absorption wavelength experimental values from the literature and use them as input data; Data analysis module: using the data obtained from the input module, a method based on the XGBoost algorithm to quickly predict the maximum absorption wavelength of the dye is executed to quickly predict the maximum absorption wavelength of the azo dye to be detected; Output module: outputs the data of the maximum absorption wavelength of the azo dye to be detected.
Citation Information
Patent Citations
Colour blending method for forcasting fabric dyeing formulation
CN1080677A
Improved method for determining recipes of dye mixtures
GB1103949A
