A single-step retrosynthesis method and system based on two-way multi-branch CNN

Through the two-way multi-branch CNN model, combining SMILES sequence and molecular characteristics, the reaction rules are directly predicted, which solves the problem of poor prediction performance caused by the inability of SMILES sequence to effectively reflect the complex relationship of molecules in the existing technology, and achieves a more accurate single-step inversion Synthetic prediction.

CN114360662BActive Publication Date: 2024-11-05WUHAN UNIV
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202111569573.2
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-12-21
Publication Date
2024-11-05
Estimated Expiration
2041-12-21

AI Technical Summary

Technical Problem

The existing single-step inverse synthesis prediction methods rely on SMILES sequences and cannot effectively reflect the complex relationship between atoms in molecules, resulting in poor prediction performance.

Method used

Using a method based on two-way multi-branch CNN, a single-step inverse synthesis prediction model is constructed, and the features generated by SMILES sequence and extended connectivity fingerprint or single-hot encoding matrix are used to directly predict the reaction rules and obtain the prediction probability, and select the front with the greatest probability. k rules are used as output.

Benefits of technology

The effect of single-step inverse synthesis prediction is improved, more potential information is provided, complex domain knowledge is required, and reaction rules can be predicted more accurately.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114360662B_ABST
    Figure CN114360662B_ABST
Patent Text Reader

Abstract

The present invention provides a single-step retrosynthesis method and system based on two-way multi-branch CNN, wherein the method inputs the SMILES sequence of the molecule to be predicted when performing single-step retrosynthesis prediction, and after two-way multi-branch convolution layer, feature splicing layer, and full connection layer, the output reaction rule set can generate the first k reaction rules of the molecule. According to the output reaction rules, combined with the SMILES of the molecule to be predicted, the reactant SMILES of the target molecule is finally calculated to realize the single-step retrosynthesis automation. The present embodiment also proposes a single-step retrosynthesis system based on two-way multi-branch CNN, through reaction data set acquisition, training set construction, model construction, model training, single-step retrosynthesis prediction and result visualization and other module processing processes, the single-step retrosynthesis automation of the target molecule is realized. The results of the present invention can be used in the field of chemical retrosynthesis, and can also be used in the field of biological retrosynthesis, and have a wider range of uses than existing methods.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of analysis of single-step retrosynthesis using molecular sequence information and molecular fingerprint information, and in particular to a single-step retrosynthesis method and system based on a two-way multi-branch CNN, which belongs to the application of a convolutional neural network machine learning model in single-step retrosynthesis. Background Art

[0002] Retrosynthetic analysis is a technique widely used by chemists. It was proposed by Corey et al. in the 1960s to design synthetic routes for target molecules, that is, to continuously convert target molecules into usable "precursor" molecules in a recursive manner until commercially available starting molecules are determined. Since the 1960s, chemists have realized the prospects of computer-assisted chemical retrosynthesis, and have also designed various methods for synthesizing high-value compounds. Similar to chemical retrosynthesis, biological retrosynthesis is a process that potentially simplifies the design of biosynthetic pathways. It was first proposed in 2010. As a conceptual pathway design strategy, biological retrosynthesis shares the same advantages as retrosynthesis, which can guide researchers to gradually obtain simpler usable intermediates.

[0003] Whether it is chemical retrosynthesis or biological retrosynthesis, it is necessary to predict the reactants of the intermediates in the reaction pathway, that is, single-step retrosynthesis, which is used to predict the reactants of the target molecule based on the target molecule. Depending on whether rules are used, single-step retrosynthesis is divided into rule-based methods and rule-free methods. Rule-based methods match the target molecule with a large number of reaction rules, while rule-free methods treat retrosynthesis prediction as a sequence-to-sequence problem.

[0004] Existing single-step retrosynthesis predictions mainly use the SMILES sequence of molecules for single-step retrosynthesis. Rule-based methods match target molecules with a large number of reaction rules, or directly jointly model the rules and reactants; rule-free methods directly use the seq2seq model to predict the SMILES sequence of reactants. However, one disadvantage of the SMILES sequence is that the SMILES representation assumes the order between atoms in the molecule, which cannot effectively reflect the complex relationship between atoms in the molecule. Using only the SMILES sequence will result in poor prediction performance, so it is necessary to combine other features to provide more molecular information for prediction. Summary of the invention

[0005] The present invention proposes a single-step retrosynthesis method and system based on a two-way multi-branch CNN. The single-step retrosynthesis method based on a two-way multi-branch CNN is used to predict reaction rules that can produce target molecules. The method does not require complex domain knowledge, directly predicts reaction rules and simultaneously obtains prediction probability values, thereby solving the technical problem of poor prediction effect existing in the methods in the prior art.

[0006] In order to solve the above technical problems, the first aspect of the present invention provides a single-step retrosynthesis method based on a two-way multi-branch CNN, comprising:

[0007] S1: Obtain a given reaction data set R, the given reaction data set contains different reactions, each reaction contains substrate molecules and product molecules, construct a molecule set S according to the product molecules of the reactions in the given reaction data set, and construct a reaction rule set T according to the reactions in the given reaction data set;

[0008] S2: Based on the constructed molecule set, reaction rule set, and the correspondence between molecules and reaction rules, construct an input data set D = {(s, t)}, where s represents the molecule, t represents the reaction rule, s∈S, t∈T, and the binary (s, t) indicates that there is a reaction that can produce s in the reaction corresponding to reaction rule t;

[0009] S3: Build a two-way multi-branch CNN and construct a single-step retrosynthesis prediction model;

[0010] S4: using the constructed input data set D as a training set to train the single-step retrosynthesis prediction model constructed in step S3, to obtain a trained prediction model A;

[0011] S5: Input the target molecule to be predicted into the trained prediction model A, predict the probability of each reaction rule in the reaction rule set T producing the target molecule, and select the top k rules with the highest probability as the result output according to the probability value, where k is the set parameter.

[0012] In one embodiment, in step S1, the established reaction data set R in step S1 is a set obtained by sorting known reactions collected from public resources, and each reaction in R contains the following components: a reaction ID, a SMILES sequence representing one or more reactants, and a SMILES sequence representing a product molecule; wherein, the original reaction with multiple products is decomposed into multiple single-product reactions and assigned the same ID.

[0013] In one embodiment, the two-way multi-branch CNN constructed in step S4 includes five layers, namely, an input layer, a two-way multi-branch convolutional layer, a feature concatenation layer, a fully connected layer, and an output layer;

[0014] Among them, the input layer contains an input node for inputting the SMILES sequence of the molecule;

[0015] The two-way multi-branch convolutional layer consists of two networks with similar structures, which are used to obtain two convolutional features of the input molecules. Each of the two ways includes multiple branches, and each branch is composed of convolution, batch normalization, Sigmoid activation and maximum pooling operations in sequence. For each input, different branches use convolution kernels of different sizes for convolution, and obtain different convolution vectors after batch normalization, Sigmoid activation and maximum pooling. Multiple convolution vectors are concatenated to obtain the convolution features corresponding to the input.

[0016] The concatenation layer is used to concatenate the two convolutional features to obtain the fusion representation features of the input molecule;

[0017] The fully connected layer calculates the probability of each reaction rule in the reaction rule set T generating the input molecule through the Softmax function, and the probability value ranges from [0,1];

[0018] The output layer contains |T| nodes, corresponding to each reaction rule in the reaction rule set T, and |T| represents the size of the set T.

[0019] In one embodiment, in the two-way multi-branch convolutional layer, one input V1 is an extended connectivity fingerprint with a radius value of 2 generated based on the SMILES sequence of the input molecule, and the other input V2 is a one-hot encoding matrix generated based on the SMILES sequence of the input molecule and an alphabet, wherein the alphabet consists of predetermined symbols contained in the SMILES sequences of all molecules.

[0020] In one embodiment, the convolution kernels used in the two multi-branch convolutional layers are both one-dimensional convolution kernels. For one of the paths, assuming that the convolution kernel size of the first branch is size0, the size of the convolution kernel of the i-th branch is set to size0+(i-1)×step, where step is the step size of the convolution kernel size increase.

[0021] In one embodiment, in step S5, the format of the SMILES sequence is converted before the target molecule to be predicted is input into the model.

[0022] Based on the same inventive concept, the second aspect of the present invention provides a single-step retrosynthesis system based on a two-way multi-branch CNN, comprising:

[0023] A reaction data set acquisition module is used to acquire a predetermined reaction data set R, wherein the predetermined reaction data set includes different reactions, each reaction includes a substrate molecule and a product molecule, construct a molecule set S according to the product molecules of the reaction in the predetermined reaction data set, and construct a reaction rule set T according to the reactions in the predetermined reaction data set;

[0024] The training set construction module is used to construct an input data set D = {(s, t)} according to the constructed molecule set, reaction rule set and the correspondence between molecules and reaction rules, where s represents a molecule, t represents a reaction rule, s∈S, t∈T, and a binary (s, t) represents that there is a reaction that can produce s in the reaction corresponding to reaction rule t;

[0025] Model building module, used to build a two-way multi-branch CNN and construct a single-step retrosynthesis prediction model;

[0026] A model training module, used to train the single-step retrosynthesis prediction model constructed in step S3 using the constructed input data set D as a training set to obtain a trained prediction model A;

[0027] The single-step retrosynthesis prediction module is used to input the target molecule to be predicted into the trained prediction model A, predict the probability of each reaction rule in the reaction rule set T producing the target molecule, and select the top k rules with the highest probability as the result output according to the probability value, where k is the set parameter.

