Multi-Channel Masked Autoencoder and Comprehensive Evaluations for Reconstructing 12-Lead ECG from Arbitrary Single-Lead ECG

Jiarong Chen, Wanqing Wu, Shenda Hong

Abstract

The 12-lead electrocardiogram (ECG) is the clinical gold standard for cardiovascular diagnosis, yet its complexity limits long-term monitoring. Conversely, wearable devices offer convenience but typically capture only a single lead. This paper introduces the Multi-Channel Masked Autoencoder (MCMA), a deep learning model designed to reconstruct a full 12-lead ECG from any single lead. Alongside MCMA, we present ECGGenEval, a comprehensive three-tier benchmark evaluating signal fidelity, physiological consistency, and diagnostic utility. Our results demonstrate that MCMA achieves state-of-the-art performance, effectively bridging the information gap between wearable technology and clinical diagnostics.

Introduction

Cardiovascular diseases remain a leading cause of global mortality. While the 12-lead ECG provides a comprehensive view of cardiac electrical activity, the requirement for ten electrodes makes it impractical for continuous monitoring outside clinical settings. Wearable devices like smartwatches and patches have emerged as accessible alternatives, but they generally provide only a single-lead perspective (e.g., Lead I or Lead II).

Existing attempts to reconstruct 12-lead data from single-lead inputs often suffer from two major drawbacks: they are typically restricted to a specific input lead and their evaluation is often limited to basic signal similarity metrics like Mean Squared Error (MSE). This paper addresses these gaps by proposing a flexible reconstruction model and a rigorous evaluation framework that prioritizes clinical relevance.

Methodology

The MCMA Framework

The Multi-Channel Masked Autoencoder (MCMA) utilizes a symmetric encoder-decoder architecture inspired by ResNet and UNet. The core innovation is the Zero-Padding Strategy. Rather than training separate models for different leads, the system treats the 12-lead ECG as a 12-channel input where 11 channels are masked (set to zero). By training on these masked inputs, the model learns to reconstruct the missing 11 leads from whichever single lead is provided.

Overview of the MCMA framework, illustrating the reconstruction of a 12-lead ECG from arbitrary single-lead wearable inputs and the subsequent three-tier evaluation.

Model Architecture

The MCMA architecture consists of Multi-Channel Blocks (MCBlock) for downsampling and Multi-Channel Transpose Blocks (MCTBlock) for upsampling. This design allows the model to capture complex spatial and temporal correlations between the different ECG leads, ensuring that the generated signals are not just mathematically similar but physiologically plausible.

Detailed architecture of the Multi-Channel Masked Autoencoder (MCMA), featuring symmetric downsampling (MCBlock) and upsampling (MCTBlock) modules.

Comprehensive Evaluation: ECGGenEval

To ensure the reconstructed ECGs are clinically useful, we introduced ECGGenEval, which assesses performance across three levels:

  1. Signal-level: Traditional metrics including MSE and Pearson Correlation Coefficients (PCC).
  2. Feature-level: Evaluation of Mean Heart Rate (MHR) consistency across all 12 leads, ensuring the model maintains the underlying cardiac rhythm.
  3. Diagnostic-level: Testing the generated ECGs against a pre-trained cardiologist-level classifier to determine if the reconstruction preserves diagnostic markers for conditions like atrial fibrillation or bundle branch blocks.

Datasets and Experimental Setup

The model was trained and validated using the PTB-XL dataset (over 21,000 recordings). Generalizability was tested using the CPSC2018 dataset as an external set. For diagnostic evaluation, the CODE-test set was employed, focusing on six distinct arrhythmia types.

Results and Discussion

MCMA demonstrated superior performance across all benchmarks. In internal testing, the model achieved a mean MSE of 0.0317 and a Pearson correlation of 0.7885. More importantly, the physiological stability was high, with a heart rate standard deviation across generated leads of only 1.0481 BPM.

In diagnostic tests, the reconstructed 12-lead ECGs (generated from Lead I) achieved an F1-score of 0.8233, closely approaching the 0.8872 score of original clinical 12-lead recordings. This indicates that the MCMA successfully recovers the vast majority of information required for accurate medical diagnosis.

Conclusion

The MCMA model provides a flexible and robust solution for enhancing the diagnostic capability of wearable devices. By moving beyond simple signal matching to a multi-tiered evaluation of physiological and diagnostic integrity, this research paves the way for more reliable long-term cardiac monitoring. Future work will focus on integrating these software-level advancements with physical sensing layers to account for real-world noise and electrode variability.

Summary updated

Abstract

In the context of cardiovascular diseases (CVD) that exhibit an elevated prevalence and mortality, the electrocardiogram (ECG) is a popular and standard diagnostic tool for doctors, commonly utilizing a 12-lead configuration in clinical practice. However, the 10 electrodes placed on the surface would cause a lot of inconvenience and discomfort, while the rapidly advancing wearable devices adopt the reduced-lead or single-lead ECG to reduce discomfort as a solution in long-term monitoring. Since the single-lead ECG is a subset of 12-lead ECG, it provides insufficient cardiac health information and plays a substandard role in real-world healthcare applications. Hence, it is necessary to utilize signal generation technologies to reduce their clinical importance gap by reconstructing 12-lead ECG from the real single-lead ECG. Specifically, this study proposes a multi-channel masked autoencoder (MCMA) for this goal. In the experimental results, the visualized results between the generated and real signals can demonstrate the effectiveness of the proposed framework. At the same time, this study introduces a comprehensive evaluation benchmark named ECGGenEval, encompassing the signal-level, feature-level, and diagnostic-level evaluations, providing a holistic assessment of 12-lead ECG signals and generative model. Further, the quantitative experimental results are as follows, the mean square errors of 0.0178 and 0.0658, correlation coefficients of 0.7698 and 0.7237 in the signal-level evaluation, the average F1-score with two generated 12-lead ECG is 0.8319 and 0.7824 in the diagnostic-level evaluation, achieving the state-of-the-art performance. The open-source code is publicly available at https://github.com/CHENJIAR3/MCMA.
BibTeX
@inproceedings{chen2024multi,
  author = {Jiarong Chen and Wanqing Wu and Shenda Hong},
  title = {{Multi-Channel Masked Autoencoder and Comprehensive Evaluations for Reconstructing 12-Lead ECG from Arbitrary Single-Lead ECG}},
  booktitle = {AIDSH @ KDD},
  year = {2024},
  url = {https://openreview.net/forum?id=lIX6BKDPJW},
}
Figure