Small molecular structure prediction method based on equal variable flow matching modeling

Through the small molecule structure prediction method based on isovariant matching modeling, the flow matching model and the Modified Equiformer model are constructed, and the predicted 3D molecular graph information is generated using the ODE solver, which solves the problem of predicting small and medium-sized molecules in the existing technology and improves the prediction. Accuracy and efficiency.

CN119446334AActive Publication Date: 2025-02-14ZHEJIANG UNIV OF TECH
View PDF 8 Cites 0 Cited by

Patent Information

Application Number
CN202411286388.6
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-09-13
Publication Date
2025-02-14
Estimated Expiration
2044-09-13

AI Technical Summary

Technical Problem

The existing small molecule structure prediction methods are difficult to effectively predict atomic coordinates after fixing the atomic type of molecule, and the calculation cost is high, making it difficult to ensure the symmetry of molecules.

Method used

A small molecule structure prediction method based on isovariant matching modeling is adopted. By acquiring the data set and preprocessing it, a flow matching model and a Modified Equiformer model are constructed, and predicted 3D molecular graph information is generated using the ODE solver.

Benefits of technology

It improves the accuracy of small molecule structure information and the speed and accuracy of structural prediction, solves the problem of atomic coordinate prediction, and reduces the calculation cost.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119446334A_ABST
    Figure CN119446334A_ABST
Patent Text Reader

Abstract

The invention relates to the technical field of chemical informatics, in particular to a small molecular structure prediction method based on equal variable flow matching modeling. The method comprises the following steps: acquiring a data set and real 3D molecular map information in the data set; constructing a flow matching model, and performing flow matching to obtain flow matching time, a probability path of real molecular coordinates and a real vector field; the method comprises the following steps of: constructing a modified Equform model and training the modified Equform model; initial molecular coordinates which are identical in size and meet Gaussian distribution are randomly initialized based on the number of atoms in real 3D molecular map information, the initial molecular coordinates, flow matching time and the trained Modified Equform model are input into an ODE solver of a black box to generate predicted 3D molecular map information, and a predicted molecular structure map is obtained. According to the invention, the accuracy of small molecule structure information is improved, and the structure prediction speed and precision are greatly improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The invention relates to the fields of chemical informatics and computer application technology, and in particular to a small molecule structure prediction method based on isovariant flow matching modeling. Background Art

[0002] Molecular structure prediction is an important technology in the field of cheminformatics, which aims to use computational methods and algorithms to determine the 3D spatial arrangement of molecules. The 3D structure of a molecule determines how it interacts with other molecules or protein surfaces, thereby affecting its biological activity and function. This is widely used in the field of computational drug and material design.

[0003] Traditional molecular structure prediction methods, such as those based on classical force fields or quantum mechanics calculations, molecular dynamics or Markov chain Monte Carlo, have very high computational costs, may require long runs to obtain reliable results, and cannot guarantee the symmetry of molecules.

[0004] Flow Matching is an emerging generative modeling technique with the advantages of simplicity and efficient training. This technique is often combined with a generative model based on normalizing flows (NFs) to learn the process of transferring samples from noise distribution to data distribution. Continuous Normalizing Flows (CNFs) is an extension of NFs, using ordinary differential equations (ODE) to create a continuous transfer process for modeling probability distributions. Flow matching is a method for training CNFs, which trains the model by learning the vector field associated with the probability transmission path and uses the ODE solver for faster sampling. Therefore, the introduction of flow matching provides new ideas and methods for small molecule structure prediction.

[0005] Existing methods usually apply flow matching methods to the field of small molecule structure generation, including the generation of atomic coordinates, atom types, edge types, formal charges, etc. For example, the EquiFM model proposed by Tsinghua University and Stanford University in 2023 applies the flow matching method to the generation of molecular atomic types and atomic coordinates; the MolFlow model proposed by Chalmers University of Technology in 2024 applies the flow matching method to the generation of molecular atomic coordinates, atom types, edge types, and formal charges. However, none of them fix the atomic type in advance, and cannot solve the problem of atomic coordinate prediction after fixing the molecular atomic type. Summary of the invention

[0006] The purpose of the present invention is to solve the problems of the prior art and to propose a small molecule structure prediction method based on isovariant flow matching modeling.

