A method and system for analyzing prescriptions of traditional Chinese medicine

The RNN neural network framework is used to build a relationship map of traditional Chinese medicine prescriptions, combined with clinical data, to solve the problem of extensive and poor accuracy of traditional Chinese medicine compound analysis results, and to achieve rapid and accurate selection of traditional Chinese medicine prescriptions.

CN118366686BInactive Publication Date: 2024-10-15INST OF BASIC RES & CLINICAL MEDICINE CHINA ACAD OF CHINESE MEDICAL SCI
View PDF 4 Cites 0 Cited by

Patent Information

Application Number
CN202410789214.5
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-06-19
Publication Date
2024-10-15
Estimated Expiration
Not applicable · inactive patent

AI Technical Summary

Technical Problem

The existing traditional Chinese medicine compound analysis methods fail to combine with actual clinical effects, resulting in poor breadth, practicality and accuracy of analysis results.

Method used

Use the RNN neural network framework to build a deep learning model, extract keywords and assign attribute labels to the traditional Chinese medicine prescription data, build a drug prescription relationship map, and conduct analysis based on the map, combined with hospital electronic medical records and diagnosis data of famous traditional Chinese medicine practitioners to achieve accurate composition analysis.

Benefits of technology

Through the map construction of the deep learning model, accurate and reliable analysis of traditional Chinese medicine prescriptions is achieved, and the speed and accuracy of traditional Chinese medicine prescription selection and medication are improved.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118366686B_ABST
    Figure CN118366686B_ABST
Patent Text Reader

Abstract

The present invention relates to the technical field of drug analysis, and in particular to a prescription analysis method and system for traditional Chinese medicine; the method comprises the following steps: obtaining data related to traditional Chinese medicine prescriptions from a traditional Chinese medicine-related database, performing word segmentation and part-of-speech tagging processing on the data related to the traditional Chinese medicine prescriptions, establishing a deep learning model based on an RNN neural network framework to extract keywords and their connection relationships from the data related to the traditional Chinese medicine prescriptions, and assigning attribute labels of syndromes, types of diseases, symptoms, treatment methods and prescriptions; based on the extracted keywords, attribute labels and the connection relationships therebetween, a drug prescription relationship map is constructed with the keywords as nodes; based on the drug prescription relationship map, prescriptions under different syndromes, types of diseases, symptoms and / or treatment methods are analyzed; through the present invention, accurate and reliable map construction is achieved, and prescriptions under different syndromes, types of diseases, symptoms and treatment methods are analyzed, providing a basis for traditional Chinese medicine to select prescriptions and use medicines more quickly and accurately.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

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

[0002] The efficacy and effects of Western medicine are mainly reflected in the different chemical components of the medicine. In comparison, Chinese medicine, which was born thousands of years ago, is the result of our ancestors repeatedly verifying, summarizing and deepening the knowledge of the medicinal properties of various Chinese herbal medicines in practice. After a long period of development, the theory of the medicinal properties of Chinese medicine has formed a relatively comprehensive summary of the medicinal properties of single Chinese medicines. The specific properties, tastes, meridians and toxicity of thousands of single Chinese medicines have formed a comprehensive and detailed knowledge base of the medicinal properties of Chinese medicines. However, in the process of using Chinese medicine, the use rate of single Chinese medicine alone is very low. In most cases, multiple medicines are used in compound prescriptions to form multiple efficacy treatments. According to relevant theories of traditional Chinese medicine, the overall properties and tastes produced by the compatibility of multiple Chinese medicines are the key to forming their efficacy.

[0003] With the development of data mining, machine learning and other related technologies, the analysis and mining of Chinese medicine compatibility rules from a large number of Chinese medicine compound prescriptions, the exploration of drug compatibility rules, and the revealing of efficacy and its corresponding Chinese medicine compatibility are of great value in improving the theory of Chinese medicine compatibility, guiding clinical drug use, new drug discovery and automatic prescription grouping. Currently, the existing Chinese medicine compound analysis and mining methods mostly use general methods, such as classification, principal component analysis, association rule analysis, etc., and fail to combine the mining and analysis of existing clinical related data, and the results obtained are poor in breadth, practicality and accuracy. Summary of the invention

