Literature DB >> 31856806

Incorporating medical code descriptions for diagnosis prediction in healthcare.

Fenglong Ma1, Yaqing Wang2, Houping Xiao3, Ye Yuan4, Radha Chitta5, Jing Zhou6, Jing Gao2.   

Abstract

BACKGROUND: Diagnosis aims to predict the future health status of patients according to their historical electronic health records (EHR), which is an important yet challenging task in healthcare informatics. Existing diagnosis prediction approaches mainly employ recurrent neural networks (RNN) with attention mechanisms to make predictions. However, these approaches ignore the importance of code descriptions, i.e., the medical definitions of diagnosis codes. We believe that taking diagnosis code descriptions into account can help the state-of-the-art models not only to learn meaning code representations, but also to improve the predictive performance, especially when the EHR data are insufficient.
METHODS: We propose a simple, but general diagnosis prediction framework, which includes two basic components: diagnosis code embedding and predictive model. To learn the interpretable code embeddings, we apply convolutional neural networks (CNN) to model medical descriptions of diagnosis codes extracted from online medical websites. The learned medical embedding matrix is used to embed the input visits into vector representations, which are fed into the predictive models. Any existing diagnosis prediction approach (referred to as the base model) can be cast into the proposed framework as the predictive model (called the enhanced model).
RESULTS: We conduct experiments on two real medical datasets: the MIMIC-III dataset and the Heart Failure claim dataset. Experimental results show that the enhanced diagnosis prediction approaches significantly improve the prediction performance. Moreover, we validate the effectiveness of the proposed framework with insufficient EHR data. Finally, we visualize the learned medical code embeddings to show the interpretability of the proposed framework.
CONCLUSIONS: Given the historical visit records of a patient, the proposed framework is able to predict the next visit information by incorporating medical code descriptions.

Entities:  

Keywords:  Diagnosis prediction; Healthcare informatics; Medical code embeddings

Mesh:

Year:  2019        PMID: 31856806      PMCID: PMC6921390          DOI: 10.1186/s12911-019-0961-2

Source DB:  PubMed          Journal:  BMC Med Inform Decis Mak        ISSN: 1472-6947            Impact factor:   2.796


Background

The immense accumulation of Electronic Healthcare Records (EHR) makes it possible to directly predict patients’ future health status, which is done by analyzing their historical visit records [1-4]. Diagnosis prediction attracts considerable attention from both healthcare providers and researchers. It aims to predict the diagnosis information of patients in the following visits. There are two key challenges for diagnosis prediction task as follows: (1) designing an accurate and robust predictive model to handle the temporal, high dimensional and noisy EHR data; and (2) reasonably interpreting the advantages and effectiveness of the proposed models to both doctors and patients. To address these challenges of diagnosis prediction task, many recurrent neural networks (RNN) based models [2-4] have been proposed. RETAIN [4] uses two recurrent neural networks with attention mechanisms to model the reverse time ordered EHR sequences. By employing a bidirectional recurrent neural network (BRNN), Dipole [2] enhances the prediction accuracy with different attention mechanisms. In order to guarantee the predictive performance, training the above mentioned models usually requires a lot of EHR data. However, there is a common problem for EHR data that is always existing medical codes of rare diseases. Those diagnosis codes infrequently appear in the EHR data. GRAM [3] has been proposed to overcome this issue. GRAM learns medical code representations by exploiting medical ontology information and the graph-based attention mechanism. For the rare medical codes, GRAM can alleviate the difficulties of learning their embeddings by considering their ancestors’ embeddings to guarantee the predictive performance. However, the performance of GRAM heavily depends on the choice of medical ontology. Thus, without specific input constraints, how to learn robust embeddings for medical codes is still the major challenge for accurate diagnosis prediction. To resolve this challenge, we consider the “nature” of diagnosis codes, i.e., their medical descriptions. Actually, each diagnosis code has a formal description, which can be easily obtained from the Internet, such as Wikipedia or online medical websites. For example, the description of diagnosis code “428.32” is “Chronic diastolic heart failure” (http://www.icd9data.com/2015/Volume1/390-459/420-429/428/428.32.htm), and “Rheumatic heart failure (congestive)” is the description of diagnosis code “398.91” (http://www.icd9data.com/2015/Volume1/390-459/393-398/398/398.91.htm). Without considering the medical meanings of diagnosis codes, they are treated as two independent diseases in the EHR dataset. However, they both describe the same disease, i.e., “heart failure”. Thus, we strongly believe that incorporating the descriptions of diagnosis codes in the prediction should help the predictive models to improve the prediction accuracy and provide interpretable representations of medical codes, especially when the EHR data are insufficient. The other benefit of incorporating diagnosis code descriptions is that it enables us to design a general diagnosis prediction framework. The input data of all the existing diagnosis prediction approaches are the same, i.e., a sequence of time-ordered visits, and each visit consists of some diagnosis codes. Thus, all the existing approaches, including, but not limited to RETAIN, Dipole and GRAM, can be extended to incorporate the descriptions of diagnosis codes to further improve their predictive performance. In this paper, we propose a novel framework for diagnosis prediction task. It should be noted that all of the state-of-the-art diagnosis prediction approaches (referred to as base models) can be cast into the proposed framework. These base models enhanced by the proposed framework are thus called enhanced models. Specifically, the proposed framework consists of two components: diagnosis code embedding and predictive model. The diagnosis code embedding component aims to learn the medical representations of diagnosis codes according to their descriptions. In particular, for each word in the description, we obtain the pretrained vector representation from fastText [5]. Then the concatenation of all the words in each diagnosis code description is fed into a convolutional neural network (CNN) to generate the medical embeddings. Based on the learned medical embeddings of diagnosis codes, the predictive model component makes prediction. It first embeds the input visit information into a visit-level vector representation with the code embeddings, and then feeds this vector into the predictive model, which can be any existing diagnosis prediction approach. We use two real medical datasets to illustrate the superior ability of the proposed framework on the diagnosis prediction task compared with several state-of-the-art approaches. Quantitative analysis is also conducted to validate the effectiveness of the proposed approaches with insufficient EHR data. Finally, we qualitatively analyze the interpretability of the enhanced approaches by visualizing the learned medical code embeddings against the embeddings learned by existing approaches. To sum up, we achieve the following contributions in this paper: We realize the importance of obtaining diagnosis code embeddings from their descriptions which can be directly extracted from the Internet. We propose a simple, but general and effective diagnosis prediction framework, which learns representations of diagnosis codes directly from their descriptions. All the state-of-the-art approaches can be cast into the proposed framework to improve the performance of diagnosis prediction. Experimental results on two medical datasets validate the effectiveness of the proposed framework and the interpretability for prediction results.

Related Work

In this section, we briefly survey the work related to diagnosis prediction task. We first provide a general introduction about mining healthcare related data with deep learning techniques, and then survey the work of diagnosis prediction.

Deep Learning for EHR

Several machine learning approaches are proposed to mine medical knowledge from EHR data [1, 6–10]. Among them, deep learning-based models have achieved better performance compared with traditional machine learning approaches [11-13]. To detect the characteristic patterns of physiology in clinical time series data, stacked denoising autoencoders (SDA) are used in [14]. Convolutional neural networks (CNN) are applied to predict unplanned readmission [15], sleep stages [16], diseases [17, 18] and risk [19-21] with EHR data. To capture the temporal characteristics of healthcare related data, recurrent neural networks (RNN) are widely used for modeling disease progression [22, 23], mining time series healthcare data with missing values [24, 25], and diagnosis classification [26] and prediction [2–4, 27].

Diagnosis Prediction

Diagnosis prediction is one of the core research tasks in EHR data mining, which aims to predict the future visit information according to the historical visit records. Med2Vec [28] is the first unsupervised method to learn the interpretable embeddings of medical codes, but it ignores long-term dependencies of medical codes among visits. RETAIN [4] is the first interpretable model to mathematically calculate the contribution of each medical code to the current prediction by employing a reverse time attention mechanism in an RNN for binary prediction task. Dipole [2] is the first work to adopt bidirectional recurrent neural networks (BRNN) and different attention mechanisms to improve the prediction accuracy. GRAM [3] is the first work to apply graph-based attention mechanism on the given medical ontology to learn robust medical code embeddings even when lack of training data, and an RNN is used to model patient visits. KAME [29] uses high-level knowledge to improve the predictive performance, which is build upon GRAM. However, different from all the aforementioned diagnosis prediction models, the proposed diagnosis prediction framework incorporates the descriptions of diagnosis codes to learn embeddings, which greatly improves the prediction accuracy and provide interpretable prediction results against the state-of-the-art approaches.

Methods

In this section, we first mathematically define the notations used in the diagnosis prediction task, introduce preliminary concepts, and then describe the details of the proposed framework.

Notations

We denote all the unique diagnosis codes from the EHR data as a code set , where is the number of diagnosis codes. Let denote the number of patients in the EHR data. For the p-th patient who has T visit records, the visiting information of this patient can be represented by a sequence of visits . Each visit consists of multiple diagnosis codes, i.e., , which is denoted by a binary vector . The i-th element of is 1 if contains the diagnosis code c. For simplicity, we drop the superscript (p) when it is unambiguous. Each diagnosis code c has a formal medical description, which can be obtained from Wikipedia (https://en.wikipedia.org/wiki/List_of_ICD-9_codes) or ICD9Data.com (http://www.icd9data.com/). We denote all the unique words which are used to describe all the diagnosis codes as , and as the description of c, where is the number of unique words. With the aforementioned notations, the inputs of the proposed framework are the set of code descriptions and the set of time-ordered sequences of patient visits . For each timestep t, we aim to predict the information of the (t+1)-th visit. Thus, the outputs are .

Preliminaries

In this subsection, we first introduce the commonly used techniques for modeling patients’ visits, and then list all the state-of-the-art diagnosis prediction approaches.

Fully Connected Layer

Deep learning based models are commonly used to model patients’ visits. Among existing models, fully connected layer (FC) is the simplest approach, which is defined as follows: where is the input data, d is the input dimensionality, and are the learnable parameters.

Recurrent Neural Networks

Recurrent Neural Networks (RNNs) have been shown to be effective in modeling healthcare data [2–4, 30]. Note that we use “RNN” to denote any Recurrent Neural Network variants, such as Long-Short Term Memory (LSTM) [31], T-LSTM [32] and Gated Recurrent Unit (GRU) [33]. In this paper, GRU is used to adaptively capture dependencies among patient visit information. GRU has two gates: One is the reset gate r, and the other is the update gate z. The reset gate r computes its state from both the new input and the previous memory. The function of r is to make the hidden layer drop irrelevant information. The update gate z controls how much information should be kept around from the previous hidden state. The mathematical formulation of GRU can be described as follows: where is the update gate at time t, g is the dimensionality of hidden states, σ() is the activation function, is the hidden state, is the reset gate at time t, represents the intermediate memory, and ∘ denotes the element-wise multiplication. Matrices and vectors are parameters to be learned. For simplicity, the GRU can be represented by where Ω denotes all the parameters of GRU.

Attention Mechanisms

Attention mechanisms aim to distinguish the importance of different input data, and attention-based neural networks have been successfully used in diagnosis prediction task, including location-based attention [2, 4], general attention [2], concatenation-based attention [2], and graph-based attention [3]. In the following, we introduce two commonly used attention mechanisms: location-based and graph-based attention. ∙Location-based Attention. Location-based attention mechanism [2, 4] is to calculate the attention score for each visit, which solely depends on the current hidden state (1≤i≤t) as follows: where and are the parameters to be learned. According to Eq. (4), we can obtain an attention weight vector α=[α1,α2,⋯,α] for the t visits. Then the softmax function is used to normalize α. Finally, we can obtain the context vector c according to the attention weight vector α and the hidden states from h1 to h as follows: We can observe that the context vector c is the weighted sum of all the visit information from time 1 to t. ∙Graph-based Attention. Graph-based attention [3] is proposed to learn robust representations of diagnosis codes even when the data volume is constrained, which explicitly employs the parent-child relationship among diagnosis codes with the given medical ontology to learn code embeddings. Given a medical ontology which is a directed acyclic graph (DAG), each leaf node of is a diagnosis code c and each non-leaf node belongs to the set . Each leaf node has a basic learnable embedding vector (), while represent the basic embeddings of the internal nodes . Let be the node set of c and its ancestors, then the final embedding of diagnosis code c denoted by can be obtained as follows: where θ(·,·) is a scalar value and defined as where and are parameters to be learned. Finally, graph-based attention mechanism generates the medical code embeddings .

Base Models

Since the proposed framework is general, all the existing diagnosis prediction approaches can be cast into this framework and treated as base models. Table 1 shows the summary of all the state-of-the-art approaches with the aforementioned techniques. The detailed implementation of these base models is introduced in “Experimental Setup” section.
Table 1

Base models for diagnosis prediction

Base modelVisit modelingAttention mechanism
FCGRULocationGraph
MLP
RNN [24]
RNN a [2]
Dipole [2]
RETAIN [4]
GRAM [3]
Base models for diagnosis prediction

The Proposed Framework

Different from graph-based attention mechanism which specifies the relationships of diagnosis codes with the given medical ontology, we aim to learn the diagnosis code embeddings directly from their medical descriptions. The main components of the proposed diagnosis prediction framework are diagnosis code embedding and predictive model. Diagnosis code embedding component is to learn the medical embeddings with code descriptions, which can embed the visit information into a vector representation. Predictive model component aims to predict the future visit information according to the embedded visit representations. Obviously, the proposed framework can be trained end-to-end. Next, we provide the details of these two components.

Diagnosis Code Embedding

To embed the description of each diagnosis code into a vector representation, Convolutional Neural Networks (CNN) [34] can be employed. The benefit of applying CNN is to utilize layers with convolving filters to extract local features, which has shown its superior ability for natural language processing tasks, such as sentence modeling [35] and sentence classification [36]. Figure 1 shows the variant of the CNN architecture to embed each diagnosis code description into a vector representation e. We first obtain the pre-trained embedding of each word w denoted as from fastText [5], where k is the dimensionality. The description with length n (padded where necessary) is represented as
Fig. 1

An Example of CNN Architecture for Diagnosis Code Embedding. The word window sizes are 2 (red line) and 3 (blue line) respectively, i.e., q=2. For each word window, there are 2 filters in the example, i.e., m=2. The dimensionality of this code embedding is 4, i.e., d=mq=4

An Example of CNN Architecture for Diagnosis Code Embedding. The word window sizes are 2 (red line) and 3 (blue line) respectively, i.e., q=2. For each word window, there are 2 filters in the example, i.e., m=2. The dimensionality of this code embedding is 4, i.e., d=mq=4 where ⊕ is the concatenation operator. Let h denote the size of a word window, and then l represents the concatenation of h words from l to l. A filter is applied on the window of h words to produce a new feature with the ReLU activation function as follows: where is a bias term, and ReLU(f)= max(f,0). This filter is applied to each possible window of words in the whole description {l1:,l2:,⋯,l} to generate a feature map as follows: Next, max pooling technique [37] is used over the feature map to obtain the most important feature, i.e., . In this way, one filter produces one feature. To obtain multiple features, we use m filters with varying window sizes. Here, we use q to denote the number of different window sizes. All the extracted features are concatenated to represent the embedding of each diagnosis code (d=mq). Finally, we can obtain the diagnosis code embedding matrix , where e is the i-th column of E. The advantage of the proposed CNN-based diagnosis code embedding approach is that it easily makes the diagnosis codes with similar meanings obtain similar vector representations. Thus, for those diagnosis codes without sufficient training EHR data, they still can learn reasonable vector representations, which further helps the model to improve the predictive performance. In the following, we will introduce how to use the produced medical embeddings for the diagnosis prediction task.

Predictive Model

Based on the learned diagnosis code embedding matrix E, we can predict patients’ future visit information with a predictive model. Given a visit , we first embed x into a vector representation with E as follows: where is the bias vector to be learned. Then v is fed into the predictive model to predict the (t+1)-th visit information, i.e., . Next, we cast state-of-the-art diagnosis prediction approaches into the proposed framework as the predictive models. ∙Enhanced MLP (MLP +). The simplest predictive model is only using a Multilayer Perceptron (MLP) with two layers: a fully-connected layer and a softmax layer, i.e., where h is obtained from Eq. (1). This model works well when both the number of diagnosis codes and patients’ visits are small. However, MLP + does not use historical visit information for the prediction. To overcome the shortage of MLP +, we employ Recurrent Neural Networks (RNN) to handle more complicated scenarios. ∙Enhanced RNN (RNN +). For RNN +, the visit embedding vector v is fed into a GRU, which produces a hidden state as follows: Then the hidden state h is fed through the softmax layer to predict the (t+1)-th visit information as follows: where . Note that RNN + only uses the t-th hidden state to make the prediction, which does not utilize the information of visits from time 1 to t−1. To consider all the information before the prediction, attention-based models are proposed in the following. ∙Enhanced Attention-based RNN (RNN +). According to Eq. (14), we can obtain all the hidden states h1,h2,⋯,h. Then location-based attention mechanism is applied to obtain the context vector c with Eq. (5). Finally, the context vector c is fed into the softmax layer to make predictions as follows: ∙Enhanced Dipole (Dipole +). Actually, one drawback of RNN is that prediction performance will drop when the length of sequence is very large [38]. To overcome this drawback, Dipole [2] which uses bidirectional recurrent networks (BRNN) with attention mechanisms are proposed to improve the prediction performance. Given the visit embeddings from v1 to v, a BRNN can learn two sets of hidden states: forward hidden states and backward hidden states . By concatenating and , we can obtain the final hidden state (). Then location-based attention mechanism is used to produce the context vector with Eq. (4) (). With the learned c, Dipole + can predict the (t+1)-th visit information with a softmax layer, i.e., Eq. (16) with . ∙Enhanced RETAIN (RETAIN +). RETAIN [4] is an interpretable diagnosis prediction model, which uses two reverse time-ordered GRUs and attention mechanisms to calculate the contribution scores of all the appeared diagnosis codes before the prediction. The visit-level attention scores can be obtained using Eq. (4). For the code-level attention scores, RETAIN employs the following function: where and are parameters. Then the context vector is obtained as follows: With the generated context vector c and Eq. (16) (), RETAIN + can predict the (t+1)-th patient’s health status. ∙Enhanced GRAM (GRAM +). GRAM [3] is the state-of-the-art approach to learn reasonable and robust representations of diagnosis codes with medical ontologies. To enhance GRAM with the proposed framework, instead of randomly assigning the basic embedding vectors , we use diagnosis code descriptions to learn those embeddings, i.e., E. Note that the non-leaf nodes are still randomly assigned basic embeddings. With the learned diagnosis code embedding matrix G as described in “Preliminaries” section, we can obtain visit-level embedding v with Eq. (12) (i.e., replacing E to G). Using Eqs. (14) and (15), GRAM + predicts the (t+1)-th visit information. Remark: A key benefit of the proposed framework is its flexibility and transparency relative to all the existing diagnosis prediction models. Beyond all the aforementioned base approaches, more effective and complicated diagnosis prediction models can also be easily cast into the proposed framework.

Results

In this section, we first introduce two real world medical datasets used in the experiments, and then describe the settings of experiments. Finally, we validate the proposed framework on the two datasets.

Real-World Datasets

Two medical claim datasets are used in our experiments to validate the proposed framework, which are the MIMIC-III dataset [39] and the Heart Failure dataset. ∙ The MIMIC-III dataset, a publicly available EHR dataset, consists of medical records of 7,499 intensive care unit (ICU) patients over 11 years. For this dataset, we chose the patients who made at least two visits. ∙ The Heart Failure dataset is an insurance claim dataset, which has 4,925 patients and 341,865 visits from the year 2004 to 2015. The patient visits were grouped by week [2], and we chose patients who made at least two visits. Table 2 shows more details about the two datasets.
Table 2

Statistics of MIMIC-III and heart failure datasets

DatasetMIMIC-IIIHeart failure
# of patients7,4994,925
# of visits19,911341,865
Avg. visits per patient2.6669.41
# of unique ICD9 codes4,8806,747
Avg. # of diagnosis codes per visit13.063.92
Max # of diagnosis codes per visit3954
# of words in code descriptions2,8003,397
# of category codes171149
Avg. # of category codes per visit10.163.33
Max # of category codes per visit3033
Statistics of MIMIC-III and heart failure datasets Diagnosis prediction task aims to predict the diagnosis information of the next visit. In our experiments, we intend to predict the diagnosis categories as [2, 3], instead of predicting the real diagnosis codes. Predicting category information not only increases the training speed and predictive performance, but also guarantees the sufficient granularity of all the diagnoses. The nodes in the second hierarchy of the ICD9 codes are used as the category labels. For example, the category label of diagnosis code “428.43: Acute on chronic combined systolic and diastolic heart failure” is “Diseases of the circulatory system (390 −459)”.

Experimental Setup

We first introduce the state-of-the-art diagnosis prediction approaches as base models, then describe the measures to evaluate the prediction results of all the approaches, and finally present the details of our experiment implementation. In our experiments, we use the following six approaches as base models: ∙MLP. MLP is a naive method, which first embeds the input visit x into a vector space v, and then uses Eq. (1) and Eq. (13) to predict the (t+1)-th visit information. RNN. RNN is a commonly used model. The input visit is first embedded into a visit-level representation v with a randomly initialized embedding matrix. Then v is fed into a GRU, and the GRU outputs the hidden state h (Eq. (14)), which is used to predict the next visit information with Eq. (15). RNN [2]. RNN adds the location-based attention mechanism into RNN. After the GRU outputs the hidden states h1,h2,⋯,h, RNN employs Eqs. (4) and (5) to calculate the context vector c. Finally, RNN makes the predictions using the learned c and Eq. (16). Dipole [2]. Dipole is the first work to apply bidirectional recurrent neural networks to diagnosis prediction task. In our experiments, we use location-based attention mechanism. Compared with RNN , the difference is that Dipole uses two GRUs to generate the hidden states, and then concatenates these two sets of hidden states to calculate the context vector c with location-based attention mechanism. ∙RETAIN [4]. RETAIN focuses on interpreting the prediction results with a two-level attention model. RETAIN uses a reverse time-ordered visit sequence to calculate the visit-level attention score with Eq. (4). The other GRU is used to compute the code-level attention weight with Eq. (17). The context vector c is obtained using Eq. (18). Based on this context vector, RETAIN predicts the (t+1)-th diagnosis codes. ∙GRAM [3]. GRAM is the first work to employ medical ontologies to learn diagnosis code representations and predict the future visit information with recurrent neural networks. GRAM first learns the diagnosis code embedding matrix G with graph-based attention mechanism (Eq. (6)). With the learned G, the input visit x is embedded into a visit-level representation v, which is fed into a GRU to produce the hidden state h. Equation (15) is used to make the final predictions. For all the base models, we all design the corresponding enhanced approaches for comparison.

Evaluation Measures

To fairly evaluate the performance of all the diagnosis prediction approaches, we validate the results from aspects: visit level and code level with the measures precision @k and accuracy @k. ∙Visit-level precision @k is defined as the correct diagnosis codes in top k divided by min(k,|y|), where |y| is the number of category labels in the (t+1)-th visit. ∙ Given a visit V which contains multiple category labels, if the target label is in the top k guesses, then we get 1 and 0 otherwise. Thus, code-level accuracy @k is defined by the number of correct label predictions divided by the total number of label predictions. Visit-level precision @k is used to evaluate the coarse-grained performance, while code-level accuracy @k evaluates the fine-grained performance. For all the measures, the greater values, the better performance. In the experiments, we vary k from 5 to 30.

Implementation Details

We extract the diagnosis code descriptions from ICD9Data.com. All the approaches are implemented with Theano 0.9.0 [40]. We randomly divide the datasets into the training, validation and testing sets in a 0.75:0.10:0.15 ratio. The validation set is used to determine the best values of parameters in the 100 training iterations. For training models, we use Adadelta [41] with a min-batch of 100 patients. The regularization (l2 norm with the coefficient 0.001) is used for all the approaches. In order to fairly compare the performance, we set the same g=128 (i.e., the dimensionality of hidden states) for all the base models and the enhanced approaches except MLP and MLP +. For the proposed approaches on both datasets, the size of word embeddings is 300, the word windows (h’s) are set as 2, 3 and 4, and thus q=3. For each word window, we use m=100 filters. For all the base models, we set d=180 on the MIMIC-III dataset and 150 on the Heart Failure dataset. For GRAM, l is 100.

Results of Diagnosis Prediction

Table 3 shows the visit-level precision of all the base models and their corresponding enhanced approaches, and Table 4 lists the code-level accuracy with different k’s. From these two tables, we can observe that the enhanced diagnosis prediction approaches improve the prediction performance on both the MIMIC-III and Heart Failure datasets.
Table 3

The visit-level precision @k of diagnosis prediction task

Dataset@kMLPMLP +RNNRNN +RNNaRNNa+DipoleDipole +RETAINRETAIN +GRAMGRAM +
MIMIC-III50.69390.71240.66160.71600.65040.70830.65990.70740.68350.7167 0.68850.7132
100.64410.66030.61450.65650.60210.65270.61160.65390.63610.6623 0.64240.6596
150.68120.6926 0.65460.69060.64120.68560.65240.69030.67770.69180.68280.6918
200.74200.7544 0.71990.75110.71090.74550.71590.74830.74030.75010.74340.7513
250.79390.8070 0.77550.80190.76970.80090.77230.80200.79120.80100.79410.8028
300.83570.84600.81860.84560.81420.84450.81690.84530.83350.84450.83770.8468
Heart failure50.44510.49470.48900.51720.49760.51030.49640.51110.37510.51400.53410.5365
100.61220.62060.65850.68790.66750.68170.66890.68290.53780.68280.71230.7159
150.69960.70600.74360.76830.74960.76310.75140.76480.63720.76130.79010.7939
200.76060.76430.80060.82130.80500.81740.80700.81670.70880.81430.84020.8442
250.81000.81400.84250.85930.84530.85600.84760.85570.76550.85330.87610.8789
300.84770.85110.87430.88790.87700.88570.87850.88460.81020.88260.90250.9047

∗ denotes the highest precision among all the approaches on the same k

Table 4

The code-level accuracy @k of diagnosis prediction task

Dataset@kMLPMLP +RNNRNN +RNNaRNNa+DipoleDipole +RETAINRETAIN +GRAMGRAM +
MIMIC-III50.31040.31810.29520.31930.29100.31620.29410.31550.30560.3198 0.30720.3183
100.50400.51380.47960.51110.46930.50850.47670.50860.49800.5160 0.50030.5138
150.62860.63520.60190.63350.58890.62900.59710.63250.62580.6360 0.62670.6348
200.71140.7239 0.68940.71980.68220.71440.68450.71680.71290.72020.71300.7196
250.77540.7852 0.75450.78040.74910.77850.75010.77950.77350.78060.77280.7794
300.82140.8294 0.80400.82790.79870.82690.79900.82800.81980.82860.82200.8283
Heart failure50.45800.51320.55990.59600.56990.58820.56870.58680.40850.58080.61520.6227
100.62660.64120.68350.71690.69200.71090.69530.71050.54600.70420.73930.7455
150.71240.72540.76030.78760.76450.78450.77020.78410.65120.77650.80880.8130
200.77170.78270.81320.83550.81530.83340.82090.83070.71620.82610.85440.8580
250.82060.82830.85160.86980.85320.86730.85800.86550.76840.86220.88720.8902
300.85720.86350.88120.89580.88250.89430.88600.89230.81000.88990.91130.9134

∗ denotes the highest accuracy among all the approaches on the same k

The visit-level precision @k of diagnosis prediction task ∗ denotes the highest precision among all the approaches on the same k The code-level accuracy @k of diagnosis prediction task ∗ denotes the highest accuracy among all the approaches on the same k

Performance Analysis for the MIMIC-III Dataset

On the MIMIC-III dataset, the overall performance of all the enhanced diagnosis prediction approaches is better than that of all the base models. Among all the proposed approaches, RETAIN + and MLP + achieve higher accuracy. MLP + does not use recurrent neural networks and directly predicts the future diagnosis information with the learned visit embedding v. RETAIN + utilizes the context vector which learns from visit-level and code-level attention scores, and the learned visit embeddings to make the final predictions. However, all the remaining proposed approaches use the hidden states outputted from GRUs to predict the next visit information. From the above analysis, we can conclude that directly adding visit embeddings into the final prediction can improve the predictive performance on the MIMIC-III dataset. This is reasonable because the average length of visits is small on the MIMIC-III dataset. The shorter visits may not help the RNN-based models to learn correct hidden states, and thus those methods can not achieve the highest accuracy. This observation can also be found from the performance of all the base models. Compared with the naive base model MLP, the precision or accuracy of all the four RNN-based approaches is lower, including RNN, RNN , Dipole and RETAIN. This again confirms that RNN-based models cannot work well with short sequences. Among all the RNN-based approaches, location-based attention models, RNN and Dipole, perform worse than RNN and RETAIN, which shows that learning attention mechanisms needs abundant EHR data. Compared with RNN, both the precision and accuracy of RETAIN are still higher. This demonstrates that directly using visit embedding in the final prediction may achieve better performance for the datasets with shorter visit sequences. GRAM can achieve comparable performance with the naive base model MLP. It proves that employing external information can compensate for the lack of training EHR data in diagnosis prediction task. Here is an interesting observation: As expected, the performance improves as k increases, except the visit-level accuracy on the MIMIC-III dataset, due to the insufficiency of training data. Compared with the labels with abundant data, they obtain lower probabilities in the predictions. Thus, for the visits containing these labels without sufficient data, the number of correct predictions when k is 10 or 15 may be the same with that when k=5. However, they are divided by a bigger min(k,|y|), which leads to the observation that the average performance is worse than that with k=5.

Performance Analysis for the Heart Failure Dataset

On the Heart Failure dataset, the enhanced approaches still perform better than the corresponding base models, especially GRAM + which achieves much higher accuracy than other approaches. The reason is that GRAM + not only uses medical ontologies to learn robust diagnosis code embeddings, but also employs code descriptions to further improve the performance, which can be validated from the comparison between the performance of GRAM and GRAM +. Among all the approaches, both precision and accuracy of RETAIN are the lowest, which shows that directly using the visit-level embeddings in the final prediction may not work on the Heart Failure dataset, which can also be observed from the performance of MLP. However, taking code descriptions into consideration, the performance enormously increases. When k=5, the visit-level precision and code-level accuracy of RETAIN improve 37% and 42% respectively. The performance of MLP is better than that of RETAIN, but it is still lower than other RNN variants. This illustrates that with complicated EHR datasets, simply using multilayer perceptrons cannot work well. Though learning medical embeddings of diagnosis codes improves the predictive performance, the accuracy of MLP + is still lower than that of most approaches. This directly validates that applying recurrent neural networks to diagnosis prediction task is reasonable. For the two location-based attention approaches, RNN and Dipole, the performance is better than that of RNN, which demonstrates that attention mechanisms can help the models to enhance the predictive ability. Comparison between RNN and Dipole confirms that when the size of visit sequences is big, bidirectional recurrent neural networks can remember more useful information and perform better than one directional recurrent neural networks. Based on all the above analysis, we can safely conclude that learning diagnosis code embeddings with descriptions indeed helps all the state-of-the-art diagnosis prediction approaches to significantly improve the performance on different real world datasets.

Discussions

The main contribution of this work is to incorporate code descriptions to improve the prediction performance of state-of-the-art models. The experimental results on two real datasets confirm the effective of the proposed framework. Next, we further discuss the performance changes with the degree of data sufficiency and the representations leaned by the proposed framework.

Data Sufficiency

In healthcare, it is hard to collect enough EHR data for those rare diseases. In order to validate the sensitivity of all the diagnosis prediction approaches to data sufficiency, the following experiments are conducted on the MIMIC-III dataset. We first calculate the frequency of category labels appeared in the training data, then rank these labels according to the frequency, and finally divide them into four groups: 0-25, 25-50, 50-75 and 75-100. The category labels in group 0-25 are the most rare ones in the training data, while the labels in group 75-100 are the most common ones. We finally compute the average accuracy of labels in each group. The code-level accuracy @20 on the MIMIC-III dataset is shown in Fig. 2. X-axis denotes all the base models and their corresponding enhanced approaches, and Y-axis represents the average accuracy of the approaches.
Fig. 2

Code-Level Accuracy @20 of Diagnosis Prediction on the MIMIC-III Dataset. a 0-25. b 25-50. c 50-75. d 75-100

Code-Level Accuracy @20 of Diagnosis Prediction on the MIMIC-III Dataset. a 0-25. b 25-50. c 50-75. d 75-100 From Fig. 2, we can observe that the accuracy of all the enhanced diagnosis prediction approaches is higher than that of all the base models in the first three groups. Even though MLP and RETAIN achieve higher accuracy compared with RNN, RNN and Dipole as shown in Table 4, the accuracy of both approaches is 0 in group 0-25. However, when generalizing the proposed framework on MLP and RETAIN, they all make some correct predictions for rare diseases. This observation also can be found in groups 25-50 and 50-70. Therefore, this observation validates that considering the medical meanings of diagnosis codes indeed helps existing models to enhance their predictive ability even without sufficient training EHR data. In Fig. 2d, all the labels have sufficient and abundant training EHR data. Thus, all the approaches achieve comparable performance. This result again confirms that the enhanced approaches improve the predictive performance on those rare diseases, i.e., the labels without sufficient training EHR records. Among all the base models, GRAM obtains the highest accuracy in groups 0-25, 25-50 and 50-75, which illustrates the effectiveness of incorporating external medical knowledge. Furthermore, learning medical embeddings with ontologies still improves the predictive accuracy, which can be observed from both Fig. 2 and Table 4.

Interpretable Representation

For diagnosis prediction task, interpreting the learned medical code embeddings is significantly important. Thus, we conduct the following experiments to qualitatively demonstrate the learned representations by all the approaches on the MIMIC-III dataset. W randomly select 2000 diagnosis codes and then plot them on a 2-D space with t-SNE [42] shown in Fig. 3. The color of the dots represents the first disease categories in CCS multi-level hierarchy as [3]. We can observe that except GRAM, the remaining baselines cannot learn interpretable representations. However, after considering the semantic meanings learned from diagnosis code descriptions, all the proposed approaches can learn some interpretable cluster structures in the representations. Especially for GRAM +, it not only maintains the advantages of GRAM, but also improves the prediction accuracy. From Fig. 3, we come to a conclusion that the proposed semantic diagnosis prediction framework is effective and interpretable even when the training EHR data are insufficient.
Fig. 3

t-SNE Scatterplots of Medical Codes Learned by Predictive Models. a MLP. b MLP +. c RNN. d RNN +. e RNN . f RNN +. g Dipole. h Dipole +. i RETAIN. j RETAIN +. k GRAM. l GRAM +

t-SNE Scatterplots of Medical Codes Learned by Predictive Models. a MLP. b MLP +. c RNN. d RNN +. e RNN . f RNN +. g Dipole. h Dipole +. i RETAIN. j RETAIN +. k GRAM. l GRAM +

Conclusions

Diagnosis prediction from EHR data is a challenging yet practical research task in healthcare domain. Most state-of-the-art diagnosis prediction models employ recurrent neural networks to model the sequential patients’ visit records, and exploit attention mechanisms to improve the predictive performance and provide interpretability for the prediction results. However, all the existing models ignore the medical descriptions of diagnosis codes, which are significantly important to diagnosis prediction task, especially when the EHR data are insufficient. In this paper, we propose a novel and effective diagnosis prediction framework, which takes the medical meanings of diagnosis codes into account when predicting patients’ future visit information. The proposed framework includes two basic components: diagnosis code embedding and predictive model. In the diagnosis code embedding component, medical representations of diagnosis codes are learned from their descriptions with a convolutional neural network on top of pre-trained word embeddings. Based on the learned embeddings, the input visit information is embedded into a visit-level vector representation, which is then fed into the predictive model component. In the predictive model component, all the state-of-the-art diagnosis prediction models are redesigned to significantly improve the predictive performance by considering diagnosis code meanings. Experimental results on two real world medical datasets prove the effectiveness and robustness of the proposed framework for diagnosis prediction task. An experiment is designed to illustrate that the enhanced diagnosis prediction approaches outperform all the corresponding state-of-the-art approaches under insufficient EHR data. Finally, the learned medical code representations are visualized to demonstrate the interpretability of the proposed framework.
  7 in total

1.  A Multi-Task Framework for Monitoring Health Conditions via Attention-based Recurrent Neural Networks.

Authors:  Qiuling Suo; Fenglong Ma; Giovanni Canino; Jing Gao; Aidong Zhang; Pierangelo Veltri; Gnasso Agostino
Journal:  AMIA Annu Symp Proc       Date:  2018-04-16

2.  Long short-term memory.

Authors:  S Hochreiter; J Schmidhuber
Journal:  Neural Comput       Date:  1997-11-15       Impact factor: 2.026

Review 3.  Deep learning for healthcare: review, opportunities and challenges.

Authors:  Riccardo Miotto; Fei Wang; Shuang Wang; Xiaoqian Jiang; Joel T Dudley
Journal:  Brief Bioinform       Date:  2018-11-27       Impact factor: 11.622

4.  $\mathtt {Deepr}$: A Convolutional Net for Medical Records.

Authors:  Phuoc Nguyen; Truyen Tran; Nilmini Wickramasinghe; Svetha Venkatesh
Journal:  IEEE J Biomed Health Inform       Date:  2016-12-01       Impact factor: 5.772

5.  Doctor AI: Predicting Clinical Events via Recurrent Neural Networks.

Authors:  Edward Choi; Mohammad Taha Bahadori; Andy Schuetz; Walter F Stewart; Jimeng Sun
Journal:  JMLR Workshop Conf Proc       Date:  2016-12-10

6.  Deep Patient Similarity Learning for Personalized Healthcare.

Authors:  Qiuling Suo; Fenglong Ma; Ye Yuan; Mengdi Huai; Weida Zhong; Jing Gao; Aidong Zhang
Journal:  IEEE Trans Nanobioscience       Date:  2018-05-16       Impact factor: 2.935

7.  MIMIC-III, a freely accessible critical care database.

Authors:  Alistair E W Johnson; Tom J Pollard; Lu Shen; Li-Wei H Lehman; Mengling Feng; Mohammad Ghassemi; Benjamin Moody; Peter Szolovits; Leo Anthony Celi; Roger G Mark
Journal:  Sci Data       Date:  2016-05-24       Impact factor: 6.444

  7 in total
  2 in total

Review 1.  Decision Support Systems in HF based on Deep Learning Technologies.

Authors:  Marco Penso; Sarah Solbiati; Sara Moccia; Enrico G Caiani
Journal:  Curr Heart Fail Rep       Date:  2022-02-10

2.  Violence detection explanation via semantic roles embeddings.

Authors:  Enrico Mensa; Davide Colla; Marco Dalmasso; Marco Giustini; Carlo Mamo; Alessio Pitidis; Daniele P Radicioni
Journal:  BMC Med Inform Decis Mak       Date:  2020-10-15       Impact factor: 2.796

  2 in total

北京卡尤迪生物科技股份有限公司 © 2022-2023.