[0007] In order to achieve the above purpose, the technical solution of this application is as follows: A small molecule structure prediction method based on isovariant flow matching modeling, comprising: Acquire and preprocess the data set to obtain the real 3D molecular graph information in the preprocessed data set; Construct a flow matching model, set the standard deviation to 0-0.2, perform flow matching to obtain the flow matching time, the probability path corresponding to the real molecular coordinates in the real 3D molecular graph information, and the real vector field; Construct a Modified Equiformer model and train it using real 3D molecular graph information, flow matching time, probability path of real molecular coordinates, and real vector field; Based on the number of atoms in the small molecule structure to be predicted, the initial molecular coordinates of the same size are randomly initialized to satisfy the Gaussian distribution. , the initial molecular coordinates , the flow matching time and the trained Modified Equiformer model are input into a black box ODE solver to generate predicted 3D molecular graph information, wherein the predicted 3D molecular graph information includes predicted molecular coordinates and predicted atomic coordinates, and finally a predicted molecular structure graph is obtained.

[0008] Furthermore, the preprocessing includes: removing the information related to hydrogen atoms in each molecule in the data set, and aggregating different conformations of the same molecule together according to the smiles formula of each molecule.

[0009] Furthermore, the real 3D molecular graph information includes: real molecular coordinates, edge index, number of atoms, real atomic coordinates, atom type, edge type and smiles type of the molecule.

[0010] Furthermore, the flow matching is performed to obtain the flow matching time, the probability path corresponding to the real molecular coordinates in the real 3D molecular graph information, and the real vector field, including: Mapping the atomic type features and edge type features of each molecule in the real 3D molecular graph information to a specified range; The mapped real 3D molecular graph information is input into the flow matching model. Based on the total number of conformations of each molecule, a time feature that satisfies the Gaussian distribution and has the same length as the total number of conformations is randomly initialized as the flow matching time. Based on the true molecular coordinates of different conformations of each molecule, the initial molecular coordinates of the same size and type that satisfy the Gaussian distribution are randomly initialized, and the true molecular coordinates and initial molecular coordinates of each conformation are subjected to zero centroid operation respectively; The optimal transmission operation is performed between the initial molecular coordinates x0 and the true molecular coordinates x1 after the zero center of mass operation of different conformations. The initial molecular coordinates x0 and the true molecular coordinates x1 are rotated and aligned using the Kabach algorithm. The transmission cost between the initial molecular coordinates x0 and the true molecular coordinates x1 of each conformation is calculated. The calculation formula is as follows: in, represents the transmission cost between the initial molecular coordinates and the real molecular coordinates of the same conformation, N is the number of atoms in the current conformation, and They respectively represent the initial atomic coordinates and the true atomic coordinates of the ith atom of the same conformation after the zero center of mass operation, wherein the initial atomic coordinates are coordinates of the same size and type that satisfy the Gaussian distribution and are obtained by random initialization based on the true atomic coordinates; The transmission cost between the initial molecular coordinates and the actual molecular coordinates of all conformations constitutes a transmission cost function matrix ,in, represents the initial molecular coordinates of all conformations, Represent the true molecular coordinates of all conformations, select the optimal transmission mapping with the lowest total transmission cost based on the transmission cost function matrix, and calculate the probability path of the initial molecular coordinates and true molecular coordinates corresponding to the optimal transmission mapping and the real vector field , the formula is as follows: in, Indicates the time when the flow is matched, represents the standard deviation, Represents a normal distribution.

[0011] Furthermore, the Modified Equiformer model includes an embedding layer, an equivariant graph attention module, a first feedforward module and a second feedforward module, the embedding layer includes an atomic type embedding block, a relative coordinate embedding block and a temporal feature embedding block, and the equivariant graph attention module and the first feedforward module alternately form a 6-layer module.

