No Imputation Needed: A Switch Approach to Irregularly Sampled Time Series

Rohit Agarwal, Aman Sinha, Ayan Vishwakarma, Xavier Coubez, Marianne Clausel, Mathieu Constant, Dilip K. Prasad, Alexander Horsch · DOI

Abstract

Modeling irregularly-sampled time series (ISTS) is challenging because of missing values. Most existing methods focus on handling ISTS by converting irregularly sampled data into regularly sampled data via imputation. These models assume an underlying missing mechanism, which may lead to unwanted bias and sub-optimal performance. We present SLAN (Switch LSTM Aggregate Network), which utilizes a group of LSTMs to model ISTS without imputation, eliminating the assumption of any underlying process. It dynamically adapts its architecture on the fly based on the measured sensors using switches. SLAN exploits the irregularity information to explicitly capture each sensor's local summary and maintains a global summary state throughout the observational period. We demonstrate the efficacy of SLAN on two public datasets, namely, MIMIC-III, and Physionet 2012.

Introduction

In real-world clinical environments like Intensive Care Units (ICUs), physiological data is rarely collected on a regular schedule. A patient's heart rate might be monitored continuously, while blood pH or glucose levels are tested only every few hours. This results in Irregularly Sampled Time Series (ISTS).

Standard machine learning models typically require a regular grid where every variable is measured at every time step. To accommodate this, researchers often rely on imputation—mathematically estimating missing values using means, forward-filling, or complex interpolation. However, imputation can introduce artificial noise and unwanted distribution shifts, potentially leading to biased clinical decisions. SLAN (Switch LSTM Aggregate Network) addresses this by modeling these messy, gappy sequences directly, without the need for data imputation.

Methodology

SLAN is built upon a dynamic architecture that processes sensor data only when it is available, avoiding the pitfalls of "filling in" missing steps. The architecture consists of three primary components:

  1. The Switch Layer: Instead of a single monolithic model, SLAN maintains a pack of LSTMs, with one dedicated to each sensor (e.g., heart rate, glucose). When a sensor provides a measurement at time $t$, its specific switch flips "on," and its corresponding LSTM is updated. Otherwise, the LSTM remains inactive.
  2. Global & Local Summaries: To ensure sensors share information, SLAN maintains a Global Summary State. Every time an LSTM is activated, its output is aggregated into a global pool shared back to all LSTMs at the next step. Simultaneously, each sensor maintains its own Local Summary State to track its specific history.
  3. Time-Decay Mechanism: Because the interval between measurements varies, SLAN employs a trainable time-decay function powered by Time2Vec. This allows the model to adjust the importance of a previous measurement based on the elapsed time since the last update.
The SLAN architecture (a) utilizes a switch layer to activate sensor-specific LSTM blocks (b) only when measurements are present.

Experimental Setup

The model was evaluated on two gold-standard clinical datasets for in-hospital mortality prediction:

  • MIMIC-III (M-3): Contains 17 physiological variables from ICU stays.
  • PhysioNet 2012 (P-12): Features 37 time-series variables and 6 static features.

Both datasets are characterized by high imbalance and extreme sparsity, providing a rigorous test for ISTS modeling.

Results and Discussion

SLAN consistently outperformed both imputation-based and non-imputation baselines, such as GRU-D, SeFT, and Raindrop. On the PhysioNet 2012 dataset, SLAN achieved an AUPRC of 55.20, significantly higher than the next best model, SeFT (50.69).

Robustness to Data Loss

A key finding is SLAN's resilience to extreme sparsity. When researchers intentionally dropped an additional 75% of the already sparse data, SLAN’s performance degraded much more gracefully than the leading imputation-based model, IPNets. This suggests that the model effectively learns from "informative missingness"—the timing of a measurement often carries as much signal as the value itself.

SLAN maintains higher AUPRC compared to IPNets as the percentage of dropped observations increases across both datasets.

Feature Importance

Interestingly, sampling frequency does not always correlate with importance. An attention-based ablation study revealed that in MIMIC-III, pH levels were the most critical for mortality prediction, despite being sampled far less frequently than heart rate.

Conclusion

SLAN demonstrates that imputation is not a prerequisite for high-performance ISTS modeling. By utilizing a switch-based architecture and time-decay mechanisms, the model achieves state-of-the-art results while remaining robust to data loss. Future work will focus on adapting SLAN for forecasting tasks and integrating multi-modal data, such as unstructured clinical notes, to provide a more comprehensive view of patient health.

Summary updated

BibTeX
@inproceedings{agarwal2023no,
  author = {Rohit Agarwal and Aman Sinha and Ayan Vishwakarma and Xavier Coubez and Marianne Clausel and Mathieu Constant and Dilip K. Prasad and Alexander Horsch},
  title = {{No Imputation Needed: A Switch Approach to Irregularly Sampled Time Series}},
  booktitle = {TS4H @ NeurIPS},
  year = {2023},
  doi = {10.48550/arxiv.2309.08698},
}
Figure