Learning temporal embeddings from electronic health records of chronic kidney disease patients

Summary

This paper investigates the effectiveness of temporal embedding models trained on longitudinal electronic health records (EHRs) for chronic kidney disease (CKD) patients. It demonstrates that a time-aware LSTM (T-LSTM) learns more structured and clinically meaningful representations, and that learning embeddings as an intermediate step significantly improves predictive performance for tasks like in-ICU mortality compared to direct end-to-end models.

Medical Relevance

This work addresses the crucial need for transparent and generalizable representations of patient disease dynamics from EHRs, which can enhance clinical prediction models by moving beyond single-task optimization to support model-guided medicine and improve understanding of complex conditions like CKD.

AI Health Application

The AI application is to develop advanced machine learning models (specifically temporal embedding models) that can extract clinically meaningful, transparent, and task-agnostic representations from complex, longitudinal electronic health records. These representations can then be used to improve the accuracy and generalizability of downstream medical prediction tasks, such as classifying disease stages (e.g., CKD stages) and predicting critical patient outcomes (e.g., in-ICU mortality), thereby supporting 'model-guided medicine' and clinical decision-making.

Key Points

  • The research aims to learn clinically meaningful, transparent, and task-agnostic representations from EHRs using temporal embedding models for CKD patients.
  • Three recurrent architectures were compared: Vanilla LSTM, Attention-augmented LSTM, and Time-aware LSTM (T-LSTM), trained both as embedding models and direct end-to-end predictors.
  • The MIMIC-IV dataset was utilized, focusing specifically on patients diagnosed with chronic kidney disease.
  • Embedding quality was evaluated using CKD stage clustering (Davies-Bouldin Index - DBI) and CKD stage classification accuracy.
  • The T-LSTM model produced superior embeddings, achieving a significantly lower DBI (9.91) and higher CKD stage classification accuracy (0.74) than the other LSTM variants.
  • For in-ICU mortality prediction, embedding models consistently outperformed direct end-to-end predictors, boosting accuracy from 0.72-0.75 to 0.82-0.83.
  • The findings suggest that learning generalizable embeddings as an intermediate step is more effective for both representation quality and downstream predictive performance than direct end-to-end learning.

Methodology

The study trained and evaluated three recurrent neural network architectures (Vanilla LSTM, Attention-augmented LSTM, T-LSTM) on longitudinal electronic health records from CKD patients within the MIMIC-IV dataset. Models were implemented as both embedding generators and direct end-to-end predictors. Embedding quality was quantified using the Davies-Bouldin Index for CKD stage clustering and accuracy for CKD stage classification. Predictive performance was assessed through in-ICU mortality prediction.

Key Findings

The Time-aware LSTM (T-LSTM) significantly outperformed other models in learning structured embeddings, yielding a lower Davies-Bouldin Index (9.91) and higher CKD stage classification accuracy (0.74) compared to Vanilla LSTM (DBI 15.85, accuracy 0.63) and attention-augmented LSTM (DBI 20.72, accuracy 0.67). Furthermore, models trained to learn embeddings as an intermediate step consistently achieved superior in-ICU mortality prediction accuracy (0.82-0.83) than direct end-to-end predictors (0.72-0.75).

Clinical Impact

This research has the potential to improve clinical decision support by providing more accurate and interpretable patient representations for chronic diseases. Better temporal embeddings could lead to enhanced CKD stage classification, more precise risk stratification (e.g., for in-ICU mortality), and facilitate the development of personalized treatment strategies and proactive interventions, thereby contributing to 'model-guided medicine'.

Limitations

Not explicitly detailed in the abstract.

Future Directions

Not explicitly detailed in the abstract.

Medical Domains

Nephrology Critical Care Medicine Clinical Informatics Predictive Analytics

Keywords

temporal embeddings electronic health records chronic kidney disease recurrent neural networks time-aware LSTM representation learning mortality prediction MIMIC-IV

Abstract

We investigate whether temporal embedding models trained on longitudinal electronic health records can learn clinically meaningful representations without compromising predictive performance, and how architectural choices affect embedding quality. Model-guided medicine requires representations that capture disease dynamics while remaining transparent and task agnostic, whereas most clinical prediction models are optimised for a single task. Representation learning facilitates learning embeddings that generalise across downstream tasks, and recurrent architectures are well-suited for modelling temporal structure in observational clinical data. Using the MIMIC-IV dataset, we study patients with chronic kidney disease (CKD) and compare three recurrent architectures: a vanilla LSTM, an attention-augmented LSTM, and a time-aware LSTM (T-LSTM). All models are trained both as embedding models and as direct end-to-end predictors. Embedding quality is evaluated via CKD stage clustering and in-ICU mortality prediction. The T-LSTM produces more structured embeddings, achieving a lower Davies-Bouldin Index (DBI = 9.91) and higher CKD stage classification accuracy (0.74) than the vanilla LSTM (DBI = 15.85, accuracy = 0.63) and attention-augmented LSTM (DBI = 20.72, accuracy = 0.67). For in-ICU mortality prediction, embedding models consistently outperform end-to-end predictors, improving accuracy from 0.72-0.75 to 0.82-0.83, which indicates that learning embeddings as an intermediate step is more effective than direct end-to-end learning.

Comments

7 pages, 3 figures, 3 tables. The paper has been submitted to IEEE EMBC 2026 and copyright might be transferred without notice