[0012] Furthermore, the Modified Equiformer model is trained using real 3D molecular graph information, flow matching time, probability path of real atomic coordinates and real vector field, including: Calculate the molecular relative coordinate matrix based on the probabilistic path of the real molecular coordinates; Input the atom type into the atom type embedding block, input the edge type and the molecular relative coordinate matrix into the relative coordinate embedding block, and input the flow matching time into the time feature embedding block to obtain the feature information x; The feature information x is input into a 6-layer module consisting of an equivariant graph attention module and a first feed-forward module; The obtained results are input into the second feedforward module to obtain the predicted vector field of the real molecular coordinates corresponding to the flow matching time. ; Based on real vector fields and the prediction vector field The loss is calculated for training the Modified Equiformer model, and the loss is calculated as follows: in, represents the loss function, It represents the expectation under the premise that T satisfies the standard normal distribution.

[0013] Furthermore, the calculation of the molecular relative coordinate matrix based on the probability path of the real molecular coordinates includes: subtracting the probability path of the real atomic coordinates based on the corresponding index of the edge to obtain the molecular relative coordinate matrix.

[0014] Furthermore, the atomic type is input into the atomic type embedding block, the edge type and the molecular relative coordinate matrix are input into the relative coordinate embedding block, and the flow matching time is input into the time feature embedding block to obtain the feature information x, including: Input the atom type into the atom type embedding block for one-hot encoding to obtain the atom type encoding feature; A constant 1 vector and the edge type are respectively encoded by the relative coordinate embedding block, the encoded edge type is subjected to a tensor product operation with the molecule relative coordinate matrix, and encoded by the relative coordinate embedding block, the features obtained by the relative coordinate embedding block are encoded using the sum aggregation method to obtain aggregate features, and the aggregate features are divided by the square root of the average number of edge indexes in the training set to obtain relative coordinate encoded features; Input the time of stream matching into the time feature embedding block to encode and obtain the time coding feature; The feature information x is obtained by adding the atomic type encoding feature, relative coordinate encoding feature and time encoding feature element by element.

[0015] Compared with the prior art, the present invention has the following significant advantages: the vector field of molecular coordinates is learned by utilizing the rapidity and stability of the flow matching method and the powerful information extraction capability of the Modified Equiformer model, thereby improving the accuracy of small molecule structural information; finally, the efficient generation capability of the ODE solver is utilized to greatly improve the speed and accuracy of structural prediction. BRIEF DESCRIPTION OF THE DRAWINGS

[0016] Figure 1 It is an overall flow chart of a small molecule structure prediction method based on isovariant flow matching modeling of the present invention; Figure 2 It is a specific flow chart of the Embedding Block of the Modified Equiformer model of the present invention; Figure 3 is a diagram of a predicted structure example of a molecule obtained by the present invention on the GEOM-QM9 data set; Figure 4 This is a real structural example diagram of a molecule obtained by the present invention on the GEOM-QM9 data set. DETAILED DESCRIPTION

[0017] In order to make the purpose, technical solution and advantages of the present invention more clearly understood, the present invention is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present invention and are not used to limit the present invention.

[0018] The present invention provides a small molecule structure prediction method based on isovariant flow matching modeling, comprising the following steps: 1) Dataset preprocessing: First, download the original GEOM-QM9 dataset from the official GEOM database, then remove the hydrogen atom-related information in each molecule and perform conformational aggregation, and aggregate different conformations of the same molecule together according to the smiles formula (Simplified Molecular Input Line Entry System) of each molecule. Following the dataset splitting method of the GeoDiff model proposed in 2022, the training set consists of 40,000 molecules, each with 5 conformations, for a total of 200,000 conformations. The validation set consists of 5,000 molecules, each with 5 conformations, for a total of 25,000 conformations. The test set consists of 200 molecules, with a total of 22,408 conformations.

[0019] 2) Obtain the real 3D molecular graph information in the dataset, including the relevant feature representations of different conformations of each molecule: real molecular coordinates, edge index (edge_index), number of atoms (num_nodes), real atomic coordinates (structure_positions), atom type (atom_type), edge type (bond_type) and molecular smiles (smiles).

[0020] 3) Map the atomic type features and edge type features of each molecule in step 2) to the specified range to facilitate the subsequent one-hot encoding operation. For the GEOM-QM9 dataset, after removing hydrogen atoms, there are 4 atomic types and 4 edge types, all mapped to [0, 1, 2, 3].

[0021] 4) Set the parameters of the flow matching model: standard deviation = 0( is 0~0.2, 0 is optimal).