[0004] In view of the above-mentioned deficiencies in the prior art, the present invention aims to provide a method and system for analyzing the formulation of traditional Chinese medicine, so as to solve the problems of poor extensiveness, practicality and accuracy of the analysis results caused by the failure to consider the actual clinical effects in the existing analysis of traditional Chinese medicine formulations.

[0005] In order to solve the above problems, the present invention adopts the following technical solutions:

[0006] A method for analyzing a prescription of traditional Chinese medicine, comprising:

[0007] The data related to Chinese medicine prescriptions are obtained from the Chinese medicine related database, and the data related to Chinese medicine prescriptions are processed by word segmentation and part-of-speech tagging.

[0008] Based on the RNN neural network framework, a deep learning model is established to extract keywords and their connection relationships from data related to Chinese medicine prescriptions, and attribute labels are assigned to syndromes, diseases, symptoms, treatment methods and prescriptions.

[0009] Based on the extracted keywords, attribute labels and the connection relationships between them, a drug prescription relationship map is constructed with keywords as nodes.

[0010] Based on the drug prescription relationship map, the prescriptions under different syndromes, diseases, symptoms and / or treatment methods are analyzed.

[0011] As an implementable method, the word segmentation and part-of-speech tagging processing of the data related to the Chinese medicine prescription includes:

[0012] A word segmentation tool trained with a vocabulary dictionary in the medical field is used to segment the data related to traditional Chinese medicine prescriptions, and the parts of speech of the segmented words are marked; if a word segmentation result completely matches an entity in the vocabulary dictionary in the medical field, the word segmentation and part-of-speech tagging of the word segmentation result are determined; if a word segmentation result does not completely match an entity in the vocabulary dictionary in the medical field, the word segmentation result is split into a character sequence, and each character is given a special part-of-speech tag.

[0013] As an implementation method, the drug formulation relationship map for:

[0014] .

[0015] in, is a collection of keyword nodes, , n is the number of keyword nodes; is a set of triples formed by keyword nodes and connection relationships. , , representing a keyword node and There is a connection relationship between ; The node attribute corresponding to the keyword node; It is the set of connection relationships between two keyword nodes.

[0016] As an implementable method, the deep learning model established based on the RNN neural network framework extracts keywords and their connection relationships from data related to Chinese medicine prescriptions, and assigns attribute labels to syndromes, diseases, symptoms, treatment methods and prescriptions, including:

[0017] Using RNN neural network framework to build deep learning model , is the input of the deep learning model, is the parameter matrix of each hidden layer of the model neural network The parameter vector is composed of For the The unknown weight parameter matrix of the layer, , is the total number of hidden layers; use sample training to optimize the parameter vector of the deep learning model , for the unknown weight parameter matrix of each hidden layer Assign values ​​until the loss function meets expectations and obtain a trained deep learning model.

[0018] Based on the input of the deep learning model, for any keyword node Calculate its The feature representation obtained by the hidden layer :

[0019] .

[0020] in is the activation function, For the keyword node Has a connection relationship The set of other nodes of is a predetermined constant, with a value of , Representing a collection The number of elements of Representing a collection The The keyword node is in The feature representation output by the hidden layer is For this keyword node In the The feature representation output by the hidden layer.

[0021] For keyword nodes , the deep learning model obtains feature representation layer by layer until the last hidden layer, i.e. Feature representation of the hidden layer .

[0022] Will As the input of the softmax classification layer, we get :

[0023] .

[0024] in, is a K-dimensional vector, the first Elements Indicates that according to the keyword node Corresponding Determine the keyword node With the first The probability of the class attribute, that is:

[0025] .

[0026] in, .

[0027] Keyword Node and The connection relationship between them is expressed as:

[0028] .

[0029] in is the parameter matrix corresponding to relation r, keyword node and Observations with a connection relationship between .

[0030] .

[0031] As an implementable method, the extracted keywords, attribute labels and the connection relationship between them are used to construct a drug prescription relationship map with keywords as nodes, including: constructing a drug prescription relationship map based on the rules of syndrome-treatment-prescription, disease-treatment-prescription and symptom-treatment-prescription.

[0032] As an implementable method, it also includes using visualization software to analyze prescriptions under different syndromes, diseases, symptoms and / or treatment methods based on the drug prescription relationship map.

[0033] A prescription analysis system for traditional Chinese medicine includes a data acquisition module, a keyword extraction module, a drug prescription relationship map construction module and an analysis module.

