Drug structure representation method and system with relation attention and global structure perception

By introducing graph relationship attention network and molecular structure perception graph Transformer network into drug structure representation, the problem of excessive smoothing and overcompression of drug structure representation in graph neural network is solved, and the local and global structural expression capabilities of drug molecules are improved. Enhanced accuracy and richness of feature extraction.

CN118888045AActive Publication Date: 2024-11-01DALIAN UNIV
View PDF 3 Cites 0 Cited by

Patent Information

Application Number
CN202411006540.0
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-07-25
Publication Date
2024-11-01
Estimated Expiration
2044-07-25

AI Technical Summary

Technical Problem

In the prior art, the drug structure representation method based on graph neural networks has problems of excessive smoothing and overcompression, resulting in the loss of spatial structure information of drug molecules and insufficient feature extraction capabilities.

Method used

Graphical relational attention network (GRAN) is used to obtain the absolute position encoding of drug atoms through Laplace spectral decomposition, and combine the random message delivery mechanism and dynamic relational attention mechanism to extract the local structural characteristics of the drug; at the same time, molecular structure perception is used The Transformer Network (MGTN) obtains the global structural characteristics of drugs through molecular self-attention mechanisms, and combines local and global structural information to enrich the characteristic representation of drugs.

Benefits of technology

It solves the problems of excessive smoothing and overcompression of graph neural networks, improves the feature extraction ability of drug molecular structure representation, enhances the ability to distinguish drugs and learn global structure, reduces induction bias in the network, and improves downstream tasks. The drug characteristics represent quality.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118888045A_ABST
    Figure CN118888045A_ABST
Patent Text Reader

Abstract

The invention discloses a drug structure representation method and system with relation attention and global structure perception, and relates to the technical field of artificial intelligence. Performing Laplacian spectrum decomposition on the adjacent matrix of the drug molecular map to obtain absolute position codes of drug atoms; obtaining drug substructures with different sizes and shapes in the drug molecules based on a random message passing mechanism; the contribution degrees of different medicine substructures are quantified by using a dynamic relation attention mechanism, and the important medicine substructures are aggregated to obtain local structure features of the medicine; by utilizing a molecular self-attention mechanism, obtaining a topological structure of a drug atom and performing linear representation on drug characteristics to obtain global structure characteristics of the drug; and obtaining explicit features of the drug structure by combining the local structural features of the drug and the global structural features of the drug. According to the method, the problems of excessive smoothness and excessive compression existing in the graph neural network are solved, and the feature extraction capability of the molecular structure representation method based on the graph neural network is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of artificial intelligence technology, and in particular to a drug structure representation method and system with relational attention and global structure perception. Background Art

[0002] In recent years, deep learning and graph convolution networks (GNNs) have been increasingly used in the field of virtual screening of synergistic drug combinations. This technological innovation has greatly accelerated the process of exploring drug combinations, allowing researchers to evaluate a large number of drug combinations in a short period of time and verify high-potential candidates through high-throughput screening technology, significantly improving the efficiency of discovering synergistic drug combinations.

[0003] In the study of drug synergy prediction, drug characterization methods are mainly divided into two categories: traditional methods based on manual design and advanced methods based on GNN. At present, researchers mostly rely on molecular fingerprints or comprehensive physical and chemical properties, side effects, binding targets, biological pathways and interactions to build prediction models. Molecular fingerprints, as a fixed-length binary string, perform well in multiple downstream tasks with its concise mathematical structure. For example, in the literature [1], it combines cancer cell line gene expression profile data and successfully predicts the synergistic effect of drug combinations on specific cancer cell lines through a fully connected neural network. However, molecular fingerprints are highly dependent on expert knowledge, have limited adaptability to emerging drugs, and lack flexibility. On the other hand, simplified molecular input line input systems (such as SMILES) represent drug structures through one-dimensional strings. Although they are widely used in processing compound chemical information, they are difficult to capture the spatial relationship between drug atoms, resulting in the loss of spatial structure information.

