A method and system for predicting drug efficacy

By constructing a medicinal material-efficacy heterogeneous network graph and a random walk of the Metapath2vec algorithm, combined with the Word2vec model, the problem of efficacy prediction of Chinese medicinal materials in the field of traditional Chinese medicine is solved, accurate prediction of the efficacy of new prescriptions is achieved, and the efficiency of traditional Chinese medicine research and development is improved.

CN118098435BActive Publication Date: 2024-09-20MINZU UNIVERSITY OF CHINA +1
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410155879.0
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-02-04
Publication Date
2024-09-20
Estimated Expiration
2044-02-04

AI Technical Summary

Technical Problem

Existing technology is difficult to effectively predict the efficacy of medicinal materials in the field of traditional Chinese medicine. In particular, the ability to predict the efficacy of newly developed drugs or unknown compounds is limited, which limits the efficiency of research and development of new prescriptions.

Method used

A custom meta-path method is used to construct a heterogeneous network graph of medicinal materials and efficacy. Metapath2vec algorithm is used to conduct random walks based on meta-paths. Combined with Word2vec model training, node vector representations of medicinal materials and efficacy are generated, and the similarity between medicinal materials and efficacy is calculated to predict Drug efficacy.

Benefits of technology

It achieves objective and effective prediction of drug efficacy, assists the selection of traditional Chinese medicine materials and the development of new prescriptions, and improves the efficiency of research and development of new prescriptions.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118098435B
    Figure CN118098435B
Patent Text Reader

Abstract

The present invention discloses a method and system for drug efficacy prediction, which relates to the field of traditional Chinese medicine. The method includes: constructing a heterogeneous network diagram of medicinal materials and efficacy; based on the constructed heterogeneous network diagram of medicinal materials and efficacy, performing a metapath-based random walk through the Metapath2vec algorithm, and generating a node walk sequence; performing model training, and learning the semantic relationship information between medicinal materials and efficacy through the Word2vec model; prediction and analysis. The present invention can effectively learn the efficacy information of Chinese medicinal materials from a large amount of data by using the Metapath2vec algorithm; the present invention can predict the efficacy of new drugs or new prescriptions by calculating the similarity of the vector representation of medicinal material nodes and efficacy nodes; the present invention can assist traditional Chinese medicine in understanding the efficacy of medicinal materials and medicinal properties, and help traditional Chinese medicine in selecting prescription medicinal materials and researching new prescriptions; the present invention greatly helps the research and development and efficiency of new prescriptions.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of traditional Chinese medicine, and in particular to a method and system for predicting drug efficacy. Background Art

[0002] In the field of traditional Chinese medicine, understanding and predicting the efficacy of medicinal materials is an important and complex task. Traditional research on the efficacy of medicinal materials usually relies on the judgment of experienced Chinese medicine practitioners, but this method is greatly affected by subjective factors and requires a high level of experience from Chinese medicine practitioners. In addition, for newly developed drugs or unknown compound prescriptions, there is a lack of effective prediction methods to pre-recognize their efficacy, which greatly hinders the efficiency of the research and development of new prescriptions.

[0003] However, existing technologies are relatively limited in their ability to process such heterogeneous data: for each medicinal material, existing technologies do not provide an effective method to determine its main efficacy, which limits Chinese medicine's comprehensive understanding of medicinal materials and medicinal properties; for newly developed or unknown drug prescriptions, existing technologies cannot provide accurate predictions of their efficacy, which affects the efficient development of new prescriptions.

[0004] Therefore, it is particularly important to develop an objective and effective method for predicting drug efficacy. Summary of the invention

[0005] The purpose of the present invention is to provide a method and system for predicting drug efficacy.

[0006] In order to achieve the above object, the present invention provides the following technical solutions:

[0007] In a first aspect, the present invention provides a method for predicting drug efficacy, comprising the following steps:

[0008] Step S1, using a custom meta-path method to construct a heterogeneous network diagram of medicinal materials and efficacy, in which all medicinal materials and efficacy are used as nodes, and the edges between them indicate that the medicinal materials have appeared in the prescription for treating the efficacy;

