The Graph-based Mutual Attentive Network for Automatic Diagnosis
Proceedings of the Twenty-Ninth International Joint Conference on Artificial Intelligence. Main track. Pages 3393-3399.
https://doi.org/10.24963/ijcai.2020/469
Keywords
- Machine Learning Applications: Bio/Medicine
- Multidisciplinary Topics and Applications: Biology and Medicine
- Natural Language Processing: NLP Applications and Tools
Abstract
The automatic diagnosis has been suffering from the problem of inadequate reliable corpus to train a trustworthy predictive model. Besides, most of the previous deep learning based diagnosis models adopt the sequence learning techniques (CNN or RNN), which is difficult to extract the complex structural information, e.g. graph structure, between the critical medical entities. In this paper, we propose to build the diagnosis model based on the high-standard EMR documents from real hospitals to improve the accuracy and the credibility of the resulting model. Meanwhile, we introduce the Graph Convolutional Network into the model that alleviates the sparse feature problem and facilitates the extraction of structural information for diagnosis. Moreover, we propose the mutual attentive network to enhance the representation of inputs towards the better model performance. The evaluation conducted on the real EMR documents demonstrates that the proposed model is more accurate compared to the previous sequence learning based diagnosis models. The proposed model has been integrated into the information systems in over hundreds of primary health care facilities in China to assist physicians in the diagnostic process.
- [Anandan et al., 2019] Padmanabhan Anandan, Yan Huang, Kazumi Nishikawa, BBorie Park, Eric S. Sullivan, Jingyu Wang, and Xu Shan. AI in health care: Capacity, capabil- ity, and a future of active health in Asia. MIT Technology Review Insights, pages 1-25, October 2019.
- [Boag et al., 2018] Willie Boag, Elena Sergeeva, Saurabh Kulshreshtha, Peter Szolovits, Anna Rumshisky, and Tris- tan Naumann. CliNER 2.0: Accessible and accurate clini- cal concept extraction. In arXiv:1803.02245, 2018.
- [Chen et al., 2019] Jun Chen, Jingbo Zhou, Zhenhui Shi, Bin Fan, and Chengliang Luo. Knowledge abstraction match- ing for medical question answering. In IEEE BIBM, pages 342-347, 2019.
- [Choi et al., 2016a] Edward Choi, Mohammad Taha Ba- hadori, Andy Schuetz, Walter F Stewart, and Jimeng Sun. Doctor AI: Predicting clinical events via recurrent neural networks. In MLHC, pages 301-318, 2016.
- [Choi et al., 2016b] Edward Choi, Mohammad Taha Ba- hadori, Jimeng Sun, Joshua Kulas, Andy Schuetz, and Walter Stewart. RETAIN: An interpretable predictive model for healthcare using reverse time attention mech- anism. In NeurIPS, pages 3504-3512, 2016.
- [Choi et al., 2016c] Edward Choi, Andy Schuetz, Walter F Stewart, and Jimeng Sun. Using recurrent neural network models for early detection of heart failure onset. JAMIA, 24(2):361-370, 2016.
- [Choi et al., 2017] Edward Choi, Mohammad Taha Ba- hadori, Le Song, Walter F. Stewart, and Jimeng Sun. GRAM: Graph-based attention model for healthcare rep- resentation learning. In KDD, pages 787-795, 2017.
- [Dai et al., 2019] Dai Dai, Xinyan Xiao, Yajuan Lyu, Shan Dou, Qiaoqiao She, and Haifeng Wang. Joint extraction of entities and overlapping relations using position-attentive sequence labeling. In AAAI, 2019.
- [Ding et al., 2019] Ming Ding, Chang Zhou, Qibin Chen, Hongxia Yang, and Jie Tang. Cognitive graph for multi- hop reading comprehension at scale. In ACL, pages 2694- 2703, 2019.
- [Fu et al., 2019] Tsu-Jui Fu, Peng-Hsuan Li, and Wei-Yun Ma. GraphRel: Modeling text as relational graphs for joint entity and relation extraction. In ACL, pages 1409-1418, 2019.
- [Girardi et al., 2018] Ivan Girardi, Pengfei Ji, An phi Nguyen, Nora Hollenstein, Adam Ivankay, Lorenz Kuhn, Chiara Marchiori, and Ce Zhang. Patient risk assessment and warning symptom detection using deep attention- based neural networks. In EMNLP Workshop, pages 139- 148, 2018.
- [Guo et al., 2019] Zhijiang Guo, Yan Zhang, and Wei Lu. Attention guided graph convolutional networks for rela- tion extraction. In ACL, pages 241-251, 2019.
- [Kim, 2014] Yoon Kim. Convolutional neural networks for sentence classification. In EMNLP, pages 1746--1751, 2014.
- [Liang et al., 2019] Huiying Liang, Brian Y. Tsui, Hao Ni, Carolina C. S. Valentim, Sally L. Baxter, and et al. Evalu- ation and accurate diagnoses of pediatric diseases using ar- tificial intelligence. Nature Medicine, 25:433-438, 2019.
- [Liu et al., 2018] Bang Liu, Ting Zhang, Di Niu, Jinghong Lin, Kunfeng Lai, and Yu Xu. Matching long text doc- uments via graph convolutional networks. arXiv preprint arXiv:1802.07459, 2018.
- [Mullenbach et al., 2018] James Mullenbach, Sarah Wiegr- effe, Jon Duke, Jimeng Sun, and Jacob Eisenstein. Ex- plainable prediction of medical codes from clinical text. In NAACL, pages 1101-1111, 2018.
- [Peng et al., 2018] Hao Peng, Jianxin Li, Yu He, Yaopeng Liu, Mengjiao Bao, Lihong Wang, Yangqiu Song, and Qiang Yang. Large-scale hierarchical text classification with recursively regularized deep Graph-CNN. In WWW, pages 1063-1072, 2018.
- [Qiao et al., 2019] Zhi Qiao, Xian Wu, Shen Ge, and Wei Fan. MNN: Multimodal attentional neural networks for diagnosis prediction. In IJCAI, pages 5937-5943, 2019. IJCAI
- [Rios and Kavuluru, 2018] Anthony Rios and Ramakanth Kavuluru. Few-shot and zero-shot multi-label learning for structured label spaces. In EMNLP, pages 3132-3142, 2018.
- [Santos et al., 2016] Cicero dos Santos, Ming Tan, Bing Xi- ang, and Bowen Zhou. Attentive pooling networks. arXiv preprint arXiv:1602.03609, 2016.
- [Sha and Wang, 2017] Ying Sha and May D. Wang. Inter- pretable predictions of clinical outcomes with an attention- based recurrent neural network. In ACM BCB, pages 233- 240, 2017.
- [Vaswani et al., 2017] Ashish Vaswani, Noam Shazeer, Niki Parmar, Jakob Uszkoreit, Llion Jones, Aidan N Gomez, Łukasz Kaiser, and Illia Polosukhin. Attention is all you need. In NeurIPS, pages 5998-6008, 2017.
- [Xia et al., 2020] Yuan Xia, Jingbo Zhou, Zhenhui Shi, Chao Lu, and Haifeng Huang. Generative adversarial regular- ized mutual information policy gradient framework for au- tomatic diagnosis. In AAAI, 2020.
- [Yang et al., 2018] Zhongliang Yang, Yongfeng Huang, Yi- ran Jiang, Yuxi Sun, Yu-Jin Zhang, and Pengcheng Luo. Clinical assistant diagnosis for electronic medical record based on convolutional neural network. Scientific Reports, 8(1), April 2018.
- [Yao et al., 2019] Liang Yao, Chengsheng Mao, and Yuan Luo. Graph convolutional networks for text classification. In AAAI, pages 7370-7377, 2019.
- [Zhang et al., 2019] Jiani Zhang, Xingjian Shi, Shenglin Zhao, and Irwin King. STAR-GCN: Stacked and recon- structed graph convolutional networks for recommender systems. In IJCAI, pages 4264-4270, 2019. IJCAI
- [Zhou et al., 2018] Jie Zhou, Ganqu Cui, Zhengyan Zhang, Cheng Yang, Zhiyuan Liu, and Maosong Sun. Graph neu- ral networks: A review of methods and applications. arXiv preprint arXiv:1812.08434, 2018.
References were extracted automatically from the PDF and may contain errors.
Full text extracted automatically from the PDF; figures, tables and equations may differ. The PDF is the version of record.
1 Introduction
The automatic diagnosis has been very popular in recent years due to the advancement of Artificial Intelligence [Anandan et al., 2019]. The AI-enabled decision-making has been successfully applied in many enterprise diagnostic systems such as Babylon Health and Ping An Good Doctor, to assist physicians and patients through diagnostic process.
Besides the studies of diagnosis on the Web [Xia et al., 2020; Chen et al., 2019], there are extensive studies of automatic diagnosis based on EMR (Electronic Medical Record) documents for clinical use [Yang et al., 2018; Girardi et al., 2018; Mullenbach et al., 2018; Liang et al., 2019]. An EMR document consists of multiple text sections written by certificated physicians with high standards. The text sections Table 1: The example of a real EMR document. CC: chief complaint. HPI: history of present illness. PE: physical examination. SE: supplementary examination (e.g. imaging reports or lab test results). Findings are extracted with NER tools from EMR.
∗ Jun Chen is the corresponding author.
| Sections | Texts |
|---|---|
| CC | Intermittent shoulder and back pain for 3 years. Feeling short of breath and having syncope for 2 days. (间 歇性肩背部 疼痛3年, 气短伴晕厥2天) |
| HPI | The patient suffers from shoulder and back pain without obvious causes, and feels chest tightness and sweating from 3 years ago. (3年前无明显诱因出现 肩背部 疼痛,伴胸闷,汗出) |
| PE | T:37.8℃, P:86 BPM, BP:120/80mmHg. (体 温:37.8℃, 心率:86 BPM, 血压:120/80mmHg) |
| SE | Echocardiography: Segmental wall motion abnor- mality, moderate mitral, tricuspid and aortic insuffi- ciency, moderate pulmonary hypertension, left ven- tricular dysfunction. (心脏超声:节 段性室壁运动 异常,二 尖瓣,三尖瓣,主动脉瓣中度关闭不全,中 度肺动脉高压,左心功能减低) |
| Diagnosis | Miocardial infarction (心肌梗 死) |
| Findings | shoulder pain (肩痛), back pain (背痛), short of breath (气短), syncope (晕厥), chest tightness (胸 闷), moderate aortic valve insufficiency (主动脉瓣 中度关闭不全). |
describe a patient's illness such as chief complaint, history of present illness, physical examination and so forth. Table 1 shows an example of a real EMR document from a hospital in China. Each section has one or more paragraphs of pure texts where there are critical medical entities like symptoms and signs called findings which can be extracted by the Named Entity Recognition (NER) [Dai et al., 2019].
Most of the previous deep learning based diagnosis models consider it as a sequence learning problem, and predict diagnosis with Convolutional Neural Network (CNN) [Girardi et al., 2018; Mullenbach et al., 2018; Yang et al., 2018] or Recurrent Neural Network (RNN) [Sha and Wang, 2017] models. Unfortunately, there still exist three major issues: (1) There are complex relations between findings and diseases (diagnosis), e.g. one disease may cause multiple findings to occur and one finding can be caused by multiple diseases. But the sequence learning models on pure texts cannot effectively extract the structural information (e.g. graph) between the findings and the diseases in the original texts. (2) The mentions of the same finding in the original texts vary a lot due to different writing styles of the physicians, which leads to the sparse feature problem because the feature is diluted into different relations. For example, hemorrhage of brain stem and brainstem hemorrhage are exactly the same but may be recognized as different findings. Besides, the minor difference in the expression also adds to the sparse feature problem, e.g. formation of softening lesions in the left basal ganglia (左基底节软化灶形成) and formation of softening lesions in the right basal ganglia (右基底节软化灶形成) are both kinds of formation of softening lesions in the basal ganglia (基底节软化灶形成). (3) The medical entities in the EMR are very important for the physician to make diagnosis, but the previous self-attentive models [Girardi et al., 2018; Sha and Wang, 2017] cannot take advantage of the extra information from other data sources to enhance the importance of the critical words in the input.
To tackle the above issues, we propose the Graph-based Mutual Attentive Network (GMAN) in this paper. It improves the effectiveness of sequence learning models by incorporating the graph convolutional network and the mutual attentive network.
We summarize the major contributions of this paper as:
- We introduce the Graph Convolutional Network (GCN) to faciliate the representation learning of findings and diseases in automatic diagnosis based on the disease hierarchy and the causal graph of diseases we construct. GCN enables the proposed model to effectively extract the structural information between the critical medical entities and alleviate the sparse feature problem.
- We bring forward the novel mutual attentive network between pure texts and medical entities in the diagnosis model. It firstly enhances the representation of medical entities with pure texts, and then enhances the representation of pure texts with the generated features of medical entities. The proposed mutual attentive network emphasizes the critical information in both the original texts and the medical entities towards the better performance of diagnosis.
- The experiments conducted on both the real Chinese EMR documents and the benchmarking English clinical dataset show that the proposed GMAN model outperforms the previous methods in the automatic diagnosis. Besides, we have collaborated with the Regional Healthcare Committee in several major cities in China to integrate GMAN into the information systems in over hundreds of primary health care facilities to assist the physicians throughout the diagnostic process.
2 RelatedWork
We briefly introduce the related work on deep learning based diagnosis, GCN and attentive networks.
2.1 Deep Learning based Diagnosis
There are many studies of automatic diagnosis based on deep learning. Yang [2018] proposed a multi-layer convolutional network for high level semantic understanding, which is used in automatic diagnosis. Mullenbach [2018] employs a labelwise attentive mechanism, which allows the model to learn distinct document representations for each label. Based on that, Rios [2018] learns to predict the few-shot and the zeroshot labels by matching the discharge summaries in EMR documents to feature vectors for each label by exploiting the structured label space with GCN. RETAIN [Choi et al., 2016b] is an interpretable predictive model, which employed the reverse time attentive mechanism in an RNN for binary prediction. DoctorAI [Choi et al., 2016c] is a straightforward approach with simple RNN for sequential patient data modeling. MNN [Qiao et al., 2019] incorporates clinical text data and medical codes for diagnosis prediction. Meanwhile, Girardi [2019] detects the warning symptoms based on the deep attentive neural network.
2.2 Graph Convolutional Networks
The Graph Convolutional Networks have attracted the growing attention recently and have been widely used in many tasks like recommender system [Zhang et al., 2019], relation extraction [Guo et al., 2019] and reading comprehension [Ding et al., 2019]. The most similar application of GCN to automatic diagnosis is the text classification that models long documents as graphs. Peng [2018] proposes to convert a document into a word co-occurrence graph, which is used as the input to the GCN layers. Yao [2019] models words and documents into a unified graph where the edges between words are computed with the point-wise mutual information (PMI) and the edges connecting words and documents are calculated with TF-IDF features. Liu [2018] proposes a siamese GCN model in the text matching problem by modeling two documents in an interaction graph. Zhou [2018] adopts a similar strategy but uses GCN to match the article with a short query.
2.3 Attentive Networks
Attention is generally used to attend to the most critical part of texts, images or other types of data. It has been successfully applied in machine translation [Vaswani et al., 2017] and question answering [Chen et al., 2019]. In automatic diagnosis, the attentive mechanism is mostly combined with the convolutional networks or recurrent networks to obtain the interpretable prediction results [Sha and Wang, 2017; Girardi et al., 2018; Choi et al., 2016b; Qiao et al., 2019]. Choi [2017] improves disease representation learning by incorporating attention from the preceding nodes on disease hierarchy. The attentive pooling network [Santos et al., 2016] introduces the bidirectional attention in question answering, which is similar to our mutual attentive network. The major difference is that we apply the attention in two consecutive steps rather than the parallel manner in [Santos et al., 2016].
3 The GMANModel
Fig. 1 shows the architecture of the proposed Graph-based Mutual Attentive Network (GMAN) model. It consists of three components: medical graph construction, GCN encoding and mutual attentive network.
Findings Medical Graph Construction ALL
EMR DATA