[0004] In contrast, GNN, as a powerful graph representation learning method, extracts spatial information by capturing the topological relationship between nodes, and has demonstrated excellent performance in many fields such as protein design, drug repositioning and recommendation systems. Given that molecular graphs can comprehensively encode rich information about drug structures, GNN-based drug structure representation methods have gradually gained attention. According to different definitions of graph convolution operations, GNN methods can be divided into spatial methods and spectral methods. Among them, spatial GNN based on message passing mechanism is particularly prominent. By aggregating node information layer by layer and realizing graph convolution in the vertical domain, it effectively improves the performance of molecular-related tasks. For example, reference [2] uses GNN to extract drug molecular structural features and combines it with cancer cell line gene expression profile data to successfully predict the synergistic effect of drug combinations, further verifying the effectiveness of GNN in extracting molecular structural information. Reference [3] uses multi-layer GNN combined with collaborative attention mechanism to not only deeply extract drug structural information, but also effectively identify key local structures in drug molecules, providing a new perspective for drug-drug interaction prediction.

[0005] [1] K Preuer, RPI Lewis, S Hochreiter, et al. DeepSynergy: predicting anti-cancer drug synergy with Deep Learning [J]. Bioinformatics, 2018, 34(9): 1538-1546;

[0006] [2]J Wang,

[0007] [3]AK Nyamabo,H Yu,JY Shi.SSI-DDI:substructure-substructureinteractions for drug-drug interaction prediction[J].Briefings inBioinformatics,2021,22(6):1-10;

[0008] Although the drug feature representation method based on artificial design encodes drug features through a fixed-length one-dimensional binary bit string, the calculation process is simple and friendly to downstream tasks. However, the relevant method is extremely dependent on expert knowledge, can only encode currently known drug functional groups, and easily leads to the loss of spatial structural information of drug molecules. The drug representation method based on graph neural network directly learns and optimizes the drug molecule representation from the drug molecule graph through the graph neural network, which can obtain rich spatial and structural information. However, the relevant method has expression limitations, namely the problems of over-smoothing and over-compression. Over-smoothing is manifested as the characteristics of all atomic representations converge to a constant after a certain number of iterations, so that the atoms cannot be distinguished; over-compression means that a large amount of information is compressed during the propagation process, resulting in the characteristics of distant atoms cannot be effectively transmitted through the transmission mechanism. Summary of the invention

[0009] The purpose of the present invention is to propose a drug structure representation method and system with relational attention and global structure perception, which increases the distinction between atoms and improves the ability to express the local structure of drug molecules; and obtains drug molecule information from a global perspective to improve the learning ability of the global structure of drug molecules.

[0010] According to a first aspect of an embodiment of the present disclosure, a method for drug structure representation with relational attention and global structure perception is provided, comprising the following steps:

[0011] The graph relational attention network GRAN performs Laplace spectral decomposition on the adjacency matrix of the drug molecule graph to obtain the absolute position encoding of drug atoms; obtains drug substructures of different sizes and shapes in drug molecules based on the random message passing mechanism; uses the dynamic relational attention mechanism to quantify the contribution of different drug substructures, and aggregates important drug substructures to obtain the local structural characteristics of the drug;

[0012] The molecular structure-aware graph transformer network (MGTN) uses the molecular self-attention mechanism to obtain the topological structure of drug atoms and linearly represent the drug characteristics, thereby obtaining the global structural characteristics of the drug from a global perspective. It combines the local structural characteristics of the drug with the global structural characteristics of the drug to obtain an explicit representation of the drug structure.

[0013] According to a second aspect of an embodiment of the present disclosure, a drug structure representation system with relational attention and global structure perception is provided, comprising:

[0014] The local structural feature acquisition module uses the graph relational attention network GRAN to perform Laplace spectral decomposition on the adjacency matrix of the drug molecule graph to obtain the absolute position encoding of drug atoms; obtains drug substructures of different sizes and shapes in drug molecules based on the random message passing mechanism; uses the dynamic relational attention mechanism to quantify the contribution of different drug substructures, and aggregates important drug substructures to obtain the local structural features of the drug;

[0015] The global structural feature acquisition module, the molecular structure-aware graph transformer network MGTN, uses the molecular self-attention mechanism to obtain the topological structure of drug atoms and linearly represent the drug features, thereby obtaining the global structural features of the drug from a global perspective; combining the local structural features of the drug with the global structural features of the drug to obtain an explicit representation of the drug structure.

