Drug design method based on autoregressive model
Through the drug design method based on the autoregressive model, the sub-word segmentation algorithm and the GPT2 model are used to generate new compounds, which solves the problems of low drug design accuracy and low efficiency in the existing technology, and realizes efficient drug design and a wider range of compounds. Exploration reduces R&D costs and cycles.
Patent Information
- Application Number
- CN202410754023.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Priority Date
- 2023-06-15
- Filing Date
- 2024-06-12
- Publication Date
- 2024-09-03
- Estimated Expiration
- 2044-06-12
AI Technical Summary
Existing drug design technologies suffer from low accuracy, high computational complexity, false positives and false negatives, and the efficiency and success rate of new drug development are low, resulting in high research and development costs.
Adopt a drug design method based on autoregressive models, build a word segmenter through sub-word segmentation algorithm, use the GPT2 model to train the interaction mode between proteins and ligands, generate new compounds with potential drug activity, and use chemical information tools to conduct Post-processing to optimize structure and activity predictions.
The accuracy and efficiency of drug design are improved. The generated compounds have unique chemical structures and mechanisms of action, which can explore chemical space more effectively, provide a wider range of drug candidate compounds, and reduce R&D costs and cycles.
Smart Images

Figure CN118588196A
Abstract
Description
Technical Field
[0001] The present invention belongs to the technical field of drug design, and specifically is a drug design method based on an autoregressive model. Background Art
[0002] In recent years, drug development technology has made significant progress in computational chemistry and bioinformatics. Traditional drug design strategies include: molecular docking, structure-activity relationship (QSAR), pharmacophore, unsupervised learning, deep learning, generative adversarial networks (GANs), etc.
[0003] Molecular Docking is a technique used to simulate the interaction between small molecules and macromolecules (usually proteins) and predict the best binding mode of small molecules in the active site of the protein. This process includes multiple steps: first identify the active site of the protein, then place the small molecule in multiple possible positions in the active site, and search for possible binding modes by rotating its chemical bonds and changing its conformation. The interaction energy is calculated for each possible binding posture, which usually involves factors such as van der Waals forces, hydrogen bonds, and electrostatic interactions. Finally, the most likely binding mode is determined based on the principle of minimum energy. It still has certain limitations:
[0004] Accuracy issue: The scoring functions commonly used in molecular docking attempt to predict the strength of intermolecular interactions, but these scoring functions are usually based on simplified physical models and may not accurately reflect the complex biomolecular environment, such as dynamic water molecule effects, changes in ionic strength, etc.
[0005] Computational complexity issues: For molecules with multiple active sites or very large molecules, the computational requirements of molecular docking increase dramatically. In addition, considering the flexibility of ligands and target molecules further increases the computational complexity and the required computational resources.
[0006] False positive and false negative problems: The docking process may produce false positive results with high scores (apparently good binding) or miss truly valid binding poses (false negatives) due to inadequacies in the scoring function. This limits the reliability of docking for high-throughput screening.
[0007] Structure-activity relationship (QSAR) is a technique that uses statistical methods to establish the relationship between molecular structural features and their biological activity. The core of this method is to build a mathematical model between descriptors (such as physicochemical properties of molecules, topological indices, molecular graphics, etc.) and biological activity data. It still has certain limitations:
[0008] 1. QSAR models strongly rely on the quality and coverage of the input data. When the available compound dataset is unrepresentative or too small, the predictive performance of the model may drop significantly.
[0009] 2. Overfitting problem: When there are a large number of descriptors and limited training samples, QSAR models are prone to overfitting, that is, the model performs well on the training set but performs poorly on unseen data. This reduces the generalization ability of the model.
[0010] Pharmacophore is based on the concept of identifying and defining key chemical features (such as hydrogen bond donors and acceptors, hydrophobic regions, ion docking receptors, etc.) responsible for the biological activity of molecules. These features are combined into a "virtual template" to screen or design new molecules that can interact with specific biological targets. The process of constructing a pharmacophore model usually involves identifying common features of known active molecules, which are used as a basis to derive the minimum required feature combination that can induce the desired biological response. Its limitations are as follows:
[0011] 1. This approach may be overly simplified and fail to take into account the comprehensive properties of the molecule, such as flexibility and overall shape, which may lead to inaccurate activity predictions.
[0012] 2. Dynamic changes of target proteins (such as conformational changes) are usually not considered in pharmacophore models. Due to the static nature of the model, it may not be possible to accurately predict the actual behavior of the molecule in vivo.
[0013] 3. The success of the pharmacophore model depends largely on the quality and relevance of the selected reference molecule set. If the reference molecules are not large enough or the activity differences between molecules are large, the model may not accurately capture the true and universal pharmacophore characteristics.
[0014] Unsupervised learning is learning patterns from data without explicit output labels, such as clustering compounds to discover new structures that may have similar biological activities. It still has certain limitations: it cannot directly predict specific biological activities or potency because its output is usually a new representation or classification of data rather than a direct activity prediction.
[0015] Early deep learning mainly involved structures such as multi-layer perceptrons (MLP), convolutional neural networks (CNN), and simple recurrent neural networks (RNN). These models learn complex nonlinear relationships from large amounts of data to predict properties such as the biological activity of molecules or the toxicity of drugs. They automatically extract features from data through stacked linear and nonlinear processing layers. It still has certain limitations:
[0016] 1. No zero-shot learning capability: Zero-shot learning refers to the ability of a model to make predictions about unseen categories without direct experience. Early deep learning models were often unable to make accurate predictions about new biological targets or compounds without training data. This is because they rely heavily on the data provided during training and lack the ability to generalize learned knowledge to completely new situations.
[0017] 2. Lack of attention mechanism: The attention mechanism allows the model to dynamically focus on the most relevant information when processing data. Early deep learning architectures (such as early CNNs and RNNs) lacked this mechanism, which limited their efficiency and accuracy in processing complex biological data with multiple key features. For example, in the structure of a drug molecule, certain specific parts may contribute much more to the activity than other parts, but early models were unable to effectively identify and prioritize these key areas.
[0018] Generative adversarial networks (GANs) generate new molecular structures that are chemically plausible by training two networks (generators and discriminators). The generator tries to create new compounds, while the discriminator evaluates the authenticity and effectiveness of these compounds. It still has certain limitations:
[0019] 1. The generated compounds may not be feasible in practical chemical synthesis or biological applications, because the structures generated by GANs may not consider the synthetic feasibility or biological stability of the molecules.
[0020] 2. When training GANs, you may encounter the problem of mode collapse. This refers to the generator starting to generate very similar or identical outputs, rather than diverse data. Mode collapse usually occurs when the generator finds a specific output strategy that can "fool" the discriminator and then repeats this strategy. In drug design, this means that the generated compounds may be too single and cannot cover a wide enough range of chemical space, thus limiting the application effect of GANs in discovering new drug candidate molecules.
[0021] In short, the existing technology still has shortcomings. Generally speaking, there are problems with low computing efficiency and poor design success rate, which leads to the fact that the research and development of new drugs still faces huge challenges and high costs. Summary of the invention
[0022] In order to overcome the above-mentioned shortcomings of the prior art, the object of the present invention is to provide a drug design method based on an autoregressive model to improve the efficiency and success rate of drug design.
[0023] In order to achieve the above object, the technical solution adopted by the present invention is:
[0024] A drug design method based on an autoregressive model comprises the following steps:
[0025] Obtain a ligand data set and a protein-ligand data set, use a subword segmentation algorithm to train the protein and ligand information in the data set, use the protein information to train to obtain a protein segmenter, and use the ligand information to train to obtain a ligand segmenter; and use the protein segmenter and the ligand segmenter to construct an autoregressive model segmenter;
[0026] Process and transform the original data in the data set into a text form suitable for the autoregressive model, and then encode it through the word segmenter of the autoregressive model to construct the training data set required for the autoregressive model;
[0027] The autoregressive model is trained using the constructed training data set so that it can understand and learn the interaction pattern between protein and ligand;
[0028] The trained autoregressive model is used to generate predicted ligand data, which are then post-processed by chemical information tools to obtain candidate ligands with specific chemical structures;
[0029] The obtained candidate ligands are evaluated and optimized, and chemical or bioinformatics tools are used for structural optimization and activity prediction to identify candidate molecules with the potential to become effective drugs.
[0030] In one embodiment, the ligand data set is provided by a data set ZINC, PubChem, ChEMBL or DrugBank, and the ligand information is extracted for learning the representation of ligand molecules, and the data is in SMILES format;
[0031] The protein-ligand dataset is provided by the datasets BindingDB, PDBbind, BioLIP or BindingMOAD. Protein information is extracted for learning the representation of protein amino acid sequences, and protein-ligand pair information is extracted for learning the correspondence between proteins and ligands. The data is in FASTA format and SMILES format.
[0032] In one embodiment, the objects used by the subword segmentation algorithm include: a textual representation of a ligand, a textual representation of a protein, and a textual representation composed of a protein and a ligand;
[0033] The subword segmentation algorithm breaks rare words into meaningful subwords without splitting common words into smaller subwords.
[0034] In one embodiment, the subword segmentation algorithm BPE algorithm is used to train the SMILES representation of the ligand in the jglaser / binding_ library to obtain a ligand segmenter; the segmenter includes the vocab.json storage vocabulary of the ligand and the merges.txt storage merge operation, and the size of the vocabulary is 3560;
[0035] The word list size of proteins is set to 50,000, and the subword segmentation algorithm BPE algorithm is used to train the protein sequences in the jglaser / binding_affinity library to obtain the protein word segmenter; the word segmenter contains the protein vocab.json storage word list and merges.txt storage merge operations;
[0036] When constructing the tokenizer of the autoregressive model, the ligand and protein vocabulary lists are firstly unioned to delete the same words and the same words with different merging operations. After processing the repeated words, the initial 256 characters in the BPE algorithm are added as the vocabulary to make up for the vacancies caused by deleting the repeated words. After processing, the vocabulary size of the tokenizer of the autoregressive model is 53080.
[0037] In one embodiment, the training data set includes a ligand text data set and a protein ligand text data set, which is obtained by converting the ligand data set and the protein ligand data set, and the steps are as follows:
[0038] Extract ligand information from the ligand dataset and convert it into ligand text data. Generate a ligand text dataset through the tokenizer of the autoregressive model so that the model can understand the representation of the ligand.
[0039] Protein-ligand pairs are extracted from the protein-ligand dataset and converted into protein-ligand text data. The protein-ligand text dataset is generated through the word segmenter of the autoregressive model, so that the model can capture the potential characteristics and activity relationships of the chemical structure to generate new compounds with potential drug activity.
[0040] In one embodiment, when constructing the ligand text data set, SMILES sequences are extracted from the zinc20 data set, and each SMILES sequence is converted into ligand text data in the format of '<|startoftext|>'+' <l>'+SMILES sequence+'<|endoftext|>'; Encode the ligand text data through the tokenizer of the autoregressive model to form a ligand text dataset;
[0041] When constructing the protein-ligand pair text dataset, protein-ligand pairs are extracted from the jglaser / binding_affinity dataset, and the SMILES representation of the protein and ligand of each protein-ligand pair is converted into protein-ligand pair text data in the format of '<|startoftext|>'+' '+Protein sequence in this pair+' <l>'+SMILES of the ligand in the pair+'<|endoftext|>'; Use the tokenizer of the autoregressive model to encode the protein-ligand pair text data.
[0042] In one embodiment, the training of the autoregressive model includes:
[0043] The autoregressive model GPT2 was selected as the basic model, and the deep learning framework PyTorch was used for model training. The protein ligand text dataset sequence was input, and the target output corresponding to each input data element was the next element in the sequence.
[0044] In one embodiment, generating predicted ligand data using the trained autoregressive model comprises:
[0045] When predicting possible ligands for a specific protein, the amino acid sequence or FASTA format of the protein is input, and the SMILES format of the ligand predicted for the protein sequence is output;
[0046] If the protein sequence and part of the ligand are known, when predicting the rest of the ligand, based on the input protein amino acid sequence or FASTA format, the known part of the ligand (i.e. "prompt") is also input, and the predicted ligand SMILES format with a specific beginning is output.
[0047] In one embodiment, the autoregressive model is deployed locally or on a web terminal, using the GPT-2 autoregressive model based on the HuggingFace library as the core;
[0048] The protein sequence is used as input and the GPT-2 autoregressive model is used to generate the corresponding drug molecule sequence. The GPT-2 autoregressive model outputs the SMILES format and is screened by OpenBabel to eliminate unreasonable drug generation, and then converted to SDF format by OpenBabel.
[0049] In one embodiment, the chemical or biological informatics tools include OpenBabel and RDKit.
[0050] Compared with the prior art, the above-mentioned drug design method based on the autoregressive model provided in the embodiment of the present invention has the following beneficial effects:
[0051] The present invention uses a GPT-type model to perform autoregressive training on protein-ligand pairs with known interactions, so that the model can capture potential chemical structure features and activity relationships, thereby generating new compounds with potential drug activity. In particular, a word segmenter is constructed in drug design based on an autoregressive model to process and understand chemical and biological sequence data, that is, an advanced subword segmentation algorithm BPE is used to implement the word segmenter, which automatically identifies and merges high-frequency character pairs or character combinations by analyzing specific patterns of protein sequences and ligand chemical structures, thereby forming an efficient and compact vocabulary. By tailoring a word segmenter for the drug design process, the model's ability to process complex chemical and biological sequence data is significantly improved, thereby improving the accuracy of predicting drug molecular structures; in addition, by optimizing the size and structure of the vocabulary, the computational complexity of the model is reduced, and the efficiency of the training and prediction process is improved.
[0052] Furthermore, since the autoregressive generation method shows higher flexibility in drug design strategies and relies on the model's own output as input for prediction, the use of autoregressive models can better capture the relationship between chemical structure and activity, thereby improving the quality of generated compounds, that is, ensuring the success rate of drug design. In addition, since the autoregressive generation method is more stable during training than the generative adversarial network GANs, it can be more easily optimized and adjusted, thereby improving the efficiency of drug design.
[0053] In addition, these new compounds may have unique chemical structures and mechanisms of action, which can more effectively explore chemical space and provide a wider range of candidate compounds for drug development compared with existing technologies. BRIEF DESCRIPTION OF THE DRAWINGS
[0054] Figure 1 An overall flow chart of a drug design method based on an autoregressive model provided in an embodiment of the present invention;
[0055] Figure 2 A specific operation flow chart of a drug design method based on an autoregressive model provided in an embodiment of the present invention. DETAILED DESCRIPTION
[0056] In order to make the purpose, technical solution and advantages of the present application more clearly understood, the present application 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 application and are not used to limit the present application.
[0057] Proteins are one of the most basic molecules in life systems, and they play many important functions in cells. Proteins are usually composed of one or more polypeptide chains, which can interact with other molecules through hydrogen bonds, ionic bonds, van der Waals forces and other interactions. Among them, small molecules that interact with proteins are called ligands. This interaction is very special because it can cause changes in the conformation of proteins, thereby affecting the function of proteins. For example, drugs usually exert their effects by binding to proteins, so studying protein-ligand interactions is very important for drug design.
[0058] In order to improve the efficiency and success rate of drug design, an embodiment of the present invention provides a drug design method based on an autoregressive model, the method comprising the following steps:
[0059] Step 1: Apply the subword segmentation algorithm to biological text processing, train the protein and ligand information in the dataset, obtain the protein and ligand segmenters, and build the autoregressive model segmenter based on this.
[0060] Step 2: Process and transform the original data in the dataset into a text form suitable for the autoregressive model, and then encode it through the word segmenter of the autoregressive model to construct the text training dataset required for the autoregressive model.
[0061] Step 3: Use the constructed training data set to train the autoregressive model so that it can understand and learn the interaction pattern between protein and ligand.
[0062] Step 4: Generate predicted ligand data using the trained autoregressive model and post-process them using chemical information tools to obtain candidate ligands with specific chemical structures; evaluate and optimize the obtained candidate ligands, and use chemical or bioinformatics tools for structure optimization and activity prediction to identify candidate molecules that have the potential to become effective drugs.
[0063] For step 1 above:
[0064] The embodiment of the present invention proposes a new method for constructing a word segmenter in the field of drug design, especially in the drug design method based on the autoregressive model. Taking into account the particularity of the field of drug design, including the complexity of ligand and protein structures and the high accuracy requirements in the drug design process, the embodiment of the present invention constructs a special word segmenter to process and understand chemical and biological sequence data. This method is proposed based on: improving the accuracy and efficiency of the autoregressive model in processing chemical structure and biological sequence data, and optimizing the computational burden in the drug design process.
[0065] The embodiment of the present invention uses an advanced subword segmentation algorithm (e.g., Byte Pair Encoding (BPE) or WordPiece) to implement a word segmenter. The algorithm automatically identifies and merges high-frequency character pairs or character combinations by analyzing specific patterns of protein sequences and ligand chemical structures, thereby forming an efficient and compact vocabulary. In addition, the embodiment of the present invention also includes a series of training steps, using protein and ligand data in a large bioinformatics database to train the word segmenter to ensure that it can accurately reflect the characteristics of biochemical data.
[0066] In order to implement the word segmenter, the embodiment of the present invention adopts an implementation method based on the Hugging Face Tokenizers library. Through this method, the word segmentation algorithm can be flexibly customized and optimized to adapt to different biochemical data characteristics. Specifically, using the API interface provided by the library, researchers can customize the vocabulary based on the SMILES representation of the ligand and the amino acid sequence of the protein, and then build an autoregressive model word segmenter optimized for drug design.
[0067] The embodiments of the present invention achieve significant advantages and benefits of a word segmenter: First, by tailoring a word segmenter for the drug design process, the model's ability to process complex chemical and biological sequence data is significantly improved, thereby improving the accuracy of predicting drug molecular structures. Second, the method reduces the computational complexity of the model and improves the efficiency of the training and prediction process by optimizing the size and structure of the vocabulary. In addition, the embodiments of the present invention can also provide drug researchers with a more accurate and efficient tool to help them discover new drug candidates with potential value during drug design and development, accelerate the research and development cycle of new drugs, and reduce research and development costs.
[0068] For step 2 above:
[0069] The embodiment of the present invention proposes an efficient data processing method, which aims to convert the raw data in drug research into a format suitable for autoregressive model training. In view of the advantages of autoregressive models in generation tasks, especially in the field of drug design, they can predict the next possible compound structure based on given sequence data. The purpose of this step is to provide high-quality and efficient training data for these models. By optimizing the data processing process, it is committed to improving the efficiency of model training and the quality of generated compounds.
[0070] The embodiment of the present invention adopts a series of technical steps to process the original data to form a text data training set, so that it is suitable for the training needs of the autoregressive model. First, the original data (including the SMILES string of the ligand and the amino acid sequence of the protein) is preprocessed and converted into a unified text format. Then, the autoregressive model word segmenter constructed in step 1 is used to encode these text data to generate a training data set that can be directly used by the model. This process includes serializing chemical and biological information into a series of recognizable symbols or tags, which are used by the model to learn the structural characteristics and biological activities of compounds.
[0071] In order to realize the text data training set, the embodiment of the present invention utilizes high-level programming languages and data processing libraries (such as Pandas and NumPy in Python and its ecosystem) and specific word segmentation tools (such as Hugging Face's Tokenizers library). The flexibility and powerful functions of these tools make it feasible and efficient to extract, convert and encode data from raw data of different sources and formats.
[0072] Through precise and efficient data processing steps, the embodiments of the present invention bring many advantages and benefits when implementing text data training sets: first, it ensures the quality and consistency of training data, which is crucial for training high-performance autoregressive models. Second, through the optimized data encoding process, the time and resources required for model training are reduced, which speeds up the discovery of new drugs.
[0073] For step 3 above:
[0074] The embodiment of the present invention is to use advanced autoregressive models to capture and understand the complex interaction patterns between proteins and ligands. In the field of drug design, accurate prediction of the interaction between proteins and ligands is crucial for identifying effective drug molecules. Traditional methods often rely on time-consuming experimental methods or computationally expensive simulations. The embodiment of the present invention aims to improve the efficiency and accuracy of drug candidate discovery by training autoregressive models to learn these interaction patterns directly from large-scale biochemical data.
[0075] This step details the process of autoregressive model training. The key is to train the model using a specific preprocessed protein-ligand text dataset. The training goal is to enable the model to accurately predict the next element of a given sequence, thereby learning the interaction pattern between protein and ligand. The process also involves randomly assigning the dataset to a training set and a validation set, where the training set is used to learn the model and the validation set is used to evaluate the learning effect of the model.
[0076] Model selection and training framework during model training, select an autoregressive model architecture suitable for processing sequence data, such as Transformer or GPT series models. In the embodiment of the present invention, GPT-2 is selected as the basic framework of the autoregressive model, considering its excellent performance in processing sequence data. The model is implemented and trained using the PyTorch deep learning library, which provides a flexible API and efficient computing power to support the rapid development and training of autoregressive models.
[0077] Training process and optimization strategy during model training. During the model training process, the embodiment of the present invention adopts a series of optimization strategies to improve training efficiency and model performance. First, an appropriate optimizer (such as Adam or SGD) is selected to minimize the loss function, which is crucial for fast convergence and avoiding overfitting. Secondly, the training process is further optimized by carefully configuring training parameters (such as learning rate, batch size, and training cycle) and implementing a strategy for dynamically adjusting the learning rate. The data set segmentation strategy ensures the generalization ability of the model on various data. By learning on the training set and evaluating on the validation set, the training status of the model can be effectively monitored and adjusted.
[0078] In order to implement model training, embodiments of the present invention can use various machine learning and deep learning frameworks, such as TensorFlow or PyTorch, which provide flexible and powerful APIs to support the design, training and verification of autoregressive models. In addition, the development and experimentation process can be further accelerated by using ready-made model libraries such as the Hugging Face Transformers library, which provide pre-trained models and training techniques to help improve model performance.
[0079] The model training of the embodiment of the present invention demonstrates several key advantages:
[0080] (1) Efficient learning and improved accuracy: By accurately training the autoregressive model, the embodiments of the present invention can deeply understand the complex interactions between proteins and ligands, significantly improving the support for drug design. By using the power of deep learning, the model can accurately learn the patterns of these interactions, thereby improving the accuracy of drug candidate prediction.
[0081] (2) Optimizing performance and efficiency: The embodiments of the present invention make the model training process more efficient and quickly reach the desired performance level through optimized training strategies and parameter adjustments. Compared with traditional drug discovery methods, it can process large-scale data sets faster and accelerate the identification of potentially valuable drug candidates.
[0082] (3) Flexibility and scalability: The choice of GPT-2 and PyTorch as implementation tools not only ensures the powerful performance of the model, but also provides a high degree of flexibility and scalability for future research and applications. The choice of this technical framework provides a wide range of application prospects for drug design, thereby exploring new drug molecules and revealing new areas that traditional methods may not have discovered.
[0083] For step 4 above:
[0084] The embodiment of the present invention uses a series of highly specialized ligand post-processing steps to screen candidate ligands with practical application potential from a large amount of ligand data generated by an autoregressive model. These steps solve the problems of low efficiency and low success rate in the traditional drug discovery process. By combining computational models and chemical informatics tools, it is possible to quickly and accurately identify and optimize ligand candidates with drug activity. The method is proposed based on the fact that the automated and intelligent post-processing process can not only significantly accelerate the screening process of drug candidates, but also improve the accuracy and reliability of the screening process.
[0085] Ligand generation in the examples of the present invention: using a trained autoregressive model, based on the amino acid sequence of a specific protein or known partial ligand information, SMILES format data of the ligand is generated.
[0086] Ligand post-processing in the examples of the present invention: using chemical informatics tools to preliminarily screen the generated ligands, eliminating ligands with unreasonable chemical structures, retaining candidate ligands with reasonable structures, and converting them into SDF format.
[0087] Evaluation and optimization of candidate ligands in the examples of the present invention: 3D conformation generation of candidate ligands in SDF format, and further screening of candidate molecules with the potential to become effective drugs through methods such as stereochemical analysis and synthetic feasibility assessment.
[0088] The embodiment of the present invention uses chemical informatics tools such as Open Babel and RDKit in the ligand generation and post-processing stages. These tools can accurately analyze and convert the chemical structure of the data in SMILES format, ensuring the rationality of the chemical structure of the candidate ligand and the feasibility of the molecule. In the model training and ligand generation stages, a deep learning framework such as PyTorch is used to support complex autoregressive model structures and efficient model training.
[0089] Advantages and benefits of ligand generation and post-processing of embodiments of the present invention:
[0090] (1) Efficiency improvement: Through automated ligand generation and intelligent post-processing processes, the efficiency of screening valuable candidates from a large number of chemical structures has been greatly improved.
[0091] (2) Enhanced accuracy: Combining advanced computational models and professional cheminformatics tools can more accurately identify ligands with reasonable chemical structures and potential for drug activity.
[0092] (3) Flexibility and scalability: It allows the prediction and screening process to be customized according to different drug development needs, ensuring the wide applicability and good scalability of the method.
[0093] (4) Comprehensive evaluation advantage: Through multi-dimensional structure optimization and activity prediction, the embodiments of the present invention not only consider the chemical rationality of the ligand, but also evaluate its biological activity and synthetic feasibility, providing a comprehensive scientific basis for drug development.
[0094] Combination Figure 1 and Figure 2 , the following steps are specifically described in detail in the embodiment of the present invention:
[0095] Step 1: Build a tokenizer for the autoregressive model.
[0096] Step 1.1: Obtain the ligand data set and the protein ligand data set, and use the subword segmentation algorithm to train the ligand information in the data set to establish a ligand tokenizer, that is, to establish a labeled ligand vocabulary.
[0097] Step 1.2: Use the same subword segmentation algorithm as step 1.1 to train the protein information in the dataset to obtain a protein segmentor, that is, to obtain a labeled protein vocabulary.
[0098] Step 1.3: Construct a tokenizer for the autoregressive model through the content of the tokenizer for the ligand and the content of the tokenizer for the protein. Specifically, the tokenizers obtained in step 1.1 and step 1.2 are combined into a vocabulary, and repeated words in the combined vocabulary are deleted to obtain a tokenizer for the autoregressive model. That is, the vocabulary of the labeled ligand and protein is combined and repeated words are deleted to form a vocabulary for the autoregressive model.
[0099] In the embodiment of the present invention, the ligand data set is provided by ZINC, PubChem, ChEMBL or DrugBank, and the ligand information is extracted for learning the representation of ligand molecules, and the data format is SMILES format. The protein ligand data set is provided by BindingDB, PDBbind, BioLIP or BindingMOAD, and the protein information is extracted for learning the representation of protein amino acid sequences, and the protein ligand pair information is extracted for learning the corresponding relationship between proteins and ligands, and the data format is FASTA format and SMILES format.
[0100] As a technical application in natural language processing tasks, subword segmentation algorithms typically include: BPE (BytePair Encoding), Byte-level BPE, WordPiece, Unigram, SentencePiece. It can also include improvements based on commonly used subword segmentation algorithms, such as improvements to the BPE algorithm, which may include removing unused characters from the initial character set, or customizing the initial character set. The main idea of the subword segmentation algorithm is to decompose rare words into meaningful subwords, while common words are not decomposed, that is, common words are not split into smaller subwords. The embodiment of the present invention applies it to the field of drug design for processing biological texts, for example, biological texts include SMILES format of ligands and text data of protein sequences. In the embodiment of the present invention, the objects used by the subword segmentation algorithm include: text representation of ligands, text representation of proteins, and text representation composed of proteins and ligands.
[0101] Step 2: Construct a text dataset (i.e., training dataset). Convert the original data into a text form suitable for the autoregressive model, and then encode it through the word segmenter of the autoregressive model to construct the training dataset required for the autoregressive model.
[0102] Step 2.1: Construct ligand text dataset.
[0103] Extract ligand information from the ligand data set, and convert each sequence of the ligand information into ligand text data. Then encode the ligand text data through the subword segmentation algorithm in step 1, that is, the tokenizer obtained, to form a ligand text data set to help the model understand the representation of the ligand.
[0104] Step 2.2: Construct a protein-ligand pair text dataset.
[0105] Protein-ligand pairs are extracted from the protein-ligand dataset and converted into protein-ligand pair text data. The protein-ligand pair text data is then encoded using the tokenizer of the autoregressive model to generate a protein-ligand text dataset, which helps the autoregressive model capture the potential features and activity relationships of the chemical structure to generate new compounds with potential drug activity.
[0106] Take the construction of a protein-ligand pair text dataset as an example:
[0107] The protein PI3Kα interacts with its ligand BYL719, thus forming a protein-ligand pair: wherein the amino acid sequence of PI3Kα is as follows (also shown in SEQ NO.1):
[0108]
[0109] The SMILES representation of the ligand is as follows:
[0110] CC1=C(SC(=N1)NC(=O)N2CCCC2C(=O)N)C3=CC(=NC=C3)C(C)(C)C(F)(F)F
[0111] The conversion into protein-ligand pair text data is as follows:
[0112] '<|startoftext|>'+'< / l> '+Protein sequence in this pair+' <l>'+SMILES of the ligand in the pair+'<|endoftext|>'
[0113] So the result is:
[0114] <|startoftext|>< / l> <l>CC1=C(SC(=N1)NC(=O)N2CCCC2C(=O)N)C3=CC(=NC=C3)C(C)(C)C(F)(F)F<|endoftext|>
[0115] Then, the tokenizer of the autoregressive model constructed in step 1 is used to segment the protein-ligand pair text data. The results are as follows:
[0116] ['<|startoftext|>','<','P','>','MPP','RPS','S','GELWGIHLMPPRILVECLLPNGMIVTLECLREA','TLITIK H','ELFKEARK','YPLHQLL','QD','ES','S','YIFVSVTQEAEREEFFDETRRLCDLRLFQPFLKVIEPVGNREEKILNREI',
[0117] <h2 style=";text-align:left;direction:ltr">'GFAIGM','PVCEFDMVKDPEVQDFFRRNILNVC','KEAVDLRDLNSPHSRAMYVY','PPN','VES','S','PELPKHIYNKLDKGQIIVVIW' ,'VIVS','PNNDK','QKYTL','KIN','H','DCVPE','QVIA','EAIR','KKTRS','MLLS','S','EQL','KLCVLEYQ','GKYILK' VCGCDEYFLEKY','PLSQYK','YI','RSC','I','ML','GRMPNLMLMAKESL','YSQL','PMDCFT','MPSYSRRISTATPYMN','GETS','TK','SLW','VIN','S','AL','RIKIL','CATYVN','VNIRDIDKIYVRTGIYHGGEPLCDNVNTQRVPCSNPRWNEWLNYDIYIPDLP RAARLCLSICS','VKGRK','GAKEE','HC','PLA','W','GNINLFDYTDTLVSGKMALNLWPVPHGLEDLLNPIGVTGSNPNKETPCLELEFDWFSSVVKFPDMSVIEEHAN','WSVS','REA','GF','S','YSHAGLSNRLARDNELRENDKE','QLKAIS','TR D','PLSEITEQEKDFLWSHRH','YCVTIPE','ILPK','LLLS','VK','WN','S','RDE','VAQMYCL','VKDWPPIK',' PEQA','ME','LLDC','NY','PDPM','VRGFA','VRCLEKYLTDDKLSQYLIQLVQVLKYEQYLDNLLVRFLLKKALTNQRIGHF FFWHLKSEMHNKTVSQRFGLLLESYCRACGMYLKHLNRQVEAMEKLINLT DILKQEKKDETQKVQMKFLVEQMRR',<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr">
[0118] 'PDFMDALQGFLSPLNPAHQLGNLRLEEC','RI','MS','SA','KR','PLWLNWENPDIMSELLFQNNEIIFKNGDDLRQDMLTLQIIRIMENIWQNQGL DLRMLPYGCLSIGDCV','GLIEVV','RN','S','HTIM','QIQC','KGGLKGAL','QF',
[0119] 'NSHTLHQWLKDKNKGEIYDAAIDLFTRSCAGYCVATFILGIGDRHNSNIMV KDDGQLFHIDFGHFLDHKKKKFGYKRERVPFVLTQDFLIVISK','GAQEC','TK','TREFERFQEMCYKAY','LAIRQHA','NLFI','NLF','S' ,'MML','GSGMPELQSFDDIAYIRKTLALDKTEQEALE','YFMK','QMNDAHHGGWTTKMDWIFHTIKQHALN','<','L','>','CC','1','=', 'C','(','SC','(=','N','1',')','NC','(=','O',')','N','2','CCCC','2','C','(=','O',')','N',')','C','3','= ','CC','(=','NC','=','C','3',')','C','(','C',')(','C',')','C','(','F',')(','F',')','F','<|endoftext|>']
[0120] In the above results, each word is enclosed by " and separated by commas.
[0121] The above words can be found by searching the vocabulary of the tokenizer in step 1 to find the corresponding tokenID of a specific word, which is an integer. Each token ID has a one-to-one correspondence with a specific token in the dictionary. The encoding process is completed by converting each word in the given text into a corresponding token ID and arranging these token IDs in the order of the original text. The result is as follows:
[0122] [53082,28,48,30,1828,745,51,16584,16972,16930,16565,353,350,51,16579,15247,16445,16402,1740,633,51,16411,3591,15953,15991,2037,40,16293,15337,4385,15560,5786,51,44137,16545,16417,16 317,403,2555,41,320,16368,14807,16945,16631,6606,372,3301,2260,51,262,15797,16310,16530,15774,16462,616,765,55,16489,16268,665,318,51,16985,16988,1492,16394,16318,7433,1112,302,510, 51,1299,16378,16380,4520,359,29665,493,35003,16943,16949,16451,346,357,451,480,16490,11166,340,51,16236,16313,16603,490,16606,16953,372,16423,16323,2307,5124,51,3671,16437,14846,166 30,28,44,30,49778,17,29,35,8,49851,49779,46,17,9,49783,49779,47,9,46,18,49802,18,35,49779,47,9,46,9,35,19,29,49778,49779,49783,29,35,19,9,35,8,35,49793,35,9,35,8,38,49793,38,9,38,0]
[0123] Finally, after encoding, the integers are used by computers for calculations, and then the autoregressive model can be trained on this basis.
[0124] Step 3: Model training, that is, using the constructed training data set to train the autoregressive model so that it can understand and learn the interaction pattern between protein and ligand.
[0125] When training the autoregressive model, the protein ligand text dataset obtained in step 2 is used in the training process, and the protein ligand text dataset sequence is input into the autoregressive model, and the target output corresponding to each input data element is the next element in the sequence. During the training process, the dataset is randomly shuffled and divided into a training set and a validation set. The training set is used to train the model, and the validation set is used to evaluate the training effect.
[0126] In one embodiment, this step can be further described as follows:
[0127] Step 3.1: Select the autoregressive model GPT2 as the base model and use a deep learning framework such as PyTorch for model training.
[0128] Step 3.2: Select an appropriate optimizer to reduce the value of the loss function, and configure appropriate training parameters and training strategies. Divide the dataset into training and validation sets, and use an appropriate batch size during training.
[0129] Step 4: Post-processing for generated ligands.
[0130] Step 4.1: Generate predicted ligand data using the trained autoregressive model. The output SMILES format data is post-processed by chemical information tools to remove unreasonable ligands, obtain candidate ligands with specific chemical structures, and convert the candidate ligands into SDF format. Commonly used chemical information tools include Open Babel and RDKit, which can judge the generated predicted ligand data to confirm whether it is reasonable.
[0131] When using the trained model for prediction, the prediction process depends on the specific application scenario. When predicting possible ligands for a specific protein, the amino acid sequence or FASTA format of the protein is input, and the output is predicted in the SMILES format of the ligand for the protein sequence; if the protein sequence and part of the ligand are known, when predicting the rest of the ligand, the known part of the ligand (i.e., "prompt") can be input at the same time as the amino acid sequence or FASTA format of the protein, and the output is predicted in the SMILES format of the ligand with a specific beginning.
[0132] Step 4.2: Evaluate and optimize the candidate ligands obtained, and use chemical or bioinformatics tools to perform structural optimization and activity prediction to determine candidate molecules that have the potential to become effective drugs. Specifically, generate 3D conformations for the SDF file and evaluate the rationality of its drug structure based on stereochemistry, synthetic feasibility, etc.
[0133] In one embodiment, the above subword segmentation algorithm is a Byte Pair Encoding (BPE) segmentation algorithm, and its steps are as follows:
[0134] (1) Initialize the vocabulary. Consider all characters in the text as basic units and construct an initial vocabulary.
[0135] (2) Count the frequency of occurrence of character pairs. For a given text data, count the frequency of occurrence of each adjacent character pair.
[0136] (3) Merge high-frequency character pairs. Select the character pairs with the highest frequency and merge them into a new character. At the same time, update the vocabulary and text data and replace the original character pairs with the new characters.
[0137] (4) Repeat steps 2-3 according to the preset number of merges or vocabulary size until the predetermined condition is met.
[0138] In one embodiment, the data set comes from the zinc20 data set and the jglaser / binding_affinity data set.
[0139] The ligand tokenizer uses the BPE algorithm to train the SMILES representation of the ligands in the jglaser / binding_affinity library. The tokenizer contains the vocab.json storage vocabulary of the ligand and merges.txt storage merge operations. The size of the vocabulary is 3560.
[0140] In one embodiment, the vocabulary size of the protein is set to 50,000, and the BPE algorithm is used to train the protein sequences in the jglaser / binding_affinity library to obtain a protein tokenizer, which contains the protein vocab.json storage vocabulary and merges.txt storage merge operations.
[0141] In one embodiment, the tokenizer for constructing an autoregressive model first performs a union operation on the ligand and protein vocabularies. The ligand and protein information is represented by SMILES. Since there are characters in the SMILES representation that overlap with the amino acid representation, it is necessary to process duplicate words when integrating the vocabulary. The vocab.json and merges.txt files of the ligand and protein tokenizers are checked separately, and the same words and the same words with different merge operations are deleted. After processing the duplicate words, the initial 256 characters in the BPE algorithm are supplemented as vocabulary to make up for the vacancies caused by deleting duplicate words. The word list size of the tokenizer after processing is 53080 (excluding special characters).
[0142] In one embodiment, when constructing the ligand text data set, SMILES sequences are extracted from the zinc20 data set, and each SMILES sequence is converted into ligand text data in the format of '<|startoftext|>'+' <l>'+SMILES sequence+'<|endoftext|>'. These text data are encoded by the tokenizer of the autoregressive model to form a ligand text dataset. During training, 0.0001 of the zinc20 dataset is randomly selected as the training set in each epoch, and the last 0.00001 of the zinc20 dataset is used as the validation set.
[0143] In one embodiment, when constructing a protein-ligand pair text data set, protein-ligand pairs are extracted from the jglaser / binding_affinity data set, and the SMILES representation of the protein and ligand of each protein-ligand pair is converted into protein-ligand pair text data in the format of '<|startoftext|>'+'< / l> < / l> '+Protein sequence in this pair+' <l>'+SMILES of the ligand in the pair+'<|endoftext|>', and then encode it using the tokenizer of the autoregressive model. All data are used for training and validation of protein-ligand pair text data, and the training set and validation set are divided into 9:1 ratio.
[0144] In one embodiment, the autoregressive language model uses the GPT-2 model (GPT2LMHeadModel) based on the Hugging Face library as the core of the method to design drugs for specific proteins. The protein sequence is used as input, and the GPT2LMHeadModel model is used to generate the corresponding drug molecule sequence (such as SMILES representation). By training and optimizing the GPT2LMHeadModel model, candidate molecules with potential drug activity are generated, thereby improving the efficiency and success rate of drug design.
[0145] In one embodiment, the model training uses the transformers and datasets library developed by the HuggingFace team, selects GPT2LMHeadModel in the transformers library as the basic model, and uses PyTorch for training. The AdamW optimizer, learning rate of 5e-4, warm-up steps of 100, epsilon value of 1e-8 and other parameters are used. The dataset is divided into a training set and a validation set in a ratio of 9:1, and a batch size of 8 is used for training, and the learning rate is adjusted using the linear warm-up strategy (get_linear_schedule_with_warmup).
[0146] In one embodiment, when training the model, a loss function needs to be defined where y is a real sequence, is the sequence generated by the model, which can be expressed as the negative log-likelihood of the conditional probability. During the training process, the model parameters θ are optimized by gradient descent to minimize the loss function.
[0147] In one embodiment, the model output is in SMILES format and screened by Open Babel to remove unreasonable drug generation, and then converted to SDF format by Open Babel. Directly naming the generated drug file in SMILES format may result in a file name that is too long, which may be subject to file naming length restrictions in the file system. Therefore, the converted SDF format file is named using the SMILES hash value, such as the SHA1 hash algorithm, and a mapping table is created in the output directory to store the corresponding relationship between SMILES and the hash value, so as to ensure that the file naming is not affected by the length restriction.
[0148] In one embodiment, the autoregressive model can be deployed locally, giving full play to the advantages of local computing devices to obtain higher computing efficiency and more flexible scheduling strategies. It supports running under Windows and Linux operating systems. Users only need to follow the prompts obtained by the README document or running python drug_generator.py -h.
[0149] In one embodiment, the autoregressive model can be deployed on the Web. For example, by deploying it on Google Colab, users who are not familiar with the installation process can use DrugGPT more easily, and cloud GPU resources can be fully utilized to significantly improve operating efficiency.
[0150] In summary, in view of the low success rate, high R&D cost and long R&D cycle of current drug design methods, the embodiment of the present invention first constructs a GPT model and uses a large number of known protein-ligand interaction pairs to train the GPT model; then uses the model to generate potential small molecule compounds, and screens and optimizes them through methods such as molecular docking, QSAR and pharmacophore analysis. That is, advanced natural language processing technology is used to explore the chemical space related to drug design to discover new molecules with potential binding ability to specific proteins, providing a fast and efficient new method for the generation of drug candidate molecules.
[0151] The technical features of the above embodiments may be combined arbitrarily. To make the description concise, 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.< / l> < / l>
Claims
1. A drug design method based on an autoregressive model, characterized in that: The steps include: Obtain a ligand data set and a protein-ligand data set, use a subword segmentation algorithm to train the protein and ligand information in the data set, use the protein information to train to obtain a protein segmenter, and use the ligand information to train to obtain a ligand segmenter; and use the protein segmenter and the ligand segmenter to construct an autoregressive model segmenter; Process and transform the original data in the data set into a text form suitable for the autoregressive model, and then encode it through the word segmenter of the autoregressive model to construct the training data set required for the autoregressive model; The autoregressive model is trained using the constructed training data set so that it can understand and learn the interaction pattern between protein and ligand; The trained autoregressive model is used to generate predicted ligand data, which are then post-processed by chemical information tools to obtain candidate ligands with chemical structures. The obtained candidate ligands are evaluated and optimized, and chemical or bioinformatics tools are used for structural optimization and activity prediction to identify candidate molecules with the potential to become effective drugs.
2. The drug design method based on the autoregressive model according to claim 1, characterized in that: The ligand data set is provided by the data set ZINC, PubChem, ChEMBL or DrugBank, and the ligand information is extracted for learning the representation of ligand molecules, and the data format is SMILES format; The protein-ligand dataset is provided by the datasets BindingDB, PDBbind, BioLIP or BindingMOAD. Protein information is extracted for learning the representation of protein amino acid sequences, and protein-ligand pair information is extracted for learning the correspondence between proteins and ligands. The data is in FASTA format and SMILES format.
3. The drug design method based on the autoregressive model according to claim 1 or 2, characterized in that: The objects used by the subword segmentation algorithm include: a textual representation of a ligand, a textual representation of a protein, and a textual representation composed of a protein and a ligand; The subword segmentation algorithm breaks rare words into meaningful subwords without splitting common words into smaller subwords.
4. The drug design method based on the autoregressive model according to claim 1 or 2, characterized in that: The subword segmentation algorithm BPE algorithm is used to train the SMILES representation of the ligand in the jglaser / binding_ library to obtain the ligand segmenter; the segmenter contains the vocab.json storage vocabulary of the ligand and the merges.txt storage merge operation, and the size of the vocabulary is 3560; The word list size of proteins is set to 50,000, and the subword segmentation algorithm BPE algorithm is used to train the protein sequences in the jglaser / binding_affinity library to obtain the protein word segmenter; the word segmenter contains the protein vocab.json storage word list and merges.txt storage merge operations; When constructing the tokenizer of the autoregressive model, the ligand and protein vocabulary lists are firstly unioned to delete the same words and the same words with different merging operations. After processing the repeated words, the initial 256 characters in the BPE algorithm are added as the vocabulary to make up for the vacancies caused by deleting the repeated words. After processing, the vocabulary size of the tokenizer of the autoregressive model is 53080.
5. The drug design method based on the autoregressive model according to claim 4, characterized in that: The training data set includes a ligand text data set and a protein ligand text data set, which is obtained by transforming the ligand data set and the protein ligand data set, and the steps are as follows: Extract ligand information from the ligand dataset and convert it into ligand text data. Generate a ligand text dataset through the tokenizer of the autoregressive model so that the model can understand the representation of the ligand. Protein-ligand pairs are extracted from the protein-ligand dataset and converted into protein-ligand text data. The protein-ligand text dataset is generated through the word segmenter of the autoregressive model, so that the model can capture the potential characteristics and activity relationships of the chemical structure to generate new compounds with potential drug activity.
6. The drug design method based on the autoregressive model according to claim 5, characterized in that: When constructing the ligand text dataset, extract the SMILES sequence from the zinc20 dataset and convert each SMILES sequence into ligand text data in the format of '<|startoftext|>'+' <l> '+SMILES sequence+'<|endoftext|>'; Encode the ligand text data through the tokenizer of the autoregressive model to form a ligand text dataset;< / l> When constructing the protein-ligand pair text dataset, extract the protein-ligand pairs from the jglaser / binding_affinity dataset and convert the SMILES representation of the protein and ligand of each protein-ligand pair into protein-ligand pair text data in the format of '<|startoftext|>'+' '+Protein sequence in this pair+' <l>'+SMILES of the ligand in the pair+'<|endoftext|>'; The tokenizer of the autoregressive model is used to encode the protein-ligand pair text data. < / l> 7. The drug design method based on the autoregressive model according to claim 6, characterized in that: The training of the autoregressive model comprises: The autoregressive model GPT2 was selected as the basic model, and the deep learning framework PyTorch was used for model training. The protein ligand text dataset sequence was input into the autoregressive model, and the target output corresponding to each input data element was the next element in the sequence.
8. The drug design method based on the autoregressive model according to claim 7, characterized in that: The method of generating predicted ligand data using the trained autoregressive model comprises: When predicting possible ligands for a specific protein, the amino acid sequence or FASTA format of the protein is input, and the SMILES format of the ligand predicted for the protein sequence is output; If the protein sequence and part of the ligand are known, when predicting the rest of the ligand, based on the input protein amino acid sequence or FASTA format, the known part of the ligand is also input, and the predicted ligand with a specific beginning is output in SMILES format.
9. The drug design method based on the autoregressive model according to claim 7, characterized in that: The autoregressive model is deployed locally or on the web, using the GPT-2 autoregressive model based on the Hugging Face library as the core; The protein sequence is used as input and the GPT-2 autoregressive model is used to generate the corresponding drug molecule sequence. The GPT-2 autoregressive model outputs the SMILES format and is screened by OpenBabel to eliminate unreasonable drug generation, and then converted to SDF format by OpenBabel.
10. The drug design method based on the autoregressive model according to claim 1, characterized in that: The chemical or biological information tools include OpenBabel and RDKit.
Citation Information
Patent Citations
Universal method for drug design aiming at different target proteins
CN114464270A
Small molecule generation method and device based on pharmacophore model and medium
CN114913938A
Drug relocation method and system based on word vector representation and attention mechanism
CN114999566A
Drug target prediction method and system based on Weisfeier-Lehman and deep neural network
CN115101146A
Prediction processing method for binding postures of drug molecules and protein targets
CN115527607A
