Knowledge-Guided Cross-Modal Fusion for Adult-to-Pediatric ECG Transfer via Label-Conditioned Contrastive Alignment

arXiv cs.LG Papers

Summary

Proposes PEACE, a knowledge-guided framework for transferring adult ECG interpretation to pediatric populations using label-conditioned contrastive alignment, achieving significant improvements under limited supervision.

arXiv:2607.15928v1 Announce Type: new Abstract: Adult and pediatric electrocardiogram (ECG) interpretation relies on age-sensitive criteria, and models pretrained mainly on adult ECGs often transfer poorly to pediatric populations when pediatric labels are scarce. Existing multimodal ECG--text methods typically align waveforms and text at the global sample level, entangling evidence from co-occurring diagnoses and limiting transfer under this gap. We propose Pediatric-Adult ECG Alignment via Cross-modal Enhancement (PEACE), a knowledge-guided framework pretrained on the largely adult MIMIC-IV ECG corpus. PEACE describes each diagnosis along rhythm, morphology, and ST--T axes and, per recording, composes only positive-label descriptors into three axis tokens and a fused embedding. A label query network (LQN) uses diagnostic labels as queries to cross-attend over ECG tokens and axis tokens, while label set aware bidirectional contrastive learning (LSBC) aligns pooled ECG features with the fused embedding when recordings share diagnoses. Curriculum adaptive fusion (CAF) gates alignment strength according to smoothed classification loss and training progress, limiting disruption during early optimization. The knowledge branch is used only for training supervision; inference uses ECG signals alone. On ZZU-pECG, PEACE reaches macro average AUCs of 59.39%, 81.74%, and 91.56% under zero-shot, 50-shot, and full fine-tuning, with the clearest gains over foundation and knowledge-pretraining baselines under limited supervision; versus domain adaptation initializations, zero-shot improves substantially while 50-shot AUC is comparable to DANN. After fine-tuning on PTB-XL, PEACE reaches 96.90% macro average AUC over nine harmonized labels. Ablations confirm that label-conditioned knowledge alignment, rather than global text fusion, is the key driver of pediatric transfer gains.
Original Article
View Cached Full Text

Cached at: 07/20/26, 09:31 AM

# Knowledge-Guided Cross-Modal Fusion for Adult-to-Pediatric ECG Transfer via Label-Conditioned Contrastive Alignment
Source: [https://arxiv.org/html/2607.15928](https://arxiv.org/html/2607.15928)
\\fnmark

\[1\]\\creditConceptualization, Methodology, Software, Writing \- original draft

\\fnmark

\[1\]\\creditMethodology, Investigation, Writing \- review & editing

\\credit

Investigation, Validation

\\credit

Data curation, Validation

\\credit

Supervision, Resources

\\credit

Resources, Supervision

\\cormark

\[1\]\\creditConceptualization, Supervision, Funding acquisition, Writing \- review & editing

1\]organization=School of Instrument Science and Engineering, Southeast University, city=Nanjing, postcode=210096, country=China

2\]organization=Nanjing Medical University, city=Nanjing, postcode=211166, country=China

3\]organization=Zhengzhou University, city=Zhengzhou, postcode=450001, country=China

\\cortext

\[1\]Corresponding author

\\fntext

\[1\]Xinran Liu and Yuwen Li contributed equally to this work\.