[0022] 5) Perform flow matching, such as Figure 1 As shown, the process is as follows: 5.1) Input the atomic type features and edge type features processed in step 3) into the flow matching model. Based on the total number of conformations of each molecule, randomly initialize the time features that satisfy the Gaussian distribution with the same length as the total number of conformations to ensure that the atoms in a conformation correspond to the same time representation, which is used as the flow matching time T.

[0023] 5.2) Treat each molecule separately: Randomly initialize the initial molecular coordinates of the same size and type that satisfy the Gaussian distribution based on the real molecular coordinates of different conformations of the molecule.

[0024] 5.3) Perform zero-center-of-mass operation on the initial molecular coordinates and true molecular coordinates of each conformation respectively, so that the coordinate mean is 0, which can ensure the translation invariance of the coordinates in the flow matching process. The zero-center-of-mass operation refers to subtracting the mean of all the values ​​of the feature so that the mean is 0. The initial molecular coordinates and true molecular coordinates mentioned hereafter are the initial molecular coordinates and true molecular coordinates after the zero-center-of-mass operation.

[0025] 5.4) After the zero center of mass operation, perform the optimal transport (OT) operation between the initial molecular coordinates x0 and the true molecular coordinates x1 of different conformations. Use the Kabach algorithm to rotate and align x0 and x1, and calculate the transport cost between the initial molecular coordinates x0 and the true molecular coordinates x1 of each conformation. The calculation formula is as follows: in, represents the transmission cost between the initial molecular coordinates and the real molecular coordinates of the same conformation, N is the number of atoms in the current conformation, and They respectively represent the initial atomic coordinates and the true atomic coordinates of the i-th atom of the same conformation after the zero center of mass operation. The initial atomic coordinates are coordinates of the same size and type that satisfy the Gaussian distribution and are randomly initialized based on the true atomic coordinates.

[0026] The transmission cost between the initial molecular coordinates and the actual molecular coordinates of all conformations constitutes a transmission cost function matrix , represents the initial molecular coordinates of all conformations, Representing the true molecular coordinates of all conformations, based on Select the OT mapping that requires the lowest total transmission cost For example, if the molecule has 5 conformations, then the initial molecular coordinates and the true molecular coordinates are a total of 5 to 5 mappings. For a 5×5 matrix containing the transmission cost of each pair of mappings, select a set of mappings: such as left 1 to right 2, left 2 to right 3, left 3 to right 4, left 4 to right 5, left 5 to right 1 (a total of 5 factorial mappings), so that the sum of the costs of the five mappings is minimized.

[0027] 5.5) Based on the results obtained in step 5.4) The corresponding initial molecular coordinates and true molecular coordinates and the flow matching time T of the corresponding conformation in step 5.1) are calculated The probability path x corresponding to the initial molecular coordinates and the true molecular coordinates T and the real vector field u T , the formula is as follows: in, Represents a normal distribution.

[0028] 6) Conduct training of the modified Equiformer model, such as Figure 1 As shown, the process is as follows: 6.1) The probability path x of the true molecular coordinates obtained in step 5) TBased on the corresponding subtraction of the edge index (edge_index), the molecular relative coordinate matrix rel_pos is obtained. The edge index (edge_index) represents the index of the existing edge, which is equivalent to a series of tuples, such as (1,2), (3,4), 1 and 2 represent two nodes (atomic indices) connected by an edge, and (1,2) represents the edge connecting the two nodes. The subtraction is to obtain x obtained in step 5) T , subtract according to the corresponding index of this tuple, such as x T1 -x T2 , which represents the probability path subtraction of the real molecular coordinates of the two nodes. Then, the time T of the flow matching obtained in step 5) and the atomic type feature atom_type and the edge type feature bond_type in the mapped real 3D molecular graph information obtained in step 3) are respectively encoded into 480-dimensional feature information through an embedding layer including 3 embedding blocks.

[0029] The three embedding blocks are: Atom type embedding block: directly pass the atom type through a linear layer to obtain the encoded features. Relative coordinate embedding block: after performing a tensor product operation (DTP) on the molecular relative coordinates and a constant 1 encoded through a linear layer, the molecular relative coordinates are passed through a linear layer and a scaling layer to obtain the features encoded. After performing a tensor product operation on the molecular relative coordinates and an edge type feature encoded through a linear layer, a linear layer and a scaling layer are passed to obtain the mixed features of the edge type feature and the molecular relative coordinates encoding. Time feature embedding block: directly pass the time through a linear layer to obtain the encoded features.