Patient Info
Age: 18
Gender: female
…
Figure 1: The Architecture of the GMAN model.

3.1 Medical Graph Construction
As shown in Fig. 2, the GMAN model is built on top of two medical graphs: the disease hierarchy and the causal graph of diseases. The disease hierarchy shows the affiliation between diseases. It consists of disease nodes and the isA relationship (⇒) between them. The directed edge di ⇒ dj means that disease di is a kind of disease dj , e.g. bacterial pneumonia ⇒ pneumonia. One disease may have multiple parent diseases or multiple children diseases in the disease hierarchy. We obtain the disease hierarchy from the International Classification of Diseases, 10th Revision (ICD-10) 1 .
The causal graph of diseases is mined from the EMR documents, which connects disease d and the findings in the EMR documents where d is the main diagnosis. Let G = (V,E) denote the causal graph of diseases where V and E are the sets of nodes and edges, respectively. V mainly consists of two types of nodes: finding and disease where finding can be the evidence (e.g. symptom or sign) found in the EMR that supports the diagnosis, and disease is the main diagnosis of the EMR. E contains the directed edge d → f which means disease d causes finding f to occur. In this study, we propose to construct the causal graph G with the following steps:
1 https://www.cdc.gov/nchs/icd/icd10cm.htm
Firstly, the EMR document undergoes the named entity recognition (NER) [Dai et al., 2019] to extract the medical entities in the EMR like symptoms, signs and diseases together with the polarity of entities (positive, negative or unknown). The F1 score of the NER is 91% in a separate evaluation conducted on 1000 deduplicated sentences from EMRs annotated by physicians. The original causal graph is obtained by adding a directed edge from the main diagnosis (disease) to each of the positive findings in the same EMR.
Secondly, the original causal graph is pruned based on the causal weight matrix A ∈ R|Vd|×|Vf | , which is defined as:
where Vd and Vf are the set of disease nodes and that of finding nodes, respectively, and Vd ∪ Vf = V . n(fj|di) is the frequency of finding fj in the EMR documents where di is the main diagnosis. n(di) is the number of EMR documents of disease di and N is the total number of EMR documents. Ai,j measures the likelihood that disease di causes finding fj . The causal weight is normalized by diseases, and the final causal weight matrix is:
The causal weight ˜ Ai,j has a long-tail distribution by diseases, and most of the low-weight edges are noise. Thus, we preserve the Top-k edges in each row so that the most important signals on each disease are captured in the result graph. The rest edges are removed and their weights in the graph are set to zero. Therefore, each disease is connected to at most k neighbors in the causal graph. We empirically set k = 5 in our experiments.
3.2 GCN Encoding
Most of the previous deep learning based automatic diagnosis models conduct sequence learning on the pure texts of EMR documents [Yang et al., 2018; Mullenbach et al., 2018; Girardi et al., 2018]. Although the sequence learning models can extract important information from the plain texts, yet they are not designed to model the complex inherent relationship between the medical entities, e.g. graph structure. In contrast, the Graph Convolutional Network (GCN) has been widely used in the modeling of graph structure data [Fu et al., 2019]. Thus, we propose to use GCN to obtain the highlevel representation of medical entities considering the graph structure among the entities.
Let di ∈ Rm and fj ∈ Rm denote the embedding of disease di and that of finding fj, respectively. Inspired by [Fu et al., 2019], GCN convolves the features of the neighbors to update the embedding of the target node. We propose the update rules as:
where W(1) , W(2) , W(3) , W(4) , W(5) ∈ Rm×m, b(1) and b(2) ∈ Rm are the trainable parameters of the GCN encoder. Np(i) and Nc(i) are the set of parent nodes and that of children nodes of disease di on the disease hierarchy, respectively. Ng(j) is the set of neighbors (diseases) of finding fj on the causal graph. In Eq. (3), we update the embedding of disease di based on the features of its parent diseases, children diseases and the feature of itself. In Eq. (4), we update the embeding of finding fj based on the features of the neighboring disease nodes and the feature of fj itself. Thus, the structural information of disease hierarchy and causal graph is encoded in the embeddings of diseases and findings with the GCN encoder. Eq. (3) and (4) can be considered as: a Disease-Disease (D-D) GCN layer followed by a DiseaseFinding (D-F) GCN layer. We update disease embeddings before updating finding embeddings because disease causes findings to occur instead of the other way around. There is an ordinal causal relationship in between. In the GMANmodel, the GCN encoder is used to generate the high-level representations of the findings from the given EMR document.
3.3 Mutual Attentive Network
As shown in Fig. 1, the pure texts and the findings extracted from the given EMR are fed into a convolutional neural network with attention. In this study, we propose a mutual attentive network to jointly model pure texts and findings (i.e. medical entities) in automatic diagnosis. Specifically, we use the pure texts to enhance the representation of findings with attention, and vice versa.
Firstly, we concatenate the texts of chief complaint, history of present illness, physical examination and supplementary examination (e.g. lab test result or imaging report) together, and perform Chinese word segmentation with Jieba 2 .
2 Jieba (https://github.com/fxsjy/jieba) is an open-sourced Chi-
Secondly, on one hand, the word sequence is passed through a convolutional layer to get the n-gram features where n is the size of the convolutional kernel, e.g. n = 3, 4, 5. On the other hand, the word sequence is fed into a Bidirectional Gated Recurrent Unit (Bi-GRU) layer to get the hidden feature h(1) . Let {w1, ...,wN} denote the input word sequence. The features of the hidden GRU layer are:
where r denotes the number of recurrent units per direction. We use the step-wise average pooling as the hidden feature:
h(1) is used to compute the attention weights α of the embeddings (Eq. (4)) w.r.t each finding:
where W(6) , b(3) and v(1) are the parameters. Thereafter, we compute the compound representation of all findings as the attentive weighted sum:
We call the process (Eq. (5)-(9)) the text-guided attention.
Next, we use the findings to enhance the representation of pure texts with attention mechanism because there are key information in the word sequence of pure texts that are not included in the extracted findings due to the missed recall of NER and the other critical but non-medical keywords. For example, the duration of symptoms like "one hour ago" and "for ten years" in the pure texts are critical to tell whether it is acute disease or not.
We use the multi-channel CNN model [Kim, 2014] to process the input pure texts with 3-gram, 4-gram and 5-gram kernels. Each channel has l (e.g. l = 100) kernels and the sequence is padded with zeros so that the size of the resulting feature maps is the same. Let X ∈ RN×k denote the word embeddings of the input pure texts where N is the length of the input word sequence and k is the number of dimensions of word embedding. The output of the convolutional layer is:
nese word segmentation package, widely used in Chinese NLP studies. It generates the DAG structure of all possible segmentations based on Trie Tree, and uses dynamic programming to find the most probable segmentation based on word frequency.
| Metrics | Neurology | Cardiology | MIMIC-III-50 |
|---|---|---|---|
| # of training samples | 20,545 | 16,130 | 8,067 |
| # of testing samples | 1,425 | 1,108 | 1,574 |
| # of unique findings | 35,111 | 23,158 | 77,949 |
| # of unique diseases | 154 | 110 | 50 |
| avg. length of text | 1,691 | 2,208 | 1,530 |
| avg. # of findings per EMR | 12 | 15 | 25 |
where Y(1) , Y(2) , Y(3) ∈ RN×l are the output feature maps of the CNN channels w.r.t. 3-gram, 4-gram and 5-gram, respectively. Due to page limits, we refer the readers to [Kim, 2014] for the detail of multi-channel CNN model.
Similarly, let Yi denote the i-th row of Y. We compute the hidden feature of w.r.t. the i-th row as:
where h(f) is the text-guided attention in Eq. (9). W(7) and b(4) are the parameters. The attentive weight of gram is:
Finally, the compound representation of all pure texts is computed as the attentive weighted sum:
We call Eq. (10)-(13) the finding-guided attention.
To this end, the findings and the pure texts are mutually used to enhance the representation of each other. We name this process the mutual attentive network. Different from [Santos et al., 2016], the two attentions are performed consecutively in GMAN to introduce more information exchange between free-texts and entities during representation learning. That is, GMAN computes hf first, and the computation of ht is based on hf unlike the parallel attention mechanism used in question answering in [Santos et al., 2016] where the update is separately performed based on the snapshot features of the counterpart's previous state. Finally, the attentive features hf and ht are concatenated together with the patient's basic information like gender and age before feeding to the last fully connected layer for classification.
4 Experiments
In this section, we evaluate GMAN on the real-world EMR data and compare them with the baseline models.
4.1 Experimental Settings
We have collaborated with many top hospitals in China to conduct research on automatic diagnosis. In this way, we collected the real EMR documents for experiments. We select two medical departments, Neurology and Cardiology, in the evaluation with the following reasons: (1) It is difficult to distinguish between diseases in the same department since they usually share symptoms and signs. (2) Most of the diseases in Neurology and Cardiology are highly risky, e.g. heart failure and brainstem hemorrhage. It is of highly clinical value to automatically diagnose the diseases in the two departments. The main diagnosis by the certificated doctor in each EMR is selected as its ground-truth label to predict.
For the reproducibility concerns, we choose MIMIC-III50 [Mullenbach et al., 2018] as the English dataset in the evaluation besides the Chinese datasets. Table 2 shows the statistics of the datasets in the evaluation 3 . The training and the testing sets in the above three datasets are disjoint. For MIMIC-III-50, we use the same training and testing sets from the original study 4 . The public English NER for clinical notes, CliNER 5 , is used to process MIMIC-III-50, which reports 83.8% F1 score in the original paper [Boag et al., 2018].
We compare the proposed model with the following deep learning based automatic diagnosis methods:
CNN [Yang et al., 2018]: It proposes a convolutional neural network to extract features from EMR documents for automatic diagnosis.
BiGRU [Choi et al., 2016a]: It introduces the bidirectional GRU upon the word sequence to get the hidden features before aggregating to a compound representation by average pooling for diagnosis prediction.
ACNN [Girardi et al., 2018]: It combines the CNN model with the gram-level attention to predict the diagnosis and detect the warning symptoms.
CAML [Mullenbach et al., 2018]: It proposes a label-wise attention on top of a convolutional neural network to predict diagnosis from clinical texts.
In order to validate the effectiveness of the proposed method in automatic diagnosis, we use GCN, MAN and GMAN to denote the proposed models with GCN encoding alone, mutual attention alone and both, respectively. GPAP is the method that replaces the mutual attentive network of GMAN with Parallel Attentive Pooling [Santos et al., 2016].
4.2 Results
We use recall at K (R@K) and precision at K (P@K) as the metrics to measure the performance. Since there is only one ground-truth label in each testing sample in the Chinese datasets Neurology and Cardiology, the R@1 and P@1 are reported. However, since there are multiple ground-truth labels for each sample in MIMIC-III-50, we report R@5 and P@5 to be consistent with [Mullenbach et al., 2018]. Since the original paper [Mullenbach et al., 2018] only reports the P@5 result, we reproduce CAML on the same training and testing datasets, and report both P@5 and R@5 in our evaluation. The reproduced P@5 is 61.50%, very similar to that (61.80%) in the original paper.
Table 3 shows the evaluation results. As we can see, the proposed models outperform all baseline models on three datasets under all metrics including the benchmarking English dataset. Compared to the best of the baselines, there are about 6%-10% absolute improvement of recall and precision on Neurology, while there are about 1.6%-4% absolute improvement of recall and precision on Cardiology and MIMIC-III-50, which prove the effectiveness of the proposed models in automatic diagnosis.
3 We do not have the permission from hospitals to publish the Chinese EMR data since they are legally protected by the laws. Please focus on the contributions of the proposed diagnosis models.
4 https://github.com/jamesmullenbach/caml-mimic
5 https://github.com/text-machine-lab/CliNER
| Models | Neurology | Cardiology | MIMIC-III-50 | |||
|---|---|---|---|---|---|---|
| R@1 | P@1 | R@1 | P@1 | R@5 | P@5 | |
| CNN | 62.39% | 68.02% | 48.37% | 48.89% | 59.66% | 61.67% |
| BiGRU | 64.00% | 67.59% | 51.32% | 60.22% | 57.51% | 59.10% |
| ACNN | 64.58% | 69.31% | 52.62% | 58.01% | 59.77% | 61.85% |
| CAML | 62.53% | 68.91% | 50.75% | 56.84% | 59.23% | 61.50% |
| GCN | 70.31% | 77.32% | 53.73% | 61.19% | 61.22% | 62.53% |
| MAN | 66.45% | 72.36% | 53.26% | 60.43% | 60.05% | 62.19% |
| GPAP | 71.87% | 78.63% | 55.79% | 61.94% | 61.57% | 62.83% |
| GMAN | 73.59% | 79.81% | 57.31% | 62.62% | 62.13% | 63.46% |

Among the proposed methods, we can see that both GCN and MAN improve the performance of automatic diagnosis. It means that both the proposed GCN encoding and the mutual attentive network bring benefits to model patient's illness. By comparing GMAN and GPAP, we can see that the proposed mutual attentive network outperforms parallel attentive pooling in this task. Meanwhile, the experiments show that when applying both methods together, the performance improvement is the best.
We attribute the improvement of performance of the proposed models to two aspects:
Firstly, the incorporation of GCN encoding can effectively extract the structural information between findings and diseases, and it also alleviates the sparse feature problem. Fig. 3 illustrates the t-SNE plots of the findings before and after GCN encoding. In order to show the validity, we use the same color to draw the findings if they are the most close to the same disease. We randomly select up to 20 findings for each disease from the Cardiology department where the findings are the most close to the selected disease based on the cosine distance between their embeddings. Apparently, the findings w.r.t. the same disease are much closer after GCN encoding, which means GCN is capable of encoding complex structural information in the embeddings.
Figure 4: Visualization of mutual attention weights
Secondly, the proposed mutual attentive network can correctly enhance the weights of both the critical findings and the important original words from the input towards getting more accurate diagnosis. Fig. 4 illustrates an example of the mutual attention weights. The example is randomly selected from the testing set. The proposed mutual attentive network learns to impose higher weights upon the critical findings as well as the important words. In Fig. 4, the words with high attention weights are highlighted. The higher the weight is, the darker the background color is. As we can see, the highlighted findings (e.g. mental sluggishness, decreased muscle tone, cerebral hemorrhage and limb fatigue) are all the critical symptoms and signs of the diagnosis hemorrhagic cerebral infarction. Similarly, the highlighted words (e.g. right limb weakness and with hemorrhage) in the original texts are also the keywords highly relevant to the diagnosis. Besides, the attention weights can be further used to explain the diagnosis prediction because they are considered critical to make the diagnosis by the model. Thus, the mutual attentive network sheds some light on the interpretability of the automatic diagnosis models.
In all, the evaluation results prove that the proposed models are effective in automatic diagnosis on both the Chinese and the English datasets. The improvement results from the better representation learning of medical entities by GCN and the interpretability brought by mutual attentive network.
5 Conclusion
In this paper, we propose GMAN, an automatic diagnosis model which is built upon the reliable corpus of EMR documents from hospitals. GMAN consists of medical graph construction, GCN encoding and mutual attentive network. We construct the disease hierarchy and the causal graph of diseases based on the international standards as well as the clinical EMR data. The proposed GCN encoding extracts the complex structural information between the critical findings found on the patient. The mutual attentive network enhances the feature representations of the critical words and findings by imposing higher attention weights on them. The experimental results show that the proposed models outperform the previous deep learning based diagnosis methods on the realworld clincial EMR data.
@inproceedings{ijcai2020p469,
title = {The Graph-based Mutual Attentive Network for Automatic Diagnosis},
author = {Yuan, Quan and Chen, Jun and Lu, Chao and Huang, Haifeng},
booktitle = {Proceedings of the Twenty-Ninth International Joint Conference on
Artificial Intelligence, {IJCAI-20}},
publisher = {International Joint Conferences on Artificial Intelligence Organization},
editor = {Christian Bessiere},
pages = {3393--3399},
year = {2020},
month = {7},
note = {Main track},
doi = {10.24963/ijcai.2020/469},
url = {https://doi.org/10.24963/ijcai.2020/469},
}
TY - CPAPER TI - The Graph-based Mutual Attentive Network for Automatic Diagnosis AU - Yuan, Quan AU - Chen, Jun AU - Lu, Chao AU - Huang, Haifeng T2 - Proceedings of the Twenty-Ninth International Joint Conference on Artificial Intelligence, IJCAI-20 PB - International Joint Conferences on Artificial Intelligence Organization PY - 2020 SP - 3393 EP - 3399 DO - 10.24963/ijcai.2020/469 UR - https://doi.org/10.24963/ijcai.2020/469 ER -Copied
Machine-readable versions of this paper, for tools and AI agents: