[Paper Review] Deep Representation for Patient Visits from Electronic Health Records
This paper proposes a supervised deep learning method to learn low-dimensional, clinically meaningful embeddings of patient visits from raw electronic health record (EHR) data—combining free-text notes and structured data—by training a neural network to predict ICD-9 diagnosis chapters. The resulting embeddings capture relevant medical semantics, improve downstream prediction performance (e.g., on ICD coding), and reveal interpretable clinical directions in the embedding space, enabling reuse across multiple clinical tasks without retraining.
We show how to learn low-dimensional representations (embeddings) of patient visits from the corresponding electronic health record (EHR) where International Classification of Diseases (ICD) diagnosis codes are removed. We expect that these embeddings will be useful for the construction of predictive statistical models anticipated to drive personalized medicine and improve healthcare quality. These embeddings are learned using a deep neural network trained to predict ICD diagnosis categories. We show that our embeddings capture relevant clinical informations and can be used directly as input to standard machine learning algorithms like multi-output classifiers for ICD code prediction. We also show that important medical informations correspond to particular directions in our embedding space.
Motivation & Objective
- To develop a generalist, low-dimensional representation of patient visits using raw EHR data, including both structured and free-text components.
- To leverage ICD code prediction as a self-supervised task to learn clinically relevant embeddings without manual feature engineering.
- To demonstrate that the learned embeddings preserve medical semantics and improve performance on downstream predictive tasks.
- To enable reuse of these embeddings across diverse clinical applications, such as cohort selection and disease prediction, reducing computational cost for subsequent models.
- To provide interpretability by identifying specific medical concepts (e.g., sepsis, antibiotic resistance) as directional patterns in the embedding space.
Proposed method
- A deep neural network is trained to predict ICD-9 diagnosis chapters (19 broad categories) from raw EHR inputs, using this task as a proxy for learning meaningful representations.
- The model takes as input both structured EHR data (reduced from 40,000 to 8,000 features via chi-square feature selection) and free-text clinical notes (limited to 2,000 words).
- The network architecture includes dense layers with ReLU activations, and the final encoder layer produces a 448-dimensional embedding vector in ℝ⁴⁴⁸.
- The training objective is multi-class cross-entropy loss over the 19 ICD-9 chapters, enabling the model to learn a shared representation that generalizes across diagnoses.
- Feature selection is automated using chi-square tests, ensuring no expert intervention in the representation learning process.
- Embedding interpretability is evaluated using colinearity analysis between known clinical concepts (e.g., septic shock, autoimmune comorbidities) and vector directions in the embedding space.
Experimental results
Research questions
- RQ1Can a deep neural network learn a low-dimensional, clinically meaningful representation of patient visits directly from raw EHR data without manual feature engineering?
- RQ2Does predicting ICD-9 diagnosis chapters as a self-supervised task lead to embeddings that capture relevant medical semantics and improve downstream prediction performance?
- RQ3Are specific clinical concepts (e.g., sepsis, antibiotic resistance) encoded as interpretable directions in the learned embedding space?
- RQ4Can the same precomputed embedding be reused effectively across multiple downstream tasks, reducing the need for retraining?
- RQ5How does the quality of the embedding compare to using raw EHR features directly in standard machine learning models?
Key findings
- The learned 448-dimensional embeddings significantly improve the performance of a random forest classifier on ICD code prediction compared to using raw EHR features directly.
- The embeddings capture complex clinical concepts such as septic or cardiogenic shock, even though these were not explicitly encoded in the input features, as shown by colinearity analysis.
- Auto-immune comorbidities, which were absent in structured EHR data, were still recoverable in the embedding space, indicating robustness to data sparsity.
- The model successfully organized finer diagnostic concepts within the 19 broad ICD-9 chapters, demonstrating that the representation encodes nuanced clinical semantics despite class imbalance.
- The embedding space reveals interpretable directions corresponding to key medical concepts, validating its clinical relevance and interpretability.
- Precomputing the embeddings enables efficient reuse across multiple downstream tasks, reducing computational cost for subsequent models.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.