A method and system for weighted association rules based on the dosage of medicinal materials in traditional Chinese medicine prescriptions

By incorporating weighted association rules that consider the dosage of medicinal materials in traditional Chinese medicine prescriptions, the problem of the Apriori algorithm failing to fully consider the dosage of medicinal materials is solved. This enables more accurate and reasonable screening of core medicinal material combinations and improves the accuracy of the therapeutic effects of traditional Chinese medicine prescriptions.

CN119517433BActive Publication Date: 2025-11-25SHENYANG PHARMA UNIV
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202411537808.3
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-10-31
Publication Date
2025-11-25
Estimated Expiration
2044-10-31

AI Technical Summary

Technical Problem

The existing Apriori algorithm fails to fully consider the importance of the dosage of medicinal materials in the mining of combinations of medicinal materials in traditional Chinese medicine prescriptions, resulting in insufficient rationality and accuracy of the screening results.

Method used

We adopted a weighted association rule method based on the dosage of Chinese medicinal materials in traditional Chinese medicine prescriptions. Through data collection, normalization processing, matrix construction and rule association, we calculated the dosage weights of medicinal materials and the parameters of association rules, and screened out the core combination of medicinal materials for treating the target disease.

Benefits of technology

It can more accurately screen the core medicinal material combinations for treating target diseases, comprehensively evaluate the impact of medicinal material dosage on association rules, and improve the rationality and accuracy of screening results.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119517433B_ABST
    Figure CN119517433B_ABST
Patent Text Reader

Abstract

The application belongs to the field of traditional Chinese medicine data mining, and particularly relates to a method and system for weighted association rules based on the dosage of medicinal materials in traditional Chinese medicine prescriptions, which comprises the following steps: collecting target effective traditional Chinese medicine prescriptions, recording all the dosages of medicinal materials applied in the traditional Chinese medicine prescriptions; performing standardized processing on the medicinal material names in the traditional Chinese medicine prescriptions, and sending all the data to a matrix construction module; the matrix construction module processes all the data to obtain a dosage weight matrix of the traditional Chinese medicine prescriptions; a rule association module combines the collected medicinal material set and the dosage weight matrix of the traditional Chinese medicine prescriptions to obtain various parameters of the weighted association rule model; and a standard discrimination module obtains the various parameters of the weighted association rule model as a judgment standard to screen the medicinal materials with the strongest association among the medicinal materials. The application proposes the concept of weighted association rules, more comprehensively evaluates the importance of the influence of the dosage of medicinal materials on the association rules among the medicinal materials, and calculates the relevant parameters of the weighted association rules.
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 mining, specifically a weighted association rule method and system based on the dosage of medicinal materials in traditional Chinese medicine prescriptions. Background Technology

[0002] In the application of mining strongly correlated herb combinations from traditional Chinese medicine prescriptions, the traditional method is to use the Apriori association rule algorithm proposed by R. Agrawal et al. in 1993. This method is used to calculate all strong association rules between items in a large customer transaction database, and it can also be applied to traditional Chinese medicine prescriptions to mine strongly correlated herb combinations. The basic steps of the Apriori algorithm are described as follows: 1. First, select all frequent itemsets. 2. Filter association rules based on relevant parameters such as support, lift, etc., to find strong association rules that meet the conditions.

[0003] However, the existing Apriori algorithm has certain limitations. It assumes all items have the same importance and only considers whether each item appears; that is, it only uses frequency to filter out strong association rules of interest during the calculation of association rules. Traditional Chinese medicine (TCM) prescriptions are complex combinations of medicinal materials, involving the dosage of each material. Traditional association rule algorithms applied to TCM prescription databases to mine strongly associated core medicinal material combinations rely solely on frequency as the filtering condition for association rules. This method lacks comprehensiveness and raises questions about the rationality and accuracy of the filtering results. Therefore, proposing a new weighted association rule algorithm is particularly important. Summary of the Invention