[0009] Step S2: Based on the constructed medicinal material-efficacy heterogeneous network diagram, a metapath-based random walk is performed through the Metapath2vec algorithm, and a node walk sequence is generated; the semantic relationship information between medicinal materials and efficacy is learned through Word2vec model training, and the semantic relationship information between medicinal materials and efficacy is transmitted and converged through the node walk sequence to obtain the node vector representation of medicinal materials and efficacy;

[0010] Step S3: predict the efficacy of a drug or prescription containing multiple medicinal materials by calculating the similarity between the vector representation of the medicinal material node and the vector representation of each efficacy node in the data set.

[0011] Furthermore, the specific operations of step S1 are as follows:

[0012] First, data for constructing a heterogeneous network diagram of medicinal materials and efficacy are collected, and then the collected data are analyzed to obtain data information between the components of the medicinal materials and the corresponding efficacy; the data information between the components of the medicinal materials and the corresponding efficacy is used to construct a heterogeneous network diagram of medicinal materials and efficacy.

[0013] Furthermore, in step S2, the transition probability formula of the i-th step of the random walk based on the meta-path is:

[0014]

[0015] in, represents the vertex, v i+1 Represents a vertex The neighbor vertices of V t A vertex set representing the type of medicinal material. Represents a vertex V t+1 The domain vertex of the type is the set of vertices directly connected to the vertex. In other words, v i+1 ∈V t+1 , V t+1 A collection of vertices representing utility types.

[0016] Furthermore, in step S2, the specific operation steps of the random walk based on the meta-path are as follows:

[0017] (1) Starting node selection: randomly select a node from the herbal medicine-effect heterogeneous network graph as the starting node;

[0018] (2) Random movement: Select the next node from the current node according to a certain strategy;

[0019] (3) Repeat the random movement process in step (2) until the predetermined walking length or other termination conditions are reached.

[0020] Furthermore, in step S2, the Word2vec model uses the Skip-Gram model.

[0021] Furthermore, in step S3, for the drug to be predicted, the node vector representation of each medicinal material in the drug is first obtained, and the node vector representations of its constituent medicinal materials are average pooled.

[0022] Furthermore, the specific steps of step S3 are as follows:

[0023] S31, using the Euclidean distance method to calculate the similarity between the node vector representation of the drug to be predicted and the node vector representation of each efficacy in the data set;

[0024] S32, arranging the calculated Euclidean distances in ascending order;

[0025] S33. According to the results of S32, which are arranged in ascending order by Euclidean distance, the correlation between the drug to be predicted and each efficacy is analyzed. If the Euclidean distance between the vector representation of the drug and the vector representation of a certain efficacy is smaller, it means that the vector representations between the drug and efficacy nodes are closer, and the correlation between the two is stronger, that is, the possibility that the drug has this efficacy is greater.

[0026] In a second aspect, the present invention provides a system for drug efficacy prediction, comprising the following modules to implement any of the above methods for drug efficacy prediction:

[0027] Heterogeneous network graph construction module, used to construct the herbal medicine-effect heterogeneous network graph;

[0028] Metapath2vec algorithm module, used to generate node walk sequences according to the random walk method based on metapath;

[0029] The model training module is used to learn the semantic relationship information between medicinal materials and efficacy, transfer and aggregate the semantic relationship information between medicinal materials and efficacy through the node walk sequence, and output the vector representation of each node;

[0030] The prediction and analysis module is used to predict the efficacy of the drug to be predicted, arrange the results in ascending order according to the Euclidean distance between the drug and the efficacy, and analyze the correlation between the drug to be predicted and each efficacy.

[0031] Compared with the prior art, the present invention has the following beneficial effects:

[0032] A method for drug efficacy prediction provided by the present invention, the core idea is to combine the heterogeneous network diagram of medicinal materials-efficacy and Metapath2vec algorithm, obtain the node walk sequence by the random walk of Meta-path (meta path), train and learn the node walk sequence by the Word2vec model, and fully learn the information transmitted and gathered by the walk sequence between nodes, that is, the node vector representation (embedding) of the medicinal material node and the efficacy node can be obtained respectively. Any subsequent research and calculation can use the node vector representation of each node as the representative of the node itself, and the similarity of the vector representation of the medicinal material node and the efficacy node is calculated by the Euclidean distance method, so as to achieve the prediction and analysis of the efficacy that the drug may have, and output the Euclidean distance size (the smaller the Euclidean distance, the greater the similarity, and the stronger the association) result of the vector representation of the drug and each efficacy. The present invention can assist traditional Chinese medicine in understanding the efficacy of medicinal materials and medicinal properties, and help traditional Chinese medicine in the selection of prescription medicinal materials and the research of new prescriptions, which greatly helps the research and development and efficiency of new prescriptions. BRIEF DESCRIPTION OF THE DRAWINGS

