Abstract
Electrocardiogram (ECG) has emerged as a widely accepted diagnostic instrument for cardiovascular diseases (CVD). The standard clinical 12-lead ECG configuration causes considerable inconvenience and discomfort, while wearable devices offers a more practical alternative. To reduce information gap between 12-lead ECG and single-lead ECG, this study proposes a multi-channel masked autoencoder (MCMA) for reconstructing 12-Lead ECG from arbitrary single-lead ECG, and a comprehensive evaluation benchmark, ECGGenEval, encompass the signal-level, feature-level, and diagnostic-level evaluations. MCMA can achieve the state-of-the-art performance. In the signal-level evaluation, the mean square errors of 0.0175 and 0.0654, Pearson correlation coefficients of 0.7772 and 0.7287. In the feature-level evaluation, the average standard deviation of the mean heart rate across the generated 12-lead ECG is 1.0481, the coefficient of variation is 1.58%, and the range is 3.2874. In the diagnostic-level evaluation, the average F1-score with two generated 12-lead ECG from different single-lead ECG are 0.8233 and 0.8410.
Similar content being viewed by others
Introduction
The cardiovascular disease (CVD)1,2 contributes the leading mortality all around the world. Moreover, the prevalence rate continues to show an upward trend in the developing areas in the past decades3, posing a great challenge for researchers and cardiologists to address. In clinical practice, clinicians need to adopt some characterization tools4 to diagnose cardiovascular disease, and one of the most popular tools is the standard 12-lead electrocardiogram (ECG). The significant advancements in deep learning have enabled certain researchers to develop models capable of achieving cardiologist-level proficiency in interpreting 12-lead electrocardiograms (ECGs). For instance, Ribeiro et al. have successfully trained such a cardiologist-like model, as detailed in their study5. In conclusion, the 12-lead ECG can provide comprehensive cardiac information from various views for doctors and classification models, playing an essential role in cardiac healthcare.
However, the 12-lead ECG signal collection process puts at least 10 electrodes on the user’s surface, which causes considerable inconvenience and discomfort for users, and make long-term cardiac health monitoring difficult. Up to now, the standard 12-lead ECG is traditionally used in the hospital for short-term diagnosis, usually lasting about 1 min, while long-term monitoring6 is essential for capturing the paroxysmal cardiac abnormalities. Consequently, the pursuit of user-friendly devices capable of capturing ubiquitous electrocardiogram (ECG) signals is a priority for both researchers and markets, including patch6,7,8, smartwatch9,10,11, and armband12,13,14. Further, the single-lead ECG has been used for cardiac abnormality classification, such as the lead I ECG for the Atrial Fibrillation15, the lead V1 ECG for the Brugada Syndrome16, and the lead aVR ECG for the Sinus Bradycardia17. While wearable devices offer the advantage of ambulatory monitoring by collecting single-lead ECG signals, they do not match the diagnostic depth of a standard 12-lead ECG. The limitation arises from these devices capture the heart’s electrical activity from a restricted subset of perspectives, which may not provide a comprehensive assessment of cardiac health.
It is of great importance to strike a harmonious balance between clinical effectiveness and application feasibility. On the one hand, the clinical standard 12-lead ECG can comprehensively measure cardiac health5, but it causes somewhat inconvenience and discomfort. On the other hand, wearable devices have been a popular choice for users, but they are with limited clinical importance. Then, many researchers tried to reduce the gap between the reduced-lead and 12-lead ECG, like the challenge proposed by Reyna et al.18. The challenge asks to access the diagnostic potential of the reduced-lead ECG, including 6-lead, 4-lead, 3-lead, and 2-lead ECG. In this challenge, Nejedly et al.19 adopt the ensemble learning, residual network, and attention mechanism to achieve state-of-the-art performance, and similarly in these researches20,21,22,23. Unfortunately, these mentioned studies only focus on the classification performance, merely providing an indirect approach to reduce the gap between the reduced-lead and 12-lead ECG.
Subsequently, some researchers try to provide a direct approach to reduce the gap between the reduce-lead (Specifically, single-lead) and 12-lead ECG, that is, reconstructing 12-lead ECG with the reduced-lead ECG24,25,26,27,28,29,30,31,32,33. Prior works managed to explore transformation between the Frank lead and the standard 12-lead ECG, in which the inverse Dower matrix is released by Edenbrandt et al.24, and it turns 12-lead ECG into 3-dimensional Vectorcardiogram. Nelwan et al.25 attempt to reconstruct 12-lead ECG from reduced lead sets. The experimental findings indicate a strong correlation coefficient of ~0.932 when one or two precordial leads are excluded from the lead set. Maheshwari et al.26 adopt a solution for reconstructing 12-lead ECG from 3-lead ECG, and the reconstruction score is about 0.9187 in the testing phase. However, the assumption of dominantly linear relationship between ECG vectors can not fit the human heart electrical conduction system. Some researchers adopted autoencoders with different model architectures, such as Atoui et al.27 proposed Artificial Neural Network (ANN), and successfully realized the generation process of 3-lead ECG to the remaining 5 chest leads. This work and the following work all adopt the training idea of automatic encoders, including Sohn et al.28 used LSTM; Gundlapalle et al.29 combined CNN and LSTM; Garg et al.30 combined the attention mechanism in autoencoder, thereby improving the feature expression ability. Generative adversarial network (GAN)34 also attracts a number of research attention, such as refs. 31–33. Lee et al.31 adopt the conditional generative adversarial network(CGAN) to explore the feasibility of converting limb leads into chest leads. It is worth mentioned that the input of CGAN is ECG, instead of the random noise in the traditional GAN. The average structural similarity index (SSIM) between the generated ECG signal and the real ECG signal is 0.92, and the percent root mean square difference (PRD) is only 7.21%. Seo et al.32 also use the CGAN for reconstructing 12-lead, and the Mean Absolute Error (MAE) between the generated and real ECG signals is only 0.25. Joo et al.33 proposes a novel CGAN that consists of two generators, and achieves good reconstruction performance, like the root mean square error between the generated and real 12-lead ECG is 0.32. Additionally, our previous work35 also uses this method to reconstruct 12-lead ECG from lead I ECG. However, the training instability and poor diversity make generating adversarial networks to difficultly address this reconstruction task, and most of the above-mentioned studies are limited flexible, since they only work on a fixed limb lead30,32,35. Chen et al.36 propose a novel framework to establish Electrocardio panorama; however, only the 12-lead ECG signals are considered useful, while the remaining non-standard lead signals are deemed meaningless. Consequently, there is a critical need to investigate methods for reconstructing the 12-lead ECG from an arbitrary single-lead ECG, While these methodologies are capable of approximating the reconstruction of a 12-lead electrocardiogram (ECG) from limited-lead inputs, there remains a significant research gap that needs to be addressed in the domain of 12-lead ECG reconstruction. Firstly, the traditional generative models usually focus on the fixed single-lead, instead of arbitrary single-lead ECG. Secondly, the related works27,28,29,30,31,32,33,35 lack a comprehensive evaluation benchmark, mainly focus on the signal-level evaluation. Therefore, the contributions in this study are as follows:
-
This study proposes a multi-channel masked autoencoer, MCMA, and it can convert arbitrary single-lead ECG into 12-lead ECG.
-
This study designs a comprehensive evaluation benchmark, ECGGenEval, including signal-level, feature-level, and diagnostic-level evaluation.
-
MCMA can achieve state-of-the-art reconstruction performance in the ECGGenEval across the internal and external testing datasets, with a mean square error of 0.0175 and a Pearson correlation coefficient of 0.7772 in the internal testing dataset.
In a word, MCMA demonstrates its efficacy in reconstructing a 12-lead ECG from a single lead, thereby offering significant potential to augment the capabilities of wearable health monitoring devices in the digital health era. This advancement is poised to improve the diagnostic and monitoring capabilities of these devices, ensuring more accurate and accessible health assessments for users.
Method
ECG background
ECG capture the electrical activity of the heart, characterized by distinct waveforms such as the P-wave, QRS-complex, and T-wave. The standard 12-lead ECG has been a prevalent diagnostic tool in clinical practice due to its ability to provide a comprehensive view of cardiac function. This tool, however, requires the placement of 10 electrodes on the body’s surface. The electrode positioning in the 12-lead ECG is detailed in Table 1.
Dataset
This study conducts a large-scale 12-lead ECG datasets, consisting of 28,833 recordings from three public 12-lead ECG datasets, i.e., PTB-XL37,38, CPSC201839, and CODE-test5. The proposed framework is trained and validated with PTB-XL initially, and using the internal and two external testing datasets to further prove its feasibility.
PTB-XL37,38 is used for model training, validating, and testing. As a large dataset, PTB-XL involves 21,799 clinical 10-s 12-lead ECG signals, and the sampling frequency is 500 Hz. Based on the clinical standard, this dataset includes 71 kinds of ECG statements. As recommended, this study adopts the standard tenfold setting, in which the folds from the 1st fold to the 8th fold is the training set, and the 9th fold and the 10th fold act as the validation set and testing set, respectively. The ratio for training:validation: and testing is about 8:1:1.
CPSC201839 is used as an external testing set since the data distribution and information do not appear in model training and choosing. CPSC2018 contains 6877 12-lead ECG, and these lengths varied from 6 s to 60 s with 500 Hz in sampling frequency.
CODE-test is also used as an external testing set, particularly for diagnostic-level evaluation. CODE-test includes 827 12-lead ECG collected from different patients with different arrhythmia. Ribeiro et al.5 contributed a trained cardiologist-level classification model for this testing dataset.
Table 2 presents the data distribution for the signal-level and feature-level evaluation in PTB-XL and CPSC2018. Table 3 presents the data distribution for the diagnostic-level evaluation in CODE-test, including 6 distinguished arrhythmia types in this dataset.
MCMA
Multi-Channel Masked Autoencoder (MCMA) masks 11 different leads, leaving only a single-lead ECG to generate the standard 12-lead ECG. MCMA takes a single-lead ECG as input and produces a 12-lead ECG as output, both with a signal length of 1024. The abstract of MCMA is seen in Fig. 1. In this study, no preprocessing steps like filtering or scaling are applied to avoid altering the ECG signals. Additionally, MCMA uses a multi-channel masked configuration to reduce training and inference costs, requiring only one model, which sets it apart from related approaches in the prior works30,32,33,35.
Model architecture
MCMA needs a designed architecture, as seen in Fig. 2. Motivated by ResNet40 and UNet41. The model includes two modules, namely, the downsampling and upsampling modules, which are composed of the multi-convolution block (MCBlock) and multi-convolution-transpose block (MCTBlock), respectively. The kernel size (k) is 5 and the window size (s) is 2. The choice of setting kernel size as 5 for MCBlock and MCTBlock layers aims in achieving effective feature extraction in deep learning models, particularly in those processing data with rich spatial hierarchies. The window size is usually 2 for the striding process, which can reduce the feature dimension and improve the learning ability. The activation function is GELU. The experimental results with different hyperparameters can be seen in Supplementary materials. To improve the gradient stability, layer normalization (LN) and instance normalization (IN) are used in each block. The skip connections can speed up the convergence rate of the model and improve the representation ability. Additionally, the basic training recipe is provided in Table 4.
MCMA implementation
Padding strategy
MCMA utilizes a zero-padding strategy to retain the space information for each single-lead ECG. When the single-channel ECG is processed into the 12-channel format, while the other channels are zeros, as seen in Eq. (1).
In Eq. (1), the shape of index matrix for zero-padding is 12 × 1, Iz(i) = 1 with other elements being zeros. Specifically, the output shape equals the input shape, and the shape of ecg12 is 12 × N, then the shape of ecg12[i] is 1 × N, so the output shape also is 12 × N. With zero-padding, MCMA can adaptively solve different inputs. To highlight its advantages, the 12 copies for the single-lead ECG acts as a comparison, named as the copy-padding strategy. The index matrix for copy-padding strategy, Ic, all elements are 1. At the same time, the arbitrary input lead and the fixed lead (lead I) are compared. In addition, the 12-lead ECG is provided in model training, and the padding strategy aims to mask the original 11-lead ECG with zeros or the remaining single-lead ECG in the standard 12-lead ECG. Meanwhile, only the single-lead ECG exists in the real-world application process, it should be with the padding strategy for the proposed framework.
Loss function
The generative models mainly involve autoencoder(AE)42, generative adversarial network(GAN)34, diffusion model43. Although the diffusion model has shown its great potential and ability in various tasks, the sampling speed44 is challenging. GAN32,33,35 and AE30 have been studied by the previous research works. Additionally, it is worth mentioning that the traditional GAN is not enough to complete this task, which supports converting random noise into the generative signals. Therefore, the researchers of this task adopted a conditional generative adversarial network, including Seo et al.32 Joo et el.33, and our previous study35. In this study, the autoencoder can be a feasible solution for this 12-lead ECG reconstruction task, due to the training stability. Further, the proposed framework needs to be compared with the GAN-based32,33,35 and AE-based30 methods.
The autoencoder (AE) can extract the latent representation from the raw data and convert the latent representation into the target output. The common loss function (L) is shown in Eq. (2).
In Eq. (2), the 12-lead and single-lead ECG signals are represented by ecg12 and ecg1. P means the padding strategy, as shown in Eq. (1), i means the index, varying from 1 to 12. MCMA employs a zero-padding strategy as default, while copy-padding is utilized for comparative analysis within the ablation study.
Inferencing MCMA
After the training process, MCMA can be used in real-world applications, i.e., the inferencing (testing) process. The single-lead ECG with the zeros-padding strategy is the input of MCMA. Then, the application process for MCMA can be seen in Eq. (3).
In Eq. (3), gecg is the generated 12-lead ECG with MCMA, ecg1 is the single-lead ECG collected by wearable devices, Iz can convert ecg1 into the input of AE.
Comprehensive evaluations of ECG reconstruction
This study introduces ECGGenEval, a comprehensive evaluation benchmark for 12-lead ECG reconstruction, including three distinct dimensions: signal-level, feature-level, and diagnostic-level.
Signal-level evaluations
This study adopts the Pearson correlation coefficient (PCC) and mean square error (MSE) in the signal-level evaluation. The real and generated ECG signal are defined as recg and gecg. Then, the definitions for PCC and MSE are shown in Eqs. (4) and (5).
In these equations, as Eqs. (4) and (5), μ(*) and σ(*) denotes the mean value and standard deviation, respectively. PCC varies from −1 to 1, and MSE is bigger than 0. The relationship between PCC and generation performance is positively related, while the relationship between MSE and generation performance is negatively related. For the signal-level evaluation, a better generative model should be with a higher PCC and lower MSE.
Feature-level evaluations
Furthermore, this study adopts the estimated heart rate of the generated 12-lead ECG for the feature-level evaluation. Since the heart rate in real 12-lead ECG signals theoretically occurs simultaneously, and the generated signals should meet this requirement. The mean heart rate (MHR) at the jth lead can be calculated, as shown in Eq. (6).
In Eq. (6), the ith detected R-wave in jth lead is denoted as R(i, j), and its unit is second. Therefore, MHR can represent the heartbeat per minute. Based on the 12 MHR from different 12-lead ECG, the average value MMHR can be computed with Eq. (7). Then, the feature-level evaluation involves standard deviation (SD), Range (the difference between maximum and minimum), and coefficient of variation (CV), expressed as MHRSD, MHRRange and MHRCV, respectively. The calculation processes can be seen in Eq. (8), Eq. (9) and Eq. (10), respectively.
The reference estimation is completed with the original 12-lead ECG These feature-level evaluation is good if the inter-lead heart rates are consistent.
Diagnostic-level evaluations
This study also adopts the diagnostic-level evaluation for this 12-lead ECG reconstruction task. MCMA is able to convert the limit-lead (even single-lead) ECG into 12-lead ECG, which bridges the limited-lead ECG to the classifiers which trained with 12-lead ECG as input. Therefore, this study can evaluate the generated 12-lead ECG using classification performance, including the precision (Pre), recall (Rec), specificity (Spe) and F1-score (F1), as shown in literature5. These calculation process of classification metric are seen in Eq. (11), Eq. (12), Eq. (13) and Eq. (14).
Also, the original classification performance with the real 12-lead ECG is the standard reference, and the generated 12-lead ECG with the other methods30,32,33,35 are used in the result comparison.
Results
Signal-level performance
First of all, the signal-level evaluation is the primary evaluation metric, such as MSE and PCC. In contrast to conventional approaches, this scheme offers a distinct advantage: it enables the conversion of an arbitrary single-lead ECG to a 12-lead ECG without the necessity of training multiple generative models. The experimental results of MSE and PCC are shown in Table 5, where the horizontal direction represents the output and the vertical direction represents the input. Besides, the reconstruction performance in the external dataset, CPSC2018, is seen in Table 6.
Feature-level performance
This study also provides the feature-level evaluation results for MCMA, including the standard deviation MHRSD, Range MHRRange and coefficient of variation MHRCV. The feature-level evaluation results in the internal testing set PTB-XL and external testing set CPSC2018 are shown in Table 7 and Table 8, respectively. In the mentioned two tables, the first group is the reference value of the original 12-lead ECG. Additionally, the R-peak recognition is completed by algorithm45.
Diagnostic-level performance
Lastly, this study demonstrates the diagnostic-level performance of MCMA. The classifier is trained and validated by Ribeiro et al.5, which only accepts the 12-lead ECG. Then, it is essential to present the classification performance with the generated 12-lead ECG. For example, Table 9 shows the classification performance of the generated 12-lead ECG with lead I. The detailed diagnostic-level evaluations are shown in Table 10, including the original 12-lead ECG (as the reference), the single-lead ECG (i.e., MCMA input) and the generated 12-lead ECG (i.e., MCMA output), which directly shows the gain in the arrhythmia classification task.
Comparison with other methods
MCMA compares with other research works, including Garg et al.30, Seo et al.32, and Joo et al.33. As known, Garg et al.30 adopt the lead II, while Seo et al.32 and Joo et al.33 utilizes the lead I. Moreover, MCMA can convert arbitrary single-lead ECG into the standard 12-lead ECG. The comparisons in signal-level, feature-level, and diagnostic-level are shown in Table 11, Table 12, and Table 13.
Ablation study
MCMA utilizes two key modules, one for arbitrary single-lead ECG reconstruction, and another for zero-padding strategy. Then, it is necessary to compare with different settings, including fixed-channel (lead I as an example) and copy-padding strategy. The signal-level evaluation metric includes mean square error (MSE) and Pearson correlation coefficient (PCC). The experimental results comparison with different settings can be shown in Table 14, including the lead I and the average value for 12 single-lead ECG. In most cases, MCMA has achieved excellent result in 12-lead ECG reconstruction task.
Case study
The training process details of MCMA can be illustrated as seen in Fig. 3. To show the advantages of the proposed framework, the generated and real 12-lead ECG should be clearly shown in Fig. 4, in which the generated and the real signals are colored blue and red. Figure 4 demonstrates the great generation ability of the proposed framework. For example, the average MSE and PCC between the generated and real 12-lead ECG is 0.0032 and 0.9560, and it is concluded that the generator can generate 12-lead ECG with single-lead ECG. Besides the internal testing dataset (i.e., PTB-XL), the external testing dataset’s (i.e., CPSC2018) reconstruction performance demonstrates the proposed framework’s advantages from another aspect, as seen in Fig. 5.
Based on the experimental result provided in Fig. 4 and Fig. 5, it is shown that the multi-channel masked autoencoder (MCMA) can be used to reconstruct the 12-lead ECG with single-lead ECG. In clinical practice, the ECG collected by wearable devices can be with different signal length, instead of the fixed length. It is necessary to demonstrate the proposed framework cloud also works with the variable-duration ECG signals, and the signal reconstruction result with 10-s ECG is seen in Fig. 6. In this case, the 5000 points should be filled with the extra 120 points, and it can be as the 5 individual samples for MCMA to reconstruct 12-lead ECG with single-lead ECG as input.
Discussion
In this work, we propose a multi-channel masked autoencoder, MCMA, for generating the standard 12-lead ECG with arbitrary single-lead ECG. Further, this study establishes a comprehensive evaluation benchmark, ECGGenEval, including the signal-level, feature-level, and diagnostic-level evaluation. MCMA can work well in ECGGenEval, achieving state-of-the-art performance. MCMA can convert arbitrary single-lead ECG into 12-lead ECG, instead of the fixed-lead ECG30,32,33,35. Secondly, we provide multiple-level evaluation results in an internal and two external testing datasets, and the details are as follows.
Firstly, according to the signal-level evaluation results from Tables 5 and 6, on the mentioned experimental results, it is known that the proposed framework can reconstruct high-fidelity 12-lead ECG with single-lead ECG. The average MSE and PCC in PTB-XL are 0.0175 and 0.7772, while the average MSE and PCC in CPSC2018 are 0.0654 and 0.7287, respectively. The reconstruction performance in the internal and external testing dataset can demonstrate its advantages, and MCMA can reconstruct the standard 12-lead ECG with arbitrary single-lead ECG as input. Therefore, the proposed method can provide a feasible solution when collecting the standard 12-lead ECG is inconvenient and difficult, like remote cardiac healthcare. In the signal-level comparison, the MSE and PCC for generating 12-lead ECG with lead II are 0.0178 and 0.8088, better than Garg et al.30, with the MSE of 0.0292 and PCC of 0.7981. Therefore, MCMA can be used for 12-lead ECG reconstruction tasks while the single-lead ECG is collected, and the signal-level evaluation provides a novel solution in real-world cardiac healthcare applications.
Secondly, Tables 7 and 8 complete the feature-level evaluation. For the internal testing dataset, PTB-XL, Table 7 demonstrates that the heart rate estimation in different leads is similar in the generated 12-lead ECG, and it is even better than the original 12-lead ECG. The estimated heart rate from the real 12-lead ECG may be different, since the noise exists in special channels. Table 7 shows that the average MHRSD, MHRCV, and MHRRange are 1.0481, 1.58%, and 3.2874, in which the optimal result is from the generated 12-lead ECG by lead V4 ECG. Table 8 shows the external evaluation in CPSC2018, the average MHRSD, MHRCV and MHRRange are 0.9483, 1.24%, and 3.0916, while the optimal result is from the generated 12-lead ECG by lead II ECG. The generated 12-lead ECG from arbitrary single-lead ECG can produce a good heart rate consistency in different leads, and it can even be better than the original 12-lead ECG in some cases, due to the ECG signal denoising function in the proposed framework. Table 12 demonstrates the advantages of MCMA over others, which can be highlighted as red. Therefore, the feature-level evaluation can demonstrate the advantages of MCMA.
Based on Table 9, the classifier can adopt the generated 12-lead ECG for arrhythmia classification. The average F1-score over 6 classes is 0.8319. Then, it is proven that MCMA can convert the single-lead ECG into the 12-lead ECG, and the generated 12-lead ECG can retain the pathological information, and it is different to the signal-level and feature-level evaluation. Therefore, with the multi-channel masked autoencoder, it is possible to complete arrhythmia classification with single-lead ECG, like lead I ECG in Table 9. Further, according to Table 10, the classification performance of the generated 12-lead ECG is better than that of single-lead ECG and similar to the real 12-lead ECG, which can demonstrate the classification performance gain brought by MCMA. The generated 12-lead from lead I can provide the closest classification performance, the average F1 is 0.8319, which exceeds other cases. According to Table 13, the classification performance with generated 12-lead ECG is improved. For example, taking lead II as input, Garg et al.30can achieve an F1 of 0.7807, lower than the proposed method. Similarly, with the lead I as input, Seo et al.32 and Joo et al.33 have an F1 of 0.8299 and 0.7730, respectively, while MCMA can be with a F1 with 0.8223. From the view of classification task, the classification performance in the above tables demonstrates the generated 12-lead ECG can be used for cardiac abnormality detection, which can prove its advantage in bridging the single-lead ECG and 12-lead ECG, and it is effective to generate the pathological information with single-lead ECG as input.
As Table 14 shows, the proposed framework is effective. The multi-channel strategy can support arbitrary single-lead to generate 12-lead ECG. Although the reconstruction performance of lead I is slightly lower than the fixed-channel. When the lead I ECG inputs, the fixed-channel can have a MSE of 0.0176 and a PCC of 0.7879, while MCMA can be with a MSE of 0.0177 and a PCC of 0.7906. However, for the fixed-channel, it is difficult to realize 12-lead ECG reconstruction with other leads, and the training and inference cost is largely different in training and storing 12 models with this setting. Further, the zero-padding strategy is better than the copy-padding strategy, while the two strategies both support the 12-lead reconstruction with arbitrary single-lead ECG. The mean MSE and PCC in MCMA are 0.0175 and 0.7772, while the mean MSE and PCC in copy-padding are 0.0197 and 0.7198, respectively.
This study is with the following advantages, from the engineering and clinical perspectives. Firstly, the generated signal is similar to the original signal, as the mean square errors of 0.0175 and 0.0654, correlation coefficients of 0.7772 and 0.7287 in the signal-level evaluation. Secondly, the generated signal can be used in the arrhythmia classification, as the average F1 with two generated 12-lead ECG is 0.8233 and 0.8410 in the diagnostic-level evaluation. According to the mentioned advantages, the contributions are as follows:
Further, this study is expected to be a feasible solution for wearable ECG monitoring, and it is able to improve the clinical importance of arbitrary single-lead ECG. For this research project, these experimented is conducted in these public datasets, such as PTB-XL and CPSC2018. Naturally, there are some limitations in this study, and these issues should be addressed in the future, as follows. High-quality electrocardiogram (ECG) signal acquisition method can significantly impact the reconstruction performance, and it may be addressed in the sensing layer46 or the algorithmic layer43. The generated signals necessitate evaluation by professional clinicians to ascertain their viability as a long-term substitute for the conventional 12-lead ECG in continuous monitoring scenarios.In other words, the question is whether a physician can render an equivalent diagnosis utilizing the 12-lead ECG generated by MCMA. Consequently, additional research endeavors are essential to advance the mentioned problems, ultimately realizing the considerable clinical relevance and practical utility.
In a word, this study proposes a novel generative framework to reconstruct 12-lead ECG with a single-lead ECG, as multi-channel masked autoencoder (MCMA), and it involves two main contributions. Firstly, unlike other methods, the proposed framework can convert arbitrary single-lead ECG into the standard 12-lead ECG. The experimental results showed that the proposed framework had excellent performance, achieving state-of-the-art performance on the proposed benchmark, ECGGenEval, including the signal-level, feature-level, and diagnostic-level evaluation. For example, the average Pearson correlation coefficients in the internal and external testing set are 0.7772 and 0.7287, outperforming the related approaches. Additionally, it is shown that the zero-padding strategy can play an important role in the proposed framework, beats the copy-padding strategy. In the future, it is necessary to study high-quality ECG and clinical validation, to let the proposed framework play an important role in clinical practice, which provides a novel feasible solution for long-term cardiac health monitoring.
Data availability
All datasets used in this study are openly available. PTB-XL: https://physionet.org/content/ptb-xl/1.0.3/, CPSC-2018: http://2018.icbeb.org/Challenge.html, CODE-test: https://zenodo.org/records/3765780.
Code availability
The open-source code is publicly available at https://github.com/CHENJIAR3/MCMA.
References
Nabel, E. G. Cardiovascular disease. N. Engl. J. Med. 349, 60–72 (2003).
Roth, G. A. et al. Global, regional, and national age-sex-specific mortality for 282 causes of death in 195 countries and territories, 1980–2017: a systematic analysis for the global burden of disease study 2017. Lancet 392, 1736–1788 (2018).
Amini, M., Zayeri, F. & Salehi, M. Trend analysis of cardiovascular disease mortality, incidence, and mortality-to-incidence ratio: results from global burden of disease study 2017. BMC Public Health 21, 1–12 (2021).
Holter, N. J. New method for heart studies: Continuous electrocardiography of active subjects over long periods is now practical. Science 134, 1214–1220 (1961).
Ribeiro, A. H. et al. Automatic diagnosis of the 12-lead ecg using a deep neural network. Nat. Commun. 11, 1760 (2020).
Turakhia, M. P. et al. Diagnostic utility of a novel leadless arrhythmia monitoring device. Am. J. Cardiol. 112, 520–524 (2013).
Lai, D., Bu, Y., Su, Y., Zhang, X. & Ma, C.-S. Non-standardized patch-based ECG lead together with deep learning based algorithm for automatic screening of atrial fibrillation. IEEE J. Biomed. Health Inform. 24, 1569–1578 (2020).
Liu, C.-M. et al. Enhanced detection of cardiac arrhythmias utilizing 14-day continuous ECG patch monitoring. Int. J. Cardiol. 332, 78–84 (2021).
Tison, G. H. et al. Passive detection of atrial fibrillation using a commercially available smartwatch. JAMA Cardiol. 3, 409–416 (2018).
Bumgarner, J. M. et al. Smartwatch algorithm for automated detection of atrial fibrillation. J. Am. Coll. Cardiol. 71, 2381–2388 (2018).
Perez, M. V. et al. Large-scale assessment of a smartwatch to identify atrial fibrillation. N. Engl. J. Med. 381, 1909–1917 (2019).
Rachim, V. P. & Chung, W.-Y. Wearable noncontact armband for mobile ecg monitoring system. IEEE Trans. Biomed. Circuits Syst. 10, 1112–1118 (2016).
Li, B. M. et al. Influence of armband form factors on wearable ECG monitoring performance. IEEE Sensors J. 21, 11046–11060 (2021).
Lázaro, J. et al. Wearable armband device for daily life electrocardiogram monitoring. IEEE Trans. Biomed. Eng. 67, 3464–3473 (2020).
Hong, S. et al. Encase: an ensemble classifier for ecg classification using expert features and deep neural networks. In: 2017 Computing in cardiology (CinC). https://doi.org/10.22489/CinC.2017.178-245 (2017).
Zanchi, B. et al. Identification of Brugada syndrome based on p-wave features: an artificial intelligence-based approach. Europace 25, euad334 (2023).
Lu, L. et al. Decoding 2.3 million ECGS: Interpretable deep learning for advancing cardiovascular diagnosis and mortality risk stratification. Eur. Heart J.-Digit. Health ztae014 (2024).
Reyna, M. A. et al. Will two do? varying dimensions in electrocardiography: The physionet/computing in cardiology challenge 2021. In: 2021 Computing in cardiology (CinC). https://doi.org/10.23919/CinC53138.2021.9662687 (2021).
Nejedly, P. et al. Classification of ecg using ensemble of residual cnns with attention mechanism. In: 2021 Computing in cardiology (CinC). https://doi.org/10.23919/CinC53138.2021.9662723 (2021).
Srivastava, A. et al. Channel self-attention deep learning framework for multi-cardiac abnormality diagnosis from varied-lead ECG signals. In: 2021 Computing in cardiology (CinC). https://doi.org/10.23919/CinC53138.2021.9662886 (2021).
Han, H. et al. Towards high generalization performance on electrocardiogram classification. In: 2021 Computing in cardiology (CinC). https://doi.org/10.23919/CinC53138.2021.9662737 (2021).
Wickramasinghe, N. L. & Athif, M. Multi-label cardiac abnormality classification from electrocardiogram using deep convolutional neural networks. In: 2021 Computing in cardiology (CinC). https://doi.org/10.23919/CinC53138.2021.9662787 (2021).
Bruoth, E. et al. A two-phase multilabel ecg classification using one-dimensional convolutional neural network and modified labels. In: 2021 Computing in Cardiology (CinC). https://doi.org/10.23919/CinC53138.2021.9662878 (2021).
Edenbrandt, L. & Pahlm, O. Vectorcardiogram synthesized from a 12-lead ecg: superiority of the inverse dower matrix. J. Electrocardiol. 21, 361–367 (1988).
Nelwan, S. P., Kors, J. A., Meij, S. H., van Bemmel, J. H. & Simoons, M. L. Reconstruction of the 12-lead electrocardiogram from reduced lead sets. J. Electrocardiol. 37, 11–18 (2004).
Maheshwari, S., Acharyya, A., Rajalakshmi, P., Puddu, P. E. & Schiariti, M. Accurate and reliable 3-lead to 12-lead ecg reconstruction methodology for remote health monitoring applications. IRBM 35, 341–350 (2014).
Atoui, H., Fayn, J. & Rubel, P. A novel neural-network model for deriving standard 12-lead ECGS from serial three-lead ECGs: application to self-care. IEEE Trans. Inf. Technol. Biomed. 14, 883–890 (2010).
Sohn, J., Yang, S., Lee, J., Ku, Y. & Kim, H. C. Reconstruction of 12-lead electrocardiogram from a three-lead patch-type device using an lSTM network. Sensors-basel. 20, 3278 (2020).
Gundlapalle, V. & Acharyya, A. A novel single lead to 12-lead ecg reconstruction methodology using convolutional neural networks and lstm. In: 2022 IEEE 13th Latin America Symposium on Circuits and System (LASCAS) https://doi.org/10.1109/LASCAS53948.2022.9789045 (2022).
Garg, A., Venkataramani, V. V. & Priyakumar, U. D. Single-lead to multi-lead electrocardiogram reconstruction using a modified attention u-net framework. In: 2023 International Joint Conference on Neural Networks (IJCNN). IEEE. https://doi.org/10.1109/IJCNN54540.2023.10191213 (2023).
Lee, J., Oh, K., Kim, B. & Yoo, S. K. Synthesis of electrocardiogram v-lead signals from limb-lead measurement using r-peak aligned generative adversarial network. IEEE J. Biomed. Health Inform. 24, 1265–1275 (2020).
Seo, H.-C., Yoon, G.-W., Joo, S. & Nam, G.-B. Multiple electrocardiogram generator with single-lead electrocardiogram. Comput. Meth. Prog. Bio. 221, 106858 (2022).
Joo, J. et al. Twelve-lead ecg reconstruction from single-lead signals using generative adversarial networks. Medical Image Computing and Computer Assisted Intervention – MICCAI 2023, 184–194. https://doi.org/10.1007/978-3-031-43990-2_18 (2023).
Goodfellow, I. et al. Generative adversarial networks. Commun. ACM 63, 139–144 (2020).
Zhan, Z. et al. Conditional generative adversarial network driven variable-duration single-lead to 12-lead electrocardiogram reconstruction. Biomed. Signal Process. Control 95, 106377 (2024).
Chen, J., Zheng, X., Yu, H., Chen, D. Z. & Wu, J. Electrocardio panorama: synthesizing new ecg views with self-supervision. In: Zhou, Z. (eds) Proceedings of the Thirtieth International Joint Conference on Artificial Intelligence, IJCAI-21, https://doi.org/10.24963/ijcai.2021/495 (2021).
Strodthoff, N., Wagner, P., Schaeffter, T. & Samek, W. Deep learning for ECG analysis: benchmarks and insights from ptb-xl. IEEE J. Biomed. Health Inform. 25, 1519–1528 (2021).
Wagner, P. et al. Ptb-xl, a large publicly available electrocardiography dataset. Sci. Data 7, 154 (2020).
Liu, F. et al. An open access database for evaluating the algorithms of electrocardiogram rhythm and morphology abnormality detection. J. Med. Imaging Health Inform. 8, 1368–1373 (2018).
He, K., Zhang, X., Ren, S. & Sun, J. Deep residual learning for image recognition. In: Proceedings of the IEEE conference on computer vision and pattern recognition. https://doi.org/10.1109/CVPR.2016.90 (2016).
Ronneberger, O., Fischer, P. & Brox, T. U-net: Convolutional networks for biomedical image segmentation. In: Navab, N., Hornegger, J., Wells, W., Frangi, A. (eds) Medical Image Computing and Computer-Assisted Intervention—MICCAI 2015. MICCAI 2015. Lecture Notes in Computer Science, vol 9351. Springer, Cham. https://doi.org/10.1007/978-3-319-24574-4_28 (2015).
Hinton, G. E. & Salakhutdinov, R. R. Reducing the dimensionality of data with neural networks. Science 313, 504–507 (2006).
Ho, J., Jain, A. & Abbeel, P. Denoising diffusion probabilistic models. Adv. Neural Inf. Process. Syst. 33, 6840–6851 (2020).
Song, J., Meng, C. & Ermon, S. Denoising diffusion implicit models. In: International Conference on Learning Representations, ICLR 2021, https://arxiv.org/abs/2010.02502 (2021).
Makowski, D. et al. NeuroKit2: A python toolbox for neurophysiological signal processing. Behav. Res. Methods 53, 1689–1696 (2021).
Zhang, B. et al. A three-dimensional liquid diode for soft, integrated permeable electronics. Nature 628, 84–92 (2024).
Acknowledgements
This work was supported by National Natural Science Foundation of China (No. 62102008); Clinical Medicine Plus X - Young Scholars Project of Peking University, the Fundamental Research Funds for the Central Universities (PKU2024LCXQ030).
Author information
Authors and Affiliations
Contributions
J.C. contributed to the formal analysis, methodology, visualization, and original draft writing. W.W. provided supervision for the study, and T.L. also offered supervision. S.H. was responsible for the investigation, supervision, funding acquisition, and resource management.
Corresponding author
Ethics declarations
Competing interests
The authors declare no competing interests.
Additional information
Publisher’s note Springer Nature remains neutral with regard to jurisdictional claims in published maps and institutional affiliations.
Supplementary information
Rights and permissions
Open Access This article is licensed under a Creative Commons Attribution 4.0 International License, which permits use, sharing, adaptation, distribution and reproduction in any medium or format, as long as you give appropriate credit to the original author(s) and the source, provide a link to the Creative Commons licence, and indicate if changes were made. The images or other third party material in this article are included in the article’s Creative Commons licence, unless indicated otherwise in a credit line to the material. If material is not included in the article’s Creative Commons licence and your intended use is not permitted by statutory regulation or exceeds the permitted use, you will need to obtain permission directly from the copyright holder. To view a copy of this licence, visit http://creativecommons.org/licenses/by/4.0/.
About this article
Cite this article
Chen, J., Wu, W., Liu, T. et al. Multi-channel masked autoencoder and comprehensive evaluations for reconstructing 12-lead ECG from arbitrary single-lead ECG. npj Cardiovasc Health 1, 34 (2024). https://doi.org/10.1038/s44325-024-00036-4
Received:
Accepted:
Published:
Version of record:
DOI: https://doi.org/10.1038/s44325-024-00036-4
This article is cited by
-
Contactless 12-lead electrocardiogram via deep computational radar
npj Biomedical Innovations (2026)








