Analysis of heart failure patient trajectories using sequence modeling

📅 2025-11-20
📈 Citations: 0
✹ Influential: 0
📄 PDF
đŸ€– AI Summary
Prior clinical prediction studies for heart failure lack systematic ablation analyses of preprocessing pipelines and model architectures. Method: Leveraging a large-scale Swedish EHR cohort, we conduct the first comprehensive ablation study in clinical forecasting—systematically evaluating input tokenization strategies, temporal preprocessing techniques, and architectural choices across six sequential models (including Transformer, Llama-enhanced Transformer++, and Mamba), while integrating multimodal time-series data (diagnoses, vital signs, laboratory tests, medications, and procedures). Results: Llama-enhanced Transformer++ and Mamba achieve superior performance over standard Transformer—despite substantially fewer parameters—demonstrating higher accuracy, better calibration, and greater robustness. Notably, both models surpass the large Transformer’s performance using only 75% of the training data. This work establishes a reproducible benchmark for EHR sequence modeling and provides empirically grounded design principles for lightweight, efficient clinical prediction models.

Technology Category

Machine Learning: Large Multimodal Models (LMMs)Natural Language Processing: (Large) Language ModelsComputer Vision: Large Vision Models

Application Category

Semantics and Knowledge: Data modeling to support human-machine intelligence, including LLMs agents, intelligent system behavior, explanations, and user-friendly interactionsUser Modeling, Personalization and Recommendation: Large Language Models (LLM) for user modeling and recommendationEconomics, Online Markets and Human Computation: Cost models of using LLMs in production systems
📝 Abstract
Transformers have defined the state-of-the-art for clinical prediction tasks involving electronic health records (EHRs). The recently introduced Mamba architecture outperformed an advanced Transformer (Transformer++) based on Llama in handling long context lengths, while using fewer model parameters. Despite the impressive performance of these architectures, a systematic approach to empirically analyze model performance and efficiency under various settings is not well established in the medical domain. The performances of six sequence models were investigated across three architecture classes (Transformers, Transformers++, Mambas) in a large Swedish heart failure (HF) cohort (N = 42820), providing a clinically relevant case study. Patient data included diagnoses, vital signs, laboratories, medications and procedures extracted from in-hospital EHRs. The models were evaluated on three one-year prediction tasks: clinical instability (a readmission phenotype) after initial HF hospitalization, mortality after initial HF hospitalization and mortality after latest hospitalization. Ablations account for modifications of the EHR-based input patient sequence, architectural model configurations, and temporal preprocessing techniques for data collection. Llama achieves the highest predictive discrimination, best calibration, and showed robustness across all tasks, followed by Mambas. Both architectures demonstrate efficient representation learning, with tiny configurations surpassing other large-scaled Transformers. At equal model size, Llama and Mambas achieve superior performance using 25% less training data. This paper presents a first ablation study with systematic design choices for input tokenization, model configuration and temporal data preprocessing. Future model development in clinical prediction tasks using EHRs could build upon this study's recommendation as a starting point.
Problem

Research questions and friction points this paper is trying to address.

Evaluating six sequence models for heart failure patient trajectory prediction
Comparing Transformer, Transformer++, and Mamba architectures on EHR data
Analyzing model performance on clinical instability and mortality predictions
Innovation

Methods, ideas, or system contributions that make the work stand out.

Used Mamba architecture for long EHR sequences
Compared six models across three architecture classes
Conducted ablation study on tokenization and preprocessing
🔎 Similar Papers
No similar papers found.
F
Falk Dippel
Sahlgrenska University Hospital, DiagnosvÀgen 11, Gothenburg, 416 85, Sweden
Y
Yinan Yu
Department of Computer Science and Engineering, Chalmers University of Technology and University of Gothenburg, RÀnnvÀgen 6B, Gothenburg, 412 96, Sweden
A
Annika Rosengren
Department of Molecular and Clinical Medicine, Sahlgrenska Academy, University of Gothenburg, Bruna strÄket 16, Gothenburg, 413 45, Sweden
M
Martin Lindgren
Department of Molecular and Clinical Medicine, Sahlgrenska Academy, University of Gothenburg, Bruna strÄket 16, Gothenburg, 413 45, Sweden
C
Christina E. Lundberg
Department of Food and Nutrition, and Sport Science, Faculty of Education, University of Gothenburg, Box 300, Gothenburg, 405 30, Sweden
E
Erik Aerts
Department of Computer Science and Engineering, Chalmers University of Technology and University of Gothenburg, RÀnnvÀgen 6B, Gothenburg, 412 96, Sweden
M
Martin Adiels
School of Public Health and Community Medicine, Institute of Medicine, Sahlgrenska Academy, University of Gothenburg, Box 453, Gothenburg, 405 30, Sweden
H
Helen Sjöland
Department of Molecular and Clinical Medicine, Sahlgrenska Academy, University of Gothenburg, Bruna strÄket 16, Gothenburg, 413 45, Sweden