Papers › Zero-Shot ECG Classification with Multimodal Learning and Test-time Clinical Knowledge...

Zero-Shot ECG Classification with Multimodal Learning and Test-time Clinical Knowledge Enhancement

11 Mar 2024arXiv:2403.06659archive 2025-07-28

Che Liu, Zhongwei Wan, Cheng Ouyang, Anand Shah, Wenjia Bai, Rossella Arcucci

Electrocardiograms (ECGs) are non-invasive diagnostic tools crucial for detecting cardiac arrhythmic diseases in clinical practice. While ECG Self-supervised Learning (eSSL) methods show promise in representation learning from unannotated ECG data, they often overlook the clinical knowledge that can be found in reports. This oversight and the requirement for annotated samples for downstream tasks limit eSSL's versatility. In this work, we address these issues with the Multimodal ECG Representation Learning (MERL}) framework. Through multimodal learning on ECG records and associated reports, MERL is capable of performing zero-shot ECG classification with text prompts, eliminating the need for training data in downstream tasks. At test time, we propose the Clinical Knowledge Enhanced Prompt Engineering (CKEPE) approach, which uses Large Language Models (LLMs) to exploit external expert-verified clinical knowledge databases, generating more descriptive prompts and reducing hallucinations in LLM-generated content to boost zero-shot classification. Based on MERL, we perform the first benchmark across six public ECG datasets, showing the superior performance of MERL compared against eSSL methods. Notably, MERL achieves an average AUC score of 75.2% in zero-shot classification (without training data), 3.2% higher than linear probed eSSL methods with 10\% annotated training data, averaged across all six datasets. Code and models are available at https://github.com/cheliu-computation/MERL

PaperPDFCodeCode Syntology ran

In Syntology Open this paper in Syntology's Atlas, the map of the papers in Syntology's graph and their citations.

For agents, Syntology's MCP tool lists every function and class Syntology harvested from this paper and whether it ran (how to connect): get_harvested_code_for_paper(arxiv_id="2403.06659")

Code

Syntology Ran 8 of 12 code samples harvested from 1 repository linked to this paper; 4 have no recorded run. Of those that ran: 8 ran with no contract checked.

By repository: official repository: 12 samples from 1 repository, 8 ran. The run record, sample by sample. “Ran” means executed on a synthesized input, not that the code is correct or reproduces the paper.

cheliu-computation/merl officialmentioned in papermentioned on GitHubpytorchMIT report
cheliu-computation/MERL-ICML2024 mentioned on GitHubpytorchMIT report

Repository list and official/mentioned flags are the archive's, frozen 2025-07-28. Reachability, where shown, is from one Syntology probe window (2026-09-16 to 2026-09-18); repositories not probed show nothing. GitHub stars are not tracked.

Code Syntology ran Syntology

12 samples harvested; 8 ran; 0 honoured the contract we drafted; 4 have no recorded run. Read from Syntology's graph 2026-09-24; that is when this build read the record, not when the samples ran.

8ran
4unverified

Licence: 0 of the 12 samples are pointer only, meaning Syntology does not serve that copy's text. This page shows no code text for any sample; each one links to its file in the repository.

Harvested from cheliu-computation/merl. “Ran” means the sample executed on a synthesized input. It does not mean the output is correct, and nothing here reproduces the paper's results. “Honoured” and “violated” refer to a contract Syntology drafted from the code itself; “our draft was wrong” and “fixture could not drive it” are failures of Syntology's instrument, not of the code.

Each sample ends with its code_sha256, Syntology's identity for that exact code. An agent fetches the stored sample with Syntology's MCP tool get_code(code_sha256="…") (how to connect); click an identity to copy that call.

Repository labels, per sample. official repository: The archive marks this repository official for the paper. named in the paper: The archive records that the paper mentions this repository; it is not marked official. community (archive-listed): In the archive's code links for this paper, not marked official and not recorded as mentioned in the paper. found in paper text by Syntology: Syntology found this repository in the paper's own text; whether it is the authors' implementation is not asserted. community: Not in the archive's code links for this paper; a community repository Syntology harvested. Samples from a repository marked official are listed first. Licence labels name the repository's licence as recorded at harvest. “Pointer only” means Syntology does not serve that copy's text, for one of four reasons: no licence file was found; the licence was not identified; the licence is recorded as permissive but that copy's record is not marked cleared; or the licence is outside the permissive list Syntology serves text under (MIT, Apache-2.0, BSD and similar). Some licences outside that list permit redistribution, such as WTFPL, and GPL-3.0 under its conditions; they are simply not on the list. Hover a licence label for the reason. File links open the file on GitHub at the default branch, which may have changed since the harvest.

ResNet18 cheliu-computation/merl/finetune/models/resnet1d.py official repository ran MIT (permissive) · 6d247f814f9a7559 · report
ResNet34 cheliu-computation/merl/finetune/models/resnet1d.py official repository ran MIT (permissive) · 4d972ff40178697e · report
ResNet50 cheliu-computation/merl/finetune/models/resnet1d.py official repository ran MIT (permissive) · 73b458636b1bb0bd · report
compute_AUCs cheliu-computation/merl/utils/zeroshot_val.py official repository ran MIT (permissive) · be1231d1e98a796f · report
get_class_emd cheliu-computation/merl/utils/zeroshot_val.py official repository ran MIT (permissive) · 5f4556f64c743109 · report
get_ecg_emd cheliu-computation/merl/utils/zeroshot_val.py official repository ran MIT (permissive) · 7f500d29d602d34e · report
infer cheliu-computation/merl/finetune/main_single.py official repository ran MIT (permissive) · 9eaf55ea5bb1d3ba · report
precision_at_k cheliu-computation/merl/utils/utils_loss.py official repository ran MIT (permissive) · e5487ec054cd281e · report
clip_loss cheliu-computation/merl/utils/utils_loss.py official repository unverified MIT (permissive) · 19c632192cb40d5c · report
vit_middle cheliu-computation/merl/finetune/models/vit1d.py official repository unverified MIT (permissive) · 42fddfcd0b5f7db0 · report
vit_small cheliu-computation/merl/finetune/models/vit1d.py official repository unverified MIT (permissive) · b86b9766958f2e32 · report
vit_tiny cheliu-computation/merl/finetune/models/vit1d.py official repository unverified MIT (permissive) · 5bc84c9b81db6507 · report

Tasks

Clinical KnowledgeDescriptiveDiagnosticECG ClassificationPrompt EngineeringRepresentation LearningSelf-Supervised LearningZero-Shot Learning

1 archive task tag without a task page not shown.

Results from the paper archive 2025-07-28

No leaderboard rows for this paper in the archive.

Methods

MAMLMeRL

Report a problem or propose a change · a person checks every report against the paper or source before anything changes; decisions are listed on /corrections