[0034] The data acquisition module is used to acquire data related to Chinese medicine prescriptions from a Chinese medicine related database, and perform word segmentation and part-of-speech tagging on the data related to the Chinese medicine prescriptions.

[0035] The keyword extraction module is used to establish a deep learning model based on the RNN neural network framework to extract keywords and their connection relationships from data related to Chinese medicine prescriptions, and to assign attribute labels to syndromes, diseases, symptoms, treatment methods and prescriptions.

[0036] The drug prescription relationship map construction module is used to construct a drug prescription relationship map based on the extracted keywords, attribute labels and the connection relationships between them, with the keywords as nodes.

[0037] The analysis module is used to analyze prescriptions under different syndromes, diseases, symptoms and / or treatment methods based on the drug prescription relationship map.

[0038] As an implementable method, the word segmentation and part-of-speech tagging processing of the data related to the Chinese medicine prescription includes:

[0039] A word segmentation tool trained with a vocabulary dictionary in the medical field is used to segment the data related to traditional Chinese medicine prescriptions, and the parts of speech of the segmented words are marked; if a word segmentation result completely matches an entity in the vocabulary dictionary in the medical field, the word segmentation and part-of-speech tagging of the word segmentation result are determined; if a word segmentation result does not completely match an entity in the vocabulary dictionary in the medical field, the word segmentation result is split into a character sequence, and each character is given a special part-of-speech tag.

[0040] As an implementation method, the drug formulation relationship map for:

[0041] .

[0042] in, is a collection of keyword nodes, , n is the number of keyword nodes; is a set of triples formed by keyword nodes and connection relationships. , , representing a keyword node and There is a connection relationship between ; The node attribute corresponding to the keyword node; It is the set of connection relationships between two keyword nodes.

[0043] As an implementable method, the deep learning model established based on the RNN neural network framework extracts keywords and their connection relationships from data related to Chinese medicine prescriptions, and assigns attribute labels to syndromes, diseases, symptoms, treatment methods and prescriptions, including:

[0044] Using RNN neural network framework to build deep learning model , is the input of the deep learning model, is the parameter matrix of each hidden layer of the model neural network The parameter vector is composed of For the The unknown weight parameter matrix of the layer, , is the total number of hidden layers; use sample training to optimize the parameter vector of the deep learning model , for the unknown weight parameter matrix of each hidden layer Assign values ​​until the loss function meets expectations and obtain a trained deep learning model.

[0045] Based on the input of the deep learning model, for any keyword node Calculate its The feature representation obtained by the hidden layer .

[0046] .

[0047] in is the activation function, For the keyword node Has a connection relationship The set of other nodes of is a predetermined constant, with a value of , Representing a collection The number of elements of Representing a collection The The keyword node is in The feature representation output by the hidden layer is For this keyword node In the The feature representation output by the hidden layer.

[0048] For keyword nodes , the deep learning model obtains feature representation layer by layer until the last hidden layer, i.e. Feature representation of the hidden layer .

[0049] Will As the input of the softmax classification layer, we get .

[0050] .

[0051] in, is a K-dimensional vector, the first Elements Indicates that according to the keyword node Corresponding Determine the keyword node With the first The probability of the class attribute, that is:

[0052] .

[0053] in, .

[0054] Keyword Node and The connection relationship between them is expressed as:

[0055] .

[0056] in is the parameter matrix corresponding to relation r, keyword node and Observations with a connection relationship between .

[0057] .

[0058] The beneficial effects of the present invention are: through the Chinese medicine formula analysis method of the present invention, a deep learning model can be established based on the existing hospital electronic medical records and the diagnosis data of famous old Chinese medicine doctors to construct a map based on the RNN neural network framework, and the electronic medical record data can be used to obtain newer Chinese medicine formulas and therapeutic effects, and the deep learning model is used to achieve accurate keyword recognition, attribute matching and connection relationship determination, and the constructed map is accurate and reliable. The map constructed by the present invention can realize the formula analysis under different diseases, symptoms and treatment methods, and provide a basis for Chinese medicine to select prescriptions and use medicines more quickly and accurately. BRIEF DESCRIPTION OF THE DRAWINGS

[0059] Figure 1 The present invention is a schematic diagram of a method for analyzing a prescription of traditional Chinese medicine according to an embodiment of the present invention.