[0004] To address the issue that existing algorithms for evaluating association rules in traditional Chinese medicine (TCM) prescriptions cannot comprehensively identify strongly correlated core herbal combinations, this invention aims to provide a weighted association rule method and system based on the dosage of herbs in TCM prescriptions. This method and system can more comprehensively and accurately identify core herbal combinations for treating target diseases.

[0005] The technical solution adopted by this invention to achieve the above objectives is: a weighted association rule method based on the dosage of medicinal materials in traditional Chinese medicine prescriptions, comprising the following steps:

[0006] 1) The data acquisition module of the host computer collects the target effective Chinese medicine prescriptions from the database by means of keywords, and records the dosage of all medicinal materials used in the Chinese medicine prescriptions;

[0007] 2) The data standardization module standardizes the names of medicinal materials in the collected traditional Chinese medicine prescriptions and sends the prescriptions, medicinal material names, and corresponding dosages of all medicinal materials to the matrix construction module to construct an unweighted basic matrix M0. The matrix construction module then standardizes the unweighted basic matrix to obtain the standardized unweighted basic matrix M0. 01 ;

[0008] 3) The matrix construction module constructs a dose-weighted matrix M1 based on the collected Chinese herbal prescriptions, herbal names, and herbal dosages, and then standardizes matrix M1 to obtain the standardized dose-weighted matrix M. 11 ;

[0009] 4) Based on the obtained standardized dose-weighted matrix M 11 Obtain the dosage weight matrix M2 of medicinal materials;

[0010] 5) The matrix construction module will standardize the unweighted fundamental matrix M. 01 The dosage weight matrix M2 of medicinal materials is used to obtain the dosage weight matrix M3 of traditional Chinese medicine prescriptions;

[0011] 6) The rule association module combines the collected set of medicinal materials and the dosage weight matrix M3 of traditional Chinese medicine prescriptions to obtain the parameters of the weighted association rule model;

[0012] 7) The standard discrimination module obtains the parameters of the weighted association rule model based on the parameters of the weighted association rule algorithm as the judgment criteria to screen the medicinal materials with the strongest correlation.

[0013] The construction of the unweighted fundamental matrix M0 is specifically as follows:

[0014] 2-1) After processing the collected Chinese herbal prescriptions and medicinal materials into 0 and 1 units, an unweighted basic matrix M0 is constructed as follows:

[0015]

[0016] Where i represents the i-th traditional Chinese medicine prescription, and j represents the j-th medicinal material; a ij This indicates whether the j-th medicinal material is in the i-th Chinese medicine prescription t. i If it appears in the middle, then a ij =1, if it does not appear, then a ij =0; Z represents the set of integers.

[0017] 2-2) Standardize M0 to obtain the standardized unweighted basis matrix M 01 ,Right now:

[0018]

[0019] Where i represents the i-th traditional Chinese medicine prescription, and j represents the j-th medicinal material; a'ij Indicates a ij Divide by the total number of medicinal materials contained in each Chinese herbal prescription.

[0020] Step 3) specifically includes:

[0021] 3-1) Construct a dose-weighted matrix M1 from the collected Chinese herbal prescriptions, medicinal materials, and dosages of the medicinal materials as follows:

[0022]

[0023] Where i represents the i-th traditional Chinese medicine prescription, and j represents the j-th medicinal material; if the j-th medicinal material appears in the i-th traditional Chinese medicine prescription, then b ij =s ij s ij This indicates the dosage of the j-th medicinal material in the i-th prescription; if it does not appear, then b. ij =0;

[0024] 3-2) Standardize M1 to obtain the standardized dose-weighted matrix M 11 as follows:

[0025]

[0026] Where i represents the i-th traditional Chinese medicine prescription, and j represents the j-th medicinal material; b ij Divide by the average dosage of all medicinal materials in the corresponding prescription (b') i. ) aver The dosage weights of medicinal materials in all prescriptions are obtained.

[0027] Step 4) specifically includes:

[0028] Based on the standardized dose-weighted matrix M 11 Then the dosage weight matrix M2 of medicinal materials is:

[0029]

[0030] Calculate the mean of the dosage weights of each medicinal herb in all prescriptions to obtain the herb dosage weight w. j .

