Data acquisition and processing method, system and device for traditional chinese medicine prescription

By collecting and completing TCM prescription data through web crawling, the problem of filtering duplicate prescriptions in the TCM prescription system was solved, and a TCM prescription recommendation table was generated, which improved the accuracy and comprehensiveness of prescriptions and assisted doctors in diagnosis and learning.

CN116226493BActive Publication Date: 2026-07-21GUANGDONG DIWEN TRADITIONAL CHINESE MEDICINE TECH CO LTD
View PDF 4 Cites 0 Cited by

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
GUANGDONG DIWEN TRADITIONAL CHINESE MEDICINE TECH CO LTD
Filing Date
2023-01-29
Publication Date
2026-07-21

Smart Images

  • Figure CN116226493B_ABST
    Figure CN116226493B_ABST
Patent Text Reader

Abstract

The application provides a data acquisition and processing method, system and device for traditional Chinese prescriptions, comprising the following steps: step 1: collecting traditional Chinese prescription data through a web crawler, wherein the traditional Chinese prescription data comprises one or more of characters, pictures, voices and videos; step 2: performing information completion and arrangement on the traditional Chinese prescription data, including modifying wrong characters and homophonic characters, supplementing homonyms of medicinal materials, and classifying medicinal materials according to monarchs, ministers, attendants and messengers; step 3: recording the time of using the prescription data; and step 4: sorting the traditional Chinese prescription data according to the time of using to obtain a traditional Chinese prescription recommendation table. The application can collect and process a large number of traditional Chinese prescription data distributed in a wide range to obtain comprehensive and orderly traditional Chinese prescription data, and provide a reference for doctors.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention belongs to the field of traditional Chinese medicine data acquisition and processing technology, specifically relating to a method, system and device for data acquisition and processing of traditional Chinese medicine prescriptions. Background Technology

[0002] Traditional Chinese medicine has left behind a vast number of prescriptions for future generations. However, due to the simple collection and processing of these prescriptions, it is impossible to provide an effective, comprehensive, and orderly prescription recommendation table for a traditional Chinese medicine prescription system. Current methods involve collecting prescription data online via web crawlers, but the resulting data cannot accurately provide doctors with substantial assistance in making diagnoses and prescribing medications.

[0003] Because many medical classics contain the same prescriptions or cite the same ingredients, it is necessary to screen and filter duplicate prescriptions. However, among these filtered prescriptions, there are cases where the same name exists but the proportions of the ingredients are different or there is an extra ingredient that makes a difference. Therefore, these excellent prescriptions with subtle differences are easily overlooked, which leads to the omission of the accuracy of the prescriptions and the loss of some excellent prescriptions. Summary of the Invention

[0004] To overcome the shortcomings of existing technologies, this invention provides a method, system, and device for data collection and processing of traditional Chinese medicine prescriptions, thereby solving the problem that existing technologies cannot comprehensively collect and process large numbers of widely distributed traditional Chinese medicine prescriptions.

[0005] One embodiment of the present invention provides a method for data collection and processing of traditional Chinese medicine (TCM) prescriptions, comprising: Step 1: collecting TCM prescription data through web crawler, wherein the TCM prescription data includes one or more of text, images, audio, and video; Step 2: completing and organizing the TCM prescription data, including correcting misspelled words and homophones, supplementing different names for medicinal materials, and classifying medicinal materials according to the principles of monarch, minister, assistant, and guide; Step 3: recording the usage time of the prescription data; Step 4: sorting the TCM prescription data according to the usage time to obtain a TCM prescription recommendation table.

[0006] In one embodiment, the TCM prescription data collected by web crawler includes: Step 1.1: collecting basic TCM data and TCM treatment prescription data; Step 1.2: classifying the collected TCM treatment prescription data into prescriptions with the same name and prescriptions with different names.

[0007] In one embodiment, the TCM prescription data collected by web crawler further includes: Step 1.3: comparing and analyzing the TCM treatment prescription data among prescriptions with the same name; Step 1.4: if it is confirmed that the TCM treatment prescription data are the same name and prescription, then only the time information, frequency of occurrence and source information in the TCM treatment prescription data are recorded; Step 1.5: if it is confirmed that the TCM treatment prescription data are different names and prescriptions, then the TCM treatment prescription data is retained and tagged.