[0028] In one embodiment, the system further comprises: a result visualization module for visually displaying molecules, molecule-related reactions, and predicted reaction rules in a graphical manner.

[0029] The above one or more technical solutions in the embodiments of the present application have at least one or more of the following technical effects:

[0030] The single-step retrosynthesis method based on two-way multi-branch CNN provided by the present invention first constructs a molecule set S and a reaction rule set T respectively according to an acquired established reaction data set R, and constructs an input data set D according to the constructed molecule set, reaction rule set and the correspondence between molecules and reaction rules, and then builds a two-way multi-branch CNN to construct a single-step retrosynthesis prediction model; then uses the constructed input data set D to train the constructed single-step retrosynthesis prediction model; finally, the trained model A is used to predict the single-step retrosynthesis. The method does not require complex domain knowledge, can directly predict the reaction rules and simultaneously obtain the prediction probability value. Compared with the existing method, it can provide more potential information, thereby improving the prediction effect.

[0031] In addition, the present invention also proposes a single-step retrosynthesis system based on a two-way multi-branch CNN, which is used to quickly assist chemists in performing single-step retrosynthesis. BRIEF DESCRIPTION OF THE DRAWINGS

[0032] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.

[0033] Figure 1 Flow chart of a single-step retrosynthesis method based on a two-way multi-branch CNN in an embodiment of the present invention;

[0034] Figure 2 A schematic diagram of a single-step retrosynthesis model A based on a two-way multi-branch CNN used in an embodiment of the present invention;

[0035] Figure 3 A schematic diagram of a one-hot encoding matrix of a SMILES sequence used in an embodiment of the present invention;

[0036] Figure 4 Schematic diagram of a module of a single-step retrosynthesis system based on a two-way multi-branch CNN in an embodiment of the present invention. DETAILED DESCRIPTION

[0037] In view of the deficiencies of the prior art, the present invention proposes a single-step retrosynthesis method based on a two-way multi-branch CNN. The single-step retrosynthesis method based on a two-way multi-branch CNN is used to predict the reaction rules that can produce target molecules. The method does not require complex domain knowledge, directly predicts the reaction rules and simultaneously obtains the predicted probability value. Compared with the existing methods, it can provide more potential information. The present invention also proposes a single-step retrosynthesis system based on a two-way multi-branch CNN, which is used to quickly assist chemists in single-step retrosynthesis.

[0038] In order to make the purpose, technical solution and advantages of the embodiments of the present invention clearer, the technical solution in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.

[0039] Embodiment 1

[0040] The embodiment of the present invention provides a single-step retrosynthesis method based on a two-way multi-branch CNN, comprising:

[0041] S1: Obtain a given reaction data set R, the given reaction data set contains different reactions, each reaction contains substrate molecules and product molecules, construct a molecule set S according to the product molecules of the reactions in the given reaction data set, and construct a reaction rule set T according to the reactions in the given reaction data set;

[0042] S2: Based on the constructed molecule set, reaction rule set, and the correspondence between molecules and reaction rules, construct an input data set D = {(s, t)}, where s represents the molecule, t represents the reaction rule, s∈S, t∈T, and the binary (s, t) indicates that there is a reaction that can produce s in the reaction corresponding to reaction rule t;

[0043] S3: Build a two-way multi-branch CNN and construct a single-step retrosynthesis prediction model;

[0044] S4: using the constructed input data set D as a training set to train the single-step retrosynthesis prediction model constructed in step S3, to obtain a trained prediction model A;

[0045] S5: Input the target molecule to be predicted into the trained prediction model A, predict the probability of each reaction rule in the reaction rule set T producing the target molecule, and select the top k rules with the highest probability as the result output according to the probability value, where k is the set parameter.

[0046] Specifically, step S1 is to construct a molecule set and a reaction rule set T based on a given reaction data set R, step S2 is to construct an input data set, step S3 is to construct a single-step retrosynthesis prediction model, step S4 is to train the model, and step S5 is to use the trained model A to perform single-step retrosynthesis prediction.

[0047] In one embodiment, in step S1, the established reaction data set R is a collection of known reactions collected from public resources, and each reaction in R contains the following components: a reaction ID, a SMILES sequence representing one or more reactants, and a SMILES sequence representing a product molecule; wherein, the original reaction with multiple products is decomposed into multiple single-product reactions and assigned the same ID.

[0048] When the reaction includes a catalytic enzyme, the information included in the reaction also includes the catalytic enzyme number.

[0049] The reaction rule set T can be constructed by calling the template_extractor function in RDChiral. The input of this function is a specific reaction in the reaction dataset R, and the output is the reaction rule corresponding to the reaction. Each reaction rule in the reaction rule set T is assigned a unique rule label.

