Modeling Patient Health Trajectories with Recurrent Neural Networks

46 concepts43 papers1 proposal

Traditional clinical predictive models often treat patient data as a static snapshot—a single vector of features capturing a patient's state at a specific point in time. However, human health is inherently a trajectory. A diagnosis of a condition today is deeply influenced by the sequence, timing, and context of clinical events that preceded it.

To capture this temporal dimension, a major research direction applies recurrent neural network (RNN) architectures to longitudinal electronic health records (EHRs). By treating a patient's medical history as a chronological sequence of events, these models learn to maintain an evolving digital representation of a patient's health state.

Clinical Histories as Sequential Tokens

The core intuition behind this approach is an analogy to natural language processing: just as a sentence is a sequence of words, a medical history is a sequence of clinical encounters and events. Instead of manually engineering features from a patient's past, researchers use recurrent architectures to process these events sequentially.

In their foundational work on Doctor AI, Edward Choi 0003 et al. demonstrated that Gated Recurrent Units (GRUs) could ingest longitudinal EHR data to predict the entire trajectory of a patient's future clinical events. By embedding medical codes into a continuous space and passing them through recurrent layers, the model maintains a hidden state that updates with each new visit, effectively capturing how past events compound to influence future risks.

[Diagnosis Code] ──> [ Embedding ] ──┐
                                     ▼
[Past Hidden State] ───────────> [ GRU Cell ] ──> [Updated Hidden State] ──> [Future Risk Prediction]

This tokenization strategy allows models to bypass intensive data curation. For instance, J. Deasy et al. showed in Dynamic survival prediction in intensive care units from heterogeneous time series without the need for variable selection or curation that raw, uncurated clinical tokens could be fed directly into an RNN. The network learns to extract the underlying physiological state over time, outperforming traditional clinical scoring systems by adapting to the raw sequence of documentation.

Overcoming Irregularity with Gated States

Clinical sequential data presents unique challenges that standard RNNs struggle to handle, notably the vanishing gradient problem over long histories and the highly irregular spacing between medical events. Gated architectures like GRUs and Long Short-Term Memory (LSTM) networks solve this by using internal gates to regulate the flow of information.

The mathematical gating mechanism allows the network to decide exactly how much historical context to retain and how much new clinical information to integrate at any given step. As explored by Bjoern Eskofier et al. in Predictive Models for Health Deterioration: Understanding Disease Pathways for Personalized Medicine, these gated units maintain a persistent state across sequential observations, making it possible to track slow-moving disease pathways over years.

Furthermore, this sequential framing handles the inherent sparsity of medical records. Rather than requiring a complete matrix of clinical measurements at every possible timestamp, the recurrent state can extrapolate a patient's risk trajectory from sparse, irregularly sampled longitudinal data, an intuition leveraged by Adam Yala et al. in Optimizing risk-based breast cancer screening policies with reinforcement learning to model personalized screening intervals.

To map these complex dependencies across long timelines, the architecture often frames the patient's history as a sequence-to-multi-label classification task. As shown by Jacek M. Bajor et al. in Predicting Medications from Diagnostic Codes with Recurrent Neural Networks, passing a long sequence of diagnostic billing codes through a GRU allows the model to output a joint probability distribution over a broad set of concurrent therapeutic needs, capturing the multi-faceted nature of a patient's health state.

From Static Predictions to Dynamic Interventions

Why does transforming a medical record into an evolving hidden state work so well in practice? The primary advantage is that it enables dynamic assessment. Instead of generating a single, immutable prediction, the model updates its output in real-time as new clinical tokens arrive.

This capability shifts the paradigm from reactive alerting to proactive clinical decision support across several domains:

Ultimately, by moving away from static feature vectors and embracing the sequential nature of clinical data, recurrent temporal modeling allows deep learning architectures to respect the continuity of human physiology and the realities of medical practice.

Key Foundational Work

Opportunities and obstacles for deep learning in biology and medicine (2017) — contributed 1 concept elements to this direction.
Doctor AI: Predicting Clinical Events via Recurrent Neural Networks (2015) — contributed 1 concept elements to this direction.
Speech-based Medical Decision Support in VR using a Deep Neural Network (Demonstration) (2017) — contributed 1 concept elements to this direction.
History & citationVersion 1 · 2026-10-04

Current · Permanent link

View frozen version 1

Cite this direction

Latest version (a living page):

@misc{lacuna_temporal_sequence_modeling_b791b147,
  title = {temporal sequence modeling},
  author = {{Lacuna}},
  howpublished = {Lacuna research direction},
  year = {2026},
  url = {https://lacuna.tiptreesystems.com/direction/temporal-sequence-modeling/rdr_b791b147de004efca0ab9009348568ae},
  note = {Latest version of a living research direction; cite a version for a fixed text. Accessed 2026-11-20},
}

This exact version (version 1, frozen text):

@misc{lacuna_temporal_sequence_modeling_b791b147_v1,
  title = {temporal sequence modeling},
  author = {{Lacuna}},
  howpublished = {Lacuna research direction},
  year = {2026},
  url = {https://lacuna.tiptreesystems.com/direction/temporal-sequence-modeling/rdr_b791b147de004efca0ab9009348568ae/v/1},
  note = {Version 1, frozen 2026-10-04. Accessed 2026-11-20},
}
About

These directions overlap with this one through shared papers.

See something wrong? Report a mistake