[0031] Step 5) specifically includes:

[0032] Standardized unweighted fundamental matrix M 01 The dosage weight matrix M3 of the traditional Chinese medicine prescription is obtained by calculating the dosage weight matrix M2 of the medicinal materials;

[0033]

[0034] Where i represents the i-th traditional Chinese medicine prescription, w' i This represents the dosage weight of the i-th traditional Chinese medicine prescription.

[0035] Step 6) specifically includes:

[0036] 6-1) Let the set of medicinal materials be H = {H1, H2, H3, ..., H...} n Let A be a subset of medicinal materials, and let A = {H}. n1 H n2 H n3 ,...,H nk Let k represent k medicinal herbs. Then the weighted support wsup of the subset of medicinal herbs A is:

[0037]

[0038] in, a represents the set of all medicinal materials inj The sum of the weights of all non-zero prescriptions; This represents the sum of the weights of all prescriptions;

[0039] 6-2) Let the subset of medicinal materials B = {H} j}, then the weighted confidence level wcon of the weighted association rule with medicinal material subset A as the antecedent and medicinal material subset B as the consequent is:

[0040]

[0041] 6-3) Obtain the weighted lift (wlift) with herb subset A as the preceding term and herb subset B as the following term:

[0042]

[0043] The step of obtaining the parameters of the weighted association rule algorithm as the judgment criteria is as follows:

[0044] 7-1) Retain the rule that the weighted lift wlift > 1;

[0045] 7-2) Sort the retained rules according to their weighted support (wsup), and analyze the results of the weighted association rule analysis based on wsup and weighted lift (wcon), i.e.:

[0046] The higher the weighted support score (wsup) and weighted lift score (wcon), the stronger the association rule is considered to be, meaning the stronger the association between the medicinal materials. Ultimately, the medicinal materials with the strongest association are selected to obtain the core combination of medicinal materials for treating the target disease.

[0047] A weighted association rule system based on the dosage of Chinese medicinal materials in traditional Chinese medicine prescriptions includes: a data acquisition module, a data standardization module, a matrix construction module, a rule association module, and a standard discrimination module;

[0048] The data acquisition module is used to collect target effective Chinese medicine prescriptions from the database by using keywords, and at the same time record the dosage of all medicinal materials used in the Chinese medicine prescription;

[0049] The data standardization module is used to call the names of medicinal materials in the traditional Chinese medicine prescriptions in the data standardization module for standardization processing, and send the standardized names of medicinal materials and their corresponding dosages to the matrix construction module.

[0050] The matrix construction module is used to construct unweighted basic matrices and standardized unweighted basic matrices based on the standardized names of medicinal materials and their corresponding dosages. It also processes the Chinese medicine prescriptions, medicinal materials and their corresponding dosages, unweighted basic matrices and standardized unweighted basic matrices to finally obtain the dosage weight matrix of the Chinese medicine prescription.

[0051] The rule association module is used to receive and obtain various parameters of the weighted association rule model based on the collected set of medicinal materials and the dosage weight matrix of traditional Chinese medicine prescriptions.

[0052] The standard discrimination module is used to filter the medicinal materials with the strongest correlations based on the parameters of the weighted association rule model.

[0053] A weighted association rule system based on the dosage of medicinal materials in traditional Chinese medicine prescriptions includes a memory and a processor; the memory is used to store a computer program; the processor is used to implement a weighted association rule method based on the dosage of medicinal materials in traditional Chinese medicine prescriptions when the computer program is executed.

[0054] A computer-readable storage medium storing a computer program that, when executed by a processor, implements a weighted association rule method based on the dosage of medicinal materials in a traditional Chinese medicine prescription.

[0055] The present invention has the following beneficial effects and advantages:

[0056] 1. This invention, for the first time, comprehensively considers the influence and importance of the dosage of each herb in a traditional Chinese medicine prescription on association rule mining when screening core herb combinations. It describes the association rule relationships between herbs more accurately and can more reasonably and accurately screen core herb combinations for treating target diseases.

