This repository contains source code and datasets for paper "TCMPR: TCM Prescription recommendation based on subnetwork term mapping and deep learning".
In this study, we proposed a subnetwork-based symptom term mapping method (SSTM), and constructed a SSTM-based TCM prescription recommendation method (termed TCMPR). Our SSTM can extract the subnetwork structure between symptoms from knowledge network to effectively represent the embedding features of clinical symptom terms (especially, the unrecorded terms).
Fig1: An overview of our methods. First, we constructed the HSKG and symptom network (a). Second, comprehensive embedding of patient symptoms was formed with the SSTM and symptom network (b). Finally, the patient’s comprehensive embedding vector was used for TCM prescription recommendation (c), the predicted probability of each herb is the output, so as to obtain the recommended prescription.
$ conda create -n tcmpr_env python=3.6
$ conda activate tcmpr_env
$ pip install -r requirements.txt
The relevant data required by the model are uniformly placed in the "data" folder. This folder contains the following three data files:
The python script file of the model is in the "model" folder, which is the "TCMPR_model.py" file. Readers can adjust the relevant parameters in the code according to their needs, and run the code file directly.
$ python TCMPR_model.py
Please see requirements.txt for the environment required for the model.
If the dependency environment is correct and the parameters are set correctly, the "TCMPR_model.py" file can be run.
In this model, the experimental data are randomly divided according to the ratio of 8:2 to obtain the training set and the test set. The model is trained using the training set data, and then the test set results are evaluated.
After running the "TCMPR_model.py" file, the Top@K performance results of the model on the test set can be obtained. The result file is placed in the "result" folder, that is, the "Evaluation.xlsx" file. The result file contains four columns:
If you find TCMPR useful for your research, please consider citing the following paper:
@inproceedings{dong2021tcmpr,
title={TCMPR: TCM Prescription recommendation based on subnetwork term mapping and deep learning},
author={Dong, Xin and Zheng, Yi and Shu, Zixin and Chang, Kai and Yan, Dengying and Xia, Jianan and Zhu, Qiang and Zhong, Kunyu and Wang, Xinyan and Yang, Kuo and others},
booktitle={2021 IEEE International Conference on Bioinformatics and Biomedicine (BIBM)},
pages={3776--3783},
year={2021},
organization={IEEE}
}
Dong X, Zheng Y, Shu Z, et al. TCMPR: TCM Prescription recommendation based on subnetwork term mapping and deep learning [C]//2021 IEEE International Conference on Bioinformatics and Biomedicine (BIBM). IEEE, 2021: 3776-3783.
If you have better suggestions or questions about our work, please contact us: [email protected]