[Paper Review] Attend and Diagnose: Clinical Time Series Analysis using Attention Models
This paper introduces SAnD (Simply Attend and Diagnose), a novel self-attention-based architecture for clinical time-series analysis that replaces recurrent networks with a masked multi-head attention mechanism, incorporating positional encoding and dense interpolation to model temporal order. It achieves state-of-the-art performance across multiple MIMIC-III benchmark tasks, outperforming LSTM-based models and classical baselines in mortality prediction, decompensation detection, length-of-stay forecasting, and phenotyping.
With widespread adoption of electronic health records, there is an increased emphasis for predictive models that can effectively deal with clinical time-series data. Powered by Recurrent Neural Network (RNN) architectures with Long Short-Term Memory (LSTM) units, deep neural networks have achieved state-of-the-art results in several clinical prediction tasks. Despite the success of RNNs, its sequential nature prohibits parallelized computing, thus making it inefficient particularly when processing long sequences. Recently, architectures which are based solely on attention mechanisms have shown remarkable success in transduction tasks in NLP, while being computationally superior. In this paper, for the first time, we utilize attention models for clinical time-series modeling, thereby dispensing recurrence entirely. We develop the extit{SAnD} (Simply Attend and Diagnose) architecture, which employs a masked, self-attention mechanism, and uses positional encoding and dense interpolation strategies for incorporating temporal order. Furthermore, we develop a multi-task variant of extit{SAnD} to jointly infer models with multiple diagnosis tasks. Using the recent MIMIC-III benchmark datasets, we demonstrate that the proposed approach achieves state-of-the-art performance in all tasks, outperforming LSTM models and classical baselines with hand-engineered features.
Motivation & Objective
- To address the computational inefficiency and sequential dependency limitations of RNNs in modeling long clinical time-series.
- To explore whether self-attention mechanisms alone can effectively model clinical sequences without recurrence.
- To incorporate temporal order into attention-based representations using positional encoding and dense interpolation.
- To evaluate the proposed model on standardized MIMIC-III benchmarks across multiple clinical prediction tasks.
- To investigate the effectiveness of multi-task learning with SAnD for joint diagnosis modeling.
Proposed method
- Proposes a masked multi-head self-attention mechanism to enforce causality and model dependencies within a single sequence.
- Integrates positional encoding to preserve relative time-step information in the sequence.
- Employs dense interpolation embedding to handle irregularly sampled clinical time-series data by estimating missing values.
- Uses a residual connection and layer normalization for training stability.
- Applies grid search over hyperparameters (N: number of attention layers, M: dense interpolation factor, r: sequence resolution) to optimize performance.
- Employs multi-task learning with a weighted loss function to jointly optimize for mortality, decompensation, length of stay, and phenotyping.
Experimental results
Research questions
- RQ1Can a self-attention mechanism alone achieve state-of-the-art performance in clinical time-series modeling without recurrence?
- RQ2How effective are positional encoding and dense interpolation in capturing temporal order in irregularly sampled clinical data?
- RQ3Does the SAnD architecture outperform LSTM-based models and hand-engineered feature baselines on standard MIMIC-III benchmarks?
- RQ4Can multi-task learning with SAnD improve generalization and performance across diverse clinical prediction tasks?
- RQ5What hyperparameter settings (e.g., number of layers, interpolation factor) yield optimal performance across different clinical tasks?
Key findings
- SAnD achieves state-of-the-art performance on all four MIMIC-III benchmark tasks: mortality prediction, physiologic decompensation detection, length-of-stay forecasting, and phenotyping.
- For hospital mortality prediction, SAnD achieves an AUROC of 0.892 and AUPRC of 0.587, outperforming the best LSTM baseline.
- In decompensation detection, SAnD achieves an AUROC of 0.856 and AUPRC of 0.421, significantly outperforming prior state-of-the-art methods.
- For length-of-stay prediction, SAnD achieves a Cohen’s weighted kappa of 0.432 and MAPE of 42.1%, surpassing LSTM-based models.
- The multi-task SAnD variant achieves the best performance across all tasks, with improved generalization and reduced overfitting, especially in low-data regimes.
- Optimal hyperparameters vary by task: N=4 and M=12 for mortality; N=1 and M=10 for decompensation; N=3 and M=12 for length of stay; and N=2 with M=36 for phenotyping in multi-task learning.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.