A method, device and apparatus for predicting drug-target relationship
By introducing hierarchical attention network and contrastive learning technology into the drug-target multi-relationship graph, the problems of insufficient adaptability and node importance learning in the existing methods are solved, and the accuracy and accuracy of drug-target relationship prediction are improved. applicability.
Patent Information
- Application Number
- CN202410395324.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-04-02
- Publication Date
- 2024-09-10
- Estimated Expiration
- 2044-04-02
AI Technical Summary
Existing drug-target multi-relationship graph learning methods are difficult to adapt to data sets in different fields, and GCN-based methods cannot effectively learn the importance of nodes at different levels in drug-target interaction multi-relationship graphs, resulting in poor prediction results. Not good.
A multi-relationship graph neural network is used to construct a hierarchical attention network of drug-target interaction multi-relationship graphs. Through entity-level, relationship-level and hierarchical attention mechanisms, the main view and two contrasting views of contrastive learning are generated, and the model is optimized using contrastive learning. to improve the prediction accuracy of drug-target relationships.
Through hierarchical attention mechanism and contrastive learning technology, the accuracy of drug-target relationship prediction and model applicability are improved, parameters can be flexibly adjusted to adapt to graph data of different disease types, and adaptiveness and node importance learning are solved. problem.
Smart Images