[0016] According to a third aspect of an embodiment of the present disclosure, there is provided an electronic device comprising a memory, a processor and a computer program stored and running on the memory, wherein when the processor executes the program, the method for representing a drug structure with relational attention and global structure perception is implemented.

[0017] According to a fourth aspect of an embodiment of the present disclosure, a computer-readable storage medium is provided, on which a computer program is stored, and when the program is executed by a processor, the method for representing a drug structure with relational attention and global structure perception is implemented.

[0018] Compared with the prior art, the above technical solution adopted by the present invention has the following advantages: the present invention solves the problems of over-smoothing and over-compression existing in graph neural networks, improves the feature extraction capability of the molecular structure representation method based on graph neural networks, and provides a reliable method for obtaining drug feature representation for downstream tasks.

[0019] In the graph relational attention network GRAN, the random message passing mechanism solves the over-smoothing problem. This method can obtain different substructures inside the drug molecule and alleviate the atomic similarity problem in each iteration. In addition, the random message passing mechanism also greatly reduces the time and space complexity of the algorithm and improves the computational efficiency.

[0020] The molecular structure-aware graph transformer network (MGTN) solves the over-compression problem through the molecular self-attention mechanism, realizes the encoding of the global structure of the drug, and reduces the inductive bias in the network and enriches the feature representation of the drug by combining the structural information of the drug at both the global and local levels. BRIEF DESCRIPTION OF THE DRAWINGS

[0021] The drawings in the specification, which constitute a part of the present application, are used to provide further understanding of the present application. The illustrative embodiments of the present application and their descriptions are used to explain the present application and do not constitute improper limitations on the present application.

[0022] Figure 1 A schematic diagram of the principle of a drug structure representation method with relational attention and global structure awareness. Specific implementation methods

[0024] The present disclosure is further described below in conjunction with the accompanying drawings and embodiments.

[0025] It should be noted that the following detailed descriptions are illustrative and are intended to provide further explanation of the present application. Unless otherwise specified, all technical and scientific terms used herein have the same meanings as those commonly understood by those skilled in the art to which the present application belongs.

[0026] It should be noted that the terms used herein are only for describing specific embodiments and are not intended to limit the exemplary embodiments according to the present application. As used herein, unless the context clearly indicates otherwise, the singular form is also intended to include the plural form. In addition, it should be understood that when the terms "comprise" and / or "include" are used in this specification, it indicates the presence of features, steps, operations, devices, components and / or combinations thereof.

[0027] It should be noted that the flowcharts and block diagrams in the accompanying drawings illustrate the possible implementation architecture, functions and operations of the methods and systems according to various embodiments of the present disclosure. It should be noted that each box in the flowchart or block diagram can represent a module, a program segment, or a part of a code, and the module, program segment, or a part of a code may include one or more executable instructions for implementing the logical functions specified in each embodiment. It should also be noted that in some alternative implementations, the functions marked in the box can also occur in an order different from that marked in the accompanying drawings. For example, two boxes represented in succession can actually be executed substantially in parallel, or they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each box in the flowchart and / or block diagram, and the combination of boxes in the flowchart and / or block diagram can be implemented using a dedicated hardware-based system that performs a specified function or operation, or can be implemented using a combination of dedicated hardware and computer instructions.

[0028] For the representation learning problem of drug molecular structure, in deep learning tasks, drugs are usually represented by simplified molecular-input line-entry system (SMILES) descriptors. For example, the chemical formula of the drug fluorouracil is C4H3FN2O2, and the SMILES descriptor is "C1=C(C(=O)NC(=O)N1)F". According to the SMILES descriptor of the drug, it can be converted into a drug molecular graph. Based on the atomic features and atomic adjacency matrix of the drug molecular graph, the embedded representation of the drug molecular structure is learned.

[0029] Embodiment 1:

[0030] This embodiment provides a drug structure representation method with relational attention and global structure perception, including:

