Abstract
Predicting future health outcomes from Electronic Medical Records (EMRs) is challenging due to long-term dependencies, irregular timing of hospital visits, and the confounding effects of medical interventions. We present DeepCare, a deep dynamic memory model based on Long Short-Term Memory (LSTM) networks, specifically adapted for medical data. DeepCare introduces time-parameterized forget gates and intervention-aware gates to model disease progression more accurately. Evaluated on large-scale longitudinal data for diabetes and mental health, DeepCare significantly outperforms traditional models in disease prediction, intervention recommendation, and readmission risk assessment.
Introduction
Predicting a patient's future health trajectory is a cornerstone of personalized medicine. However, Electronic Medical Records (EMRs) present significant challenges for standard machine learning models. Medical histories often contain long-term dependencies where past events significantly influence current health. Furthermore, EMR data is episodic with irregular intervals between visits, unlike the uniform sampling found in speech or video. Finally, medical interventions are designed to alter the natural course of a disease, requiring models to distinguish between natural disease progression and treatment effects. Traditional models like Markov Chains often lack the necessary memory, while standard Recurrent Neural Networks (RNNs) struggle with irregular temporal gaps.
Methodology
DeepCare is an end-to-end neural network built upon a modified LSTM architecture designed to handle the complexities of longitudinal EMR data.
The architecture incorporates several key innovations:
- Dynamic Admission Embedding: Discrete diagnosis and procedure codes from each visit are transformed into continuous vectors using an embedding layer. These are pooled to create a fixed-size representation of each admission.
- Time-Parameterized Forget Gates: To address irregular timing, the forget gate is modified to be a function of the elapsed time ($\Delta t$) between visits. This allows the model to learn complex decay or persistence dynamics for different medical conditions.
- Intervention-Aware Gates: Medical interventions are integrated directly into the LSTM gates. Current interventions moderate the output (current health state), while previous interventions influence the forget gate, reflecting the lasting impact of treatments.
- Multiscale Temporal Pooling: The model aggregates health states across multiple time horizons using a "recency attention" scheme to prioritize relevant historical events.
Experimental Setup
The model was evaluated using 12 years of longitudinal data (2002–2013) from a large regional Australian hospital. Two primary cohorts were studied:
- Diabetes Cohort: 7,191 patients with 53,208 admissions, representing chronic disease progression.
- Mental Health Cohort: 6,109 patients with 52,049 admissions, representing a mix of acute and chronic conditions.
Key Insights
DeepCare treats time as a moderator of memory rather than just another input feature. By visualizing "forgetting channels," the researchers discovered that the model learns to distinguish between acute issues that decay rapidly and chronic risks that persist over time. Additionally, the model's input gate was modified to give more weight to unplanned (emergency) admissions, reflecting their higher clinical significance.
Results
DeepCare consistently outperformed baselines including Markov models, plain RNNs, SVMs, and Random Forests across three critical tasks:
- Disease Progression: Achieved a Precision@1 of 66.2% for the diabetes cohort, compared to 55.1% for Markov models.
- Intervention Recommendation: Showed a massive improvement in predicting necessary treatments (e.g., 78.7% vs 35.0% Precision@1 for diabetes).
- Future Risk Prediction: Predicted unplanned readmission within 12 months with an F-score of 79.0%, outperforming plain LSTMs (75.9%) and Random Forests (71.4%).
Conclusion
DeepCare demonstrates the power of tailoring deep learning architectures to the specific nuances of medical data. While the current model relies on discrete codes, future work will focus on incorporating unstructured data such as clinical notes and imaging. Enhancing model interpretability remains a priority for clinical adoption, ensuring that healthcare providers can understand the reasoning behind the model's risk assessments.
Summary updated