Yuwen LiHongxiang GaoHeyang XuJianqing LiZongmin WangChengyu Liuchengyu@seu\.edu\.cn\[\[\[

###### Abstract

Adult and pediatric electrocardiogram \(ECG\) interpretation relies on age\-sensitive criteria, and models pretrained mainly on adult ECGs often transfer poorly to pediatric populations when pediatric labels are scarce\. Existing multimodal ECG–text methods typically align waveforms and text at the global sample level, entangling evidence from co\-occurring diagnoses and limiting transfer under this gap\. We propose Pediatric\-Adult ECG Alignment via Cross\-modal Enhancement \(PEACE\), a knowledge\-guided framework pretrained on the largely adult MIMIC\-IV ECG corpus\. PEACE describes each diagnosis along rhythm, morphology, and ST–T axes and, per recording, composes only positive\-label descriptors into three axis tokens and a fused embedding\. A label query network \(LQN\) uses diagnostic labels as queries to cross\-attend over ECG tokens and axis tokens, while label set aware bidirectional contrastive learning \(LSBC\) aligns pooled ECG features with the fused embedding when recordings share diagnoses\. Curriculum adaptive fusion \(CAF\) gates alignment strength according to smoothed classification loss and training progress, limiting disruption during early optimization\. The knowledge branch is used only for training supervision; inference uses ECG signals alone\. On ZZU\-pECG, PEACE reaches macro average AUCs of 59\.39%, 81\.74%, and 91\.56% under zero\-shot, 50\-shot, and full fine\-tuning, with the clearest gains over foundation and knowledge\-pretraining baselines under limited supervision; versus domain adaptation initializations, zero\-shot improves substantially while 50\-shot AUC is comparable to DANN\. After fine\-tuning on PTB\-XL, PEACE reaches 96\.90% macro average AUC over nine harmonized labels\. Ablations confirm that label\-conditioned knowledge alignment, rather than global text fusion, is the key driver of pediatric transfer gains\.

###### keywords:

Electrocardiogram\\seppediatric diagnosis\\septransfer learning\\sepprivileged information\\sepstructured clinical knowledge

## 1Introduction

Adult and pediatric ECG interpretation depends on age sensitive physiological criteria\. Models pretrained predominantly on adult ECGs may therefore encode decision boundaries that transfer imperfectly to pediatric populations, particularly when pediatric supervision is limited\. We refer to this mismatch as a transfer gap from adult to pediatric populations involving both data distribution and diagnostic criteria: normal heart rate ranges, PR/QRS/QT interval thresholds, voltage criteria, conduction patterns, and repolarization norms vary substantially across pediatric age bands, so adult derived boundaries can misclassify normal pediatric variants as pathological or under\-detect genuine pediatric abnormalities\[ribeiro2020automatic,children12010025,chen2024congenital\]\. The gap is compounded by data scarcity: adult ECG datasets now contain hundreds of thousands to millions of recordings, whereas pediatric ECG cohorts remain much smaller and rarely provide paired free text interpretations for every tracing\[Gow2023MIMICIVECG,2025zzu\_pecg\]\. Structured diagnostic knowledge may provide an additional supervisory signal for mitigating this transfer gap, even when fully age specific pediatric knowledge is unavailable\[2024KED,MERL\]\.

Existing ECG representation learning and multimodal ECG and text models provide useful adult domain priors\[chen2023srecg,ECGLM\_Sci2024,2024KED\], but most align waveforms and text through global sample level embeddings or require clinical knowledge at test time\. Such designs are less suited to pediatric transfer for two reasons\. First, multi\-label ECG recordings often contain concurrent findings, so a global embedding cannot distinguish whether the transferable evidence arises from rhythm irregularity, QRS morphology, voltage criteria, or ST–T repolarization\. Second, pediatric deployment cannot assume the availability of paired reports or auxiliary text input at inference\. A useful fusion mechanism should therefore exploit knowledge guided supervision during training while preserving inference using only ECG signals\.

To mitigate this transfer gap, we propose PEACE, a knowledge guided cross modal fusion framework for ECG transfer from adult to pediatric domains\. Label specific descriptors of general diagnostic structure along rhythm, morphology, and ST–T serve as privileged supervision used only during training; they are not fully age specific pediatric criteria\. Positive label descriptors are composed into three axis tokens and a fused embedding; an LQN uses label queries over ECG and axis tokens; LSBC aligns pooled ECG features with the fused embedding when recordings share diagnostic labels; and CAF gates alignment strength during early optimization\. Inference uses ECG signals alone\.

We validate PEACE on ZZU\-pECG\[2025zzu\_pecg\], which contains 11,643 children, and on PTB\-XL\[Wagner2020PTBXL\], which is predominantly adult with nine harmonized labels that have nonzero mapped incidence; dataset details are in Section[4\.1](https://arxiv.org/html/2607.15928#S4.SS1)\. Beyond macro average AUC, we report threshold dependent metrics, per class results in Table[5](https://arxiv.org/html/2607.15928#S5.T5), ablations, and qualitative Grad\-CAM\+\+ maps for inspecting model focus\.

Taken together, this study asks whether structured clinical knowledge conditioned on labels can mitigate the transfer gap from adult to pediatric populations beyond domain adaptation initializations, global multimodal alignment, and naive ECG and text fusion, while retaining deployment time prediction using only ECG signals\.

The primary contributions are summarized as follows:

- •Knowledge guided ECG transfer from adult to pediatric domains\.We formulate pediatric ECG adaptation as privileged knowledge guided learning, in which structured diagnostic descriptors provide auxiliary supervision during transfer from adult to pediatric domains while inference uses ECG signals alone\.
- •Label conditioned representation and alignment of clinical knowledge\.We organize diagnostic knowledge along rhythm, morphology, and ST–T axes, compose positive label descriptors per recording, probe ECG and axis tokens with label queries in LQN, and align pooled ECG features with the fused embedding via LSBC when recordings share diagnostic labels\.
- •Curriculum gated optimization under pediatric label scarcity\.CAF progressively regulates knowledge guided alignment according to smoothed classification loss level and curriculum progress, supporting zero\-shot, few\-shot, and full fine\-tuning transfer without introducing auxiliary text or knowledge inputs during deployment\.

![Refer to caption](https://arxiv.org/html/2607.15928v1/figures/PEACE_717.png)Figure 1:Overview of PEACE\. Solid paths denote training and inference; dashed paths and the knowledge branch are used only during training, while deployment uses ECG signals alone\. Positive label descriptors yield three axis tokens and a fused embedding for LSBC; labels serve as queries over ECG and text in two cross attention rounds within LQN\. LSBC uses sample pair similarities under a shared label mask and is regulated by CAF; see Section[3\.4](https://arxiv.org/html/2607.15928#S3.SS4)\.
## 2Related Work

### 2\.1ECG Representation Learning

ECG analysis evolved from foundational convolutional neural network \(CNN\) and recurrent neural network \(RNN\) architectures\[Kiranyaz,YILDIRIM,CHEN\]to attention based Transformer paradigms\[transformer,2024ECGformer\]\. Masked reconstruction and related self supervised objectives have also been explored for ECG waveforms, including masked auto encoding frameworks\[STMEM\]\. These methods provide strong waveform encoders, but they do not specify how label level clinical semantics should be fused when transferring from adult to pediatric ECGs\. This motivates cross modal supervision that is more structured than standard waveform pretraining alone\.

### 2\.2Multimodal ECG and Text Alignment

Early ECG and text integration relied on feature concatenation or late fusion\[lalam2023ecg\], while later work uses attention based or contrastive global alignment\[2024KED,Li2025ECGFounder,wang2022medclip\]\. Global sample level fusion does not indicate which waveform evidence supports which co occurring label\[gliner2025clinically\]\. PEACE instead uses label queries over ECG tokens and three axis privileged text tokens in LQN, and aligns pooled waveforms with a fused privileged embedding composed from each recording’s positive labels in LSBC\.

### 2\.3Label Semantics and Label set aware Contrastive Learning

Contrastive learning pulls related samples together and separates unrelated ones\. In medical and multi\-label settings, prior work uses diagnostic hierarchies\[9874526,NEURIPS2023\_d74f9efa\], multi task objectives\[hou2023mtdiag\], and bidirectional or group wise alignment\[BiG\]\. Labels can index clinically organized evidence without a full ontology at deployment, yet most methods still use global embeddings or labels only to define pairs\. Collapsing rhythm, morphology, and ST–T evidence before label conditioned interaction further risks entanglement under multi\-label ECG classification\.

Our LSBC objective follows supervised contrastive learning in spirit\[khosla2020supervised\], but adapts it to multi\-label ECG and knowledge transfer: positives share at least one diagnosis in the batch; the text side is a privileged embedding from three axis descriptors of positive labels rather than unpaired free text at test time; and CAF gates alignment intensity\. Label level waveform probing is handled by LQN; LSBC provides sample level ECG and knowledge alignment under that curriculum\.

### 2\.4Adult to pediatric transfer and domain adaptation

Pediatric ECG criteria differ from adult ones in rate, intervals, voltage, conduction, and repolarization\[children12010025,Heart2005\], limiting transfer from adult corpora\[Gow2023MIMICIVECG,PMID:37879933\]\. Prior work explores masked pretraining\[STMEM\], self supervised alignment\[MERL\], knowledge injection\[tang2026interpretable\], prompting\[wang2025ecg\], language supervision\[zhou2025diagnosis\], and generic domain adaptation\[HE2023119711,FAN2025126824,long2015learning\]\. Our target is pediatric, strongly shifted, and label scarce: PEACE combines knowledge alignment conditioned on labels with curriculum gated optimization rather than global alignment alone\[xu2025multimodal,liu2025knowledge\]\.

## 3Methodology

### 3\.1Overview

The PEACE framework targets age related waveform morphology shift between adult and pediatric ECGs\. As illustrated in Figure[1](https://arxiv.org/html/2607.15928#S1.F1), adult ECG pretraining provides the source domain initialization, while diagnostic labels provide two forms of supervision: multi\-label classification targets and knowledge descriptors conditioned on labels\. PEACE structures its components around complementary aspects of ECG interpretation: label query probing of ECG and three axis knowledge tokens through LQN, label set aware ECG and knowledge contrastive alignment through LSBC, and curriculum gated optimization through CAF\. The knowledge branch is used only during training and is discarded at inference\.

Notation\.Batch size, ECG token length, and label count areBB,TT, andCC; latent width isd=768d=768\. The ECG encoder outputs𝑿ecg∈ℝB×T×d\\boldsymbol\{X\}\_\{\\mathrm\{ecg\}\}\\in\\mathbb\{R\}^\{B\\times T\\times d\}; global pooling yields𝑿¯ecg∈ℝB×d\\bar\{\\boldsymbol\{X\}\}\_\{\\mathrm\{ecg\}\}\\in\\mathbb\{R\}^\{B\\times d\}\. Fixed class\-name embeddings are𝒁lbl∈ℝC×d\\boldsymbol\{Z\}\_\{\\mathrm\{lbl\}\}\\in\\mathbb\{R\}^\{C\\times d\}\. For recordingii, the three axis encodings are stacked as𝑿iaxis∈ℝ3×d\\boldsymbol\{X\}\_\{i\}^\{\\mathrm\{axis\}\}\\in\\mathbb\{R\}^\{3\\times d\}for LQN, and fused to𝒙irep∈ℝd\\boldsymbol\{x\}\_\{i\}^\{\\mathrm\{rep\}\}\\in\\mathbb\{R\}^\{d\}for LSBC; see Section[3\.2](https://arxiv.org/html/2607.15928#S3.SS2)\. We writeAttn​\(𝒒,𝑲\)\\mathrm\{Attn\}\(\\boldsymbol\{q\},\\boldsymbol\{K\}\)for multi\-head cross attention with query𝒒\\boldsymbol\{q\}and key/value sequence𝑲\\boldsymbol\{K\}, andLN​\(⋅\)\\mathrm\{LN\}\(\\cdot\)for layer normalization\. LSBC uses temperatureτ\\tauand cosine similarity

sim​\(𝒖,𝒗\)=𝒖⊤​𝒗‖𝒖‖2​‖𝒗‖2\.\\mathrm\{sim\}\(\\boldsymbol\{u\},\\boldsymbol\{v\}\)=\\frac\{\\boldsymbol\{u\}^\{\\top\}\\boldsymbol\{v\}\}\{\\\|\\boldsymbol\{u\}\\\|\_\{2\}\\\|\\boldsymbol\{v\}\\\|\_\{2\}\}\.\(1\)

### 3\.2Multimodal encoders

ECG Encoder\.We use theresnet1d\_wangmodel intorch\_ecg, a 1D ResNet\[resnetwang\], to map 12\-lead ECGs to token features𝑿ecg∈ℝB×T×d\\boldsymbol\{X\}\_\{\\mathrm\{ecg\}\}\\in\\mathbb\{R\}^\{B\\times T\\times d\}\. Each token corresponds to a temporally indexed latent representation with a receptive field spanning local morphology and longer\-range dynamics\. Global average pooling yields

𝑿¯ecg=1T​∑t=1T𝑿ecg​\[:,t,:\]∈ℝB×d,\\bar\{\\boldsymbol\{X\}\}\_\{\\mathrm\{ecg\}\}=\\frac\{1\}\{T\}\\sum\_\{t=1\}^\{T\}\\boldsymbol\{X\}\_\{\\mathrm\{ecg\}\}\[:,t,:\]\\in\\mathbb\{R\}^\{B\\times d\},\(2\)while the full token sequence is retained for LQN cross attention with label queries\.

Knowledge composition conditioned on labels\.For each diagnostic classcc, Gemini produces a fixed three axis descriptor along rhythm, morphology, and ST–T repolarization axes; see Appendix[A](https://arxiv.org/html/2607.15928#A1)\. The generation schema types the third axis asischemia:; we treat it as ST–T repolarization throughout, covering ST–T, QT, strain, and secondary repolarization rather than coronary ischemia alone\. These strings form a reusable class level bank𝒟=\{𝒟c\}c=1C\\mathcal\{D\}=\\\{\\mathcal\{D\}\_\{c\}\\\}\_\{c=1\}^\{C\}and are complementary evidence streams rather than mutually exclusive disease categories\. Critically, PEACE does*not*broadcast a fullC×3C\\times 3token tensor into every sample\. For recordingiiwith multi hot labels𝐲i∈\{0,1\}C\\mathbf\{y\}\_\{i\}\\in\\\{0,1\\\}^\{C\}, only positive label descriptors are activated,

𝒯i=compose​\(\{𝒟c:yi,c=1\}\),\\mathcal\{T\}\_\{i\}=\\mathrm\{compose\}\\\!\\left\(\\\{\\mathcal\{D\}\_\{c\}:y\_\{i,c\}=1\\\}\\right\),\(3\)wherecompose\\mathrm\{compose\}concatenates the selected class descriptors into one privileged string that is re\-segmented into the three axis fields, so multi\-label positives enrich each axis span rather than producing3×\|positives\|3\\times\|\\mathrm\{positives\}\|LQN tokens\. For all reported PEACE experiments, only these composed class descriptors were used as privileged text; MIMIC\-IV free text diagnostic statements were not concatenated into the knowledge branch\. The three axis spans are encoded separately with BioClinicalBERT\[2019bert\], yielding

𝑿iaxis=stack​\(𝒙irhythm,𝒙imorph,𝒙iSTT\)∈ℝ3×d\.\\boldsymbol\{X\}\_\{i\}^\{\\mathrm\{axis\}\}=\\mathrm\{stack\}\\\!\\left\(\\boldsymbol\{x\}\_\{i\}^\{\\mathrm\{rhythm\}\},\\,\\boldsymbol\{x\}\_\{i\}^\{\\mathrm\{morph\}\},\\,\\boldsymbol\{x\}\_\{i\}^\{\\mathrm\{STT\}\}\\right\)\\in\\mathbb\{R\}^\{3\\times d\}\.\(4\)These tokens are the knowledge side key and value memory for LQN\. A lightweight fusion module that concatenates the axis tokens and applies an MLP by default summarizes them for LSBC,

𝒙irep=Fuse​\(𝒙irhythm,𝒙imorph,𝒙iSTT\)∈ℝd,\\boldsymbol\{x\}\_\{i\}^\{\\mathrm\{rep\}\}=\\mathrm\{Fuse\}\\\!\\left\(\\boldsymbol\{x\}\_\{i\}^\{\\mathrm\{rhythm\}\},\\,\\boldsymbol\{x\}\_\{i\}^\{\\mathrm\{morph\}\},\\,\\boldsymbol\{x\}\_\{i\}^\{\\mathrm\{STT\}\}\\right\)\\in\\mathbb\{R\}^\{d\},\(5\)yielding𝑿rep∈ℝB×d\\boldsymbol\{X\}\_\{\\mathrm\{rep\}\}\\in\\mathbb\{R\}^\{B\\times d\}\. ZZU\-pECG lacks paired reports; fine\-tuning composes the same fixed bank from pediatric multi hot labels\.

Descriptor generation and verification\.For each diagnostic label, Gemini was queried with a fixed instruction template whose stem asks the model to act as a professional electrocardiologist and to teach diagnosis of<LABEL\>from 12\-lead ECG in fewer than 50 words, together with an explicit three axis output schemarhythm: …; morphology: …; ischemia: …, see Appendix[A](https://arxiv.org/html/2607.15928#A1)\. Generated candidates were manually reviewed by members of the author team against the cited AHA/ACCF/HRS recommendations\[surawicz2009aha,rautaharju2009ecg\_iv\]and standard clinical ECG terminology; inconsistent, ambiguous, or non\-standard descriptors were revised or regenerated\. No formal dual annotator agreement study was conducted\. The final descriptor set was fixed across all experiments\.

Label embeddings\.Each diagnostic class name is encoded once with BioClinicalBERT to obtain𝒁lbl∈ℝC×d\\boldsymbol\{Z\}\_\{\\mathrm\{lbl\}\}\\in\\mathbb\{R\}^\{C\\times d\}\. A three\-layer MLP preserves widthd=768d=768on text features\. LQN and prediction heads operate at this shared width\.

### 3\.3Label Query Network: task\-steered feature probing

Standard representations often suffer fromfeature entanglementin multi\-label scenarios, where markers for different pathologies overlap in a single vector\. The LQN resolves this by using each diagnostic label embedding as a query and running two cross attention rounds: one over ECG tokens and one over the three privileged axis tokens\.

For each labelc∈\{1,…,C\}c\\in\\\{1,\\dots,C\\\}and recordingi∈\{1,…,B\}i\\in\\\{1,\\dots,B\\\},

𝒛¯i,cecg=LN​\(Attn​\(𝒁lbl​\[c,:\],𝑿ecg​\[i,:,:\]\)\)∈ℝd,𝒛¯i,crep=LN​\(Attn​\(𝒁lbl​\[c,:\],𝑿iaxis\)\)∈ℝd,\\begin\{split\}\\bar\{\\boldsymbol\{z\}\}\_\{i,c\}^\{\\mathrm\{ecg\}\}&=\\mathrm\{LN\}\\\!\\left\(\\mathrm\{Attn\}\\\!\\left\(\\boldsymbol\{Z\}\_\{\\mathrm\{lbl\}\}\[c,:\],\\,\\boldsymbol\{X\}\_\{\\mathrm\{ecg\}\}\[i,:,:\]\\right\)\\right\)\\in\\mathbb\{R\}^\{d\},\\\\ \\bar\{\\boldsymbol\{z\}\}\_\{i,c\}^\{\\mathrm\{rep\}\}&=\\mathrm\{LN\}\\\!\\left\(\\mathrm\{Attn\}\\\!\\left\(\\boldsymbol\{Z\}\_\{\\mathrm\{lbl\}\}\[c,:\],\\,\\boldsymbol\{X\}\_\{i\}^\{\\mathrm\{axis\}\}\\right\)\\right\)\\in\\mathbb\{R\}^\{d\},\\end\{split\}\(6\)where𝒁lbl​\[c,:\]\\boldsymbol\{Z\}\_\{\\mathrm\{lbl\}\}\[c,:\]is the query and the second argument supplies keys and values\. ECG keys and values use one token per time step; knowledge keys and values use the three axis tokens in𝑿iaxis\\boldsymbol\{X\}\_\{i\}^\{\\mathrm\{axis\}\}, so rhythm, morphology, and ST–T structure is preserved inside LQN rather than collapsed before attention\. A two\-layer MLP maps each of𝒛¯i,cecg\\bar\{\\boldsymbol\{z\}\}\_\{i,c\}^\{\\mathrm\{ecg\}\}and𝒛¯i,crep\\bar\{\\boldsymbol\{z\}\}\_\{i,c\}^\{\\mathrm\{rep\}\}to a binary logit for labelcc, yielding the ECG and knowledge branch multi\-label lossesℒce,ecg\\mathcal\{L\}\_\{\\mathrm\{ce,ecg\}\}andℒce,rep\\mathcal\{L\}\_\{\\mathrm\{ce,rep\}\}\. The fused vector𝒙irep\\boldsymbol\{x\}\_\{i\}^\{\\mathrm\{rep\}\}is reserved for LSBC; see Section[3\.4](https://arxiv.org/html/2607.15928#S3.SS4)\.

### 3\.4Label set aware Bidirectional Contrastive Learning \(LSBC\)

LSBCaligns pooled ECG features with fused privileged knowledge when recordings share diagnostic labels\. Let𝐘∈\{0,1\}B×C\\mathbf\{Y\}\\in\\\{0,1\\\}^\{B\\times C\}be the batch label matrix and define the sample pair positive mask

Mi​j=𝕀​\(\(𝐘𝐘⊤\)i​j\>0\),M\_\{ij\}=\\mathbb\{I\}\\\!\\left\(\(\\mathbf\{Y\}\\mathbf\{Y\}^\{\\top\}\)\_\{ij\}\>0\\right\),\(7\)That is, recordingsiiandjjshare at least one positive diagnosis, and the diagonal is retained\. With temperatureτ\\tauand similaritiesSi​j=sim​\(𝑿¯ecg​\[i,:\],𝒙jrep\)/τS\_\{ij\}=\\mathrm\{sim\}\(\\bar\{\\boldsymbol\{X\}\}\_\{\\mathrm\{ecg\}\}\[i,:\],\\boldsymbol\{x\}\_\{j\}^\{\\mathrm\{rep\}\}\)/\\tau, the bidirectional InfoNCE style objective is

ℒLSBC=12​B​∑i=1B\[−log⁡∑jMi​j​eSi​j∑keSi​k−log⁡∑jMj​i​eSj​i∑keSk​i\]\.\\mathcal\{L\}\_\{\\mathrm\{LSBC\}\}=\\frac\{1\}\{2B\}\\sum\_\{i=1\}^\{B\}\\Bigg\[\-\\log\\frac\{\\sum\_\{j\}M\_\{ij\}\\,e^\{S\_\{ij\}\}\}\{\\sum\_\{k\}e^\{S\_\{ik\}\}\}\-\\log\\frac\{\\sum\_\{j\}M\_\{ji\}\\,e^\{S\_\{ji\}\}\}\{\\sum\_\{k\}e^\{S\_\{ki\}\}\}\\Bigg\]\.\(8\)Positives are therefore label set aware rather than restricted to a single paired index, while negatives are batch members that share no active label with the anchor\. We useτ=0\.055\\tau=0\.055in MIMIC\-IV pretraining andτ=0\.06\\tau=0\.06in ZZU fine\-tuning\.

### 3\.5Curriculum Adaptive Fusion: gated optimization

CAF combines an EMA\-based loss level gate, a staged curriculum coefficient, and an easy positive fraction to regulate the effective LSBC weight\. An exponential moving averageEMAs\\mathrm\{EMA\}\_\{s\}of the multi\-label classification lossℒce,s\\mathcal\{L\}\_\{\\mathrm\{ce\},s\}is tracked at optimization stepss,

EMAs=\(1−γ\)​EMAs−1\+γ​ℒce,s,\\mathrm\{EMA\}\_\{s\}=\(1\-\\gamma\)\\mathrm\{EMA\}\_\{s\-1\}\+\\gamma\\mathcal\{L\}\_\{\\mathrm\{ce\},s\},\(9\)with fixed decayγ=0\.05\\gamma=0\.05\. LSBC is enabled only when this smoothed loss has fallen to or below a fixed thresholdε\\varepsilon, which acts as a loss level gate on the absolute EMA value:

wLSBC,s=λmax⋅βt⋅rseasy⋅𝕀​\(EMAs≤ε\),w\_\{\\mathrm\{LSBC\},s\}=\\lambda\_\{\\max\}\\cdot\\beta\_\{t\}\\cdot r^\{\\mathrm\{easy\}\}\_\{s\}\\cdot\\mathbb\{I\}\\\!\\left\(\\mathrm\{EMA\}\_\{s\}\\leq\\varepsilon\\right\),\(10\)whereλmax\\lambda\_\{\\max\}is the maximum LSBC coefficient,𝕀​\[⋅\]\\mathbb\{I\}\[\\cdot\]is the indicator function, andrseasyr^\{\\mathrm\{easy\}\}\_\{s\}is computed from ECG\-branch predictions as the fraction of positive label instances in the current batch whose predicted probability exceeds0\.650\.65; it is set to zero when the batch has no positives\. Lett∈\[0,1\]t\\in\[0,1\]denote curriculum progress as the epoch fraction; it sets the schedule coefficient

βt=\{0\.1−0\.1⋅t0\.3,t∈\[0,0\.3\),0\.3⋅t−0\.30\.4,t∈\[0\.3,0\.7\),0\.3\+0\.7⋅t−0\.70\.3,t∈\[0\.7,1\]\.\\beta\_\{t\}=\\begin\{cases\}0\.1\-0\.1\\cdot\\frac\{t\}\{0\.3\},&t\\in\[0,0\.3\),\\\\ 0\.3\\cdot\\frac\{t\-0\.3\}\{0\.4\},&t\\in\[0\.3,0\.7\),\\\\ 0\.3\+0\.7\\cdot\\frac\{t\-0\.7\}\{0\.3\},&t\\in\[0\.7,1\]\.\\end\{cases\}\(11\)The first stage keeps alignment inactive or weak, depending on whetherEMAs\\mathrm\{EMA\}\_\{s\}has yet crossedε\\varepsilon, while the curriculum coefficient decays toward zero\. The second stage re\-introduces alignment once the loss level gate opens, and the final stage progressively strengthens it\. Sensitivity of the default\[0\.3,0\.7\]\[0\.3,0\.7\]breakpoints is reported in Table[4](https://arxiv.org/html/2607.15928#S4.T4)\.

### 3\.6Final Training Objective

PEACE mixes multi\-label classification and curriculum weighted LSBC as

ℒ=\(1−wLSBC,s\)​ℒce\+wLSBC,s​ℒLSBC,\\mathcal\{L\}=\\bigl\(1\-w\_\{\\mathrm\{LSBC\},s\}\\bigr\)\\mathcal\{L\}\_\{\\mathrm\{ce\}\}\+w\_\{\\mathrm\{LSBC\},s\}\\,\\mathcal\{L\}\_\{\\mathrm\{LSBC\}\},\(12\)whereℒce=α​ℒce,ecg\+\(1−α\)​ℒce,rep\\mathcal\{L\}\_\{\\mathrm\{ce\}\}=\\alpha\\mathcal\{L\}\_\{\\mathrm\{ce,ecg\}\}\+\(1\-\\alpha\)\\mathcal\{L\}\_\{\\mathrm\{ce,rep\}\}mixes the ECG and knowledge branch multi\-label losses from LQN\. Because the privileged text is composed from the training labels,ℒce,rep\\mathcal\{L\}\_\{\\mathrm\{ce,rep\}\}is used as privileged descriptor side supervision rather than as a test time diagnostic head\. The mix weight isα\\alpha, set to0\.650\.65in MIMIC\-IV pretraining via the loss\_ratio hyperparameter, andwLSBC,sw\_\{\\mathrm\{LSBC\},s\}already includesλmax\\lambda\_\{\\max\}, which is0\.120\.12in MIMIC\-IV pretraining and0\.150\.15in ZZU full fine\-tuning\. BecausewLSBC,s≤λmax≤0\.15w\_\{\\mathrm\{LSBC\},s\}\\leq\\lambda\_\{\\max\}\\leq 0\.15, the classification term retains at least85%85\\%of its nominal coefficient throughout training\. No text and single text controls quantify gains from structured knowledge content beyond training using only ECG signals\.

## 4Experiments

### 4\.1Datasets

The PEACE model is pretrained on MIMIC\-IV\[Gow2023MIMICIVECG\], a comprehensive adult ECG dataset comprising over 800,000 records\. Evaluation is conducted on two target domains: pediatric ZZU\-pECG\[2025zzu\_pecg\], ages 0 to 14, and PTB\-XL\[Wagner2020PTBXL\], which is predominantly adult with only a small pediatric subset\.

Preprocessing and harmonization\.All ECGs were standardized to 10\-s, 12\-lead signals at 500 Hz\. For MIMIC\-IV\-ECG, free text diagnostic statements were mapped to the unified twelve label ontology after removing low quality or missing annotation records\. For ZZU\-pECG, database provided diagnostic codes were converted to the same ontology, and waveforms were filtered using a 0\.5 to 100 Hz band\-pass filter and a 50 Hz notch filter, followed by amplitude normalization using statistics computed from the MIMIC\-IV\-ECG training split\. For PTB\-XL, Standard Communications Protocol \(SCP\) codes were harmonized to the same ontology and signals were standardized using training set scaling before patient level splitting\.

ZZU\-pECG contains 11,643 children in the released database\. After filtering and label mapping, we retained 7,593 valid ECG records for experiments, corresponding to 9,198 label instances due to multi\-label annotation\. Records are partitioned into training, validation, and test folds by patient identifier under multi\-label stratification\.

For PTB\-XL evaluation after supervised fine\-tuning, SCP codes are harmonized to the same twelve label ontology; under our mapping, nine labels have nonzero mapped incidence: normal ECG \(NORM\), complete right bundle branch block \(CRBBB\), incomplete right bundle branch block \(IRBBB\), left anterior fascicular block \(LAFB\), left atrial enlargement \(LAO/LAE\), right atrial enlargement \(RAO/RAE\), left ventricular hypertrophy \(LVH\), right ventricular hypertrophy \(RVH\), and ST–T changes \(STTC\), totaling 17,818 label instances in the processed corpus\. T\-wave abnormality \(*TAB\_*\), low QRS voltage \(LVOLT\), and long QT syndrome \(LQTS\) have zero mapped PTB\-XL instances and are excluded from the PTB\-XL macro average so the headline metric is not averaged over absent heads\. Excluding these three labels means the PTB\-XL macro average AUC is not directly comparable in scope to the twelve label ZZU\-pECG evaluation\. It should be interpreted as evaluation on a predominantly adult public corpus with a small pediatric fraction over a subset of shared pathophysiological categories, rather than a full replication of the pediatric label space\.

The harmonized cohorts exhibit severe label imbalance and cross\-dataset prevalence shift: for example,*TAB\_*is frequent in ZZU\-pECG with 2,544 label instances but has no mapped support in PTB\-XL under our harmonization, whereas STTC remains represented in all three cohorts\.

Class level descriptors𝒟c\\mathcal\{D\}\_\{c\}follow the same bank used in training; see Appendix[A](https://arxiv.org/html/2607.15928#A1)\. Deployment uses the ECG branch alone\.

### 4\.2Experimental Settings

#### Architecture and Optimization\.

We adopt the 1D ResNet ECG encoder of Wang et al\.\[resnetwang\]with latent widthd=768d=768, stem kernel 7, and residual kernels\[5,3\]\[5,3\]\. Inputs are of size12×100012\\times 1000, corresponding to 10\-s, 12\-lead signals at 500 Hz after temporal downsampling by 5\. The text encoder is BioClinicalBERT with 12 transformer layers\. Following the released configs, MIMIC\-IV pretraining and ZZU full fine\-tuning freeze encoder layers\{0,…,8\}\\\{0,\\ldots,8\\\}, nine layers in total, whereas the 50\-shot ZZU adaptation path freezes\{0,…,9\}\\\{0,\\ldots,9\\\}, ten layers in total; unfrozen text layers, projection heads, the ECG encoder, and the LQN are trained\. Optimization uses AdamW with cosine annealing and class\-balanced loss weighting\.

#### Optimization hyperparameters\.

MIMIC\-IV pretraining uses AdamW withβ1=0\.9\\beta\_\{1\}=0\.9,β2=0\.999\\beta\_\{2\}=0\.999, weight decay1\.2×10−31\.2\\times 10^\{\-3\}, initial learning rate4×10−44\\times 10^\{\-4\}, 5\-epoch linear warmup from1×10−51\\times 10^\{\-5\}, cosine decay to1×10−61\\times 10^\{\-6\}over the remaining 95 epochs, batch size10241024, and gradient clipping at 5\.0, withτ=0\.055\\tau=0\.055,λmax=0\.12\\lambda\_\{\\max\}=0\.12, andε=0\.09\\varepsilon=0\.09\. ZZU full fine\-tuning usesτ=0\.06\\tau=0\.06,λmax=0\.15\\lambda\_\{\\max\}=0\.15,ε=0\.1\\varepsilon=0\.1, and learning rate1×10−41\\times 10^\{\-4\}for 20 epochs\. CAF uses the EMA loss level gate above withγ=0\.05\\gamma=0\.05\.

#### Transfer Learning Regimes\.

We evaluate PEACE under three clinical deployment scenarios\.

#### Zero\-shot Transfer\.

The pretrained model remains frozen; AUC is computed from prediction scores, while validation\-selected thresholds are used only for threshold dependent metrics\. Because the frozen checkpoint and evaluation procedure involve no stochastic components at test time, zero\-shot AUC is identical across the five seed labels used elsewhere for fine\-tuning variability, and is reported as a single deterministic value rather than mean±\\pmstd\.

#### Few\-shot Adaptation\.

For each of theC=12C=12labels, we sample up to 50 positive training instances, using all available positives if fewer than 50, and concatenate the selections into a training multiset of 600 entries\. A recording selected for multiple labels may therefore appear more than once, preserving the per label shot budget\. Accordingly, the 600 entries are label conditioned selections rather than 600 necessarily unique recordings\. Fine\-tuning runs for 20 epochs at learning rate2\.5×10−52\.5\\times 10^\{\-5\}with BioClinicalBERT layers\{0,…,9\}\\\{0,\\ldots,9\\\}frozen\. We use 50 shots as a low resource yet clinically plausible budget: many pediatric ECG findings are relatively uncommon in routine practice, so assembling large expert\-annotated cohorts is costly, whereas labeling on the order of tens of positives per class is closer to what a specialized clinic can realistically curate\. Empirically, this budget also captures most of the transferable gain before returns diminish, as shown in Table[2](https://arxiv.org/html/2607.15928#S4.T2)and Figure[4\.3](https://arxiv.org/html/2607.15928#S4.SS3.SSS0.Px4)\.

#### Full Supervised Fine\-tuning\.

Training uses the full labeled training split for 20 epochs at1×10−41\\times 10^\{\-4\}with layers\{0,…,8\}\\\{0,\\ldots,8\\\}frozen, and we keep the checkpoint with the highest macro average validation AUC\.

Table 1:Main results on ZZU\-pECG under zero\-shot, 50\-shot, and full fine\-tuning, and on PTB\-XL under full fine\-tuning\.ModelZero\-shot50\-shotFull FTPTB\-XLAUCBAccF1AUCBAccF1AUCBAccF1Full fine\-tuningAUCGroup A: Domain adaptation initializations and standard fusion baselinesDANN\[ganin2016domain\]49\.3354\.8920\.5681\.7072\.1448\.9789\.6779\.0558\.7296\.54MMD\[long2015learning\]49\.3354\.8920\.5680\.6271\.4146\.6789\.9479\.9259\.5796\.51Early fusion51\.8855\.8520\.8780\.6972\.0244\.7788\.8778\.0357\.0796\.69Late fusion50\.5555\.3219\.5878\.2269\.8442\.4189\.0379\.4856\.7796\.60Group B: ECG foundation and knowledge pretraining baselinesST\-MEM\[STMEM\]50\.9151\.7015\.5466\.0858\.8623\.8681\.5566\.6088\.8589\.22MERL\[MERL\]58\.5851\.344\.5770\.6559\.6526\.3580\.9765\.9433\.7292\.49KED\[2024KED\]57\.7753\.5717\.3050\.6651\.1014\.9780\.5463\.9125\.9789\.10Proposed multimodal fusion framework conditioned on labelsPEACE59\.3952\.3017\.3081\.7469\.5237\.5991\.5680\.5059\.0896\.90ΔAUC\\Delta\_\{\\mathrm\{AUC\}\}vs\. Group A best\+7\.51––\+0\.04––\+1\.62––\+0\.21ΔAUC\\Delta\_\{\\mathrm\{AUC\}\}vs\. Group B best\+0\.81––\+11\.09––\+10\.01––\+4\.41
Macro averages in %\. Bold: best in each column\. Shaded row: proposed method\.ΔAUC\\Delta\_\{\\mathrm\{AUC\}\}: PEACE minus the best non\-PEACE AUC in that baseline group\. PTB\-XL is a predominantly adult full fine\-tuning setting and is not label\-matched to ZZU\-pECG\. Zero\-shot uses a deterministic frozen checkpoint estimate; see Section[4\.2](https://arxiv.org/html/2607.15928#S4.SS2)\. Fifty\-shot and full fine\-tuning report means over seeds 42–46, with PEACE mean±\\pmstd in Table[3](https://arxiv.org/html/2607.15928#S4.T3)\. DANN and MMD use adult initializations; zero\-shot omits target domain unlabeled adaptation; see Section[4\.3](https://arxiv.org/html/2607.15928#S4.SS3)\.

#### Baseline models\.

To evaluate PEACE from both ECG representation learning and multimodal fusion perspectives, we organize the baselines into two groups\.

Group A: Domain adaptation initializations and standard fusion baselines\.DANN\[ganin2016domain\]and MMD\[long2015learning\]provide competitive domain adaptive ECG initializations with the same ResNet1D backbone as PEACE and are transferred under the same pediatric label budgets and fine\-tuning epochs as the other supervised transfer settings\. Their zero\-shot entries correspondingly evaluate the adult\-pretrained initialization without unlabeled ZZU\-pECG adaptation, which explains near\-chance AUCs before pediatric fine\-tuning\. Early fusion concatenates ResNet1D and BioClinicalBERT embeddings into an MLP classifier; Late fusion averages ECG and text logits\. Both fusion baselines encode the fixed class level descriptor bank𝒟\\mathcal\{D\}used by PEACE, but omit label query interaction, LSBC, and CAF\. At test time, no baseline is provided with descriptors composed from the ground\-truth labels of the evaluated recording\. Instead, Early fusion and Late fusion use text features derived from the full fixed descriptor bank, independent of the sample multi hot annotation, and combine them with ECG features by concatenation or logit averaging, respectively; PEACE uses ECG signals alone at inference\.

Group B: ECG foundation and knowledge pretraining baselines\.ST\-MEM\[STMEM\]provides a masked ECG representation learning reference\. MERL\[MERL\]evaluates global multimodal alignment\. KED\[2024KED\]evaluates knowledge enhanced ECG representation learning with textual\-signal alignment\.

This grouping asks whether PEACE improves over strong domain adaptive ECG initializations and naive fusion, and whether fusion conditioned on labels improves over existing knowledge or foundation\-model pretraining\.

Evaluation metrics\.We adopt macro average AUC as the primary metric; it summarizes ranking performance across operating points and is computed directly from prediction scores without committing to a decision threshold\. We additionally report macro balanced accuracy, denoted BAcc and defined as the macro average of\(Sensitivity\+Specificity\)/2\(\\mathrm\{Sensitivity\}\+\\mathrm\{Specificity\}\)/2per label, and macro F1 using validation\-tuned per class thresholds\. Table[1](https://arxiv.org/html/2607.15928#S4.T1)summarizes these metrics together with PTB\-XL macro average AUC after full fine\-tuning\.

#### Evaluation protocol and reproducibility\.

Fifty\-shot and full fine\-tuning experiments are repeated with five random seeds 42–46; zero\-shot evaluation uses a single frozen pretrained checkpoint and is deterministic under the fixed test split; see Section[4\.2](https://arxiv.org/html/2607.15928#S4.SS2)\. We use patient level train/validation/test splits at an 8:1:1 ratio on ZZU\-pECG and PTB\-XL\. Checkpoints are selected according to the highest macro average validation AUC\. For threshold dependent metrics, including macro F1, specificity, and balanced accuracy, per class decision thresholds are tuned on the validation split to maximize validation macro F1 and are then fixed for test evaluation\. Macro\-average AUC is computed directly from prediction scores and is used as the primary threshold free metric\. Optimization schedules for pretraining and transfer follow Section[4\.2](https://arxiv.org/html/2607.15928#S4.SS2)\. For comparisons based on five stochastic runs, differences smaller than the observed between seed variability are not interpreted as evidence of superiority\. Statistical testing is applied only when matched seed level outputs are available for both methods; otherwise, we report the numerical difference without a significance claim\. For large numerical margins, we report the effect size together with the available seed variability but do not infer statistical significance without matched run level outputs\. Reproducibility artifacts are summarized in the Data and code availability statement\.

### 4\.3Results and Analyses

We consolidate pediatric transfer metrics on ZZU\-pECG under zero\-shot, 50\-shot, and full fine\-tuning, together with PTB\-XL evaluation after PTB\-XL fine\-tuning, in Table[1](https://arxiv.org/html/2607.15928#S4.T1)\. PEACE achieves the best macro AUC across the primary ZZU\-pECG transfer regimes, with the largest gains appearing under 50\-shot and full fine\-tuning against Group B\. This pattern indicates that the proposed fusion strategy is most beneficial when limited pediatric supervision is available, rather than merely improving supervised validation on PTB\-XL\.

#### Comparison with domain adaptation initializations and standard fusion baselines

Group A evaluates whether strong domain adaptive ECG initializations or simple ECG and text fusion suffice without knowledge alignment conditioned on labels\. DANN and MMD are adversarial or distribution\-matching adapters that ordinarily consume unlabeled target domain batches during domain alignment; under the zero\-shot protocol here, those target domain updates are unavailable, so the reported zero\-shot AUCs are frozen adult initializations evaluated on ZZU\-pECG and accordingly fall near chance at 49\.33%\. All four baselines in this group obtain zero\-shot AUCs between 49\.33% and 51\.88% on ZZU\-pECG, whereas PEACE reaches 59\.39%, yielding a 7\.51 percentage point gain over the strongest Group A baseline\. Under 50\-shot adaptation, PEACE reaches 81\.74% AUC, compared with 81\.70% for DANN\. The0\.040\.04percentage point difference is negligible relative to PEACE’s between seed std in Table[3](https://arxiv.org/html/2607.15928#S4.T3), and we therefore treat the two methods as comparable rather than claiming superiority\. Because DANN obtains higher threshold dependent BAcc and F1 in this regime, we discuss threshold dependent discrepancies in Section[4\.6](https://arxiv.org/html/2607.15928#S4.SS6)\. Under full fine\-tuning, PEACE achieves 91\.56% AUC and 80\.50% BAcc, outperforming the best Group A results by 1\.62 and 0\.58 percentage points, respectively\.

PTB\-XL AUC after full fine\-tuning is close across Group A baselines and PEACE, ranging from 96\.51% to 96\.90%\. This pattern is expected: PEACE is pretrained on the almost entirely adult MIMIC\-IV ECG corpus, and PTB\-XL is likewise a predominantly adult target, so the setting is closer to adult to adult transfer than to pediatric adaptation on ZZU\-pECG\. Under such age matched transfer, conventional supervised fine\-tuning can already recover strong performance; thus, the main evidence from Group A lies in pediatric transfer on ZZU\-pECG, especially the zero\-shot initialization gap and the full fine\-tuning improvement\.

#### Comparison with ECG foundation and knowledge pretraining baselines

PEACE’s advantage is more pronounced against Group B\. At zero\-shot, PEACE achieves 59\.39% AUC, modestly surpassing MERL at 58\.58% and KED at 57\.77%, and substantially exceeding ST\-MEM at 50\.91%\. The gap widens sharply under 50\-shot adaptation: PEACE reaches 81\.74% AUC, compared with 70\.65% for MERL, 66\.08% for ST\-MEM, and 50\.66% for KED\. Notably, KED decreases from 57\.77% in zero\-shot evaluation to 50\.66% after 50\-shot adaptation, indicating non monotonic behavior under the present low resource protocol\. We did not conduct a dedicated stability analysis and therefore do not assign a causal explanation to this decrease\. The 11\.09 percentage point gain over the strongest Group B baseline indicates that PEACE shows stronger low resource adaptation performance\. Under full fine\-tuning, PEACE obtains 91\.56% AUC, outperforming the strongest Group B baseline by 10\.01 percentage points\. On PTB\-XL, PEACE reaches 96\.90% AUC, compared with 92\.49% for MERL, 89\.22% for ST\-MEM, and 89\.10% for KED\. These results are consistent with PEACE retaining strong discriminative ability on the predominantly adult PTB\-XL corpus alongside pediatric adaptation on ZZU\-pECG, although this work does not directly probe representation level transferability\. Overall, the Group B comparisons support fusion conditioned on labels over the evaluated global multimodal, masked pretraining, and knowledge enhanced baselines\.

#### Implication for multimodal fusion

The contrast between PEACE and the Early fusion and Late fusion baselines is particularly important from a multimodal fusion perspective\. All three methods use ECG and clinical information derived from text, but they differ in how the modalities interact\. Early fusion performs feature concatenation, Late fusion combines independent modality logits, whereas PEACE uses diagnostic labels as queries over ECG and three axis knowledge tokens and aligns pooled ECG representations with privileged knowledge conditioned on each sample through LSBC under CAF\. The AUC gains observed across the three ZZU\-pECG transfer regimes suggest that the benefit is not solely attributable to adding a text branch, but also to the proposed interaction conditioned on labels and curriculum gated alignment mechanism\.

Table 2:Few\-shot macro AUC in % on ZZU\-pECG versus shots per classNN\.Δ\\Deltagain and Rel\. imp\. are consecutive increments relative to the previous shot budget\.ConfigurationAUC, mean±\\pmstdΔ\\DeltagainRel\. imp\.5\-shot64\.85±\\pm4\.48––10\-shot66\.13±\\pm3\.33\+1\.28\+1\.97%20\-shot73\.10±\\pm1\.64\+6\.97\+10\.54%50\-shot81\.74±\\pm1\.34\+8\.64\+11\.82%100\-shot84\.53±\\pm1\.17\+2\.79\+3\.41%
#### Few\-shot sample efficiency

Figure[4\.3](https://arxiv.org/html/2607.15928#S4.SS3.SSS0.Px4)visualizes the sample\-efficiency trend reported in Table[2](https://arxiv.org/html/2607.15928#S4.T2)\. PEACE exhibits three regimes: a cold start regime below 10 shots, rapid adaptation between 10 and 50 shots, and saturation beyond 50 shots\. The gain from 20\-shot to 50\-shot is substantially larger than that from 50\-shot to 100\-shot, indicating that 50\-shot provides a practical annotation budget that captures most of the benefit of pediatric supervision\.

![Refer to caption](https://arxiv.org/html/2607.15928v1/x1.png)Figure 2:Few\-shot sample efficiency on ZZU\-pECG as macro AUC versus shots\.

### 4\.4Ablation Studies

Table[3](https://arxiv.org/html/2607.15928#S4.T3)reports module ablations and knowledge supervision controls on ZZU\-pECG\. No text removes the knowledge descriptor branch\. Removing LSBC removes label set aware bidirectional contrastive learning\. Removing CAF removes curriculum gating of the alignment loss during the corresponding MIMIC\-IV pretraining and pediatric fine\-tuning runs, so zero\-shot differences reflect a different frozen checkpoint rather than inference time gating\. Single text PEACE replaces the three axis knowledge descriptor triplet with one fused descriptor per label\.

Table 3:Ablation on ZZU\-pECG, macro AUC in percent\. Zero\-shot uses a deterministic frozen checkpoint estimate; see Section[4\.2](https://arxiv.org/html/2607.15928#S4.SS2)\. Fifty\-shot and full fine\-tuning report mean±\\pmstd over seeds 42–46\.ConfigurationZero\-shot50\-shotFull FTNo text46\.0166\.37±\\pm1\.8066\.86±\\pm3\.89Without LSBC56\.2377\.74±\\pm0\.3389\.63±\\pm0\.86Without CAF47\.1077\.69±\\pm0\.8190\.45±\\pm0\.35Single text PEACE49\.2074\.30±\\pm1\.5088\.70±\\pm1\.10Full PEACE59\.3981\.74±\\pm1\.3491\.56±\\pm0\.96Full PEACE achieves the highest AUC across regimes\. The No text variant shows the largest degradation\. Removing LSBC or CAF reduces AUC, with the largest effects under zero\-shot and few\-shot transfer\. For the Without CAF configuration, the zero\-shot drop indicates that curriculum gating during pretraining shapes the transferable initialization\. Replacing three axis descriptors with a single fused descriptor also lowers performance\. The ablations therefore support complementary roles for structured descriptors, label set aware alignment, and curriculum gated optimization\.

Table 4:CAF breakpoint sensitivity for 50\-shot transfer on ZZU\-pECG\.CAF breakpointsMacro\-average AUC in %\[0\.2,0\.6\]\[0\.2,0\.6\]78\.2Default\[0\.3,0\.7\]\[0\.3,0\.7\]81\.74\[0\.4,0\.8\]\[0\.4,0\.8\]78\.8
Values are means over five seeds under each breakpoint schedule and are reported as a limited sensitivity check rather than a variance\-controlled comparison\.

Across the tested breakpoints, the 50\-shot AUC ranges from 78\.2% to 81\.74% in Table[4](https://arxiv.org/html/2607.15928#S4.T4)\. Among the three schedules examined, the default\[0\.3,0\.7\]\[0\.3,0\.7\]setting produced the highest observed AUC\.

### 4\.5Interpretability Analyses

![Refer to caption](https://arxiv.org/html/2607.15928v1/figures/sample1_idx558_gradcampp.png)

\(a\) RVH ![Refer to caption](https://arxiv.org/html/2607.15928v1/figures/sample2_idx543_gradcampp.png) \(b\) LQTS

Figure 3:Grad\-CAM\+\+ on ZZU\-pECG for RVH in panel \(a\) and LQTS in panel \(b\)\. Warm overlays are min\-max normalized Grad\-CAM\+\+ scores for the corresponding class head; gray curves show the 12\-lead waveforms on the selected PEACE checkpoint\.As a qualitative check of temporal focus, Figure[3](https://arxiv.org/html/2607.15928#S4.F3)shows Grad\-CAM\+\+\[gradcamplus\]maps for representative RVH and LQTS recordings under the same preprocessing and checkpoint selection as Section[4\.2](https://arxiv.org/html/2607.15928#S4.SS2)\. Saliency concentrates near QRS dominant regions for RVH and near QRS\-to\-T / repolarization intervals for LQTS, which is consistent with evidence commonly inspected for these findings\. These maps are illustrative single record visualizations only; they do not establish localization faithfulness or causality of LQN or LSBC\. An optional heuristic window comparison against length matched random blocks is reported in Appendix[B](https://arxiv.org/html/2607.15928#A2)and is likewise not used as evidence of clinical grounding\.

### 4\.6Threshold\-dependent metrics under severe imbalance

Because macro AUC is threshold free whereas BAcc and macro F1 depend on validation\-selected operating points, these metrics may rank models differently under severe multi\-label imbalance\. In Table[1](https://arxiv.org/html/2607.15928#S4.T1), DANN obtains higher 50\-shot BAcc and F1 despite a slightly lower AUC than PEACE, while ST\-MEM obtains a higher full fine\-tuning macro F1 but substantially lower macro AUC and BAcc\. These discrepancies suggest that threshold dependent metrics can reflect favorable operating point calibration rather than uniformly better ranking performance\. We therefore use macro AUC as the primary metric and report BAcc and macro F1 as complementary measures of threshold specific behavior\.

## 5Discussion

### 5\.1Adult to adult PTB\-XL transfer versus pediatric adaptation

The strong and mutually close PTB\-XL AUCs of Group A baselines and PEACE after full fine\-tuning should be read mainly as adult to adult transfer: the encoder is pretrained on almost entirely adult MIMIC\-IV ECG records and then fine\-tuned on predominantly adult PTB\-XL, which still includes only a small pediatric subset\. Relative to pediatric ZZU\-pECG, this age matched setting is far less shifted, so strong performance is expected even without PEACE\-specific fusion\. The empirical benefit of knowledge guided fusion is therefore most evident under pediatric domain shift and label scarcity on ZZU\-pECG, particularly in zero\-shot and 50\-shot transfer, rather than under fully supervised PTB\-XL fine\-tuning\.

Table 5:Per\-class AUC in % on ZZU\-pECG across evaluation regimes\.LabelZero\-shot50\-shotFull FTPEACEKEDMERLST\-MEMPEACEKEDMERLST\-MEMPEACEKEDMERLST\-MEMCRBBB67\.8647\.1487\.4248\.8696\.9755\.8994\.6889\.5999\.9494\.4698\.2197\.08IRBBB83\.8256\.8958\.2549\.1890\.7860\.1865\.6160\.6796\.6087\.1281\.0082\.38LAFB69\.6046\.4066\.0156\.6895\.2856\.7676\.1182\.0499\.3187\.1489\.4494\.36LAO/LAE66\.6561\.0244\.3150\.7979\.2351\.2863\.5850\.0092\.8578\.5469\.2467\.97LQTS51\.6153\.4864\.7151\.3476\.0355\.2760\.8767\.6187\.2170\.3777\.8281\.80LVH35\.9348\.0837\.9750\.3280\.9337\.9571\.7059\.2990\.2375\.0774\.4871\.89LVOLT60\.5366\.6564\.0453\.6071\.0441\.9756\.4856\.6486\.3374\.7373\.6175\.93NORM46\.1652\.9048\.8347\.3280\.0453\.5173\.0870\.7989\.9080\.9082\.0980\.42RAO/RAE59\.6775\.4656\.8046\.6486\.4543\.3576\.7556\.5987\.1084\.1384\.8982\.00RVH55\.5173\.0373\.5549\.3285\.7247\.4982\.6869\.8897\.6791\.4491\.7390\.79STTC58\.4552\.4351\.7755\.6777\.8049\.6268\.1374\.0886\.8074\.2178\.8583\.68*TAB\_*56\.9059\.9149\.2851\.2260\.6354\.6658\.1855\.7784\.8368\.3570\.2370\.33Avg\.59\.3957\.7758\.5850\.9181\.7450\.6670\.6566\.0891\.5680\.5480\.9781\.55Note:AUC values are reported in %\. Bold indicates the best result for each label within each evaluation regime\. Label abbreviations follow Section[4\.1](https://arxiv.org/html/2607.15928#S4.SS1)\.

### 5\.2Cross\-population findings and practical scope

Table[5](https://arxiv.org/html/2607.15928#S5.T5)shows per label trajectories: PEACE improves with pediatric supervision, while NORM and LVH remain weakest at zero\-shot, so the model is best viewed as a transferable initialization that gains discrimination after limited fine\-tuning\. Curriculum gating is most useful under scarce labels, as shown in Table[3](https://arxiv.org/html/2607.15928#S4.T3); macro F1 and macro AUC need not rank models identically, as discussed in Section[4\.6](https://arxiv.org/html/2607.15928#S4.SS6)\. Conduction\- and hypertrophy\-related labels such as IRBBB, LVH, and RVH show large gains after fine\-tuning\. Age\-stratified evaluation across neonatal to school\-age groups remains an important next step\.

Per\-label results in Table[5](https://arxiv.org/html/2607.15928#S5.T5)further show that, under full fine\-tuning, PEACE exceeds the strongest Group B baseline for most pediatric diagnostic categories, with particularly clear gains on morphology\- and conduction\-sensitive labels such as IRBBB, LAFB, LVH, and RVH\. These class level trends complement the macro average results in Table[1](https://arxiv.org/html/2607.15928#S4.T1)and suggest that the benefit of alignment conditioned on labels is not restricted to a single high prevalence label\.

#### Implications for knowledge based decision support

Beyond aggregate multi\-label scores, PEACE organizes diagnostic evidence along rhythm, morphology, and ST–T axes that mirror how clinicians read ECGs\. This axis\-structured representation can support future knowledge based interfaces that group candidate findings and reference material by complementary clinical dimensions, while keeping the waveform itself as the primary evidence source\. Such interfaces are a natural next step for expert in the loop pediatric ECG assistance built on the present transfer framework\.

### 5\.3Limitations

Several limitations remain\. The Gemini descriptors encode general diagnostic structure rather than age specific pediatric criteria, and residual correlations between labels and identity may persist\. Privileged text is composed from positive training labels, so knowledge side LQN losses are not test time diagnostic heads\. PEACE lacks explicit developmental stage modeling, and all evaluations are retrospective\.

Group A zero\-shot entries for DANN and MMD evaluate frozen adult initializations without unlabeled target domain adaptation; they are therefore not claims about the full unsupervised domain adaptation protocols of those methods\. The main Group A evidence is the supervised 50\-shot and full fine\-tuning comparison under a shared pediatric protocol\. Matched seed level outputs are not available for every baseline, so we report numerical gaps and PEACE seed variability without claiming statistical significance except where matched runs exist\.

Grad\-CAM\+\+ maps and the optional heuristic window table in Appendix[B](https://arxiv.org/html/2607.15928#A2)are informal visualization aids only; they do not establish localization faithfulness or support for LQN/LSBC causality\. Continuous age aware transfer, pediatric specific descriptor redesign, and expert reviewed evidence grounding are left to future work\.

## 6Conclusion

This work demonstrates that structured clinical knowledge conditioned on labels can guide the transfer of adult\-scale ECG representations to pediatric diagnosis while preserving inference using only ECG signals\. PEACE represents diagnostic knowledge along rhythm, morphology, and ST–T evidence axes, uses diagnostic labels as queries over ECG and three axis knowledge tokens in LQN, aligns pooled ECG representations with privileged knowledge conditioned on each sample through LSBC, and regulates this alignment through CAF\.

Across pediatric transfer regimes, PEACE shows its clearest advantages over ECG foundation and knowledge pretraining baselines when pediatric supervision is limited\. The ablation results indicate complementary contributions from structured knowledge descriptors, label set aware alignment, and curriculum gated optimization\. The resulting framework provides a representation learning basis for knowledge based pediatric ECG systems in which diagnostic evidence can be organized by clinically meaningful axes\.

## Declaration of generative AI and AI\-assisted technologies in the manuscript preparation process

During the preparation of this work, the authors used generative AI tools to assist with language polishing and manuscript organization\. After using these tools, the authors reviewed and edited the content and take full responsibility for the content of the publication\. Figures in this manuscript were created by the authors and were not generated by generative AI tools\.

Gemini was additionally used as a methodological component to generate label\-level knowledge descriptors for training time supervision\. Its use, prompt design, human verification, and role in model training are described in Section[3\.2](https://arxiv.org/html/2607.15928#S3.SS2)and Appendix[A](https://arxiv.org/html/2607.15928#A1)\.

## Declaration of competing interest

The authors declare that they have no known competing financial interests or personal relationships that could have appeared to influence the work reported in this paper\.

## Data and code availability

MIMIC\-IV\-ECG is available via PhysioNet upon approved credentialed access following the official application process\. PTB\-XL and ZZU\-pECG are available from their respective repositories subject to the original access conditions\. Raw ECG waveforms are not redistributed by the authors\.

## Funding

This work was supported in part by the National Natural Science Foundation of China under Grant 62571123; in part by the Basic Research Program of Jiangsu Province under Grant BK20252010; in part by the Fundamental Research Funds for the Central Universities under Grant 2242026RCB0024\.

\\printcredits

## References

## Appendix ALabel\-Specific Knowledge Descriptors

The following label\-level knowledge descriptors were used as privileged auxiliary supervision during training\. They are not patient\-specific diagnostic reports and are not intended to serve as pediatric diagnostic criteria\. Numeric thresholds in some templates reflect adult\-oriented textbook wording retained for reproducibility; pediatric\-aware rewording is left to future work\.

#### Prompt template\.

For each diagnostic label name<LABEL\>, Gemini was queried with the following fixed instruction, consisting of a stem plus a three axis schema:

I want you to play the role of a professional Electrocardiologist, and I need you to teach me how to diagnose <LABEL\> from 12\-lead ECG, such as what leads or what features to focus on, etc\. Your answer must be less than 50 words in total across the three axes\. Structure the answer as three short clinical axes in one line, separated by ‘‘; ’’: rhythm:<<rate, regularity, sinus organization\>\>; morphology:<<QRS/P\-wave/axis/voltage/conduction and key leads\>\>; ischemia:<<ST\-T, QT, strain, or secondary repolarization; if none, state absence of acute territorial ischemia\>\>\. Output only that single line\. Do not use bullets or JSON\.

Human verification followed Section[3\.2](https://arxiv.org/html/2607.15928#S3.SS2)\. The final descriptor strings are listed below\. The prompt keeps the raw schema tokenischemia:; listed descriptors and the main text write this axis as ST–T repolarization\.

- •CRBBB: rhythm: Regular sinus rhythm showing stable atrioventricular conduction; morphology: QRS≥\\geq120 ms with characteristic rsR’ or rSR’ in right precordial leads V1\-V2 and slurred terminal S wave in I and V6; ST–T repolarization: Secondary T\-wave inversion in V1\-V3 without territorial ST\-segment elevation or reciprocal changes\.
- •IRBBB: rhythm: Normal sinus rhythm with consistent R\-R intervals; morphology: QRS duration 100\-119 ms exhibiting rSr’ or rsR’ in V1\-V2 and narrow terminal S in I and V6; ST–T repolarization: Absence of acute ST–T changes; no pathologic Q waves or ST\-segment deviation in contiguous leads\.
- •LAFB: rhythm: Sinus rhythm with normal heart rate; morphology: Marked left axis deviation−45\-45to−90\-90degrees, qR pattern in lateral leads I and aVL, and rS pattern in inferior leads II, III, aVF; ST–T repolarization: Negative for acute ischemic ST\-segment deviation or localized T\-wave inversion\.
- •LAO/LAE: rhythm: Sinus rhythm at a regular rate; morphology: P mitrale with notched P wave in lead II or terminal negative P component in V1≥\\geq1 mm deep and≥\\geq40 ms duration; ST–T repolarization: ST\-segments are isoelectric; no pathologic Q waves suggesting old myocardial infarction\.
- •LQTS: rhythm: Sinus rhythm with prolonged ventricular repolarization; morphology: Prolonged QTc interval\>\>470 ms measured in lead II or V5\-V6 with normal QRS duration; ST–T repolarization: Absence of acute ST–T abnormalities; T\-waves may be broad but lack a specific ischemic territorial pattern\.
- •LVH: rhythm: Regular sinus rhythm; morphology: Increased QRS voltage \(S V1 \+ R V5\-V6 \> 35 mm\) with left axis deviation; ST–T repolarization: Asymmetric downsloping ST\-segment depression and T\-wave inversion in lateral leads I, aVL, V5\-V6 representing a left ventricular strain pattern\.
- •LVOLT: rhythm: Sinus rhythm with attenuated signal amplitude; morphology: QRS voltage < 5 mm in all limb leads and < 10 mm in all precordial leads; ST–T repolarization: No evidence of territorial ST\-elevation or depression; T\-waves are concordant but low in amplitude\.
- •NORM: rhythm: Normal sinus rhythm 60\-100 bpm with consistent P\-P intervals; morphology: Normal P wave, PR interval, QRS duration, and QRS axis; ST–T repolarization: No diagnostic ST\-segment elevation, depression, or T\-wave inversion; no pathologic Q waves in any lead\.
- •RAO/RAE: rhythm: Sinus rhythm with prominent atrial signals; morphology: Tall peaked P wave \> 2\.5 mm in inferior leads II, III, aVF or initial positive P in V1 \> 1\.5 mm; ST–T repolarization: Negative for acute myocardial injury or primary repolarization abnormalities\.
- •RVH: rhythm: Sinus rhythm with rightward QRS vector; morphology: Right axis deviation with dominant R wave in V1 \(R/S \> 1\) and deep S wave in lateral leads V5\-V6; ST–T repolarization: ST\-segment depression and T\-wave inversion in right precordial leads V1\-V3 consistent with right ventricular strain\.
- •STTC: rhythm: Stable sinus rhythm; morphology: Normal QRS morphology and axis; ST–T repolarization: Nonspecific ST–T abnormalities including minor ST\-segment flattening or T\-wave inversion without a specific coronary artery territory or reciprocal ST\-elevation\.
- •TAB\_: rhythm: Sinus rhythm with normal intervals; morphology: QRS duration and P\-wave morphology are unremarkable; ST–T repolarization: Generalized T\-wave flattening or inversion in contiguous leads without significant ST\-segment deviation, excluding acute coronary syndromes or localized injury\.

## Appendix BHeuristic waveform region saliency

This appendix reports an optional, non validated comparison of Grad\-CAM\+\+ mass inside heuristically defined P, QRS, and ST–T windows versus length matched random blocks on usable label\-positive ZZU\-pECG test recordings under the full fine\-tuning checkpoint\. Region choice follows the descriptor: atrial findings map to P; conduction, hypertrophy, and low voltage findings map to QRS; repolarization findings map to ST–T\. Intervals use Lead II R\-peak detection withscipy\.signal\.find\_peaksand fixed relative windows, without a clinical delineator or expert boundary review\. LetAi,c,ℓ,t≥0A\_\{i,c,\\ell,t\}\\geq 0denote Grad\-CAM\+\+ saliency on a common within\-recording scale\. Define

Si,cdesc=∑ℓ=112∑t∈Ωi,cdescAi,c,ℓ,t∑ℓ=112∑tAi,c,ℓ,t,S^\{\\mathrm\{desc\}\}\_\{i,c\}=\\frac\{\\sum\_\{\\ell=1\}^\{12\}\\sum\_\{t\\in\\Omega^\{\\mathrm\{desc\}\}\_\{i,c\}\}A\_\{i,c,\\ell,t\}\}\{\\sum\_\{\\ell=1\}^\{12\}\\sum\_\{t\}A\_\{i,c,\\ell,t\}\},\(13\)and computeSi,crandS^\{\\mathrm\{rand\}\}\_\{i,c\}as the mean overNrand=32N\_\{\\mathrm\{rand\}\}=32length matched random blocks with the same normalized expression\. We report

Δc=1Nc​∑i=1Nc\(Si,cdesc−Si,crand\)\.\\Delta\_\{c\}=\\frac\{1\}\{N\_\{c\}\}\\sum\_\{i=1\}^\{N\_\{c\}\}\\left\(S^\{\\mathrm\{desc\}\}\_\{i,c\}\-S^\{\\mathrm\{rand\}\}\_\{i,c\}\\right\)\.\(14\)Table[6](https://arxiv.org/html/2607.15928#A2.T6)shows heterogeneous meanΔ\\Deltavalues and should not be over\-interpreted; the comparison is not a localization or faithfulness metric\.

Table 6:Heuristic Grad\-CAM\+\+ saliency comparison on ZZU\-pECG under full fine\-tuning\.LabelRegionnnSdescS^\{\\mathrm\{desc\}\}SrandS^\{\\mathrm\{rand\}\}Δ\\DeltaLQTSST–T360\.5720\.452\+0\.120\+0\.120RAO/RAEP150\.3710\.264\+0\.107\+0\.107LAO/LAEP120\.3460\.244\+0\.102\+0\.102IRBBBQRS300\.3300\.236\+0\.094\+0\.094RVHQRS520\.2800\.244\+0\.036\+0\.036LAFBQRS270\.2010\.202−0\.001\-0\.001LVHQRS170\.2240\.252−0\.028\-0\.028STTCST–T950\.4870\.517−0\.030\-0\.030

Similar Articles