[0050] In one embodiment, the two-way multi-branch CNN constructed in step S4 includes five layers, namely, an input layer, a two-way multi-branch convolutional layer, a feature concatenation layer, a fully connected layer, and an output layer;

[0051] Among them, the input layer contains an input node for inputting the SMILES sequence of the molecule;

[0052] The two-way multi-branch convolutional layer consists of two networks with similar structures, which are used to obtain two convolutional features of the input molecules. Each of the two ways includes multiple branches, and each branch is composed of convolution, batch normalization, Sigmoid activation and maximum pooling operations in sequence. For each input, different branches use convolution kernels of different sizes for convolution, and obtain different convolution vectors after batch normalization, Sigmoid activation and maximum pooling. Multiple convolution vectors are concatenated to obtain the convolution features corresponding to the input.

[0053] The concatenation layer is used to concatenate the two convolutional features to obtain the fusion representation features of the input molecule;

[0054] The fully connected layer calculates the probability of each reaction rule in the reaction rule set T generating the input molecule through the Softmax function, and the probability value ranges from [0,1];

[0055] The output layer contains |T| nodes, corresponding to each reaction rule in the reaction rule set T, and |T| represents the size of the set T.

[0056] See also Figure 2 , which is a schematic diagram of a single-step retrosynthesis model A based on a two-way multi-branch CNN used in an embodiment of the present invention.

[0057] In one embodiment, in the two-way multi-branch convolutional layer, one input V1 is an extended connectivity fingerprint with a radius value of 2 generated based on the SMILES sequence of the input molecule, and the other input V2 is a one-hot encoding matrix generated based on the SMILES sequence of the input molecule and an alphabet, wherein the alphabet consists of predetermined symbols contained in the SMILES sequences of all molecules.

[0058] Specifically, the length of the Extended Connectivity Fingerprints (ECFP) is 2048. The one-hot encoding matrix of the other input V2 is 300*40 in size. 300 is the maximum length of the established molecule SMILES. If the SMILES length is less than or equal to 300, 0 is directly added to the end of the SMILES until the SMILES length is 300; if the SMILES length is greater than 300, the SMILES string is truncated, and the part exceeding 300 is directly truncated, and 40 is the length of the alphabet.

[0059] See also Figure 3 , is a schematic diagram of the one-hot encoding matrix of the SMILES sequence used in an embodiment of the present invention.

[0060] In one embodiment, the convolution kernels used in the two multi-branch convolutional layers are both one-dimensional convolution kernels. For one of the paths, assuming that the convolution kernel size of the first branch is size0, the size of the convolution kernel of the i-th branch is set to size0+(i-1)×step, where step is the step size of the convolution kernel size increase.

[0061] The convolution kernels used in the two multi-branch convolution layers are all one-dimensional convolution kernels, which differ only in the number of input channels, while the output channels are all 40. For the input V1 path, the input channel of all convolution kernels in this path is 1, and for the input V2 path, the input channel of all convolution kernels in this path is 40, which is the length of the alphabet. For one of the convolution kernel paths, let the convolution kernel size of the first branch be size0, then the convolution kernel size of the i-th branch is set to size0+(i-1)×step, where step is the step size of the convolution kernel size increase.

[0062] In one embodiment, in step S5, the format of the SMILES sequence is converted before the target molecule to be predicted is input into the model.

[0063] See also Figure 1 , a flowchart of single-step retrosynthesis prediction based on two-way multi-branch CNN provided by an embodiment of the present invention.

[0064] In specific implementation, the established reaction data set R of step S1 is a collection of known reactions collected from public resources. Each reaction in R contains the following components: reaction ID, SMILES sequence representing one or more reactants, SMILES sequence representing a product molecule, and catalytic enzyme number (if any). For the original reaction with multiple products, it is decomposed into multiple single-product reactions and assigned the same ID.

[0065] In one scenario, a given reaction dataset R is obtained by collating all chemical reactions in the publicly available chemical reaction dataset USPTO-50k. Each reaction in R contains a reaction ID, a SMILES sequence representing one or more reactants, and a SMILES sequence representing a product molecule.

[0066] In another case, the given reaction dataset R is obtained by collating all metabolic reactions in the publicly available metabolic reaction dataset MetaNetX. Each reaction in R contains the following components: reaction ID, SMILES sequence representing one or more reactants, SMILES sequence representing a product molecule, and catalytic enzyme number (which can be empty).

[0067] The reaction rule set T is constructed by calling the template_extractor function in RDChiral. The input of this function is a specific reaction in the reaction dataset R, and the output is the reaction rule corresponding to the reaction. Each reaction rule in the reaction rule set T is assigned a unique rule label.

[0068] In step S3, the two-way multi-branch CNN network structure mainly includes five layers: input layer, two-way multi-branch convolution layer, feature concatenation layer, fully connected layer and output layer. The processing steps of each layer are as follows:

[0069] 3.1 The input layer contains an input node for inputting the SMILES sequence of the molecule;