[0057] 2. This invention proposes the concept of weighted association rules, which more comprehensively evaluates the importance of the influence of medicinal material dosage on the association rules between medicinal materials, and calculates the relevant parameters of weighted association rules. Attached Figure Description

[0058] Figure 1 The flowchart of the method based on the weighted association rule of the dosage of Chinese medicinal materials in traditional Chinese medicine prescriptions is shown in the present invention.

[0059] Figure 2 The present invention is a system block diagram of a weighted association rule system based on the dosage of medicinal materials in traditional Chinese medicine prescriptions. Detailed Implementation

[0060] The present invention will now be described in further detail with reference to the accompanying drawings and embodiments.

[0061] like Figure 1 The diagram shown is a flowchart of the method for weighted association rules based on the dosage of medicinal materials in traditional Chinese medicine prescriptions according to the present invention. The present invention provides a method for weighted association rules based on the dosage of medicinal materials in traditional Chinese medicine prescriptions, including the following steps:

[0062] 1) Consult literature databases, read literature, collect effective Chinese herbal prescriptions for treating the target disease, and record the dosage of all medicinal materials used in the Chinese herbal prescriptions;

[0063] 2) The names of medicinal materials in the collected traditional Chinese medicine prescriptions were standardized according to the Chinese Pharmacopoeia (2020 edition);

[0064] 3) After processing the collected Chinese herbal prescriptions and medicinal materials using 0 and 1 methods, an unweighted basic matrix M0 is constructed as follows:

[0065]

[0066] Where i represents the i-th traditional Chinese medicine prescription, and j represents the j-th medicinal material; a ij This indicates whether the j-th medicinal material is in the i-th Chinese medicine prescription t. i If it appears in the middle, then a ij =1, if it does not appear, then a ij =0; Z represents the set of integers.

[0067] Standardizing M0 yields the standardized unweighted fundamental matrix M. 01 ,Right now:

[0068]

[0069] Where i represents the i-th traditional Chinese medicine prescription, and j represents the j-th medicinal material; a' ij Indicates a ij Divide by the total number of medicinal materials contained in each Chinese herbal prescription.

[0070] 4) Construct a dose-weighted matrix M1 from the collected Chinese herbal prescriptions, medicinal materials, and dosages of the medicinal materials as follows:

[0071] The collected Chinese herbal prescriptions, medicinal materials, and dosages were used to construct a dose-weighted matrix M1 as follows:

[0072]

[0073] Where i represents the i-th traditional Chinese medicine prescription, and j represents the j-th medicinal material; if the j-th medicinal material appears in the i-th traditional Chinese medicine prescription, then b ij =s ij s ij This indicates the dosage of the j-th medicinal material in the i-th prescription; if it does not appear, then b. ij =0;

[0074] Standardizing M1 yields the standardized dose-weighted matrix M. 11 as follows:

[0075]

[0076] Where i represents the i-th traditional Chinese medicine prescription, and j represents the j-th medicinal material; b ij Divide by the average dosage of all medicinal materials in the corresponding prescription (b') i. ) aver The dosage weights of medicinal materials in all prescriptions are obtained.

[0077] 5) Based on the standardized dose-weighted matrix M obtained in step 4), 11 The dosage weight matrix M2 of the medicinal materials was obtained through calculation;

[0078] Based on the standardized dose-weighted matrix M 11 Then the dosage weight matrix M2 of medicinal materials is:

[0079]

[0080] Calculate the mean of the dosage weights of each medicinal herb in all prescriptions to obtain the herb dosage weight w. j .

[0081] 6) Based on the standardized unweighted fundamental matrix M obtained in step 3), 01 The dosage weight matrix M3 of the traditional Chinese medicine prescription is obtained by calculating the dosage weight matrix M2 of the medicinal materials;

[0082]

[0083] Where i represents the i-th traditional Chinese medicine prescription, w' i This represents the dosage weight of the i-th traditional Chinese medicine prescription.

[0084] 7) Combining the medicinal material data from step 1) and the matrix constructed in step 6), calculate the parameters of the weighted association rule algorithm:

[0085] Let the set of medicinal materials be H = {H1, H2, H3, ..., H}. n Let A be a subset of medicinal materials, and let A = {H}. n1 H n2 H n3 ,...,Hnk Let k represent k medicinal herbs. The weighted support (wsup) of the subset A of medicinal herbs is calculated as follows:

[0086]

[0087] in a represents the set of all medicinal materials inj The sum of the weights of all non-zero prescriptions; This represents the sum of the weights of all prescriptions.

[0088] Let the subset of medicinal materials be B = {H} j The weighted confidence (wcon) of a weighted association rule with subset A of medicinal materials as the antecedent and subset B of medicinal materials as the consequent is calculated as follows:

[0089]

[0090] The formula for calculating the weighted lift (wlift) is as follows:

[0091]

[0092] 8) Use the parameters of the weighted association rules calculated in step 7) as the judgment criteria. First, retain the rules with a weighted lift (wlift) > 1; then sort the retained rules according to their weighted support (wsup), and analyze the results of the weighted association rule analysis based on wsup and weighted lift (wcon). The higher the scores of wsup and wcon, the stronger the association rule is considered to be, that is, the stronger the association between the medicinal materials. Finally, the core medicinal material combination for treating the target disease is selected.

[0093] like Figure 2 The diagram shown is a system block diagram of the weighted association rule system based on the dosage of Chinese medicinal materials in traditional Chinese medicine prescriptions according to the present invention. The weighted association rule system based on the dosage of Chinese medicinal materials in traditional Chinese medicine prescriptions according to the present invention is characterized by including: a data acquisition module, a data standardization module, a matrix construction module, a rule association module, and a standard discrimination module.

[0094] The data acquisition module is used to collect target effective Chinese medicine prescriptions from the database by using keywords, and at the same time record the dosage of all medicinal materials used in the Chinese medicine prescription;

[0095] The data standardization module is used to call the names of medicinal materials in the traditional Chinese medicine prescriptions in the data standardization module for standardization processing, and send the standardized names of medicinal materials and their corresponding dosages to the matrix construction module.

[0096] A matrix construction module, which is used to construct an unweighted basis matrix and a standardized unweighted basis matrix according to the standardized names of traditional Chinese medicine materials and all the corresponding dosages of the materials; and processes the traditional Chinese medicine formula, the materials, the corresponding material dosages, the unweighted basis matrix, and the standardized unweighted basis matrix, and finally obtains the dosage weight matrix of the traditional Chinese medicine formula;

[0097] A rule association module, which is used to receive and obtain the parameters of the weighted association rule model according to the collected set of materials and the dosage weight matrix of the traditional Chinese medicine formula;

[0098] A standard discrimination module, which is used to screen the materials with the strongest association between materials according to the parameters of the weighted association rule model.

[0099] Example 1:

[0100] In this example, the weighted association rule analysis is performed on the materials in the traditional Chinese medicine formula by the above method, and the core material combinations for treating the target disease are screened and obtained. For example:

[0101] In order to test the effect of the weighted association rule evaluation parameters, the weighted association rule analysis is performed on the traditional Chinese medicine formula for treating rheumatoid arthritis (RA) in this example. In this study, five databases, namely China National Knowledge Infrastructure (CNKI), VIP Chinese Journal Service Platform, Wanfang Data Knowledge Service Platform, Web of Science, and PubMed, are retrieved. The keywords are "rheumatoid arthritis", "尪痹", and "rheumatoid arthritis", and the retrieval type is clinical research.

[0102] Inclusion criteria for formula data: (a) Initially clinically diagnosed with rheumatoid arthritis (RA); (b) The names of the materials included in the traditional Chinese medicine formula are complete and the dosages of the materials used are clear; (c) The traditional Chinese medicine formula has a definite curative effect on treating RA. Exclusion criteria for data: (a) Non-clinical research, such as animal research and review articles. (b) Non-oral traditional Chinese medicine formulas, such as acupuncture and medicated bath. (c) The addition or subtraction of materials, incomplete composition, or unclear material dosages in the traditional Chinese medicine formula.

