Improving Clinical Predictions through Unsupervised Time Series Representation Learning

Xinrui Lyu, Matthias Hüser, Stephanie L. Hyland, George Zerveas, Gunnar RätscharXiv 2018

Abstract

Clinical time series data is abundant, but high-quality labels for specific outcomes are often scarce and expensive to obtain. This paper investigates unsupervised representation learning as a means to generate general-purpose patient summaries from unlabeled Electronic Health Record (EHR) data. We demonstrate that a Sequence-to-Sequence (Seq2Seq) model trained to forecast future physiological states, particularly when augmented with an attention mechanism, produces representations that significantly improve performance on downstream clinical tasks like mortality and discharge prediction, especially in low-data regimes.

Introduction

The proliferation of electronic health records has provided researchers with vast amounts of physiological time series data. However, leveraging this data for clinical prediction tasks remains challenging due to the high cost and scarcity of expert-labeled outcomes. Standard supervised learning models often struggle in these "data-starved" environments and can be brittle when applied across different clinical settings or evolving outcome definitions.

This research explores unsupervised representation learning as a solution. By training models on unlabeled medical time series to perform "pretext tasks"—such as forecasting future patient states—we can generate general-purpose patient summaries (representations) that are highly effective for a variety of downstream clinical predictions.

Methodology: Learning Patient Representations

The core objective is to compress a 12-hour window of high-dimensional patient data (94 variables) into a fixed-size vector that captures the essential physiological state. The researchers evaluated several architectures based on Sequence-to-Sequence (Seq2Seq) models.

Seq2Seq Architectures

The baseline sequential models include the Seq2Seq Autoencoder (S2S-AE), which learns to reconstruct the input sequence, and the Seq2Seq Forecaster (S2S-F), which attempts to predict the subsequent 12 hours of signals. The hypothesis is that forecasting requires a more sophisticated understanding of health trajectories than simple reconstruction.

Architecture of the standard Seq2Seq model used for reconstruction and forecasting tasks.

The primary contribution of this work is the Seq2Seq Forecaster with Attention (S2S-F-A). This model incorporates an attention mechanism, allowing the decoder to selectively "look back" at specific time steps in the input sequence. This helps the model identify critical physiological events, such as a sudden drop in blood pressure, which are highly predictive of future trends.

Proposed Seq2Seq Forecaster with Attention (S2S-F-A) architecture, incorporating an attention mechanism to capture relevant past events.

Experimental Setup

The models were trained and evaluated using the eICU Collaborative Research Database v1.2, containing data from over 20,000 patients across multiple centers. The input consisted of 94 time-series variables, including vitals and laboratory results, resampled to hourly intervals. Once the unsupervised models learned to generate representations, these fixed-size vectors were passed to a simple 1-layer LSTM classifier to predict two key clinical outcomes: In-hospital Mortality and Patient Discharge (within 24 hours).

Key Results and Discussion

Forecasting as a Superior Pretext Task

Models trained to predict the future (S2S-F) consistently outperformed those trained for reconstruction (S2S-AE). This suggests that the forecasting task forces the encoder to extract more meaningful features related to a patient's underlying health trajectory rather than just memorizing past values.

The Power of Attention

The addition of attention (S2S-F-A) provided a measurable boost in performance. For mortality prediction, S2S-F-A achieved an AUROC of 0.89, matching the performance of a deep 3-layer supervised LSTM trained directly on raw signals. For discharge prediction, it achieved an AUPRC of 0.48, surpassing the supervised baseline of 0.438.

Robustness in Data-Scarce Regimes

Perhaps the most impactful result is the model's performance when labeled data is extremely limited. In a scenario where only 1% of the data (approximately 75 patients) was labeled, the unsupervised representations allowed the simple classifier to maintain high accuracy (AUPRC ~0.35 for discharge). In contrast, the performance of a fully supervised model trained from scratch plummeted (AUPRC ~0.25).

Conclusion

Unsupervised representation learning, particularly through forecasting with attention, offers a powerful framework for clinical decision support. It enables the creation of robust patient summaries that are effective even when labels are scarce. Future research could explore alternative loss functions, such as contrastive learning, to further refine these representations and improve clinical awareness.

Summary updated

BibTeX
@misc{lyu2018improving,
  author = {Xinrui Lyu and Matthias Hüser and Stephanie L. Hyland and George Zerveas and Gunnar Rätsch},
  title = {{Improving Clinical Predictions through Unsupervised Time Series Representation Learning}},
  year = {2018},
  eprint = {1812.00490},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1812.00490},
}
Figure