[0033] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings required for use in the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments recorded in the present invention. For ordinary technicians in this field, other drawings can also be obtained based on these drawings.

[0034] Figure 1 A flow chart of a method for predicting drug efficacy provided by an embodiment of the present invention.

[0035] Figure 2 The random walks method based on Meta-path provided in the embodiment of the present invention generates a node walk sequence.

[0036] Figure 3 A schematic diagram of the Skip-Gram model provided by an embodiment of the present invention.

[0037] Figure 4 An example of a heterogeneous network diagram provided for an embodiment of the present invention.

[0038] Figure 5 This is an example diagram of a node walk sequence generated by an embodiment of the present invention.

[0039] Figure 6 Description of patent information of the drug to be predicted provided in the embodiments of the present invention.

[0040] Figure 7 This is the efficacy information that the drug to be predicted should have provided in the embodiment of the present invention.

[0041] Figure 8 The Skip-gram model neural network structure provided by the embodiment of the present invention. DETAILED DESCRIPTION

[0042] In order to better understand the technical solution, the method of the present invention is described in detail below with reference to the accompanying drawings.

[0043] See also Figure 1 To illustrate, a method for predicting drug efficacy of the present invention specifically comprises the following steps:

[0044] Step S1, data preparation: construct a heterogeneous network diagram of medicinal materials and efficacy.

[0045] In the real world, many graphs contain multiple types of nodes and edges. Such graphs are called heterogeneous network graphs. Obviously, a homogeneous network graph is a special case of a heterogeneous network graph, where the types of nodes and edges are both 1.

[0046] In this scheme, the specific steps for constructing a heterogeneous network diagram of medicinal materials and efficacy are as follows:

[0047] First, collect data for constructing the heterogeneous network diagram of medicinal materials and efficacy. The data source can be patent data. For example, the incoPat (https: / / wwwincopat.com) library is used to partially collect global patents. The final data is obtained after deduplication and denoising of the preliminary collected data and manual screening. The retrieval time range is from January 1995 to November 2021. The sorted data is shown in Table 1.

[0048] Table 1

[0049]

[0050] Then the collected data are analyzed to obtain the data information between the components of the medicinal materials and the corresponding effects; using the data information between the components of the medicinal materials and the corresponding effects, a custom meta-path method is used to construct a medicinal material-effect heterogeneous network diagram.

[0051] Heterogeneous graphs are constructed by customizing the types of nodes and edges, extracting from relational databases (if the data is stored in a relational database, a heterogeneous graph can be constructed by querying the database and connecting the tables), knowledge graphs (extracting information from knowledge graphs to construct heterogeneous graphs), deep learning methods (some deep learning methods, such as graph neural networks (GNNs), heterogeneous graph neural networks (HIN-GNNs), etc., can implicitly construct heterogeneous graphs by learning node embeddings), etc. The present invention adopts a custom meta-paths method to construct heterogeneous graphs.

[0052] Step S2, model training: Based on the constructed medicinal material-efficacy heterogeneous network diagram, random walks based on metapaths are performed through the Metapath2vec algorithm, and a node walk sequence is generated; through Word2vec model training, the semantic relationship information between medicinal materials and efficacy is learned, and the semantic relationship information between medicinal materials and efficacy is transmitted and converged through the node walk sequence to obtain the node vector representation of medicinal materials and efficacy.

[0053] The Metapath2vec algorithm is a graph embedding method for heterogeneous information networks (HINs). Metapath2vec uses random walks based on Meta-path to construct a heterogeneous neighborhood for each vertex, and then uses the Word2vec model to complete the vertex embedding.

[0054] Meta-path is a structured expression in graph data. By specifying the type and order of the edges between nodes, a node sequence is formed. This node sequence can be used to represent a specific semantic relationship or structural pattern. In the present invention, the node sequence defined is medicinal material-effect. The edge between the medicinal material and the effect node indicates that the medicinal material has appeared in the prescription for treating the effect, that is, the edge between the medicinal material and the effect node means to connect the medicinal material and the effect that have a direct relationship.

