anyECG-chat: A Generalist ECG-MLLM for Flexible ECG Input and Multi-Task Understanding

Haitao Li, Ziyu Li, Yiheng Mao, Ziyi Liu, Zhoujian Sun +1 more
6/1/2025
cs.CLcs.AIeess.SP

Official code: CuCl-2/anyECG-chat (19 stars, last commit 2026-02-23).

Abstract

The advent of multimodal large language models (MLLMs) has sparked interest in their application to electrocardiogram (ECG) analysis. However, existing ECG-focused MLLMs primarily focus on report generation tasks, often limited to single 12-lead, short-duration (10s) ECG inputs, thereby underutilizing the potential of MLLMs. To this end, we aim to develop a MLLM for ECG analysis that supports a broader range of tasks and more flexible ECG inputs. However, existing ECG-QA datasets are often monotonous. To address this gap, we first constructed the anyECG dataset, which encompasses a wide variety of tasks, including report generation, abnormal waveform localization, and open-ended question answering. In addition to standard hospital ECGs, we introduced long-duration reduced-lead ECGs for home environments and multiple ECG comparison scenarios commonly encountered in clinical practice. Furthermore, we propose the anyECG-chat model, which supports dynamic-length ECG inputs and multiple ECG inputs. We trained the model using a three-stage curriculum training recipe with the anyECG dataset. A comprehensive evaluation was conducted, demonstrating that anyECG-chat is capable of supporting various practical application scenarios, including not only common report generation tasks but also abnormal waveform localization for long-duration reduced-lead ECGs in home environments and comprehensive comparative analysis of multiple ECGs. Our code and data are available at: https://github.com/CuCl-2/anyECG-chat.

View on arXivView PDF

Code Implementations(1)

CuCl-2/anyECG-chatOfficial100%

[AAAI2026]anyECG-chat: A Generalist ECG-MLLM for Flexible ECG Input and Multi-Task Understanding

191Shell, PythonJul 8, 20258 months ago

Similar Papers

Cite this paper

@article{li2025anyecgchat,
  title  = {anyECG-chat: A Generalist ECG-MLLM for Flexible ECG Input and Multi-Task Understanding},
  author = {Haitao Li and Ziyu Li and Yiheng Mao and Ziyi Liu and Zhoujian Sun and Zhengxing Huang},
  year   = {2025},
  eprint = {2506.00942},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2506.00942v2}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2506.00942.svg)](https://codeofpaper.com/paper/2506.00942)

Discussion