ImputeECG: Deep Learning Reconstruction of Complete 12-Lead Electrocardiograms from Incomplete Recordings for Cardiac Assessment

📅 2026-07-06
📈 Citations: 0
Influential: 0
📄 PDF
🤖 AI Summary
This study addresses the challenge of incomplete clinical 12-lead electrocardiogram (ECG) recordings—often caused by format constraints, signal corruption, or missing leads—which hinders AI-assisted diagnosis. The authors propose ImputeECG, the first method to employ a masked conditional one-dimensional Transformer autoencoder for ECG reconstruction, capable of restoring full 10-second 12-lead signals while preserving all observed data. Trained on PTB-XL and CPSC2018 datasets and validated on the real-world Kailuan clinical cohort, ImputeECG reduces mean absolute error (MAE) in missing regions by 41.7–51.0% on PTB-XL and achieves a downstream multi-label classification AUROC of 92.28%. In real clinical data, it improves gender prediction AUROC to 85.8% and lowers age prediction MAE to 9.87 years, significantly enhancing both morphological fidelity and diagnostic performance.
📝 Abstract
Complete digital 12-lead electrocardiograms (ECGs) are essential for AI-enabled cardiovascular assessment, yet many clinical ECG records, particularly those digitized from ECG images, remain incomplete because of short display formats, incomplete waveform digitization, lead loss, or signal corruption. We developed ImputeECG, a mask-conditioned one-dimensional Transformer autoencoder that completes 12-lead, 10-s ECGs while retaining all observed samples. The model was trained on PTB-XL and evaluated on PTB-XL and CPSC2018 under simulated incomplete settings, with additional real-world validation in a 43,633-record Kailuan clinical cohort after ECG image digitization. Metrics were computed over originally missing regions, with analyses of morphology and downstream diagnostic utility. On PTB-XL, ImputeECG reduced missing-region MAE by 41.7-51.0% and MSE by 54.0-63.7% versus the strongest baseline, with lower errors in R-peak timing, RR interval, QRS duration, QT interval, and P-wave, QRS-complex, and T-wave reconstruction. On CPSC2018, ImputeECG reduced MAE by 49.7-51.9%, supporting external generalization. In downstream multi-label classification, ImputeECG restored performance to 92.28% AUROC and 33.88% AUPRC in the most incomplete PTB-XL setting, approaching complete-ECG performance. On CPSC2018, completed ECGs achieved 94.75-95.89% AUROC and 78.83-81.86% AUPRC across settings. In Kailuan, ECG completion improved zero-shot sex prediction AUROC from 82.6% to 85.8% and reduced age prediction MAE from 10.72 to 9.87 years after image-based ECG digitization. These findings support ECG completion as a practical strategy for converting incomplete ECG records into AI-ready 12-lead, 10-s digital signals and extending the usable scope of ECG archives for digital cardiac assessment.
Problem

Research questions and friction points this paper is trying to address.

ECG imputation
incomplete ECG
12-lead electrocardiogram
cardiac assessment
signal reconstruction
Innovation

Methods, ideas, or system contributions that make the work stand out.

ECG imputation
Transformer autoencoder
incomplete ECG reconstruction
AI-ready ECG
mask-conditioned deep learning
X
Xiaocheng Fang
National Institute of Health Data Science, Peking University, Beijing, China; School of Intelligence Science and Technology, Peking University, Beijing, China; Institute of Medical Technology, Peking University Health Science Center, Beijing, China
H
Haoyu Wang
National Institute of Health Data Science, Peking University, Beijing, China; University of the Chinese Academy of Sciences, Beijing, China; Institute of Medical Technology, Peking University Health Science Center, Beijing, China
J
Jieyi Cai
University of the Chinese Academy of Sciences, Beijing, China
Qinghao Zhao
Qinghao Zhao
Peking University People's Hospital
J
Jun Li
National Institute of Health Data Science, Peking University, Beijing, China; Institute of Medical Technology, Peking University Health Science Center, Beijing, China
S
Shanwei Zhang
National Institute of Health Data Science, Peking University, Beijing, China; Department of Computer Science, Tianjin University of Technology, Tianjin, China
G
Guangkun Nie
National Institute of Health Data Science, Peking University, Beijing, China; School of Intelligence Science and Technology, Peking University, Beijing, China; Institute of Medical Technology, Peking University Health Science Center, Beijing, China
Y
Yujie Xiao
National Institute of Health Data Science, Peking University, Beijing, China; Institute of Medical Technology, Peking University Health Science Center, Beijing, China
S
Shun Huang
National Institute of Health Data Science, Peking University, Beijing, China; Institute of Medical Technology, Peking University Health Science Center, Beijing, China
Jiarui Jin
Jiarui Jin
Xiaohongshu; Shanghai Jiao Tong University; University College London
Multimodal MiningRecommender SystemInformation RetrievalLarge Language Model
Hongmin Liu
Hongmin Liu
Professor, University of Science and Technology Beijing
Computer Vision
Guodong Wang
Guodong Wang
Massachusetts College of Liberal Arts
S
Shuohua Chen
Department of Cardiology, Kailuan General Hospital, Tangshan, China
L
Liming Lin
Department of Cardiology, Kailuan General Hospital, Tangshan, China
S
Shouling Wu
Department of Cardiology, Kailuan General Hospital, Tangshan, China
H
Hongyan Li
School of Intelligence Science and Technology, Peking University, Beijing, China
Shenda Hong
Shenda Hong
Assistant Professor, Peking University
AI ECGBiosignalAI for Digital HealthHealth Data ScienceAI for Healthcare