[0070] 3.2 Two-way multi-branch convolution layer consists of two networks with similar structures, which are used to obtain two convolution features of the input molecules in 3.1. Each of them includes multiple branches, and each branch is composed of convolution, batch normalization, Sigmoid activation and maximum pooling operations in sequence. For the input of this path, different branches use convolution kernels of different sizes for convolution, and perform batch normalization, Sigmoid activation and maximum pooling to obtain different convolution vectors. Multiple vectors are concatenated to obtain the convolution features corresponding to the input of this path.

[0071] The concatenation layer 3.3 is used to concatenate the two convolutional features obtained in 3.2 to obtain the fusion representation features of the input molecules in 3.1;

[0072] 3.4 The fully connected layer uses the Softmax function to calculate the probability of each reaction rule in the reaction rule set T generating the input molecule in 3.1, and the probability value range is [0,1];

[0073] 3.5 The output layer contains |T| nodes, corresponding to each reaction rule in the reaction rule set T, and |T| represents the size of the set T.

[0074] In 3.2, the input V1 of one of the two multi-branch convolutional layers is an extended connectivity fingerprint (ECFP) with a radius of 2 generated based on the SMILES sequence of the input molecule in 3.1, and its length is 2048. The input V2 of the other channel is a one-hot encoding matrix generated based on the SMILES sequence of the input molecule in 3.1 and a predetermined alphabet consisting of symbols contained in the SMILES sequences of all molecules, and its size is 300*40. Among them, 300 is the maximum length of the predetermined molecule SMILES. If the SMILES length is less than or equal to 300, 0 is directly added to the end of the SMILES until the SMILES length is 300; if the SMILES length is greater than 300, the SMILES string is truncated, and the part with a length exceeding 300 is directly truncated, and 40 is the length of the alphabet. The corresponding position in the one-hot encoding matrix is ​​1 for the letters that appear in the SMILES sequence of the input molecule, otherwise it is 0.

[0075] The convolution kernels used in 3.2 are all one-dimensional convolution kernels. For one path with input V1, the input channel of all convolution kernels in this path is 1, and for one path with input V2, the input channel of all convolution kernels in this path is 40, which is the length of the alphabet. For one path, let the convolution kernel size of the first branch be size0, then the convolution kernel size of the i-th branch is set to size0+(i-1)×step, where step is the step size of the convolution kernel size increase.

[0076] Figure 2 This is the network structure of a specific implementation scheme of the two-way multi-branch CNN.

[0077] In a specific embodiment,

[0078] The Sigmoid activation function in 3.2 is:

[0079]

[0080] Among them, e is a natural constant, x represents the output of the previous layer, and f(x) is the output of the activation function. This function has the properties of monotonic increase and inverse monotonic increase, is smooth and easy to differentiate, and is used for the output of hidden layer neurons. Its value range is (0,1), and it can map a real number to the interval (0,1).

[0081] In one embodiment, the model in S3, for a multi-branch convolution with an input of ECFP fingerprint, sets the size of the starting convolution kernel size0 to 32, the step size of the convolution kernel size increase step to 32, the maximum convolution kernel size does not exceed 2048 (the length of the ECFP fingerprint vector), and a total of 64 branches are constructed.

[0082] In one embodiment, the model in S3, for a multi-branch convolution with a single-hot encoding matrix as input, sets the size of the starting convolution kernel size0 to 5, the step size of the convolution kernel size increase to 5, the maximum convolution kernel size does not exceed 300 (the maximum length of the SMILES sequence), and a total of 60 branches are constructed.

[0083] The Softmax function in 3.4 is specifically defined as:

[0084]

[0085] Among them, e is a natural constant, ∑ j e j represents the sum of all neurons with e as the base and the neuron as the exponent, S i Represents the result of the ith neuron after Softmax.

[0086] In one embodiment, the loss function of the model adopts a cross entropy loss function, which is specifically expressed as:

[0087]

[0088] Among them, M is the total number of labels, that is, the size of the reaction rule set T, N is the total number of samples; y i,c A binary identifier, indicating whether the true label of sample i is c, that is, whether the predicted rule of sample i is the same as the true rule c. It takes 1 when the true label of sample i is the same as c, otherwise it takes 0; p i,c It represents the probability that the label of sample i is c, that is, the probability that the predicted rule of sample i is c.

[0089] In one embodiment, the Adam optimization method is used to optimize the model.

[0090] In a specific embodiment, the data set constructed in step S2 is randomly divided into a training set, a validation set and a test set at a ratio of 8:1:1. The training set and the validation set are used for model training, and the test set does not participate in the training, and is used to evaluate the single-step retrosynthesis prediction performance of the trained model. The number of training rounds (epochs) is set to 20, and multiple iterations are performed in each round until all training samples participate in one training, and the number of training samples participating in one iteration, batch_size, is set to 128. The initial learning rate is set to 0.001.