[0031] The graph relational attention network GRAN performs Laplace spectral decomposition on the adjacency matrix of the drug molecule graph to obtain the absolute position encoding of drug atoms; obtains drug substructures of different sizes and shapes in drug molecules based on the random message passing mechanism; uses the dynamic relational attention mechanism to quantify the contribution of different drug substructures, and aggregates important drug substructures to obtain the local structural characteristics of the drug;

[0032] Specifically, for each drug, it is represented in the form of a molecular graph as G = (V, E), where: V is a set of atoms, v i ∈V represents the i-th atom; E is the set of chemical bonds, e ij ∈E represents the chemical bond between the i-th atom and the j-th atom. Each atom is characterized by a set of d-dimensional binary vectors, which include the following six types of information: atomic symbol, number of adjacent atoms, number of adjacent hydrogen atoms, implicit value of the atom, whether it is an isotope, and whether the atom is in an aromatic structure.

[0033] In order to further distinguish the different inter-atomic features of the same chemical symbol in the molecular graph and retain the spatial information of the molecule, the graph adjacency matrix is ​​decomposed by Laplace spectral to obtain the absolute position encoding of the atoms. The spectral decomposition of the Laplace matrix of the drug molecule graph is shown below:

[0034] U T ΛU=ID -1 / 2 A G D -1 / 2 (1)

[0035] Among them A Gis the adjacency matrix of the drug molecule graph; D is the diagonal matrix of the drug molecule graph; I is the identity matrix; U and L are eigenvectors and eigenvalues, respectively, and each vector in U corresponds to the absolute position encoding of each atom. Afterwards, the drug atom features are fused with the absolute position encoding to obtain the input of the graph relation attention network. The specific process is as follows:

[0036]

[0037] where z v is the original characteristic of atom v; U v ∈U is the absolute position encoding of atom v; Linear(*) is a linear variation function that can transform the position encoding of atom v into the same dimension as the original feature; is the feature matrix of drug α; is the characteristic representation of atom v in drug α.

[0038] Considering that traditional GNN has the problem of over-smoothing after multiple message passing, in order to obtain richer and more diverse substructure information, the present invention proposes a random message passing mechanism to solve the expression limitation problem of GNN. The process of generating drug substructures by random message passing mechanism can be summarized as a "sampling-aggregation" mode. Unlike the past GNN based on message passing mechanism, which always transmits and aggregates all adjacent atomic information around atoms, GRAN first selects adjacent atoms around atoms that participate in message passing through "sampling". Specifically, during the message passing process, a fixed number of atoms around the central atom will be randomly sampled from the adjacent atom set of the central atom, but the adjacent atoms sampled each time are uncertain. Afterwards, GRAN "aggregates" the sampled adjacent atom information and passes it to the central atom. On the one hand, it enables GRAN to obtain different substructures inside the drug molecule in each iteration and alleviate the atomic similarity problem caused by multiple message passing; on the other hand, this will also greatly reduce the time and space complexity of the algorithm, thereby improving the computational efficiency. Assuming that each time a fixed sampled atom v has K adjacent atoms within H hops, the process of obtaining the local substructure through the "sampling-aggregation" mode of the random message passing mechanism can be described as follows:

[0039]

[0040] in represents the local drug substructure centered at atom v; represents the set of all adjacent atoms within h hops around atom v; xv∈X is the current feature representation of atom v; Aggregate(*) means aggregating adjacent atomic messages to the central atom.

[0041] In order to quantify the importance of different local substructures in drug molecules, the present invention designs a dynamic relational attention mechanism, which assigns a specific weight to each substructure during message passing. It is defined as follows:

[0042]

[0043] where e ij Representing substructure and substructure The attention score between i represents the set of all adjacent atoms of atom i; Representing substructure For substructure The importance of is defined as follows:

[0044]

[0045] Where λ and W are both learnable parameter vectors; e ij Represents the edge vector between atom i and atom j, and uses a set of binary values ​​to represent the chemical bonds between drug atoms, mainly including the type of drug chemical bonds and whether the bonds are conjugated; || represents the concatenation operation of the vector group. Different from the previous attention mechanism that only focuses on the relationship between atoms, the present invention introduces edge information into the attention mechanism to focus on the pairwise relationship between atoms.

