cs.LGSep 4, 2026

Learning from VAE Errors to support ECG-based Differential Diagnosis of Myocardial Scar

Authors: Shayan Sharifi, Riccardo Treu, Ilaria Gandin, Federico Garoia, Marco Merlo, Giulia Cisotto

Organizations: Department of Mathematics, Informatics, and Geosciences, University of Trieste, Italy · Centre of Diagnosis and Management of Cardiomyopathies; Azienda Sanitaria Universitaria Giuliano Isontina; University of Trieste, Italy; Member of Ern Guard-Heart · Department of Medical, Surgical and Health Sciences, University of Trieste, Italy

Abstract

Late Gadolinium Enhancement (LGE) on cardiac magnetic resonance is a key marker of myocardial scar, but its limited accessibility motivates routine ECG-based screening. We evaluated whether ββ-variational autoencoder (VAE)-derived ECG representations can discriminate LGE+ from LGE- cardiomyopathic patients in a local cohort of 300 subjects. We compared 32-dimensional features from the foundation ECGx.AI model with those from a shallower ββ-VAE trained on normal PTB-XL ECGs, evaluating downstream classification and Dynamic Time Warping (DTW)-based reconstruction errors. ECGx.AI reached an area under ROC of 0.686 with Random Forest, while the proposed ββ-VAE reached 0.577 with sensitivity of 0.775 with Gradient Boosting. Notably, DTW-reconstruction errors significantly differed between classes in 10 out of 12 leads according to Mann-Whitney U test and help in classification, leading to an area under ROC of 0.643 with Logistic Regression, supporting their potential as markers of scar-related ECG alterations.

Figures & tables

Explore similar work

CardsList
  1. Progressive Learning with Anatomical Priors for Reliable Left Atrial Scar Segmentation from Late Gadolinium Enhancement MRI

    Mar 27, 2026Jing Zhang, Bastien Bergere, Emilie Bollache +4Medical Image SegmentationCardiac MRI

  2. Curriculum-Guided Myocardial Scar Segmentation for Ischemic and Non-ischemic Cardiomyopathy

    Mar 30, 2026Nivetha Jayakumar, Jonathan Pan, Shuo Wang +6Medical Image SegmentationCardiac MRI