PaperarXiv:2611.29690

MedTimeQ: Query-guided fusion of time-series foundation models and LLMs for multi-lead ECG classification

PreprintDated Nov 22, 2026Added Nov 24, 2026

arXiv preprint (eess.SP), 2026-11-22

TL;DR

MedTimeQ fuses a lead-aware time-series foundation model encoder with an LLM-reprogrammed ECG pathway, then compresses both with a Query Former into soft tokens for a frozen LLM, so only the interface and heads are trained. Across PTB-XL, Chapman-Shaoxing and MIT-BIH it is best in 11 of 12 dataset-metric comparisons. On PTB-XL it reaches 76.93% accuracy and 58.14% macro-F1, 10.08 and 7.07 points above MedTsLLM.

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

Verbatim from arXiv (opens in a new tab) · arXiv metadata (abstracts are released under CC0)

Results on ChatPPG leaderboards

All leaderboards

No results from this paper on ChatPPG leaderboards yet. Browse the leaderboards.

Tasks & signals

Signals

Keywords

LlmTime Series FmQ FormerECG ClassificationPromptingKnowledge DistillationMedtsllm

Datasets used

How it works

How Method works: Setup → Method → TargetSetup: Signals (ecg). Method: Method (Language-aligned).SetupSignals: ecgSignalsecgMethodMethodLanguage-aligned

Cite this paper

Cite this paper with the fields recorded here. Check it against the publisher before submitting.

MedTimeQ: Query-guided fusion of time-series foundation models and LLMs for multi-lead ECG classification. (2026). arXiv preprint. https://arxiv.org/abs/2611.29690
@misc{taktehranimohamm2026medtimeq,
  title         = {{MedTimeQ: Query-guided fusion of time-series foundation models and LLMs for multi-lead ECG classification}},
  year          = {2026},
  howpublished  = {arXiv preprint},
  eprint        = {2611.29690},
  archivePrefix = {arXiv}
}

Source metadata: 2026

Record updated Nov 24, 2026

Added to the ChatPPG research hub