[0046] In order to avoid the loss of position information of drug substructures, after the important substructures are aggregated, the atomic features with position information are connected with the aggregated substructure information. This also helps to enhance the differentiation of different substructures within the drug molecule, thereby avoiding the problem of transition smoothing. For a given drug α, the drug substructure centered on atom v can be expressed as:

[0047]

[0048] in, The drug substructure after multi-layer GRAN polymerization with atom v as the center, c a is the atomic feature matrix of drug α after multi-layer GRAN update; L gran is the number of hidden layers of GRAN; MPNN(*) represents the message passing mechanism, which can pass the neighboring atom information to the central atom for aggregation.

[0049] The molecular structure-aware graph transformer network (MGTN) uses the molecular self-attention mechanism to obtain the topological structure of drug atoms and linearly represent the drug characteristics, thereby obtaining the global structural characteristics of the drug from a global perspective. It combines the local structural characteristics of the drug with the global structural characteristics of the drug to obtain an explicit representation of the drug structure.

[0050] Specifically, considering the problem of over-compression in traditional GNN long-distance message transmission, in order to further enrich the feature representation of drugs, the present invention proposes MGTN to extract the feature representation of drugs from a global perspective. MGTN uses the molecular attention mechanism to obtain the global structural features of drugs through the graph structure perception encoder F(*) and the graph feature information encoder Υ(*). The graph structure perception encoder is used to capture the topological structure of atoms from the global information of drug molecules; the graph feature information encoder is used to linearly represent drug features. The definition of the graph structure perception encoder is as follows:

[0051]

[0052] in,

[0053]

[0054] F(*) is derived based on the substructure characteristics of the drug and includes the topological relationship between atoms within the drug; Y(*) perceives the topological relationship between atoms by calculating the similarity between drug substructures; represents the degree of atom i; W q , W k , b q and b k are all learnable parameter matrices. Given a drug α, the process of obtaining the drug's global structural encoding representation through the molecular self-attention mechanism is as follows:

[0055]

[0056] in It is the feature representation of atom v after being encoded by the molecular self-attention mechanism.

[0057] The molecular self-attention mechanism overcomes the over-compression problem caused by the traditional GNN long-distance message transmission and realizes the encoding of the global structure of the drug. MGTN combines the global structural features of the drug encoded by the molecular self-attention mechanism and the local substructure features of the drug extracted by GRAN, thereby enriching the feature representation of the drug with information at both the global and local levels. For a given drug α, the feature representation of its atom v after the residual structure is The process is as follows:

[0058]

[0059] Among them, σ(*) is the activation function; Norm[*] represents the normalization operation; W gran and W mgtnAll are learnable parameter vectors. A multi-head attention mechanism is used to obtain a richer drug structure expression. The structural feature representation of atom v after the T-head molecule self-attention mechanism is obtained. Its definition is as follows:

[0060]

[0061] MGTN inputs the chemical feature representation and structural feature of the drug into FNN, and then passes through the residual connection layer and the normalization layer to generate the drug's display feature encoding representation through graph pooling. For a given drug α, its display feature encoding representation D a As shown below:

[0062]

[0063] Wherein, Pooling{*} represents the graph pooling operation, which is used to obtain the graph-level representation of drug molecules; FNN(*) represents the feedforward neural network; W encoder is the learnable parameter matrix.

[0064] Embodiment 2:

[0065] This embodiment provides a drug structure representation system with relational attention and global structure perception, including:

[0066] The local structural feature acquisition module uses the graph relational attention network GRAN to perform Laplace spectral decomposition on the adjacency matrix of the drug molecule graph to obtain the absolute position encoding of drug atoms; obtains drug substructures of different sizes and shapes in drug molecules based on the random message passing mechanism; uses the dynamic relational attention mechanism to quantify the contribution of different drug substructures, and aggregates important drug substructures to obtain the local structural features of the drug;

[0067] The global structural feature acquisition module, the molecular structure-aware graph transformer network MGTN, uses the molecular self-attention mechanism to obtain the topological structure of drug atoms and linearly represent the drug features, thereby obtaining the global structural features of the drug from a global perspective; combining the local structural features of the drug with the global structural features of the drug to obtain an explicit representation of the drug structure.

