Deep learning for temporal data representation in electronic health records: A systematic review of challenges and methodologies

Feng Xie, Han Yuan, Yilin Ning, Marcus Eng Hock Ong, Mengling Feng, Wynne Hsu, Bibhas Chakraborty, Nan Liu

Introduction

Electronic Health Records (EHRs) represent a longitudinal gold mine for clinical prediction. However, the temporal nature of these records—comprising measurements taken over months or years—introduces significant noise and complexity. This systematic review by Xie et al. synthesizes 98 key studies from the last decade to categorize technical hurdles and evaluate state-of-the-art deep learning (DL) architectures designed to extract clinical insights from messy patient data.

The Challenges of EHR Data

Traditional clinical models often "flatten" patient data into simple aggregates, ignoring the critical sequence and timing of medical events. This review identifies four core challenges that necessitate advanced DL approaches:

  • Irregularity: Patient visits occur on an as-needed basis rather than a fixed schedule, leading to varying time intervals.
  • Sparsity: With thousands of possible medical codes but few per patient, data matrices are high-dimensional and mostly empty.
  • Heterogeneity: EHRs combine continuous lab results with categorical diagnosis codes and unstructured notes.
  • Opacity: The "black box" nature of DL models can hinder clinical adoption in high-stakes environments.

Methodological Landscape

The authors analyzed 98 methodological papers published between 2010 and 2020, focusing on how models handle time steps and the specific architectures employed.

Summary of deep learning solutions and clinical applications (2013-2017).

As shown in the table above, early efforts focused on autoencoders and Restricted Boltzmann Machines (RBMs), quickly evolving toward RNNs and LSTMs to handle temporal sequences. Specific innovations like T-LSTM (Time-Aware LSTM) were developed to explicitly model the irregularity of time intervals, while models like RETAIN introduced attention mechanisms for interpretability.

Key Insights: Beyond Simple Prediction

The review highlights several paradigm shifts in how DL interacts with EHR data:

  • Time as a Feature: Models like GRU-D treat the time gap between visits as an informative input rather than noise, capturing "informative missingness" that may signal health changes.
  • Medical Concept Embeddings: Moving beyond binary flags, embeddings (e.g., using Word2vec or Skip-gram) allow models to understand medical relationships, such as the proximity of related diseases in vector space.
  • Attention is for Humans, too: Mechanisms like those in the RETAIN model allow clinicians to see which specific past events triggered a high-risk alert, bridging the gap between performance and trust.
  • Multitask Learning (MTL): Training models on multiple outcomes (e.g., mortality and length of stay) simultaneously often improves robustness and generalization.

The analysis reveals a clear dominance of Recurrent Neural Networks, particularly LSTMs (used in 35 studies), followed by RNNs and CNNs. Data irregularity emerged as the most frequently addressed challenge, reflecting its status as a primary barrier in clinical time-series analysis.

Summary of deep learning solutions and clinical applications (2017-2018).

The field also shows a heavy reliance on the MIMIC-III dataset (used in ~37% of studies), which raises questions about the generalizability of these models to non-ICU settings. Most studies (88/98) relied on a single dataset, highlighting a need for multi-center validation.

Future Directions

While DL has made strides, several hurdles remain. The authors emphasize the need for "ante-hoc" models—those designed to be inherently interpretable—rather than just explaining black boxes after the fact. Furthermore, the integration of structured EHR data with unstructured sources like clinical notes and medical images represents the next frontier in creating a truly holistic view of patient health.

Summary updated

BibTeX
@article{xie2021deep,
  author = {Feng Xie and Han Yuan and Yilin Ning and Marcus Eng Hock Ong and Mengling Feng and Wynne Hsu and Bibhas Chakraborty and Nan Liu},
  title = {{Deep learning for temporal data representation in electronic health records: A systematic review of challenges and methodologies}},
  journal = {J. Biomed. Informatics},
  year = {2021},
  doi = {10.1016/j.jbi.2021.103980},
}
Figure