[0008] In one embodiment, the information completion and organization of the TCM prescription data includes: Step 2.1: Classifying the TCM treatment prescription data by labeling the medicinal materials as principal, assistant, adjuvant, and guide herbs using the TCM basic data.

[0009] In one embodiment, the process of labeling and classifying the medicinal materials in the TCM treatment prescription data according to the TCM basic data includes: Step 2.1.1: Analyzing whether the TCM treatment prescription data contains principal, assistant, adjuvant, and guiding herbs; Step 2.1.2: If one or more of the principal, assistant, adjuvant, and guiding herbs are missing from the TCM treatment prescription data, a prompt will be made indicating that one or more of the principal, assistant, adjuvant, and guiding herbs are missing, and they can be supplemented by manual input.

[0010] In one embodiment, the process of labeling and classifying the medicinal materials in the TCM treatment formula data according to the TCM basic data includes: Step 2.1.3: Obtaining formula contraindication data from the TCM treatment formula data supplemented in step 2.1.2 based on the TCM basic data.

[0011] In one embodiment, the information completion and organization of the TCM prescription data further includes: Step 2.2: supplementing the TCM treatment prescription data with the same or different names of medicinal materials based on the TCM basic data; Step 2.3: obtaining the symptom groups of the TCM treatment prescription data based on the supplemented TCM basic data.

[0012] In one embodiment, recording the usage time of the prescription data according to the TCM prescription data includes: Step 3.1: Recording the time when the TCM treatment prescription data with the same name and prescription first appeared and the time when it last appeared; Step 3.2: Obtaining the usage time of the TCM treatment prescription data by calculating the time when the TCM treatment prescription data first appeared and the time when it last appeared.

[0013] In one embodiment, sorting the TCM treatment prescription data according to the usage time includes: Step 4.1: When two or more TCM treatment prescription data have the same usage time, the frequency of use of the TCM treatment prescription data is obtained by counting the number of times the TCM treatment prescription data appears, and the one with the higher frequency of use is ranked first; Step 4.2: If two or more TCM treatment prescription data have the same usage time and the same frequency of use, the source of the TCM prescription data is compared, and the one with the higher source reliability is ranked first; Step 4.3: If two or more TCM treatment prescription data have the same usage time, frequency of use, and source reliability, the one with the earlier last appearance time is ranked last.

[0014] In one embodiment, step 1.6 is included: uploading TCM prescription data locally, and repeating steps 2-4.

[0015] A system for collecting and processing data on traditional Chinese medicine (TCM) prescriptions, applicable to the aforementioned data collection and processing methods for TCM prescriptions, includes: a collection module for collecting TCM prescription information from the network and local storage; a storage module for storing the information; a data analysis module for analyzing the TCM prescription information to obtain prescription source information, usage frequency, the first appearance time and last appearance time of the same TCM prescription information to obtain prescription usage time; and a sorting module for sorting the TCM prescription information according to preset rules and outputting a TCM prescription recommendation table. The sorting module, according to the preset rules, prioritizes sorting the TCM prescription information based on the length of usage time, then based on the frequency of use, then based on the reliability of the prescription source information, and finally based on the appearance time, ultimately outputting a TCM prescription recommendation table.

[0016] A computer device includes a memory and a processor, the memory storing a computer program, and the processor executing the computer program to implement the above-described data acquisition and processing method for traditional Chinese medicine prescriptions.

[0017] The above embodiments of the present invention provide the following beneficial effects:

[0018] 1. To establish a comprehensive Traditional Chinese Medicine (TCM) prescription system, it is necessary to collect comprehensive TCM prescription data. This application utilizes web crawling to collect data from the entire internet, identifying and gathering text, images, and audio materials to obtain TCM prescription data. Then, data related to TCM prescriptions is filtered and retained, and further supplemented and organized based on this data. This includes correcting prescription composition, typos, homophones, dosages, meridian information for acupuncture prescriptions, background sources, time of proposal, usage data, and treatment details. This results in comprehensive TCM prescription data for doctors' reference.

[0019] 2. From multiple TCM prescriptions, the most effective prescription is selected based on the symptoms. Since TCM has left behind a vast number of prescriptions for future generations, some prescriptions have become less used or even inapplicable to current symptoms and have been gradually phased out over hundreds of years of transmission. Other prescriptions, however, are still in use today, demonstrating that these continuously used prescriptions remain effective in treating current symptoms and have withstood the test of time. By sorting the prescriptions by their usage time, a TCM prescription recommendation table is generated and output for use in the TCM prescription system, assisting doctors in their diagnosis and learning.