[0068] Embodiment three:

[0069] An electronic device includes a memory, a processor, and a computer program stored and running on the memory, wherein the processor implements the above-mentioned drug structure representation method with relational attention and global structure perception when executing the program, including:

[0070] The graph relational attention network GRAN performs Laplace spectral decomposition on the adjacency matrix of the drug molecule graph to obtain the absolute position encoding of drug atoms; obtains drug substructures of different sizes and shapes in drug molecules based on the random message passing mechanism; uses the dynamic relational attention mechanism to quantify the contribution of different drug substructures, and aggregates important drug substructures to obtain the local structural characteristics of the drug;

[0071] The molecular structure-aware graph transformer network (MGTN) uses the molecular self-attention mechanism to obtain the topological structure of drug atoms and linearly represent the drug characteristics, thereby obtaining the global structural characteristics of the drug from a global perspective. It combines the local structural characteristics of the drug with the global structural characteristics of the drug to obtain an explicit representation of the drug structure.

[0072] Embodiment 4:

[0073] A computer-readable storage medium having a computer program stored thereon, wherein when the program is executed by a processor, the method for representing a drug structure with relational attention and global structure perception is implemented, comprising:

[0074] The graph relational attention network GRAN performs Laplace spectral decomposition on the adjacency matrix of the drug molecule graph to obtain the absolute position encoding of drug atoms; obtains drug substructures of different sizes and shapes in drug molecules based on the random message passing mechanism; uses the dynamic relational attention mechanism to quantify the contribution of different drug substructures, and aggregates important drug substructures to obtain the local structural characteristics of the drug;

[0075] The molecular structure-aware graph transformer network (MGTN) uses the molecular self-attention mechanism to obtain the topological structure of drug atoms and linearly represent the drug characteristics, thereby obtaining the global structural characteristics of the drug from a global perspective. It combines the local structural characteristics of the drug with the global structural characteristics of the drug to obtain an explicit representation of the drug structure.

[0076] Taking the drug synergy prediction task as a specific example, the following is an analysis of its beneficial effects, that is, predicting the synergy score of a drug combination on a specific cancer cell line or whether it has synergy based on the drug and cancer cell line information provided by the data. A synergistic drug dataset includes 4231 drug combinations and 288 cancer cell lines, with a total of 739,964 experimental data. Each experimental object consists of a triple, which includes drug 1, drug 2, and the name of the target cancer cell line. For the regression task, that is, predicting the synergy score of the drug combination on the cancer cell line, the experiment does not make special treatment on the dataset. For the classification task, that is, predicting whether the drug combination has synergy on the cancer cell line, the experiment sets a strict threshold. When the synergy score of the drug combination on a specific cell line is greater than 10, it is set as a positive example; when the synergy score of the drug combination on a specific cell line is less than 0, it is set as a negative example. In addition, the experiment deletes some noise data from the dataset. The changes in the dataset before and after preprocessing are shown in Table 1.

[0077] Table 1 Description of experimental datasets

[0078]

[0079]

[0080] The method of the present invention is used to extract explicit representations of drug combinations, which are combined with cancer cell line gene expression profile data and input into the prediction model to calculate the synergy score of the drug combination on the target cancer cell line. Considering the size of the example environment, the number of cyclic learning is set to 200 times, and the number of input batches each time is 256. The SGD optimizer with a learning rate of 1e-4 is used in the regression task, and the Adam optimizer with a learning rate of 5e-4 is used in the classification task. The parameter settings of the method of the present invention are shown in Table 2.

[0081] Table 2 Parameter settings of the method of the present invention

[0082]

[0083] Under the same experimental environment, the comparison results of the method of the present invention with the artificial design feature (ADF) and the drug molecular structure representation based on the traditional GNN (TGNN) are considered, and the prediction model adopts the fully-connected neural network (FNN). The comparative experimental results are shown in Table 3 and Table 4.

[0084] (1) In the classification task, the area under the receiver operating characteristic curve of the method of the present invention is 10.9% higher than that of the prediction method based on ADF and 2.6% higher than that of the prediction method based on TGNN.