[0055] The specific steps of random walk based on meta-path are as follows:

[0056] In homogeneous information networks, algorithms such as DeepWalk and node2vec use random walks to construct the context corpus of the Skip-Gram model. Without considering the vertex type and edge type, Represents from the vertex To its neighbor vertex v i+1 However, studies have shown that random walks on heterogeneous information networks tend to favor certain highly visible types of vertices, whose paths have a certain dominance in heterogeneous information networks, and a certain proportion of these paths point to a small set of nodes.

[0057] In view of this, the present invention adopts a random walk method based on Meta-path to generate the neighborhood context of the Skip-Gram model. The random walk method can simultaneously capture the semantic relationship and structural relationship between different types of vertices, and promote the conversion of heterogeneous information networks to the Skip-Gram model of Metapath2vec. Specifically, for the heterogeneous network graph of medicinal materials and efficacy G = (V, E, T), each node and edge corresponds to a mapping ∮(v): V->T V and ∮(e):E->T E ; where T V and T ERespectively represent the set of node types and the set of relationship types, ∮(v) represents mapping nodes to their corresponding types, for example, mapping a certain medicinal material to the "medicinal material" type, and mapping a certain efficacy to the "efficacy" type, ∮(e) represents mapping edges (edges connecting nodes represent the association between two nodes) to their corresponding types. v and e represent a specific node and a specific edge, respectively, and V and E represent the node set and edge set of the entire heterogeneous graph, respectively. Therefore, the transition probability formula for the i-th step of the random walk based on Meta-path is as follows:

[0058]

[0059] in, represents the vertex, v i+1 Represents a vertex The neighbor vertices of Represents a vertex V t+1 The set of domain vertices of the type (domain vertices are vertices directly connected to this vertex). In other words, v i+1 ∈V t+1 In this study, V t The vertex set representing the medicinal material type, V t+1 A collection of vertices representing utility types.

[0060] Among them, the specific operation steps of Random walks are as follows:

[0061] (1) Starting node selection: randomly select a node from the herbal medicine-effect heterogeneous network graph as the starting node;

[0062] (2) Random movement: Select the next node from the current node according to a certain strategy;

[0063] (3) Repeat the random movement process in step (2) until the predetermined walking length or other termination conditions are reached.

[0064] The node walk sequence obtained through the above operation is as follows Figure 2 As shown, d1-d4 represent medicinal material nodes, i1-i5 represent efficacy nodes, and the generated node walk sequences are d2-i2-d3 and d1-i3-d2-i5-d4.

[0065] The node walk sequence obtained above can be compared to the word sequence in natural language processing, and its node expression or word expression (node ​​vector representation) can be learned through the Word2vec model. Among them, the Word2vec model includes two models, one is the CBOW model and the other is the Skip-Gram model. The Skip-Gram model is used in the present invention. The simple schematic diagram of the Skip-Gram model is as follows Figure 3 As shown. The Word2vec algorithm model is relatively mature, so when using this algorithm, you only need to call its encapsulated package. The Skip-gram model is one of the cores of Word2vec. Here is an explanation of its mechanism:

[0066] Assuming that the sequence step length of the random walk is 7, by performing a walk step length of 7 on the herbal medicine-effect heterogeneous graph, one of the walk sequences is obtained: red dates, improve skin / oil content, aloe vera, enhance immunity, pumpkin, anti-oxidation, and codonopsis. Here, it is assumed that "enhance immunity" is the central word, and the sliding window is set to 2 (the sliding window is manually defined. If the sliding window size is 2, then the two words on the left and right of "enhance immunity" can be predicted by "enhance immunity", and so on. Of course, during the model training process, the sliding window is constantly rolling in the entire corpus, so every word will become the central word). Then, during the sliding window sliding process, when "enhance immunity" is the central word, the surrounding four words (improve skin / oil content, aloe vera, pumpkin, and anti-oxidation) can be predicted by "enhance immunity".

[0067] Therefore, in this figure, W(t) represents the central word "enhance immunity" in the input layer, W(t-2), W(t-1), W(t+1), and W(t+2) represent the words to be predicted in the output layer, namely improve skin / oil, aloe vera, pumpkin, and antioxidant, respectively. The part without text in the middle is the hidden layer.