[0020] 3. Many medical classics may contain identical prescriptions or citations. Web crawlers often filter prescriptions based on similar keywords, leading to the loss of excellent treatments. By categorizing prescriptions by name and variant names, we can determine if prescriptions with the same name are identical. If different proportions or additional ingredients are found, these are retained and marked as variant prescriptions with the same name, thus preserving similar, high-quality TCM prescriptions. If a duplicate prescription is confirmed, only the time, source, and frequency of appearance need to be recorded; the rest of the data is filtered to reduce the data volume. Attached Figure Description

[0021] To more clearly illustrate the technical solutions in the embodiments of the present invention or the prior art, the drawings used in the description of the embodiments or the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For those skilled in the art, other drawings can be obtained based on the structures shown in these drawings without creative effort.

[0022] Figure 1 A flowchart of a data acquisition and processing method for traditional Chinese medicine prescriptions provided in an embodiment of the present invention;

[0023] Figure 2 This is a schematic diagram illustrating the annotation of principal, assistant, adjuvant, and guide herbs in the data acquisition and processing of traditional Chinese medicine prescriptions provided in one embodiment of the present invention.

[0024] Figure 3 A flowchart illustrating traditional Chinese medicine prescription data collected via web crawler, as provided in one embodiment of the present invention;

[0025] Figure 4 for Figure 3 A logic diagram of TCM prescription data collected via web crawler;

[0026] Figure 5 A flowchart illustrating the sorting of traditional Chinese medicine treatment formula data according to the time of use, as provided in one embodiment of the present invention;

[0027] Figure 6 for Figure 5A logic diagram showing how the data on traditional Chinese medicine treatment prescriptions are sorted according to their usage time.

[0028] Figure 7 A structural diagram of a system for processing data wipes for traditional Chinese medicine prescriptions, provided in another embodiment of the present invention;

[0029] Figure 8 An internal structural diagram of a computer device provided in yet another embodiment. Detailed Implementation

[0030] The technical solutions of the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those of ordinary skill in the art without creative effort are within the scope of protection of the present invention.

[0031] It should be noted that if the embodiments of the present invention involve directional indicators (such as up, down, left, right, front, back, etc.), the directional indicators are only used to explain the relative positional relationship and movement of the components in a specific posture. If the specific posture changes, the directional indicators will also change accordingly.

[0032] Furthermore, if the embodiments of this invention involve descriptions such as "first" or "second," these descriptions are for descriptive purposes only and should not be construed as indicating or implying their relative importance or implicitly specifying the number of technical features indicated. Thus, a feature defined with "first" or "second" may explicitly or implicitly include at least one of those features. Additionally, the use of "and / or" or "and / or" throughout the text includes three parallel solutions. For example, "A and / or B" includes solution A, solution B, or a solution where both A and B are satisfied simultaneously. Furthermore, the technical solutions of the various embodiments can be combined with each other, but this must be based on the ability of those skilled in the art to implement them. When the combination of technical solutions is contradictory or impossible to implement, it should be considered that such a combination of technical solutions does not exist and is not within the scope of protection claimed by this invention.

[0033] To establish a comprehensive TCM prescription system, it is necessary to collect complete TCM prescription data. However, with the current widespread availability of online information, TCM data is extensive and widely distributed. For data from a long time ago, it is only possible to obtain it through collected books and pictures. Therefore, it is necessary to collect and process the scattered TCM data and prescription data to form a comprehensive TCM prescription database for doctors' reference.

[0034] Please see Figure 1One embodiment of the present invention provides a method for data collection and processing of traditional Chinese medicine prescriptions, including: Step 1: collecting traditional Chinese medicine prescription data through web crawler, wherein the traditional Chinese medicine prescription data includes one or more of text, images, voice, and video;

[0035] Step 2: Complete and organize the TCM prescription data, including correcting misspelled words and homophones, supplementing different names for medicinal materials, and classifying medicinal materials according to the principles of monarch, minister, assistant, and guide.

[0036] Step 3: Record the duration of use of the prescription data;

[0037] Step 4: The TCM prescription data is sorted according to the usage time to obtain a TCM prescription recommendation table.