[0060] Figure 2 Schematic diagram of a prescription analysis system for traditional Chinese medicine in an embodiment of the present invention. DETAILED DESCRIPTION

[0061] The present invention is further described in detail below in conjunction with specific embodiments.

[0062] It should be noted that these embodiments are only used to illustrate the present invention rather than to limit the present invention. Simple improvements to the method based on the concept of the present invention all fall within the scope of protection claimed by the present invention.

[0063] See also Figure 1 , which is a formula analysis method for traditional Chinese medicine, including:

[0064] S100, obtaining data related to Chinese medicine prescriptions from a Chinese medicine related database, and performing word segmentation and part-of-speech tagging processing on the data related to the Chinese medicine prescriptions.

[0065] The TCM-related database of the present invention includes, but is not limited to, a hospital electronic medical record database, a diagnosis database of famous veteran TCM doctors, and a diagnosis database combining traditional Chinese and western medicine.

[0066] Jieba tool is used to analyze and tag the data related to traditional Chinese medicine prescriptions. The specific process is as follows:

[0067] The Jieba word segmentation tool trained with the medical vocabulary dictionary is used to segment the data in the data related to the Chinese medicine formula, and the part of speech of the segmented words is annotated; if a certain segmentation result completely matches the entity in the medical vocabulary dictionary, the segmentation and part of speech tagging of the segmentation result are determined; if a certain segmentation result does not completely match the entity in the medical vocabulary dictionary, the segmentation result is split into a character sequence, and each character is given a special part of speech tag. Parts of speech can be divided into nouns, verbs, adjectives, modal particles, etc. The medical vocabulary dictionary includes but is not limited to: Standardization of Chinese medicine names: Pharmacopoeia of the People's Republic of China (2020 edition); Standardization of syndromes: "Chinese Medicine Clinical Diagnosis and Treatment Terminology Part 2: Syndromes" (GB / T16751.2-2021); Standardization of treatment principles and methods: "Chinese Medicine Clinical Diagnosis and Treatment Terminology Part 3: Treatment Methods" (GB / T16751.3-2023).

[0068] The purpose of the above processing is to compare the word segmentation based on the Jieba word segmentation tool trained with the medical vocabulary dictionary, which can block data redundancy caused by interference words, useless words, etc.; mark the part of speech to facilitate the identification and screening of word segmentation by the nature of the word; give special part of speech tags to the word segmentation that does not completely match the entity in the medical vocabulary dictionary, so that the subsequent deep learning model can process the entity that is not fully recognized this time. On the one hand, the data is reduced, and on the other hand, the incompletely matched word segmentation is also marked to facilitate further processing and avoid the omission of incomplete standard data.

[0069] S200. A deep learning model is established based on the RNN neural network framework to extract keywords and their connection relationships from data related to Chinese medicine prescriptions, and to assign attribute labels to syndromes, diseases, symptoms, treatment methods and prescriptions.

[0070] The present invention provides a specific implementation of the above process:

[0071] Using RNN neural network framework to build deep learning model , The input of the deep learning model is the drug formula relationship map:

[0072] .

[0073] in, is a collection of keyword nodes, , n is the number of keyword nodes; is a set of triples formed by keyword nodes and connection relationships. , , representing a keyword node and There is a connection relationship between ; The node attribute corresponding to the keyword node; It is the set of connection relationships between two keyword nodes.

[0074] is the parameter matrix of each hidden layer of the model neural network The parameter vector is composed of For the The unknown weight parameter matrix of the layer, , is the total number of hidden layers; use sample training to optimize the parameter vector of the deep learning model , for the unknown weight parameter matrix of each hidden layer Assign values ​​until the loss function meets expectations and obtain a trained deep learning model.

[0075] Based on the input of the deep learning model, for any keyword node Calculate its The feature representation obtained by the hidden layer .

[0076] .

[0077] in is the activation function, For the keyword node Has a connection relationship The set of other nodes of is a predetermined constant, with a value of , Representing a collection The number of elements of Representing a collection The The keyword node is in The feature representation output by the hidden layer is For this keyword node In the The feature representation output by the hidden layer.

[0078] For keyword nodes , the deep learning model obtains feature representation layer by layer until the last hidden layer, i.e. Feature representation of the hidden layer .

[0079] Will As the input of the softmax classification layer, we get :

[0080] .