[0091] Example 1: All chemical reactions in the publicly available chemical reaction data set USPTO-50k are sorted to obtain a predetermined reaction data set R. The data set D described in step three is constructed according to R sorting, and is randomly divided into a training set, a validation set, and a test set in a ratio of 8:1:1. The training set and the validation set train the model, and the test set tests the prediction accuracy of the trained single-step chemical retrosynthesis prediction model. Table 1 shows the prediction performance of the single-step chemical retrosynthesis prediction method based on two-way multi-branch CNN proposed in the present invention in single-step chemical retrosynthesis. At present, the best top-1 prediction accuracy in this field does not exceed 52.5%. Obviously, the prediction accuracy of the model obtained based on the present invention is significantly higher than the best result in this field. The prediction accuracy of the model based on the present invention in top-3, top-5 and top-10 is also higher than that of the existing model.

[0092] Table 1: Prediction accuracy of the single-step chemical retrosynthesis model constructed based on USPTO-50k

[0093] Top-1 Top-3 Top-5 Top-10 61.1% 79.1% 83.9% 87.7%

[0094] Example 2: All metabolic reactions in the publicly available metabolic reaction dataset MetaNetX are sorted to obtain a predetermined reaction dataset R. The dataset D described in step three is constructed based on R sorting, and is randomly divided into a training set, a validation set, and a test set at a ratio of 8:1:1. The training set and the validation set train the model, and the test set tests the performance of the trained single-step bioretrosynthesis prediction model. Table 2 shows the prediction performance of the single-step bioretrosynthesis prediction method based on two-way multi-branch CNN proposed in the present invention in single-step bioretrosynthesis. In bioretrosynthesis, no reports on the prediction of single-step bioretrosynthesis have been found so far. The present invention successfully applies the single-step retrosynthesis method in the field of chemistry to single-step bioretrosynthesis, broadens the new ideas for bioretrosynthesis, and fills the gap in the prediction of single-step bioretrosynthesis.

[0095] Table 2: Prediction accuracy of single-step biological retrosynthesis model built based on MetaNetX

[0096]

[0097]

[0098] The present invention is the first method in the field of single-step retrosynthesis to use convolutional neural networks for prediction, realizing an end-to-end single-step retrosynthesis framework without the need for complex field parameter settings. At the same time, the present invention utilizes the fusion features of molecular fingerprints and one-hot encoding, and can provide more potential information compared to existing methods that only use single information.

[0099] Compared with the prior art, the beneficial effects of the present invention are:

[0100] 1. This invention is the first method in the field of single-step retrosynthesis to use convolutional neural networks to predict single-step retrosynthesis, realizing an end-to-end single-step retrosynthesis framework without the need for complex field parameter settings.

[0101] 2. The present invention utilizes the fusion features of fingerprint and one-hot encoding, which can provide more potential information compared with the existing methods.

[0102] 3. The results of the present invention can be used in both the field of chemical retrosynthesis and the field of biological retrosynthesis, and have a wider range of uses than existing methods. In particular, the idea of ​​predicting single-step retrosynthesis is currently blank in the field of biological retrosynthesis, and the method of the present invention can fill this gap.

[0103] Embodiment 2

[0104] Based on the same inventive concept, this embodiment provides a single-step retrosynthesis system based on a two-way multi-branch CNN, characterized in that it includes:

[0105] A reaction data set acquisition module is used to acquire a predetermined reaction data set R, wherein the predetermined reaction data set includes different reactions, each reaction includes a substrate molecule and a product molecule, construct a molecule set S according to the product molecules of the reaction in the predetermined reaction data set, and construct a reaction rule set T according to the reactions in the predetermined reaction data set;

[0106] The training set construction module is used to construct an input data set D = {(s, t)} according to the constructed molecule set, reaction rule set and the correspondence between molecules and reaction rules, where s represents a molecule, t represents a reaction rule, s∈S, t∈T, and a binary (s, t) represents that there is a reaction that can produce s in the reaction corresponding to reaction rule t;

[0107] Model building module, used to build a two-way multi-branch CNN and construct a single-step retrosynthesis prediction model;

[0108] A model training module, used to train the single-step retrosynthesis prediction model constructed in step S3 using the constructed input data set D as a training set to obtain a trained prediction model A;

[0109] The single-step retrosynthesis prediction module is used to input the target molecule to be predicted into the trained prediction model A, predict the probability of each reaction rule in the reaction rule set T producing the target molecule, and select the top k rules with the highest probability as the result output according to the probability value, where k is the set parameter.

[0110] The reaction data set acquisition module includes a reaction data set construction unit, a reaction rule set generation unit and a molecule set construction unit.