[0038] Data is crawled from the entire internet. When the collected data is video, it is broken down into audio and individual frames of images, which can be obtained by scanning paper documents or PDF files. When the collected data is images, image OCR (optical character recognition) is used to identify the data within the images. Data related to traditional Chinese medicine (TCM) prescriptions is then selected and retained to obtain TCM prescription data, such as the composition and dosage of the prescription, the meridians involved in acupuncture, background information, date of creation, usage data, and treatment details.

[0039] The collected TCM prescription data was analyzed, and any missing or incorrectly identified parts were supplemented and corrected by the medical team. Furthermore, each TCM prescription was categorized into four types based on the TCM principles of monarch, minister, assistant, and guide herbs, with clear labeling. The monarch herb is the drug that plays the primary therapeutic role in the prescription, addressing the main symptom or disease. It embodies the main focus of the prescription, possessing the strongest medicinal power and being indispensable. The minister herb assists the monarch herb in strengthening the treatment of the main disease and symptom. The assistant herb has three functions: first, it is used to treat secondary symptoms; second, it is used to counteract or mitigate the toxicity or potency of the monarch and minister herbs; and third, it is used as a counteracting herb, depending on the condition, to have a synergistic effect with the monarch herb. The term "guide drug" has two meanings: first, it is a guiding drug, directing the other drugs in the prescription to the affected area; second, it is a harmonizing drug, harmonizing the effects of the other drugs to enhance their combined ability to expel pathogens. For example, Achyranthes bidentata and Glycyrrhiza uralensis are frequently used as guide drugs in prescriptions. For instance, the formula for Ephedra Decoction includes Ephedra, Cinnamomum cassia, Prunus armeniaca, and Glycyrrhiza uralensis, with Ephedra as the principal drug, Cinnamomum cassia as the assistant drug, Prunus armeniaca as the adjuvant drug, and Glycyrrhiza uralensis as the guide drug.

[0040] Please see Figure 2For example, the raw data obtained through web crawling states: "This syndrome is caused by wind-cold injuring the skin surface, weakening the pores, causing the defensive qi to leak out, and preventing the nutritive yin from being retained internally, resulting in disharmony between the lungs and stomach. The treatment focuses on relieving the exterior and harmonizing the nutritive and defensive qi. This syndrome belongs to the category of exterior deficiency, weakened pores, and strong defensive qi and weak nutritive qi. Therefore, cinnamon twig is used as the chief herb to relieve the exterior and disperse the wind-cold, while peony root is used as the assistant herb to nourish yin and astringe the nutritive qi. Cinnamon twig and peony root together treat the strong defensive qi and the weak nutritive qi, and together they harmonize the nutritive and defensive qi, thus they are used synergistically. Fresh ginger is pungent and warm, which assists cinnamon twig." This formula relieves muscle tension and warms the stomach to stop vomiting. Jujubes are sweet and neutral, tonifying qi and nourishing the spleen and generating fluids. The combination of ginger and jujubes can also invigorate the spleen and stomach's qi and harmonize the ying and wei, thus serving as adjuvant herbs. Prepared licorice root has two uses: one is as an adjuvant, tonifying qi and harmonizing the middle jiao, combining with cinnamon twig to relieve muscle tension, and with peony root to nourish yin; the other is as a guiding herb, harmonizing the other herbs. Therefore, although this formula contains only five herbs, the combination is meticulous, with both dispersing and tonifying properties, just as Guizhi Tang (Cinnamon Twig Decoction) is "the crown jewel of Zhang Zhongjing's prescriptions, a general formula for nourishing yin and yang, harmonizing ying and wei, relieving muscle tension, and inducing sweating." Analyzing the original data, the prescription name, principal herb, assistant herb, adjuvant herb, guiding herb, and prescription source are filtered and displayed in the corresponding positions, allowing doctors to learn and use the information.

[0041] Understandably, Traditional Chinese Medicine (TCM) has left behind a vast number of prescriptions for future generations to use. Over hundreds of years of transmission, some prescriptions have become less frequently used or even inapplicable to current symptoms and have been gradually phased out. Other prescriptions, however, are still in use today, demonstrating that those that have been continuously used are still remarkably effective in treating current symptoms and have withstood the test of time. Therefore, a TCM prescription recommendation table can be generated by sorting these prescriptions in descending order of their usage time for use in a TCM prescription system.

