MedTimeQ: Query-guided fusion of time-series foundation models and LLMs for multi-lead ECG classification
Kiana Taktehrani, Maryam Hosseini, Arash Mohammadi
Key points
From the paper's conclusion- We propose MedTimeQ, a parameter-efficient framework that integrates a lead-aware temporal foundation encoder with an LLM-reprogrammed ECG pathway through gated residual fusion.
Abstract
Accurate classification of medical time series, such as electrocardiograms (ECGs), requires capturing waveform morphology, long-range temporal structure, inter-lead dependencies, and clinical semantics. Existing large language model (LLM)-based approaches often map signal patches directly into the language embedding space, potentially underusing pretrained time-series knowledge and transferring redundant or irrelevant information. We propose MedTimeQ, a parameter-efficient framework that integrates a lead-aware temporal foundation encoder with an LLM-reprogrammed ECG pathway through gated residual fusion. A Query Former uses learned diagnostic queries to select and compress fused representations into informative soft tokens for a frozen LLM. Semantic prototype learning further guides classification through multiple clinical descriptions per category, statistics-based prompt selection, and knowledge distillation. Both foundation backbones remain frozen, limiting training to lightweight interface and classification components. We evaluate MedTimeQ on PTB-XL, Chapman-Shaoxing, and MIT-BIH for recording-level diagnosis, rhythm classification, and heartbeat classification, respectively. MedTimeQ achieves the best performance in 11 of 12 dataset-metric comparisons, with consistent class-balanced gains across all three tasks. On PTB-XL, it achieves 76.93% accuracy and 58.14% macro-F1, exceeding MedTsLLM by 10.08 and 7.07 percentage points, respectively. These results demonstrate the benefits of selectively integrating pretrained temporal representations with clinical language semantics. Code: https://github.com/kkianamm/MedTimeQ
Read the paper
Discussion
Science Skim's AI key points, plus readers' public thoughts
Readers' thoughts
No reader thoughts yet.
Related papers
- LAF-ECG: Multi-Resolution Lead-Aware Fusion of Time-Series and Language Foundation Models for ECG ClassificationarXiv · 2026
- LEAP-LLM: Preserving lead-time structure for question-conditioned ECG interpretationarXiv · 2026
- ECGQuest: Benchmarking and Fine-Tuning Language Models for ElectrocardiographyarXiv · 2026
- Multimodal large language models demonstrate consistently low accuracy for 12-lead electrocardiogram interpretation: a 599-case benchmark studyEuropean Heart Journal · 2026
- Electrocardiogram complexity determines large language model diagnostic accuracy: a pathology-stratified analysis of 599 cases across 22 diagnostic categoriesEuropean Heart Journal · 2026
- IECG: Weakly-Supervised Interpretability-Enhancing Foundation Model for ElectrocardiogramarXiv · 2026