Organizations: Cybersecurity and Intelligent Systems Engineering, Concordia University, Montreal, Canada · Novatek International Network of Corporation, Montreal, Canada
Automated electrocardiogram (ECG) interpretation has advanced substantially with deep learning, yet many methods remain task-specific and label-dependent. Large language models (LLMs) and time-series foundation models (TSFMs) offer complementary pretrained representations, but integrating them is challenging because of mismatched feature spaces and the lead- and scale-dependent structure of ECG signals. We propose LAF-ECG (Lead-Aware Foundation Fusion for ECG), a dual-foundation framework that extends MedTsLLM with a lead-aware interface to a frozen TSFM backbone while retaining its reprogramming pathway. The proposed framework captures multi-resolution temporal context, fuses temporal and language-aligned ECG representations through adaptive residual integration, and employs branch-specific supervision with cross-branch alignment. LAF-ECG achieves 71.10% accuracy and 62.43% macro-F1 on PTB-XL, and 89.73% accuracy and 65.94% macro-F1 on Chapman-Shaoxing, outperforming MedTsLLM on both datasets. These results highlight the value of preserving lead-specific temporal structure when combining temporal and language foundation representations for ECG classification. The code is publicly available at https://github.com/kkianamm/LAF-ECG.
Figures & tables
Figure 1: Overview of the proposed LAF-ECG architecture, including the MedTsLLM reprogramming branch, lead-aware temporal foundation pathway, multi-resolution temporal context, and adaptive residual token fusion.
Method
Acc.
F1
Prec.
Rec.
PTB-XL
GPT4TS [ 10 ]
57.58
40.83
48.23
40.68
PatchTST [ 11 ]
63.47
49.19
52.12
47.78
OpenTSLM [ 12 ]
65.79
41.52
44.61
40.55
MedTsLLM [ 4 ]
66.85
51.07
54.20
49.85
GEM [ 13 ]
69.88
51.32
54.18
49.49
Table 1: Classification performance on PTB-XL and Chapman–Shaoxing.
Electrocardiogram classification uses machine learning to identify heart rhythms and cardiac conditions from ECG waveforms for screening, diagnosis, and monitoring.