Introduction
Predicting patient risk from Electronic Health Records (EHRs) presents significant challenges due to the high dimensionality and inherent temporality of medical data. EHRs typically contain thousands of unique codes for diagnoses, medications, and lab tests, leading to sparse datasets. Moreover, the chronological order of medical events is crucial; for instance, a specific medication following a diagnosis provides a stronger clinical signal than either event alone. While traditional "Bag-of-Words" models ignore event ordering and recurrent models like LSTMs may fail to capture short-term local "motifs," this paper proposes a framework that treats EHR entries as words in a sentence to better capture these patterns.
Methodology
The proposed framework utilizes a two-stage deep learning pipeline consisting of medical feature embedding followed by a multi-scale 1D Convolutional Neural Network (CNN).
Medical Feature Embedding
The authors adapt the Word2Vec (Continuous Bag-of-Words) model to the medical domain. By treating a patient's chronological sequence of medical events as a "sentence," discrete ICD-9 codes and medications are mapped into a dense, 200-dimensional vector space. This unsupervised learning phase allows the model to capture semantic relationships, where medically similar events (e.g., different insulin types) are positioned closely in the embedding space.
1D Convolutional Neural Network
The embedded sequences are processed by a CNN designed for temporal data. Unlike 2D CNNs used in computer vision, this model employs 1D convolutions that slide across the time axis. Multi-scale filters (e.g., lengths of 3, 4, and 5 events) are used to capture dependencies of varying durations. A max-pooling operation then extracts the most salient features, creating a fixed-size representation regardless of the patient's record length.
Experimental Results
The study evaluated the model using a private EHR dataset comprising over 218,000 patients and 14,690 unique medical events. The focus was on binary classification for Congestive Heart Failure and Diabetes.
The CNN model with Word2Vec (W2V) embeddings consistently outperformed traditional baselines such as Logistic Regression (LR), Support Vector Machines (SVM), and Random Forests (RF). For Heart Failure, the CNN+W2V model achieved an AUROC of 0.9329, compared to 0.8652 for the LR baseline. For Diabetes, the model reached an AUROC of 0.9989.
Furthermore, the model demonstrated strong early prediction capabilities. When tested on data from 180 days prior to diagnosis, the system maintained an AUROC of approximately 0.90 for heart failure, suggesting significant potential for clinical early-warning systems.
Discussion and Conclusion
The success of this approach highlights two key insights: medical events derive meaning from their context, and CNNs are highly effective at identifying local temporal "motifs" indicative of disease risk. Notably, the learned embeddings improved the performance of all models, including traditional baselines, proving the value of dense representations over raw medical codes.
Future work will address limitations such as irregular time gaps between visits and the need for better model interpretability. Despite these challenges, the combination of medical embeddings and multi-scale CNNs represents a significant step forward in automated disease risk prediction.
Summary updated