Pathology-Aware Multi-View Contrastive Learning for Patient-Independent ECG Reconstruction

Youssef Youssef, Jitin Singla · 2026

Read Pathology-Aware Multi-View Contrastive Learning for Patient-Independent ECG Reconstruction by Youssef Youssef, Jitin Singla (2026) in the Tower of Babel, a free online library of public-domain works preserved in clean, searchable text. No sign-up. The full text is served as a plain-text file at a predictable URL, where text is present: https://antarctic-labs.com/tower-of-babel/arxiv-2603-17248.txt.

Introduction

Youssef and Singla present a method to rebuild a full 12 lead ECG from a reduced lead set, tuned to the patient's pathology. Rebuilding is ill posed because bodies vary. Standard deep methods ignore the underlying heart condition and lose vital waveform detail. Their framework aligns latent features with clinical labels through supervised contrastive learning across views. This filters out anatomical nuisance factors. On the PTB-XL dataset, they report about a 76 percent cut in reconstruction error versus the prior best model.

Catalog record

CREATORYoussef Youssef, Jitin Singla
YEAR2026
COLLECTIONPAPERS
FORMATTXT
FILE SIZE20341
LICENSEhttp://creativecommons.org/licenses/by/4.0/
RIGHTSCC BY
SOURCEarXiv

Source: https://arxiv.org/abs/2603.17248

Browse the full library · About the Tower of Babel

Full text

The opening of the work, from the library's hosted text:

Pathology-Aware Multi-View Contrastive Learning for Patient-Independent ECG Reconstruction Youssef Youssef, Jitin Singla Abstract Reconstructing a 12-lead electrocardiogram (ECG) from a reduced lead set is an ill-posed inverse problem due to anatomical variability. Standard deep learning methods often ignore underlying cardiac pathology losing vital morphology in precordial leads. We propose Pathology-Aware Multi-View Contrastive Learning, a framework that regularizes the latent space through a pathological manifold. Our architecture integrates high-fidelity time-domain waveforms with pathology-aware embeddings learned via supervised contrastive alignment. By maximizing mutual information between latent representations and clinical labels, the framework learns to filter anatomical ”nuisance” variables. On the PTB-XL dataset, our method achieves approx. 76% reduction in RMSE compared to state-of-the-art model in patient-independent setting. Cross-dataset evaluation on the PTB Diagnostic Database confirms superior generalization, bridging the gap between hardware portability and diagnostic-grade reconstruction. I Introduction The standard 12-lead electrocardiogram (ECG) is the clinical gold standard for assessing cardiac electrical activity [ 20 , 26 , 5 ] , yet its utility is constrained by the requirement for ten electrodes and precise anatomical placement, making it challenging for continuous monitoring in ambulatory and home settings [ 5 , 21 , 10 , 2 ] . To bridge the gap between clinical interpretability and hardware portability, there is a growing need to reconstruct high-fidelity 12-lead waveforms, especially precordial V1-V6 leads, from a reduced set of measured leads (e.g., Leads I, II, and V_{2} ) [ 21 , 23 ] . The feasibility of ECG lead reconstruction is theoretically grounded in the spatial redundancy of cardiac dipoles [ 21 , 15 , 22 ] . However, the relationship between the cardiac source \mathbf{v}(t)\in\mathbb{R}^{3} and body surface potentials \mathbf{\Phi} is governed by a non-linear subject-specific lead-field matrix \mathbf{A}(\mathbf{s}) , where \mathbf{s} represents latent anatomical variables such as torso geometry, heart orientation and tissue conductivity [ 4 , 30 ] : \mathbf{\Phi}(t)=\mathbf{A}(\mathbf{s})\mathbf{v}(t)+\epsilon (1) In a patient-independent setting, \mathbf{s} is unobserved. Consequently, standard models attempting a direct mapping f:\mathcal{X}\to\mathcal{Y} are mathematically forced to minimize error by learning the marginalized transfer function \mathbb{E}[\mathbf{A}(\mathbf{s})] . This is expressed as: p(\mathcal{Y}|\mathcal{X})=\int p(\mathcal{Y}|\mathcal{X},\mathbf{s})p(\mathbf{s}|\mathcal{X})d\mathbf{s} (2) Because the influence of \mathbf{s} is integrated (averaged) across the population, the model suffers from a ”regression to the mean” effect, where high-frequency diagnostic details are lost to satisfy the population average. This loss is particularly high in the precordial ”transitional zone” ( V_{3} – V_{4} ) where anatomical variance is maximal [ 24 ] . To counteract this marginalization, we propose Pathology-Aware Multi-View Contrastive Learning, a framework that reformulates lead reconstruction by regularizing the latent space through a pathological manifold. We argue that while the anatomical matrix \mathbf{A}(\mathbf{s}) varies stochastically between patients, the cardiac signal can be constrained to lower-dimensional manifold dictated by the underlying pathology l . Since \mathbf{s} is inaccessible for new patients, we introduce a pathology-aware representation \mathbf{h}=f_{\phi}(\mathcal{X}) to act as a structural anchor and conditioning variable, decomposing the generative process as: p(\mathcal{Y}|\mathcal{X},\mathbf{h})\propto p(\mathcal{Y}|\mathcal{X},l)p(\mathbf{h}|\mathcal{X},l) (3) We maximize the Mutual Information I(\mathbf{h};l)=H(l)-H(l|\mathbf{h}) between latent representation \mathbf{h} and pathology label l by optimizing a supervised contrastive loss. This partitions latent space by clinical condition rather than anatomical noise, providing a prior that restricts the solution space for \mathcal{Y} to the ”pathological subspace”. Mathematically, this conditioning reduces the conditional entropy of the reconstruction as H(\mathcal{Y}|\mathcal{X},\mathbf{h})<H(\mathcal{Y}|\mathcal{X}) , providing the reconstruction decoder with a semantic ”anchor” to recover features typically lost in unconditioned models. Our contributions are two-fold: 1) We propose a patient-independent multi-view architecture that fuses high-fidelity waveforms with contrastive embeddings; 2) We achieve state-of-the-art results on PTB-XL Dataset, including 76% reduction in RMSE over existing benchmarks, and demonstrate robust cross-dataset generalization on the PTB Diagnostic Database. II Related Work Early ECG reconstruction methods used linear transformation techniques [ 8 ] (e.g., the inverse Dower matrix [ 7 ] , regression-based models [ 16 ] ) to model spatial relations between leads. These mathematical models were interpretable; however, their precision is highly affected by variations in human anatomy and electrode placement [ 23 , 22 ] . To overcome these limitations, recent research has changed direction to using deep learning (DL) methods to model the non-linear relationship between leads from the data directly. There are several common architectures reported in the literature, including: • U-Net architectures: These have been used to reconstruct a full 12-lead ECG from a single input lead, achieving correlations up to 0.9 for specific leads [ 3 ] . • Hybrid CNN-LSTM Models: One-dimensional Convolutional Neural Networks (CNN) combined with Bidirectional Long Short-Term Memory (LSTM) models provided better temporal modeling of the 12-lead ECG signal [ 12 , 13 ] . • Attention-based architectures: Attention-modified U-Net models have shown average Pearson correlations of around 0.80 and R^{2} values of approximately 0.64 [ 9 ] . • Lightweight architectures: Frequency-based decomposition and parameter-efficient 12 lead networks have been developed for use in resource-constrained environments (such as wearables) [ 17 ] . Recently, the ECG reconstruction have moved away from direct signal-to-signal mapping to training on channel-agnostic latent representation. These methods involve joint alignment and reconstruction across multiple leads or multimodal contrastive alignment such as integrating cardiac MRI and ECG data. These representations aim to preserve channel-specific information as well as facilitate information transfer across different lead subsets [ 14 , 27 ] . Most existing studies are conducted on PTB Diagnostic Database [ 28 , 12 , 3 , 23 , 21 , 19 ] , which, despite its historical significance, is relatively small in terms of subject count and pathological diversity. In contrast, the more recent and extensive PTB-XL dataset remains underutilized [ 18 , 25 , 6 ] , leaving a gap in evaluating how these models scale to larger, more heterogeneous clinical populations. Furthermore, performance is typically inflated by subject-dependent partitioning as intra-patient data is mixed across training and test sets [ 18 , 28 , 1 , 9 ] . This leads to subject-specific memorization rather than clinical generalization. Only few studies have been done in patient-independent settings [ 25 , 6 ] . III Proposed Methodology The proposed methodology reformulates ECG lead reconstruction as a multi-view integration task, combining morphological fidelity (time-domain waveforms) with a pathology-aware latent space. The system comprises three stages: signal preprocessing, dual-representation construction, and stacked latent decoding. III-A Signal Cleaning and Segmentation Each 12-lead ECG is processed through a narrowband notch filter, 0.5–45Hz Butterworth band-pass filter and Median-based filter eliminating powerline interference, baseline drift and residual low-frequency wander, respectively. Cleaned signals are segmented into temporal windows of T=256 samples with a 64-sample hop size. Segments are quality controlled based on lead-wise amplitude and root-mean-square criteria using empirical percentile bounds (0.1–99.9%). Artifact-free segments \mathbf{x}\in\mathbb{R}^{3\times 256} (leads I, II, and V_{2} ) serve as inputs for reconstructing leads V_{1} and V_{3} – V_{6} . III-B Pathology-aware Latent Representation To capture clinically meaningful invariants, we train a network f_{\phi}:\mathbf{x}\rightarrow\mathbf{h} to structure a latent space where similar pathologies cluster together. Clean segments are transformed into augmented morphology-centered (R-peak aligned) and signal-augmented views, then processed by a 1-D convolutional encoder into an embedding \mathbf{h}\in\mathbb{R}^{128} and projected into an \ell_{2} -normalized embedding \mathbf{z}\in\mathbb{S}^{d-1} . We employ a supervised contrastive loss \mathcal{L}_{\mathrm{sc}} with temperature \tau=0.07 to maximize mutual information between the latent space and high-confidence diagnostic labels l (certainty \geq

Read the complete text