[0042] In one embodiment, the TCM prescription data collected by web crawler includes: Step 1.1: Collecting basic TCM data and TCM treatment prescription data;

[0043] Step 1.2: Classify the collected TCM treatment prescription data into prescriptions with the same name and prescriptions with different names.

[0044] Traditional Chinese medicine (TCM) prescription data includes basic TCM data such as lists of synonyms and variants of medicinal materials, efficacy, contraindications, acupoints, and acupuncture schools; and TCM treatment data such as prescription name, composition and dosage, source (e.g., the author's biography of the *Shanghan Zabing Lun*), publication date, acupuncture prescription name, acupuncture school, and acupoint scheme. Based on the prescription and acupuncture prescription names, the first level of classification for treatments is into synonyms and variants.

[0045] Please see Figure 3 In one embodiment, the TCM prescription data collected by web crawler further includes: Step 1.3: Comparative analysis of the TCM treatment data of prescriptions with the same name;

[0046] Step 1.4: If it is confirmed that the TCM treatment formula data is the same as the original formula, then only the time information, the number of times it appears, and the source information in the TCM treatment formula data are recorded;

[0047] Step 1.5: If it is confirmed that the TCM treatment formula data is a different formula with the same name, then retain the TCM treatment formula data and add a tag.

[0048] Please see Figure 4 First, after classifying prescriptions by their names and variant names at the first level, a second level of classification is performed based on a comparison of the content of the treatment formulas. It's understandable that many medical classics may contain identical prescriptions or citations, but web crawlers may filter out prescriptions based on similar keywords, missing excellent ones. Therefore, to preserve similar excellent treatment formulas, a comparative analysis of the TCM treatment data within prescriptions with the same name is conducted. Prescriptions with different proportions or one additional distinguishing ingredient are retained and thus marked as variant prescriptions with the same name.

[0049] Secondly, in order to reduce the amount of data, for cases where it can be confirmed that there are duplicate prescriptions with the same name, only the time information, source information, and the number of times the prescription appears should be recorded, and the rest of the data should be filtered.

[0050] In one embodiment, the information completion and organization of the TCM prescription data includes: Step 2.1: Classifying the TCM treatment prescription data by labeling the medicinal materials as principal, assistant, adjuvant, and guide herbs using the TCM basic data.

[0051] Furthermore, based on the aforementioned basic TCM data, the medicinal materials in the TCM treatment formula data are categorized into principal, assistant, adjuvant, and guide categories, including:

[0052] Step 2.1.1: Analyze whether the TCM treatment formula data contains the principal drug, assistant drug, adjuvant drug, and guiding drug;

[0053] Step 2.1.2: If one or more of the principal, assistant, adjuvant, and guiding herbs are missing from the TCM treatment formula data, a prompt will be displayed indicating that one or more of the principal, assistant, adjuvant, and guiding herbs are missing, and they can be supplemented by manual input.

[0054] For example, if a web crawler retrieves information about Ma Huang Tang (Ephedra Decoction) – containing ephedra, cinnamon twig, and prepared licorice root – and analysis reveals that the formula lacks bitter almond, which is considered an assistant herb, then this ingredient can be manually added to the formula. The added data can then be annotated. The medical team can then use these annotations to verify the accuracy of the added data and conduct further analysis.

[0055] In other words, by classifying and labeling the medicinal materials in the treatment formula and adding supplementary labels, the treatment formula is double-checked and analyzed, making the traditional Chinese medicine treatment formula accurate and effective.

[0056] In one embodiment, the classification of medicinal materials in the TCM treatment prescription data according to the TCM basic data includes:

[0057] Step 2.1.3: Based on the TCM treatment data supplemented in Step 2.1.2, obtain the contraindication data for the treatment.

[0058] Understandably, the contraindications of a complete treatment prescription vary due to the interactions between the various drugs. Therefore, it is necessary to re-analyze the complete treatment prescription to obtain the final drug contraindications, making the treatment prescription data more rigorous.

[0059] In one embodiment, the information completion and organization of the traditional Chinese medicine prescription data also includes:

[0060] Step 2.2: Based on the aforementioned basic TCM data, supplement the TCM treatment formula data with synonyms and variant names of medicinal materials;

[0061] Step 2.3: Based on the TCM basic data, obtain the symptom groups of the TCM treatment prescription data after the supplementation is completed.

[0062] Based on basic data in Traditional Chinese Medicine (TCM), the efficacy and contraindications of medicinal herbs are analyzed, along with the contraindication data for the treatment formula. This contraindication data, such as drug interactions, serves as a reminder to doctors to be cautious and avoid inappropriate medication that could lead to adverse effects.

[0063] Furthermore, it facilitates rapid and accurate diagnosis and treatment. For each TCM treatment prescription, based on the basic data of the Chinese herbs, a corresponding symptom group is derived. By comparing the symptoms diagnosed by the doctor with the symptom group of the TCM treatment prescription, the doctor is assisted in developing a treatment plan.

[0064] In one embodiment, recording the usage time of the prescription data according to the TCM prescription data includes: Step 3.1: Recording the time when the TCM treatment prescription data with the same name and the same prescription first appeared and the time when it last appeared;

[0065] Step 3.2: By calculating the time when the TCM treatment formula data first appeared and the time when it last appeared, the usage time of the TCM treatment formula data is obtained.

[0066] The duration of use of corresponding traditional Chinese medicine prescriptions is determined by the time records of their use obtained through web crawling. For example, if Ma Huang Tang (Ephedra Decoction) is mentioned in multiple web pages, the time of mention of Ma Huang Tang on each web page is recorded, and the earliest and latest times are selected to determine the duration of use of Ma Huang Tang.

[0067] Please see Figure 5 In one embodiment, sorting the TCM treatment prescription data according to the usage time includes: Step 4.1: When two or more TCM treatment prescription data have the same usage time, the usage frequency of the TCM treatment prescription data is obtained by counting the number of times the TCM treatment prescription data appears, and the data with higher usage frequency is listed first.

[0068] Step 4.2: If two or more TCM treatment prescriptions have the same usage time and frequency, then compare the sources of the TCM prescription data, and the source with higher reliability is listed first.

[0069] Step 4.3: If two or more TCM treatment prescription data have the same usage time, frequency of use, and source reliability, then the TCM prescription data with the earlier last appearance time is compared and ranked later.

[0070] Please see Figure 6 It is understandable that statistics can be used to obtain the usage time, frequency of use, source, and popularity of the TCM treatment formulas, and to rank the treatment formulas among different treatments for the same symptoms. A long usage time indicates that the treatment formula has stood the test of time; a high frequency of use indicates that the treatment formula is effective and has been repeatedly used or cited; the source can be considered as being extracted from authoritative and reliable medical classics; the popularity of use, considering the medicinal materials, is the closest to current needs. For example, if a certain medicinal material in the treatment formula is difficult to obtain and is now rarely used or has low popularity, it is not recommended as a priority.

[0071] In one embodiment, step 1.6 is included: uploading TCM prescription data locally, and repeating steps 2-4. That is, doctors can obtain new treatment plans based on their own experience and treatment results, which can then be provided to other doctors for reference.

[0072] Please see Figure 7 In another embodiment, the present invention proposes a system for data acquisition and processing of traditional Chinese medicine (TCM) prescriptions, applicable to the aforementioned method for data acquisition and processing of TCM prescriptions, comprising: an acquisition module for acquiring TCM prescription information from the network and local storage; a storage module for storing the information; a data analysis module for analyzing the TCM prescription information to obtain information on the source of the prescription, frequency of use, the first and last appearance times of the same TCM prescription information, and the prescription usage time; and a sorting module for sorting the TCM prescription information according to a set rule and outputting a TCM prescription recommendation table.

[0073] The sorting module sorts the TCM prescription information according to the set rules, first by the length of time it has been used, then by the frequency of use, then by the reliability of the source information of the treatment prescription, and finally by the time of appearance, and finally outputs a TCM prescription recommendation table.

[0074] Its beneficial effects are the same as those in the above embodiments, so they will not be described in detail.

[0075] Please see Figure 8 A computer device 100 includes a memory 120 and a processor 110. The memory stores a computer program 140, and the processor executes the computer program to implement the aforementioned data acquisition and processing method for traditional Chinese medicine prescriptions. In this embodiment, the processor 110, memory 120, and computer program 140 transmit data via a data bus 130.

[0076] The above description is merely a preferred embodiment of the present invention and does not limit the patent scope of the present invention. Any equivalent structural transformations made using the contents of the present invention's specification and drawings under the inventive concept of the present invention, or direct / indirect applications in other related technical fields, are included within the patent protection scope of the present invention.

Claims

1. A method for data acquisition and processing of traditional Chinese medicine prescriptions, characterized in that, include: Step 1: Collect TCM prescription data through web crawlers, including: The TCM prescription data collected through web scraping includes: Step 1.1: Collect basic TCM data and TCM treatment formula data; Step 1.2: Classify the collected TCM treatment prescription data into prescriptions with the same name and prescriptions with different names; Step 1.3: Compare and analyze the data of the TCM treatment formulas with the same name; Step 1.4: If it is confirmed that the TCM treatment formula data is the same as the original formula, then only the time information, the number of times it appears, and the source information in the TCM treatment formula data are recorded; Step 1.5: If it is confirmed that the TCM treatment formula data is a different formula with the same name, then retain the TCM treatment formula data and add a tag; The TCM prescription data includes one or more of text, images, voice, and video. Step 2: Complete and organize the TCM prescription data, including correcting misspelled words and homophones, supplementing different names for medicinal materials, and classifying the medicinal materials according to the principles of monarch, minister, assistant, and guide in their combination, including: Step 2.1: Classify the medicinal materials in the TCM treatment prescription data by labeling them according to the TCM basic data; Step 2.1.1: Analyze whether the TCM treatment formula data contains one or more of the principal, assistant, adjuvant, and guiding herbs; Step 2.1.2: If one or more of the principal, assistant, adjuvant, and guiding herbs are missing from the TCM treatment formula data, a message will be displayed indicating that one or more of the principal, assistant, adjuvant, and guiding herbs are missing, and they can be supplemented by manual input. Step 2.1.3: Based on the TCM treatment data supplemented in Step 2.1.2, obtain the contraindication data of the formula according to the TCM basic data; Step 2.2: Based on the aforementioned basic TCM data, supplement the TCM treatment formula data with synonyms and variant names of medicinal materials; Step 2.3: Based on the basic TCM data, obtain the symptom groups of the TCM treatment prescription data after supplementation; Step 3: Record the duration of use of the prescription data, including: Step 3.1: Record the first and last appearance times of the data for a TCM treatment formula with the same name and prescription; Step 3.2: By calculating the time when the TCM treatment formula data first appeared and the time when it last appeared, the usage time of the TCM treatment formula data is obtained; Step 4: The TCM prescription data is sorted according to the usage time to obtain a TCM prescription recommendation table, including: Step 4.1: When two or more TCM treatment formula data have the same usage time, the frequency of use of the TCM treatment formula data is obtained by counting the number of times the TCM treatment formula data appears, and the data with the higher usage frequency is listed first. Step 4.2: If two or more TCM treatment prescriptions have the same usage time and frequency, then compare the sources of the TCM prescription data, and the source with higher reliability is listed first. Step 4.3: If two or more TCM treatment prescriptions have the same usage time, frequency of use, and source reliability, then the TCM prescription data with the earliest last appearance time is compared and ranked later.

2. The data acquisition and processing method for traditional Chinese medicine prescriptions as described in claim 1, characterized in that, include Step 1.6: Upload TCM prescription data locally, and repeat steps 2-4.

3. A data eraser and processing system for traditional Chinese medicine prescriptions, characterized in that, The data acquisition and processing method for traditional Chinese medicine prescriptions according to any one of claims 1-2 includes: The data acquisition module is used to collect TCM prescription information from the network and local storage. Storage module, used to store information; The data analysis module is used to analyze the TCM prescription information to obtain information on the source of the prescription, frequency of use, the first time the same TCM prescription appeared and the last time it appeared, and to obtain the prescription usage time. The sorting module is used to sort the TCM prescription information according to the set rules and output a TCM prescription recommendation table; The sorting module sorts the TCM prescription information according to the set rules, first by the length of time it has been used, then by the frequency of use, then by the reliability of the prescription source information, and finally by the time of appearance, and finally outputs a TCM prescription recommendation table.

4. A computer device comprising a memory and a processor, wherein the memory stores a computer program, characterized in that, When the processor executes the computer program, it implements the data acquisition and processing method for traditional Chinese medicine prescriptions as described in any one of claims 1-2.