Traditional Chinese medicine prescription analysis method and device based on deep learning
By constructing and adjusting the node graph of traditional Chinese medicine prescriptions, using graph convolutional neural networks and multi-head attention modules, the problem of low reliability of traditional Chinese medicine prescription analysis in the existing technology is solved, and efficient analysis of traditional Chinese medicine prescriptions and exploration of potential effects are achieved.
Patent Information
- Application Number
- CN202210307548.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-03-25
- Publication Date
- 2024-10-15
- Estimated Expiration
- 2042-03-25
AI Technical Summary
The existing deep learning-based analysis methods for traditional Chinese medicine prescriptions have low analytical reliability, making it difficult to accurately explore the potential effects of traditional Chinese medicine prescriptions and eliminate ineffective ingredients.
By obtaining the entity set of Chinese medicine prescriptions, constructing the initial node graph and performing matrix processing, using the graph convolutional neural network and the multi-head attention module to adjust the node relationships, and generating a target link set to adjust the node graph, thereby improving the reliability of the analysis of Chinese medicine prescriptions. sex.
It has realized the potential effects of traditional Chinese medicine prescriptions and the elimination of invalid ingredients, improving the reliability and accuracy of traditional Chinese medicine prescription analysis.
Smart Images

Figure CN115064285B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of intelligent medical technology, and in particular to a method and device for analyzing Chinese medicine prescriptions based on deep learning. Background Art
[0002] With the development of intelligent medical technology, it is applied in various aspects of the medical system, for example, in the analysis of traditional Chinese medicine prescriptions. Traditional Chinese medicine is a commonly used medicine in people's daily life. The treatment concept of traditional Chinese medicine is gradually being accepted by the world, but at the same time, traditional Chinese medicine is also questioned because of its complexity and adverse reactions. How to improve the interpretability of traditional Chinese medicine is an important issue in the current development of traditional Chinese medicine. The analysis of traditional Chinese medicine prescriptions refers to the analysis of traditional Chinese medicine prescriptions to obtain the interaction of each component in the traditional Chinese medicine prescription.
[0003] The traditional Chinese medicine prescription analysis methods based on deep learning in the prior art often have the problem of low analysis reliability. Summary of the invention
[0004] The present invention provides a method, device, electronic device and storage medium for analyzing Chinese medicine prescriptions based on deep learning, so as to solve the defect of low reliability of Chinese medicine prescription analysis in the prior art and achieve the purpose of improving the reliability of Chinese medicine prescription analysis.
[0005] The present invention provides a method for parsing a Chinese medicine prescription based on deep learning, comprising: obtaining an entity set of a Chinese medicine prescription, wherein the entity set includes at least one entity; taking each entity in the entity set as a node, and obtaining an initial node graph according to the connection relationship between the nodes; matrixing the initial node graph to obtain a target matrix; processing the target matrix to obtain a target link set; adjusting the nodes corresponding to each entity in the entity set using each target link in the target link set to obtain a target node graph; and parsing each of the entities in the entity set using the target node graph.
[0006] According to a method for parsing Chinese herbal medicines based on deep learning provided by the present invention, the initial node graph is matrixed to obtain a target matrix, including: performing a first matrixing process on the initial node graph to obtain an adjacency matrix corresponding to the initial node graph; performing a second matrixing process on the initial node graph to obtain a degree matrix corresponding to the initial node graph; performing a difference calculation on the degree matrix and the adjacency matrix to obtain an intermediate matrix; and normalizing the intermediate matrix to obtain the target matrix.
[0007] According to a method for parsing Chinese medicine prescriptions based on deep learning provided by the present invention, the target matrix is processed to obtain a target link set, including: inputting the target matrix into a first graph convolutional neural network, the first graph convolutional neural network including at least one network layer; using the target matrix and a first hidden information vector to obtain a second hidden information vector, the first hidden information vector being the hidden information vector of a candidate node in a candidate layer of the first graph convolutional neural network, and the second hidden information vector being the hidden information vector of the candidate node in a backward layer of the candidate layer; based on the first hidden information vector and the second hidden information vector, the target link set is obtained.
[0008] According to a Chinese medicine prescription parsing method based on deep learning provided by the present invention, the target link set is obtained based on the first hidden information vector and the second hidden information vector, including: performing convolution processing on the first hidden information vector and the second hidden information vector to obtain a target hidden information vector; using the global parameter matrix of the first graph convolutional neural network to process the target hidden information vector to obtain a potential related information vector between the nodes corresponding to the entity; adjusting the potential related information vector in a direction that satisfies the related information vector adjustment condition to obtain the target link set.
[0009] According to a method for parsing a Chinese medicine prescription based on deep learning provided by the present invention, the potential relevant information vector is adjusted in a direction that satisfies the relevant information vector adjustment condition to obtain the target link set, including: between candidate node pairs, the potential relevant information vector and the target relevant information vector are calculated to obtain the relevant information vector difference corresponding to each candidate node pair, wherein the candidate node pair includes two candidate nodes; the maximum value between the relevant information vector difference and the zero vector is taken to obtain each maximum value vector;
[0010] The maximum value vectors are superimposed to obtain a target vector value; and the target vector value is adjusted in a direction where the target vector value becomes smaller to obtain the target link set.
[0011] According to a method for parsing Chinese herbal medicines based on deep learning provided by the present invention, the target matrix is processed to obtain a target link set, including: inputting the target matrix into a second graph neural network, the second graph neural network includes a multi-head attention module, and the multi-head attention module includes at least one attention module; in each of the attention modules, based on the matrix dimension, the target matrix is processed separately to obtain a target output vector set; weighted summation of each target output vector in the target output vector set is performed to obtain a first output vector of the multi-head attention module; based on the first output vector, a target link set is obtained.
[0012] According to a method for parsing Chinese medicine prescriptions based on deep learning provided by the present invention, the target link set is obtained based on the first output vector, including: summing the first output vector with the output vector of the forward graph neural network to obtain an initial processing vector, and the forward graph neural network is the forward network of the second graph neural network; processing the initial processing vector through a first normalization layer to obtain a normalized vector; inputting the normalized vector into a feedforward network layer for processing to obtain an intermediate processing vector; summing the intermediate processing vector and the normalized vector to obtain a target processing vector; inputting the target processing vector into a second normalization layer for processing to obtain the second output vector, and the second output vector is the output vector of the second graph neural network; based on the second output vector, the target link set is obtained.
[0013] The present invention also provides a Chinese medicine prescription parsing device based on deep learning, comprising: a first processing module, used to obtain an entity set of a Chinese medicine prescription, wherein the entity set includes at least one entity; a second processing module, used to take each entity in the entity set as a node, and obtain an initial node graph according to the connection relationship between the nodes; a third processing module, used to matrix the initial node graph to obtain a target matrix; a fourth processing module, used to process the target matrix to obtain a target link set; a fifth processing module, used to use each target link in the target link set to adjust the nodes corresponding to each entity in the entity set to obtain a target node graph; and a sixth processing module, used to use the target node graph to parse each of the entities in the entity set.
[0014] The present invention also provides an electronic device, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein when the processor executes the program, the steps of any of the above-mentioned methods for analyzing Chinese medicine prescriptions based on deep learning are implemented.
[0015] The present invention also provides a non-transitory computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements the steps of any of the above-described methods for analyzing Chinese medicine prescriptions based on deep learning.
[0016] The present invention also provides a computer program product, comprising a computer program, which, when executed by a processor, implements the steps of any of the above-mentioned methods for analyzing Chinese medicine prescriptions based on deep learning.
[0017] The Chinese medicine prescription analysis method, device, electronic device and storage medium based on deep learning provided by the present invention are as follows: by obtaining an entity set of Chinese medicine prescription, the entity set includes at least one entity; taking each entity in the entity set as a node, obtaining an initial node graph according to the connection relationship between the nodes; performing matrix processing on the initial node graph to obtain a target matrix; processing the target matrix to obtain a target link set; using each target link in the target link set to adjust the nodes corresponding to each entity in the entity set to obtain a target node graph; and using the target node graph to analyze each entity in the entity set. The target node graph can be obtained by processing the initial node graph step by step, and each entity can be analyzed according to the target node graph, so that potential Chinese medicine prescriptions can be excavated and invalid Chinese medicine prescriptions can be eliminated, thereby improving the reliability of Chinese medicine prescription analysis. BRIEF DESCRIPTION OF THE DRAWINGS
[0018] In order to more clearly illustrate the technical solutions in the present invention or the prior art, the following briefly introduces the drawings required for use in the embodiments or the description of the prior art. Obviously, the drawings described below are some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.
[0019] Figure 1 It is one of the flow charts of the method for analyzing Chinese medicine prescriptions based on deep learning provided by the present invention;
[0020] Figure 2 This is the second flow chart of the method for analyzing Chinese medicine prescriptions based on deep learning provided by the present invention;
[0021] Figure 3 This is the third flow chart of the method for analyzing Chinese medicine prescriptions based on deep learning provided by the present invention;
[0022] Figure 4 This is the fourth flow chart of the method for analyzing Chinese medicine prescriptions based on deep learning provided by the present invention;
[0023] Figure 5 This is the fifth flow chart of the method for analyzing Chinese medicine prescriptions based on deep learning provided by the present invention;
[0024] Figure 6 This is the sixth flow chart of the method for analyzing Chinese medicine prescriptions based on deep learning provided by the present invention;
[0025] Figure 7 This is the seventh flow chart of the method for analyzing Chinese medicine prescriptions based on deep learning provided by the present invention;
[0026] Figure 8It is one of the entity schematic diagrams of the Chinese medicine prescription parsing method based on deep learning provided by the present invention;
[0027] Fig. 9 It is one of the structural block diagrams of the Chinese medicine prescription parsing method based on deep learning provided by the present invention;
[0028] Fig.10 This is the second structural block diagram of the Chinese medicine prescription parsing method based on deep learning provided by the present invention;
[0029] Fig.11 This is the third structural block diagram of the Chinese medicine prescription parsing method based on deep learning provided by the present invention;
[0030] Fig.12 This is the eighth flow chart of the method for analyzing Chinese medicine prescriptions based on deep learning provided by the present invention;
[0031] Fig.13 It is a structural schematic diagram of a Chinese medicine prescription parsing device based on deep learning provided by the present invention;
[0032] Fig.14 It is a structural schematic diagram of the electronic device provided by the present invention. DETAILED DESCRIPTION
[0033] In order to make the purpose, technical solution and advantages of the present invention clearer, the technical solution of the present invention will be clearly and completely described below in conjunction with the drawings of the present invention. Obviously, the described embodiments are 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 creative work are within the scope of protection of the present invention.
[0034] Combine the following Figure 1-Figure 7 The present invention describes a method for analyzing Chinese medicine prescriptions based on deep learning.
[0035] In one embodiment, Figure 1 As shown, a method for parsing Chinese medicine prescriptions based on deep learning is provided, and the method is applied to a server as an example for explanation, including the following steps:
[0036] Step 102, obtaining an entity set of traditional Chinese medicine prescriptions, wherein the entity set includes at least one entity.
[0037] Among them, a Chinese medicine prescription refers to a formula of Chinese medicine that has a therapeutic effect on a certain disease. For example, the disease is represented by S, and the corresponding formula is represented by P. The formula P may include drug D1, drug D2, and drug D3. An entity refers to an element related to the above Chinese medicine prescription. For example, elements such as the disease, formula, drug, and drug molecule related to the Chinese medicine prescription can be considered as entities.
[0038] Specifically, the server may obtain the entity set of the Chinese medicine prescription from a structural database or a Chinese medicine chemistry database storing the entity set of the Chinese medicine prescription.
[0039] Step 104: taking each entity in the entity set as a node and obtaining an initial node graph according to the connection relationship between the nodes.
[0040] The node graph refers to taking each entity as a node, utilizing the connection relationship between nodes, connecting nodes with connection relationships, and not connecting nodes without connection relationships, to obtain an initial node graph.
[0041] Specifically, after the server obtains the entity set of the Chinese medicine prescription, it can obtain an initial node graph by taking each entity in the entity set as a node and according to the connection relationship between the nodes. For example, the disease is represented as S, and the corresponding formula is represented as P. The formula P can include drugs D1, D2 and D3, and the drug D1 includes a drug molecule C. If the above-mentioned entity disease S, formula P, drug D1 and drug molecule C have a connection relationship, then the disease S, formula P, drug D1 and drug molecule C are connected to obtain an initial node graph.
[0042] Step 106, matrix processing is performed on the initial node graph to obtain a target matrix.
[0043] Specifically, after the server obtains the initial node graph, it performs matrix processing on the initial node graph to obtain a target matrix.
[0044] In one embodiment, after the server obtains the initial node graph, it obtains the adjacency matrix of the initial node graph represented by A and the degree matrix represented by D, and obtains the Laplacian matrix L by calculating the difference between the degree matrix D and the adjacency matrix A. c , and the Laplacian matrix L c After normalization, the target matrix is obtained, which is represented by L. The target matrix L can be expressed as the formula:
[0045]
[0046] In one embodiment, the node graph is matrixed in the form of triplets to obtain a target matrix. For example, the initial node graph includes the i-th node v i , the jth node v j , the connection relationship between the two is r, then the target matrix can be expressed as e ij =(v i ,r,v j ) i,j∈N , where N represents the number of nodes.
[0047] Step 108: Process the target matrix to obtain a target link set.
[0048] Specifically, after obtaining the target matrix, the server processes the target matrix to obtain a target link set.
[0049] In one embodiment, the server inputs the obtained target matrix into the graph neural network for encoding, and decodes the encoded target matrix to obtain the potential related information vector between the nodes in the initial node graph, and obtains the target link set based on the potential related information vector.
[0050] Step 110: Use each target link in the target link set to adjust the node corresponding to each entity in the entity set to obtain a target node graph.
[0051] Specifically, after the server obtains the target link set, it uses each target link in the target link set to adjust the nodes corresponding to each entity to obtain a target node graph. For example, there is a target link E in the target link set, and the entities connected by the target link E are disease S1 and prescription P1, but in the original initial node graph, there is no connection relationship between the entities disease S1 and prescription P1. Then, the initial node graph is adjusted according to the target link E, and the target node graph obtained is a node graph in which disease S1 and prescription P1 are connected. The above connection relationship can be understood as a correlation relationship.
[0052] Step 112: parse each entity in the entity set using the target node graph.
[0053] Specifically, after the server obtains the target node graph, it can parse each entity in the entity set through the target node graph. For example, if the target node graph is that the disease S2 is connected to the prescription P2, the prescription P2 is connected to the drug D5, and the drug D5 is connected to the drug molecules C1 and C2, then each entity can be parsed to obtain relevant information about the Chinese medicine prescription related to the disease S2.
[0054] In the above-mentioned Chinese medicine prescription parsing method based on deep learning, by obtaining the entity set of Chinese medicine prescription, the entity set includes at least one entity; taking each entity in the entity set as a node, and obtaining the initial node graph according to the connection relationship between the nodes; matrixing the initial node graph to obtain the target matrix; processing the target matrix to obtain the target link set; using each target link in the target link set to adjust the nodes corresponding to each entity in the entity set to obtain the target node graph; using the target node graph to parse each entity in the entity set. The target node graph can be obtained by processing the initial node graph step by step, and each entity can be parsed according to the target node graph, so that potential Chinese medicine prescriptions can be mined and invalid Chinese medicine prescriptions can be eliminated, thereby improving the reliability of Chinese medicine prescription parsing.
[0055] In one embodiment, Figure 2 As shown, the initial node graph is matrixed to obtain the target matrix including:
[0056] Step 202: Perform a first matrix processing on the initial node graph to obtain an adjacency matrix corresponding to the initial node graph.
[0057] Specifically, after obtaining the initial node graph, the server regards each node in the node graph as a vertex, and regards the edge connecting the vertex and the adjacent vertex as an edge to form a two-dimensional array, and determines the two-dimensional array as an adjacency matrix.
[0058] Step 204: Perform a second matrix processing on the initial node graph to obtain a degree matrix corresponding to the initial node graph.
[0059] Specifically, after the server obtains the initial node graph, it performs a second matrix processing on the initial node graph, represents the number of tables associated with each node in the initial node graph as the degree of each node as a vertex, and obtains a degree matrix corresponding to the initial node graph. The elements on the diagonal of the degree matrix represent the degree of the node as a vertex.
[0060] Step 206, performing difference calculation on the degree matrix and the adjacency matrix to obtain an intermediate matrix.
[0061] Specifically, after obtaining the above degree matrix and adjacency matrix, the server performs difference calculation on the degree matrix and the adjacency matrix to obtain an intermediate matrix. Assume that the intermediate matrix is represented by L c , the degree matrix is represented by D, the adjacency matrix is represented by A, then the intermediate matrix L c Expressed as a formula:
[0062] L c =DA (2)
[0063] Step 208: normalize the intermediate matrix to obtain a target matrix.
[0064] Specifically, after the server obtains the intermediate matrix, in order to eliminate the feature reduction of nodes with smaller degrees or the feature amplification of nodes with larger degrees, the intermediate matrix is normalized to obtain the target matrix. The target matrix is represented by L, and the target matrix L is represented by formula (1).
[0065] In this embodiment, the initial node graph is subjected to a first matrixing process to obtain an adjacency matrix corresponding to the initial node graph, the initial node graph is subjected to a second matrixing process to obtain a degree matrix corresponding to the initial node graph, the degree matrix and the adjacency matrix are subjected to a difference calculation to obtain an intermediate matrix, and the intermediate matrix is normalized to obtain a target matrix, thereby achieving the purpose of accurately obtaining the target matrix.
[0066] In one embodiment, Figure 3 As shown, the target matrix is processed to obtain a target link set including:
[0067] Step 302: input the target matrix into a first graph convolutional neural network, where the first graph convolutional neural network includes at least one network layer.
[0068] Specifically, after obtaining the target matrix, the server can input the target matrix into the first graph convolutional neural network.
[0069] In one embodiment, the target matrix L is input into a graph convolutional neural network with two convolutional layers for encoding.
[0070] Step 304, using the target matrix and the first hidden information vector, obtain the second hidden information vector, the above-mentioned first hidden information vector is the hidden information vector of the candidate node in the candidate layer of the first graph convolutional neural network, and the second hidden information vector is the hidden information vector of the candidate node in the backward layer of the candidate layer.
[0071] Specifically, after inputting the target matrix into the first graph convolutional neural network, the server updates the embedding of the node by inputting different neighboring information r for each node. Assuming that the candidate layer is the kth layer and the candidate node is the i-th node v i , the first hidden information vector of the candidate node in the kth layer is expressed as Then the second hidden information vector of the candidate node in the k+1th layer is expressed as Then the second hidden information vector It can be expressed as a formula:
[0072]
[0073] Among them, σ is the ReLU activation function, Wk is the convolution kernel, and the dimension of this vector is d×d.
[0074] The feature vector of the initial node can be expressed as The feature vector Expressed as a formula:
[0075]
[0076] In one embodiment, after obtaining the initial node graph, the server converts the initial node graph having N nodes into a d-dimensional node representation vector X through embedding, and the node representation vector X can represent the information of the node.
[0077] Step 306: Obtain a target link set based on the first hidden information vector and the second hidden information vector.
[0078] Specifically, after obtaining the first hidden information vector and the second hidden information vector, the server can obtain a target hidden information vector based on the first hidden information vector and the second hidden information vector, and input the target hidden information vector into the decoder of the first graph convolutional neural network for processing to obtain potential related information vectors between nodes, and adjust the potential related information vectors in a direction that satisfies the related information vector adjustment conditions to obtain a target link set.
[0079] In this embodiment, by inputting the target matrix into the first graph convolutional neural network, the second hidden information vector is obtained using the target matrix and the first hidden information vector. The above-mentioned first hidden information vector is the hidden information vector of the candidate node in the candidate layer of the first graph convolutional neural network, and the second hidden information vector is the hidden information vector of the candidate node in the backward layer of the candidate layer. Based on the first hidden information vector and the second hidden information vector, the target link set is obtained, which can achieve the purpose of accurately obtaining the target link set through the hidden information vector.
[0080] In one embodiment, Figure 4 As shown, based on the first hidden information vector and the second hidden information vector, obtaining the target link set includes:
[0081] Step 402: Perform convolution processing on the first hidden information vector and the second hidden information vector to obtain a target hidden information vector.
[0082] Specifically, after obtaining the first hidden information vector and the second hidden information vector, the server performs convolution processing on the first hidden information vector and the second hidden information vector to obtain a target hidden information vector. The target hidden information vector is represented by H i , then the target hidden information vector H i It can be expressed as a formula:
[0083]
[0084] Step 404, using the global parameter matrix of the first graph convolutional neural network to process the target hidden information vector, to obtain the potential related information vector between the nodes corresponding to the entity.
[0085] The global parameter matrix refers to a parameter matrix that can adjust the global state of the first graph convolutional neural network. The potential correlation information vector refers to a vector that can represent a potential correlation between nodes. For example, there may be a correlation between node i and node j, and the vector that can represent the possible correlation is the potential correlation vector between node i and node j.
[0086] Specifically, after obtaining the target hidden information vector, the server uses the global parameter matrix to process the target hidden information vector to obtain the potential related information vector between the nodes corresponding to the entity.
[0087] In one embodiment, the server sends the target hidden information vector H i After being input into the decoder of the first graph convolutional neural network, the target hidden information vector H is transformed through the global parameter matrix o i Processing to obtain the potential relevant information vector Then the potential relevant information vector Expressed as a formula:
[0088]
[0089] Step 406, adjusting the potential relevant information vector in a direction that satisfies the relevant information vector adjustment condition to obtain a target link set.
[0090] Among them, the relevant information vector adjustment condition refers to the condition that can satisfy the relevant information adjustment, and the condition can be the direction in which the loss function of the first graph convolutional neural network becomes smaller, etc.
[0091] Specifically, assuming that the relevant information vector adjustment condition is expressed as a function The target link set is denoted as P ij , the relevant information vector adjusts the condition Expressed as a formula:
[0092]
[0093] Then minimize the above related information vector adjustment condition Get the target link set that meets the conditions.
[0094] In this embodiment, the target hidden information vector is obtained by convolution processing the first hidden information vector and the second hidden information vector, and the target hidden information vector is processed using the global parameter matrix of the first graph convolutional neural network to obtain the potential related information vector between the nodes corresponding to the entity, and the potential related information vector is adjusted in the direction that satisfies the related information vector adjustment condition to obtain the target link set. By processing the potential related information vector, the purpose of obtaining a reliable target link set can be achieved.
[0095] In one embodiment, Figure 5 As shown, the potential related information vector is adjusted in the direction that satisfies the related information vector adjustment condition, and the target link set is obtained including:
[0096] Step 502: perform difference calculation on potential related information vectors and target related information vectors between candidate node pairs to obtain related information vector differences corresponding to each candidate node pair, where the candidate node pair includes two candidate nodes.
[0097] Among them, a candidate node pair refers to a node pair with two candidate nodes, for example, the i-th node v i and the jth node v j The candidate node pair consisting of ij The potential related information vector of the candidate node pair is expressed as The target related information vector is represented as P ij , for the potential relevant information vector and the target related information vector P ij Perform difference calculation to obtain the relevant information vector difference P corresponding to each candidate node pair. The relevant information vector difference P is expressed as:
[0098]
[0099] Step 504, taking the maximum value between the correlation information vector difference and the zero vector to obtain each maximum value vector.
[0100] Specifically, after the server obtains the relevant information vector difference, it can use the maximum value function to take the maximum value between the relevant information vector difference and the zero vector to obtain each maximum value vector. Assuming that the maximum value vector is represented by MAX, the maximum value vector MAX is represented by:
[0101] MAX=max(0,P) (9)
[0102] Step 506: Perform superposition processing on each maximum value vector to obtain a target vector value.
[0103] Specifically, after obtaining the maximum value vector, the server performs superposition processing on the maximum value vectors corresponding to the above candidate nodes to obtain the target vector value. Assume that the target vector value is expressed as Then the target vector value Expressed as a formula:
[0104]
[0105] Step 508: Adjust in the direction of decreasing the target vector value to obtain a target link set.
[0106] Specifically, after obtaining the target vector value, the server adjusts the target vector value in a decreasing direction until the target vector value is adjusted to be the minimum, thereby obtaining the target link set.
[0107] In this embodiment, by performing difference calculation on the potential related information vector and the target related information vector between the candidate node pairs, the related information vector difference corresponding to each candidate node pair is obtained, the maximum value between the related information vector difference and the zero vector is taken to obtain each maximum value vector, each maximum value vector is superimposed to obtain the target vector value, and the target vector value is adjusted in the direction of becoming smaller to obtain the target link set, thereby achieving the purpose of obtaining an accurate target link set.
[0108] In one embodiment, Figure 6 As shown, the target matrix is processed to obtain a target link set including:
[0109] Step 602: input the target matrix into a second graph neural network, wherein the second graph neural network includes a multi-head attention module, and the multi-head attention module includes at least one attention module.
[0110] Specifically, the server obtains the target matrix e corresponding to the triple in step 106 ij =(v i , r, v j ) i,j∈N Afterwards, the target matrix is input into the second graph neural network. The second graph neural network includes a multi-head attention module, which includes at least one attention module, and the target matrix is input into each of the above attention modules. It should be noted that the target matrix e corresponding to the above triple is ij =(v i , r, v j ) i,j∈N The length of the number is represented as m, the length is represented as l, where the relationship between the length l and the matrix dimension d is expressed as the formula:
[0111] l=2d+1 (11)
[0112] For example, suppose the triple is represented as ["DB00855", "treats", "C0020649"], DB00855 is the unique ID number of aminolevulinic acid in the protein database, C0020649 is the unique ID of hypotension in the drug database, and the triple indicates that aminolevulinic acid can treat hypotension. If DB00855 is regarded as a node corresponding to an entity, and C0020649 is regarded as a node corresponding to another entity, there is a correlation between the two nodes.
[0113] Step 604, in each attention module, based on the matrix dimension, the target matrix is processed separately to obtain a set of target output vectors.
[0114] Specifically, after the server inputs the target matrix into the second graph neural network, it uses the attention module to perform a ij , calculate the Q, K, V projections of the triples, and then use the Softmax operation to normalize the results into probability distribution to obtain the target output vector set. The specific expression is as follows:
[0115]
[0116] Among them, Z i is the output vector of a single attention head, and d represents the matrix dimension.
[0117] Step 606, weighted sum of each target output vector in the target output vector set to obtain the first output vector of the multi-head attention module.
[0118] Specifically, after the server obtains the target output vector set, it performs weighted summation on each target output vector in the set to obtain the first output vector of the multi-head attention module.
[0119] In one embodiment, the defined linear projection matrix W0 is used as the weight of the weighted summation. The size of the linear projection matrix W0 is nb×n. The linear projection output is performed with multiple attention heads to output the first output vector of size m×n. i Perform weighted summation to obtain the first output vector g i , the first output vector g i Expressed as a formula:
[0120] g i =MultiAttn(g i )=[Z0;...;Z m ]W O (13)
[0121] Step 608: Obtain a target link set based on the first output vector.
[0122] Specifically, after obtaining the first output vector, the server processes the first output vector through a residual connected normalization layer and two feedforward network layers, and then processes it through a decoder in the second graph neural network to obtain a target link set.
[0123] In this embodiment, by inputting the target matrix into the second graph neural network, in each attention module, the target matrix is processed separately based on the matrix dimension to obtain a set of target output vectors, and each target output vector in the set of target output vectors is weighted and summed to obtain the first output vector of the multi-head attention module. Based on the first output vector, the target link set is obtained, which can achieve the purpose of processing the target matrix through the second graph neural network to obtain the target link set.
[0124] In one embodiment, Figure 7 As shown, based on the first output vector, the target link set is obtained including:
[0125] Step 702, summing the first output vector and the output vector of the forward graph neural network to obtain an initial processing vector, where the forward graph neural network is the forward network of the second graph neural network.
[0126] Specifically, the output vector of the current second graph neural network is represented as h i , then the output vector of the forward graph neural network is represented as h i-1 , the initial processing vector is denoted as g l , then the initial processing vector g l Expressed as a formula:
[0127] g l =h i-1 +g i (14)
[0128] Step 704: Process the initial processing vector through the first normalization layer to obtain a normalized vector.
[0129] Specifically, after the server obtains the initial processing vector, it is processed by the normalization layer of the second graph neural network to obtain a normalized vector, which is expressed as Then the normalized vector Expressed as a formula:
[0130]
[0131] Step 706: Input the normalized vector into the feedforward network layer for processing to obtain an intermediate processing vector.
[0132] Specifically, after the server obtains the normalized vector, it is processed by the feedforward network layer of the second graph neural network to obtain an intermediate processing vector. The intermediate processing vector is expressed as Then the intermediate processing vector Expressed as a formula:
[0133]
[0134] Step 708: sum the intermediate processing vector and the normalized vector to obtain a target processing vector.
[0135] Specifically, after obtaining the intermediate processing vector and the normalized vector, the server sums the intermediate processing vector and the normalized vector to obtain the target processing vector.
[0136] Step 710, after inputting the target processing vector into the second normalization layer for processing, a second output vector is obtained, and the second output vector is the output vector of the second graph neural network.
[0137] Specifically, after the server obtains the target processing vector, it inputs the target processing vector into the second normalization layer for processing to obtain a second output vector, which is represented by h i , then the second output vector h i Expressed as a formula:
[0138]
[0139] Step 712: Obtain a target link set based on the second output vector.
[0140] Specifically, after obtaining the second output vector, the server inputs the second output vector into a graph convolutional neural network system having 6 serials and the same structure as the second graph neural network, and uses the first three graph convolutional neural networks in the graph convolutional neural network system as encoders, and the last three graph convolutional neural networks as decoders. After processing in the decoder, the matrix of m·n is output, and the matrix is transposed and then input into the decoder. After decoding, the output matrix n·n is obtained through Softmax, which represents the potential link between N entities. The potential link is a link with potential related information vectors, and the target link set can be obtained according to the above formula (7) and related steps.
[0141] In this embodiment, an initial processing vector is obtained by summing the first output vector with the output vector of the forward graph neural network. The above-mentioned forward graph neural network is the forward network of the second graph neural network. The initial processing vector is processed by the first normalization layer to obtain a normalized vector. The normalized vector is input into the feedforward network layer for processing to obtain an intermediate processing vector. The intermediate processing vector and the normalized vector are summed to obtain a target processing vector. The target processing vector is input into the second normalization layer for processing to obtain a second output vector. Based on the second output vector, a target link set is obtained, which can achieve the purpose of accurately obtaining the target link set through the first output vector.
[0142] In one embodiment, after obtaining the target link set, the server saves the target link set in a related database, so as to adjust the target node graph corresponding to the entity using each target link in the target link set and update the knowledge base corresponding to the original entity.
[0143] In one embodiment, Figure 8 As shown, entities related to important prescriptions include symptoms S, prescriptions P, drugs D, and molecules C. According to the entities in the traditional Chinese medicine knowledge graph library and the correlation between the entities, an initial node graph is formed.
[0144] In one embodiment, Fig. 9 As shown, the first graph convolutional neural network is a graph convolutional neural network with two convolutional layers as an example. By inputting the above initial node graph into the graph convolutional neural network with two convolutional layers, the Laplacian matrix and the first hidden information vector corresponding to the initial node graph are processed by the first convolutional layer using the convolution kernel, and then input into the second convolutional layer. After the same processing, the output vector is output to the decoder for processing. In the decoder, the target hidden information vector and the transposed vector of the target hidden information vector are processed by the global parameter matrix to obtain the target link set.
[0145] In one embodiment, Fig.10As shown, the second graph neural network is a Transformer graph neural network as an example. A graph neural network system composed of 6 identical Transformer graph neural networks can be used as an example. The first three Transformer graph neural networks are used as encoders of the graph neural network system, and the last three Transformer graph neural networks are used as decoders of the graph neural network system. The m×l triples are input into the first Transformer graph neural network to obtain vector h1. Similarly, at the output end of the third Transformer graph neural network, vector h3 is output. After the vector h3 is transposed, it is output to the decoder until it is output from the sixth Transformer graph neural network, and the output vector h6 is output. After the output vector h6 is normalized by the Softmax function, the above-mentioned target link set is obtained.
[0146] In one embodiment, any of the above Transformer graph neural network structures is as follows Fig.11 As shown. There are multiple attention head modules distributed in the Transformer graph neural network structure. The above target matrix is input into each attention head module respectively, and the linear projection matrix W is used O After processing, the output vector g of the multi-head attention module is obtained i , the output vector g i Combined with the vector h output by the forward Transformer graph neural network of the Transformer graph neural network i-1 , and are input to the first normalization layer together. The vector processed by the first normalization layer is output to the feedforward network layer for processing. The vector processed by the first normalization layer and the vector processed by the feedforward network layer are combined and input to the second normalization layer for processing, and the output vector h of the Transformer graph neural network is output. i .
[0147] In one embodiment, Fig.12 As shown, the application of this method to the update of the traditional Chinese medicine database is taken as an example. First, entities related to traditional Chinese medicine knowledge and the relationship between entities are obtained from the traditional Chinese medicine knowledge base, and input into the graph neural network in the form of vectors to generate a new knowledge graph. The server receives the evaluation method and evaluates the new knowledge graph according to the evaluation method. If the evaluation is good, the new knowledge graph is accepted and saved in the traditional Chinese medicine database; if the evaluation is poor, the new knowledge graph is further corrected, and the corrected new knowledge graph is saved in the traditional Chinese medicine database.
[0148] The Chinese medicine prescription analysis device based on deep learning provided by the present invention is described below. The Chinese medicine prescription analysis device based on deep learning described below and the Chinese medicine prescription analysis method based on deep learning described above can be referenced to each other.
[0149] In one embodiment, Fig.13 As shown, a Chinese medicine prescription parsing device 1300 based on deep learning is provided, including: a first processing module 1302, a second processing module 1304, a third processing module 1306, a fourth processing module 1308, a fifth processing module 1310 and a sixth processing module 1312, wherein: the first processing module 1302 is used to obtain an entity set of the Chinese medicine prescription, and the entity set includes at least one entity; the second processing module 1304 is used to take each entity in the entity set as a node, and obtain an initial node graph according to the connection relationship between the nodes; the third processing module 1306 is used to matrix the node graph to obtain a target matrix; the fourth processing module 1308 is used to process the target matrix to obtain a target link set; the fifth processing module 1310 is used to use each target link in the target link set to adjust the nodes corresponding to each entity in the entity set to obtain a target node graph; the sixth processing module 1312 is used to parse each entity in the entity set using the target node graph.
[0150] In one embodiment, the third processing module 1306 is used to perform a first matrix processing on the node graph to obtain an adjacency matrix corresponding to the node graph; perform a second matrix processing on the node graph to obtain a degree matrix corresponding to the node graph; perform difference calculation on the degree matrix and the adjacency matrix to obtain an intermediate matrix; and perform normalization processing on the intermediate matrix to obtain a target matrix.
[0151] In one embodiment, the fourth processing module 1308 is used to input the target matrix into the first graph convolutional neural network, which includes at least one network layer; using the target matrix and the first hidden information vector, a second hidden information vector is obtained, the first hidden information vector is the hidden information vector of the candidate node in the candidate layer of the first graph convolutional neural network, and the second hidden information vector is the hidden information vector of the candidate node in the backward layer of the candidate layer; based on the first hidden information vector and the second hidden information vector, a target link set is obtained.
[0152] In one embodiment, the fourth processing module 1308 is used to perform convolution processing on the first hidden information vector and the second hidden information vector to obtain a target hidden information vector; use the global parameter matrix of the first graph convolutional neural network to process the target hidden information vector to obtain a potential related information vector between nodes corresponding to the entity; adjust the potential related information vector in a direction that satisfies the related information vector adjustment condition to obtain a target link set.
[0153] In one embodiment, the fourth processing module 1308 is used to perform difference calculations on potential related information vectors and target related information vectors between candidate node pairs to obtain related information vector differences corresponding to each candidate node pair, where the candidate node pairs include two candidate nodes; take the maximum value between the related information vector difference and the zero vector to obtain each maximum value vector; perform superposition processing on each maximum value vector to obtain a target vector value; and adjust in the direction of reducing the target vector value to obtain a target link set.
[0154] In one embodiment, the fourth processing module 1308 is used to input the target matrix into the second graph neural network, which includes a multi-head attention module, and the multi-head attention module includes at least one attention module; in each attention module, based on the matrix dimension, the target matrix is processed separately to obtain a set of target output vectors; each target output vector in the set of target output vectors is weighted and summed to obtain the first output vector of the multi-head attention module; based on the first output vector, a target link set is obtained.
[0155] In one embodiment, the fourth processing module 1308 is used to sum the first output vector with the output vector of the forward graph neural network to obtain an initial processing vector, and the forward graph neural network is the forward network of the second graph neural network; the initial processing vector is processed by the first normalization layer to obtain a normalized vector; the normalized vector is input into the feedforward network layer for processing to obtain an intermediate processing vector; the intermediate processing vector and the normalized vector are summed to obtain a target processing vector; the target processing vector is input into the second normalization layer for processing to obtain a second output vector, and the second output vector is the output vector of the second graph neural network; based on the second output vector, a target link set is obtained.
[0156] Fig.14 An example of a physical structure diagram of an electronic device is shown in FIG. Fig.14As shown, the electronic device may include: a processor 1410, a communication interface 1420, a memory 1430 and a communication bus 1440, wherein the processor 1410, the communication interface 1420 and the memory 1430 communicate with each other through the communication bus 1440. The processor 1410 may call the logic instructions in the memory 1430 to execute a Chinese medicine prescription parsing method based on deep learning, the method comprising: obtaining an entity set of a Chinese medicine prescription, the entity set including at least one entity; taking each entity in the entity set as a node, and obtaining an initial node graph according to the connection relationship between the nodes; matrixing the node graph to obtain a target matrix; processing the target matrix to obtain a target link set; adjusting the nodes corresponding to each entity in the entity set using each target link in the target link set to obtain a target node graph; parsing each entity in the entity set using the target node graph.
[0157] In addition, the logic instructions in the above-mentioned memory 1430 can be implemented in the form of a software functional unit and can be stored in a computer-readable storage medium when it is sold or used as an independent product. Based on such an understanding, the technical solution of the present invention can be essentially or partly embodied in the form of a software product that contributes to the prior art. The computer software product is stored in a storage medium, including several instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the methods of various embodiments of the present invention. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), disk or optical disk, etc. Various media that can store program codes.
[0158] On the other hand, the present invention also provides a computer program product, which includes a computer program, and the computer program can be stored on a non-transitory computer-readable storage medium. When the computer program is executed by a processor, the computer can execute the Chinese medicine prescription parsing method based on deep learning provided by the above methods, and the method includes: obtaining an entity set of Chinese medicine prescriptions, the entity set including at least one entity; taking each entity in the entity set as a node, and obtaining an initial node graph according to the connection relationship between the nodes; matrixing the node graph to obtain a target matrix; processing the target matrix to obtain a target link set; using each target link in the target link set to adjust the nodes corresponding to each entity in the entity set to obtain a target node graph; and parsing each entity in the entity set using the target node graph.
[0159] On the other hand, the present invention also provides a non-transitory computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, is implemented to execute the deep learning-based Chinese medicine prescription parsing method provided by the above-mentioned methods, the method comprising: obtaining an entity set of the Chinese medicine prescription, the entity set including at least one entity; taking each entity in the entity set as a node, and obtaining an initial node graph based on the connection relationship between the nodes; matrixing the node graph to obtain a target matrix; processing the target matrix to obtain a target link set; using each target link in the target link set to adjust the nodes corresponding to each entity in the entity set to obtain a target node graph; and parsing each entity in the entity set using the target node graph.
[0160] The device embodiments described above are merely illustrative, wherein the units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, they may be located in one place, or they may be distributed on multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the scheme of this embodiment. Ordinary technicians in this field can understand and implement it without paying creative labor.
[0161] Through the description of the above implementation methods, those skilled in the art can clearly understand that each implementation method can be implemented by means of software plus a necessary general hardware platform, and of course, it can also be implemented by hardware. Based on this understanding, the above technical solution is essentially or the part that contributes to the prior art can be embodied in the form of a software product, and the computer software product can be stored in a computer-readable storage medium, such as ROM / RAM, a disk, an optical disk, etc., including a number of instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to execute the methods described in each embodiment or some parts of the embodiments.
[0162] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention, rather than to limit it. Although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or make equivalent replacements for some of the technical features therein. However, these 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 analyzing Chinese medicine prescriptions based on deep learning. It is characterized in that include: Acquire an entity set of a traditional Chinese medicine prescription, wherein the entity set includes at least one entity; the entity is a disease, a formula, a drug, and a drug molecule related to the traditional Chinese medicine prescription; Taking each entity in the entity set as a node, and obtaining an initial node graph according to the connection relationship between the nodes; Matrixing the initial node graph to obtain a target matrix; Processing the target matrix to obtain a target link set; Using each target link in the target link set, adjusting the node corresponding to each entity in the entity set to obtain a target node graph; Utilizing the target node graph to parse each of the entities in the entity set, so as to mine potential Chinese medicine prescriptions and eliminate invalid Chinese medicine prescriptions; The matrixing of the initial node graph to obtain a target matrix includes: Performing a first matrix processing on the initial node graph to obtain an adjacency matrix corresponding to the initial node graph; Performing a second matrix processing on the initial node graph to obtain a degree matrix corresponding to the initial node graph; Performing difference calculation on the degree matrix and the adjacency matrix to obtain an intermediate matrix; performing normalization processing on the intermediate matrix to obtain the target matrix; The processing of the target matrix to obtain a target link set includes: Inputting the target matrix into a first graph convolutional neural network, wherein the first graph convolutional neural network includes at least one network layer; Using the target matrix and the first hidden information vector, a second hidden information vector is obtained, wherein the first hidden information vector is a hidden information vector of a candidate node in a candidate layer of the first graph convolutional neural network, and the second hidden information vector is a hidden information vector of the candidate node in a backward layer of the candidate layer; The target link set is obtained based on the first hidden information vector and the second hidden information vector.
2. The method for analyzing Chinese medicine prescriptions based on deep learning according to claim 1, It is characterized in that The obtaining the target link set based on the first hidden information vector and the second hidden information vector includes: Performing convolution processing on the first hidden information vector and the second hidden information vector to obtain a target hidden information vector; Processing the target hidden information vector using the global parameter matrix of the first graph convolutional neural network to obtain potential related information vectors between nodes corresponding to the entity; Adjusting the potential relevant information vector in a direction that satisfies the relevant information vector adjustment condition to obtain the target link set; The step of adjusting the potential relevant information vector in a direction satisfying the relevant information vector adjustment condition to obtain the target link set includes: Between candidate node pairs, performing difference calculation on the potential related information vector and the target related information vector to obtain the related information vector difference corresponding to each candidate node pair, wherein the candidate node pair includes two candidate nodes; Taking the maximum value between the difference of the related information vector and the zero vector to obtain each maximum value vector; Performing superposition processing on each of the maximum value vectors to obtain a target vector value; The target link set is obtained by adjusting in a direction in which the target vector value becomes smaller.
3. A method for analyzing Chinese medicine prescriptions based on deep learning, It is characterized in that include: Acquire an entity set of a traditional Chinese medicine prescription, wherein the entity set includes at least one entity; the entity is a disease, a formula, a drug, and a drug molecule related to the traditional Chinese medicine prescription; Taking each entity in the entity set as a node, and obtaining an initial node graph according to the connection relationship between the nodes; Matrixing the initial node graph to obtain a target matrix; Processing the target matrix to obtain a target link set; Using each target link in the target link set, adjusting the node corresponding to each entity in the entity set to obtain a target node graph; Utilizing the target node graph to parse each of the entities in the entity set, so as to mine potential Chinese medicine prescriptions and eliminate invalid Chinese medicine prescriptions; The matrixing of the initial node graph to obtain a target matrix includes: Performing a first matrix processing on the initial node graph to obtain an adjacency matrix corresponding to the initial node graph; Performing a second matrix processing on the initial node graph to obtain a degree matrix corresponding to the initial node graph; Performing difference calculation on the degree matrix and the adjacency matrix to obtain an intermediate matrix; performing normalization processing on the intermediate matrix to obtain the target matrix; The processing of the target matrix to obtain a target link set includes: Inputting the target matrix into a second graph neural network, wherein the second graph neural network includes a multi-head attention module, and the multi-head attention module includes at least one attention module; In each of the attention modules, based on the matrix dimension, the target matrix is processed respectively to obtain a set of target output vectors; Taking a weighted sum of each target output vector in the target output vector set, to obtain a first output vector of the multi-head attention module; Based on the first output vector, obtaining a target link set; The obtaining a target link set based on the first output vector includes: Summing the first output vector with the output vector of the forward graph neural network to obtain an initial processing vector, wherein the forward graph neural network is a forward network of the second graph neural network; Processing the initial processing vector through a first normalization layer to obtain a normalized vector; Inputting the normalized vector into the feedforward network layer for processing to obtain an intermediate processing vector; Summing the intermediate processing vector and the normalized vector to obtain a target processing vector; After inputting the target processing vector into the second normalization layer for processing, a second output vector is obtained, where the second output vector is the output vector of the second graph neural network; The target link set is obtained based on the second output vector.
4. A Chinese medicine prescription analysis device based on deep learning, It is characterized in that include: A first processing module is used to obtain an entity set of a traditional Chinese medicine prescription, wherein the entity set includes at least one entity; the entity is a disease, formula, drug, and drug molecule related to the traditional Chinese medicine prescription; A second processing module is used to take each entity in the entity set as a node and obtain an initial node graph according to the connection relationship between the nodes; A third processing module is used to perform matrix processing on the initial node graph to obtain a target matrix; A fourth processing module, used for processing the target matrix to obtain a target link set; A fifth processing module, configured to adjust nodes corresponding to respective entities in the entity set by using respective target links in the target link set, so as to obtain a target node graph; A sixth processing module, for parsing each of the entities in the entity set using the target node graph, so as to mine potential Chinese medicine prescriptions and eliminate invalid Chinese medicine prescriptions; The third processing module is further used to perform a first matrix processing on the initial node graph to obtain an adjacency matrix corresponding to the initial node graph; perform a second matrix processing on the initial node graph to obtain a degree matrix corresponding to the initial node graph; perform difference calculation on the degree matrix and the adjacency matrix to obtain an intermediate matrix; Normalizing the intermediate matrix to obtain the target matrix; The fourth processing module is further used to input the target matrix into a first graph convolutional neural network, the first graph convolutional neural network includes at least one network layer; using the target matrix and the first hidden information vector, obtain a second hidden information vector, the first hidden information vector is the hidden information vector of the candidate node in the candidate layer of the first graph convolutional neural network, and the second hidden information vector is the hidden information vector of the candidate node in the backward layer of the candidate layer; based on the first hidden information vector and the second hidden information vector, obtain the target link set; Alternatively, the fourth processing module is further used to input the target matrix into a second graph neural network, the second graph neural network includes a multi-head attention module, and the multi-head attention module includes at least one attention module; in each of the attention modules, based on the matrix dimension, the target matrix is processed respectively to obtain a target output vector set; each target output vector in the target output vector set is weighted and summed to obtain a first output vector of the multi-head attention module; Based on the first output vector, obtaining a target link set; The method of obtaining a target link set based on the first output vector includes: summing the first output vector with the output vector of the forward graph neural network to obtain an initial processing vector, and the forward graph neural network is the forward network of the second graph neural network; processing the initial processing vector through a first normalization layer to obtain a normalized vector; inputting the normalized vector into a feedforward network layer for processing to obtain an intermediate processing vector; summing the intermediate processing vector and the normalized vector to obtain a target processing vector; inputting the target processing vector into a second normalization layer for processing to obtain a second output vector, and the second output vector is the output vector of the second graph neural network; and obtaining the target link set based on the second output vector.
5. An electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, It is characterized in that When the processor executes the program, the steps of the method for analyzing a Chinese medicine prescription based on deep learning as claimed in any one of claims 1 to 2 are implemented; Alternatively, when the processor executes the program, the steps of the Chinese medicine prescription analysis method based on deep learning as claimed in claim 3 are implemented.
6. A non-transitory computer-readable storage medium having a computer program stored thereon, It is characterized in that When the computer program is executed by the processor, the steps of the method for analyzing a Chinese medicine prescription based on deep learning according to any one of claims 1 to 2 are implemented; Alternatively, when the computer program is executed by a processor, the steps of the Chinese medicine prescription analysis method based on deep learning as claimed in claim 3 are implemented.
7. A computer program product comprising a computer program, It is characterized in that When the computer program is executed by the processor, the steps of the method for analyzing a Chinese medicine prescription based on deep learning according to any one of claims 1 to 2 are implemented; Alternatively, when the computer program is executed by a processor, the steps of the Chinese medicine prescription analysis method based on deep learning as claimed in claim 3 are implemented.