[0030] like Figure 2As shown, for the atomic type feature atom_type, the atom type embedding block is used to convert the one-hot encoding of the atom type to obtain the atomic type encoding feature; for the edge type feature bond_type and the molecular relative coordinate matrix rel_pos, firstly, a constant 1 vector and the edge type feature bond_type are respectively encoded by the relative coordinate embedding block, and then a tensor product operation is performed on it and the molecular relative coordinate matrix rel_pos, and then the feature is encoded by the relative coordinate embedding block, and then the obtained feature is encoded using the sum aggregation method to obtain the aggregated feature, and finally the aggregated feature is scaled by dividing by the square root of the average number of edges in the training set (the number of edges is the number of edge indices) so that the standard deviation of the aggregated edge features is close to 1, and finally the relative coordinate encoding feature is obtained; for the flow matching time T, the time feature embedding block is used for encoding to obtain the time encoding feature; finally, the features obtained by each embedding block (atom type encoding feature, relative coordinate encoding feature and time encoding feature) are added element by element to obtain the 480-dimensional feature information x.

[0031] 6.2) The feature information x is input into the 6-layer module of the Modified Equiformer model, which is composed of an equivariant graph attention module and a first feed-forward module alternating with each other.

[0032] 6.3) Input the result obtained in step 6.2) into the second feedforward module to obtain the predicted vector field v of the real molecular coordinates corresponding to the final flow matching time T T .

[0033] 6.4) The vector field u of the real molecular coordinates obtained based on the flow matching model in step 5) T The predicted vector field v of the molecular coordinates predicted by the Modified Equiformer model in step 6.3 T Calculate the Loss to train the ModifiedEquiformer model. The calculation formula is as follows: in, represents the loss function, It represents the expectation under the premise that T satisfies the standard normal distribution.

[0034] 7) Small molecule structure prediction: Randomly initialize the initial molecular coordinates of the same size that satisfy the Gaussian distribution based on the number of atoms in the small molecule structure to be predicted , input it together with the flow matching time T obtained in step 5) and the Modified Equiformer model trained in step 6) into a black box ODE solver to generate the predicted 3D molecular graph information. The predicted 3D molecular graph information includes the predicted molecular coordinates and predicted atomic coordinates. The hydrogen atoms are supplemented to meet the chemical legality, and the predicted molecular structure diagram can be obtained, as shown in Figure 3 , Figure 4 Shown are an example diagram of the predicted structure and an example diagram of the actual structure of a molecule, where green represents carbon atoms, blue represents nitrogen atoms, red represents oxygen atoms, and gray represents hydrogen atoms.

[0035] 8) Use the validation set and test set to calculate the evaluation index and evaluate the predictive ability of the trained Modified Equiformer model: compare the true coordinates x1 of the molecular structure input in step 2) with the predicted coordinates of the molecular structure obtained in step 7) The rotation alignment was performed using the Kabsch algorithm, and then the evaluation indicators were calculated: Recall index of COV score (COV-R), Recall index of MAT score (MAT-R), Precision index of COV score (COV-P), Precision index of MAT score (MAT-P), where the COV score measures the percentage of one group of structures covered by another group, and coverage means that the root mean square deviation (RMSD) between the two conformations is within a certain threshold. The MAT score measures the average RMSD of conformations in one set with their nearest neighbors in another set, the Precision metric reflects more accuracy, and the Recall metric focuses more on diversity, such as Figure 3 As shown in the figure, in the structure prediction of the small molecule multi-conformation database GEOM-QM9, compared with the GeoDiff model in the current SOTA model, a small molecule structure prediction method based on isovariant flow matching modeling (Flow Matching for Molecular Conformation Prediction, MolFM) has achieved better COV-P and MAT-P values, and the prediction accuracy is high, but the COV-R and MAT-R values ​​are poor, and the prediction of diversity needs further improvement. The comparison data of MolFM and GeoDiff models are shown in Table 1:

[0036] Table 1 Comparison of evaluation indicators between MolFM and GeoDiff models Among them, GeoDiff-A and GeoDiff-C are two versions of the GeoDiff model, namely alignment and chain-rule.

[0037] The calculation formulas for the evaluation indicators COV-R, MAT-R, COV-P, and MAT-P are as follows: in, represents the real molecular coordinates, represents the predicted molecular coordinates, RMSD for and Normalized Frobenius norm after alignment by Kabsch algorithm, represents the predicted molecular coordinates, represents the real molecular coordinates, RMSD for and Normalized Frobenius norm after alignment by Kabsch algorithm, and Represent the predicted molecular coordinate set and the real molecular coordinate set, respectively, on the small molecule multi-conformation dataset GEOM-QM9. (Unit: Angstrom One tenth of a nanometer, often used to describe the size of an atomic scale), each molecule Set to Twice the size.

[0038] The present invention calculates the loss on the validation set and compares it with the loss on the training set to prevent overfitting of the model training. The MAP-P value is calculated and the epoch with the smallest MAP-P value is found to obtain the best trained model. Then, the evaluation index is calculated and the small molecule structure is predicted based on the trained model on the test set.

[0039] The above-mentioned embodiments only express several implementation methods of the present invention, and the descriptions thereof are relatively specific and detailed, but they cannot be understood as limiting the scope of the invention patent. It should be pointed out that, for ordinary technicians in this field, several variations and improvements can be made without departing from the concept of the present invention, and these all belong to the protection scope of the present invention. Therefore, the protection scope of the patent of the present invention shall be subject to the attached claims.

Claims

1. A small molecule structure prediction method based on isovariant flow matching modeling, characterized in that: The small molecule structure prediction method based on isovariant flow matching modeling includes: Acquire and preprocess the data set to obtain the real 3D molecular graph information in the preprocessed data set; Construct a flow matching model, set the standard deviation to 0-0.2, perform flow matching to obtain the flow matching time, the probability path corresponding to the real molecular coordinates in the real 3D molecular graph information, and the real vector field; Construct a Modified Equiformer model and train it using real 3D molecular graph information, flow matching time, probability path of real molecular coordinates, and real vector field; Based on the number of atoms in the small molecule structure to be predicted, the initial molecular coordinates of the same size are randomly initialized to satisfy the Gaussian distribution. , the initial molecular coordinates , the flow matching time and the trained Modified Equiformer model are input into a black box ODE solver to generate predicted 3D molecular graph information, wherein the predicted 3D molecular graph information includes predicted molecular coordinates and predicted atomic coordinates, and finally a predicted molecular structure graph is obtained.

2. The small molecule structure prediction method based on isovariant flow matching modeling according to claim 1 is characterized in that: The preprocessing includes: removing the hydrogen atom related information in each molecule in the data set, and aggregating different conformations of the same molecule together according to the smiles formula of each molecule.

3. The small molecule structure prediction method based on isovariant flow matching modeling according to claim 1 is characterized in that: The real 3D molecular graph information includes: real molecular coordinates, edge index, number of atoms, real atomic coordinates, atom type, edge type and molecular smiles type.

