A method for predicting water solubility of chemical molecules based on deep learning
By introducing two-way time series and attention mechanisms into the deep learning model, combined with SMILES molecular representation and data enhancement technology, the problem of data set size and noise in molecular water solubility prediction in the existing technology is solved, and stronger model stability is achieved. and generalization capabilities, improving the efficiency and accuracy of drug development.
Patent Information
- Application Number
- CN202111228584.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-10-21
- Publication Date
- 2024-10-29
- Estimated Expiration
- 2041-10-21
AI Technical Summary
Existing deep learning models have challenges such as inconsistent data set sizes, noise, and complex spatial structures in predicting molecular water solubility, resulting in large performance differences and difficulty in building stable and robust models to save drug development time and costs.
Using a deep learning model based on a two-way time series prediction model and an attention mechanism, an end-to-end deep learning model (BCSA) is built through SMILES molecular representation and enhancement technology to learn the relationship between chemical molecular structure and water-soluble properties, using loss Function minimization is used to train the model, and data augmentation is performed to improve generalization ability.
It achieves stronger fitting effect and generalization ability in predicting the water solubility of molecules, can effectively predict water solubility and other physical and chemical and ADMET properties, and reduces the economic cost and time of drug development.
Smart Images

Figure CN114093435B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of molecular water solubility analysis, and more specifically, to a method for predicting water solubility related to chemical molecules based on deep learning. Background Art
[0002] In recent years, deep learning has been successfully applied to object detection and image segmentation, and it provides useful tools for processing large amounts of data and making useful predictions in the scientific field. However, applying deep learning-related frameworks to the prediction of molecular properties remains a challenging research problem. Due to the emergence of new experimental techniques and the significant increase in available compound activity and biomedical data, the application of deep learning in drug discovery has also been further promoted, such as the prediction of molecular interactions in the drug design process of pharmaceutical companies, the exploration of drug-target interaction predictions, the exploration of chemical synthesis and retrosynthetic pathways, and the prediction of chemical properties.
[0003] It is foreseeable that deep learning will be more involved in the field of drug discovery in the future. In the history of drug discovery, water solubility prediction, an important physicochemical molecular property, has been intensively studied for many years. Various representations of chemical information and deep learning architecture models have also been applied to the solubility prediction problem. Depending on the choice of representation method, different models are used. The most commonly used combinations include molecular fingerprints and fully connected neural networks, SMILES representation and recurrent neural networks, molecular graphs and graph neural networks, etc. In the existing water solubility prediction model architecture, the size of the training data set ranges from 100 to 10,000. Due to the different data sets used, the reported performance varies greatly, and there are many challenges, such as data set noise, complex spatial structure of molecules, etc.
[0004] In summary, building a stable and robust deep learning model to achieve better results in predicting the water solubility of molecules in order to save time and economic costs in drug development is still a very worthy research issue. Summary of the invention
[0005] The purpose of the present invention is to overcome the defects of the above-mentioned prior art and provide a method for predicting the water solubility of chemical molecules based on deep learning.
[0006] According to a first aspect of the present invention, a method for predicting water solubility of chemical molecules based on deep learning is provided. The method comprises the following steps:
[0007] Constructing a deep learning model, wherein the deep learning model is based on a bidirectional time series prediction model and an attention mechanism, and is used to learn the correspondence between chemical molecular structure sequences and water solubility properties;
[0008] The deep learning model is trained with the goal of minimizing a set loss function. The training process takes a character sequence encoding representing the structure of a chemical molecule as input and takes water-soluble property information related to the chemical molecule as output.
[0009] According to a second aspect of the present invention, a method for predicting water solubility of chemical molecules is provided. The method comprises the following steps:
[0010] Obtaining a character sequence code representing the structure of the chemical molecule to be tested;
[0011] The character sequence code is input into the trained deep learning model obtained according to the first aspect of the present invention to obtain the water-soluble property information related to the chemical molecule.
[0012] Compared with the prior art, the present invention has the advantages of providing a data-driven end-to-end deep learning model (BCSA) and applying it to the prediction process of molecular water solubility. The model provided by the present invention is simple and does not rely on additional auxiliary knowledge, and can also be used to predict other physicochemical and ADMET properties.
[0013] Further features and advantages of the present invention will become apparent from the following detailed description of exemplary embodiments of the present invention with reference to the attached drawings. BRIEF DESCRIPTION OF THE DRAWINGS
[0014] The accompanying drawings, which are incorporated in and constitute a part of the specification, illustrate embodiments of the invention and, together with the description, serve to explain the principles of the invention.
[0015] Figure 1 is a schematic diagram of the architecture of an end-to-end deep learning model according to an embodiment of the present invention;
[0016] Figure 2 is a schematic diagram of the change of R2 during the training of the validation set and the test set according to one embodiment of the present invention;
[0017] Figure 3 is a scatter plot of prediction effects of four different models according to an embodiment of the present invention;
[0018] Figure 4 is a scatter plot of prediction results on a test set according to an embodiment of the present invention. DETAILED DESCRIPTION
[0019] Various exemplary embodiments of the present invention will now be described in detail with reference to the accompanying drawings. It should be noted that the relative arrangement of components and steps, numerical expressions and numerical values set forth in these embodiments do not limit the scope of the present invention unless otherwise specifically stated.
[0020] The following description of at least one exemplary embodiment is merely illustrative in nature and is in no way intended to limit the invention, its application, or uses.
[0021] Technologies, methods, and equipment known to ordinary technicians in the relevant art may not be discussed in detail, but where appropriate, the technologies, methods, and equipment should be considered as part of the specification.
[0022] In all examples shown and discussed herein, any specific values should be interpreted as merely exemplary and not as limiting. Therefore, other examples of the exemplary embodiments may have different values.
[0023] It should be noted that like reference numerals and letters refer to similar items in the following figures, and therefore, once an item is defined in one figure, it need not be further discussed in subsequent figures.
[0024] In short, the chemical molecule-related water solubility prediction method based on deep learning provided by the present invention generally includes the pre-training process and the actual prediction process of the deep learning model. The pre-training process includes the following steps: constructing a deep learning model, the deep learning model is constructed based on a bidirectional time series prediction model and an attention mechanism, and is used to learn the corresponding relationship between the chemical molecule structure sequence and the water solubility property; the deep learning model is trained with the goal of minimizing the set loss function, and the training process uses the character sequence encoding representing the chemical molecule structure as input, and uses the water solubility property information related to the chemical molecule as output. Among them, the bidirectional time series prediction model can adopt a bidirectional long short-term memory network (BILSTM) or a bidirectional gated recurrent unit (BIGRU), etc. The character sequence representing the chemical molecule structure can adopt a character sequence in SMILES format or other formats, and SMILES is a specification that clearly describes the molecular structure with an ASCII string. For clarity, the BILSTM model and SMILES are used as examples for explanation below.
[0025] In the present invention, a BCSA model architecture is constructed based on BILSTM, channelattention and spatial attention using SMILES {Weininger, 1988#86} molecular representation, and in view of the non-uniqueness of SMILES molecular representation, the data is amplified using SMIELS enhancement technology to obtain more effective labeled data sets as the input of the model, and the average value of each amplified molecule is used as the final prediction result to make the model have a more powerful generalization ability. Then, different commonly used graph neural network models are used for the same data set to conduct a comparative study with the present invention to explore the performance advantages of the model provided by the present invention under different molecular representations.
[0026] In the following, the data preprocessing process, model architecture, and evaluation results will be described in detail.
[0027] 1. Representation and preprocessing of molecular datasets
[0028] In one embodiment, the data set used is derived from the work of Cui {Cui, 2020#69} et al. 2020, containing 9943 non-redundant compounds. The molecules are presented in the format of SMILES (Simplified Molecular-Input Line-Entry System). This symbolic format is characterized by a single line of text and a series of atoms and covalent bonds. From the perspective of formal language theory, both atoms and covalent bonds are regarded as symbolic tags, and the SMILES string is just a sequence of symbols. This representation has been used to predict biochemical properties. In order to encode SMILES, the present invention uses regular expressions in {Schwaller, 2018#64} to mark them, and the tags are separated by spaces. The processing result is, for example: "c1 c(C)c ccc 1". Next, a method similar to word2vec is used for embedding input. In addition, the data set is extended by SMILES enumeration enhancement, and the SMILES string is padded to a fixed length of 150 characters with "padding". Excess text exceeding this length is directly discarded. Finally, the dataset is randomly split into training set (80%), validation set (10%) and test set (10%).
[0029] 2. Deep Learning Model Architecture
[0030] See also Figure 1 As shown in the figure, the main body of the deep learning model includes BILSTM, channel attention module and spatial attention module, which are used to learn the correspondence between chemical molecular structure sequence and water solubility property.
[0031] BILSTM is mainly used to obtain the sequence information of SMILES. This paper uses the good processing ability of the RNN (recurrent neural network) model for long-range relations in sequences in natural language processing, and obtains the context information of the SMILES sequence based on the special variant of the LSTM model BILSTM in batch mode. BILSTM is composed of a LSTM that processes the sequence forward and a LSTM that processes the sequence backward, which allows it to process not only features from the past, but also features from the future. BILSTM uses SMILES sequence encoding as input Each time step t outputs the forward hidden layer state and the backward hidden state The output of the hidden layer of BILSTM at time t is the connection of two states, which can be expressed as:
[0032]
[0033] Furthermore, the processing of BILSTM can be summarized as follows:
[0034] C=f(W e x i ,h t-1 ) (2)
[0035] Where f represents a multi-layer BILSTM, W e is the learning weight of the embedding vector, which can be simplified as:
[0036] C={h1,h2,…,h T} (3)
[0037] With respect to the attention mechanism, the embodiment of the present invention optimizes and embeds the CBAM (Convlution Block Attention Module) mechanism into the current forward propagation sequence neural network model, including two submodules, one marked as Channel Attention map (M c ), and the other is labeled Spatial attention map (M s ), which are used to obtain key information on different channels and spatial axes respectively. The entire attention output process can be expressed as:
[0038]
[0039] in represents the dot product of the elements. σ represents the sigmoid activation function, C ‘ is the final output.
[0040] Specifically, the channel attention module focuses on the content of the SMILES characters. For example, the spatial information of the BILSTM output matrix is first aggregated through average-pooling and max-pooling operations to obtain two different spatial context descriptors C avg and C max , respectively represent the average pooling output information and the maximum pooling output information; the two descriptors are input into a 2-layer shared MLP network, and finally the output vector of Channel Attention is obtained by summing. The whole process is formalized as:
[0041] M c (C)=MLP(AvgPool1d(C))+MLP(MaxPool1d(C))
[0042] =W1(σ(W0(C avg ))+W1(σ(W0(C max ))) (5)
[0043] In order to reduce the overhead of the network, σ uses the relu activation function, and W0 and W1 are the learning weights of the first and second layers of the shared MLP (multi-layer perceptron) model, respectively.
[0044] The spatial attention module mainly focuses on the SMILES character sequence information. In one embodiment, a two-layer one-dimensional convolutional network with a kernel of 7 is used to implement it. The specific implementation is formalized as follows:
[0045] M s (C) = Conv1d 7,1 (σ(Conv1d 7,16 (C)))(6)
[0046] Among them, σ represents the relu activation function, Conv1d 7,x represents a 1D convolutional layer with a kernel size of 7 and filters of x. The entire attention network module is finally represented as:
[0047]
[0048] in represents the dot product, and O represents the hidden state mapping vector after the attention weighting is aggregated through the Avg-pooling operation.
[0049] In the present invention, the last part of the regression task is to feed the trained vector O to a two-layer fully connected layer to predict the final attribute value. For example, the relu commonly used in deep learning research can be used as the intermediate activation function, and dropout can be used to alleviate the occurrence of overfitting. During the training process, MSE (mean square error) is used as the loss function of the model training, which is expressed as:
[0050]
[0051] Where N represents the size of the training data. Represents the predicted value, y i represents the true value of the experiment.
[0052] 3. Choice of Hyperparameters
[0053] In the model provided by the present invention, there are many parameters that affect the training and architecture. Under different parameter settings, the performance of the model will be different. In one embodiment, Bayesian optimization {Bergstra, 2011#92} is used to explore the best choice of hyperparameters. As the minimization objective acquisition function, Represents the predicted value, y i represents the true value, represents the mean of the true experimental value. During optimization, the TPE (Tree-structured ParzenEstimator) algorithm is used to build a probability model based on past results. A total of 100 models were generated for training on the training set, each model was trained for 60 epochs, and an early stopping strategy (patience = 20) was added to speed up the training. Finally, the best hyperparameters for training were found using the best prediction effect of the verification machine as shown in Table 1. Finally, the model will be further trained to 30 points on the enumeration training set in the hope of improving the final accuracy.
[0054] Table 1: Hyperparameter selection space and optimal hyperparameters
[0055]
[0056]
[0057] The model framework is implemented using pytorch and all calculations and model training are done on a Linux server (opensuse): Intel(R) Xeon(R) Platinum 8173M CPU@2.00GHz and NvidiaGeForce RTX2080Ti graphics card with 11G.
[0058] IV. Evaluation Criteria
[0059] In one embodiment, four performance indicators commonly used in regression tasks are used to evaluate the provided model, including: (coefficient of determination) R-Squared (R 2 ), spearman, RMSE, MAE. 2 , the spearman coefficient metric can help observe whether the entire model fits the data well. The closer the calculation result is to 1, the better the model fits, and vice versa. The RMSE and MAE error metrics can help measure the difference between the predicted value and the true value. The closer the calculation result is to 0, the better the prediction effect, and vice versa.
[0060] 5. Verification results for water solubility
[0061] The purpose of the present invention is to develop a deep learning model using molecular SMILES sequence self-encoding to explore the role of deep neural networks based on SMILES molecular sequence descriptors in predicting molecular solubility. For example, the original data set includes 7955 training sets, 996 validation sets and 995 test sets. The BILSTM model was built using the best hyperparameters trained in Table 1, and the BCSA model was built on this basis. Figure 2 The figure shows the changing trend of the model fitting effect R2 of the validation set and the test set during the training of 400 epochs when the smoothness of the curve is 0.8. It can be clearly seen from the figure that the model of the present invention has a stronger fitting effect and generalization ability than the BILSTM model in both the validation sets and the test sets.
[0062] In deep learning, the more samples there are, the better the effect of training is, and the stronger the model generalization ability is. Since the model of the present invention is based on SMILES molecular sequence coding, and different molecules have a variety of different SMILES characters, that is, there are a variety of sequence codings, so data enhancement is feasible and necessary. Preferably, the SMILES enhancement technology is further used to amplify the original segmentation data set, and the BCSA model with 20 times (each molecule is represented by 20 SMILES) and 40 times (each molecule is represented by 40 SMILES) of molecular enhancement is trained respectively, wherein the molecules with simple structure may have repeated SMILES. To prevent affecting the training results, after removing duplicate data, the training set, validation set and test set finally obtained are respectively (134454:19881:16834) and (239260:30042:39800) amplification data. In the experiment, the model with the best performance effect of validation set R2 in the training process is used, and the mean of the amplified molecules in the test set is used as the final prediction result to measure the extraction ability of the model to the information of the molecular sequence, and the results are shown in Table 2. The verification results show that the stability and generalization ability of the enhanced data model have been significantly improved. Our model achieved the best results in the SMILES40 dataset, which shows that the enhanced model pays better attention to the different sequence information of the molecule. This model will further improve the accuracy of the model through molecular amplification. The accuracy of (R2=0.83-0.88, RMSE=0.79-0.95) was achieved in the test set. Compared with the deeper-net model (R2=0.72-0.79, RMSE=0.988-1.151) originally developed by cui based on this dataset and constructed using molecular fingerprints, the present invention shows better prediction performance.
[0063] Table 2: Statistics of prediction results of training set and test set
[0064]
[0065] In order to better demonstrate the competitiveness of the model of the present invention, a series of GCN{Kipf, 2016#3}, MPNN{Gilmer, 2017#50}, AttentiveFP{Pérez Santín, 2021#53} baseline models based on graph neural networks were further built to explore the influence of molecular enhanced sequence descriptors and molecular graph descriptors in predicting solubility. The construction of these models was implemented using the life science python package DGL-LifeSci released by the DGL team. Figure 3 The scatter plots of the predicted values and actual solubility values of different models for the unified test set are shown. As can be seen from the figure, the molecular enhanced SEBSCA model of the present invention achieves the best prediction of molecular solubility performance and has good predictions for data in different ranges. It can be seen that the model of the present invention has certain competitive advantages.
[0066] 6. Predictions for other related attributes
[0067] In the experiment, the BCSA (SMILES40) model was also used to predict the oil-water partition coefficient logP and logD (pH = 7.4). The logP dataset is still based on the dataset of Cui {Cui, 2020#69} et al. Figure 4 As can be seen from the left figure, good results were achieved on the test dataset, with an R2 of 0.99 and an RMSE of 0.29. From the scatter plot, it can be seen that a good fit can be achieved for the data in each range. In addition, the logD (pH = 7.4) training dataset comes from Wang et al. The dataset was randomly divided into 8:1:1. The training data was obtained by using SMILES Enumeration 40x. Finally, a 40x dataset was obtained with a ratio of 31290:3858:4031 (training: validation: test). The average prediction for each molecule was selected as the final prediction result. Figure 4 As can be seen from the right figure, the R2 of the test set is 0.93 and the RMSE is 0.36. Compared with the reported Wang SVM model, the R2 of the test set is 0.89, RMSE = 0.56 and the R2 of the training set is 0.92, RMSE = 0.51. The prediction of the test set of the model provided by the present invention also exceeds the performance of the training set of Wang {Wang, 2015#97}. It can be seen that the present invention also shows better performance in the prediction of oil-water correlation, and can provide reliable and robust predictions.
[0068] In summary, accurate prediction of water solubility is a challenging task in drug discovery. The present invention proposes an end-to-end deep learning model framework based on molecular enhancement and LSTM fusion attention mechanism. The model takes advantage of the sequence processing in the long short-term memory network and adds improved channel attention and spatialattention modules to extract the key information about water solubility prediction in the SMILES sequence. By using Bayesian optimization, the provided model is simple and does not rely on additional auxiliary knowledge (such as the complex spatial structure of molecules) and can be used for the prediction of other physicochemical and ADMET properties (absorption, distribution, metabolism, excretion and toxicity properties).
[0069] The present invention may be a system, a method and / or a computer program product. The computer program product may include a computer-readable storage medium carrying computer-readable program instructions for causing a processor to implement various aspects of the present invention.
[0070] Computer readable storage medium can be a tangible device that can hold and store instructions used by an instruction execution device. Computer readable storage medium can be, for example, but not limited to, an electrical storage device, a magnetic storage device, an optical storage device, an electromagnetic storage device, a semiconductor storage device, or any suitable combination thereof. More specific examples (non-exhaustive list) of computer readable storage medium include: a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), a static random access memory (SRAM), a portable compact disk read-only memory (CD-ROM), a digital versatile disk (DVD), a memory stick, a floppy disk, a mechanical encoding device, for example, a punch card or a convex structure in a groove on which instructions are stored, and any suitable combination thereof. The computer readable storage medium used here is not interpreted as a transient signal itself, such as a radio wave or other freely propagating electromagnetic wave, an electromagnetic wave propagated by a waveguide or other transmission medium (for example, a light pulse by an optical fiber cable), or an electrical signal transmitted by a wire.
[0071] The computer-readable program instructions described herein can be downloaded from a computer-readable storage medium to each computing / processing device, or downloaded to an external computer or external storage device via a network, such as the Internet, a local area network, a wide area network, and / or a wireless network. The network can include copper transmission cables, optical fiber transmissions, wireless transmissions, routers, firewalls, switches, gateway computers, and / or edge servers. The network adapter card or network interface in each computing / processing device receives the computer-readable program instructions from the network and forwards the computer-readable program instructions for storage in the computer-readable storage medium in each computing / processing device.
[0072] The computer program instructions for performing the operation of the present invention may be assembly instructions, instruction set architecture (ISA) instructions, machine instructions, machine-dependent instructions, microcode, firmware instructions, state setting data, or source code or object code written in any combination of one or more programming languages, including object-oriented programming languages, such as Smalltalk, C++, Python, etc., and conventional procedural programming languages, such as "C" language or similar programming languages. Computer-readable program instructions may be executed entirely on a user's computer, partially on a user's computer, as an independent software package, partially on a user's computer, partially on a remote computer, or entirely on a remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer via any type of network, including a local area network (LAN) or a wide area network (WAN), or may be connected to an external computer (e.g., using an Internet service provider to connect via the Internet). In some embodiments, an electronic circuit, such as a programmable logic circuit, a field programmable gate array (FPGA), or a programmable logic array (PLA), may be personalized by utilizing the state information of the computer-readable program instructions, and the electronic circuit may execute the computer-readable program instructions, thereby realizing various aspects of the present invention.
[0073] Various aspects of the present invention are described herein with reference to the flow charts and / or block diagrams of the methods, devices (systems) and computer program products according to embodiments of the present invention. It should be understood that each box of the flow chart and / or block diagram and the combination of each box in the flow chart and / or block diagram can be implemented by computer-readable program instructions.
[0074] These computer-readable program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, or other programmable data processing device, thereby producing a machine, so that when these instructions are executed by the processor of the computer or other programmable data processing device, a device that implements the functions / actions specified in one or more boxes in the flowchart and / or block diagram is generated. These computer-readable program instructions can also be stored in a computer-readable storage medium, and these instructions cause the computer, programmable data processing device, and / or other equipment to work in a specific manner, so that the computer-readable medium storing the instructions includes a manufactured product, which includes instructions for implementing various aspects of the functions / actions specified in one or more boxes in the flowchart and / or block diagram.
[0075] Computer-readable program instructions may also be loaded onto a computer, other programmable data processing apparatus, or other device so that a series of operating steps are performed on the computer, other programmable data processing apparatus, or other device to produce a computer-implemented process, thereby causing the instructions executed on the computer, other programmable data processing apparatus, or other device to implement the functions / actions specified in one or more boxes in the flowchart and / or block diagram.
[0076] The flow charts and block diagrams in the accompanying drawings show the possible architecture, functions and operations of the systems, methods and computer program products according to multiple embodiments of the present invention. In this regard, each box in the flow chart or block diagram can represent a part of a module, a program segment or an instruction, and a part of the module, a program segment or an instruction contains one or more executable instructions for realizing the specified logical function. In some alternative implementations, the functions marked in the box can also occur in a different order from the order marked in the accompanying drawings. For example, two consecutive boxes can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each box in the block diagram and / or flow chart, and the combination of the boxes in the block diagram and / or flow chart can be implemented by a dedicated hardware-based system that performs the specified function or action, or can be implemented by a combination of dedicated hardware and computer instructions. It is well known to those skilled in the art that it is equivalent to implement it by hardware, implement it by software, and implement it by combining software and hardware.
[0077] Embodiments of the present invention have been described above, and the above description is exemplary, not exhaustive, and is not limited to the disclosed embodiments. Many modifications and variations will be apparent to those of ordinary skill in the art without departing from the scope and spirit of the described embodiments. The selection of terms used herein is intended to best explain the principles of the embodiments, practical applications, or technical improvements in the marketplace, or to enable other persons of ordinary skill in the art to understand the embodiments disclosed herein. The scope of the present invention is defined by the appended claims.
Claims
1. A method for predicting water solubility of chemical molecules based on deep learning, comprising the following steps: Constructing a deep learning model, wherein the deep learning model is based on a bidirectional time series prediction model and an attention mechanism, and is used to learn the correspondence between chemical molecular structure sequences and water solubility properties; The deep learning model is trained with the goal of minimizing a set loss function, wherein the training process uses a character sequence encoding representing a chemical molecule structure as input and uses water-soluble property information related to the chemical molecule as output; The deep learning model is a bidirectional long short-term memory network, and a channel attention module and a spatial attention module are embedded in the forward propagation, which are used to obtain information on different channels and spatial axes respectively; Among them, the character sequence encoding representing the chemical molecular structure is the SMILES sequence encoding. For the bidirectional long short-term memory network, the SMILES sequence encoding is used as input, marked as Each time step t outputs the forward hidden layer state and the backward hidden state The output of the hidden layer of the bidirectional long short-term memory network at time t is the connection of two states, expressed as The processing process of the bidirectional long short-term memory network is expressed as: C=f(W e x i ,h t-1 ) Where f represents a multi-layer bidirectional long short-term memory network, W e are the learned weights of the embedding vectors; The channel attention module is used to characterize the SMILES character content and performs the following steps: The spatial information of the bidirectional long short-term memory network output matrix is aggregated by average pooling operation and maximum pooling operation to obtain two different spatial context descriptors C avg and C max ; The two descriptors C avg and C max Input the multi-layer shared perceptron respectively, and use the summation method to obtain the output vector of channel attention; Among them C avg and C max Represent the average pooling output information and the maximum pooling output information respectively.
2. The method according to claim 1, characterized in that The shared multilayer perceptron is a 2-layer shared perceptron, and the execution process of the channel attention module is expressed as: M c (C)=MLP(AvgPool1d(C))+MLP(MaxPool1d(C)) =W1(σ(W0(C avg ))+W1(σ(W0(C max ))) Where σ represents the relu activation function, W0 and W1 are the learning weights of the first and second layers of the shared multilayer perceptron, respectively.
3. The method according to claim 2, characterized in that The spatial attention module is used to represent the SMILES character sequence information part, which is implemented using a two-layer one-dimensional convolutional network with a kernel of 7, expressed as: M s (C)=Conv1d 7,1 (σ(Conv1d 7,16 (C))) Among them, σ represents the relu activation function, Conv1d 7,x represents a 1D convolutional layer with a kernel size of 7 and a filter of x. The entire attention mechanism is expressed as: in Represents dot product.
4. The method according to claim 3, characterized in that The obtained vector O is sent to a two-layer fully connected layer to predict the corresponding chemical molecule-related water-soluble property value.
5. The method according to claim 1, characterized in that The loss function is set to: Where N represents the size of the training data. Represents the predicted value, y i Represents the true value of the tag.
6. A method for predicting water solubility of chemical molecules, comprising the following steps: Obtaining a character sequence code representing the structure of the chemical molecule to be tested; The character sequence code is input into a trained deep learning model obtained according to the method according to any one of claims 1 to 5 to obtain water-soluble property information related to the chemical molecule.
7. A computer-readable storage medium having a computer program stored thereon, wherein: When the program is executed by a processor, the steps of the method according to any one of claims 1 to 6 are implemented.
Citation Information
Patent Citations
Method for predicting the water solubility grade of a small molecular compound by using a deep learning technology
CN109741797A
Molecular property prediction method and system
CN111710375A
Driver driving behavior detection and identification method based on deep learning
CN113128360A
Molecular property prediction method based on molecular spatial position coding attention neural network model
CN113241128A
Image shadow detection method based on deep unsupervised learning
CN113436115A
Cited By
Solubility prediction method for coupling directional message passing neural network and hybrid expert model
CN120412799A