[0111] The molecular processing module is a component of the single-step retrosynthesis prediction model, which includes extracting the SMILES sequence of related molecules from the reaction, generating fingerprint vectors based on the SMILES sequence, and generating one-hot based on the SMILES sequence and alphabet.

[0112] In one embodiment, the system further comprises: a result visualization module for visually displaying molecules, molecule-related reactions, and predicted reaction rules in a graphical manner.

[0113] See also Figure 4 , is a module schematic diagram of a single-step retrosynthesis system based on a two-way multi-branch CNN in an embodiment of the present invention.

[0114] The reaction data set acquisition module includes three parts: a reaction data set acquisition unit, a molecule set construction unit and a reaction rule set generation unit. The data set acquisition unit is a reaction data set obtained by sorting out known reactions collected from public resources; the molecule set construction unit is a molecule set constructed according to the product molecules of the reaction in the reaction data set; the reaction rule set generation unit is a reaction rule set generated based on all reactions in the reaction data set; the training set construction module is a training set composed of (molecules, reaction rules); the model training module is a dual-path multi-branch CNN that is trained and optimized to obtain a single-step retrosynthesis prediction model; the single-step retrosynthesis prediction module is a module that predicts the top k reaction rules that can produce the unknown target molecule SMILES sequence, where k is a pre-set parameter; the result visualization module is a module that uses graphics to intuitively display molecules, molecule-related reactions, predicted reaction rules, etc.

[0115] In general, when the method of embodiment 1 is used to predict single-step retrosynthesis, the SMILES sequence of the molecule to be predicted is input, and after two-way multi-branch convolutional layer, feature splicing layer, and fully connected layer, the output reaction rule set can generate the first k reaction rules of the molecule. According to the output reaction rules, combined with the SMILES of the molecule to be predicted, the reactant SMILES of the target molecule is finally calculated to realize the automation of single-step retrosynthesis. This embodiment also proposes a single-step retrosynthesis system based on two-way multi-branch CNN, which realizes the automation of single-step retrosynthesis of the target molecule through module processing processes such as reaction data set acquisition, training set construction, model construction, model training, single-step retrosynthesis prediction, and result visualization. The present invention is the first method in the field of single-step retrosynthesis to use convolutional neural network to predict single-step retrosynthesis, and realizes an end-to-end single-step retrosynthesis framework. The results of the present invention can be used in the field of chemical retrosynthesis and in the field of biological retrosynthesis, and have a wider range of uses than existing methods. In particular, the idea of ​​​​predicting single-step retrosynthesis is currently blank in the field of biological retrosynthesis, and the method of the present invention can fill this gap.

[0116] Since the system introduced in the second embodiment of the present invention is a system used to implement the single-step reverse synthesis method based on two-way multi-branch CNN in the first embodiment of the present invention, the specific structure of the system can be understood by a person skilled in the art based on the method introduced in the first embodiment of the present invention, and will not be described in detail here. All systems adopted by the method of the first embodiment of the present invention belong to the scope of protection of the present invention.

[0117] It should be understood that the above description of the preferred embodiment is relatively detailed and cannot be regarded as limiting the scope of patent protection of the present invention. Under the enlightenment of the present invention, ordinary technicians in this field can also make substitutions or modifications without departing from the scope of protection of the claims of the present invention, which all fall within the scope of protection of the present invention. The scope of protection requested for the present invention shall be based on the attached claims.

Claims

1. A single-step retrosynthesis method based on two-way multi-branch CNN, It is characterized in that include: S1: Obtaining a given reaction dataset , a given reaction data set contains different reactions, each reaction contains substrate molecules and product molecules, a molecule set S is constructed based on the product molecules of the reactions in the given reaction data set, and a reaction rule set is constructed based on the reactions in the given reaction data set ; S2: Construct the input data set based on the constructed molecule set, reaction rule set, and the correspondence between molecules and reaction rules ,in, Represents molecules, represents the reaction rule, , , a binary Reaction rules The corresponding reaction has the ability to produce reaction; S3: Build a two-way multi-branch CNN and construct a single-step retrosynthesis prediction model; S4: using the constructed input data set D as a training set to train the single-step retrosynthesis prediction model constructed in step S3, to obtain a trained prediction model A; S5: Input the target molecule to be predicted into the trained prediction model A to predict the reaction rule set The probability of each reaction rule producing the target molecule is calculated, and the one with the highest probability is selected according to the probability value. The rules are output as the result. is the set parameter; The two-way multi-branch CNN constructed in step S3 includes five layers, namely, an input layer, a two-way multi-branch convolutional layer, a feature concatenation layer, a fully connected layer, and an output layer; Among them, the input layer contains an input node for inputting the SMILES sequence of the molecule; The two-way multi-branch convolutional layer consists of two networks with similar structures, which are used to obtain two convolutional features of the input molecules. Each of the two ways includes multiple branches, and each branch is composed of convolution, batch normalization, Sigmoid activation and maximum pooling operations in sequence. For each input, different branches use convolution kernels of different sizes for convolution, and obtain different convolution vectors after batch normalization, Sigmoid activation and maximum pooling. Multiple convolution vectors are concatenated to obtain the convolution features corresponding to the input. The concatenation layer is used to concatenate the two convolutional features to obtain the fusion representation features of the input molecule; The fully connected layer calculates the probability of each reaction rule in the reaction rule set T generating the input molecule through the Softmax function, and the probability value ranges from [0,1]; The output layer contains |T| nodes, corresponding to each reaction rule in the reaction rule set T, and |T| represents the size of the set T; In the two-way multi-branch convolutional layer, one input V1 is an extended connectivity fingerprint with a radius of 2 generated based on the SMILES sequence of the input molecule, and the other input V2 is a one-hot encoding matrix generated based on the SMILES sequence of the input molecule and an alphabet, where the alphabet consists of predetermined symbols contained in the SMILES sequences of all molecules; The convolution kernels used in the two multi-branch convolution layers are all one-dimensional convolution kernels. For one of the paths, the convolution kernel size of the first branch is set to , then The size of the convolution kernel of each branch is set to ,in The stride by which the kernel size is increased.