Figure CN118197402B
Abstract
Description
Technical Field
[0001] The present application relates to the field of drug discovery technology, and in particular to a method, device, medium and equipment for predicting drug-target relationship. Background Art
[0002] Drug discovery is a core part of the medical field, and its goal is to discover new molecules with the potential to treat diseases. This process is related to the efficacy of drugs as well as their safety and indications. However, the traditional drug discovery process faces many challenges, such as long time consumption, high cost, and low success rate. With the rapid development of artificial intelligence technology, especially the application of multi-relational graph neural network models, the field of drug discovery has ushered in new possibilities, which is expected to significantly improve R&D efficiency and economic benefits. Generally, in the drug discovery process, drugs, targets and the relationship between them can be embedded into a low-dimensional vector representation by learning the drug-target multi-relational graph, and the embedded vector can be further used to predict drug-target interactions, thereby screening out more promising drug candidates.
[0003] The commonly used methods for studying multi-relation graph learning in the prior art are various GCN-based methods. However, the multi-relation graph of drug-target is often composed of multiple types of entities (drugs and targets) and multiple types of relationships (drug-target relationships). Currently, most GCN-based methods cannot learn the importance of nodes at different levels. Aggregating node information evenly will lead to inaccurate node representation and reduce the performance of downstream network analysis tasks. In addition, the greater difficulty is that most existing GCN-based methods are trained in a supervised manner, but collecting a large amount of labeled data often requires a lot of resources and time.
[0004] In recent years, graph contrastive learning (GCL) has made great progress in multi-relational graph learning, which aims to learn vector representations from unlabeled graphs. For drug discovery, graph contrastive learning can enhance drug and target entity representations by contrasting defined positive and negative pairs of instances and by creating consistency between contrast views.
[0005] However, existing graph contrastive learning methods for drug-target multi-relation graphs also have their own defects. Most of them use artificially designed graph enhancement views (or contrastive views) to deal with datasets in specific fields under drug discovery. A good enhancement view should automatically adapt to datasets in different fields while keeping task-related information intact. However, existing manual graph enhancement methods based on random perturbations cannot keep task-related information intact in different domains. Recently, some adaptive graph contrastive learning models have emerged. However, these methods mainly focus on graph learning with limited drug-target relationship types and cannot be directly applied to the learning of drug-target interaction multi-relation graphs.
[0006] In summary, there is currently a lack of an adaptive drug-target relationship prediction method for drug-target interaction multi-relationship graph learning. Summary of the invention
[0007] Based on this, it is necessary to provide a method for predicting drug-target relationships in response to the above technical issues.
[0008] This manual adopts the following technical solutions:
[0009] This manual provides a method for predicting drug-target relationships, including:
[0010] Obtain drug-target interaction multi-relationship graph;
[0011] Based on the multi-relation graph neural network, construct the entity-level attention of the importance of different drugs or target entities under each drug-target relationship type in the drug-target interaction multi-relation graph, construct the relationship-level attention of the importance of different drug-target relationship types under each drug or target entity in the drug-target interaction multi-relation graph, and construct the hierarchical attention of the embedding level of the drug or target entity in the drug-target interaction multi-relation graph, so as to obtain the hierarchical attention network of the drug-target multi-relation graph and use it as the main view for comparative learning;
[0012] The entity-level attention in the hierarchical attention network of the drug-target multi-relationship graph is removed to obtain a first comparison view; the entity-level attention and the relationship-level attention in the hierarchical attention network of the drug-target multi-relationship graph are removed to obtain a second comparison view;
[0013] The drug-target interaction multi-relationship graph is respectively input into the contrastive learning main view, the first contrastive view and the second contrastive view for network embedding;
[0014] According to maximizing the consistency of network embedding between the target entity and its neighbor entities in the contrastive learning main view and maximizing the difference between the target entity in the first contrast view and the second contrast view and the full-image embedding of the contrastive learning main view, a total contrast loss is constructed; and minimizing the total contrast loss is used as the optimization goal to train the drug-target multi-relationship graph hierarchical attention network; and the drug-target relationship is predicted by the trained drug-target multi-relationship graph hierarchical attention network.
[0015] Optionally, the drug-target interaction multi-relationship graph is:
[0016] G=(V,R,ξ), {(v,r,u)∈V×R×V};
[0017] Among them, G is the drug-target interaction multi-relation graph, V is the entity set including drugs and targets, R is the relationship set between drugs and targets, ξ represents the knowledge set, and in the triple (v, r, u), v is the drug entity, u is the target entity, and r is the drug-target relationship type between drug entity v and target entity u.
[0018] Optionally, the entity-level attention of the importance of different drugs or target entities under each drug-target relationship type in the drug-target interaction multi-relation graph is constructed by the following formula:
[0019]
[0020] The drug-target interaction multi-relation graph is constructed by the following formula to obtain the relation-level attention of the importance of different drug-target relationship types under each drug or target entity:
[0021]
[0022] The hierarchical attention of drug or target entity embedding level of drug-target interaction multi-relation graph is constructed by the following formula:
[0023]
[0024] Among them, v is the drug entity, u is the target entity, and r is the drug-target relationship type. represents the input representation vector of drug entity v under drug-target relationship type r, represents the input representation vector of the target entity u under the drug-target relationship type r, || represents the connection operator, and a r represents the weight vector parameter of the attention function of drug-target relationship type r, represents the importance coefficient between entities under drug-target relationship type r based on the softmax function, characterizing the importance of target entity u to drug entity v, σ represents the activation function, q Trepresents the entity-level attention vector, R represents the set of drug-target relationship types, and W r and b r are the parameters to be trained, is the set of all neighbor target entities of drug entity v under drug-target relationship type r, represents the importance of different drug-target relationship types under drug entity v, is the vector representation of the drug entity or target entity in the embedding propagation layer i, c i The hierarchical attention represents the importance of different propagation layers to the drug entity v, characterizing the adaptive contribution of the i-th layer embedding to the final entity representation.
[0025] Optionally, the propagation layers of the obtained drug-target multi-relationship graph hierarchical attention network are:
[0026]
[0027] in, represents the importance of different drug-target relationship types under drug entity v, represents the importance coefficient between entities under drug-target relationship type r, represents the vector representation of drug entity v in layer i∈I, represents the vector representation of the target entity u in the i∈I layer, represents the neighbor node set of drug entity v under drug-target relationship type r, and Represents the weight matrix to be trained in the i-th layer.
[0028] Optionally, each propagation layer of the obtained first comparison view is:
[0029]
[0030] The propagation layers of the second comparison view are obtained as follows:
[0031]
[0032] Among them, v is the drug entity, u is the target entity, and r is the drug-target relationship type. represents the input representation vector of drug entity v under drug-target relationship type r in the first comparison view, represents the input representation vector of the target entity u under the drug-target relationship type r in the first comparison view, represents the input representation vector of drug entity v under drug-target relationship type r in the second comparison view, represents the input representation vector of the target entity u under the drug-target relationship type r in the second comparison view, represents the importance of different drug-target relationship types under drug entity v, and Represents the weight matrix to be trained in the i-th layer.
[0033] Optionally, constructing a total contrast loss according to maximizing the consistency of network embedding between the target entity and its neighbor entities in the contrast learning main view and maximizing the difference between the target entity in the first contrast view and the second contrast view and the full image embedding of the contrast learning main view; and taking minimizing the total contrast loss as the optimization goal, specifically includes:
[0034] The first contrast loss function between the first contrast view and the contrast learning main view is:
[0035]
[0036] The second contrast loss function between the second contrast view and the contrast learning main view is:
[0037]
[0038] The total contrast loss is:
[0039]
[0040] Where v is the drug entity, u is the target entity, r is the drug-target relationship type, g is the network embedding global graph representation of the drug-target interaction multi-relationship graph G = (V, R, ξ) by the contrastive learning main view, and e is the subgraph representation of the target node corresponding to the drug or target entity in the network embedding global graph, including multiple neighbor entities. W is the parameter matrix to be trained, represents the vector representation of entity u in the first comparison view, |V| represents the number of drug and target entities in the main view, represents the number of drug and target entities in the first comparison view, Indicates the number of drug and target entities in the second comparison view, represents the vector representation of the target entity u in the second contrast view, θ1 and θ2 are the hyperparameters contributing to the contrast loss control, and L m is the main objective function, Ω represents the training set, represents the probability that the drug-target entity pair (v,u) belongs to the drug-target relationship type r, express The corresponding label.
[0041] This manual provides a method for predicting drug-target relationships, including:
[0042] Acquisition module, obtains drug-target interaction multi-relationship graph.
[0043] A construction module is used to construct entity-level attention of the importance of different drugs or target entities under each drug-target relationship type in the drug-target interaction multi-relationship graph based on a multi-relationship graph neural network, construct relation-level attention of the importance of different drug-target relationship types under each drug or target entity in the drug-target interaction multi-relationship graph, and construct hierarchical attention of drug or target entity embedding levels in the drug-target interaction multi-relationship graph, so as to obtain a hierarchical attention network of the drug-target multi-relationship graph and use it as a main view for comparative learning;
[0044] A comparison view construction module is used to remove entity-level attention in the hierarchical attention network of the drug-target multi-relationship graph to obtain a first comparison view; remove entity-level attention and relationship-level attention in the hierarchical attention network of the drug-target multi-relationship graph to obtain a second comparison view;
[0045] A network embedding module, used to input the drug-target interaction multi-relationship graph into the contrast learning main view, the first contrast view and the second contrast view for network embedding;
[0046] The training and application module is used to construct a total contrast loss based on maximizing the consistency of network embedding between the target entity and its neighbor entities in the contrast learning main view and maximizing the difference between the target entity in the first contrast view and the second contrast view and the full image embedding of the contrast learning main view; and to train the drug-target multi-relationship graph hierarchical attention network with minimizing the total contrast loss as the optimization goal; and to predict the drug-target relationship through the trained drug-target multi-relationship graph hierarchical attention network.
[0047] This specification provides a computer-readable storage medium, which stores a computer program. When the computer program is executed by a processor, the above-mentioned drug-target relationship prediction method is implemented.
[0048] The present specification provides a computer device, including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the above-mentioned drug-target relationship prediction method when executing the program.
[0049] At least one of the above technical solutions adopted in this specification can achieve the following beneficial effects:
[0050] First, a multi-relationship graph of drug-target interaction is obtained as training data. Then, based on a multi-relationship graph neural network, entity-level attention for drug and target entities, relationship-level attention for the relationship type between drug and target, and hierarchical attention for the embedding level of drug or target entity are constructed to obtain a contrastive learning main view. Then, based on the contrastive learning main view, the entity-level attention is removed to construct a first contrastive view, and the entity-level attention and relationship-level attention are removed to construct a second contrastive view. Finally, a total contrast loss is constructed based on maximizing the consistency of network embeddings between the target entity and its neighboring entities in the contrastive learning main view, and maximizing the difference between the target entity in the first contrast view and the second contrast view and the full-image embedding of the contrastive learning main view. The main contrast view is trained with the minimum total contrast loss as the optimization goal and then applied to the prediction of drug-target relationship.
[0051] The present invention adopts multi-view embedding technology and hierarchical attention mechanism to make the feature information contained in each view have different focuses. Using the idea of contrastive learning, the embedding representation of the drug-target interaction multi-relationship graph is learned. In contrastive learning, the contrastive view can flexibly adjust parameters according to the actual drug discovery scenario, which improves the applicability of graph data for different disease types. BRIEF DESCRIPTION OF THE DRAWINGS
[0052] The drawings described herein are used to provide a further understanding of the present application and constitute a part 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 an improper limitation on the present application. In the drawings:
[0053] Figure 1 A schematic diagram of a method for predicting drug-target relationships provided in this specification;
[0054] Figure 2 A schematic diagram of the overall framework for predicting drug-target relationships provided in this specification;
[0055] Figure 3 A schematic diagram of a drug-target relationship prediction method provided in this specification;
[0056] Figure 4 A schematic diagram of a computer device for predicting a drug-target relationship provided in this specification. DETAILED DESCRIPTION
[0057] In order to make the purpose, technical solutions and advantages of this specification more clear, the technical solutions of this application will be clearly and completely described below in combination with the specific embodiments of this specification and the corresponding drawings. Obviously, the described embodiments are only part of the embodiments of this application, not all of them. Based on the embodiments in the specification, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.
[0058] Drug discovery: Predicting drug-target interactions (DTI) is a key step in drug discovery. Targets refer to biological molecules that play a key role in the disease process. These targets may be proteins, genes, or other molecules. Drug target prediction refers to the use of deep learning technology to predict biological molecules that may become the targets of candidate drugs by analyzing the structure and function of biological molecules. In the drug discovery process, determining the right target is a crucial step because drugs need to interact with specific molecules in the body to exert their therapeutic effects.
[0059] Learnable Graph Augmentation: Learnable Graph Augmentation refers to the technology of enhancing graph data in a learnable way in Graph Neural Network (GCN). In traditional GCN, the structure of the graph is usually fixed, and the connection relationship between nodes and edges is static. However, in practical applications, graph data may be affected by noise, missing data or incomplete data, so a method is needed to dynamically adjust the structure of the graph to better adapt to different tasks and data characteristics. The core idea of learnable graph augmentation is to introduce a learnable mechanism to dynamically modify the topological structure or feature representation of the graph to improve the performance of the model. This method can include the following aspects: Dynamic edge weighting: The weight of each edge is obtained by learning, so as to adjust the connection relationship between nodes in the graph. This allows the model to capture the association information between nodes more flexibly. Dynamic node feature update: The node feature update process is designed to be learnable, so that the representation of the node can be dynamically adjusted according to the task requirements. Adaptive learning of graph structure: By introducing a learnable mechanism, the structure of the graph can be adaptively adjusted according to the data characteristics, so as to better adapt to different data distributions and characteristics. By introducing the technology of learnable graph enhancement, GCN can be made more flexible and adaptable when processing complex graph data in the real world, thereby improving the generalization and expression capabilities of the model. This method has broad application prospects in the fields of graph data mining, graph node classification, and graph generation.
[0060] Multi-relation graph: Multi-relation graphs are also called knowledge graphs (KGs). They are composed of different types of entities as nodes and relationships as edges, and can be used to store rich factual knowledge. For example, KGs are usually stored as triples (s, r, o), where s and o define different types of source entities and object entities, respectively, and r defines different types of relationships.
[0061] Multi-relational graph learning: also known as knowledge graph embedding (KGE), aims to embed entities and relations into a low-dimensional vector representation that maintains the inherent structure of the knowledge graph and can be applied to different network analysis tasks, such as drug discovery.
[0062] Contrastive Learning: Contrastive Learning is an unsupervised learning method whose main goal is to learn meaningful feature representations by learning the similarities and differences between samples. Compared with traditional supervised learning, contrastive learning does not require labeled data, so it is easier to learn useful information from large-scale unlabeled data. The basic idea of contrastive learning is to regard each sample as the position of a point in a high-dimensional space, and adjust the position of the sample in this space by learning the similarities and differences between samples. This process usually involves two steps: Constructing positive and negative sample pairs: Select two or more samples and divide them into positive and negative sample pairs. The samples in the positive sample pair are similar, while the samples in the negative sample pair are dissimilar. Learning similarity metrics: Through some similarity metric functions (such as Euclidean distance, cosine similarity, etc.), the positive sample pairs are trained to maximize the similarity and the negative sample pairs are trained to minimize the similarity. This can make similar samples closer in the space, while dissimilar samples are more dispersed. Contrastive learning has many applications, among which the most popular one is the application in self-supervised learning in the field of computer vision. This method uses the idea of contrastive learning to transform the image, construct positive and negative sample pairs, and learn the similarities and differences between images, so as to learn more generalized feature representations. In general, contrastive learning is an unsupervised learning method, and its main goal is to learn meaningful feature representations by adjusting the similarities and differences between learning samples. This method has a wide range of applications in computer vision, natural language processing, recommendation systems, network embedding for multi-relational graph learning, and other fields.
[0063] Network embedding for multi-relational graph learning is a technique for mapping high-dimensional data into low-dimensional space, which is of great significance in many fields.
[0064] 1. Data representation and feature extraction: Network embedding learned from multi-relational graphs can represent complex data as highly interpretable and semantically relevant vector representations. By learning these vector representations, data can be better understood and analyzed. For example, in natural language processing, embedding words into a continuous vector space can capture the semantic relationships between them. This ability makes network embedding learned from multi-relational graphs very effective in tasks such as text classification and information retrieval.
[0065] 2. Drug discovery: Network embedding of multi-relational graph learning can predict whether there is a specific type of relationship between drug and target by calculating the similarity between drug and target vectors, thereby screening out more promising drug candidates.
[0066] 3. Similarity calculation and recommendation system: Network embedding of multi-relational graph learning can realize correlation analysis and recommendation system by calculating the similarity between vectors. In social networks, users and their interests are embedded in the vector space, and potential social relationships or related content can be discovered by calculating the similarity between vectors. Similarly, e-commerce platforms can use the embedded vectors of products to recommend products that users may be interested in.
[0067] 4. Graph Analysis and Node Embedding: Network embedding for multi-relational graph learning is also very useful for the analysis and mining of graph structured data. By embedding the nodes in the graph into a low-dimensional vector space, the relationships and topological structures between the nodes can be captured. This is very important for tasks such as social network analysis, recommendation systems, and fraud detection. For example, in social networks, node embedding can be used to discover community structures, predict user behavior, and identify potential social circles.
[0068] 5. Dimensionality reduction and visualization: Through network embedding of multi-relational graph learning, high-dimensional data can be mapped to low-dimensional space, thereby achieving dimensionality reduction and visualization of data. The advantage of this is that the characteristics and similarities of the data can be more intuitively displayed. In the field of machine learning, dimensionality reduction methods such as t-SNE and PCA are often used to visualize data, making patterns and clusters easier to understand and explain.
[0069] In summary, network embedding for multi-relational graph learning has broad application prospects in fields such as data mining, machine learning, and artificial intelligence. It can help understand and process complex data and extract meaningful features, thereby further improving the performance and results of the algorithm.
[0070] At present, multi-relational graph learning based on graph neural network (GCN) has shown excellent performance in learning entity and relation representations on knowledge graphs (KGs). It extends GCN to handle multi-relational graphs and learns embeddings of KGs based on message passing mechanism. For example, RGCN proposed a relational GCN to address the highly multi-relational data characteristics of KGs, SACN adopted a weighted graph convolutional network encoder that exploits node structure, node attributes and edge relationship types, and a convolutional network decoder to complete the knowledge base. VR-GCN proposed a vectorized relational GCN for simultaneously embedding entities and relations of multi-relational graphs. CompGCN adopts a variety of entity-relation combination operations based on GCN architecture to learn entities and relations in KGs. In order to effectively predict drug-drug interactions, TrimNetDDI uses TrimNet to learn drug embeddings for multi-relational drug-drug interaction event prediction (DDI event prediction). MUFFIN uses a deep learning model to fuse multi-scale drug features and learn drug embeddings for DDI event prediction. Recently, NMuR uses the proposed nonlinear hyperbolic normalization in multi-relational graphs MuR for multi-relational reasoning. ERGCN introduces a relation-aware GCN consisting of entity convolution and relation convolution to embed entities and relations for multi-relation network alignment. However, these methods ignore the attention mechanism of multi-relation graphs.
[0071] Some multi-relational graph learning models considering attention mechanisms have emerged. A2N proposed a new attention-based strategy to embed query-related entity representations into KGs, GTN introduced an adaptive weighted message passing to encode entities and relations in KGs, and KBAT constructed an attention-based feature embedding framework using entity and relation features for relation prediction. Recently, GGPN proposed a new multi-relational graph Gaussian process network focusing on multi-relational graph representation learning. SSIDDI adopts multiple GAT layers to jointly focus on learning embeddings for DDI event prediction. MRGAT introduces a multi-relational graph attention network to learn the importance of different neighbors for knowledge graph completion. However, none of the above methods consider hierarchical attention and cannot learn the different importance of different entities under different relations of the target entity. Recently, DHAN designed a hierarchical attention architecture including intra-type attention and inter-type attention to learn nodes of the same type and neighbors of different types in dual-type multi-relational graphs.
[0072] HAHE introduced global attention and local attention for learning hyper-relational KGs. However, these GCN-based KGM models are trained in a supervised manner, which has limited capabilities for unlabeled graphs.
[0073] As can be seen from the above, the GCN-based multi-relation graph learning method has shown excellent performance in learning entity and relationship representations in knowledge graphs, but there are still some limitations and challenges. The following is a detailed discussion of these technologies:
[0074] Ignoring the attention mechanism of multi-relational graphs: Previous methods ignored the consideration of attention mechanisms in multi-relational graph learning. In a knowledge graph, different relations may have different importance and influence. By introducing an attention mechanism, different weights can be assigned to each relation to better capture the complexity between relations. However, previous methods failed to take this into account, resulting in the inability to accurately learn the different importance of different entities under different relations of the target entity.
[0075] Limitations of supervised training: GCN-based multi-relational graph learning models are usually trained in a supervised manner, that is, a large amount of labeled data is required to guide the model's learning process. However, in the real world, it is challenging to obtain large-scale labeled data. This limits the ability of these methods to effectively learn on unlabeled graphs. To solve this problem, it is necessary to study unsupervised or semi-supervised multi-relational graph learning methods to better utilize unlabeled data for model training.
[0076] Label sparsity problem: Self-supervised learning is introduced into multi-relational graph learning to deal with the sparsity problem of labeled data. In self-supervised learning, self-supervisory signals are generated by designing suitable contrast tasks, so that model training can be performed in the absence of labeled data. However, it faces the challenge of insufficient quality and quantity of self-supervisory signals. As a result, the model may be limited in the learning process and cannot fully capture the complex associations between entities and relations in the knowledge graph.
[0077] Large number of parameters: GCN-based multi-relation graph learning methods usually require a large number of parameters to represent the complex relationships between entities and relations. This leads to increased model complexity and requires more computing resources during training and inference. In addition, a large number of parameters also increases the storage requirements of the model, which may be a challenge for resource-constrained environments.
[0078] Processing of node attributes and edge relationship types: In multi-relation graph learning, node attributes and edge relationship types are important sources of information. However, some methods may ignore the information of node attributes or edge relationship types when processing multi-relation graphs, or lack effective processing mechanisms for sparse or missing node attributes and edge relationship types. This may cause the model to be unable to fully utilize this information, affecting the ability to represent entities and relationships.
[0079] Sample imbalance problem: In multi-relation graph learning, the sample distribution between different relations may be unbalanced. The number of samples of some relations is significantly less than that of other relations, which may cause the model to favor more common relations during learning and ignore those relations with fewer samples. To solve this problem, it is necessary to design a suitable sampling strategy or loss function to balance the importance of each relation to ensure that the model can accurately learn the representation of all relations.
[0080] Lack of adversarial learning: Existing multi-relational graph learning methods often lack adversarial learning mechanisms, that is, they cannot effectively combat noise or interference signals. In real-world knowledge graphs, there may be some errors, noise, or incomplete information. The lack of adversarial learning mechanisms may cause the model to be sensitive to abnormal data or noise, reducing the robustness and generalization ability of the model.
[0081] Limited by data size and quality: Multi-relational graph learning methods usually require large-scale labeled data for training to achieve good performance. However, real-world multi-relational graph datasets are often limited in size and of varying quality. This may limit the model's ability to be applied in real-world scenarios and have a negative impact on the model's generalization ability.
[0082] In summary, GCN-based multi-relation graph learning methods have made significant progress in learning entity and relation representations in knowledge graphs, but there are still some challenges and limitations.
[0083] Recent studies have introduced contrastive learning into multi-relational graph learning to deal with the label sparsity problem of self-supervisory signals. For example, NC-KGE introduced a node-based CL method for knowledge graph learning. CMGNN encodes two views containing connected neighbors and a knowledge graph diffusion for multimodal knowledge graph learning. VMCL designs two CL objectives that work across entities and meta-kg to simulate the transfer mode of inductive knowledge graph embedding. In order to effectively perform multi-relational recommendations, CKGC developed a cross-modal KGs contrastive learning method based on descriptive attributes and structural connections. KGCL proposed a contrastive learning model that can alleviate the information noise of knowledge graphs enhanced with recommendations. RCL enhances multi-relational recommendations at the behavioral level. In addition, some other application areas of multi-relational graph learning models have emerged. For example, ConvQA proposed a contrastive learning method to sort KG paths for conversational question answering. MRCGNN generates two contrastive views by randomly shuffling edge relations and node features for multi-relational drug-drug interaction event prediction. KRACL1 uses contrastive loss and cross entropy loss to alleviate the sparsity of KGs in sparse knowledge graph completion. However, most existing models mainly utilize human-designed graph augmentations to process domain-specific datasets. Their applicability to multi-relational graph datasets from different domains is rather limited.
[0084] The multi-relational graph learning method based on GCL (Graph Contrastive Learning) is relatively new and is still in the stage of continuous development and exploration. Although this method has many advantages, it also has some potential limitations and challenges:
[0085] Complexity of contrast task design: GCL methods usually rely on contrastive learning, and need to design appropriate contrast tasks to generate contrast signals to promote model learning. However, designing effective contrast tasks may not be a simple matter. How to select appropriate positive and negative sample pairs and define a reasonable contrast loss function all require careful design, otherwise it may affect the effect of model learning.
[0086] Computational complexity: Since the GCL method usually requires a large amount of negative sample sampling and comparison calculations, it may be computationally complex and expensive, especially on large-scale graph data. This may limit the scalability and efficiency of the method in practical applications.
[0087] Labeled data requirements: Similar to other self-supervised learning methods, GCL methods also require sufficient labeled data to support the training of contrastive learning tasks. In real-world graph data, obtaining large-scale labeled data may be challenging, which may limit the feasibility of GCL methods in practical applications.
[0088] Generalization challenge: When learning graph representations, GCL methods need to fully consider the global information of the graph structure in order to generate representations with good generalization capabilities. However, how to ensure that the learned representations can be generalized to unseen graph scenarios remains a challenge. Especially for rare or special types of graph data, GCL methods may need more improvements to improve generalization capabilities.
[0089] Sample imbalance processing: In actual graph data, there may be an imbalance in the number of samples between different relations or entities, which may have a negative impact on the training of the GCL method. How to effectively handle sample imbalance so that the model can fully learn the representation of various relations and entities is still a problem that needs to be solved.
[0090] Interpretability and visualization difficulty: The graph representations generated by GCL methods are often high-dimensional and abstract. How to convert these representations into a human-understandable form for interpretation and visualization remains a challenge.
[0091] In general, GCL-based multi-relational graph learning methods have great potential in graph representation learning, but they also face some challenges and limitations. Future research can be devoted to addressing these issues to improve the performance and applicability of GCL methods.
[0092] In response to these shortcomings, the present invention provides a graph contrastive learning architecture (MRGCL) for drug-target interaction multi-relationship graph learning, which uses a hierarchical attention mechanism (HAN) to construct a multi-relationship graph hierarchical attention network (MGHAN) as the main view of contrastive learning, thereby solving the shortcoming of ignoring the attention mechanism of the multi-relationship graph, greatly reducing the complexity of contrast task design, and greatly enhancing the generalization ability of the method. The use of the GCL strategy removes the limitations of supervised training, solves the sample imbalance problem, and also solves the problem of lack of adversarial learning.
[0093] Specifically, the MRGCL of the present invention first proposes a multi-relationship graph hierarchical attention network (MGHAN) to identify the importance between entities in the drug-target interaction multi-relationship graph, which consists of entity-level, relationship-level and hierarchical attention. More specifically, entity-level attention can identify the importance between an entity of a specific relationship type and its neighbors, relationship-level attention can identify the importance of different relationship types of a specific entity, and hierarchical attention can identify the importance of different propagation layers of MGHAN of a specific entity. In this way, MGHAN can learn the importance of different levels between entities and extract local graph dependencies. Then, the present invention uses a variant MGHAN to automatically learn two graph-enhanced views with adaptive topology. In more detail, the present invention removes the relationship-level attention from MGHAN to learn the contrast views. Figure 1, and remove entity-level and relation-level attention from MGHAN to learn contrastive views Figure 2 . In this way, by automatically learning two graph enhancement views through the variant MGHAN, the integrity of task-related information can be maintained and automatically adapted to multi-relational graph datasets in different disease areas. Finally, the present invention designs a subgraph contrast loss to generate positive pairs for each target node. Specifically, the present invention first constructs all k-hop neighbors of the target node in the same view as their strongly connected subgraphs. Then, the present invention calculates the subgraph embedding of each target node as a positive pair, so that the local high-order relations of the target node can be extracted, thereby achieving high-quality node learning.
[0094] The technical solutions provided by various embodiments of the present application are described in detail below in conjunction with the accompanying drawings.
[0095] Figure 1 The following is a flow chart of a method for predicting drug-target relationship in this specification, which specifically includes the following steps:
[0096] S101: Obtain a drug-target interaction multi-relationship graph.
[0097] Generally, a knowledge graph is a structural expression of knowledge. It connects entities in a directed graph, where nodes represent real entities and relationships between nodes represent relationships between entities. In drug discovery applications, drug entities and target entities are nodes in the knowledge graph, and the relationships between drug entities and target entities are edges between nodes, forming a drug-target interaction multi-relationship graph, i.e., a drug-target knowledge graph.
[0098] Based on this, the business platform can obtain pre-built drug-target interaction multi-relationship graphs, or obtain built biomedical knowledge graphs from third-party platforms.
[0099] The obtained drug-target interaction multi-relationship graph can be expressed as:
[0100] G=(V,R,ξ),{(v,r,u)∈V×R×V}
[0101] Where G is the drug-target interaction multi-relation graph, V is the entity set including drugs and targets, R is the relationship set between drugs and targets, ξ represents the knowledge set, and in the triple (v, r, u), v is the drug entity, u is the target entity, and r is the relationship type between drug entity v and target entity u.
[0102] The server mentioned in this specification can be a server set up on a business platform, or a device such as a desktop computer, a laptop computer, etc. that can execute the solution of this specification. For the convenience of description, the following description is based on the server as the execution subject.
[0103] S102: Based on the multi-relationship graph neural network, construct the entity-level attention of the importance of different drug or target entities under each drug-target relationship type in the drug-target interaction multi-relationship graph, construct the relationship-level attention of the importance of different drug-target relationship types under each drug or target entity in the drug-target interaction multi-relationship graph, and construct the hierarchical attention of the drug or target entity embedding level in the drug-target interaction multi-relationship graph to obtain the drug-target multi-relationship graph hierarchical attention network and use it as the main view for comparative learning.
[0104] After obtaining the drug-target interaction multi-relationship graph, it can be used as training data to train the network embedding model constructed by the present invention. Of course, it can also be divided into training data and test data according to a preset ratio.
[0105] For the network embedding model, the present invention provides a graph contrast learning architecture (MRGCL) for multi-relation graph learning. The architecture is based on a multi-relation graph neural network and introduces a hierarchical attention mechanism, so that the constructed model can pay attention to the importance of different entities under each drug-target relationship type, the importance of different drug-target relationship types under each drug entity or target entity, and the adaptive contribution of the embedding level to the final entity representation.
[0106] Specifically, MGHAN consists of entity-level, relation-level, and hierarchical attention. Each propagation layer i is defined as:
[0107]
[0108] in, represents the vector representation of drug entity v in layer i∈I, represents the vector representation of the target entity u in the i∈I layer, represents the neighbor node set of drug entity v under drug-target relationship type r, and Represents the weight matrix to be trained in the i-th layer.
[0109] Here use The entity-level attention of different entity importances under each drug-target relationship type in the drug-target interaction multi-relation graph is defined, which can be constructed as follows:
[0110]
[0111] in, represents the input representation vector of drug entity v under drug-target relationship type r, represents the input representation vector of the target entity u under the drug-target relationship type r, || represents the connection operator, and a rrepresents the weight vector parameter of the attention function of drug-target relationship type r. Thus, It represents the importance coefficient between entities under drug-target relationship type r based on the softmax function to reveal the importance of target entity u to drug entity v.
[0112] Here we use To define the hierarchical attention of the drug or target entity embedding level of the drug-target interaction multi-relation graph:
[0113]
[0114] Among them, q T Define entity-level attention vector. R defines the set of drug-target relationship types, W r and b r is the parameter to be trained. The importance of different drug-target relationship types under drug entity v can be characterized.
[0115] Considering that the representation vectors of MGHAN at different propagation layers contain different levels of interactive information, a hierarchical attention c i , these embeddings are combined to obtain the final embedding v of each entity, which can be constructed as follows:
[0116]
[0117] Among them, c i The hierarchical attention characterizes the adaptive contribution of the i-th layer embedding to the final entity representation. In this way, c i The importance of different propagation layers of MGHAN for drug entity v can be determined.
[0118] After constructing three types of attention based on the multi-relation graph neural network, the obtained model architecture is used as the drug-target multi-relation graph hierarchical attention network and as the contrastive learning main view in contrastive learning.
[0119] S103: removing the entity-level attention in the hierarchical attention network of the drug-target multi-relationship graph to obtain a first comparison view; removing the entity-level attention and relationship-level attention in the hierarchical attention network of the drug-target multi-relationship graph to obtain a second comparison view.
[0120] S104: Inputting the drug-target interaction multi-relationship graph into the contrast learning main view, the first contrast view and the second contrast view respectively for network embedding.
[0121] After constructing the comparative learning main view, the server may further make adjustments based on the comparative learning main view to obtain multiple comparative views, so that the feature information contained in each comparative view has different emphases.
[0122] Specifically, a variant MGHAN can be used here to automatically learn two graph enhancement views with adaptive topology. First, the entity level attention can be removed from MGHAN To obtain the first contrast view and learn the first contrast view, each propagation layer i for the first contrast view can be defined as:
[0123]
[0124] in, represents the input representation vector of drug entity v under drug-target relationship type r in the first comparison view, Here, similar MGHAN parameters are used to obtain the network embedding reconstruction view.
[0125] Then, entity-level attention can be removed from MGHAN and relational level attention To obtain the first contrast view and learn the second contrast view, each propagation layer i for the second contrast view can be defined as:
[0126]
[0127] in, represents the input representation vector of drug entity v under drug-target relationship type r in the second comparison view, Represents the input representation vector of the target entity u under the drug-target relationship type r in the second comparison view. Similar MGHAN parameters are also used here to obtain the network embedding reconstruction view
[0128] S105: constructing a total contrast loss according to maximizing the consistency of network embedding between the target entity and its neighbor entities in the contrastive learning main view and maximizing the difference between the embedding of the target entity in the first contrast view and the second contrast view and the full image of the contrastive learning main view; training the drug-target multi-relationship graph hierarchical attention network with minimizing the total contrast loss as the optimization goal; and predicting the drug-target relationship through the trained drug-target multi-relationship graph hierarchical attention network.
[0129] After obtaining the contrast learning main view, the first contrast view and the second contrast view through the above, the server can jointly train the three to enhance the contrast learning main view and complete the training of the contrast learning main view, and then predict the drug-target relationship through the trained drug-target multi-relationship graph hierarchical attention network.
[0130] Specifically, in order to train the model parameters, the present invention designs a sub-image contrast loss to compare the network embeddings of the two contrast views with the network embeddings of the contrast learning main view. The first contrast loss function between the first contrast view and the contrast learning main view is:
[0131]
[0132] Among them, g is the network embedding global graph representation of the drug-target interaction multi-relation graph G = (V, R, ξ) by contrastive learning main view, which can be obtained by reading out the function g = Γ(H), and e represents the subgraph representation of the target node corresponding to the drug or target entity in the network embedding global graph, which can be obtained by calculating the embedding of all k-hop neighbors of the target node in the same view. Where W is the parameter matrix to be trained, represents the vector representation of entity u in the first comparison view, |V| represents the number of drug and target entities in the main view, represents the number of drug and target entities in the first comparison view. The second comparison loss function between the second comparison view and the comparison learning main view is:
[0133]
[0134] in, Indicates the number of drug and target entities in the second comparison view, Represents the vector representation of the target entity u in the second comparison view.
[0135] The training goal of contrastive learning is to maximize the consistency between H and e, maximizing The difference between and g, where Respectively represent the embedding vectors of the contrasting views: and In this way, the contrast loss here can pull together the subgraph representations of the target node to guide high-quality node learning. For specific multi-relation prediction tasks, the contrast loss is optimized together with the main objective function, which can be constructed as follows:
[0136]
[0137] Among them, θ1 and θ2 are the hyperparameters that contribute to the contrastive loss control. m is the main objective function, which can be constructed as follows:
[0138]
[0139] Among them, Ω defines the training set, represents the probability that the drug-target entity pair (v,u) belongs to the drug-target relationship type r, express The corresponding label.
[0140] based on Figure 1 The network embedding method for multi-relation graph learning shown in the figure adopts multi-view embedding technology and hierarchical attention mechanism, so that the feature information contained in each view has different focuses. Using the idea of contrastive learning, the embedding representation of the drug-target interaction multi-relation graph is learned. In contrastive learning, the contrastive view can flexibly adjust the parameters according to the actual application scenario, which improves the applicability of graph data for different disease types.
[0141] Figure 2 A schematic diagram of the overall framework for predicting a drug-target relationship in this specification, consisting of Figure 2 It can be seen that it includes three parts: (1) The model input represents a drug-target interaction multi-relation graph. (2) The main view and the comparison view. The main view is based on the multi-relation graph neural network. It constructs the entity-level attention of the importance of different entities in the drug-target interaction multi-relation graph under each drug-target relationship type, constructs the relationship-level attention of the importance of different drug-target relationship types in the drug-target interaction multi-relation graph under each drug or target entity, and constructs the hierarchical attention of the drug or target entity embedding level in the drug-target interaction multi-relation graph. The hierarchical attention network of the drug-target multi-relation graph is obtained as the main view for comparative learning. For the two comparison views, the first comparison view is obtained by removing the entity-level attention in the multi-relation graph hierarchical attention network. And the entity-level attention and relationship-level attention in the multi-relation graph hierarchical attention network are removed to obtain the second comparison view. (3) Comparison optimization strategy: According to maximizing the consistency between the main view target node and its subgraph embedding e, and maximizing the difference between the target node in the two comparison views and the main view full graph embedding g, the total comparison loss function is constructed. The drug target multi-relation graph hierarchical attention network is trained with minimizing the total comparison loss as the optimization goal. Drug target prediction is performed through the trained drug target multi-relationship graph hierarchical attention network.
[0142] The present invention first uses multi-view embedding technology and hierarchical attention mechanism to represent the nodes in the network as vector representations under different views. The feature information contained in each view has different focuses, such as node attributes, connection relationships between nodes, etc. Then, using the idea of contrastive learning, a contrastive loss function for the points to be protected is defined. This loss function aims to maximize the consistency of the node under different views and minimize its difference from other nodes. By optimizing this loss function, the present invention can learn the embedded representation of the node while maintaining the integrity of its topological features and privacy information.
[0143] The present invention combines the hierarchical attention mechanism, multi-graph embedding and contrastive learning techniques, and can provide more in-depth and effective topological feature analysis while learning attention semantics. Compared with the traditional embedding perturbation method, it does not need to learn embedding processing for the entire graph data, but only needs to protect the traversed nodes and their neighboring nodes. At the same time, it can flexibly adjust parameters according to the actual application scenario, and has good applicability to different types of graph data.
[0144] The innovation of this invention lies in the combination of hierarchical attention mechanism, multi-graph embedding and contrastive learning technology, which can provide more in-depth and effective topological feature analysis while learning attention semantics. This method provides a powerful tool for the research and application of networks in different fields, and further promotes the understanding and protection of network topology.
[0145] The present invention designs a subgraph contrast loss to generate a positive pair of each target node, which can extract the local high-order relationship of the target node, thereby achieving high-quality node learning. The implementation process of this method requires first forming a subgraph of the k-hop neighbor nodes around the traversal node and representing it in vector form. Then, a subgraph contrast loss function is defined, and the idea of contrastive learning is used for optimization so that the traversed nodes are consistent under different views. Finally, the model is trained by self-supervised learning so that the topological position and neighbor relationship of the traversed node are protected and its sensitive information is extracted.
[0146] In summary, this invention provides a new idea and tool that can be used to effectively extract structural information and semantic information from different types of graph data. It can combine attention mechanism and contrastive learning technology to provide more in-depth topological feature analysis and privacy protection, and provide strong support for the research and application of graph data.
[0147] When applying the network embedding method for multi-relational graph learning provided in this specification, it is not necessary to Figure 1 The steps are executed in the order shown. The specific execution order of the steps can be determined according to needs, and this manual does not limit this.
[0148] The above is a network embedding method for multi-relation graph learning provided by one or more embodiments of this specification. Based on the same idea, this specification also provides a corresponding network embedding device for multi-relation graph learning, such as Figure 3 shown.
[0149] Figure 3 A schematic diagram of a network embedding device for multi-relational graph learning provided in this specification includes:
[0150] The acquisition module 201 is used to acquire scene data in a specific application scenario;
[0151] A construction module 202 is used to construct entity-level attention of the importance of different drugs or target entities under each drug-target relationship type in the drug-target interaction multi-relationship graph based on a multi-relationship graph neural network, construct relationship-level attention of the importance of different drug-target relationship types under each drug or target entity in the drug-target interaction multi-relationship graph, and construct hierarchical attention of the embedding level of drugs or target entities in the drug-target interaction multi-relationship graph, so as to obtain a hierarchical attention network of the drug-target multi-relationship graph and use it as a main view for comparative learning;
[0152] The comparison view construction module 203 is used to remove the entity-level attention in the hierarchical attention network of the drug-target multi-relationship graph to obtain a first comparison view; remove the entity-level attention and the relationship-level attention in the hierarchical attention network of the drug-target multi-relationship graph to obtain a second comparison view;
[0153] A network embedding module 204, for inputting the drug-target interaction multi-relationship graph into the contrast learning main view, the first contrast view and the second contrast view for network embedding;
[0154] The training and application module 205 is used to construct a total contrast loss based on maximizing the consistency of the network embedding between the target entity and its neighbor entities in the contrast learning main view and maximizing the difference between the target entity in the first contrast view and the second contrast view and the full-image embedding of the contrast learning main view; and train the drug-target multi-relationship graph hierarchical attention network with minimizing the total contrast loss as the optimization goal; and predict the drug-target relationship through the trained drug-target multi-relationship graph hierarchical attention network.
[0155] Optionally, the drug-target interaction multi-relationship graph is:
[0156] G=(V,R,ξ), {(v,r,u)∈V×R×V};
[0157] Among them, G is the drug-target interaction multi-relation graph, V is the entity set including drugs and targets, R is the relationship set between drugs and targets, ξ represents the knowledge set, and in the triple (v, r, u), v is the drug entity, u is the target entity, and r is the drug-target relationship type between drug entity v and target entity u.
[0158] Optionally, the construction module 202 constructs the entity-level attention of the importance of different drugs or target entities under each drug-target relationship type in the drug-target interaction multi-relationship graph by the following formula:
[0159]
[0160] The drug-target interaction multi-relation graph is constructed by the following formula to obtain the relation-level attention of the importance of different drug-target relationship types under each drug or target entity:
[0161]
[0162] The hierarchical attention of drug or target entity embedding level of drug-target interaction multi-relation graph is constructed by the following formula:
[0163]
[0164] Among them, v is the drug entity, u is the target entity, and r is the drug-target relationship type. represents the input representation vector of drug entity v under drug-target relationship type r, represents the input representation vector of the target entity u under the drug-target relationship type r, || represents the connection operator, and a r represents the weight vector parameter of the attention function of drug-target relationship type r, represents the importance coefficient between entities under drug-target relationship type r based on the softmax function, characterizing the importance of target entity u to drug entity v, σ represents the activation function, q T represents the entity-level attention vector, R represents the set of drug-target relationship types, and W r and b r are the parameters to be trained, is the set of all neighbor target entities of drug entity v under drug-target relationship type r, represents the importance of different drug-target relationship types under drug entity v, is the vector representation of the drug entity or target entity in the embedding propagation layer i, c i The hierarchical attention represents the importance of different propagation layers to the drug entity v, characterizing the adaptive contribution of the i-th layer embedding to the final entity representation.
[0165] Optionally, the propagation layers of the obtained drug-target multi-relationship graph hierarchical attention network are:
[0166]
[0167] in, represents the importance of different drug-target relationship types under drug entity v, represents the importance coefficient between entities under drug-target relationship type r, represents the vector representation of drug entity v in layer i∈I, represents the vector representation of the target entity u in the i∈I layer, represents the neighbor node set of drug entity v under drug-target relationship type r, and Represents the weight matrix to be trained in the i-th layer.
[0168] Optionally, each propagation layer of the obtained first comparison view is:
[0169]
[0170] The propagation layers of the second comparison view are obtained as follows:
[0171]
[0172] Among them, v is the drug entity, u is the target entity, and r is the drug-target relationship type. represents the input representation vector of drug entity v under drug-target relationship type r in the first comparison view, represents the input representation vector of the target entity u under the drug-target relationship type r in the first comparison view, represents the input representation vector of drug entity v under drug-target relationship type r in the second comparison view, represents the input representation vector of the target entity u under the drug-target relationship type r in the second comparison view, represents the importance of different drug-target relationship types under drug entity v, and Represents the weight matrix to be trained in the i-th layer.
[0173] Optionally, in the training and application module 205, a first contrast loss function between the first contrast view and the contrast learning main view is:
[0174]
[0175] The second contrast loss function between the second contrast view and the contrast learning main view is:
[0176]
[0177] The total contrast loss is:
[0178]
[0179] Where v is the drug entity, u is the target entity, r is the drug-target relationship type, g is the network embedding global graph representation of the drug-target interaction multi-relationship graph G = (V, R, ξ) by the contrastive learning main view, and e is the subgraph representation of the target node corresponding to the drug or target entity in the network embedding global graph, including multiple neighbor entities. W is the parameter matrix to be trained, represents the vector representation of entity u in the first comparison view, |V| represents the number of drug and target entities in the main view, represents the number of drug and target entities in the first comparison view, Indicates the number of drug and target entities in the second comparison view, represents the vector representation of the target entity u in the second contrast view, θ1 and θ2 are the hyperparameters contributing to the contrast loss control, and L m is the main objective function, Ω represents the training set, represents the probability that the drug-target entity pair (v,u) belongs to the drug-target relationship type r, express The corresponding label.
[0180] For the specific definition of the network embedding device for multi-relation graph learning, please refer to the definition of the network embedding method for multi-relation graph learning above, which will not be repeated here. Each module in the above-mentioned network embedding device for multi-relation graph learning can be implemented in whole or in part by software, hardware and a combination thereof. The above-mentioned modules can be embedded in or independent of the processor in the computer device in the form of hardware, or can be stored in the memory of the computer device in the form of software, so that the processor can call and execute the operations corresponding to the above modules.
[0181] This specification also provides a computer-readable storage medium, which stores a computer program, which can be used to execute the above Figure 1 The proposed network embedding method for multi-relational graph learning.
[0182] This manual also provides Figure 4 The structural diagram of the computer device shown in FIG. Figure 4 As mentioned above, at the hardware level, the computer device includes a processor, an internal bus, a network interface, a memory, and a non-volatile memory, and may also include other hardware required for the business. The processor reads the corresponding computer program from the non-volatile memory into the memory and then runs it to achieve the above Figure 1 The proposed network embedding method for multi-relational graph learning.
[0183] Those of ordinary skill in the art can understand that all or part of the processes in the above-mentioned embodiment methods can be completed by instructing the relevant hardware through a computer program, and the computer program can be stored in a non-volatile computer-readable storage medium. When the computer program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, any reference to memory, storage, database or other media used in the embodiments provided in this application can include at least one of non-volatile and volatile memory. Non-volatile memory can include read-only memory (ROM), magnetic tape, floppy disk, flash memory or optical memory, etc. Volatile memory can include random access memory (RAM) or external cache memory. As an illustration and not limitation, RAM can be in various forms, such as static random access memory (SRAM) or dynamic random access memory (DRAM).
[0184] 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.
Claims
1. A method for predicting drug-target relationship, characterized in that: include: Obtain a drug-target interaction multi-relation graph; the drug-target interaction multi-relation graph is: G = (V, R, ξ), {(v, r, u) ∈ V × R × V}; Based on the multi-relation graph neural network, the entity-level attention of the importance of different drugs or target entities under each drug-target relationship type is constructed by the following formula: The drug-target interaction multi-relation graph is constructed by the following formula to obtain the relation-level attention of the importance of different drug-target relationship types under each drug or target entity: And the hierarchical attention of drug or target entity embedding level in drug-target interaction multi-relation graph is constructed by the following formula: The drug-target multi-relationship graph hierarchical attention network is obtained and used as the main view for comparative learning; the propagation layers of the drug-target multi-relationship graph hierarchical attention network are obtained as follows: The entity-level attention in the hierarchical attention network of the drug-target multi-relation graph is removed to obtain the first comparative view; The entity-level attention and relationship-level attention in the hierarchical attention network of the drug-target multi-relation graph are removed to obtain a second comparative view; The propagation layers of the second comparison view are obtained as follows: The drug-target interaction multi-relationship graph is respectively input into the contrastive learning main view, the first contrastive view and the second contrastive view for network embedding; According to maximizing the consistency of network embedding between the target entity and its neighbor entities in the contrastive learning main view and maximizing the difference between the target entity in the first contrast view and the second contrast view and the full image embedding of the contrastive learning main view, the total contrast loss is constructed; and the hierarchical attention network of the drug-target multi-relation graph is trained with minimizing the total contrast loss as the optimization goal; and the drug-target relationship is predicted by the trained drug-target multi-relation graph hierarchical attention network; the first contrast loss function between the first contrast view and the contrastive learning main view is: The second contrast loss function between the second contrast view and the contrast learning main view is: The total contrast loss is: Where G is the drug-target interaction multi-relation graph, V is the entity set including drugs and targets, R is the relationship set between drugs and targets, ξ represents the knowledge set, and in the triple (v, r, u), v is the drug entity, u is the target entity, and r is the relationship type between drug entity v and target entity u; represents the input representation vector of drug entity v under drug-target relationship type r, represents the input representation vector of the target entity u under the drug-target relationship type r, || represents the connection operator, and a r represents the weight vector parameter of the attention function of drug-target relationship type r, represents the importance coefficient between entities under drug-target relationship type r based on the softmax function, characterizing the importance of target entity u to drug entity v, σ represents the activation function, q T represents the drug or target entity-level attention vector, R represents the set of drug-target relationship types, and W r and b r are the parameters to be trained, is the set of all neighbor target entities of drug entity v under drug-target relationship type r, represents the importance of different drug-target relationship types under drug entity v, is the vector representation of the drug entity or target entity in the embedding propagation layer i, c i The hierarchical attention representing the importance of different propagation layers to the drug entity v, characterizing the adaptive contribution of the i-th layer embedding to the final entity representation; represents the vector representation of drug entity v in layer i∈I, represents the vector representation of the target entity u in the i∈I layer, represents the neighbor node set of drug entity v under drug-target relationship type r, and Represents the weight matrix to be trained at the i-th layer; represents the input representation vector of drug entity v under drug-target relationship type r in the first comparison view, represents the input representation vector of the target entity u under the drug-target relationship type r in the first comparison view, represents the input representation vector of drug entity v under drug-target relationship type r in the second comparison view, represents the input representation vector of the target entity u under the drug-target relationship type r in the second comparison view; g is the network embedding global graph representation of the drug-target interaction multi-relationship graph G = (V, R, ξ) of the comparison learning main view, and e represents the subgraph representation of the target node corresponding to the drug or target entity in the network embedding global graph, including multiple neighbor entities. W is the parameter matrix to be trained, represents the vector representation of entity u in the first comparison view, |V| represents the number of drug and target entities in the main view, represents the number of drug and target entities in the first comparison view, Indicates the number of drug and target entities in the second comparison view, represents the vector representation of the target entity u in the second contrast view, θ1 and θ2 are the hyperparameters contributing to the contrast loss control, and L m is the main objective function, Ω represents the training set, represents the probability that the drug-target entity pair (v,u) belongs to the drug-target relationship type r, express The corresponding label.
2. A device for predicting drug-target relationship, characterized in that: include: An acquisition module is used to acquire a drug-target interaction multi-relation graph; the drug-target interaction multi-relation graph is: G = (V, R, ξ), {(v, r, u)∈V×R×V}; A construction module is used to construct the entity-level attention of the importance of different drugs or target entities under each drug-target relationship type in the drug-target interaction multi-relation graph based on the multi-relation graph neural network through the following formula: The drug-target interaction multi-relation graph is constructed by the following formula to obtain the relation-level attention of the importance of different drug-target relationship types under each drug or target entity: And the hierarchical attention of drug or target entity embedding level in drug-target interaction multi-relation graph is constructed by the following formula: The drug-target multi-relationship graph hierarchical attention network is obtained and used as the main view for comparative learning; the propagation layers of the drug-target multi-relationship graph hierarchical attention network are obtained as follows: A comparison view construction module is used to remove entity-level attention in the hierarchical attention network of the drug-target multi-relation graph to obtain a first comparison view; The propagation layers of the first comparison view are obtained as follows: The entity-level attention and relationship-level attention in the hierarchical attention network of the drug-target multi-relation graph are removed to obtain a second comparative view; The propagation layers of the second comparison view are obtained as follows: A network embedding module, used to input the drug-target interaction multi-relationship graph into the contrast learning main view, the first contrast view and the second contrast view for network embedding; The training and application module is used to construct a total contrast loss based on maximizing the consistency of network embedding between the target entity and its neighbor entity in the contrast learning main view and maximizing the difference between the target entity in the first contrast view and the second contrast view and the full image embedding of the contrast learning main view; and to train the drug-target multi-relationship graph hierarchical attention network with minimizing the total contrast loss as the optimization goal; and to predict the drug-target relationship through the trained drug-target multi-relationship graph hierarchical attention network; the first contrast loss function between the first contrast view and the contrast learning main view is: The second contrast loss function between the second contrast view and the contrast learning main view is: The total contrast loss is: Where G is the drug-target interaction multi-relation graph, V is the entity set including drugs and targets, R is the relationship set between drugs and targets, ξ represents the knowledge set, and in the triple (v, r, u), v is the drug entity, u is the target entity, and r is the relationship type between drug entity v and target entity u; represents the input representation vector of drug entity v under drug-target relationship type r, represents the input representation vector of the target entity u under the drug-target relationship type r, || represents the connection operator, and a r represents the weight vector parameter of the attention function of drug-target relationship type r, represents the importance coefficient between entities under drug-target relationship type r based on the softmax function, characterizing the importance of target entity u to drug entity v, σ represents the activation function, q T represents the drug or target entity-level attention vector, R represents the set of drug-target relationship types, and W r and b r are the parameters to be trained, is the set of all neighbor target entities of drug entity v under drug-target relationship type r, represents the importance of different drug-target relationship types under drug entity v, is the vector representation of the drug entity or target entity in the embedding propagation layer i, c i The hierarchical attention representing the importance of different propagation layers to the drug entity v, characterizing the adaptive contribution of the i-th layer embedding to the final entity representation; represents the vector representation of drug entity v in layer i∈I, represents the vector representation of the target entity u in the i∈I layer, represents the neighbor node set of drug entity v under drug-target relationship type r, and Represents the weight matrix to be trained at the i-th layer; represents the input representation vector of drug entity v under drug-target relationship type r in the first comparison view, represents the input representation vector of the target entity u under the drug-target relationship type r in the first comparison view, represents the input representation vector of drug entity v under drug-target relationship type r in the second comparison view, represents the input representation vector of the target entity u under the drug-target relationship type r in the second comparison view; g is the network embedding global graph representation of the drug-target interaction multi-relationship graph G = (V, R, ξ) of the comparison learning main view, and e represents the subgraph representation of the target node corresponding to the drug or target entity in the network embedding global graph, including multiple neighbor entities. W is the parameter matrix to be trained, represents the vector representation of entity u in the first comparison view, |V| represents the number of drug and target entities in the main view, represents the number of drug and target entities in the first comparison view, represents the number of drug and target entities in the second comparison view, h u represents the vector representation of the target entity u in the second contrast view, θ1 and θ2 are the hyperparameters contributing to the contrast loss control, and L m is the main objective function, Ω represents the training set, represents the probability that the drug-target entity pair (v,u) belongs to the drug-target relationship type r, express The corresponding label.
3. A computer-readable storage medium, characterized in that: The storage medium stores a computer program, and when the computer program is executed by a processor, the method according to claim 1 is implemented.
4. A computer device, characterized in that: The invention comprises a memory, a processor and a computer program stored in the memory and executable on the processor, wherein the method according to claim 1 is implemented when the processor executes the program.