[0081] in, is a K-dimensional vector, the first Elements Indicates that according to the keyword node Corresponding Determine the keyword node With the first The probability of the class attribute. That is:

[0082] .

[0083] in, .

[0084] Keyword Node and The connection relationship between It is expressed as:

[0085] .

[0086] in is the parameter matrix corresponding to relation r, keyword node and Observations with a connection relationship between .

[0087] .

[0088] S300, based on the extracted keywords, attribute labels and the connection relationship between them, a drug prescription relationship map is constructed with the keywords as nodes.

[0089] The drug prescription relationship map is constructed in the manner of syndrome-treatment-prescription, disease-treatment-prescription and symptom-treatment-prescription. That is, the keywords, keyword attributes and connection relationships between keywords identified by the deep learning model can form the syndrome-treatment-prescription, disease-treatment-prescription and symptom-treatment-prescription map relationships.

[0090] S400, based on the drug prescription relationship map, analyze the prescriptions under different syndromes, diseases, symptoms and / or treatments. Based on the constructed drug prescription relationship map, visualization software can be used to analyze the prescriptions under different syndromes, diseases, symptoms and / or treatments.

[0091] For example, CiteSpace visualization software can be used. In the visualization function of CiteSpace, time slices can be set, that is, data from different years are analyzed separately, and then fusion analysis of data from multiple years is performed. In the fused graph, the year is represented by the color of the node or line, and the characteristics of the data from different years and the correlation characteristics of the overall data can be clearly observed. The CiteSpace visualization tool can be used to perform co-occurrence analysis and cluster analysis on the drug prescription relationship map. Information based on syndrome-treatment-prescription, disease-treatment-prescription, and symptom-treatment-prescription based on different years can be obtained, or through clustering, for example, what kind of treatment prescription for a certain disease, the frequency of occurrence of each drug component in a specific prescription, etc. can be obtained.

[0092] See also Figure 2 , which is a prescription analysis system for traditional Chinese medicine, including a data acquisition module 100, a keyword extraction module 200, a drug prescription relationship map construction module 300 and an analysis module 400.

[0093] The data acquisition module 100 is used to acquire data related to Chinese medicine prescriptions from a Chinese medicine related database, and perform word segmentation and part-of-speech tagging on the data related to the Chinese medicine prescriptions.

[0094] The keyword extraction module 200 is used to establish a deep learning model based on the RNN neural network framework to extract keywords and their connection relationships from data related to Chinese medicine prescriptions, and to assign attribute labels for syndromes, diseases, symptoms, treatment methods and prescriptions.

[0095] The drug prescription relationship map construction module 300 is used to construct a drug prescription relationship map based on the extracted keywords, attribute labels and the connection relationships between them, with the keywords as nodes.

[0096] The analysis module 400 is used to analyze the prescriptions under different syndromes, diseases, symptoms and / or treatment methods based on the drug prescription relationship map.

[0097] Among them, the data related to Chinese medicine prescriptions are processed by word segmentation and part-of-speech tagging, including:

[0098] A word segmentation tool trained with a vocabulary dictionary in the medical field is used to segment the data related to traditional Chinese medicine prescriptions, and the parts of speech of the segmented words are marked; if a word segmentation result completely matches an entity in the vocabulary dictionary in the medical field, the word segmentation and part-of-speech tagging of the word segmentation result are determined; if a word segmentation result does not completely match an entity in the vocabulary dictionary in the medical field, the word segmentation result is split into a character sequence, and each character is given a special part-of-speech tag.

[0099] Among them, the drug formula relationship map for:

[0100] .

[0101] in, is a collection of keyword nodes, , n is the number of keyword nodes; is a set of triples formed by keyword nodes and connection relationships. , , representing a keyword node and There is a connection relationship between ; The node attribute corresponding to the keyword node; It is the set of connection relationships between two keyword nodes.

[0102] The deep learning model established based on the RNN neural network framework extracts keywords and their connection relationships from the data related to the Chinese medicine prescription, and assigns attribute labels to syndromes, diseases, symptoms, treatment methods and prescriptions, including:

[0103] Using RNN neural network framework to build deep learning model , is the input of the deep learning model, is the parameter matrix of each hidden layer of the model neural network The parameter vector is composed of For the The unknown weight parameter matrix of the layer, , is the total number of hidden layers; use sample training to optimize the parameter vector of the deep learning model , for the unknown weight parameter matrix of each hidden layer Assign values ​​until the loss function meets expectations and obtain a trained deep learning model.

