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.
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.
Comprehensive Evaluation: ECGGenEval
To ensure the reconstructed ECGs are clinically useful, we introduced ECGGenEval, which assesses performance across three levels:
- Signal-level: Traditional metrics including MSE and Pearson Correlation Coefficients (PCC).
- Feature-level: Evaluation of Mean Heart Rate (MHR) consistency across all 12 leads, ensuring the model maintains the underlying cardiac rhythm.
- 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