[0085] (2) In the regression task, compared with the ADF-based prediction method and the TGNN-based prediction method, the root mean square error of the proposed method decreased by 34.6% and 17.1%, respectively.

[0086] (3) In both classification and regression tasks, the method of the present invention achieved the optimal values ​​in all ten indicators, proving that the method of the present invention has better performance in drug representation learning than the ADF and TGNN methods.

[0087] Table 3 Comparison of the proposed method with other algorithms in classification tasks

[0088]

[0089] Table 4 Comparison of the proposed method with other algorithms in regression tasks

[0090]

[0091] Those skilled in the art should understand that the modules or steps of the present disclosure can be implemented by a general-purpose computer device, or alternatively, they can be implemented by a program code executable by a computing device, so that they can be stored in a storage device and executed by the computing device, or they can be made into individual integrated circuit modules, or multiple modules or steps therein can be made into a single integrated circuit module for implementation. The present disclosure is not limited to any specific combination of hardware and software.

[0092] The above description is only the preferred embodiment of the present application and is not intended to limit the present application. For those skilled in the art, the present application may have various modifications and variations. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present application shall be included in the protection scope of the present application.

[0093] Although the above describes the specific implementation methods of the present disclosure in conjunction with the accompanying drawings, it is not intended to limit the scope of protection of the present disclosure. Technical personnel in the relevant field should understand that on the basis of the technical solution of the present disclosure, various modifications or variations that can be made by those skilled in the art without creative work are still within the scope of protection of the present disclosure.

Claims

1. A drug structure representation method with relational attention and global structure awareness, characterized in that: The following steps are involved: The graph relational attention network GRAN performs Laplace spectral decomposition on the adjacency matrix of the drug molecule graph to obtain the absolute position encoding of drug atoms; obtains drug substructures of different sizes and shapes in drug molecules based on the random message passing mechanism; uses the dynamic relational attention mechanism to quantify the contribution of different drug substructures, and aggregates important drug substructures to obtain the local structural characteristics of the drug; The molecular structure-aware graph transformer network (MGTN) uses the molecular self-attention mechanism to obtain the topological structure of drug atoms and linearly represent drug features, thereby obtaining the global structural features of the drug from a global perspective. The local structural features of the drug are combined with the global structural features of the drug to obtain an explicit representation of the drug structure.

2. A drug structure representation method with relational attention and global structure perception according to claim 1, characterized in that: The graph relational attention network GRAN performs Laplace spectral decomposition on the adjacency matrix of the drug molecule graph to obtain the absolute position encoding of the drug atoms, as shown below: U T L U=I-D -1 / 2 A G D -1 / 2 (1) Among them A G is the adjacency matrix of the drug molecule graph; D is the angle matrix of the drug molecule graph; I is the identity matrix; U and L are eigenvectors and eigenvalues, respectively. Each vector in U corresponds to the absolute position code of each atom. The drug atomic features are fused with the absolute position encoding to obtain the input of the graph relational attention network. The specific process is as follows: where z v is the original characteristic of atom v; U v ∈U is the absolute position encoding of atom v; Linear(*) is a linear variation function that can transform the position encoding of atom v into the same dimension as the original feature; is the feature matrix of drug α; is the characteristic representation of atom v in drug α.

3. A drug structure representation method with relational attention and global structure perception according to claim 1, characterized in that: Based on the random message passing mechanism, drug substructures of different sizes and shapes in drug molecules are obtained. Specifically, assuming that each time a fixed sampled atom v has K adjacent atoms within H hops, the process of obtaining local drug substructures through the "sampling-aggregation" mode of the random message passing mechanism is described as follows: in represents the local drug substructure centered at atom v; represents the set of all adjacent atoms within h hops around atom v; x v ∈X is the current feature representation of atom v; Aggregate(*) means aggregating adjacent atomic messages to the central atom.