[0104] Based on the input of the deep learning model, for any keyword node Calculate its The feature representation obtained by the hidden layer .

[0105] .

[0106] in is the activation function, For the keyword node Has a connection relationship The set of other nodes of is a predetermined constant, with a value of , Representing a collection The number of elements of Representing a collection The The keyword node is in The feature representation output by the hidden layer is For this keyword node In the The feature representation output by the hidden layer.

[0107] For keyword nodes , the deep learning model obtains feature representation layer by layer until the last hidden layer, i.e. Feature representation of the hidden layer .

[0108] Will As the input of the softmax classification layer, we get :

[0109] .

[0110] in, is a K-dimensional vector, the first Elements Indicates that according to the keyword node Corresponding Determine the keyword node With the first The probability of the class attribute. That is:

[0111] .

[0112] in, .

[0113] Keyword Node and The connection relationship between them is expressed as:

[0114] .

[0115] in is the parameter matrix corresponding to relation r, keyword node and Observations with a connection relationship between .

[0116] .

[0117] 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 with reference to the preferred embodiments of the present invention, it should be understood by those skilled in the art that various changes may be made in form and details without departing from the spirit and scope of the present invention as defined in the appended claims.

Claims

1. A method for analyzing the composition of traditional Chinese medicine, characterized in that: include: Acquire data related to Chinese medicine prescriptions from Chinese medicine related databases, and perform word segmentation and part-of-speech tagging on the data related to Chinese medicine prescriptions; A deep learning model based on the RNN neural network framework is established to extract keywords and their connections from data related to Chinese medicine prescriptions, and to assign attribute labels to syndromes, diseases, symptoms, treatment methods, and prescriptions; Based on the extracted keywords, attribute labels and the connection relationship between them, a drug prescription relationship map is constructed with keywords as nodes; Based on the drug prescription relationship map, analyze the prescriptions under different syndromes, diseases, symptoms and / or treatment methods; The word segmentation and part-of-speech tagging processing of the data related to the Chinese medicine prescription includes: The word segmentation tool trained with the medical vocabulary dictionary is used to segment the data in the data related to the Chinese medicine formula, and the part of speech of the segmented words is marked; if a certain segmentation result completely matches the entity in the medical vocabulary dictionary, the segmentation and part of speech tagging of the segmentation result are determined; if a certain segmentation result does not completely match the entity in the medical vocabulary dictionary, the segmentation result is split into a character sequence, and each character is given a special part of speech tag; The drug formula relationship map for: in, is a collection of keyword nodes, , n is the number of keyword nodes; is a set of triples formed by keyword nodes and connection relationships. , , representing a keyword node and There is a connection relationship between ; The node attribute corresponding to the keyword node; is the set of connection relationships between two keyword nodes; The deep learning model established based on the RNN neural network framework extracts keywords and their connection relationships from the data related to the Chinese medicine prescription, and assigns attribute labels to syndromes, diseases, symptoms, treatment methods and prescriptions, including: Using RNN neural network framework to build deep learning model , is the input of the deep learning model, is the parameter matrix of each hidden layer of the model neural network The parameter vector is composed of For the The unknown weight parameter matrix of the layer, , is the total number of hidden layers; use sample training to optimize the parameter vector of the deep learning model , for the unknown weight parameter matrix of each hidden layer Assign values ​​until the loss function meets expectations and obtain a trained deep learning model; Based on the input of the deep learning model, for any keyword node Calculate its The feature representation obtained by the hidden layer : in is the activation function, For the keyword node Has a connection relationship A collection of other keyword nodes, is a predetermined constant, with a value of , Representing a collection The number of elements, Representing a collection The The keyword node is in The feature representation output by the hidden layer is For this keyword node In the The feature representation output by the hidden layer; For keyword nodes , the deep learning model obtains feature representation layer by layer until the last hidden layer, i.e. Feature representation of the hidden layer ; Will As the input of the softmax classification layer, we get : in, is a K-dimensional vector, the first Elements Indicates that according to the keyword node Corresponding Determine the keyword node With the first The probability of the class attribute, that is: in, ; Keyword Node and The connection relationship between them is expressed as: in is the parameter matrix corresponding to relation r, keyword node and Observations with a connection relationship between : 。 2. The method for analyzing the prescription of traditional Chinese medicine according to claim 1, characterized in that: The method constructs a drug prescription relationship map based on the extracted keywords, attribute labels and the connection relationship between them, using keywords as nodes, including: constructing a drug prescription relationship map based on the rules of syndrome-treatment-prescription, disease-treatment-prescription and symptom-treatment-prescription.

