A method and apparatus for generating small molecule compounds based on a conditional diffusion model
By generating small molecule compounds based on a conditional diffusion model and an isovariant Transformer network, the problems of insufficient novelty and binding ability in existing technologies are solved, and small molecule compounds that bind well to protein pockets are generated efficiently.
Patent Information
- Application Number
- CN202410462233.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-04-17
- Publication Date
- 2026-11-20
- Estimated Expiration
- 2044-04-17
AI Technical Summary
Existing methods for generating small molecule compounds suffer from poor novelty, poor drug-like properties, and poor binding ability to protein pockets.
A method for generating small molecule compounds based on a conditional diffusion model is adopted. By obtaining the three-dimensional structural information of the protein binding pocket, its positional and atomic features are extracted. Combined with the physicochemical properties of the small molecule compounds, a pre-trained conditional diffusion model is used for generation. Then, noise is removed by an isovariant Transformer network to generate the desired small molecule compounds.
This significantly improves the novelty, drug-like properties, and binding ability of the generated small molecule compounds to protein pockets, allowing the generated compounds to bind better to protein targets in three-dimensional space.
Smart Images

Figure CN118230853B_ABST
Abstract
Description
Technical Field
[0001] This invention belongs to the field of artificial intelligence drug technology, specifically a method and apparatus for generating small molecule compounds based on a conditional diffusion model. Background Technology
[0002] Designing small molecule compounds as drugs is a major challenge in drug discovery, and structure-based drug design offers one approach to addressing this challenge. Because the chemical space is vast, but the subset of molecules with ideal properties is much smaller, drug discovery typically involves searching within this space for small molecule compounds that bind to specific drug targets. Structure-based drug design aims to design small molecule ligands with high affinity and specific binding to specific targets based on the three-dimensional structure of proteins.
[0003] Traditional structure-based drug design employs high-throughput screening or virtual screening methods based on large compound databases. This involves sifting through a vast number of molecules to identify those with relatively good binding affinity to specific targets and high evaluation scores for subsequent bioactivity experiments. However, this approach is often very costly and time-consuming, and it limits the exploration of chemical space to the molecular space of previous studies. The rapid development of deep learning in recent years in areas such as natural language processing and computer vision has led people to believe that these methods can be applied to drug discovery. Simultaneously, the increasing availability of structural data in public databases such as the Protein Data Bank has led to the widespread application of artificial intelligence in structure-based drug discovery.
[0004] Deep learning methods have seen numerous successes in drug design, most notably AlphaFold developed by Google. Methods for molecular generation largely utilize deep generative models to learn the potential distribution of desired molecules to generate drug candidates. However, most of these methods are typically based on SMILES codes or molecular graphs. SMILES codes lack permutation invariance and conformational information, limiting their applicability in structure-based drug design. Molecular graphs offer a more natural representation of molecules than SMILES codes, and most models based on them generate molecules by sequentially adding atoms or fragments in an autoregressive manner. However, these one- or two-dimensional methods are limited by a lack of spatial information, failing to accurately perceive the interaction between molecules and target proteins in three-dimensional space.
[0005] The discovery of new drugs is a high-investment, long-cycle, and high-risk process. Applying artificial intelligence technology to the field of drug discovery can significantly accelerate this process and reduce certain R&D investment. Molecular generation models based on diffusion models are expected to surpass the performance of previous molecular generation models, generating small molecule ligands with larger chemical spaces, easier synthesis, higher affinity for specific targets, and specific binding capabilities without incurring greater computational costs. Summary of the Invention
[0006] Objective of the Invention: To address the problems of poor novelty, poor drug-like properties, and poor binding ability to protein pockets in existing methods for generating small molecule compounds, this invention proposes a method and apparatus for generating small molecule compounds based on a conditional diffusion model. By using a protein binding pocket representation as context and incorporating conditions such as the physicochemical characteristics of the small molecule compound to guide its generation, the invention significantly improves the novelty, drug-like properties, and binding ability to protein pockets of the generated small molecule compounds.
[0007] Technical solution: A method for generating small molecule compounds based on a conditional diffusion model, comprising the following steps:
[0008] Step 1: Obtain the three-dimensional structural information of the protein binding pocket for generating small molecule compounds; the three-dimensional structural information of the protein binding pocket includes the atom type, the XYZ three-dimensional rectangular coordinates of the atoms, and the number of atoms;
[0009] Step 2: Extract features from the three-dimensional structure of the protein binding pocket to obtain its positional and atomic features. Based on the positional and atomic features of the protein binding pocket, represent the three-dimensional structure of the protein binding pocket as a graph structure. In this graph structure, nodes are all atoms of the protein binding pocket, node features are the positional and atomic features of the protein binding pocket, and edge features are the Euclidean distances between corresponding pairs of nodes.
[0010] Step 3: Determine the physicochemical properties of the generated small molecule compounds, discretize them, and obtain the physicochemical characteristics of the small molecule compounds;
[0011] Step 4: The graph structure obtained in Step 2 and the physicochemical properties of the small molecule compounds obtained in Step 3 are used as conditional information and input into the pre-trained conditional diffusion model to guide the pre-trained conditional diffusion model to generate small molecule compounds, resulting in a three-dimensional point cloud of the generated small molecule compounds.
[0012] Step 5: Convert the generated three-dimensional point cloud of the small molecule compound into sdf format and output it, perform qualification check, retain the largest fragment of the small molecule compound that passes the qualification check, and determine the final generated small molecule compound.
[0013] Further, the conditional diffusion model consists of a diffusion process and a denoising diffusion process;
[0014] In the diffusion process, Gaussian noise is gradually added to the generated three-dimensional point cloud of the small molecule compound according to a predefined noise schedule, until the distribution of the three-dimensional point cloud of the small molecule compound tends to a standard Gaussian distribution;
[0015] In the denoising diffusion process, an equivariant Transformer network is used to learn to convert the distribution of the three-dimensional point cloud of the small molecule compound, which tends to the standard Gaussian distribution obtained in the diffusion process, into the three-dimensional point cloud of the desired small molecule compound under the guidance of conditional information.
[0016] Further, the diffusion process can be expressed as:
[0017]
[0018] wherein, represents a multivariate Gaussian distribution, z data =[x,h] represents the three-dimensional point cloud of the small molecule compound, x∈R N×3 represents the three-dimensional geometric coordinate, h∈R N×d represents the classification feature, N is the number of atoms, z t represents the three-dimensional point cloud of the small molecule compound at time step t, t=0,…,T represents the noise addition time step, I represents the covariance matrix of the multivariate Gaussian distribution with a standard deviation of 1, α t controls the signal-to-noise ratio SNR(t)=α 2 / σ 2 , α is the predefined noise schedule, α0≈1,…,α T ≈0, α t represents a variance-preserving denoising process, σ t represents the standard deviation of the Gaussian distribution at time step t.
[0019] Further, in the denoising diffusion process, using an equivariant Transformer network to learn to convert the distribution of the three-dimensional point cloud of the small molecule compound, which tends to the standard Gaussian distribution obtained in the diffusion process, into the three-dimensional point cloud of the desired small molecule compound under the guidance of conditional information, specifically comprises:
[0020] The denoising transition from time step t to s<t is set as a closed form, expressed as:
[0021]
[0022] in, z s σ represents the three-dimensional point cloud of a small molecule compound at time step s. t This represents the standard deviation of the Gaussian distribution at time step t;
[0023] Reparameterize equation (1) to z t =α t z data +σ t ε, where ε∈N(0,I), is used to predict Gaussian noise using an equivariant Transformer network. Therefore:
[0024]
[0025] In the formula, This represents a three-dimensional point cloud of a small molecule compound reconstructed from noise obtained through neural prediction.
[0026] Furthermore, the equivariant Transformer network includes: an atomic encoder, a first central encoder, a property encoder, a pocket encoder, a second central encoder, layer normalization, a cross-attention layer for the physicochemical properties of small molecule compounds, a cross-attention layer for the protein binding pocket features, a cross-attention layer for the features of small molecule compounds, and a feedforward layer.
[0027] A random sample is taken from a 3D point cloud of a small molecule compound whose distribution tends to a standard Gaussian distribution and enters the atomic encoder. The physicochemical properties of the small molecule compound enter the property encoder, and the protein binding pocket features enter the pocket encoder. The sum of the positional features of each atomic node in the 3D point cloud of each small molecule compound is used as the input of the first central encoder. The sum of the positional features of each atomic node in the graph structure of each protein binding pocket is used as the input of the second central encoder. The sum of the outputs of the atomic encoder and the first central encoder represents the features of the graph structure of the small molecule compound. The sum of the outputs of the pocket encoder and the second central encoder represents the features of the graph structure of the protein binding pocket. The output of the property encoder is then normalized through multiple layers and corresponding cross-attention layers, and finally outputs Gaussian noise predicted by the equivariant Transformer network.
[0028] In the isovariant Transformer network, each cross-attention layer is represented as:
[0029]
[0030] Where Q represents the characteristics of small molecule compounds, K and V represent the characteristics of protein binding pockets and the physicochemical properties of small molecule compounds, and d kThe characteristic dimension of K;
[0031] In the isovariant Transformer network, atomic features of protein binding pockets, atomic features of small molecule compounds, and physicochemical properties of small molecule compounds are embedded using separate fully connected layers.
[0032] The edge features of protein binding pockets and small molecule compounds are embedded using Gaussian radial basis functions as spatial encodings. The Gaussian radial basis functions can be expressed as:
[0033]
[0034] Where x represents the input feature vector, c represents the center vector of the radial basis function, ||·|| represents the Euclidean distance, and σ is the bandwidth parameter of the radial basis function;
[0035] The positional characteristics of small molecule compounds in the cross-attention layer are calculated using the following formula: (Unit direction vector between each pair of nodes is then calculated.)
[0036]
[0037] Where s represents the positional features of the source node, t represents the positional features of the target node, and W is a learnable matrix;
[0038] In the cross-attention layer, positional encoding is used as a bias term for the cross-attention layer.
[0039] Furthermore, the pre-trained conditional diffusion model is obtained according to the following training steps:
[0040] S10: Obtain protein binding pocket structure information from the drug dataset. The protein binding pocket structure information includes: atom type, XYZ three-dimensional rectangular coordinates of the atom, and the number of atoms in the protein binding pocket.
[0041] Small molecule compound structure information is extracted from drug datasets, including: atom type, XYZ three-dimensional Cartesian coordinates of the atom, and the number of atoms in the protein binding pocket;
[0042] The physicochemical properties of small molecule compounds are extracted from drug datasets. These properties include drug-likeness, synthetic accessibility, lipid-water partition coefficient, and molecular weight.
[0043] S20: Extract the positional and atomic features of the protein binding pocket from the protein binding pocket structure information; the positional features are centered three-dimensional Cartesian coordinates of atoms; the atomic features are represented by one-hot encoded atomic attributes, which include: ['C','N','O','S','B','Br','Cl','P','I','F']. The atomic attributes are encoded into binary vectors according to the atomic number, with atoms within the defined atomic type being marked as 1 and atoms outside the defined atomic type being marked as 0.
[0044] Positional and atomic features of small molecule compounds are extracted from their structural information. The positional features are centered three-dimensional Cartesian coordinates of atoms. The atomic features are represented by one-hot encoded atomic attributes, which include: ['C','N','O','S','B','Br','Cl','P','I','F']. The atomic attributes are encoded into binary vectors according to their atomic numbers, with atoms within the defined atomic types marked as 1 and atoms outside the defined atomic types marked as 0.
[0045] The physicochemical properties of small molecule compounds are binned at equal frequencies to obtain vector representations of their physicochemical properties.
[0046] S30: Based on the positional and atomic features of the protein binding pocket, the structural information of the protein binding pocket is represented as a graph structure, where nodes are all atoms of the protein binding pocket, node features are the positional and atomic features of the protein binding pocket, and edge features are the Euclidean distances between corresponding pairs of nodes.
[0047] Based on the positional and atomic features of small molecule compounds, the structural information of small molecule compounds is represented as a graph structure, where nodes are all atoms of the small molecule compound, node features are the positional and atomic features of the small molecule compound, and edge features are the Euclidean distances between corresponding pairs of nodes.
[0048] The vector representation of the physicochemical properties of small molecule compounds is transformed into a continuous vector form through a learnable embedding layer, thereby obtaining the physicochemical property characteristics of small molecule compounds.
[0049] A training dataset is constructed by mapping the graph structure of protein binding pockets, the graph structure of small molecule compounds, and the physicochemical properties of small molecule compounds one-to-one.
[0050] S40: Train the conditional diffusion model using the training dataset until the conditional diffusion model is fitted, thus obtaining a pre-trained conditional diffusion model.
[0051] This invention discloses an apparatus for generating small molecule compounds based on a conditional diffusion model, comprising:
[0052] The three-dimensional structure information acquisition module for protein binding pockets is used to acquire the three-dimensional structure information of protein binding pockets for small molecule compound generation; the three-dimensional structure information of the protein binding pockets includes atom type, XYZ three-dimensional rectangular coordinates of atoms, and number of atoms;
[0053] The protein binding pocket feature extraction module is used to extract features from the three-dimensional structural information of the protein binding pocket, and obtain the positional features and atomic features of the protein binding pocket.
[0054] The graph structure generation module is used to represent the three-dimensional structural information of the protein binding pocket as a graph structure based on the positional and atomic features of the protein binding pocket. In this graph structure, the nodes are all the atoms of the protein binding pocket, the node features are the positional and atomic features of the protein binding pocket, and the edge features are the Euclidean distance between the corresponding pairs of nodes.
[0055] The physicochemical property information acquisition module for small molecule compounds is used to determine the physicochemical property information of the generated small molecule compounds, discretize them, and obtain the physicochemical property characteristics of the small molecule compounds.
[0056] The generation module is used to input the graphical structure of the protein binding pocket and the physicochemical properties of the small molecule compound as conditional information into the pre-trained conditional diffusion model, which guides the pre-trained conditional diffusion model to generate the small molecule compound and obtain the generated three-dimensional point cloud of the small molecule compound.
[0057] The output module is used to convert the generated small molecule compound 3D point cloud into SDF format, perform a pass / fail check, retain the largest fragment of the small molecule compound that passes the pass / fail check, and determine the final generated small molecule compound.
[0058] Furthermore, the conditional diffusion model consists of a diffusion process and a de-diffusion process;
[0059] During the diffusion process, Gaussian noise is gradually added to the three-dimensional point cloud of small molecule compounds generated according to the predefined noise orientation until the distribution of the three-dimensional point cloud of small molecule compounds tends to a standard Gaussian distribution.
[0060] During the de-diffusion process, the distribution of the three-dimensional point cloud of small molecule compounds that tends to a standard Gaussian distribution obtained from the diffusion process is transformed into a three-dimensional point cloud of small molecule compounds that meets the desired distribution under the guidance of conditional information through the learning of the isovariant Transformer network.
[0061] The diffusion process can be represented as follows:
[0062]
[0063] wherein z data =[x,h] represents the 3D point cloud of the small molecule compound, x∈R N×3 represents the 3D geometric coordinate, h∈R N×d represents the classification feature, N is the number of atoms, z t represents the 3D point cloud of the small molecule compound at time step t, t=0,…,T represents the noise adding time step, I represents the covariance matrix of the multivariate Gaussian distribution with a standard deviation of 1, α t controls the signal-to-noise ratio SNR(t)=α 2 / σ 2 , α is a predefined noise table, α0≈1,…,α T ≈0, α t represents a variance-preserving denoising process, σ t represents the standard deviation of the Gaussian distribution at time step t;
[0064] the denoising diffusion process is expressed as:
[0065] the denoising transition from time step t to s<t is set as a closed form, expressed as:
[0066]
[0067] wherein, z s represents the 3D point cloud of the small molecule compound at time step s, σ t represents the standard deviation of the Gaussian distribution at time step t;
[0068] the formula (1) is reparameterized as z t =α t z data +σ t ε, where ε∈N(0,I), an equivariant Transformer network is used to predict the Gaussian noise thus:
[0069]
[0070] in the formula, represents the 3D point cloud of the small molecule compound restored from the noise obtained according to the neural prediction.
[0071] Furthermore, the equivariant Transformer network includes: an atomic encoder, a first central encoder, a property encoder, a pocket encoder, a second central encoder, layer normalization, a cross-attention layer for the physicochemical properties of small molecule compounds, a cross-attention layer for the protein binding pocket features, a cross-attention layer for the features of small molecule compounds, and a feedforward layer.
[0072] A random sample is taken from a 3D point cloud of a small molecule compound whose distribution tends to a standard Gaussian distribution and enters the atomic encoder. The physicochemical properties of the small molecule compound enter the property encoder, and the protein binding pocket features enter the pocket encoder. The sum of the positional features of each atomic node in the 3D point cloud of each small molecule compound is used as the input of the first central encoder. The sum of the positional features of each atomic node in the graph structure of each protein binding pocket is used as the input of the second central encoder. The sum of the outputs of the atomic encoder and the first central encoder represents the features of the graph structure of the small molecule compound. The sum of the outputs of the pocket encoder and the second central encoder represents the features of the graph structure of the protein binding pocket. The output of the property encoder is then normalized through multiple layers and corresponding cross-attention layers, and finally outputs Gaussian noise predicted by the equivariant Transformer network.
[0073] In the isovariant Transformer network, each cross-attention layer is represented as:
[0074]
[0075] Where Q represents the characteristics of small molecule compounds, K and V represent the characteristics of protein binding pockets and the physicochemical properties of small molecule compounds, and d k The characteristic dimension of K;
[0076] In the isovariant Transformer network, atomic features of protein binding pockets, atomic features of small molecule compounds, and physicochemical properties of small molecule compounds are embedded using separate fully connected layers.
[0077] The edge features of protein binding pockets and small molecule compounds are embedded using Gaussian radial basis functions as spatial encodings. The Gaussian radial basis functions can be expressed as:
[0078]
[0079] Where x represents the input feature vector, c represents the center vector of the radial basis function, ||·|| represents the Euclidean distance, and σ is the bandwidth parameter of the radial basis function;
[0080] The positional characteristics of small molecule compounds in the cross-attention layer are calculated using the following formula: (Unit direction vector between each pair of nodes is then calculated.)
[0081]
[0082] Where s represents the positional features of the source node, t represents the positional features of the target node, and W is a learnable matrix;
[0083] In the cross-attention layer, positional encoding is used as a bias term for the cross-attention layer.
[0084] Furthermore, the pre-trained conditional diffusion model is obtained according to the following training steps:
[0085] S10: Obtain protein binding pocket structure information from the drug dataset. The protein binding pocket structure information includes: atom type, XYZ three-dimensional rectangular coordinates of the atom, and the number of atoms in the protein binding pocket.
[0086] Small molecule compound structure information is extracted from drug datasets, including: atom type, XYZ three-dimensional Cartesian coordinates of the atom, and the number of atoms in the protein binding pocket;
[0087] The physicochemical properties of small molecule compounds are extracted from drug datasets. These properties include drug-likeness, synthetic accessibility, lipid-water partition coefficient, and molecular weight.
[0088] S20: Extract the positional and atomic features of the protein binding pocket from the protein binding pocket structure information; the positional features are centered three-dimensional Cartesian coordinates of atoms; the atomic features are represented by one-hot encoded atomic attributes, which include: ['C','N','O','S','B','Br','Cl','P','I','F']. The atomic attributes are encoded into binary vectors according to the atomic number, with atoms within the defined atomic type being marked as 1 and atoms outside the defined atomic type being marked as 0.
[0089] Positional and atomic features of small molecule compounds are extracted from their structural information. The positional features are centered three-dimensional Cartesian coordinates of atoms. The atomic features are represented by one-hot encoded atomic attributes, which include: ['C','N','O','S','B','Br','Cl','P','I','F']. The atomic attributes are encoded into binary vectors according to their atomic numbers, with atoms within the defined atomic types marked as 1 and atoms outside the defined atomic types marked as 0.
[0090] The physicochemical properties of small molecule compounds are binned at equal frequencies to obtain vector representations of their physicochemical properties.
[0091] S30: Based on the positional and atomic features of the protein binding pocket, the structural information of the protein binding pocket is represented as a graph structure, where nodes are all atoms of the protein binding pocket, node features are the positional and atomic features of the protein binding pocket, and edge features are the Euclidean distances between corresponding pairs of nodes.
[0092] Based on the positional and atomic features of small molecule compounds, the structural information of small molecule compounds is represented as a graph structure, where nodes are all atoms of the small molecule compound, node features are the positional and atomic features of the small molecule compound, and edge features are the Euclidean distances between corresponding pairs of nodes.
[0093] The vector representation of the physicochemical properties of small molecule compounds is transformed into a continuous vector form through a learnable embedding layer, thereby obtaining the physicochemical property characteristics of small molecule compounds.
[0094] A training dataset is constructed by mapping the graph structure of protein binding pockets, the graph structure of small molecule compounds, and the physicochemical properties of small molecule compounds one-to-one.
[0095] S40: Train the conditional diffusion model using the training dataset until the conditional diffusion model is fitted, thus obtaining a pre-trained conditional diffusion model.
[0096] Beneficial effects: Compared with the prior art, the present invention has the following advantages:
[0097] (1) The method of the present invention applies diffusion model to the study of generating small molecule compounds by extracting features from protein binding pocket data and encoding specific physicochemical properties of desired small molecules.
[0098] (2) The method of the present invention generates small molecules based on both the characteristics of the protein binding pocket and the specific physicochemical properties of the desired small molecules, which greatly improves the specific physicochemical properties of the generated small molecules while ensuring good binding ability with the protein pocket. Attached Figure Description
[0099] Figure 1 This is a schematic diagram illustrating the basic principle of the present invention;
[0100] Figure 2 This is a block diagram illustrating an example of the structure of the small molecule compound generating apparatus of the present invention;
[0101] Figure 3 This is a diagram of the neural network structure used in the diffusion model of this invention;
[0102] Figure 4 This is a flowchart of the diffusion model of the present invention;
[0103] Figure 5 This is a visualization of the generation process of this invention. Detailed Implementation
[0104] This invention establishes a workflow for processing three-dimensional structural data of protein-binding pockets and generating drug-like small molecule compounds with good binding performance using a conditional diffusion model. Applying the conditional diffusion model method to the study of three-dimensional drug-like small molecule compounds based on protein-binding pockets significantly improves the novelty, uniqueness, drug-like properties, and binding ability of the generated small molecule compounds to the protein-binding pockets. The small molecule compound generation method of this invention can generate drug-like small molecule compounds with good binding performance to protein-binding pockets based on the positional and atomic characteristics of the protein-binding pocket in three-dimensional space and some physicochemical properties of the desired small molecule compound.
[0105] The technical solution of the present invention will now be further described in conjunction with the accompanying drawings and embodiments.
[0106] Example 1:
[0107] This embodiment discloses a method for generating small molecule compounds based on a conditional diffusion model, including the following steps:
[0108] Step 1: Download the publicly available cross-docking dataset CrossDocked2020, which contains 22.5 million cross-docking protein-ligand pairs of varying quality levels. Filter out pairs with a binding pose RMSD greater than [value missing]. The protein ligand pairs were clustered using MMseqs2 to identify 30% sequence identity data, and 100,000 protein ligand pairs were randomly selected as the training set. 100 proteins were selected from the remaining clusters as the test set.
[0109] The 3D structure information of protein-binding pockets was read from the dataset using RDKit. Preprocessing of this information included removing water molecules and other impurities, extracting atomic information starting with ATOM, obtaining the atom type, XYZ Cartesian coordinates (in angstroms), and the number of atoms in the protein-binding pocket, and finally padding the protein-binding pocket atoms to the maximum dataset length and recording the padding mask. Simultaneously, the 3D structure information of small molecule compounds was read from the dataset using RDKit. Preprocessing of this information retained effective and appropriate drug-like ligand molecules, including extracting atomic information from the small molecule compound's 3D structure, obtaining the atom type, XYZ Cartesian coordinates (in angstroms), and the number of atoms in the small molecule compound, and then padding the small molecule compound atoms to the maximum dataset length and recording the padding mask.
[0110] Simultaneously, the physicochemical properties of small molecule compounds are extracted from the dataset. Specifically, the three-dimensional structural information of small molecule compounds is read into RDKit Mol objects, and the drug-likeness (QED), synthetic accessibility (SA), lipid-water partition coefficient (LogP) and molecular weight of small molecule compounds are calculated.
[0111] Step 2: The 3D structural information of the protein binding pocket is processed for feature extraction. Positional and atomic features of the protein binding pocket are extracted. Positional features are the centered 3D Cartesian coordinates of the atoms. Atomic features are represented by one-hot encoded atomic attributes: ['C', 'N', 'O', 'S', 'B', 'Br', 'Cl', 'P', 'I', 'F']. Atomic attributes are encoded into binary vectors based on atomic numbers. Atoms within the defined atomic types are marked as 1, and those outside the defined atomic types are marked as 0. The 3D structural information of the protein binding pocket is represented as a graph structure, where nodes represent all atoms in the protein binding pocket, node features are the positional and atomic features of the protein binding pocket, and edge features are the Euclidean distances between corresponding pairs of nodes.
[0112] The three-dimensional structural information of small molecule compounds is processed for feature extraction, extracting positional and atomic features. Positional features are centered three-dimensional Cartesian coordinates of atoms, and atomic features are represented by one-hot encoded atomic attributes. Atomic attributes include: ['C', 'N', 'O', 'S', 'B', 'Br', 'Cl', 'P', 'I', 'F']. Atomic attributes are encoded into binary vectors based on atomic numbers, with atoms in the molecule marked as 1 if they belong to a defined atomic type and 0 if they do not. The three-dimensional structural information of the small molecule compound is represented as a graph structure, where nodes represent all atoms of the small molecule compound, node features are the positional and atomic features of the small molecule compound, and edge features are the Euclidean distances between corresponding pairs of nodes.
[0113] The drug-likeness (QED), synthetic accessibility (SA), lipid-water partition coefficient (LogP), and molecular weight are binned at equal frequencies to obtain a discretized representation of the physicochemical properties of small molecule compounds. Then, a learnable embedding layer transforms this discretized representation into a continuous vector form.
[0114] The three-dimensional structural information of protein binding pockets, represented as graph structures, and the three-dimensional structural information of small molecule compounds, represented as graph structures, can be regarded as fully connected graphs, respectively. Centrality encoding and spatial encoding are used to embed node features and edge features; a learnable embedding layer is used to embed the physicochemical properties of small molecule compounds.
[0115] Step 3: Save the data obtained in Step 1 and Step 2 into a NumPy compressed archive file in a one-to-one correspondence manner.
[0116] Step 4: Build a conditional diffusion model. The structure of the diffusion model mainly includes the forward process (diffusion process) and the reverse process (de-diffusion process).
[0117] In the forward propagation process of the conditional diffusion model, noise is gradually added to the input data, thereby transforming the complex data distribution into a Gaussian noise distribution. This process can be viewed as gradually "diffusing" away the structural information in the data until the data becomes random noise with a standard normal distribution.
[0118] like Figure 4 As shown, in the forward propagation process of the conditional diffusion model, Gaussian noise is gradually added to the positional and atomic features of the small molecule compound according to a predefined noise representation until the distribution of the small molecule compound features tends to a standard Gaussian distribution. The forward noise addition process can be represented as:
[0119]
[0120] wherein, represents a multivariate Gaussian distribution, the three-dimensional point cloud z of the small molecule compound data =[x,h], the three-dimensional geometric coordinate x∈R N×3 , the classification feature h∈R N×d , N is the number of atoms, z t represents the three-dimensional point cloud of the small molecule compound at time step t, t=0,…,T represents the noise adding time step, I represents the covariance matrix of the multivariate Gaussian distribution with a standard deviation of 1, α t controls the signal-to-noise ratio SNR(t)=α 2 / σ 2 , α is a predefined noise table, α0≈1,…,α T ≈0, α t represents a variance-preserving denoising process, σ t represents the standard deviation of the Gaussian distribution at time step t.
[0121] The reverse process of the conditional diffusion model is the inverse of the forward process, which starts from noise and gradually removes the noise added in the forward process. In this process, the model learns how to restore the original data, that is, gradually transforms the noise into samples of the target data distribution through a series of steps. Specifically:
[0122] The reverse process of the conditional diffusion model is a Markov process, which learns to denoise and reconstruct sample data through an equivariant Transformer network, and the denoising transition from time step t to s<t is set as a closed form, as shown in the following formula:
[0123]
[0124] wherein, z s represents the three-dimensional point cloud of the small molecule compound at time step s.
[0125] This denoising process depends on the three-dimensional point cloud z of the small molecule compound data , therefore, formula (1) is reparameterized as z t =α t z data +σ t ε, where ε∈N(0,I), the equivariant Transformer network is used to predict the Gaussian noise Therefore:
[0126]
[0127] in the formula, represents the three-dimensional point cloud of the small molecule compound restored from the noise obtained by neural prediction.
[0128] By adding conditional information (location features of protein binding pockets, atomic features, and physicochemical properties of small molecule compounds) to the input of the isovariant Transformer network, it becomes possible to generate more desirable 3D point clouds of small molecule compounds under the guidance of this conditional information.
[0129] The specific structure of the equivariant Transformer network is as follows: Figure 3 As shown, it includes: AtomsEncoder, First Central Encoder, Properties Encoder, Pocket Encoder, Second Central Encoder, LayerNorm, Cross-Attention layer for physicochemical properties of small molecule compounds, Cross-Attention layer for protein binding pocket features, Cross-Attention layer for small molecule compound features, and feedforward layer;
[0130] During the sampling process, a Gaussian noise sample is randomly selected from a standard Gaussian distribution and used as model input to the Atoms Encoder. External input of the physicochemical properties of the small molecule compound is used to the Properties Encoder, and the protein binding pocket is used to the Pocket Encoder. The spatial feature sum of each atomic node in each image of the small molecule compound's 3D point cloud is calculated and used as input to the first Central Encoder. The spatial feature sum of each atomic node in each image of the protein binding pocket's 3D point cloud is used as input to the second Central Encoder. The sum of the outputs of the Atoms Encoder and the first Central Encoder represents the structural features of the small molecule compound image. The sum of the outputs of the atomic encoder and the first central encoder (CentralityEncoder') represents the features and properties of the protein-binding pocket diagram structure. The output of the PropertiesEncoder is then processed through multiple layers of normalization and cross-attention layers, ultimately outputting Gaussian noise predicted by the equivariant Transformer network. Specifically, the outputs of the atomic encoder and the first central encoder (CentralityEncoder) are summed and input into the first layer of normalization (LayerNorm). The output of the first layer of normalization (LayerNorm) is input into the cross-attention layer for small molecule compound features. The output of the cross-attention layer for small molecule compound features is summed with the features of the small molecule compound diagram structure as the input to the second layer of normalization. The output of the second layer of normalization, along with the outputs of the Pocket Encoder and the second central encoder (CentralityEncoder'), is then processed into Gaussian noise predicted by the equivariant Transformer network. The outputs of the first layer (Encoder') are summed and used as input to the cross-attention layer for protein binding pocket features. The output of the cross-attention layer for protein binding pocket features is summed with the input of the second normalized layer and used as input to the third normalized layer. The output of the third normalized layer is summed with the output of the properties encoder and used as input to the cross-attention layer for small molecule compound physicochemical property features. The output of the cross-attention layer for small molecule compound physicochemical property features is summed with the input of the third normalized layer and used as input to the fourth normalized layer.The fourth layer, a normalized output-input feedforward layer, iterates through multiple layers of normalization and cross-attention layers N times, finally outputting Gaussian noise predicted by the equivariant Transformer network.
[0131] In the isovariant Transformer network, a fixed protein binding pocket representation is accepted as context in each denoising step, and small molecule compound physicochemical property features are added. A decoupled cross-attention layer guides the generated molecules. The cross-attention layer of small molecule compound physicochemical property features and the cross-attention layer of protein binding pocket features serve as conditional references for the diffusion model to guide small molecule generation. The cross-attention layer can be represented as:
[0132]
[0133] Where Q represents the characteristics of small molecule compounds, K and V represent the characteristics of protein binding pockets and the physicochemical properties of small molecule compounds, and d k Let K be the characteristic dimension.
[0134] In the equivariant Transformer network, atomic features of the protein binding pocket, atomic features of the small molecule compound, and physicochemical properties of the small molecule compound are embedded using separate fully connected layers. Edge features of the protein binding pocket and edge features of the small molecule compound are embedded using Gaussian radial basis functions as spatial encodings. The Gaussian radial basis functions can be expressed as:
[0135]
[0136] Where x represents the input feature vector, c represents the center vector of the radial basis function, ||·|| represents the Euclidean distance, and σ is the bandwidth parameter of the radial basis function.
[0137] For the atomic feature embeddings of protein binding pockets and small molecule compounds, the spatial encoding of each atomic node is summed to obtain a centrality encoding that characterizes node importance. In the cross-attention layer, the spatial encoding is introduced as a bias term. Since there is no chemical bond information in a three-dimensional molecule, the entire system can be viewed as a fully connected graph composed of all atoms. Through centrality and spatial encoding, the model's attention layer can successfully capture more "important" nodes or node pairs, thus making subsequent attention weight allocation more accurate.
[0138] The Cross-Attention layer calculates the unit direction vector between each pair of nodes for the positional features of small molecule compounds using the following formula, so that the effect of the target node on the source node can be projected onto the x, y, and z axes, thus taking into account variability such as translation, rotation, reflection, and substitution.
[0139]
[0140] Where s represents the positional features of the source node, t represents the positional features of the target node, and W is a learnable matrix;
[0141] The equivariant Transformer network maximizes the probability of observed data by optimizing the variational lower bound of the data, which is equivalent to simplifying the training objective to achieve a scaling factor. During training, backpropagation is used to update the parameter weights of each layer of the model; the above steps are repeated iteratively until the model fits the target.
[0142]
[0143] Step 5: Feed the training dataset into the built conditional diffusion model in batches of 16 data points for training. Iterate continuously as required until the model reaches the optimal effect.
[0144] Step 6: Save the trained model and test it on the test set. Obtain the 3D structural information of the protein binding pockets from which small molecule compounds are to be generated, and perform the same data processing as described above. Finally, obtain the 3D point cloud structure representation of the small molecule compounds. Use Obabel to convert the 3D point cloud into SDF format, and use RDKit to perform a pass / fail check. Retain the largest fragment of the small molecule compounds that pass the pass / fail check to determine the final generated small molecule compounds. Repeat this generation step until 100 small molecule compounds are generated for each protein binding pocket in the test set.
[0145] Step 7: Visualize the generation process. Open the small molecule compound files and their protein binding pocket 3D structure files at different time steps during model generation using PyMol software. This clearly shows the spatial relationship between the small molecule compounds and the protein binding pockets in 3D space, as well as the denoising process, such as... Figure 5 As shown.
[0146] Step 8: Evaluation of Results. Widely used metrics were employed to evaluate the quality of the generated small molecule compounds: (1) Quantitative similarity (QED) is a method that quantifies drug similarity as a value between 0 and 1; (2) Synthetic accessibility (SA) is a metric that evaluates the ease of synthesis; (3) Diversity is calculated by the average pairwise dissimilarity (1 - Tanimoto similarity) of all generated molecules in each pocket; (4) Lipinski measures how many of the five Lipinski rules are met, which is a loose rule of thumb for evaluating molecular drug similarity.
[0147] Below are the evaluation results of the generated molecules and a comparison with the test results of two other diffusion molecule generation models:
[0148]
[0149]
[0150] MOSES is a benchmark platform for molecular generation models, providing a set of metrics to evaluate the quality and diversity of generated molecules: (1) Validity, the score of valid generated molecules, which is checked for validity using RDkit; (2) Uniqueness, the score of uniquely generated molecules. Low uniqueness highlights repetitive molecule generation and low-level model distribution learning; (3) Novelty, the score of validly unique generated molecules not in the training set; (4) Frechet Chemical Network Distance (FCD), calculated using features of generated molecules and features of molecules in the dataset. These features are obtained from the penultimate layer of the ChemNet model. Low FCD values indicate that the model has successfully captured the statistics of the dataset; (5) KL Divergence, calculated using a large number of physicochemical descriptors from the generated and reference sets. Lower values indicate that the model has a good understanding of the distribution of these properties; (6) IntDiv, a measure of the diversity of generated molecules, which is a metric specifically designed to check for mode collapse or whether the model continues to generate similar structures. Below are the results of testing generated molecules using MOSES for evaluation:
[0151] Our model PCB Valid(↑) 0.98 0.88 Unique(↑) 0.97 0.91 Novelty(↑) 1.0 0.87 KL divergence(↑) 0.75 0.84 FCD(↑) 0.63 0.81 IntDiv(↑) 0.90 0.84
[0152] Example 2:
[0153] This embodiment proposes a device for generating small molecule compounds based on a conditional diffusion model, such as... Figure 1As shown, the control unit of the small molecule compound generation apparatus of this embodiment obtains the protein binding pocket structure information desired by the user from the storage unit, or obtains the protein binding pocket structure information that is not stored in the storage unit for small molecule compound generation from an external protein-ligand dataset (step A-1).
[0154] Furthermore, the obtained candidate protein-binding pocket structures are preprocessed, and their positional and atomic features are extracted from the protein-binding pocket data (step A-2). The protein-binding pockets input to the model are three-dimensional point cloud structures, which are represented as graph structures. The expected physicochemical properties of small molecules are represented as textual information, which are binned and discretized as feature vectors. A standard Gaussian noise is randomly sampled as the initial state for denoising the diffusion model. The diffusion model is then guided to generate conditions based on the protein-binding pockets and the expected physicochemical properties (step A-3).
[0155] Finally, the generated 3D point cloud of the small molecule compound is converted and output as an SDF file, and a pass / fail check is performed. The largest fragment of the small molecule compound that passes the pass / fail check is retained to determine the final generated small molecule compound (step A-4). Now combined with Figure 2 The detailed structure of the small molecule compound generating apparatus of this embodiment is described below. Figure 2 This is a block diagram illustrating an example of the structure of the small molecule compound generating apparatus of this embodiment, showing only the conceptually relevant parts of the structure.
[0156] exist Figure 2 In this system, external systems can be interconnected with the small molecule compound generation device via a network, and have functions such as providing databases related to protein binding pocket structure information and small molecule compound structure information, as well as / or websites that execute user interfaces.
[0157] Furthermore, external systems can function as web (Internet) servers or ASP (Active Server Page) servers, etc. Moreover, the various functions of an external system can be implemented by its hardware structure, including the CPU, disk drive, storage device, input device, output device, communication control device, etc., and the programs that control them.
[0158] The small molecule compound generating device generally includes a control unit, a communication control interface unit, an input / output control interface unit, and a storage unit. Here, the control unit is a CPU or similar device that comprehensively controls the protein binding pocket prediction device; the communication control interface unit is an interface to a communication device such as a router connected to a communication line; the input / output control interface unit is an interface to a display unit and an input unit; and the storage unit is a device for storing various databases or tables. These various parts of the small molecule compound generating device are connected communicatively via any communication path. Furthermore, the small molecule compound generating device is communicatively connected to a network via a communication device such as a router and wired or wireless communication lines such as dedicated lines.
[0159] The various databases or tables (protein-binding pocket structure information database, small molecule compound structure information database) stored in the storage unit serve as storage units for fixed disk devices, etc. The storage unit stores various programs, tables, files, databases, and web pages used in various processes. Among the components of this storage unit, the protein-binding pocket structure information database is a storage unit that stores protein-binding pocket structure information related to the structure of the protein-binding pocket. This protein-binding pocket structure information can be pre-stored in the protein-binding pocket structure information database. The control unit of the small molecule compound generation device can periodically, or according to the processing of the control unit, download the latest data from an external system via a network to update the protein-binding pocket structure information stored in the protein-binding pocket structure information database. Furthermore, the small molecule compound structure information database is a storage unit that stores the structural information of ligand small molecule compounds that can bind to the protein-binding pocket. This small molecule compound structure information can be pre-stored in the small molecule compound structure information database. The control unit of the small molecule compound generation device can periodically, or according to the processing of the control unit, download the latest data from an external system via a network to update the small molecule compound structure information stored in the small molecule compound structure information database.
[0160] In addition, Figure 2 In this system, the input / output control interface section controls the display section and the input section. The display section can be a display unit that shows the screen of applications, etc., and the input section can be a key input section, control panel, mouse, keyboard, etc.
[0161] The control unit has internal memory for storing control programs such as the operating system (OS), programs specifying various processing steps, and necessary data. The control unit performs information processing according to these programs to execute various processes. Functionally, the control unit includes a protein binding pocket structure information extraction unit, a small molecule compound information extraction unit, a protein binding pocket feature extraction unit, a small molecule compound feature extraction unit, a small molecule compound generation determination unit, and a small molecule compound generation processing output unit.
[0162] The system includes: a protein-binding pocket structure information extraction unit, which extracts the structure information of protein-binding pockets from a protein-binding pocket structure information database; a small molecule compound information extraction unit, which extracts the structure information of small molecule compounds from a small molecule compound structure information database; a protein-binding pocket feature extraction unit, which extracts the structural and atomic information features of the candidate protein-binding pockets obtained by the protein-binding pocket structure information extraction unit, thereby determining the final three-dimensional point cloud representation of the protein-binding pockets submitted to the small molecule compound generation model; and a small molecule compound feature extraction unit, which extracts the structural and atomic information features of the candidate protein-binding pockets obtained by the protein-binding pocket structure information extraction unit. The compound structure information extraction unit obtains small molecule compounds and performs small molecule compound information feature extraction to determine the final three-dimensional point cloud representation of the small molecule compound submitted to the small molecule compound generation model. The small molecule compound generation determination unit generates small molecule compounds using a conditional diffusion model based on the protein binding pocket three-dimensional point cloud representation. Based on the small molecule compound three-dimensional point cloud representation, it performs the comprehensive evaluation of the generated small molecule compound to determine the generated small molecule compound. The small molecule compound generation processing output unit converts the generated small molecule compound into a specified format and performs screening processing to determine the final generated small molecule compound.
[0163] The technical features of the above embodiments can be combined in any way. For the sake of brevity, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.
[0164] The embodiments described above are merely illustrative of several implementation methods of this application, and while the descriptions are relatively specific and detailed, they should not be construed as limiting the scope of the invention patent. It should be noted that those skilled in the art can make various modifications and improvements without departing from the concept of this application, and these all fall within the protection scope of this application. Therefore, the protection scope of this patent application should be determined by the appended claims.
Claims
1. A method for generating small molecule compounds based on a conditional diffusion model, characterized in that: Includes the following steps: Step 1: Obtain the three-dimensional structural information of the protein binding pocket for generating small molecule compounds; the three-dimensional structural information of the protein binding pocket includes the atom type, the XYZ three-dimensional rectangular coordinates of the atoms, and the number of atoms; Step 2: Extract features from the three-dimensional structure of the protein binding pocket to obtain its positional and atomic features. Based on the positional and atomic features of the protein binding pocket, the three-dimensional structural information of the protein binding pocket is represented as a graph structure. In this graph structure, the nodes are all the atoms of the protein binding pocket, the node features are the positional and atomic features of the protein binding pocket, and the edge features are the Euclidean distance between the corresponding pairs of nodes. Step 3: Determine the physicochemical properties of the generated small molecule compounds, discretize them, and obtain the physicochemical characteristics of the small molecule compounds; The physicochemical properties of the small molecule compounds include: drug-likeness, synthetic accessibility, lipid-water partition coefficient, and molecular weight. Step 4: The graph structure obtained in Step 2 and the physicochemical properties of the small molecule compounds obtained in Step 3 are used as conditional information and input into the pre-trained conditional diffusion model to guide the pre-trained conditional diffusion model to generate small molecule compounds, resulting in a three-dimensional point cloud of the generated small molecule compounds. Step 5: Convert the generated small molecule compound 3D point cloud into SDF format and perform a pass / fail check. Keep the largest fragment of the small molecule compound that passes the pass / fail check to determine the final generated small molecule compound. The conditional diffusion model consists of a diffusion process and a de-diffusion process; During the diffusion process, Gaussian noise is gradually added to the three-dimensional point cloud of small molecule compounds generated according to the predefined noise surface until the distribution of the three-dimensional point cloud of small molecule compounds tends to a standard Gaussian distribution. During the de-diffusion process, the distribution of the three-dimensional point cloud of small molecule compounds that tends to a standard Gaussian distribution obtained from the diffusion process is transformed into a three-dimensional point cloud of small molecule compounds that meets the desired distribution under the guidance of conditional information through the learning of the isovariant Transformer network. The equivariant Transformer network includes: an atomic encoder, a first central encoder, a property encoder, a pocket encoder, a second central encoder, layer normalization, a cross-attention layer for the physicochemical properties of small molecule compounds, a cross-attention layer for the protein binding pocket features, a cross-attention layer for the features of small molecule compounds, and a feedforward layer. One 3D point cloud of a small molecule compound whose distribution tends to the standard Gaussian distribution is randomly sampled and input into the atomic encoder, the physicochemical property features of the small molecule compound are input into the property encoder, and the protein binding pocket features are input into the pocket encoder. The sum of the position features of each atomic node in each 3D point cloud diagram of the small molecule compound is calculated as the input of the first central encoder, and the sum of the position features of each atomic node in the graph structure of each protein binding pocket is calculated as the input of the second central encoder. The output of the atomic encoder and the output of the first central encoder are summed to obtain the features of the graph structure of the small molecule compound, and the output of the pocket encoder and the output of the second central encoder are summed to obtain the features of the graph structure of the protein binding pocket. The features of the graph structure of the small molecule compound, the features of the graph structure of the protein binding pocket and the output of the property encoder are then passed through multiple layer normalizations and corresponding cross-attention layers, and finally the Gaussian noise predicted by the equivariant Transformer network is output; In the equivariant Transformer network, separate fully connected layers are used to embed the atomic features of the protein binding pocket, the atomic features of the small molecule compound, and the physicochemical property features of the small molecule compound respectively; Gaussian radial basis functions are used to embed the edge features of the protein binding pocket and the edge features of the small molecule compound respectively as spatial encoding; The cross-attention layer calculates the unit direction vector between each pair of nodes for the position features of the small molecule compound through the following formula: ; where the subscript s refers to the source node, the subscript t refers to the target node, and W is a learnable matrix.
2. The method for generating small molecule compounds based on a conditional diffusion model according to claim 1, characterized in that: The diffusion process can be expressed as: (1) in, It represents a multivariate Gaussian distribution. Representing three-dimensional point clouds of small molecule compounds, Represents three-dimensional geometric coordinates. Representing classification features, The number of atoms This represents the three-dimensional point cloud of a small molecule compound at time step t. Represents the noise-adding time step. The covariance matrix representing a multivariate Gaussian distribution with a standard deviation of 1. Controlling the signal-to-noise ratio , For a predefined noise table, , … , , This represents a variance-preserving denoising process. , This represents the standard deviation of the Gaussian distribution at time step t.
3. The method for generating small molecule compounds based on a conditional diffusion model according to claim 2, characterized in that: In the denoising diffusion process, the equivariant Transformer network is used to learn to convert the distribution of the 3D point cloud of the small molecule compound, which tends to the standard Gaussian distribution obtained in the diffusion process, into the 3D point cloud of the small molecule compound that meets expectations under the guidance of conditional information, which specifically includes: The denoising transition from time step t to s<t is set as a closed form, expressed as: (2) in, , , A three-dimensional point cloud representing a small molecule compound at time step s. This represents the standard deviation of the Gaussian distribution at time step t; Reparameterize formula (1) as follows ,in Predicting Gaussian noise using an equivariant Transformer network Therefore: (3) In the formula, This represents a three-dimensional point cloud of a small molecule compound reconstructed from noise obtained through neural prediction.
4. The method for generating a small molecule compound based on a conditional diffusion model according to claim 3, characterized in that: In the equivariant Transformer network, each cross-attention layer is expressed as: ; Where Q represents the characteristics of small molecule compounds, K and V represent the characteristics of protein binding pockets and the physicochemical properties of small molecule compounds, and d k The characteristic dimension of K; The Gaussian radial basis function can be expressed as: ; in, This represents the input feature vector. Let ||·|| represent the center vector of the radial basis function, ||·|| represent the Euclidean distance, and σ is the bandwidth parameter of the radial basis function; In the cross-attention layer, the position encoding is taken as the bias term of the cross-attention layer.
5. The method for generating small molecule compounds based on a conditional diffusion model according to claim 4, characterized in that: The pre-trained conditional diffusion model is obtained according to the following training steps: S10: Obtain the structural information of the protein binding pocket from the drug dataset, where the structural information of the protein binding pocket includes: the atomic type, the XYZ 3D Cartesian coordinates of the atoms, and the number of atoms in the protein binding pocket; Obtain the structural information of the small molecule compound from the drug dataset, where the structural information of the small molecule compound includes: the atomic type, the XYZ 3D Cartesian coordinates of the atoms, and the number of atoms in the protein binding pocket; Extract the physicochemical property information of the small molecule compound from the drug dataset; S20: Extract the positional and atomic features of the protein-binding pocket from the protein-binding pocket structure information; the positional features are centered three-dimensional Cartesian coordinates of atoms; the atomic features are represented by one-hot encoded atomic attributes, which include: ['C', 'N', 'O', 'S', 'B', 'Br', 'Cl', 'P', 'I', 'F']. The atomic attributes are encoded into binary vectors according to the atomic number, with atoms within the defined atomic type being marked as 1 and atoms outside the defined atomic type being marked as 0. Positional and atomic features of small molecule compounds are extracted from their structural information. The positional features are centered three-dimensional Cartesian coordinates of atoms. The atomic features are represented by one-hot encoded atomic attributes, which include: ['C', 'N', 'O', 'S', 'B', 'Br', 'Cl', 'P', 'I', 'F']. The atomic attributes are encoded into binary vectors according to their atomic numbers, with atoms within the defined atomic types marked as 1 and atoms outside the defined atomic types marked as 0. The physicochemical properties of small molecule compounds are binned at equal frequencies to obtain vector representations of their physicochemical properties. S30: Based on the positional and atomic features of the protein binding pocket, the structural information of the protein binding pocket is represented as a graph structure, where nodes are all atoms of the protein binding pocket, node features are the positional and atomic features of the protein binding pocket, and edge features are the Euclidean distances between corresponding pairs of nodes. Based on the positional and atomic features of small molecule compounds, the structural information of small molecule compounds is represented as a graph structure, where nodes are all atoms of the small molecule compound, node features are the positional and atomic features of the small molecule compound, and edge features are the Euclidean distances between corresponding pairs of nodes. The vector representation of the physicochemical properties of small molecule compounds is transformed into a continuous vector form through a learnable embedding layer, thereby obtaining the physicochemical property characteristics of small molecule compounds. A training dataset is constructed by mapping the graph structure of protein binding pockets, the graph structure of small molecule compounds, and the physicochemical properties of small molecule compounds one-to-one. S40: Train the conditional diffusion model using the training dataset until the conditional diffusion model is fitted, thus obtaining a pre-trained conditional diffusion model.
6. An apparatus for generating small molecule compounds based on a conditional diffusion model, characterized in that: include: The module for acquiring the three-dimensional structure information of the protein binding pocket is used to acquire the three-dimensional structure information of the protein binding pocket for the generation of small molecule compounds. The three-dimensional structural information of the protein binding pocket includes the atom type, the XYZ three-dimensional rectangular coordinates of the atom, and the number of atoms. The protein binding pocket feature extraction module is used to extract features from the three-dimensional structural information of the protein binding pocket, and obtain the positional features and atomic features of the protein binding pocket. The graph structure generation module is used to represent the three-dimensional structural information of the protein binding pocket as a graph structure based on the positional and atomic features of the protein binding pocket. In this graph structure, the nodes are all the atoms of the protein binding pocket, the node features are the positional and atomic features of the protein binding pocket, and the edge features are the Euclidean distance between the corresponding pairs of nodes. The physicochemical property information acquisition module for small molecule compounds is used to determine the physicochemical property information of the generated small molecule compounds, discretize them, and obtain the physicochemical property characteristics of the small molecule compounds. The physicochemical properties of the small molecule compounds include: drug-likeness, synthetic accessibility, lipid-water partition coefficient, and molecular weight. The generation module is used to input the graphical structure of the protein binding pocket and the physicochemical properties of the small molecule compound as conditional information into the pre-trained conditional diffusion model, which guides the pre-trained conditional diffusion model to generate the small molecule compound and obtain the generated three-dimensional point cloud of the small molecule compound. The output module is used to convert the generated small molecule compound 3D point cloud into SDF format, perform a pass / fail check, retain the largest fragment of the small molecule compound that passes the pass / fail check, and determine the final generated small molecule compound; the conditional diffusion model consists of a diffusion process and a de-diffusion process; During the diffusion process, Gaussian noise is gradually added to the three-dimensional point cloud of small molecule compounds generated according to the predefined noise orientation until the distribution of the three-dimensional point cloud of small molecule compounds tends to a standard Gaussian distribution. During the de-diffusion process, the distribution of the three-dimensional point cloud of small molecule compounds that tends to a standard Gaussian distribution obtained from the diffusion process is transformed into a three-dimensional point cloud of small molecule compounds that meets the desired distribution under the guidance of conditional information through the learning of the isovariant Transformer network. The equivariant Transformer network includes: an atomic encoder, a first central encoder, a property encoder, a pocket encoder, a second central encoder, layer normalization, a cross-attention layer for the physicochemical properties of small molecule compounds, a cross-attention layer for the protein binding pocket features, a cross-attention layer for the features of small molecule compounds, and a feedforward layer. Randomly sample one 3D point cloud of a small-molecule compound whose distribution tends to the standard Gaussian distribution and input it into the atom encoder, input the physicochemical property features of the small-molecule compound into the property encoder, and input the protein binding pocket features into the pocket encoder. Calculate the sum of the position features of each atom node in each 3D point cloud graph of the small-molecule compound as the input of the first central encoder, and calculate the sum of the position features of each atom node in the graph structure of each protein binding pocket as the input of the second central encoder. The output of the atom encoder and the output of the first central encoder are summed to obtain the features of the small-molecule compound graph structure, and the output of the pocket encoder and the output of the second central encoder are summed to obtain the features of the protein binding pocket graph structure. The features of the small-molecule compound graph structure, the features of the protein binding pocket graph structure and the output of the property encoder are passed through multiple layer normalization layers and corresponding cross-attention layers, and finally output the Gaussian noise predicted by the equivariant Transformer network; In the equivariant Transformer network, separate fully connected layers are used to embed the atomic features of the protein binding pocket, the atomic features of the small-molecule compound, and the physicochemical property features of the small-molecule compound respectively; Gaussian radial basis functions are used to embed the edge features of the protein binding pocket and the edge features of the small-molecule compound respectively as spatial encoding; The cross-attention layer calculates the unit direction vector between each pair of nodes for the position features of the small-molecule compound through the following formula: ; where the subscript s refers to the source node, the subscript t refers to the target node, and W is a learnable matrix.
7. The apparatus for generating small molecule compounds based on a conditional diffusion model according to claim 6, characterized in that: The diffusion process can be expressed as: (1) in, Representing three-dimensional point clouds of small molecule compounds, Represents three-dimensional geometric coordinates. Representing classification features, The number of atoms This represents the three-dimensional point cloud of a small molecule compound at time step t. Represents the noise-adding time step. The covariance matrix representing a multivariate Gaussian distribution with a standard deviation of 1. Controlling the signal-to-noise ratio , For a predefined noise table, , … , , This represents a variance-preserving denoising process. , This represents the standard deviation of the Gaussian distribution at time step t; The denoising diffusion process is expressed as: The denoising transition from time step t to s<t is set to a closed form, expressed as: (2) in, , , A three-dimensional point cloud representing a small molecule compound at time step s. This represents the standard deviation of the Gaussian distribution at time step t; Reparameterize formula (1) as follows ,in Predicting Gaussian noise using an equivariant Transformer network Therefore: (3) In the formula, This represents a three-dimensional point cloud of a small molecule compound reconstructed from noise obtained through neural prediction.
8. The apparatus for generating small-molecule compounds based on a conditional diffusion model according to claim 7, characterized in that: In the equivariant Transformer network, each cross-attention layer is expressed as: ; Where Q represents the characteristics of small molecule compounds, K and V represent the characteristics of protein binding pockets and the physicochemical properties of small molecule compounds, and d k The characteristic dimension of K; The Gaussian radial basis function can be expressed as: ; in, This represents the input feature vector. Let ||·|| represent the center vector of the radial basis function, ||·|| represent the Euclidean distance, and σ is the bandwidth parameter of the radial basis function; In the cross-attention layer, the position encoding is used as the bias term of the cross-attention layer.
9. The apparatus for generating small molecule compounds based on a conditional diffusion model according to claim 8, characterized in that: The pre-trained conditional diffusion model is obtained according to the following training steps: S10: Obtain the structural information of the protein binding pocket from the drug dataset, where the structural information of the protein binding pocket includes: the atom type, the XYZ 3D Cartesian coordinates of the atoms, and the number of atoms in the protein binding pocket; Obtain the structural information of the small-molecule compound from the drug dataset, where the structural information of the small-molecule compound includes: the atom type, the XYZ 3D Cartesian coordinates of the atoms, and the number of atoms in the small-molecule compound; Extract the physicochemical property information of the small-molecule compound from the drug dataset; S20: Extract the positional and atomic features of the protein-binding pocket from the protein-binding pocket structure information; the positional features are centered three-dimensional Cartesian coordinates of atoms; the atomic features are represented by one-hot encoded atomic attributes, which include: ['C', 'N', 'O', 'S', 'B', 'Br', 'Cl', 'P', 'I', 'F']. The atomic attributes are encoded into binary vectors according to the atomic number, with atoms within the defined atomic type being marked as 1 and atoms outside the defined atomic type being marked as 0. Positional and atomic features of small molecule compounds are extracted from their structural information. The positional features are centered three-dimensional Cartesian coordinates of atoms. The atomic features are represented by one-hot encoded atomic attributes, which include: ['C', 'N', 'O', 'S', 'B', 'Br', 'Cl', 'P', 'I', 'F']. The atomic attributes are encoded into binary vectors according to their atomic numbers, with atoms within the defined atomic types marked as 1 and atoms outside the defined atomic types marked as 0. The physicochemical properties of small molecule compounds are binned at equal frequencies to obtain vector representations of their physicochemical properties. S30: Based on the positional and atomic features of the protein binding pocket, the structural information of the protein binding pocket is represented as a graph structure, where nodes are all atoms of the protein binding pocket, node features are the positional and atomic features of the protein binding pocket, and edge features are the Euclidean distances between corresponding pairs of nodes. Based on the positional and atomic features of small molecule compounds, the structural information of small molecule compounds is represented as a graph structure, where nodes are all atoms of the small molecule compound, node features are the positional and atomic features of the small molecule compound, and edge features are the Euclidean distances between corresponding pairs of nodes. The vector representation of the physicochemical properties of small molecule compounds is transformed into a continuous vector form through a learnable embedding layer, thereby obtaining the physicochemical property characteristics of small molecule compounds. A training dataset is constructed by mapping the graph structure of protein binding pockets, the graph structure of small molecule compounds, and the physicochemical properties of small molecule compounds one-to-one. S40: Train the conditional diffusion model using the training dataset until the conditional diffusion model is fitted, thus obtaining a pre-trained conditional diffusion model.
