TL;DR
HeartcareGPT is a unified multimodal large language model suite designed specifically for electrocardiogram (ECG) interpretation. By introducing a structure-aware discrete tokenizer and a dual-stream alignment paradigm, it successfully models both raw temporal ECG signals and waveform images simultaneously. The framework achieves state-of-the-art performance across diverse clinical tasks, bridging the gap between physiological signals and medical language models.
What Problem Does This Paper Address?
Electrocardiograms (ECGs) are the cornerstone of cardiovascular diagnosis, but they present a unique challenge for modern medical AI. Unlike standard medical images (like X-rays), an ECG possesses a dual nature: it is both a raw temporal signal (capturing dynamic cardiac electrical activity across multiple leads) and a visual waveform image (reflecting spatial morphology).
Existing Medical Multimodal Large Language Models (Med-MLLMs) are predominantly vision-centric. When applied to ECGs, they typically process only the waveform images, completely ignoring critical temporal features like precise intervals, inter-lead phase relationships, and beat-to-beat variations. Furthermore, mainstream ECG datasets are annotated only at a global classification level (e.g., labeling a rhythm as "atrial fibrillation"), lacking the step-wise, instruction-style supervision required to train models capable of deep clinical reasoning and question-answering.
Methods
To solve these challenges, the authors developed HeartcareGPT, which relies on two novel architectural components:
- Bidirectional ECG Abstract Tokenization (Beat): Continuous, high-frequency ECG signals cannot be directly fed into an LLM. The authors designed Beat, a structure-aware tokenizer that maps continuous signals into discrete token sequences. It utilizes Dual-level Vector Quantization (DVQ) to compress the signal while preserving rhythmic and structural dependencies, alongside Query-guided Bidirectional Diffusion (QBD) to support both signal reconstruction and future segment prediction.
- Dual Stream Projection Alignment (DSPA): To prevent parameter interference between different modalities in the shallow layers of the model, DSPA uses separate, decoupled expert projection layers for sequential signal features ($\mathcal{F}_\mathcal{S}$) and visual image features ($\mathcal{F}_\mathcal{V}$). These are projected into a shared language space and concatenated with text tokens into a single sequence for unified autoregressive modeling.
The model is trained using a three-stage pipeline: tokenization training for Beat, a multimodal warm-up phase to align projection layers via a captioning task, and final joint end-to-end instruction fine-tuning.
Datasets
The authors introduced a comprehensive data and evaluation ecosystem:
- Heartcare-400K: A large-scale, fine-grained multimodal ECG instruction dataset. It combines digital signals from the public PTB-XL dataset with 12,170 high-quality clinical ECG report PDFs from top hospitals. A custom data engine called HeartAgent uses GPT-4 to convert these heterogeneous sources into structured QA pairs spanning four understanding tasks and a signal prediction task.
- Heartcare-Bench: A multidimensional benchmark evaluating models across five major task types (Closed-QA, Open-QA, Comparison-QA, Report Generation, and Signal Prediction). It features three subsets based on input modality: Signal-based (S), Image-based (I), and Cross-Modal comparison (C).
Key Insights and Ideas
- Signals and Images are Complementary: Treating an ECG purely as an image throws away fine-grained temporal data. Conversely, treating it purely as a 1D signal loses the spatial layout benefits of standard clinical visualizations. Modeling both simultaneously yields substantial performance gains.
- Physiological Signals as a Language: By tokenizing continuous waveforms into discrete codebook vectors, physiological signals can be treated exactly like text tokens, allowing LLMs to perform cross-modal joint reasoning natively.
- Warming Up Projections is Essential: Ablation studies revealed that jumping straight to joint fine-tuning causes a severe drop in diagnostic accuracy. Pre-training the projection layers during a "warm-up" phase stabilizes the shared feature space before the LLM weights are unfrozen.
Key Results
HeartcareGPT significantly outperforms both generalist models (such as Qwen2.5-VL and GPT-5) and specialized medical models (like LLaVA-Med and Lingshu-7B):
- Closed-QA Accuracy: HeartcareGPT-7B achieved a state-of-the-art average accuracy of 83.42% across Heartcare-Bench subsets, compared to just 32.67% for Qwen2.5-VL-7B and 27.75% for LLaVA-Med.
- Clinical Report Generation: The model demonstrated superior clinical accuracy and reliability, outperforming baselines on specialized metrics like F1-Rad.
- Expert Evaluation: In a blind review of 400 sampled cases by ten board-certified cardiologists, HeartcareGPT was overwhelmingly chosen as the top-performing model, securing 40% of first-choice selections in Open-QA and 21% in Report Generation, far surpassing the 7–15% baseline range.
Limitations and Future Work
While HeartcareGPT marks a major milestone, the authors note that automated evaluation metrics (like GPT-based scoring) still occasionally penalize the model for stylistic and formatting variations rather than actual clinical inaccuracies. Additionally, while this work establishes a robust methodological foundation for ECGs, extending this dual-stream paradigm to other continuous physiological signal domains (such as EEG or PPG) remains an open area for future research.
Summary updated