3. The method for analyzing the prescription of traditional Chinese medicine according to claim 1, characterized in that: It also includes the use of visualization software to analyze prescriptions under different syndromes, diseases, symptoms and / or treatment methods based on the drug prescription relationship map.

4. A prescription analysis system for traditional Chinese medicine, characterized in that: It includes data acquisition module, keyword extraction module, drug formula relationship map construction module and analysis module; The data acquisition module is used to acquire data related to Chinese medicine prescriptions from a Chinese medicine-related database, and perform word segmentation and part-of-speech tagging on the data related to the Chinese medicine prescriptions; The keyword extraction module is used to establish a deep learning model based on the RNN neural network framework to extract keywords and their connection relationships from data related to Chinese medicine prescriptions, and to assign attribute labels to syndromes, diseases, symptoms, treatment methods and prescriptions; The drug prescription relationship map construction module is used to construct a drug prescription relationship map based on the extracted keywords, attribute tags and the connection relationship between them, with the keywords as nodes; The analysis module is used to analyze the prescriptions under different syndromes, diseases, symptoms and / or treatment methods based on the drug prescription relationship map; The word segmentation and part-of-speech tagging processing of the data related to the Chinese medicine prescription includes: The word segmentation tool trained with the medical vocabulary dictionary is used to segment the data in the data related to the Chinese medicine formula, and the part of speech of the segmented words is marked; if a certain segmentation result completely matches the entity in the medical vocabulary dictionary, the segmentation and part of speech tagging of the segmentation result are determined; if a certain segmentation result does not completely match the entity in the medical vocabulary dictionary, the segmentation result is split into a character sequence, and each character is given a special part of speech tag; The drug formula relationship map for: in, is a collection of keyword nodes, , n is the number of keyword nodes; is a set of triples formed by keyword nodes and connection relationships. , , representing a keyword node and There is a connection relationship between ; The node attribute corresponding to the keyword node; is the set of connection relationships between two keyword nodes; The deep learning model established based on the RNN neural network framework extracts keywords and their connection relationships from the data related to the Chinese medicine prescription, and assigns attribute labels to syndromes, diseases, symptoms, treatment methods and prescriptions, including: Using RNN neural network framework to build deep learning model , is the input of the deep learning model, is the parameter matrix of each hidden layer of the model neural network The parameter vector is composed of For the The unknown weight parameter matrix of the layer, , is the total number of hidden layers; use sample training to optimize the parameter vector of the deep learning model , for the unknown weight parameter matrix of each hidden layer Assign values ​​until the loss function meets expectations and obtain a trained deep learning model; Based on the input of the deep learning model, for any keyword node Calculate its The feature representation obtained by the hidden layer : in is the activation function, For the keyword node Has a connection relationship The set of other nodes of is a predetermined constant, with a value of , Representing a collection The number of elements, Representing a collection The The keyword node is in The feature representation output by the hidden layer is For this keyword node In the The feature representation output by the hidden layer; For keyword nodes , the deep learning model obtains feature representation layer by layer until the last hidden layer, i.e. Feature representation of the hidden layer ; Will As the input of the softmax classification layer, we get : in, is a K-dimensional vector, the first Elements Indicates that according to the keyword node Corresponding Determine the keyword node With the first The probability of the class attribute, that is: in, ; Keyword Node and The connection relationship between them is expressed as: in is the parameter matrix corresponding to relation r, keyword node and Observations with a connection relationship between : 。

Citation Information

Patent Citations

  • Core medicament identification method based on traditional Chinese medicine and pharmacy literature

    CN109903854A

  • Traditional Chinese medicine intelligent diagnosis and treatment auxiliary system based on knowledge graph and deep learning

    CN113380400A

  • Patient identification method and system based on multiple attention mechanisms under non-contact measurement

    CN115359897A

  • Prescription formula rule analysis method and system based on visual tool

    CN116631570A