Binary composite organic corrosion inhibitor optimization method, device, equipment and medium
Through data processing and machine learning model prediction of single organic corrosion inhibitors, combined with multi-objective optimization algorithms, the composition of binary compound organic corrosion inhibitors is optimized, which solves the problems of low efficiency, high cost and environmental pollution of existing corrosion inhibitors. , achieving a more efficient and environmentally friendly metal protection effect.
Patent Information
- Application Number
- CN202411006168.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-25
- Publication Date
- 2024-10-11
- Estimated Expiration
- 2044-07-25
AI Technical Summary
Existing compound corrosion inhibitors have problems such as low corrosion inhibition efficiency, high cost, toxicity or environmental pollution during use.
By normalizing and dimensionally reducing the data of single organic corrosion inhibitors, combining machine learning models to predict the corrosion inhibition efficiency under different ratios, and using multi-objective optimization algorithms to optimize the composition of binary compound organic corrosion inhibitors, Improve corrosion inhibition efficiency, reduce costs, and reduce environmental pollution.
The composition of the binary compound corrosion inhibitor is optimized to improve the corrosion inhibition efficiency, reduce costs, reduce environmental pollution, and provide a more environmentally friendly metal protection solution.
Smart Images

Figure CN118522388B_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of material technology, and in particular to a method, device, equipment and medium for optimizing a binary composite organic corrosion inhibitor. Background Art
[0002] At present, there are many compound corrosion inhibitors on the market, which are widely used for metal protection in different media (such as acidic, alkaline and neutral). Existing compound corrosion inhibitors usually achieve effective protection of metals through a combination of multiple organic corrosion inhibitors. However, during the use of existing compound corrosion inhibitors, they may face problems such as low corrosion inhibition efficiency, high cost, toxicity or environmental pollution. Summary of the invention
[0003] In order to solve the above technical problems, the embodiments of the present application provide a method, device, equipment and medium for optimizing a binary composite organic corrosion inhibitor.
[0004] In a first aspect, an embodiment of the present application provides a method for optimizing a binary composite organic corrosion inhibitor, the method comprising:
[0005] Normalizing the first collected data of the mono-organic corrosion inhibitor and the second collected data of the binary composite organic corrosion inhibitor respectively to obtain first normalized data and second normalized data;
[0006] Acquire an initial training data set according to the first normalized data and the second normalized data;
[0007] Performing dimension reduction on the data set features of the initial training data set to obtain a training data set after dimension reduction;
[0008] The reduced-dimensional training data set is divided into a training set, a validation set, and a test set according to a preset ratio, a corresponding preset machine learning model is selected, and the corrosion inhibition efficiency is used as the output of the preset machine learning model. The training, validation, and testing processes are performed to obtain a candidate corrosion inhibition efficiency prediction model;
[0009] Performing dimensionality reduction processing on the first normalized data to obtain first dimensionality reduced data;
[0010] Inputting the first dimension reduction data into the candidate corrosion inhibition efficiency prediction model, taking the corrosion inhibition efficiency as output, and predicting the corrosion inhibition efficiency of the two monocyclic organic corrosion inhibitors under different ratios by setting different ratios of the two monocyclic organic corrosion inhibitors;
[0011] Determine multiple candidate binary composite organic corrosion inhibitors according to the predicted corrosion inhibition efficiency and target corrosion inhibition efficiency threshold of two mono-organic corrosion inhibitors at different ratios;
[0012] Based on the toxicity and environmental protection data of the monolithic organic corrosion inhibitor and the predicted corrosion inhibition efficiency of each of the candidate binary composite organic corrosion inhibitors, a multi-objective optimization algorithm is used to solve the multi-objective optimization function to obtain a target binary composite organic corrosion inhibitor from a plurality of the candidate binary composite organic corrosion inhibitors.
[0013] In one embodiment, based on the toxicity and environmental protection data of the mono-organic corrosion inhibitor and the predicted corrosion inhibition efficiency of each of the candidate binary composite organic corrosion inhibitors, a multi-objective optimization algorithm is used to solve the multi-objective optimization function to obtain a target binary composite organic corrosion inhibitor from a plurality of the candidate binary composite organic corrosion inhibitors, including:
[0014] Taking the ratio of two organic corrosion inhibitors of the binary composite organic corrosion inhibitor as input, setting the initial value of the ratio, predicting the corrosion inhibition efficiency based on the candidate corrosion inhibition efficiency prediction model, and calculating the comprehensive evaluation score using a multi-objective optimization function;
[0015] Iteratively solve the comprehensive evaluation score. In each iteration, according to the current ratio and the current comprehensive evaluation score, the next ratio is selected and the next comprehensive evaluation score is calculated;
[0016] After each iteration, the candidate corrosion inhibition efficiency prediction model is updated and optimized using the current comprehensive evaluation score, and a set of optimal ratios is obtained during the iteration process. The target binary composite organic corrosion inhibitor is determined based on the optimal ratios.
[0017] In one embodiment, the method of calculating the comprehensive evaluation score using a multi-objective optimization function includes:
[0018] The comprehensive evaluation score is calculated using the following multi-objective optimization function;
[0019] ,
[0020] Among them, Score represents the comprehensive evaluation score, IE is the corrosion inhibition efficiency predicted by the candidate corrosion inhibition efficiency prediction model under the corresponding organic corrosion inhibitor ratio, EI is environmental protection, VI is toxicity, , , is the weight;
[0021] The ratio of the two organic corrosion inhibitors in the binary composite organic corrosion inhibitor is The environmental performance of the two organic corrosion inhibitors in the binary composite organic corrosion inhibitor is and The toxicity of the two organic corrosion inhibitors in the binary composite organic corrosion inhibitor is and ,but , .
[0022] In one embodiment, the obtaining an initial training data set according to the first normalized data and the second normalized data includes:
[0023] Determining normalized data of the organic corrosion inhibitor to be replaced according to the first normalized data;
[0024] When one organic corrosion inhibitor of the binary composite organic corrosion inhibitor is fixed, an initial training data set is generated according to the second normalized data, the normalized data of the organic corrosion inhibitor to be replaced, the normalized data of the fixed organic corrosion inhibitor, and the ratio of the organic corrosion inhibitor to be replaced and the fixed organic corrosion inhibitor.
[0025] In one embodiment, the dimensionality reduction of the dataset features of the initial training dataset includes:
[0026] make is the normalized data of the initial training data set Matrix representation, let the matrix ,in for The transpose of
[0027] Pair Matrix Perform eigendecomposition and obtain eigenvalues and the corresponding unit eigenvector , where the eigenvector satisfy ;
[0028] Select the first k unit eigenvectors with the largest eigenvalues to form the projection matrix ;
[0029] Using the projection matrix The initial training data set Project to a new low-dimensional feature space to obtain a reduced-dimensional training data set , wherein the training data set after dimensionality reduction contains n samples and k features;
[0030] Acquiring the first collected data of the mono-organic corrosion inhibitor and the second collected data of the binary composite organic corrosion inhibitor, including:
[0031] Determine a preset application environment, wherein the preset application environment includes: a protected metal, a preset medium type, and a preset temperature;
[0032] The first collected data of the mono-organic corrosion inhibitor and the second collected data of the binary composite organic corrosion inhibitor under the preset application environment are collected respectively, wherein the first collected data include: attribute data and performance data of the organic corrosion inhibitor; the second collected data include: attribute data, performance data and formula data of two corrosion inhibitor molecules; the attribute data include the SMILES format of the molecular structure of the organic corrosion inhibitor and the data set characteristics, and the data set characteristics include molecular descriptors and quantum chemical properties; the performance data include corrosion inhibition efficiency, toxicity and environmental protection;
[0033] After obtaining the target binary composite organic corrosion inhibitor, the method further comprises:
[0034] Under the preset application environment, the target binary composite organic corrosion inhibitor is used to perform a corrosion resistance test to obtain an experimental corrosion inhibition efficiency;
[0035] The candidate corrosion inhibition efficiency prediction model is optimized according to the experimental corrosion inhibition efficiency.
[0036] In one embodiment, the method further comprises:
[0037] The target binary composite organic corrosion inhibitor is experimentally verified based on high-throughput experiments to obtain experimental results;
[0038] Optimizing the parameters of the candidate corrosion inhibition efficiency prediction model according to the experimental results to obtain an optimized corrosion inhibition efficiency prediction model;
[0039] The corrosion inhibition efficiency of binary composite organic corrosion inhibitors under different ratios is predicted by the optimized corrosion inhibition efficiency prediction model, and the optimal binary composite organic corrosion inhibitor is obtained based on the new predicted corrosion inhibition efficiency, the target corrosion inhibition efficiency threshold and the multi-objective optimization algorithm.
[0040] In one embodiment, the method further comprises:
[0041] The trained preset machine learning model is used on the validation set. and To evaluate, the calculation formula is as follows:
[0042] ,
[0043] ,
[0044] in is the corrosion inhibition efficiency prediction value obtained based on the trained preset machine learning model. is the experimental value of corrosion inhibition efficiency, is the average corrosion inhibition efficiency value, and m is the number of predicted corrosion inhibition efficiency values.
[0045] In a second aspect, an embodiment of the present application provides a binary composite organic corrosion inhibitor optimization device, the binary composite organic corrosion inhibitor optimization device comprising:
[0046] A first processing module is used to perform normalization processing on the first collected data of the mono-organic corrosion inhibitor and the second collected data of the binary composite organic corrosion inhibitor to obtain first normalized data and second normalized data;
[0047] A first acquisition module, configured to acquire an initial training data set according to the first normalized data and the second normalized data;
[0048] A first dimension reduction module is used to reduce the dimension of the data set features of the initial training data set to obtain a training data set after dimension reduction;
[0049] The second processing module is used to divide the dimension-reduced training data set into a training set, a validation set and a test set according to a preset ratio, select a corresponding preset machine learning model, use the corrosion inhibition efficiency as the output of the preset machine learning model, perform training, validation and testing processes, and obtain a candidate corrosion inhibition efficiency prediction model;
[0050] A second dimension reduction module, used for performing dimension reduction processing on the first normalized data to obtain first dimension reduction data;
[0051] A prediction module, used for inputting the first dimension reduction data into the candidate corrosion inhibition efficiency prediction model, taking the corrosion inhibition efficiency as output, and predicting the corrosion inhibition efficiency of the two monocyclic organic corrosion inhibitors under different ratios by setting different ratios of the two monocyclic organic corrosion inhibitors;
[0052] A determination module, used to determine a plurality of candidate binary composite organic corrosion inhibitors according to the predicted corrosion inhibition efficiency and target corrosion inhibition efficiency threshold of two mono-organic corrosion inhibitors at different ratios;
[0053] The second acquisition module is used to solve the multi-objective optimization function using a multi-objective optimization algorithm based on the toxicity and environmental protection data of the monolithic organic corrosion inhibitor and the predicted corrosion inhibition efficiency of each of the candidate binary composite organic corrosion inhibitors, so as to obtain a target binary composite organic corrosion inhibitor from a plurality of the candidate binary composite organic corrosion inhibitors.
[0054] In a third aspect, an embodiment of the present application provides an electronic device including a memory and a processor, wherein the memory is used to store a computer program, and when the computer program is run on the processor, the binary composite organic corrosion inhibitor optimization method provided in the first aspect is executed.
[0055] In a fourth aspect, an embodiment of the present application provides a computer-readable storage medium storing a computer program, which, when running on a processor, executes the binary composite organic corrosion inhibitor optimization method provided in the first aspect.
[0056] The binary composite organic corrosion inhibitor optimization method, device, equipment and medium provided by the present application respectively normalize the first collected data of the monolithic organic corrosion inhibitor and the second collected data of the binary composite organic corrosion inhibitor to obtain the first normalized data and the second normalized data; obtain the initial training data set according to the first normalized data and the second normalized data; reduce the dimension of the data set features of the initial training data set to obtain the reduced-dimensional training data set; divide the reduced-dimensional training data set into a training set, a validation set and a test set according to a preset ratio, select the corresponding preset machine learning model, use the corrosion inhibition efficiency as the output of the preset machine learning model, execute the training, validation and testing process, and obtain a candidate corrosion inhibition efficiency prediction model; reduce the dimension of the first normalized data, The first dimensionality reduction data is obtained; the first dimensionality reduction data is input into a candidate corrosion inhibition efficiency prediction model, and the corrosion inhibition efficiency is used as the output. By setting different ratios of the two monolithic organic corrosion inhibitors, the corrosion inhibition efficiency of the two monolithic organic corrosion inhibitors under different ratios is predicted; a plurality of candidate binary composite organic corrosion inhibitors are determined according to the predicted corrosion inhibition efficiency of the two monolithic organic corrosion inhibitors under different ratios and the target corrosion inhibition efficiency threshold; based on the toxicity and environmental protection data of the monolithic organic corrosion inhibitors and the predicted corrosion inhibition efficiency of each candidate binary composite organic corrosion inhibitor, a multi-objective optimization algorithm is used to obtain a target binary composite organic corrosion inhibitor from a plurality of candidate binary composite organic corrosion inhibitors, so as to optimize the composition of the binary composite corrosion inhibitor, improve the corrosion inhibition efficiency of the binary composite corrosion inhibitor, reduce costs, and reduce environmental pollution. BRIEF DESCRIPTION OF THE DRAWINGS
[0057] In order to more clearly illustrate the technical solution of the present application, the following is a brief introduction to the drawings required for use in the embodiments. It should be understood that the following drawings only illustrate certain embodiments of the present application and should not be regarded as limiting the scope of protection of the present application. In each of the drawings, similar components are numbered similarly.
[0058] Figure 1 A first flow chart of the binary composite organic corrosion inhibitor optimization method provided in an embodiment of the present application is shown;
[0059] Figure 2 A second flow chart of the binary composite organic corrosion inhibitor optimization method provided in an embodiment of the present application is shown;
[0060] Figure 3 A third flow chart of the binary composite organic corrosion inhibitor optimization method provided in an embodiment of the present application is shown;
[0061] Figure 4 A fourth flow chart of the binary composite organic corrosion inhibitor optimization method provided in an embodiment of the present application is shown;
[0062] Figure 5 The fifth process diagram of the binary composite organic corrosion inhibitor optimization method provided in the embodiment of the present application is shown;
[0063] Figure 6 The sixth flow diagram of the binary composite organic corrosion inhibitor optimization method provided in the embodiment of the present application is shown;
[0064] Figure 7 A structural schematic diagram of a binary composite organic corrosion inhibitor optimization device provided in an embodiment of the present application is shown.
[0065] Icons: 700-binary composite organic corrosion inhibitor optimization device, 701-first processing module, 702-first acquisition module, 703-first dimensionality reduction module, 704-second processing module, 705-second dimensionality reduction module, 706-prediction module, 707-determination module, 708-second acquisition module. DETAILED DESCRIPTION
[0066] The technical solutions in the embodiments of the present application will be described clearly and completely below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, rather than all of the embodiments.
[0067] The components of the embodiments of the present application generally described and shown in the drawings herein may be arranged and designed in various configurations. Therefore, the following detailed description of the embodiments of the present application provided in the drawings is not intended to limit the scope of the application claimed for protection, but merely represents the selected embodiments of the present application. Based on the embodiments of the present application, all other embodiments obtained by those skilled in the art without making creative work belong to the scope of protection of the present application.
[0068] Hereinafter, the terms "including", "having" and their cognates, which may be used in various embodiments of the present application, are intended only to indicate specific features, numbers, steps, operations, elements, components, or combinations of the foregoing items, and should not be understood as first excluding the existence of one or more other features, numbers, steps, operations, elements, components, or combinations of the foregoing items or adding the possibility of one or more features, numbers, steps, operations, elements, components, or combinations of the foregoing items.
[0069] Furthermore, the terms “first”, “second”, “third”, etc. are merely used for distinguishing descriptions and are not to be understood as indicating or implying relative importance.
[0070] Unless otherwise defined, all terms (including technical terms and scientific terms) used herein have the same meanings as those generally understood by those skilled in the art to which the various embodiments of the present application belong. The terms (such as those defined in generally used dictionaries) will be interpreted as having the same meanings as the contextual meanings in the relevant technical field and will not be interpreted as having idealized meanings or overly formal meanings unless clearly defined in the various embodiments of the present application.
[0071] Example 1
[0072] The embodiment of the present application provides a method for optimizing a binary composite organic corrosion inhibitor, which can optimize the composition of the binary composite corrosion inhibitor, improve the corrosion inhibition efficiency of the binary composite corrosion inhibitor, reduce costs, and reduce environmental pollution.
[0073] See also Figure 1 The binary composite organic corrosion inhibitor optimization method includes steps S101 to S108, and each step is described below.
[0074] Step S101 , normalizing the first collected data of the mono-organic corrosion inhibitor and the second collected data of the binary composite organic corrosion inhibitor to obtain first normalized data and second normalized data.
[0075] In this embodiment, the first collected data and the second collected data can be collected from a database. Exemplarily, the first collected data of a mono-organic corrosion inhibitor and the second collected data of a binary composite organic corrosion inhibitor under a preset application environment (preset temperature, preset medium type, preset protected metal) are obtained from a literature database, a patent database, a laboratory data, and a public database.
[0076] For example, see Figure 2 , obtaining the first collected data of the mono-organic corrosion inhibitor and the second collected data of the binary composite organic corrosion inhibitor, including:
[0077] Step S201, determining a preset application environment, wherein the preset application environment includes: a protected metal, a preset medium type, and a preset temperature.
[0078] Step S202 , respectively collecting the first collected data of the mono-organic corrosion inhibitor and the second collected data of the binary composite organic corrosion inhibitor under the preset application environment.
[0079] It should be noted that the first collected data includes: attribute data and performance data of organic corrosion inhibitors; the second collected data includes: attribute data, performance data and formula data of two corrosion inhibitor molecules; the attribute data includes the SMILES format and data set features of the organic corrosion inhibitor molecular structure, and the data set features include molecular descriptors and quantum chemical properties; the performance data include corrosion inhibition efficiency, toxicity and environmental protection. Among them, SMILES (Simplified Molecular Input Line Entry System) is a specification that uses ASCII strings to clearly describe molecular structures.
[0080] It should be noted that the first collected data of the mono-organic corrosion inhibitor includes the property data and performance data of the mono-organic corrosion inhibitor molecule itself, and the second collected data of the binary composite organic corrosion inhibitor includes the property data, performance data and formula data of the two mono-organic corrosion inhibitor molecules. The property data include the SMILES format of the mono-organic corrosion inhibitor molecular structure, molecular descriptors (including molecular weight, polar surface area, etc.), quantum chemical properties (including dipole moment, polarizability, HOMO, LUMO, HOMO-LUMO gap, ionization potential, electron affinity, electronegativity, hardness, softness, electrophilicity, electron donor capacity, electron acceptor capacity, number of transferred electrons, N atomic charge, adsorption energy, van der Waals surface area, van der Waals volume, etc.). The performance data include corrosion inhibition efficiency, toxicity and environmental protection.
[0081] It should be noted that the formula data is the ratio of two mono-organic corrosion inhibitors. The molecular descriptor can be calculated by using the RDKIT software package on the SMILES format data, and the quantum chemical properties can be obtained by the following steps: (1) Hydrogenate the SMILES format data into a rough three-dimensional molecular structure through RDKIT, perform a rough structure optimization based on MMFF, and save the molecular structure into a .mol file; (2) Then use the Multiwfn software to batch convert the .mol format files into .gjf format files input by the Gaussian software. The gjf file contains molecular structure information and keywords that the Gaussian software can recognize. (3) Finally, the converted gjf files are batch calculated using the Gaussian software to obtain the output file. (4) Extract the parameters related to the above quantum chemical properties from the output file.
[0082] It is further explained that the corrosion inhibition efficiency is the effect of the organic corrosion inhibitor on the corrosion reduction of the protected metal, which is represented by a value from -1 to 1. Negative values represent the promotion of corrosion, that is, the organic corrosion inhibitor has no corrosion inhibition effect, and positive values represent the inhibition of corrosion. -1 represents complete promotion of corrosion, and 1 represents complete inhibition of corrosion. The toxicity is the effect of the organic corrosion inhibitor on the organism, which is represented by a value of 0-9, where 0 represents no toxicity at all and 9 represents high toxicity. The environmental friendliness is the effect of the organic corrosion inhibitor on the environment, which is represented by a value of 0-9, where 0 represents very environmentally friendly and 9 represents not environmentally friendly at all.
[0083] It should be noted that after obtaining the first collected data of several mono-organic corrosion inhibitors and the second collected data of binary composite organic corrosion inhibitors, due to the dimensional differences between the input variables, in order to minimize the impact of the dimensional differences on each input feature, the samples (i.e., the first collected data and the second collected data) were first normalized.
[0084] Exemplarily, the normalization operation adopts the following formula:
[0085] ,
[0086] In the formula, the data matrix is , including n sample data and d features, representing the first collected data of a mono-organic corrosion inhibitor and the second collected data of a binary composite organic corrosion inhibitor, for example, including corresponding attribute data, performance data and formula data, is the normalized data, is dimensionless data, and is the mean and standard deviation of the jth column.
[0087] Step S102: acquiring an initial training data set according to the first normalized data and the second normalized data.
[0088] It is further explained that after obtaining the normalized data of the mono-organic corrosion inhibitor and the normalized binary composite organic corrosion inhibitor (i.e., after obtaining the first normalized data and the second normalized data), the data of the binary composite organic corrosion inhibitor is sorted into an initial training data set, which is used for subsequent model training. The training data sorting process includes: when one of the organic corrosion inhibitors in the binary composite organic corrosion inhibitor is fixed, the initial training data set includes the molecular descriptor properties, ratio, quantum chemical properties, corrosion inhibition efficiency and other data of the organic corrosion inhibitor molecules to be replaced.
[0089] See also Figure 3 , step S102 includes:
[0090] Step S1021, determining normalized data of the organic corrosion inhibitor to be replaced according to the first normalized data.
[0091] Step S1022, while fixing one organic corrosion inhibitor of the binary composite organic corrosion inhibitor, generate an initial training data set according to the second normalized data, the normalized data of the organic corrosion inhibitor to be replaced, the normalized data of the fixed organic corrosion inhibitor, and the ratio of the organic corrosion inhibitor to be replaced and the fixed organic corrosion inhibitor.
[0092] Step S103, reducing the dimension of the dataset features of the initial training dataset to obtain a training dataset after dimension reduction.
[0093] In this embodiment, after the initial training data set is obtained, the data set features (ie, molecular descriptor properties and quantum chemical properties) of the initial training data set are subjected to dimensionality reduction processing to improve the computational efficiency of the model and reduce noise and redundant information.
[0094] In one embodiment, step S103 includes:
[0095] make is the normalized data of the initial training data set Matrix representation, let the matrix ,in for The transpose of
[0096] Pair Matrix Perform eigendecomposition and obtain eigenvalues and the corresponding unit eigenvector , where the eigenvector satisfy ;
[0097] Select the first k unit eigenvectors with the largest eigenvalues to form the projection matrix ;
[0098] Using the projection matrix The initial training data set Project to a new low-dimensional feature space to obtain a reduced-dimensional training data set , wherein the training data set after dimensionality reduction contains n samples and k features.
[0099] Step S104, divide the reduced-dimensional training data set into a training set, a validation set, and a test set according to a preset ratio, select the corresponding preset machine learning model, use the corrosion inhibition efficiency as the output of the preset machine learning model, execute the training, validation, and testing process, and obtain a candidate corrosion inhibition efficiency prediction model.
[0100] In this embodiment, after obtaining the reduced-dimensionality training data set, the reduced-dimensionality training data set is divided into a training set, a validation set, and a test set according to a preset ratio. For example, the reduced-dimensionality training data set is divided into a training set, a validation set, and a test set according to a ratio of 70:15:15. , validation set and test set Then select a suitable preset machine learning model (such as linear regression model, support vector machine, random forest, etc.), take the corrosion inhibition efficiency as the output of the machine learning model, and train, verify and test the machine learning model. Let the selected machine learning model be Model, and the process of training the model can be expressed as , the process of validating the model can be expressed as ,in Methods for evaluating the performance of the model on the validation set, including and .
[0101] In this embodiment, the pre-set machine learning model after training is used on the validation set. and To evaluate, the calculation formula is as follows:
[0102] ,
[0103] ,
[0104] in is the corrosion inhibition efficiency prediction value obtained based on the trained preset machine learning model. is the experimental value of corrosion inhibition efficiency, is the average corrosion inhibition efficiency value, m is the number of predicted corrosion inhibition efficiency values, or m is the number of samples.
[0105] In this embodiment, in the test set Perform model generalization performance test, specifically expressed as .
[0106] Step S105: performing dimensionality reduction processing on the first normalized data to obtain first dimensionality reduced data.
[0107] In this embodiment, after obtaining the trained candidate corrosion inhibition efficiency prediction model, the molecular descriptor properties and quantum chemical property data of the first collected data of the monocyclic organic corrosion inhibitor are used as input, and the data set characteristics of the first collected data (i.e., the molecular descriptor properties and quantum chemical properties) are subjected to dimensionality reduction processing to improve computational efficiency and reduce noise and redundant information.
[0108] Step S106, inputting the first dimension reduction data into the candidate corrosion inhibition efficiency prediction model, taking the corrosion inhibition efficiency as the output, and predicting the corrosion inhibition efficiency of the two monocyclic organic corrosion inhibitors under different ratios by setting different ratios of the two monocyclic organic corrosion inhibitors.
[0109] In this embodiment, the data of the univariate organic corrosion inhibitor after dimensionality reduction (i.e., the first dimensionality reduction data) is used as the input of the candidate corrosion inhibition efficiency prediction model to predict the corrosion inhibition efficiency, and the corrosion inhibition efficiency is used as the output of the candidate corrosion inhibition efficiency prediction model. The corrosion inhibition efficiency is predicted by setting different ratios.
[0110] Step S107, determining a plurality of candidate binary composite organic corrosion inhibitors according to the predicted corrosion inhibition efficiencies of two mono-organic corrosion inhibitors at different ratios and the target corrosion inhibition efficiency threshold.
[0111] In this embodiment, a high-efficiency binary composite organic corrosion inhibitor is screened out by setting a target corrosion inhibition efficiency value, that is, a plurality of candidate binary composite organic corrosion inhibitors are screened out. The target corrosion inhibition efficiency value is a relatively high value. When the predicted corrosion inhibition efficiency is higher than the target corrosion inhibition efficiency threshold, it means that the corresponding binary composite organic corrosion inhibitor has a better corrosion inhibition effect under this ratio. Among them, the corrosion inhibition efficiency is the effect of the organic corrosion inhibitor on the corrosion reduction of the protected metal, and the corrosion inhibition efficiency is represented by a numerical value of -1 to 1. -1 represents complete promotion of corrosion, and 1 represents complete inhibition of corrosion. The target corrosion inhibition efficiency value is a numerical value of -1 to 1. For example, the target corrosion inhibition efficiency value can be 0.95, 0.9, etc., which is not limited here.
[0112] Step S108, based on the toxicity and environmental protection data of the monolithic organic corrosion inhibitor and the predicted corrosion inhibition efficiency of each of the candidate binary composite organic corrosion inhibitors, a multi-objective optimization algorithm is used to solve the multi-objective optimization function to obtain a target binary composite organic corrosion inhibitor from a plurality of the candidate binary composite organic corrosion inhibitors.
[0113] In this embodiment, based on the collected toxicity and environmental protection data of the monolithic organic corrosion inhibitor, a multi-objective optimization algorithm is used to solve the multi-objective optimization function, thereby optimizing the ratio of the organic corrosion inhibitor to be replaced. While ensuring the corrosion inhibition efficiency of the binary composite organic corrosion inhibitor, the toxicity and environmental protection are optimized, thereby obtaining a binary composite organic corrosion inhibitor with excellent comprehensive performance.
[0114] In this embodiment, the target binary composite organic corrosion inhibitor obtained can be correspondingly applicable to metal protection in acidic, alkaline and neutral media. Through the data of existing mono-organic corrosion inhibitors and binary composite organic corrosion inhibitors, machine learning is used to fix one organic corrosion inhibitor in the binary composite organic corrosion inhibitor, screen and replace the other corrosion inhibitor in the binary composite organic corrosion inhibitor, thereby improving the corrosion inhibition efficiency or making it more environmentally friendly, which can significantly improve the use effect and environmental friendliness of the corrosion inhibitor and has broad application prospects.
[0115] See also Figure 4 , step S108 includes step S1081-step S1083, and each step is described below.
[0116] Step S1081, taking the ratio of two organic corrosion inhibitors in the binary composite organic corrosion inhibitor as input, setting the initial value of the ratio, predicting the corrosion inhibition efficiency based on the candidate corrosion inhibition efficiency prediction model, and calculating the comprehensive evaluation score using a multi-objective optimization function.
[0117] In this embodiment, based on the toxicity and environmental protection data of the monovalent organic corrosion inhibitor and the predicted corrosion inhibition efficiency of the candidate binary composite organic corrosion inhibitors, the multi-objective optimization function is used to obtain the comprehensive evaluation score of each candidate binary composite organic corrosion inhibitor.
[0118] In this embodiment, step S1081 includes:
[0119] The comprehensive evaluation score is calculated using the following multi-objective optimization function;
[0120] ,
[0121] Among them, Score represents the comprehensive evaluation score, IE is the corrosion inhibition efficiency predicted by the candidate corrosion inhibition efficiency prediction model under the corresponding organic corrosion inhibitor ratio, EI is environmental protection, VI is toxicity, , , is the weight;
[0122] The ratio of the two organic corrosion inhibitors in the binary composite organic corrosion inhibitor is The environmental performance of the two organic corrosion inhibitors in the binary composite organic corrosion inhibitor is and The toxicity of the two organic corrosion inhibitors in the binary composite organic corrosion inhibitor is and ,but , .
[0123] Step S1082, iteratively solve the comprehensive evaluation score. In each iteration, according to the current ratio and the current comprehensive evaluation score, the next ratio is selected and the next comprehensive evaluation score is calculated.
[0124] Step S1083, after each iteration, the candidate corrosion inhibition efficiency prediction model is updated and optimized using the current comprehensive evaluation score, a set of optimal ratios is obtained during the iteration process, and the target binary composite organic corrosion inhibitor is determined based on the optimal ratios.
[0125] In this embodiment, the optimal ratio achieves the best comprehensive performance while comprehensively considering corrosion inhibition efficiency, environmental protection and toxicity.
[0126] For example, the multi-objective optimization algorithm is as follows: Initialize the optimizer: take the ratio of the two organic corrosion inhibitors of the binary composite organic corrosion inhibitor as input, set the initial value of the ratio, predict the corrosion efficiency IE based on the trained model, and return the Score value. Iterative optimization: Iteratively solve the Score. In each iteration, according to the current ratio and the Score, select the next ratio and calculate the Score value. Update the optimization model: After each iteration, use the current results to update the optimization model to provide better suggestions in the next iteration. Ultimately, the multi-objective optimization algorithm will give a set of optimized ratios to achieve the best comprehensive performance while considering corrosion efficiency, environmental protection and toxicity. In this embodiment, by performing the above operations on all the binary composite organic corrosion inhibitors screened out, a binary composite organic corrosion inhibitor with the best comprehensive performance can be obtained, that is, the target binary composite organic corrosion inhibitor is obtained.
[0127] See also Figure 5 , the method further comprises:
[0128] Step S501, using the target binary composite organic corrosion inhibitor to perform corrosion resistance test under the preset application environment to obtain experimental corrosion inhibition efficiency;
[0129] Step S502: optimizing the candidate corrosion inhibition efficiency prediction model according to the experimental corrosion inhibition efficiency.
[0130] It should be noted that after obtaining a binary composite organic corrosion inhibitor with the best comprehensive performance, high-throughput experiments are used to test the corrosion resistance of the set environment (specific temperature, specific medium type, specific protected metal). Surface analysis technology, electrochemical testing and other technologies are used to obtain the corrosion conditions of the protected metal and obtain the experimental corrosion inhibition efficiency, thereby optimizing the model until a binary composite organic corrosion inhibitor with excellent comprehensive performance is obtained.
[0131] See also Figure 6 , the method further comprises:
[0132] Step S601, experimentally verifying the target binary composite organic corrosion inhibitor based on a high-throughput experiment to obtain experimental results.
[0133] Step S602: Optimize the parameters of the candidate corrosion inhibition efficiency prediction model according to the experimental results to obtain an optimized corrosion inhibition efficiency prediction model.
[0134] Step S603, predicting the corrosion inhibition efficiency of binary composite organic corrosion inhibitors under different ratios through the optimized corrosion inhibition efficiency prediction model, and obtaining the optimal binary composite organic corrosion inhibitor based on the new predicted corrosion inhibition efficiency, the target corrosion inhibition efficiency threshold and the multi-objective optimization algorithm.
[0135] It should be supplemented that after obtaining the target binary composite organic corrosion inhibitor with the best comprehensive performance, the corrosion resistance is tested for the set environment (specific temperature, specific medium type, specific protected metal) through high-throughput experiments, and the corrosion of the protected metal is obtained through surface analysis technology, electrochemical testing and other technologies to obtain the experimental corrosion inhibition efficiency, thereby optimizing the model until the optimal binary composite organic corrosion inhibitor with excellent comprehensive performance is obtained. For example, the new predicted corrosion inhibition efficiency is screened according to the target corrosion inhibition efficiency threshold, and the multi-objective optimization function is solved based on the toxicity and environmental protection data of the monocyclic organic corrosion inhibitor and the newly screened predicted corrosion inhibition efficiency, so as to obtain the optimal binary composite organic corrosion inhibitor from multiple newly screened predicted corrosion inhibition efficiencies. The process of solving the multi-objective optimization function using the multi-objective optimization algorithm can be found in the above description, and it will not be repeated here to avoid repetition.
[0136] The binary composite organic corrosion inhibitor optimization method provided in the present embodiment performs normalization processing on the first collected data of the mono-organic corrosion inhibitor and the second collected data of the binary composite organic corrosion inhibitor respectively to obtain the first normalized data and the second normalized data; obtains the initial training data set according to the first normalized data and the second normalized data; performs dimension reduction processing on the data set features of the initial training data set to obtain the dimension-reduced training data set; divides the dimension-reduced training data set into a training set, a validation set and a test set according to a preset ratio, selects the corresponding preset machine learning model, takes the corrosion inhibition efficiency as the output of the preset machine learning model, executes the training, validation and testing processes to obtain the candidate corrosion inhibition efficiency prediction model; performs dimension reduction processing on the first normalized data to obtain the first reduced data. dimensional data; input the first dimensionality reduction data into the candidate corrosion inhibition efficiency prediction model, take the corrosion inhibition efficiency as the output, and predict the corrosion inhibition efficiency of the two monolithic organic corrosion inhibitors under different ratios by setting different ratios of the two monolithic organic corrosion inhibitors; determine multiple candidate binary composite organic corrosion inhibitors according to the predicted corrosion inhibition efficiency of the two monolithic organic corrosion inhibitors under different ratios and the target corrosion inhibition efficiency threshold; based on the toxicity and environmental protection data of the monolithic organic corrosion inhibitors and the predicted corrosion inhibition efficiency of each candidate binary composite organic corrosion inhibitor, use a multi-objective optimization algorithm to obtain the target binary composite organic corrosion inhibitor from multiple candidate binary composite organic corrosion inhibitors, which can optimize the composition of the binary composite corrosion inhibitor, improve the corrosion inhibition efficiency of the binary composite corrosion inhibitor, reduce costs, and reduce environmental pollution.
[0137] Example 2
[0138] In addition, an embodiment of the present application provides a binary composite organic corrosion inhibitor optimization device.
[0139] like Figure 7 As shown, the binary composite organic corrosion inhibitor optimization device 700 includes:
[0140] The first processing module 701 is used to perform normalization processing on the first collected data of the mono-organic corrosion inhibitor and the second collected data of the binary composite organic corrosion inhibitor to obtain first normalized data and second normalized data;
[0141] A first acquisition module 702, configured to acquire an initial training data set according to the first normalized data and the second normalized data;
[0142] A first dimension reduction module 703 is used to reduce the dimension of the data set features of the initial training data set to obtain a training data set after dimension reduction;
[0143] The second processing module 704 is used to divide the dimension-reduced training data set into a training set, a validation set and a test set according to a preset ratio, select a corresponding preset machine learning model, use the corrosion inhibition efficiency as the output of the preset machine learning model, perform training, validation and testing processes, and obtain a candidate corrosion inhibition efficiency prediction model;
[0144] A second dimension reduction module 705, configured to perform dimension reduction processing on the first normalized data to obtain first dimension reduced data;
[0145] A prediction module 706 is used to input the first dimension reduction data into the candidate corrosion inhibition efficiency prediction model, take the corrosion inhibition efficiency as the output, and predict the corrosion inhibition efficiency of the two monocyclic organic corrosion inhibitors under different ratios by setting different ratios of the two monocyclic organic corrosion inhibitors;
[0146] A determination module 707 is used to determine a plurality of candidate binary composite organic corrosion inhibitors according to the predicted corrosion inhibition efficiency and target corrosion inhibition efficiency threshold of two mono-organic corrosion inhibitors at different ratios;
[0147] The second acquisition module 708 is used to solve the multi-objective optimization function using a multi-objective optimization algorithm based on the toxicity and environmental protection data of the monolithic organic corrosion inhibitor and the predicted corrosion inhibition efficiency of each of the candidate binary composite organic corrosion inhibitors, so as to obtain a target binary composite organic corrosion inhibitor from a plurality of the candidate binary composite organic corrosion inhibitors.
[0148] The binary composite organic corrosion inhibitor optimization device 700 provided in this embodiment can implement the binary composite organic corrosion inhibitor optimization method provided in Example 1, and will not be described again here to avoid repetition.
[0149] The binary composite organic corrosion inhibitor optimization device provided in the present embodiment performs normalization processing on the first collected data of the mono-organic corrosion inhibitor and the second collected data of the binary composite organic corrosion inhibitor respectively to obtain the first normalized data and the second normalized data; obtains the initial training data set according to the first normalized data and the second normalized data; performs dimension reduction processing on the data set features of the initial training data set to obtain the dimension-reduced training data set; divides the dimension-reduced training data set into a training set, a validation set and a test set according to a preset ratio, selects the corresponding preset machine learning model, takes the corrosion inhibition efficiency as the output of the preset machine learning model, executes the training, validation and testing processes to obtain the candidate corrosion inhibition efficiency prediction model; performs dimension reduction processing on the first normalized data to obtain the first reduced data. dimensional data; input the first dimensionality reduction data into the candidate corrosion inhibition efficiency prediction model, take the corrosion inhibition efficiency as the output, and predict the corrosion inhibition efficiency of the two monolithic organic corrosion inhibitors under different ratios by setting different ratios of the two monolithic organic corrosion inhibitors; determine multiple candidate binary composite organic corrosion inhibitors according to the predicted corrosion inhibition efficiency of the two monolithic organic corrosion inhibitors under different ratios and the target corrosion inhibition efficiency threshold; based on the toxicity and environmental protection data of the monolithic organic corrosion inhibitors and the predicted corrosion inhibition efficiency of each candidate binary composite organic corrosion inhibitor, use a multi-objective optimization algorithm to obtain the target binary composite organic corrosion inhibitor from multiple candidate binary composite organic corrosion inhibitors, which can optimize the composition of the binary composite corrosion inhibitor, improve the corrosion inhibition efficiency of the binary composite corrosion inhibitor, reduce costs, and reduce environmental pollution.
[0150] Example 3
[0151] In addition, an embodiment of the present application provides an electronic device, including a memory and a processor, wherein the memory stores a computer program, and when the computer program runs on the processor, the binary composite organic corrosion inhibitor optimization method provided in Example 1 is executed.
[0152] The electronic device provided in this embodiment can implement the binary composite organic corrosion inhibitor optimization method provided in Example 1, and will not be described again here to avoid repetition.
[0153] Example 4
[0154] The present application also provides a computer-readable storage medium, on which a computer program is stored. When the computer program is executed by a processor, the binary composite organic corrosion inhibitor optimization method provided in Example 1 is implemented.
[0155] In this embodiment, the computer-readable storage medium may be a read-only memory (ROM), a random access memory (RAM), a magnetic disk, or an optical disk.
[0156] The computer-readable storage medium provided in this embodiment can implement the binary composite organic corrosion inhibitor optimization method provided in Example 1, and will not be described again here to avoid repetition.
[0157] It should be noted that, in this article, the terms "include", "comprises" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, article or terminal including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or terminal. In the absence of further restrictions, an element defined by the sentence "comprises a ..." does not exclude the presence of other identical elements in the process, method, article or terminal including the element.
[0158] Through the description of the above implementation methods, those skilled in the art can clearly understand that the above-mentioned embodiment methods can be implemented by means of software plus a necessary general hardware platform, and of course by hardware, but in many cases the former is a better implementation method. Based on such an understanding, the technical solution of the present application, or the part that contributes to the prior art, can be embodied in the form of a software product, which is stored in a storage medium (such as ROM / RAM, a magnetic disk, or an optical disk), and includes a number of instructions for a terminal (which can be a mobile phone, a computer, a server, an air conditioner, or a network device, etc.) to execute the methods described in each embodiment of the present application.
[0159] The embodiments of the present application are described above in conjunction with the accompanying drawings, but the present application is not limited to the above-mentioned specific implementation methods. The above-mentioned specific implementation methods are merely illustrative and not restrictive. Under the guidance of the present application, ordinary technicians in this field can also make many forms without departing from the purpose of the present application and the scope of protection of the claims, all of which are within the protection of the present application.
Claims
1. A binary composite organic corrosion inhibitor optimization method, characterized in that: The method comprises: Normalizing the first collected data of the mono-organic corrosion inhibitor and the second collected data of the binary composite organic corrosion inhibitor respectively to obtain first normalized data and second normalized data; Acquire an initial training data set according to the first normalized data and the second normalized data; Performing dimension reduction on the data set features of the initial training data set to obtain a training data set after dimension reduction; The reduced-dimensional training data set is divided into a training set, a validation set, and a test set according to a preset ratio, a corresponding preset machine learning model is selected, and the corrosion inhibition efficiency is used as the output of the preset machine learning model. The training, validation, and testing processes are performed to obtain a candidate corrosion inhibition efficiency prediction model; Performing dimensionality reduction processing on the first normalized data to obtain first dimensionality reduced data; Inputting the first dimension reduction data into the candidate corrosion inhibition efficiency prediction model, taking the corrosion inhibition efficiency as output, and predicting the corrosion inhibition efficiency of the two monocyclic organic corrosion inhibitors under different ratios by setting different ratios of the two monocyclic organic corrosion inhibitors; Determine multiple candidate binary composite organic corrosion inhibitors according to the predicted corrosion inhibition efficiency and target corrosion inhibition efficiency threshold of two mono-organic corrosion inhibitors at different ratios; Based on the toxicity and environmental protection data of the mono-organic corrosion inhibitor and the predicted corrosion inhibition efficiency of each of the candidate binary composite organic corrosion inhibitors, a multi-objective optimization algorithm is used to solve the multi-objective optimization function to obtain a target binary composite organic corrosion inhibitor from the plurality of candidate binary composite organic corrosion inhibitors; The method uses a multi-objective optimization algorithm to solve a multi-objective optimization function based on the toxicity and environmental protection data of the mono-organic corrosion inhibitor and the predicted corrosion inhibition efficiency of each of the candidate binary composite organic corrosion inhibitors, so as to obtain a target binary composite organic corrosion inhibitor from a plurality of the candidate binary composite organic corrosion inhibitors, including: Taking the ratio of two organic corrosion inhibitors of the binary composite organic corrosion inhibitor as input, setting the initial value of the ratio, predicting the corrosion inhibition efficiency based on the candidate corrosion inhibition efficiency prediction model, and calculating the comprehensive evaluation score using a multi-objective optimization function; Iteratively solve the comprehensive evaluation score. In each iteration, according to the current ratio and the current comprehensive evaluation score, select the next ratio and calculate the next comprehensive evaluation score; After each iteration, the candidate corrosion inhibition efficiency prediction model is updated and optimized using the current comprehensive evaluation score, and a set of optimal ratios is obtained during the iteration process, and the target binary composite organic corrosion inhibitor is determined according to the optimal ratios; The step of reducing the dimension of the data set features of the initial training data set includes: make is the normalized data of the initial training data set Matrix representation, let the matrix ,in for The transpose of Pair Matrix Perform eigendecomposition and obtain eigenvalues and the corresponding unit eigenvector , where the eigenvector satisfy ; Select the first k unit eigenvectors with the largest eigenvalues to form the projection matrix ; Using the projection matrix The initial training data set Project to a new low-dimensional feature space to obtain a reduced-dimensional training data set , wherein the training data set after dimensionality reduction contains n samples and k features; Acquiring the first collected data of the mono-organic corrosion inhibitor and the second collected data of the binary composite organic corrosion inhibitor, including: Determine a preset application environment, wherein the preset application environment includes: a protected metal, a preset medium type, and a preset temperature; The first collected data of the mono-organic corrosion inhibitor and the second collected data of the binary composite organic corrosion inhibitor under the preset application environment are collected respectively, wherein the first collected data include: attribute data and performance data of the organic corrosion inhibitor; the second collected data include: attribute data, performance data and formula data of two corrosion inhibitor molecules; the attribute data include the SMILES format of the molecular structure of the organic corrosion inhibitor and the data set characteristics, and the data set characteristics include molecular descriptors and quantum chemical properties; the performance data include corrosion inhibition efficiency, toxicity and environmental protection; The formula used for the normalization operation is as follows: In the formula, represents the first collected data of a mono-organic corrosion inhibitor or the second collected data of a binary composite organic corrosion inhibitor, is the normalized data, and is the mean and standard deviation of the jth column.
2. The method for optimizing binary composite organic corrosion inhibitor according to claim 1, characterized in that: The multi-objective optimization function is used to calculate the comprehensive evaluation score, including: The comprehensive evaluation score is calculated using the following multi-objective optimization function; Among them, Score represents the comprehensive evaluation score, IE is the corrosion inhibition efficiency predicted by the candidate corrosion inhibition efficiency prediction model under the corresponding organic corrosion inhibitor ratio, EI is environmental protection, VI is toxicity, , , is the weight; The ratio of the two organic corrosion inhibitors in the binary composite organic corrosion inhibitor is The environmental performance of the two organic corrosion inhibitors in the binary composite organic corrosion inhibitor is and The toxicity of the two organic corrosion inhibitors in the binary composite organic corrosion inhibitor is and ,but , .
3. The method for optimizing binary composite organic corrosion inhibitor according to claim 1, characterized in that: The step of acquiring an initial training data set according to the first normalized data and the second normalized data includes: Determining normalized data of the organic corrosion inhibitor to be replaced according to the first normalized data; When one organic corrosion inhibitor of the binary composite organic corrosion inhibitor is fixed, an initial training data set is generated according to the second normalized data, the normalized data of the organic corrosion inhibitor to be replaced, the normalized data of the fixed organic corrosion inhibitor, and the ratio of the organic corrosion inhibitor to be replaced and the fixed organic corrosion inhibitor.
4. The method for optimizing binary composite organic corrosion inhibitor according to claim 1, characterized in that: After obtaining the target binary composite organic corrosion inhibitor, the method further comprises: Under the preset application environment, the target binary composite organic corrosion inhibitor is used to perform a corrosion resistance test to obtain an experimental corrosion inhibition efficiency; The candidate corrosion inhibition efficiency prediction model is optimized according to the experimental corrosion inhibition efficiency.
5. The method for optimizing a binary composite organic corrosion inhibitor according to any one of claims 1 to 4, characterized in that: The method further comprises: The target binary composite organic corrosion inhibitor is experimentally verified based on high-throughput experiments to obtain experimental results; Optimizing the parameters of the candidate corrosion inhibition efficiency prediction model according to the experimental results to obtain an optimized corrosion inhibition efficiency prediction model; The corrosion inhibition efficiency of binary composite organic corrosion inhibitors under different ratios is predicted by the optimized corrosion inhibition efficiency prediction model, and the optimal binary composite organic corrosion inhibitor is obtained based on the new predicted corrosion inhibition efficiency, the target corrosion inhibition efficiency threshold and the multi-objective optimization algorithm.
6. The method for optimizing a binary composite organic corrosion inhibitor according to any one of claims 1 to 4, characterized in that: The method further comprises: The trained preset machine learning model is used on the validation set. and To evaluate, the calculation formula is as follows: in is the corrosion inhibition efficiency prediction value obtained based on the trained preset machine learning model. is the experimental value of corrosion inhibition efficiency, is the average corrosion inhibition efficiency value, and m is the number of predicted corrosion inhibition efficiency values.
7. A binary composite organic corrosion inhibitor optimization device, characterized in that: The device comprises: A first processing module is used to perform normalization processing on the first collected data of the mono-organic corrosion inhibitor and the second collected data of the binary composite organic corrosion inhibitor to obtain first normalized data and second normalized data; A first acquisition module, configured to acquire an initial training data set according to the first normalized data and the second normalized data; A first dimension reduction module is used to reduce the dimension of the data set features of the initial training data set to obtain a training data set after dimension reduction; The second processing module is used to divide the dimension-reduced training data set into a training set, a validation set and a test set according to a preset ratio, select a corresponding preset machine learning model, use the corrosion inhibition efficiency as the output of the preset machine learning model, perform training, validation and testing processes, and obtain a candidate corrosion inhibition efficiency prediction model; A second dimension reduction module, used for performing dimension reduction processing on the first normalized data to obtain first dimension reduction data; A prediction module, used for inputting the first dimension reduction data into the candidate corrosion inhibition efficiency prediction model, taking the corrosion inhibition efficiency as output, and predicting the corrosion inhibition efficiency of the two monocyclic organic corrosion inhibitors under different ratios by setting different ratios of the two monocyclic organic corrosion inhibitors; A determination module, used to determine a plurality of candidate binary composite organic corrosion inhibitors according to the predicted corrosion inhibition efficiency and target corrosion inhibition efficiency threshold of two mono-organic corrosion inhibitors at different ratios; A second acquisition module is used to solve a multi-objective optimization function using a multi-objective optimization algorithm based on the toxicity and environmental protection data of the mono-organic corrosion inhibitor and the predicted corrosion inhibition efficiency of each of the candidate binary composite organic corrosion inhibitors, so as to obtain a target binary composite organic corrosion inhibitor from a plurality of the candidate binary composite organic corrosion inhibitors; The method uses a multi-objective optimization algorithm to solve a multi-objective optimization function based on the toxicity and environmental protection data of the mono-organic corrosion inhibitor and the predicted corrosion inhibition efficiency of each of the candidate binary composite organic corrosion inhibitors, so as to obtain a target binary composite organic corrosion inhibitor from a plurality of the candidate binary composite organic corrosion inhibitors, including: Taking the ratio of two organic corrosion inhibitors of the binary composite organic corrosion inhibitor as input, setting the initial value of the ratio, predicting the corrosion inhibition efficiency based on the candidate corrosion inhibition efficiency prediction model, and calculating the comprehensive evaluation score using a multi-objective optimization function; Iteratively solve the comprehensive evaluation score. In each iteration, according to the current ratio and the current comprehensive evaluation score, select the next ratio and calculate the next comprehensive evaluation score; After each iteration, the candidate corrosion inhibition efficiency prediction model is updated and optimized using the current comprehensive evaluation score, and a set of optimal ratios is obtained during the iteration process, and the target binary composite organic corrosion inhibitor is determined according to the optimal ratios; The step of reducing the dimension of the data set features of the initial training data set includes: make is the normalized data of the initial training data set Matrix representation, let the matrix ,in for The transpose of Pair Matrix Perform eigendecomposition and obtain eigenvalues and the corresponding unit eigenvector , where the eigenvector satisfy ; Select the first k unit eigenvectors with the largest eigenvalues to form the projection matrix ; Using the projection matrix The initial training data set Project to a new low-dimensional feature space to obtain a reduced-dimensional training data set , wherein the training data set after dimensionality reduction contains n samples and k features; Acquiring the first collected data of the mono-organic corrosion inhibitor and the second collected data of the binary composite organic corrosion inhibitor, including: Determine a preset application environment, wherein the preset application environment includes: a protected metal, a preset medium type, and a preset temperature; The first collected data of the mono-organic corrosion inhibitor and the second collected data of the binary composite organic corrosion inhibitor under the preset application environment are collected respectively, wherein the first collected data include: attribute data and performance data of the organic corrosion inhibitor; the second collected data include: attribute data, performance data and formula data of two corrosion inhibitor molecules; the attribute data include the SMILES format of the molecular structure of the organic corrosion inhibitor and the data set characteristics, and the data set characteristics include molecular descriptors and quantum chemical properties; the performance data include corrosion inhibition efficiency, toxicity and environmental protection; The formula used for the normalization operation is as follows: In the formula, represents the first collected data of a mono-organic corrosion inhibitor or the second collected data of a binary composite organic corrosion inhibitor, is the normalized data, and is the mean and standard deviation of the jth column.
8. An electronic device, characterized in that: The invention comprises a memory and a processor, wherein the memory stores a computer program, and when the computer program is run on the processor, the method for optimizing the binary composite organic corrosion inhibitor according to any one of claims 1 to 6 is executed.
9. A computer-readable storage medium, characterized in that: The invention stores a computer program, which, when running on a processor, executes the binary composite organic corrosion inhibitor optimization method according to any one of claims 1 to 6.