4. The drug structure representation method with relational attention and global structure perception according to claim 1, characterized in that: Using the dynamic relational attention mechanism, each drug substructure is given a specific weight during the message passing process, as shown below: where e ij Representing substructure and substructure The attention score between i represents the set of all adjacent atoms of atom i; Representing substructure For substructure The importance of is defined as follows: Where λ and W are both learnable parameter vectors; e ij Represents the edge vector between atom i and atom j, and uses a set of binary values ​​to represent the chemical bonds between drug atoms, including the type of drug chemical bonds and whether the bonds are conjugated; || represents the concatenation operation of the vector group.

5. The drug structure representation method with relational attention and global structure perception according to claim 1, characterized in that: Important drug substructures are aggregated to obtain the local structural features of the drug. Specifically, for a given drug α, the drug substructure centered on atom v is represented as: in, The drug substructure after multi-layer GRAN polymerization with atom v as the center, c a is the atomic feature matrix of drug α after multi-layer GRAN update; L gran is the number of hidden layers of GRAN; MPNN(*) represents the message passing mechanism, which transmits the neighboring atom information to the central atom and aggregates it.

6. According to claim 1, a drug structure representation method with relational attention and global structure perception is characterized in that: The molecular structure-aware graph transformer network MGTN uses the molecular attention mechanism to obtain the global structural features of the drug through the graph structure-aware encoder F(*) and the graph feature information encoder Υ(*); The graph structure-aware encoder captures the topological structure of atoms from the global information of drug molecules; the graph feature information encoder linearly represents drug features; The graph structure aware encoder is defined as follows: in, F(*) is derived based on the substructure characteristics of the drug and includes the topological relationship between atoms within the drug; Y(*) perceives the topological relationship between atoms by calculating the similarity between drug substructures; represents the degree of atom i; W q , W k , b q and b k are all learnable parameter matrices; given a drug α, the process of obtaining the drug's global structural encoding representation through the molecular self-attention mechanism is as follows: in It is the feature representation of atom v after being encoded by the molecular self-attention mechanism.

7. The method for drug structure representation with relational attention and global structure perception according to claim 1, characterized in that: Combining the local structural features of the drug with the global structural features of the drug, we can obtain an explicit representation of the drug structure. Specifically, for a given drug α, the characteristic representation of its atom v after the residual structure is As shown below: Among them, s(*) is the activation function; Norm[*] represents the normalization operation; W gran and W mgtn are all learnable parameter vectors; The structural feature representation of atom v after the T-head molecule self-attention mechanism Its definition is as follows: The molecular structure-aware graph transformer network MGTN inputs the chemical feature representation and structural feature of the drug into the FNN, and then passes through the residual connection layer and the normalization layer, and generates the display feature encoding representation of the drug through graph pooling; for a given drug α, its display feature encoding representation D a As shown below: Wherein, Pooling{*} represents the graph pooling operation, which is used to obtain the graph-level representation of drug molecules; FNN(*) represents the feedforward neural network; W encoder is the learnable parameter matrix.

8. A drug structure representation system with relational attention and global structure awareness, characterized in that: include: The local structural feature acquisition module uses the graph relational attention network GRAN to perform Laplace spectral decomposition on the adjacency matrix of the drug molecule graph to obtain the absolute position encoding of drug atoms; obtains drug substructures of different sizes and shapes in drug molecules based on the random message passing mechanism; uses the dynamic relational attention mechanism to quantify the contribution of different drug substructures, and aggregates important drug substructures to obtain the local structural features of the drug; The global structural feature acquisition module, the molecular structure-aware graph transformer network MGTN, uses the molecular self-attention mechanism to obtain the topological structure of drug atoms and linearly represent the drug features, thus obtaining the global structural features of the drug from a global perspective; The local structural features of the drug are combined with the global structural features of the drug to obtain an explicit representation of the drug structure.

9. An electronic device comprising a memory, a processor and a computer program stored and running on the memory, wherein when the processor executes the program, the method for representing drug structure with relational attention and global structure perception is implemented.

10. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the program is executed by a processor, a drug structure representation method with relational attention and global structure perception is implemented.

Citation Information

Patent Citations

  • Drug-target interaction prediction method and system and terminal equipment

    CN115101142A

  • Molecular property prediction method fusing channel attention and Transformer

    CN117831664A

  • Molecular graph representation learning method based on contrastive learning

    WO2022135121A1