The in-depth analysis of the semantic information contained in traditional Chinese medicine (TCM) prescriptions is of great significance for both clinical applications and the discovery of new formulas. Existing TCM prescription generation algorithms define the interactions between all symptom herb pairs solely based on co-occurrence, without considering the categorization of herbal properties. To address this issue, this paper proposes a prescription recommendation algorithm based on herbal property driven compatibility mechanism semantic modeling (HPDCM). First, the analysis of prescriptions takes into account the herbal property categories, which are defined as entities when constructing the knowledge graph (KG). Second, the algorithm integrates compatibility rules to model the interactions between symptoms and herbs with weighted connections. This is followed by aggregating higher-order heterogeneous path information of nodes through a graph convolutional network (GCN) model. Finally, an attention mechanism is employed to fuse information from symptom interaction graphs, symptom-herb interaction graphs, and herb interaction graphs, distinguishing the influence of different dimensions of TCM semantic information. Experimental results, compared with existing formula generation algorithms, demonstrate that HPDCM achieves higher accuracy and is more in line with the TCM diagnostic and therapeutic principles of syndrome differentiation and treatment.
| 科 Family | 属数 Number of genus | 种数 Number of species | 占总种数比例 Percentage of total species (%) | 属 Genus | 种数 Number of species | 占总种数比例 Percentage of total species (%) |
|---|---|---|---|---|---|---|
| 鹅膏菌科Amanitaceae | 2 | 11 | 5.26 | 鹅膏菌属 Amanita | 10 | 4.78 |
| 小菇科 Mycenaceae | 2 | 12 | 5.74 | 丝盖伞属 Inocybe | 5 | 2.39 |
| 多孔菌科 Polyporaceae | 8 | 14 | 6.70 | 蜡蘑属 Laccaria | 5 | 2.39 |
| 红菇科 Russulaceae | 3 | 23 | 11.00 | 小皮伞属 Marasmius | 6 | 2.87 |
| 小菇属 Mycena | 11 | 5.26 | ||||
| 光柄菇属 Pluteus | 5 | 2.39 | ||||
| 红菇属 Russula | 17 | 8.13 | ||||
| 栓菌属 Trametes | 5 | 2.39 |