[0068] For easier understanding, the neural network structure of the model is attached. The neural network structure of the Skip-gram model is as follows Figure 8 As shown. V represents the size of the feature word dictionary, N represents the size of the hidden layer, and the neurons in two adjacent layers are fully connected. The input layer {x1, x2...xv} is a one-hot encoded vector, that is, only one unit has a value of 1, while the other units are all 0. The position of the unit with a value of 1 represents the position of the feature word in the dictionary.

[0069] The weights between the input layer and the hidden layer are represented as a V*N matrix W. Each row in W is an N-dimensional vector, which is associated with the corresponding feature word in the input layer. The vector associated with the i-th feature word Wi in the dictionary V and W is represented as V wiAssume that the input layer has an input x∈R v , where x k =1 (indicates that the input feature word is Wk), and x k '=0,x≠x', then the hidden layer can be expressed as:

[0070]

[0071] At this time, the output layer has a total of C V-dimensional vectors, and the i-th feature word of the c-th vector is w c,j express.

[0072] For the generated node walk sequence, through the training and learning of the Skip-Gram model, it is possible to aggregate not only the information of the node itself and its neighboring nodes, but also the information between nodes that do not have an adjacent relationship (some nodes that do not have an adjacent relationship may also have feature similarities). Figure 2 As shown in the figure, in the node walk sequences d2-i2-d3 and d1-i3-d2-i5-d4, the same node d2 in different node walk sequences is followed by sequences i2-d3 and i5-d4, which indicates that the relationship between sequence i2-d3 and sequence i5-d4 is similar or there is certain connection information. The final model can obtain node vector representations of medicinal material nodes and efficacy nodes respectively. Any subsequent research and calculation can use the node vector representation of each node as the representative of the node itself.

[0073] Step S3, prediction analysis: predicting the efficacy of a medicine or prescription containing multiple medicinal materials by calculating the similarity between the vector representations of the medicinal material node and the efficacy node.

[0074] For the drug to be predicted (composed of multiple medicinal materials), first obtain the node vector representation of each medicinal material in the drug, and perform average pooling on the node vector representations of its constituent medicinal materials to obtain the node vector representation of the drug, that is, average the values ​​of each vector dimension of each medicinal material. If a drug has n kinds of medicinal materials, and the node vector representation of each medicinal material is a d-dimensional vector (the vector representation of the efficacy node is also a d-dimensional vector), then the result of average pooling will be a d-dimensional vector, that is, the value of each vector dimension of the drug is the average value of the corresponding vector dimensions of the n medicinal materials. The main purpose of this step is to calculate the vector representation of the prescription node based on the vector representation of the medicinal material node.

[0075] The specific steps of predictive analysis are as follows:

[0076] S31, calculating the similarity between the node vector representation of the drug to be predicted and the node vector representation of each efficacy in the data set;

[0077] The similarity between the node vector representation of the drug to be predicted and the node vector representation of each efficacy in the data set is calculated using the Euclidean distance method or other similarity measurement methods (in the present invention, the Euclidean distance method is used to calculate the similarity, and the smaller the Euclidean distance, the greater the similarity). This can be achieved by traversing the node vector representations of all efficacies and calculating the similarity.

[0078] S32, sorting effect:

[0079] Arrange the calculated Euclidean distances in ascending order;

[0080] S33. Result interpretation and analysis:

[0081] According to the results of the sorting in S32, the relationship between the drug to be predicted and each efficacy is analyzed. If the Euclidean distance between the drug and a certain efficacy is smaller, it means that the vector representation similarity between the drug and the efficacy node is greater, the correlation between the drug and the efficacy is stronger, that is, the possibility that the drug has this efficacy is greater.

[0082] In addition, the present invention also provides a system for drug efficacy prediction, comprising the following modules to implement the above-mentioned method for drug efficacy prediction:

[0083] Heterogeneous network graph construction module, used to construct the herbal medicine-effect heterogeneous network graph;

[0084] Metapath2vec algorithm module, used to generate node walk sequences according to the random walk method based on metapath;

[0085] The model training module is used to learn the semantic relationship information between medicinal materials and efficacy, transfer and aggregate the semantic relationship information between medicinal materials and efficacy through the node walk sequence, and output the vector representation of each node;

