Prediction method of molecular redox potential
Using deep learning methods to construct the relationship between molecular structure and redox potential, combined with the linear calibration module, solves the problems of redox potential prediction efficiency and resource consumption in the existing technology, achieves efficient and accurate prediction, and improves the popularity of the model. Adaptability.
Patent Information
- Application Number
- CN202411083109.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-08-08
- Publication Date
- 2024-10-22
AI Technical Summary
Existing technologies have problems of efficiency and resource consumption in rapidly acquiring and predicting the redox potential of organic molecules, and lack of universality.
A method based on deep learning is used to construct a redox potential prediction model with enhanced molecular structure information. Through the molecular encoding module, graph feature enhancement module and property prediction module, combined with the linear calibration module, a data set and prediction network are constructed to achieve the prediction of redox potential. Accurate predictions.
It improves the prediction accuracy of redox potential and the generalization of the model, reduces the consumption of experimental and computational resources, and has universal applicability to organic matter, free radicals and ions.
Smart Images

Figure CN118824399A_ABST
Abstract
Description
Technical Field
[0001] The present invention belongs to the field of artificial intelligence driven chemistry, and specifically is a method for predicting the redox potential of a molecule. Background Art
[0002] Redox potential reflects the ability of a molecule to lose or gain electrons and is an important property of matter. The redox potential of organic molecules is widely used in the screening of positive and negative electrodes of battery materials, typical single electron transfer processes, redox equilibrium in organisms, etc. Rapidly obtaining the redox potential of organic molecules can effectively increase the exploration space of the above processes. So far, the redox potential of organic molecules can be obtained through experimental methods, theoretical calculation methods, and the construction of quantitative activity relationship models.
[0003] In experiments, the redox potential of organic molecules can be obtained through characterization methods such as cyclic voltammetry and pulse voltammetry. Theoretical calculation refers to obtaining molecular properties by solving the Schrödinger equation. With the rapid development of high-performance computing, density functional theory has become an important means of theoretical calculation of molecular potential. Constructing a quantitative activity relationship model refers to predicting the molecular redox potential through modeling and analysis of the structure and other properties of the molecule.
[0004] In experiments, the redox potential of organic molecules can be obtained through characterization methods such as cyclic voltammetry and pulse voltammetry. Theoretical calculation refers to obtaining molecular properties by solving the Schrödinger equation. With the rapid development of high-performance computing, density functional theory has become an important means of theoretical calculation of molecular potential. Constructing a quantitative activity relationship model refers to predicting the molecular redox potential through modeling and analysis of the structure and other properties of the molecule. Summary of the invention
[0005] The present invention aims to address the deficiencies of the above-mentioned prior art and proposes a deep learning method based on molecular structure enhancement information, in order to well construct the structure-property relationship between molecular structure and redox potential, so as to accurately and efficiently predict the redox potential of organic molecules, and has good universality for organic matter, organic free radicals and ions, and can reduce experimental and computing resources.
[0006] In order to achieve the above-mentioned purpose, the present invention adopts the following technical scheme: The method for predicting the molecular redox potential of the present invention is characterized in that it is carried out according to the following steps: Step 1: Construct a molecular redox potential dataset D = {M, O, R, M x}, where M represents an unstructured training molecular dataset, and M={m1, m2, …, m i ,…,mI},m i represents the i-th training molecule; O represents the oxidation potential of the training molecule in M, and O={o1, o2, …, o i ,…,o I},o i Indicates m i The oxidation potential of the training molecule in M is R, and R = {r1, r2, …, r i ,…,r I}; r i Indicates m i The reduction potential of the x represents an unstructured predicted molecular dataset, and M x ={ , , …, , …, },m i x represents the jth predicted molecule, and J represents the total number of molecules; Step 2: Build m i Combination structural features =[ , , ];in, Indicates m i The Gaussian distance matrix between atoms in Indicates m i The bond connectivity matrix of Indicates m i Regularized Laplacian matrix of the topology; M i The nuclear charge number, Gasteiger charge, number of unpaired electrons, position information, and hybridization mode of each atom in the system are concatenated into m i Atomic basic information ; Step 3: construct a molecular redox potential prediction network, including: a molecular encoding module, a molecular graph feature enhancement module, and a property prediction module; Step 3.1: Molecular coding module for m i Perform unique hot encoding, linear mapping and position encoding to obtain the encoded feature E i ; Step 3.2, the molecular graph feature enhancement module includes: a value matrix calculation module, a molecular attention calculation module, and i Processing, get m i The self-attention matrix ; Step 3.3, the property prediction module includes: residual module, neural network module, and is used to i The value matrix V i A and F i After processing, we get m i Predicted oxidation potential of and reduction potential prediction ; Step 3.4, calculate o i and The absolute error between i Oxidation potential loss L i 1o ; Calculate r i and Absolute error between i The reduction potential loss L i 1r , thus constructing m i The total redox potential loss L i 1 =L i 1o + L i 1r , and use the Adam optimizer to train the molecular redox potential prediction network, calculate the total loss corresponding to M to update the network parameters, until the maximum number of iterations is reached or L1 reaches the minimum, stop training, and obtain the optimal molecular redox potential prediction model ; Step 4, constructing a calibration module, including: a molecular similarity calculation module and a linear correction module; Step 4.1: Set the jth predicted molecule Input molecular redox potential prediction model The jth oxidation potential prediction value is obtained by processing and reduction potential prediction ; Step 4.2: The molecular similarity calculation module calculates the partial molecules {m1, m2, ..., m u ,…,m q} respectively with the molecular fingerprint similarity of each molecule in M, and form a similarity set SI = [SI1, SI2, …, SI u ,…,SI q ], where q <I,SI u Indicates m u The similarity set between a molecule and all molecules in M, and ,in, Indicates m u With m iThe molecular fingerprint similarity between them; Step 4.3, calculate the average value set of SI [ , , …, , …, ] and the standard deviation set [ , …, , …, ],in, Indicates SI u The average value of Indicates SI u The standard deviation of Step 4.4: The linear correction module constructs the oxidation potential correction equation based on the mean value set and the standard deviation set. and reduction potential correction equation , where k o , k r , b o and b r are the four parameters to be solved; Step 4.5: Follow the process of steps 4.2 and 4.3 to calculate The set of molecular fingerprint similarities with each molecule in M as well as The average and standard deviation ; Step 4.6, Calculation Oxidation potential results after molecular correction And the reduction potential results .
[0007] The method for predicting the molecular redox potential of the present invention is also characterized in that step 2 is performed as follows: Step 2.1, randomly select Ω% molecules from M, and calculate several descriptors of each training molecule, so as to calculate the Pearson correlation between each descriptor of Ω% training molecules and the redox potential corresponding to Ω% training molecules, and then select the first L descriptors with stable Pearson correlations as: PCC1, PCC2, ..., PCC l , …, PCC L , where PCC l represents the lth descriptor; Step 2.2, calculate m i The semi-empirical conformation and the spatial coordinates of the conformation , where N i is m i The number of atoms in Step 2.3, calculate mi The distance matrix , thus obtaining m i The Gaussian distance matrix between atoms in ,in, represents Gaussian radial basis function; Step 2.4: Calculate m i Laplacian matrix of topological structure And perform regularization to obtain the regularized Laplace matrix ,in, is m i The degree matrix of the topological structure; Step 2.5: Calculate m i The bond connectivity matrix ,in, The element b in the pth row and qth column pq i Indicates m i The type of bond formed between the pth atom and the qth atom in the pq i =0, indicating m i There is no bond between the pth atom and the qth atom; when b pq i =1, indicating m i The pth atom and the qth atom are connected by a single polar bond; when b pq i =-1, indicating m i The pth atom and the qth atom are connected by a single polar bond and a single nonpolar bond; when b pq i =2, indicating m i The pth atom and the qth atom are connected by a double polar bond; when b pq i =-2, indicating m i The pth atom and the qth atom are connected by a double bond and a non-polar bond; when b pq i =3, indicating m i The pth atom and the qth atom are connected by a triple polar bond; when b pq i =-3, indicating m i The pth atom and the qth atom are connected by a triple non-polar bond; Step 2.6, build m i Combination structural features =[ , , ].
[0008] The step 3.1 is carried out as follows: Step 3.1.1, for m i The atoms, bonds, and the first L descriptors in the m are encoded one-hot to obtain m i Independent hot encoding of OH i =[ , , …, ,… ,… ],in, Indicates m i The u-th encoded value of Indicates m i The vth encoding value of , d is the encoding dimension; Step 3.1.2: and Perform different linear mappings and get m accordingly i The u-th mapping value q u and the uth mapping value k v ; Step 3.1.3: Use formula (3) to get and Relative position encoding , thus obtaining m i The relative position encoding matrix , (3) In formula (3), represents an exponential decay correction, represents the noise reduction parameter, is a hyperparameter, Re represents the matrix rotation encoding function; Step 3.1.4: Calculate the encoded features ,and , where T is the transpose.
[0009] The step 3.2 is performed as follows: Step 3.2.1: The value matrix calculation module uses formula (4) to obtain m i The value matrix V i A : (4) In formula (2), softmax is a normalized exponential function. , ,and They represent three different linear operations respectively, and α is a hyperparameter; Step 3.2.2: The molecular attention calculation module uses formula (5) to obtain the corrected self-attention matrix : (5) In formula (5), Represents a linear map operation.
[0010] The step 3.3 is carried out as follows: Step 3.3.1, the residual module includes a W-layer structure; When w=1, V i A and F i After concatenation, it is used as the input feature H of the w-th layer structure i w , and after being processed by the w-th layer structure, the input feature H of the w+1-th layer structure is output i w+1 =H i w +MLP H (H i w ), where MLP H Represents a linear mapping operation; When w=2, 3, ..., W, H i w Input the w-th layer structure for processing and obtain H i w+1 , so that the final feature H is output by the W-th layer structure i W ; Step 3.3.2: The neural network module is used to calculate H i W Make a prediction and get m i Predicted oxidation potential of and reduction potential prediction .
[0011] An electronic device of the present invention includes a memory and a processor, wherein the memory is used to store a program that supports the processor to execute the prediction method, and the processor is configured to execute the program stored in the memory.
[0012] The present invention provides a computer-readable storage medium, wherein a computer program is stored on the computer-readable storage medium, and the computer program executes the steps of the prediction method when executed by a processor.
[0013] Compared with the prior art, the present invention has the following beneficial effects: 1. The molecular structure representation used in the present invention is based on the combination of molecular topology and molecular structure, which can accurately describe the molecular spatial structure information of the molecule. The graph enhancement module can aggregate and update the node information according to the graph gradient. This method can strengthen the relationship between the spatial structure information and the redox potential of the molecule, effectively improving the interpretability of the model; 2. The encoder module of the present invention based on the transfomer model fuses the image enhancement module and the electronic information, which can capture the global structural information and local electronic information characteristics of the molecule. Through the training and prediction of the model, the redox potential of the molecule can be effectively predicted at the same time, which improves the prediction accuracy of the model; The linear calibration module at the back end of the present invention can correct the systematic error between the training data and the predicted data. The mean and standard deviation of the similarity set between structures are used as the standard for measuring the systematic error. This is an important correction method that can significantly improve the generalization and universality of the model. BRIEF DESCRIPTION OF THE DRAWINGS
[0014] Figure 1 is a flow chart of a method for predicting molecular redox potential; Figure 2 This is a network flow chart for predicting molecular redox potential in the present invention. DETAILED DESCRIPTION
[0015] In this embodiment, a method for predicting molecular redox potential is to construct a real-time, accurate, and universal prediction model of organic molecular redox potential through a deep learning method and a linear correction method. Specifically, Figure 1 As shown, the method is performed in the following steps: Step 1: Construct a molecular redox potential dataset D ={ M , O , R , M x},in, M represents an unstructured training molecular dataset, and M ={ m 1, m 2, ..., m i , …, m I}, m i Indicates i training molecule; O express M The oxidation potential of the training molecule, and O= { o 1, o2, ..., o i , …, o I}, o i express m i The oxidation potential of R express M The reduction potential of the training molecule, and R= { r 1, r 2, ..., r i , …, r I}; r i express m i The reduction potential of I represents the total number of molecules; M x represents an unstructured predicted molecular dataset, and M x ={ , , …, , …, },m i x represents the jth predicted molecule, and J represents the total number of molecules.
[0016] Step 2: Molecular structure characterization; Step 2.1: From M Randomly select Ω% molecules, and calculate several descriptors for each training molecule, thereby calculating Ω% Each descriptor of a training molecule is Ω% The Pearson correlation between the redox potentials of the training molecules is used to select the frontier with stable Pearson correlation. L The descriptors are: PCC 1, PCC 2, ..., PCC l , …, PCC L ;in, PCC l Indicates l descriptors; Step 2.2, calculation m i The semi-empirical conformation and the spatial coordinates of the conformation ,in, N i for m iThe number of atoms within, the molecular conformation used here is obtained from the experimental torsion method of basic knowledge geometry.
[0017] Step 2.3, calculate m i The distance matrix , thus obtaining m i The Gaussian distance matrix between atoms in ,in, Represents Gaussian radial basis function; radial basis function is used in continuous filter convolution design to represent the nonlinear relationship of the filter network; Step 2.4: Calculate m i Laplacian matrix of topological structure And perform regularization to obtain the regularized Laplace matrix ,in, is m i The degree matrix of the topology.
[0018] Step 2.5: Calculate m i The bond connectivity matrix ,in, The element b in the pth row and qth column pq i Indicates m i The type of bond formed between the pth atom and the qth atom in the pq i =0, indicating m i There is no bond between the pth atom and the qth atom; when b pq i =1, indicating m i The pth atom and the qth atom are connected by a single polar bond; when b pq i =-1, indicating m i The pth atom and the qth atom are connected by a single polar bond and a single nonpolar bond; when b pq i =2, indicating m i The pth atom and the qth atom are connected by a double polar bond; when b pq i =-2, indicating m i The pth atom and the qth atom are connected by a double bond and a non-polar bond; when b pq i =3, indicating m i The pth atom and the qth atom are connected by a triple polar bond; when b pq i =-3, indicating m i The pth atom and the qth atom are connected by a triple non-polar bond.
[0019] Step 2.6, build m i Combination structural features =[ , , ]; m i The nuclear charge number, Gasteiger charge, number of unpaired electrons, position information, and hybridization mode of each atom in the system are concatenated into m i Atomic basic information .
[0020] Step 3: Construct a molecular redox potential prediction network, such as Figure 2 As shown, it includes: a molecular encoding module, a molecular graph feature enhancement module, and a property prediction module; Step 3.1: Molecular coding module for m i Perform unique hot encoding, linear mapping and position encoding to obtain the encoded feature E i ; Step 3.1.1, for m i The atoms, bonds, and the first L descriptors in the m are encoded one-hot to obtain m i Independent hot encoding of OH i =[ , , …, ,… ,… ],in, Indicates m i The u-th encoded value of Indicates m i The vth encoding value of , d is the encoding dimension; Step 3.1.2: and Perform different linear mappings and get m accordingly i The u-th mapping value q u and the uth mapping value k v .
[0021] Step 3.1.3: Use formula (3) to get and Relative position encoding , thus obtaining m i The relative position encoding matrix , for which it is relatively unknown, on the basis of rotation coding, the relative position information of the vector inner product is split into the absolute position information of the two vectors doing the inner product. Thanks to this property, relative position coding eliminates the noise information at the farther relative position: (3) In formula (3), represents an exponential decay correction, represents the noise reduction parameter, is a hyperparameter, and Re represents the matrix rotation encoding function.
[0022] Step 3.1.4: Calculate the encoded features ,and , where T is the transpose.
[0023] Step 3.2, the molecular graph feature enhancement module includes: value matrix calculation module, molecular attention calculation module, and E i Processing, get m i The self-attention matrix ; Step 3.2.1: The value matrix calculation module uses formula (4) to obtain m i The value matrix V i A : (4) In formula (2), softmax is a normalized exponential function. , ,and They represent three different linear operations respectively, and α is a hyperparameter. Here, by introducing graph neural networks to process graph structures, the shortcomings of sequence processing in position information processing can be well compensated.
[0024] Step 3.2.2: The molecular attention calculation module uses formula (5) to obtain the corrected self-attention matrix , according to the transmission direction of the value matrix, the information of the adjacent nodes is updated to make full use of the molecular structure information to improve the accuracy of molecular characterization: (5) In formula (5), Represents a linear mapping operation, where the relative distance is introduced in the softmax function To calculate the self-attention matrix, the computational efficiency is improved.
[0025] Step 3.3, the property prediction module includes: residual module, neural network module, and is used to i The value matrix V i A and F i After processing, we get m i Predicted oxidation potential of and reduction potential prediction ; Step 3.3.1, the residual module includes a W-layer structure; When w=1, V i A and F i After concatenation, it is used as the input feature H of the w-th layer structure i w , and after being processed by the w-th layer structure, the input feature H of the w+1-th layer structure is output i w+1 =H i w +MLP H (H i w ), where MLP H Represents a linear mapping operation; When w=2, 3, ..., W, H i w Input the w-th layer structure for processing and obtain H i w+1 , so that the final feature H is output by the W-th layer structure i W ; Step 3.3.2: Neural network module for H i W Make a prediction and get m i Predicted oxidation potential of and reduction potential prediction .
[0026] Step 3.4, calculate o i and The absolute error between i Oxidation potential loss L i 1o ; Calculate r i and Absolute error between i The reduction potential loss L i 1r , thus constructing m i The total redox potential loss L i 1 =L i 1o + L i 1r , and use the Adam optimizer to train the molecular redox potential prediction network, calculate the total loss corresponding to M to update the network parameters, until the maximum number of iterations is reached or L1 reaches the minimum, stop training, and obtain the optimal molecular redox potential prediction model .
[0027] Step 4, constructing a calibration module, including: a molecular similarity calculation module and a linear correction module; Step 4.1: Set the jth predicted molecule Input molecular redox potential prediction model The jth oxidation potential prediction value is obtained by processing and reduction potential prediction ; Step 4.2: The molecular similarity calculation module calculates the partial molecules {m1, m2, ..., m u ,…,m q} respectively with the molecular fingerprint similarity of each molecule in M, and form a similarity set SI = [SI1, SI2, ..., SI u ,…,SI q ], where q <I,SI u Indicates m u The similarity set between a molecule and all molecules in M, and ,in, Indicates m u With m i The molecular fingerprint similarity between them.
[0028] Step 4.3, calculate the average value set of SI [ , , …, , …, ] and the standard deviation set [ , …, , …, ],in, Indicates SI u The average value of Indicates SI u The standard deviation of Step 4.4: The linear correction module constructs the oxidation potential correction equation based on the mean value set and the standard deviation set. and reduction potential correction equation , where k o , k r , b o and b r are the four parameters to be solved.
[0029] Step 4.5: Follow the process of steps 4.2 and 4.3 to calculate The set of molecular fingerprint similarities with each molecule in M as well as The average and standard deviation ; Step 4.6, Calculation Oxidation potential results after molecular correction And the reduction potential results .
[0030] In this embodiment, an electronic device includes a memory and a processor, wherein the memory is used to store a program that supports the processor to execute the above method, and the processor is configured to execute the program stored in the memory.
[0031] In this embodiment, a computer-readable storage medium stores a computer program on the computer-readable storage medium, and the computer program executes the steps of the above method when executed by a processor.
Claims
1. A method for predicting molecular redox potential, characterized in that: The steps are as follows: Step 1: Construct a molecular redox potential dataset D = {M, O, R, M x }, where M represents an unstructured training molecular dataset, and M={m1, m2, …, m i ,…,m I },m i represents the i-th training molecule; O represents the oxidation potential of the training molecule in M, and O={o1, o2, …, o i ,…,o I },o i Indicates m i The oxidation potential of the training molecule in M is R, and R = {r1, r2, …, r i ,…,r I }; r i Indicates m i The reduction potential of the x represents an unstructured predicted molecular dataset, and M x ={ , , …, , …, },m i x represents the jth predicted molecule, and J represents the total number of molecules; Step 2: Build m i Combination structural features =[ , , ];in, Indicates m i The Gaussian distance matrix between atoms in Indicates m i The bond connectivity matrix of Indicates m i Regularized Laplacian matrix of the topology; M i The nuclear charge number, Gasteiger charge, number of unpaired electrons, position information, and hybridization mode of each atom in the system are concatenated into m i Atomic basic information ; Step 3: construct a molecular redox potential prediction network, including: a molecular encoding module, a molecular graph feature enhancement module, and a property prediction module; Step 3.1: Molecular coding module for m i Perform unique hot encoding, linear mapping and position encoding to obtain the encoded feature E i ; Step 3.2, the molecular graph feature enhancement module includes: a value matrix calculation module, a molecular attention calculation module, and i Processing, get m i The self-attention matrix ; Step 3.3, the property prediction module includes: residual module, neural network module, and is used to i The value matrix V i A and F i After processing, we get m i Predicted oxidation potential of and reduction potential prediction ; Step 3.4, calculate o i and The absolute error between i Oxidation potential loss L i 1o ; Calculate r i and Absolute error between i The reduction potential loss L i 1r , thus constructing m i The total redox potential loss L i 1 =L i 1o + L i 1r , and use the Adam optimizer to train the molecular redox potential prediction network, calculate the total loss corresponding to M to update the network parameters, until the maximum number of iterations is reached or L1 reaches the minimum, stop training, and obtain the optimal molecular redox potential prediction model ; Step 4, constructing a calibration module, including: a molecular similarity calculation module and a linear correction module; Step 4.1: Set the jth predicted molecule Input molecular redox potential prediction model The jth oxidation potential prediction value is obtained by processing and reduction potential prediction ; Step 4.2: The molecular similarity calculation module calculates the partial molecules {m1, m2, ..., m u ,…,m q } respectively with the molecular fingerprint similarity of each molecule in M, and form a similarity set SI = [SI1, SI2, ..., SI u ,…,SI q ], where q <I,SI u Indicates m u The similarity set between a molecule and all molecules in M, and ,in, Indicates m u With m i The molecular fingerprint similarity between them; Step 4.3, calculate the average value set of SI [ , , …, , …, ] and the standard deviation set [ , …, , …, ],in, Indicates SI u The average value of Indicates SI u The standard deviation of Step 4.4: The linear correction module constructs the oxidation potential correction equation based on the mean value set and the standard deviation set. and reduction potential correction equation , where k o , k r , b o and b r are the four parameters to be solved; Step 4.5: Follow the process of steps 4.2 and 4.3 to calculate The set of molecular fingerprint similarities with each molecule in M as well as The average and standard deviation ; Step 4.6, Calculation Oxidation potential results after molecular correction and reduction potential results .
2. A method for predicting molecular redox potential according to claim 1, characterized in that: Described step 2 is carried out as follows: Step 2.1, randomly select Ω% molecules from M, and calculate several descriptors of each training molecule, so as to calculate the Pearson correlation between each descriptor of Ω% training molecules and the redox potential corresponding to Ω% training molecules, and then select the first L descriptors with stable Pearson correlations as: PCC1, PCC2, ..., PCC l , …, PCC L , where PCC l represents the lth descriptor; Step 2.2, calculate m i The semi-empirical conformation and the spatial coordinates of the conformation , where N i is m i The number of atoms in Step 2.3, calculate m i The distance matrix , thus obtaining m i The Gaussian distance matrix between atoms in ,in, represents Gaussian radial basis function; Step 2.4: Calculate m i Laplacian matrix of topological structure And perform regularization to obtain the regularized Laplace matrix ,in, is m i The degree matrix of the topological structure; Step 2.5: Calculate m i The bond connectivity matrix ,in, The element b in the pth row and qth column pq i Indicates m i The type of bond formed between the pth atom and the qth atom in the pq i =0, indicating m i There is no bond between the pth atom and the qth atom; when b pq i =1, indicating m i The pth atom and the qth atom are connected by a single polar bond; when b pq i =-1, indicating m i The pth atom and the qth atom are connected by a single polar bond and a single nonpolar bond; when b pq i =2, indicating m i The pth atom and the qth atom are connected by a double polar bond; when b pq i =-2, indicating m i The pth atom and the qth atom are connected by a double bond and a non-polar bond; when b pq i =3, indicating m i The pth atom and the qth atom are connected by a triple polar bond; when b pq i =-3, indicating m i The pth atom and the qth atom are connected by a triple non-polar bond; Step 2.6, build m i Combination structural features =[ , , ].
3. A method for predicting molecular redox potential according to claim 2, characterized in that: The step 3.1 is carried out as follows: Step 3.1.1, for m i The atoms, bonds, and the first L descriptors in the m are encoded one-hot to obtain m i Independent hot encoding of OH i =[ , , …, ,… ,… ],in, Indicates m i The u-th encoded value of Indicates m i The vth encoding value of , d is the encoding dimension; Step 3.1.2: and Perform different linear mappings and get m accordingly i The u-th mapping value q u and the uth mapping value k v ; Step 3.1.3: Use formula (3) to get and Relative position encoding , thus obtaining m i The relative position encoding matrix , (3) In formula (3), represents an exponential decay correction, represents the noise reduction parameter, is a hyperparameter, Re represents the matrix rotation encoding function; Step 3.1.4: Calculate the encoded features ,and , where T is the transpose.
4. A method for predicting molecular redox potential according to claim 3, characterized in that: The step 3.2 is performed as follows: Step 3.2.1: The value matrix calculation module uses formula (4) to obtain m i The value matrix V i A : (4) In formula (2), softmax is a normalized exponential function. , ,and They represent three different linear operations respectively, and α is a hyperparameter; Step 3.2.2: The molecular attention calculation module uses formula (5) to obtain the corrected self-attention matrix : (5) In formula (5), Represents a linear map operation.
5. A method for predicting molecular redox potential according to claim 4, characterized in that: The step 3.3 is carried out as follows: Step 3.3.1, the residual module includes a W-layer structure; When w=1, V i A and F i After concatenation, it is used as the input feature H of the w-th layer structure i w , and after being processed by the w-th layer structure, the input feature H of the w+1-th layer structure is output i w+1 =H i w +MLP H (H i w ), where MLP H Represents a linear mapping operation; When w=2, 3, ..., W, H i w Input the w-th layer structure for processing and obtain H i w+1 , so that the final feature H is output by the W-th layer structure i W ; Step 3.3.2: The neural network module is used to calculate H i W Make a prediction and get m i Predicted oxidation potential of and reduction potential prediction .
6. An electronic device, comprising a memory and a processor, characterized in that: The memory is used to store a program that supports the processor to execute the prediction method according to any one of claims 1 to 5, and the processor is configured to execute the program stored in the memory.
7. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the steps of the prediction method according to any one of claims 1 to 5 are executed.