4. The small molecule structure prediction method based on isovariant flow matching modeling according to claim 3 is characterized in that: The flow matching is performed to obtain the flow matching time, the probability path corresponding to the real molecular coordinates in the real 3D molecular graph information, and the real vector field, including: Mapping the atomic type features and edge type features of each molecule in the real 3D molecular graph information to a specified range; The mapped real 3D molecular graph information is input into the flow matching model. Based on the total number of conformations of each molecule, a time feature that satisfies the Gaussian distribution and has the same length as the total number of conformations is randomly initialized as the flow matching time. Based on the true molecular coordinates of different conformations of each molecule, the initial molecular coordinates of the same size and type that satisfy the Gaussian distribution are randomly initialized, and the true molecular coordinates and initial molecular coordinates of each conformation are subjected to zero centroid operation respectively; The optimal transmission operation is performed between the initial molecular coordinates x0 and the true molecular coordinates x1 after the zero center of mass operation of different conformations. The initial molecular coordinates x0 and the true molecular coordinates x1 are rotated and aligned using the Kabach algorithm. The transmission cost between the initial molecular coordinates x0 and the true molecular coordinates x1 of each conformation is calculated. The calculation formula is as follows: in, represents the transmission cost between the initial molecular coordinates and the real molecular coordinates of the same conformation, N is the number of atoms in the current conformation, and They respectively represent the initial atomic coordinates and the true atomic coordinates of the ith atom of the same conformation after the zero center of mass operation, wherein the initial atomic coordinates are coordinates of the same size and type that satisfy the Gaussian distribution and are obtained by random initialization based on the true atomic coordinates; The transmission cost between the initial molecular coordinates and the actual molecular coordinates of all conformations constitutes a transmission cost function matrix ,in, represents the initial molecular coordinates of all conformations, Represent the true molecular coordinates of all conformations, select the optimal transmission mapping with the lowest total transmission cost based on the transmission cost function matrix, and calculate the probability path of the initial molecular coordinates and true molecular coordinates corresponding to the optimal transmission mapping and the real vector field , the formula is as follows: in, Indicates the time when the flow is matched, represents the standard deviation, Represents a normal distribution.

5. The small molecule structure prediction method based on isovariant flow matching modeling according to claim 3 is characterized in that: The Modified Equiformer model includes an embedding layer, an equivariant graph attention module, a first feedforward module and a second feedforward module. The embedding layer includes an atomic type embedding block, a relative coordinate embedding block and a temporal feature embedding block. The equivariant graph attention module and the first feedforward module alternately form a 6-layer module.

6. The small molecule structure prediction method based on isovariant flow matching modeling according to claim 5 is characterized in that: The Modified Equiformer model is trained by using real 3D molecular graph information, flow matching time, probability path of real atomic coordinates and real vector field, including: Calculate the molecular relative coordinate matrix based on the probabilistic path of the real molecular coordinates; Input the atom type into the atom type embedding block, input the edge type and the molecular relative coordinate matrix into the relative coordinate embedding block, input the flow matching time into the time feature embedding block, and obtain the feature information x; The feature information x is input into a 6-layer module consisting of an equivariant graph attention module and a first feed-forward module; The obtained results are input into the second feedforward module to obtain the predicted vector field of the real molecular coordinates corresponding to the flow matching time. ; Based on real vector fields and the prediction vector field The loss is calculated for training the Modified Equiformer model, and the loss is calculated as follows: in, represents the loss function, It represents the expectation under the premise that T satisfies the standard normal distribution.

7. The small molecule structure prediction method based on isovariant flow matching modeling according to claim 6 is characterized in that: The molecular relative coordinate matrix is ​​calculated based on the probability path of the real molecular coordinates, including: the probability path of the real atomic coordinates is subtracted based on the corresponding index of the edge to obtain the molecular relative coordinate matrix.

8. The small molecule structure prediction method based on isovariant flow matching modeling according to claim 6, characterized in that: The atomic type is input into the atomic type embedding block, the edge type and the molecular relative coordinate matrix are input into the relative coordinate embedding block, and the flow matching time is input into the time feature embedding block to obtain the feature information x, including: Input the atom type into the atom type embedding block for one-hot encoding to obtain the atom type encoding feature; A constant 1 vector and the edge type are respectively encoded by the relative coordinate embedding block, the encoded edge type is subjected to a tensor product operation with the molecule relative coordinate matrix, and encoded by the relative coordinate embedding block, the features obtained by the relative coordinate embedding block are encoded using the sum aggregation method to obtain aggregate features, and the aggregate features are divided by the square root of the average number of edge indexes in the training set to obtain relative coordinate encoded features; Input the time of stream matching into the time feature embedding block to encode and obtain the time coding feature; The feature information x is obtained by adding the atomic type encoding feature, relative coordinate encoding feature and time encoding feature element by element.

Citation Information

Patent Citations

  • Heterogeneous method for modelling a biochemical environment

    CN111052252A

  • Dynamic coordinating framework for model cell simulations

    CN112970066A

  • Training method and device for molecular optimal conformation prediction model

    CN116052792A

  • Multi-visual memory unit-based glancing path prediction method

    CN116563524A

  • Physical information generation model method

    CN116883538A