[0086] The prediction and analysis module is used to predict the efficacy of drugs. The results are arranged in ascending order according to the Euclidean distance represented by the vectors of drugs and efficacy, and the relationship between the drug to be predicted and each efficacy is analyzed.

[0087] The following will be combined with the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without making creative work are within the scope of protection of the present invention.

[0088] Example 1

[0089] A method for predicting drug efficacy of the present invention specifically comprises the following steps:

[0090] Step S1, constructing a herbal medicine-effect heterogeneous network diagram;

[0091] (1) Data collection;

[0092] First, data for constructing a heterogeneous network diagram of medicinal materials and efficacy is collected. In this embodiment, according to the "Catalogue of Health Functions Allowed to be Claimed by Health Foods (2023 Edition)" jointly issued by the State Administration for Market Regulation, the National Health Commission, and the State Administration of Traditional Chinese Medicine, nearly 1,000 nationally approved health products patent data information were collected, and in accordance with the national health product function standards, the data information between the medicinal material components and the corresponding efficacy was obtained by analyzing its patent data information.

[0093] (2) Using the data information between the components of these medicinal materials and their corresponding effects, a custom meta-path method is used to construct a medicinal material-effect heterogeneous network diagram. The constructed medicinal material-effect heterogeneous network diagram is as follows: Figure 4 As shown in the figure, all medicinal materials and effects are nodes, and the edges between them indicate that the medicinal material has appeared in the prescription for treating the effect. For example, acerola, rhizoma anemarrhenae, and centella asiatica have all appeared in the prescription for improving skin moisture / oil content, and citrus and centella asiatica have all appeared in the prescription for enhancing immunity.

[0094] Step S2: Based on the constructed herbal medicine-effect heterogeneous network graph, Metapath2vec algorithm is used to perform random walks based on Meta-path and generate node walk sequences to capture the semantic relationship information between herbal medicine and efficacy. Figure 5 As shown, a total of four node walk sequences were generated, namely: Acerola-improvement of skin moisture / oil-Anemarrhena, Acerola-improvement of skin moisture / oil-Centella asiatica, Citrus-enhance immunity-Centella asiatica, Anemarrhena-improvement of skin moisture / oil-Centella asiatica.

[0095] The Skip-Gram model in Word2vec is used to learn the representation of nodes (node ​​vector representation) by training node walk sequences. The purpose is to transmit and converge the semantic relationship information of medicinal materials and efficacy through node walk sequences, and finally output the node vector representation of each node.

[0096] Step S3: prediction and analysis;

[0097] Now for the following Figure 6 The efficacy of the drug to be predicted is predicted, and its medicinal ingredients are known to be Centella asiatica, Anemarrhena asphodeloides and Apricot Kernel.

[0098] The specific prediction process is as follows:

[0099] (1) Obtaining the node representation of the drug to be predicted:

[0100] For the drug whose efficacy is to be predicted, it is first necessary to obtain the node representation learned during the training process, that is, the representation (node ​​vector representation) learned through Metapath2vec and Word2vec model training.

[0101] (2) Calculate the similarity between the drug node vector representation to be predicted and each efficacy node vector representation in the data set:

