BiMa-ECGSR: reconstructing the 12-lead ECG from reduced lead sets with bidirectional state-space models
Organizations: Department of Surgical and Medical Sciences, Magna Graecia University of Catanzaro, Catanzaro, Italy · Department of Informatics Modelling and Systems, University of Calabria, Rende, Italy
Abstract
Wearables and monitors record few electrocardiogram (ECG) leads; most diagnostic tools assume 12 leads. BiMa-ECGSR reconstructs the 12-lead ECG from reduced lead sets with a bidirectional Mamba state-space encoder--decoder, as regression (BiMa-SR) or diffusion (DiBiMa-SR). Models were trained on PTB-XL for six input sets (I; II; I+II; I+II+V1; I+II+V2; I+II+V1+V4), see only the measured leads at inference, and were tested on the PTB-XL test fold (2,198 records) and two external cohorts (Georgia, 10,275 records; Chapman-Shaoxing/Ningbo, 43,559). From lead II alone, the pooled median Pearson correlation (PCC) over the 11 predicted leads was 0.914 on PTB-XL, against 0.784 for a least-squares linear filter (lead I: 0.906 against 0.789). As limb leads are exactly derivable from I and II, multi-lead inputs were compared on predicted chest leads: 0.939 against 0.849 for I+II and 0.979 against 0.962 for I+II+V1+V4. BiMa-SR exceeded the linear comparator in all 18 configuration--cohort pairs (by 0.012--0.136), a margin that shrank as chest leads were added. From lead II, regression was more accurate than diffusion (DiBiMa-SR: 0.903 one-step, 0.862 with six DDIM steps). A 12-lead classifier trained only on real ECGs reached a superclass macro AUROC of 0.912 on real PTB-XL ECGs, 0.843 on reconstructions from lead II and 0.908 from I+II+V1+V4; externally, reconstructions from three or four leads scored within 0.004 of real ECGs. BiMa-SR (2.68,M parameters) takes 45.8 ms per 10-s record on a GPU. Reconstruction makes reduced-lead recordings usable by 12-lead tools; it cannot add information absent from the measured leads.
Figures & tables
| All predicted leads | Predicted chest leads | |||||||||
| PCC [95% CI] | MAE | PCC [95% CI] | MAE | |||||||
| Input | Cohort | Comp. | BiMa-SR | Comparator | BiMa | Comp. | BiMa-SR | Comparator | BiMa | Comp. |
| I | PTB-XL | LF | 0.906 [0.903, 0.909] | 0.789 [0.783, 0.795] | 0.294 | 0.406 | 0.919 [0.916, 0.922] | 0.783 [0.776, 0.790] | 0.269 | 0.403 |
| Georgia | LF | 0.835 [0.832, 0.837] | 0.754 [0.750, 0.757] | 0.371 | 0.426 | 0.849 [0.846, 0.851] | 0.741 [0.737, 0.745] | 0.353 | 0.426 | |
| China | LF | 0.857 [0.856, 0.858] | 0.750 [0.748, 0.751] | 0.355 | 0.438 | 0.876 [0.875, 0.877] | 0.752 [0.750, 0.753] | 0.331 | 0.436 | |
| II | PTB-XL | LF | 0.914 [0.911, 0.916] | 0.784 [0.777, 0.790] | 0.283 | 0.396 | 0.917 [0.914, 0.919] | 0.785 [0.778, 0.791] | 0.269 | 0.397 |
| Input | BiMa-SR | Comparator | BiMa-SR real | BiMa-SR comparator |
| AUROC [95% CI] | AUROC [95% CI] | [95% CI] | [95% CI] | |
| PTB-XL test, 5 diagnostic superclasses ; real 12-lead ECG 0.912 [0.903, 0.920] | ||||
| I | 0.818 [0.806, 0.828] | 0.780 [0.768, 0.793] | 0.094 [ 0.104, 0.085] | +0.038 [+0.027, +0.048] |
| II | 0.843 [0.832, 0.854] | 0.787 [0.774, 0.800] | 0.069 [ 0.079, 0.061] | +0.055 [+0.048, +0.064] |
| I+II | 0.878 [0.868, 0.887] | 0.859 [0.848, 0.868] | 0.034 [ 0.041, 0.028] | +0.019 [+0.012, +0.027] |
| I+II+V1 | 0.903 [0.893, 0.911] | 0.897 [0.887, 0.905] | 0.009 [ 0.013, 0.006] | +0.006 [+0.003, +0.010] |
Electrocardiography
Electrocardiography studies the heart’s electrical signals to measure cardiac function and support diagnosis, monitoring, and research.
See all 122 papers