2. The single-step retrosynthesis method according to claim 1, It is characterized in that In step S1, the established reaction data set R in step S1 is a set obtained by sorting known reactions collected from public resources. Each reaction in R contains the following components: a reaction ID, a SMILES sequence representing one or more reactants, and a SMILES sequence representing a product molecule; wherein, the original reaction with multiple products is decomposed into multiple single-product reactions and assigned the same ID.

3. The single-step retrosynthesis method according to claim 1, It is characterized in that In step S5, the target molecule to be predicted is converted into a SMILES sequence before being input into the model.

4. A single-step retrosynthesis system based on two-way multi-branch CNN, It is characterized in that include: Reaction dataset acquisition module, used to obtain the established reaction dataset , a given reaction data set contains different reactions, each reaction contains substrate molecules and product molecules, a molecule set S is constructed based on the product molecules of the reactions in the given reaction data set, and a reaction rule set is constructed based on the reactions in the given reaction data set ; The training set construction module is used to construct the input data set based on the constructed molecule set, reaction rule set, and the correspondence between molecules and reaction rules. ,in, Represents molecules, represents the reaction rule, , , a binary Reaction rules The corresponding reaction has the ability to produce reaction; Model building module, used to build a two-way multi-branch CNN and construct a single-step retrosynthesis prediction model; A model training module is used to train the constructed single-step retrosynthesis prediction model using the constructed input data set D as a training set to obtain a trained prediction model A; The single-step retrosynthesis prediction module is used to input the target molecule to be predicted into the trained prediction model A and predict the reaction rule set The probability of each reaction rule producing the target molecule is calculated, and the one with the highest probability is selected according to the probability value. The rules are output as the result. is the set parameter; Among them, the two-way multi-branch CNN built in the model construction module includes five layers, namely input layer, two-way multi-branch convolution layer, feature concatenation layer, fully connected layer and output layer; Among them, the input layer contains an input node for inputting the SMILES sequence of the molecule; The two-way multi-branch convolutional layer consists of two networks with similar structures, which are used to obtain two convolutional features of the input molecules. Each of the two ways includes multiple branches, and each branch is composed of convolution, batch normalization, Sigmoid activation and maximum pooling operations in sequence. For each input, different branches use convolution kernels of different sizes for convolution, and obtain different convolution vectors after batch normalization, Sigmoid activation and maximum pooling. Multiple convolution vectors are concatenated to obtain the convolution features corresponding to the input. The concatenation layer is used to concatenate the two convolutional features to obtain the fusion representation features of the input molecule; The fully connected layer calculates the probability of each reaction rule in the reaction rule set T generating the input molecule through the Softmax function, and the probability value ranges from [0,1]; The output layer contains |T| nodes, corresponding to each reaction rule in the reaction rule set T, and |T| represents the size of the set T; In the two-way multi-branch convolutional layer, one input V1 is an extended connectivity fingerprint with a radius of 2 generated based on the SMILES sequence of the input molecule, and the other input V2 is a one-hot encoding matrix generated based on the SMILES sequence of the input molecule and an alphabet, where the alphabet consists of predetermined symbols contained in the SMILES sequences of all molecules; The convolution kernels used in the two multi-branch convolution layers are all one-dimensional convolution kernels. For one of the paths, the convolution kernel size of the first branch is set to , then The size of the convolution kernel of each branch is set to ,in The stride by which the kernel size is increased.

5. The single-step retrosynthesis system based on two-way multi-branch CNN as claimed in claim 4, It is characterized in that The system also includes: a result visualization module, which is used to intuitively display molecules, molecule-related reactions, and predicted reaction rules in a graphical manner.