[0103] According to the above inclusion and exclusion criteria, a total of 111 effective traditional Chinese medicine formulas for treating RA are collected. The information of the collected traditional Chinese medicine formulas includes the names of the traditional Chinese medicine formulas, the names of the materials in the formulas, and the dosages of the materials used. The 111 formulas are sorted out, the names of the materials appearing in the formulas are standardized and duplicates are removed, and a total of 173 materials are collected.

[0104] The weighted association rule analysis is performed on the above 111 traditional Chinese medicine formulas and 173 materials collected, and the results are shown in Table 1:

[0105] Table 1 Analysis results of one-item set weighted association rules

[0106]

[0107]

[0108] After sorting the single medicinal materials in descending order of their wsup values ​​and summing them, a polynomial regression analysis was performed. The single medicinal materials whose instantaneous rate of change of the polynomial curve was greater than the average rate of change were selected as core single medicinal materials. Finally, 54 core single medicinal materials were selected, as shown in Table 2.

[0109] Table 2 54 core single medicinal materials

[0110]

[0111]

[0112] For the 54 core single medicinal materials selected above, a weighted association rule with a maximum number of antecedents of 1 was constructed and analyzed. The selection criteria were wcon > 70% and wlift > 1. The results were sorted in descending order by wsup, as shown in Table 3.

[0113] Table 3. Results of weighted association rule analysis for the maximum number of preceding terms being 1.

[0114]

[0115]

[0116] For the 54 core single medicinal materials selected above, a weighted association rule with a maximum number of antecedents of 2 was constructed and analyzed. The selection criteria were wcon > 70% and wlift > 1. The results were then sorted in descending order of wsup, as shown in Table 4.

[0117] Table 4 shows the analysis results of the weighted association rule with a maximum number of preceding terms of 2.

[0118]

[0119]

[0120] According to the weighted association rule analysis results, "white peony root-licorice root-cinnamon twig" (wsup=0.23833; wcon=0.84293; wlift=1.39667) is the strongest weighted association rule combination, that is, white peony root, licorice root and cinnamon twig are the core medicinal combination for treating RA.

[0121] The properties, flavors, meridians, functions, and indications of white peony root, licorice root, and cinnamon twig were collected from the Chinese Pharmacopoeia (2020 edition) and are shown in Table 5.

[0122] Table 5. Properties, Channels Entered, and Functions and Indications of the Three Core Medicinal Herbs

[0123]

[0124] White peony root, cinnamon twig, and licorice root are all included in the classic formula "Guizhi Shaoyao Zhimu Tang" recorded in "Jinkui Yaolue". The main functions and indications of these three herbs are closely related to rheumatoid arthritis.

[0125] In their article "Research Progress on the Treatment of Rheumatoid Arthritis by Regulating Intestinal Flora with Traditional Chinese Medicine," Ye Min et al. mentioned that white peony root has immunomodulatory functions, and its active ingredients can inhibit inflammatory responses, thus having a therapeutic effect on RA. Li Xue et al., in their article "Research Progress on the Chemical Constituents and Pharmacological Effects of Cinnamon Twig," mentioned that cinnamon twig has anti-inflammatory effects and can promote vasodilation and improve blood circulation. Li Zhe et al., in their article "Exploring the Function of Cinnamon Twig in Treating Rheumatoid Arthritis Based on the 'Sweating Theory'," described that cinnamon twig can treat RA through sweating. Licorice root has the effect of reducing toxicity and enhancing efficacy.

[0126] This invention, for the first time, comprehensively considers the influence and importance of the dosage of each herb in a traditional Chinese medicine prescription on association rule mining when screening core herb combinations. It describes the association rule relationships between herbs more accurately, can more reasonably and accurately screen core herb combinations for treating target diseases, and more comprehensively evaluates the importance of the influence of herb dosage on the association rules between herbs, and calculates the relevant parameters of weighted association rules.

