Zhang Xiaoyu, Li Dongdong, Ren Pengjie, Chen Zhumin, Ma Jun, Ren Zhaochun. Memory Networks Based Knowledge-Aware Medical Dialogue Generation[J]. Journal of Computer Research and Development, 2022, 59(12): 2889-2900. DOI: 10.7544/issn1000-1239.20210851
Citation:
Zhang Xiaoyu, Li Dongdong, Ren Pengjie, Chen Zhumin, Ma Jun, Ren Zhaochun. Memory Networks Based Knowledge-Aware Medical Dialogue Generation[J]. Journal of Computer Research and Development, 2022, 59(12): 2889-2900. DOI: 10.7544/issn1000-1239.20210851
Zhang Xiaoyu, Li Dongdong, Ren Pengjie, Chen Zhumin, Ma Jun, Ren Zhaochun. Memory Networks Based Knowledge-Aware Medical Dialogue Generation[J]. Journal of Computer Research and Development, 2022, 59(12): 2889-2900. DOI: 10.7544/issn1000-1239.20210851
Citation:
Zhang Xiaoyu, Li Dongdong, Ren Pengjie, Chen Zhumin, Ma Jun, Ren Zhaochun. Memory Networks Based Knowledge-Aware Medical Dialogue Generation[J]. Journal of Computer Research and Development, 2022, 59(12): 2889-2900. DOI: 10.7544/issn1000-1239.20210851
(School of Computer Science and Technology, Shandong University, Qingdao, Shandong 266237)
Funds: This work was supported by the National Natural Science Foundation of China (61902219, 61972234, 62072279, 62102234), the Key Scientific and Technological Innovation Program of Shandong Province (2019JZZY010129), the Natural Science Foundation of Shandong Province(ZR202102230192),the Shandong University Multidisciplinary Research and Innovation Team of Young Scholars (2020QNQT017), the Tencent WeChat Rhino-Bird Focused Research Program (JR-WXG2021411), and the Fundamental Research Funds of Shandong University.
Due to the shortage of medical resources, insufficient time and inconvenient travel, many patients can not get timely diagnosis or treatment. In this paper, a model named MKMed (knowledge-aware memory networks-based medical dialogue generation model) is proposed. It incorporates professional medical external knowledge to generate response. Concretely, the proposed model first tracks knowledge entities from dialogue history by exact word matching. Next, it performs a two-stage prediction in the external knowledge base to select medical entities and corresponding knowledge, which can be used in generating response. The two-stage prediction mainly uses methods for calculating co-occurrence matrix and cosine similarity between entities. Then it uses memory networks to store the information of knowledge and history. Finally, MKMed generates responses incorporating the stored information in the memory networks and uses recurrent neural network with attention mechanism. Experiments are carried out on a large-scale medical dialogue dataset with external knowledge, KaMed, which is a realistic dataset collected from the online platform. The experimental results indicate that the proposed model, MKMed, is significantly superior to the most baselines in terms of fluency, diversity, correctness and professionalism of response generation. This paper reveals that importing external knowledge with rational devised method is helpful for generating more precise and meaningful response.