Traditional Chinese medicine prescription generation method and system based on big data processing
Through big data processing technology, consultation videos and symptom information are used to generate traditional Chinese medicine prescriptions, which solves the problem of time-consuming traditional Chinese medicine consultations, achieves fast and accurate prescription generation, and improves diagnostic efficiency and accuracy.
Patent Information
- Application Number
- CN202411143735.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-08-20
- Publication Date
- 2024-09-17
AI Technical Summary
The traditional Chinese medicine consultation method relies on the doctor's personal experience and is time-consuming, making it difficult to quickly and accurately generate prescriptions suitable for users.
A method based on big data processing is adopted to obtain the user's consultation video and symptom information, use the consultation processing model to determine the complexion and tongue coating information, and combine the traditional Chinese medicine prescription database and the generative adversarial network to generate personalized traditional Chinese medicine prescriptions.
It achieves the rapid and accurate generation of Chinese medicine prescriptions suitable for users, reduces dependence on doctor experience, and improves diagnostic efficiency and accuracy.
Smart Images

Figure CN118658591A
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of traditional Chinese medicine, and in particular to a method and system for generating traditional Chinese medicine prescriptions based on big data processing. Background Art
[0002] As an important part of traditional Chinese medicine, TCM has a history of thousands of years, and its unique diagnostic methods and treatment concepts are recognized worldwide. TCM diagnosis mainly relies on the four methods of inspection, auscultation, inquiry, and palpation. Inspection is a method of inferring the internal health status by observing the patient's complexion, tongue and other external manifestations. The traditional inspection method relies on the doctor's personal experience and intuition and requires the doctor to meet the patient face to face, which is time-consuming. This not only requires the doctor to have superb medical skills, but also the diagnosis results may be affected by the doctor's personal differences.
[0003] Therefore, how to quickly and accurately generate prescriptions suitable for users is a problem that needs to be solved urgently. Summary of the invention
[0004] The main technical problem solved by the present invention is how to quickly and accurately generate a prescription suitable for a user.
[0005] According to a first aspect, the present invention provides a method for generating a traditional Chinese medicine prescription based on big data processing, comprising: obtaining a visual diagnosis video recorded by a user according to a mobile phone prompt and symptom information input by the user; using a visual diagnosis processing model to determine the user's complexion information and the user's tongue coating information based on the visual diagnosis video recorded by the user according to the mobile phone prompt; determining multiple matching users and the traditional Chinese medicine prescriptions corresponding to the multiple matching users based on the symptom information input by the user, the complexion information of the user, the tongue coating information of the user, and a traditional Chinese medicine prescription database; using a prescription analysis model to determine multiple alternative monarch drugs, multiple alternative ministerial drugs, multiple alternative adjuvant drugs, and multiple alternative guiding drugs based on the symptom information input by the user, the complexion information of the user, the tongue coating information of the user, and the traditional Chinese medicine prescriptions corresponding to the multiple matching users; and using a generative adversarial network to generate a target traditional Chinese medicine prescription based on the symptom information input by the user, the complexion information of the user, the tongue coating information of the user, the traditional Chinese medicine prescriptions corresponding to the multiple matching users, the multiple alternative monarch drugs, the multiple alternative ministerial drugs, the multiple alternative adjuvant drugs, and the multiple alternative guiding drugs.
[0006] Furthermore, the inspection processing model is a gated recurrent unit.
[0007] Furthermore, the traditional Chinese medicine prescription database includes a plurality of sample user data, each sample user data includes reference symptom information, reference complexion information, reference tongue coating information and a corresponding traditional Chinese medicine prescription.
[0008] Furthermore, the input of the generative adversarial network is the symptom information input by the user, the complexion information of the user, the tongue coating information of the user, the multiple Chinese medicine prescriptions corresponding to the matching users, the multiple alternative monarch drugs, the multiple alternative minister drugs, the multiple alternative adjuvant drugs, and the multiple alternative guiding drugs, and the output of the generative adversarial network is the target Chinese medicine prescription.
[0009] Furthermore, the prescription analysis model is a deep neural network model.
[0010] According to a second aspect, the present invention provides a Chinese medicine prescription generation system based on big data processing, comprising: a first acquisition module, for acquiring a visual diagnosis video recorded by a user according to a mobile phone prompt and symptom information input by the user; An inspection processing module, used to determine the user's complexion information and the user's tongue coating information using an inspection processing model based on the inspection video recorded by the user according to the mobile phone prompt; A matching determination module, used for determining a plurality of matching users and the Chinese medicine prescriptions corresponding to the plurality of matching users based on the symptom information input by the user, the complexion information of the user, the tongue coating information of the user, and a Chinese medicine prescription database; A prescription analysis module, for determining a plurality of candidate monarch drugs, a plurality of candidate minister drugs, a plurality of candidate adjuvant drugs, and a plurality of candidate guiding drugs using a prescription analysis model based on the symptom information input by the user, the complexion information of the user, the tongue coating information of the user, and the plurality of Chinese medicine prescriptions corresponding to the matching users; The target Chinese medicine prescription generation module based on big data processing is used to generate a target Chinese medicine prescription using a generative adversarial network based on the symptom information input by the user, the complexion information of the user, the tongue coating information of the user, the Chinese medicine prescriptions corresponding to the multiple matching users, the multiple alternative monarch drugs, the multiple alternative minister drugs, the multiple alternative adjuvant drugs, and the multiple alternative auxiliary drugs.
[0011] Furthermore, the inspection processing model is a gated recurrent unit.
[0012] Furthermore, the traditional Chinese medicine prescription database includes a plurality of sample user data, each sample user data includes reference symptom information, reference complexion information, reference tongue coating information and a corresponding traditional Chinese medicine prescription.
[0013] Furthermore, the input of the generative adversarial network is the symptom information input by the user, the complexion information of the user, the tongue coating information of the user, the multiple Chinese medicine prescriptions corresponding to the matching users, the multiple alternative monarch drugs, the multiple alternative minister drugs, the multiple alternative adjuvant drugs, and the multiple alternative guiding drugs, and the output of the generative adversarial network is the target Chinese medicine prescription.
[0014] Furthermore, the prescription analysis model is a deep neural network model.
[0015] The present invention provides a method and system for generating a Chinese medicine prescription based on big data processing. The method comprises acquiring a visual diagnosis video recorded by a user according to a mobile phone prompt and symptom information input by the user; using a visual diagnosis processing model to determine the user's complexion information and the user's tongue coating information based on the visual diagnosis video recorded by the user according to the mobile phone prompt; determining multiple matching users and Chinese medicine prescriptions corresponding to the multiple matching users based on the symptom information input by the user, the complexion information of the user, the tongue coating information of the user, and a Chinese medicine prescription database; using a prescription analysis model to determine multiple candidate monarch drugs, multiple candidate ministerial drugs, multiple candidate adjuvant drugs, and multiple candidate guiding drugs based on the symptom information input by the user, the complexion information of the user, the tongue coating information of the user, and the Chinese medicine prescriptions corresponding to the multiple matching users; and using a generative adversarial network to generate a target Chinese medicine prescription based on the symptom information input by the user, the complexion information of the user, the tongue coating information of the user, the Chinese medicine prescriptions corresponding to the multiple matching users, the multiple candidate monarch drugs, the multiple candidate ministerial drugs, the multiple candidate adjuvant drugs, and the multiple candidate guiding drugs. The method can quickly and accurately generate a prescription suitable for the user. BRIEF DESCRIPTION OF THE DRAWINGS
[0016] Figure 1 A schematic diagram of a flow chart of a method for generating a traditional Chinese medicine prescription based on big data processing provided by an embodiment of the present invention; Figure 2 A schematic diagram of a Chinese medicine prescription generation system based on big data processing provided in an embodiment of the present invention. DETAILED DESCRIPTION
[0017] In an embodiment of the present invention, there is provided Figure 1 A method for generating a Chinese medicine prescription based on big data processing is shown, and the method for generating a Chinese medicine prescription based on big data processing includes steps S1 to S5: Step S1, obtaining the visual diagnosis video recorded by the user according to the prompt of the mobile phone and the symptom information input by the user.
[0018] Observation is one of the four diagnostic methods in traditional Chinese medicine (observation, auscultation, inquiry, palpation). It obtains health information by observing the patient's complexion, tongue quality, tongue coating and other external features. Observation video refers to a video recorded by the user according to the prompts of the mobile phone application, which contains information such as face and tongue. As an example, the user will be asked to stick out the tongue, record the front and side of the tongue and record a facial video. The mobile phone prompts include sticking out the tongue, recording a facial video, etc.
[0019] Symptom information input by the user may include fever, cough, indigestion, etc. The user inputs the symptom information through the mobile phone application.
[0020] Step S2, using the inspection processing model to determine the user's complexion information and the user's tongue coating information based on the inspection video recorded by the user according to the mobile phone prompt.
[0021] The visual diagnosis processing model is a gated recurrent unit. The input of the visual diagnosis processing model is the visual diagnosis video recorded by the user according to the mobile phone prompt, and the output of the visual diagnosis processing model is the user's complexion information and the user's tongue coating information.
[0022] The user's complexion information includes facial color, glossiness, presence of spots, etc. In traditional Chinese medicine theory, complexion is closely related to visceral function and qi and blood conditions.
[0023] The user's tongue coating information refers to the tongue surface health information determined based on the visual diagnosis video recorded by the user according to the mobile phone prompt. The user's tongue coating information includes characteristics such as tongue coating color, thickness, and wetness. The user's tongue coating information can reflect the health of the digestive system and the moisture and heat in the body.
[0024] The Gated Recurrent Unit (GRU) is used to process sequence data and timing information. The GRU includes three components: a memory unit, an update gate, and a reset gate. Through the gating mechanism, the GRU can better capture the long-term dependencies in the visual diagnosis video sequence data recorded by the user according to the mobile phone prompt, so as to more accurately determine the user's complexion information and the user's tongue coating information.
[0025] In some embodiments, the visual diagnosis processing model includes a video segmentation layer, a complexion information determination layer, and a tongue coating information determination layer, and the video segmentation layer, the complexion information determination layer, and the tongue coating information determination layer all include a gated loop unit. The input of the video segmentation layer is the visual diagnosis video recorded by the user according to the mobile phone prompt, the output of the video segmentation layer is a facial information display video and a tongue coating information display video, the input of the complexion information determination layer is a facial information display video, the output of the complexion information determination layer is the user's complexion information, the input of the tongue coating information determination layer is a tongue coating information display video, and the output of the tongue coating information determination layer is the user's tongue coating information.
[0026] Dividing the model into multiple layers can achieve modular design. Each layer is responsible for a specific processing task as an independent module, which is easy to understand and maintain. Each layer can be optimized specifically for its task, such as the video segmentation layer focuses on video processing, the complexion information determination layer focuses on complexion analysis, and the tongue coating information determination layer focuses on tongue coating analysis.
[0027] Step S3, determining a plurality of matching users and the Chinese medicine prescriptions corresponding to the plurality of matching users based on the symptom information input by the user, the complexion information of the user, the tongue coating information of the user, and a Chinese medicine prescription database.
[0028] In some embodiments, the similarity between the symptom information, the complexion information, and the tongue coating information input by the user and the reference symptom information, reference complexion information, and reference tongue coating information in each sample user data in the traditional Chinese medicine prescription database can be calculated, and multiple users with similarities higher than a threshold are taken as multiple matching users. In some embodiments, the similarity calculation method may include calculating cosine similarity, calculating Euclidean distance, etc. After multiple matching users are determined, the traditional Chinese medicine prescriptions corresponding to the multiple matching users are obtained.
[0029] The Chinese medicine prescription database is a pre-built system that stores a large amount of user health data and corresponding Chinese medicine prescriptions. The Chinese medicine prescription database includes multiple sample user data, each of which includes reference symptom information, reference complexion information, reference tongue coating information and corresponding Chinese medicine prescriptions. Through the Chinese medicine prescription database, the diagnostic experience of traditional Chinese medicine can be effectively combined with modern information technology to provide users with personalized Chinese medicine treatment plans.
[0030] Each Chinese medicine prescription in the Chinese medicine prescription database includes monarch medicine, ministerial medicine, adjuvant medicine and guiding medicine.
[0031] The traditional Chinese medicine prescription corresponding to each matched user includes main medicine, secondary medicine, adjuvant medicine and guiding medicine.
[0032] Matching users are users with high similarity to the user in the TCM prescription database. Each patient has different constitutions, severity of illness, and specific symptoms. By screening the prescriptions of similar users, a TCM prescription with more reference value can be provided to the current patient.
[0033] Step S4, based on the symptom information input by the user, the complexion information of the user, the tongue coating information of the user, and the traditional Chinese medicine prescriptions corresponding to the multiple matching users, a prescription analysis model is used to determine multiple alternative monarch drugs, multiple alternative minister drugs, multiple alternative adjuvant drugs, and multiple alternative guiding drugs.
[0034] The prescription analysis model is a deep neural network model. The deep neural network may include multiple processing layers, each processing layer is composed of multiple neurons, and each neuron performs a matrix transformation on the data. The parameters used by the matrix can be obtained through training. The input of the prescription analysis model is the symptom information input by the user, the complexion information of the user, the tongue coating information of the user, and the Chinese medicine prescriptions corresponding to the multiple matching users. The output of the prescription analysis model is multiple candidate monarch drugs, multiple candidate minister drugs, multiple candidate adjuvant drugs, and multiple candidate adjuvant drugs.
[0035] The compatibility of Chinese medicines requires the use of monarch, minister, adjuvant and messenger drugs. The deep neural network model can process the symptom information, complexion information and tongue coating information input by the user, and filter out multiple candidate monarch drugs, ministerial drugs, adjuvant drugs and messenger drugs from multiple Chinese medicine prescriptions corresponding to matching users.
[0036] The plurality of candidate main drugs, the plurality of candidate ministerial drugs, the plurality of candidate adjuvant drugs, and the plurality of candidate guiding drugs are screened from the traditional Chinese medicine prescriptions corresponding to the plurality of matching users.
[0037] In some embodiments, the prescription analysis model includes a matching degree determination layer and a threshold determination layer. The input of the matching degree determination layer is the symptom information input by the user, the complexion information of the user, the tongue coating information of the user, and the Chinese medicine prescriptions corresponding to the multiple matching users. The output of the matching degree determination layer is the matching degree between the monarch medicine in the Chinese medicine prescription corresponding to each matching user and the user, the matching degree between the minister medicine in the Chinese medicine prescription corresponding to each matching user and the user, the matching degree between the adjuvant medicine in the Chinese medicine prescription corresponding to each matching user and the user, and the matching degree between the auxiliary medicine in the Chinese medicine prescription corresponding to each matching user and the user. The input of the threshold determination layer is the matching degree between the monarch medicine in the Chinese medicine prescription corresponding to each matching user and the user, the matching degree between the minister medicine in the Chinese medicine prescription corresponding to each matching user and the user, the matching degree between the adjuvant medicine in the Chinese medicine prescription corresponding to each matching user and the user, and the matching degree between the auxiliary medicine in the Chinese medicine prescription corresponding to each matching user and the user, and the output of the threshold determination layer is multiple candidate monarch medicines, multiple candidate minister medicines, multiple candidate adjuvant medicines, and multiple candidate auxiliary medicines. The matching degree of each candidate monarch drug is higher than the monarch drug threshold, the matching degree of each candidate minister drug is higher than the minister drug threshold, the matching degree of each candidate adjuvant drug is higher than the adjuvant drug threshold, and the matching degree of each candidate assistant drug is higher than the assistant drug threshold.
[0038] The matching determination layer first calculates the matching degree between the prescription and the user characteristics, and then the threshold judgment layer determines the final candidate drugs based on these matching degrees. Through threshold judgment, it can be ensured that only drugs with a high enough matching degree will be selected as alternatives, thereby improving the reliability of the recommendation.
[0039] Step S5, generating a target Chinese medicine prescription using a generative adversarial network based on the symptom information input by the user, the complexion information of the user, the tongue coating information of the user, the multiple Chinese medicine prescriptions corresponding to the matching users, the multiple alternative monarch drugs, the multiple alternative minister drugs, the multiple alternative adjuvant drugs, and the multiple alternative auxiliary drugs.
[0040] The input of the generative adversarial network is the symptom information input by the user, the complexion information of the user, the tongue coating information of the user, the multiple Chinese medicine prescriptions corresponding to the matching users, the multiple alternative monarch drugs, the multiple alternative minister drugs, the multiple alternative adjuvant drugs, and the multiple alternative guiding drugs, and the output of the generative adversarial network is the target Chinese medicine prescription.
[0041] The Generative Adversarial Network (GAN) includes a generator and a discriminator. The generator is used to generate a target Chinese medicine prescription based on the multiple candidate monarch drugs, the multiple candidate minister drugs, the multiple candidate adjuvant drugs, and the multiple candidate guiding drugs. The discriminator is used to determine whether the generated target Chinese medicine prescription meets the preset prescription rules. The preset prescription rules may include the monarch, minister, assistant and guiding principle, drug compatibility, drug efficacy synergy, drug property balance and other rules. The preset prescription rules can be set in advance.
[0042] Drug compatibility refers to the relationship between drugs. Pharmacodynamic synergy refers to the synergistic effect between drugs. Drug balance refers to the balance of drug properties, such as cold and heat balance, tonifying and purgative balance, etc.
[0043] Generative adversarial networks learn from historical data, simulate the process of TCM experts treating patients based on their symptoms, and comprehensively consider the user's various symptoms and signs, as well as the characteristics of alternative drugs, to generate a prescription that fully reflects the patient's condition. Generative adversarial networks can be used to generate personalized prescriptions based on a large amount of historical data, improving the pertinence and effectiveness of treatment. Through the role of the discriminator, it is ensured that the generated prescriptions follow the TCM principle of monarch, minister, assistant and envoy and the rules of drug compatibility.
[0044] Based on the same inventive concept, Figure 2 A schematic diagram of a Chinese medicine prescription generation system based on big data processing provided by an embodiment of the present invention, wherein the Chinese medicine prescription generation system based on big data processing comprises: The first acquisition module 21 is used to acquire the visual diagnosis video recorded by the user according to the prompt of the mobile phone and the symptom information input by the user; The visual diagnosis processing module 22 is used to determine the user's complexion information and the user's tongue coating information using the visual diagnosis processing model based on the visual diagnosis video recorded by the user according to the mobile phone prompt; A matching determination module 23, for determining a plurality of matching users and the Chinese medicine prescriptions corresponding to the plurality of matching users based on the symptom information input by the user, the complexion information of the user, the tongue coating information of the user, and the Chinese medicine prescription database; The prescription analysis module 24 is used to determine multiple candidate monarch drugs, multiple candidate minister drugs, multiple candidate adjuvant drugs, and multiple candidate guiding drugs using a prescription analysis model based on the symptom information input by the user, the complexion information of the user, the tongue coating information of the user, and the multiple Chinese medicine prescriptions corresponding to the matching users; The target Chinese medicine prescription generation module 25 based on big data processing is used to generate a target Chinese medicine prescription using a generative adversarial network based on the symptom information input by the user, the complexion information of the user, the tongue coating information of the user, the Chinese medicine prescriptions corresponding to the multiple matching users, the multiple alternative monarch drugs, the multiple alternative minister drugs, the multiple alternative adjuvant drugs, and the multiple alternative auxiliary drugs.
Claims
1. A method for generating a traditional Chinese medicine prescription based on big data processing, characterized in that: include: Obtain the visual diagnosis video recorded by the user according to the mobile phone prompt and the symptom information entered by the user; Determine the user's complexion information and the user's tongue coating information using an inspection processing model based on the inspection video recorded by the user according to the mobile phone prompt; Determine a plurality of matching users and the Chinese medicine prescriptions corresponding to the plurality of matching users based on the symptom information input by the user, the complexion information of the user, the tongue coating information of the user, and a Chinese medicine prescription database; Determine multiple candidate monarch drugs, multiple candidate minister drugs, multiple candidate adjuvant drugs, and multiple candidate guiding drugs using a prescription analysis model based on the symptom information input by the user, the complexion information of the user, the tongue coating information of the user, and the multiple Chinese medicine prescriptions corresponding to the matched users; A target Chinese medicine prescription is generated using a generative adversarial network based on the symptom information input by the user, the complexion information of the user, the tongue coating information of the user, the multiple Chinese medicine prescriptions corresponding to the matching users, the multiple alternative monarch drugs, the multiple alternative minister drugs, the multiple alternative adjuvant drugs, and the multiple alternative auxiliary drugs.
2. The method for generating a Chinese medicine prescription based on big data processing according to claim 1, characterized in that: The inspection diagnosis processing model is a gated recurrent unit.
3. The method for generating a Chinese medicine prescription based on big data processing according to claim 1, characterized in that: The traditional Chinese medicine prescription database includes a plurality of sample user data, each of which includes reference symptom information, reference complexion information, reference tongue coating information and a corresponding traditional Chinese medicine prescription.
4. The method for generating a Chinese medicine prescription based on big data processing according to claim 1, characterized in that: The input of the generative adversarial network is the symptom information input by the user, the complexion information of the user, the tongue coating information of the user, the multiple Chinese medicine prescriptions corresponding to the matching users, the multiple alternative monarch drugs, the multiple alternative minister drugs, the multiple alternative adjuvant drugs, and the multiple alternative guiding drugs, and the output of the generative adversarial network is the target Chinese medicine prescription.
5. The method for generating a Chinese medicine prescription based on big data processing according to claim 1, characterized in that: The prescription analysis model is a deep neural network model.
6. A Chinese medicine prescription generation system based on big data processing, characterized in that: include: The first acquisition module is used to acquire the visual diagnosis video recorded by the user according to the mobile phone prompt and the symptom information input by the user; An inspection processing module, used to determine the user's complexion information and the user's tongue coating information using an inspection processing model based on the inspection video recorded by the user according to the mobile phone prompt; A matching determination module, used for determining a plurality of matching users and the Chinese medicine prescriptions corresponding to the plurality of matching users based on the symptom information input by the user, the complexion information of the user, the tongue coating information of the user, and a Chinese medicine prescription database; A prescription analysis module, for determining a plurality of candidate monarch drugs, a plurality of candidate minister drugs, a plurality of candidate adjuvant drugs, and a plurality of candidate guiding drugs using a prescription analysis model based on the symptom information input by the user, the complexion information of the user, the tongue coating information of the user, and the plurality of Chinese medicine prescriptions corresponding to the matching users; The target Chinese medicine prescription generation module based on big data processing is used to generate a target Chinese medicine prescription using a generative adversarial network based on the symptom information input by the user, the complexion information of the user, the tongue coating information of the user, the Chinese medicine prescriptions corresponding to the multiple matching users, the multiple alternative monarch drugs, the multiple alternative minister drugs, the multiple alternative adjuvant drugs, and the multiple alternative auxiliary drugs.
7. The Chinese medicine prescription generation system based on big data processing according to claim 6, characterized in that: The inspection diagnosis processing model is a gated recurrent unit.
8. The Chinese medicine prescription generation system based on big data processing according to claim 6, characterized in that: The traditional Chinese medicine prescription database includes a plurality of sample user data, each of which includes reference symptom information, reference complexion information, reference tongue coating information and a corresponding traditional Chinese medicine prescription.
9. The Chinese medicine prescription generation system based on big data processing according to claim 6, characterized in that: The input of the generative adversarial network is the symptom information input by the user, the complexion information of the user, the tongue coating information of the user, the multiple Chinese medicine prescriptions corresponding to the matching users, the multiple alternative monarch drugs, the multiple alternative minister drugs, the multiple alternative adjuvant drugs, and the multiple alternative guiding drugs, and the output of the generative adversarial network is the target Chinese medicine prescription.
10. The Chinese medicine prescription generation system based on big data processing according to claim 6, characterized in that: The prescription analysis model is a deep neural network model.
Citation Information
Patent Citations
Intelligent traditional Chinese medicine comprehensive diagnosis and treatment system based on deep learning
CN107242857A
GAN-based traditional Chinese medicine prescription improvement method
CN112420153A
Multi-dimensional traditional Chinese medicine prescription recommendation method and recommendation system
CN112992378A
Traditional Chinese medicine prescription recommendation method based on compatibility principle of monarch, minister, assistant and guide
CN116646047A
Traditional Chinese medicine individualized intelligent prescription recommendation system based on similar patient matching
CN117690549A
Cited By
Traditional Chinese medicine prescription generation system based on data analysis
CN120526940A
A Traditional Chinese Medicine Prescription Generation System Based on Data Analysis
CN120526940B
Automatic prescription configuration system based on digital symptom analysis
CN121725975A
Automatic prescription configuration system based on digital symptom analysis
CN121725975B