[0127] The above description is merely an embodiment of the present invention and is not intended to limit the scope of protection of the present invention. Any modifications, equivalent substitutions, improvements, extensions, etc., made within the spirit and principles of the present invention are included within the scope of protection of the present invention.

Claims

1. A weighted association rule method based on the dosage of medicinal materials in traditional Chinese medicine prescriptions, characterized in that, Includes the following steps: 1) The data acquisition module of the host computer collects the target effective Chinese medicine prescriptions from the database by means of keywords, and records the dosage of all medicinal materials used in the Chinese medicine prescriptions; 2) The data standardization module standardizes the names of medicinal materials in the collected traditional Chinese medicine prescriptions and sends the prescriptions, medicinal material names, and corresponding dosages of all medicinal materials to the matrix construction module to construct an unweighted basic matrix M0. The matrix construction module then standardizes the unweighted basic matrix to obtain the standardized unweighted basic matrix M0. 01 ; The construction of the unweighted fundamental matrix M0 is specifically as follows: 2-1) After processing the collected Chinese herbal prescriptions and medicinal materials into 0 and 1 units, an unweighted basic matrix M0 is constructed as follows: Where i represents the i-th traditional Chinese medicine prescription, and j represents the j-th medicinal material; a ij This indicates whether the j-th medicinal material is in the i-th Chinese medicine prescription t. i If it appears in the middle, then a ij =1, if it does not appear, then a ij =0; Z represents the set of integers; 2-2) Standardize M0 to obtain the standardized unweighted basis matrix M 01 ,Right now: Where i represents the i-th traditional Chinese medicine prescription, and j represents the j-th medicinal material; a′ ij Indicates a ij Divide by the total number of medicinal materials contained in each Chinese herbal prescription; 3) The matrix construction module constructs a dose-weighted matrix M1 based on the collected Chinese herbal prescriptions, herbal names, and herbal dosages, and then standardizes matrix M1 to obtain the standardized dose-weighted matrix M. 11 ; 4) Based on the obtained standardized dose-weighted matrix M 11 Obtain the medicinal material dosage weight matrix M2; 5) The matrix construction module will standardize the unweighted fundamental matrix M. 01 The dosage weight matrix M2 of medicinal materials is used to obtain the dosage weight matrix M3 of traditional Chinese medicine prescriptions; 6) The rule association module combines the collected set of medicinal materials and the dosage weight matrix M3 of traditional Chinese medicine prescriptions to obtain the parameters of the weighted association rule model; 7) The standard discrimination module obtains the parameters of the weighted association rule model based on the parameters of the weighted association rule algorithm as the judgment criteria to screen the medicinal materials with the strongest correlation.

2. The weighted association rule method based on the dosage of medicinal materials in a traditional Chinese medicine prescription according to claim 1, characterized in that, Step 3) specifically includes: 3-1) Construct a dose-weighted matrix M1 from the collected Chinese herbal prescriptions, medicinal materials, and dosages of the medicinal materials as follows: Where i represents the i-th traditional Chinese medicine prescription, and j represents the j-th medicinal material; if the j-th medicinal material is in the i-th traditional Chinese medicine prescription t i If it appears in, then b ij =s ij s ij This indicates the dosage of the j-th medicinal material in the i-th prescription; if it does not appear, then b. ij =0; 3-2) Standardize M1 to obtain the standardized dose-weighted matrix M 11 as follows: Where i represents the i-th traditional Chinese medicine prescription, and j represents the j-th medicinal material; b ij Divide by the average dosage of all medicinal materials in the corresponding prescription (b') i. ) aver The dosage weights of medicinal materials in all prescriptions are obtained.

3. The weighted association rule method based on the dosage of medicinal materials in a traditional Chinese medicine prescription according to claim 2, characterized in that, Step 4) specifically includes: Based on the standardized dose-weighted matrix M 11 Then the dosage weight matrix M2 of medicinal materials is: Calculate the mean of the dosage weights of each medicinal herb in all prescriptions to obtain the herb dosage weight w. j .