[0102] This embodiment uses the Euclidean distance method (the smaller the Euclidean distance, the greater the similarity), and calculates the node vector representation of the drug to be predicted and each efficacy in the data set (such as Figure 7 This can be achieved by traversing the vector representations of all efficacy nodes and calculating their Euclidean distances.

[0103] (3) Sorting function:

[0104] Arrange the calculated Euclidean distances in ascending order.

[0105] (4) Interpretation and analysis of results:

[0106] According to the results of ascending order of S32 Euclidean distance, the correlation between drugs and various effects is analyzed. If the vector representing the Euclidean distance between a drug and a certain effect is smaller, it means that the correlation between the drug and the effect node is stronger, that is, the possibility that the drug has this effect is greater.

[0107] From the prediction results, we can see that the Euclidean distance ranking of medicinal materials and efficacy nodes is: ('Enhance immunity', 1.5735210518427214) > ('Improve skin moisture / oil', 1.8882511327422213) > ('Anti-oxidation', 2.108717804076667) > ('Improve sleep', 2.144220935380183) > ('Relieve physical fatigue', 2.200526451034306) > ('Assist in lowering blood lipids', 2.251899167473264), that is, the efficacy closely related to the drug to be predicted includes "enhance immunity", "improve skin moisture / oil", "anti-oxidation", etc. This result is consistent with the efficacy information that the drug to be predicted should have, proving the effectiveness of this method.

[0108] The above embodiments are only used to illustrate the technical solutions of the present invention, rather than to limit the same. Although the present invention has been described in detail with reference to the aforementioned embodiments, a person skilled in the art should understand that the technical solutions described in the aforementioned embodiments may still be modified, or some of the technical features thereof may be replaced by equivalents. However, such modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present invention.

Claims

1. A method for predicting drug efficacy, characterized in that: The following steps are involved: Step S1, using a custom meta-path method to construct a heterogeneous network diagram of medicinal materials and efficacy, in which all medicinal materials and efficacy are used as nodes, and the edges between them indicate that the medicinal materials have appeared in the prescription for treating the efficacy; Step S2: Based on the constructed herbal medicine-efficacy heterogeneous network graph, a metapath-based random walk is performed using the Metapath2vec algorithm, and a node walk sequence is generated; The specific steps of random walk based on meta-path are as follows: (1) Starting node selection: randomly select a node from the herbal medicine-effect heterogeneous network graph as the starting node; (2) Random movement: Select the next node from the current node according to a certain strategy; (3) Repeat the random movement process of step (2) until the predetermined walking length or other termination conditions are reached; Through Word2vec model training, the semantic relationship information between medicinal materials and efficacy is learned, and the semantic relationship information between medicinal materials and efficacy is transmitted and converged through the node walk sequence to obtain the node vector representation of medicinal materials and efficacy; the Word2vec model uses the Skip-Gram model; Step S3: For the drug to be predicted, first obtain the node vector representation of each medicinal material in the drug, and average pool the node vector representations of its constituent medicinal materials; predict the efficacy of the drug or prescription containing multiple medicinal materials by calculating the similarity between the medicinal material node vector representation and the vector representation of each efficacy node in the data set; The specific steps of step S3 are as follows: S31, using the Euclidean distance method to calculate the similarity between the node vector representation of the drug to be predicted and the node vector representation of each efficacy in the data set; S32, arranging the calculated Euclidean distances in ascending order; S33. According to the results of S32, which are arranged in ascending order by Euclidean distance, the correlation between the drug to be predicted and each efficacy is analyzed. If the Euclidean distance between the vector representation of the drug and the vector representation of a certain efficacy is smaller, it means that the vector representations between the drug and efficacy nodes are closer, and the correlation between the two is stronger, that is, the possibility that the drug has this efficacy is greater.

2. The method for drug efficacy prediction according to claim 1, characterized in that: The specific operations of step S1 are as follows: First, data for constructing a heterogeneous network diagram of medicinal materials and efficacy are collected, and then the collected data are analyzed to obtain data information between the components of the medicinal materials and the corresponding efficacy; the data information between the components of the medicinal materials and the corresponding efficacy is used to construct a heterogeneous network diagram of medicinal materials and efficacy.

3. The method for drug efficacy prediction according to claim 1, characterized in that: In step S2, the transition probability formula of the i-th step of the random walk based on the meta-path is: in, represents the vertex, v i+1 Represents a vertex The neighbor vertices of V t A vertex set representing the type of medicinal material. Represents a vertex V t+1 The domain vertex of the type is the set of vertices directly connected to the vertex. In other words, v i+1 ∈V t+1 , V t+1 A collection of vertices representing utility types.

4. A system for predicting drug efficacy, characterized in that: The method comprises the following modules to implement the method for drug efficacy prediction according to any one of claims 1 to 3: Heterogeneous network graph construction module, used to construct the herbal medicine-effect heterogeneous network graph; Metapath2vec algorithm module, used to generate node walk sequences according to the random walk method based on metapath; The model training module is used to learn the semantic relationship information between medicinal materials and efficacy, transfer and aggregate the semantic relationship information between medicinal materials and efficacy through the node walk sequence, and output the vector representation of each node; The prediction and analysis module is used to predict the efficacy of the drug, arrange the results in ascending order according to the Euclidean distance represented by the vector of the drug and the efficacy, and analyze the relationship between the drug to be predicted and each efficacy.