On the Importance of Step-wise Embeddings for Heterogeneous Clinical Time-Series

Rita Kuznetsova, Alizée Pace, Manuel Burger, Hugo Yèche, Gunnar Rätsch

TL;DR

While deep learning has revolutionized sequence modeling, traditional tree-based models like LightGBM still dominate clinical time-series tasks due to the extreme heterogeneity of Electronic Health Record (EHR) data. This paper bridges the gap by adapting state-of-the-art tabular deep learning architectures to act as step-wise embedding modules. By grouping features into semantically meaningful medical concepts (like organ systems) before feeding them into sequential backbones, the authors achieve new state-of-the-art results on intensive care unit (ICU) benchmarks while unlocking concept-level interpretability.

What Problem Does This Paper Address?

Predicting patient outcomes in the ICU—such as organ failure or mortality—requires modeling multivariate clinical time-series. However, EHR data is notoriously messy: it contains a mix of continuous vital signs, categorical treatment codes, and sparse lab results collected at irregular intervals.

Standard deep learning approaches typically focus on designing better sequential backbones (like LSTMs or Transformers) or novel loss functions, but they often feed raw or linearly projected feature vectors into these models at each time step. Because these models struggle with severe feature heterogeneity, simple gradient-boosted trees trained on manually engineered global features frequently outperform them. This paper shifts the focus to the input preprocessing stage, investigating how advanced tabular deep learning methods can be used to learn better representations of a patient's state at each individual time step.

Methods

The authors propose a framework that treats each time step in a clinical time-series as an independent tabular data point to generate a robust time-step embedding ($h_t$) before passing it to a sequential backbone (like a GRU or Transformer).

They evaluate two main embedding strategies:

  1. Direct Embedding (D): The entire feature vector at time $t$ is passed directly through an encoder—comparing standard Multi-Layer Perceptrons (MLPs) and ResNets against the more advanced Feature Tokenizer Transformer (FTT).
  2. Feature Grouping (G): Features are partitioned into $K$ distinct semantic groups based on prior clinical knowledge (e.g., grouping by organ systems like circulatory, respiratory, and renal, or by data acquisition type like laboratory values vs. monitored variables).

As illustrated in the pipeline overview below, each group is encoded independently to form a "concept embedding," which is then aggregated using methods like attention-based pooling to form the final time-step representation.

Pipeline overview showing Direct (D) vs Feature Grouping (G) embedding strategies.

Datasets

The approach was validated across multiple clinically relevant tasks using two large-scale, publicly available ICU datasets:

  • HiRID: A high-resolution dataset containing 231 features. Tasks evaluated include circulatory and respiratory failure prediction within a 12-hour window, mortality prediction at 24 hours, remaining length of stay (LoS), and patient phenotyping.
  • MIMIC-III: A widely used benchmark dataset, processed here to extract 18 features. Tasks include decompensation (predicting mortality within the next 24 hours), mortality prediction at 48 hours, and length of stay.

Key Insights and Ideas

  • Tabular Deep Learning Translates to Time-Series Steps: Architectures explicitly designed to handle tabular feature interactions (like the Feature Tokenizer Transformer) serve as highly effective step-wise encoders for sequence models.
  • Clinical Priors Matter: Grouping features by organ systems consistently yields superior performance compared to un-grouped baselines or groupings based purely on data types (e.g., separating lab values from monitored vitals).
  • Data Dimensionality Dictates Embedding Utility: The benefits of feature grouping are highly pronounced in high-dimensional datasets like HiRID (231 features) but diminish in low-dimensional settings like the standard 18-feature MIMIC-III benchmark, where there aren't enough variables per organ system to warrant complex sub-embeddings.
  • Intrinsic Interpretability: Using attention-based aggregation to combine concept embeddings allows researchers to see exactly which organ systems or specific variables drive a prediction at any given hour of a patient's stay.

Key Results

The proposed FTT with organ grouping architecture set a new state-of-the-art across the HiRID benchmark tasks, outperforming both standard deep learning backbones and LightGBM.

For example, on the challenging HiRID Circulatory Failure prediction task:

  • The raw deep learning backbone achieved an Area under the Precision-Recall Curve (AUPRC) of 36.6%.
  • LightGBM achieved 38.8%.
  • The proposed FTT + organ groups model reached 40.6% AUPRC.

Furthermore, the attention mechanism successfully aligned with clinical reality. As shown in the interpretability analysis below, when predicting respiratory failure, the model placed the highest attention weights on the pulmonary organ system and key clinical indicators like fraction of inspired oxygen ($\text{FiO}_2$) and peripheral oxygen saturation ($\text{SpO}_2$).

Interpretability analysis highlighting the importance of pulmonary variables and organ systems in respiratory failure prediction.

Limitations and Future Work

  • Computational Complexity: The Feature Tokenizer Transformer is resource-intensive. Scaling it to datasets with hundreds of features across thousands of time steps significantly increases training time and hardware requirements compared to simple MLPs or tree-based models.
  • Rigid Feature Assignments: The current grouping strategy enforces a "hard split," where each variable belongs to exactly one medical concept. In reality, biological systems overlap, and certain lab values could reasonably indicate the status of multiple organ systems simultaneously. Future work could explore soft-clustering or learned feature groupings.

Summary updated

Abstract

Recent advances in deep learning architectures for sequence modeling have not fully transferred to tasks handling time-series from electronic health records. In particular, in problems related to the Intensive Care Unit (ICU), the state-of-the-art remains to tackle sequence classification in a tabular manner with tree-based methods. Recent findings in deep learning for tabular data are now surpassing these classical methods by better handling the severe heterogeneity of data input features. Given the similar level of feature heterogeneity exhibited by ICU time-series and motivated by these findings, we explore these novel methods' impact on clinical sequence modeling tasks. By jointly using such advances in deep learning for tabular data, our primary objective is to underscore the importance of step-wise embeddings in time-series modeling, which remain unexplored in machine learning methods for clinical data. On a variety of clinically relevant tasks from two large-scale ICU datasets, MIMIC-III and HiRID, our work provides an exhaustive analysis of state-of-the-art methods for tabular time-series as time-step embedding models, showing overall performance improvement. In particular, we evidence the importance of feature grouping in clinical time-series, with significant performance gains when considering features within predefined semantic groups in the step-wise embedding module.
BibTeX
@inproceedings{kuznetsova2023importance,
  author = {Rita Kuznetsova and Alizée Pace and Manuel Burger and Hugo Yèche and Gunnar Rätsch},
  title = {{On the Importance of Step-wise Embeddings for Heterogeneous Clinical Time-Series}},
  booktitle = {ML4H @ NeurIPS},
  year = {2023},
}
Figure