4. The weighted association rule method based on the dosage of medicinal materials in a traditional Chinese medicine prescription according to claim 3, characterized in that, Step 5) specifically includes: Standardized unweighted fundamental matrix M 01 The dosage weight matrix M3 of the traditional Chinese medicine prescription is obtained by calculating the dosage weight matrix M2 of the medicinal materials; Where i represents the i-th traditional Chinese medicine prescription, w′ i This represents the dosage weight of the i-th traditional Chinese medicine prescription.

5. The weighted association rule method based on the dosage of medicinal materials in a traditional Chinese medicine prescription according to claim 4, characterized in that, Step 6) specifically includes: 6-1) Let the set of medicinal materials be H = {H1, H2, H3, ..., H...} n Let A be a subset of medicinal materials, and let A = {H}. n1 H n2 H n3 ,…,H nk Let k represent k medicinal herbs. Then the weighted support wsup of the subset of medicinal herbs A is: in, a represents the set of all medicinal materials inj The sum of the weights of all non-zero prescriptions; This represents the sum of the weights of all prescriptions; 6-2) Let the subset of medicinal materials B = {H} j }, then the weighted confidence level wcon of the weighted association rule with medicinal material subset A as the antecedent and medicinal material subset B as the consequent is: 6-3) Obtain the weighted lift (wlift) with herb subset A as the preceding term and herb subset B as the following term:

6. The weighted association rule method based on the dosage of medicinal materials in a traditional Chinese medicine prescription according to claim 5, characterized in that, The step of obtaining the parameters of the weighted association rule algorithm as the judgment criteria is as follows: 7-1) Retain the rule that the weighted lift wlift > 1; 7-2) The retained rules are sorted according to their weighted support (wsup), and the results of the weighted association rule analysis are analyzed based on wsup and weighted lift (wcon). Specifically: The higher the weighted support score (wsup) and weighted lift score (wcon), the stronger the association rule is considered to be, and the stronger the association between medicinal materials. Finally, the medicinal materials with the strongest association between them are selected, thus obtaining the core combination of medicinal materials for treating the target disease.

7. The system of weighted association rule method based on the dosage of medicinal materials in traditional Chinese medicine prescriptions according to claim 1, characterized in that, include: The module includes a data acquisition module, a data standardization module, a matrix construction module, a rule association module, and a standard discrimination module. The data acquisition module is used to collect target effective Chinese medicine prescriptions from the database by using keywords, and at the same time record the dosage of all medicinal materials used in the Chinese medicine prescription; The data standardization module is used to call the names of medicinal materials in the traditional Chinese medicine prescriptions in the data standardization module for standardization processing, and send the standardized names of medicinal materials and their corresponding dosages to the matrix construction module. The matrix construction module is used to construct unweighted basic matrices and standardized unweighted basic matrices based on the standardized names of medicinal materials and their corresponding dosages. It also processes the Chinese medicine prescriptions, medicinal materials and their corresponding dosages, unweighted basic matrices and standardized unweighted basic matrices to finally obtain the dosage weight matrix of the Chinese medicine prescription. The rule association module is used to receive and obtain various parameters of the weighted association rule model based on the collected set of medicinal materials and the dosage weight matrix of traditional Chinese medicine prescriptions. The standard discrimination module is used to filter the medicinal materials with the strongest correlations based on the parameters of the weighted association rule model.

8. A weighted association rule system based on the dosage of medicinal materials in traditional Chinese medicine prescriptions, characterized in that, It includes a memory and a processor; the memory is used to store a computer program; the processor is used to implement, when executing the computer program, a weighted association rule method based on the dosage of Chinese medicinal materials in a traditional Chinese medicine prescription as described in any one of claims 1-6.

9. A computer-readable storage medium, characterized in that, The storage medium stores a computer program, which, when executed by a processor, implements a weighted association rule method based on the dosage of medicinal materials in a traditional Chinese medicine prescription, as described in any one of claims 1-6.

Citation Information

Patent Citations

  • Method for automatically analyzing efficacy of Chinese medicine formula

    CN102122325A

  • Prescription drug property quantifying method and system based on weighted PageRank algorithm

    CN104933320A