eess.SPNov 21, 2026

TrustFlow-ECG: Reliability-Aware ECG Restoration with Calibrated Risk Estimation

Authors: Mohamed Kamel, Tamer Nadeem

Organizations: Department of Computer Science, Virginia Commonwealth University, Richmond, VA, USA

Abstract

Electrocardiogram (ECG) restoration models can reduce noise and motion artifacts, but they rarely estimate whether the restored waveform is reliable for downstream analysis. We propose TrustFlow-ECG, a reliability-aware restoration framework that combines a one-step conditional rectified-flow restorer with a lightweight window-level risk predictor. The predictor uses the noisy ECG, restored ECG, and correction residual, then applies validation-set isotonic calibration for selective ECG analysis. We evaluate on MIT-BIH ECG windows corrupted with NSTDB artifacts, powerline interference, and mixed noise across multiple SNRs, with an external 9,675-window PTB-XL stress check without retraining. TrustFlow achieves 0.862 Spearman correlation with true risk and 0.911 AUROC for failure detection, while calibration reduces ECE from 0.0385 to 0.0098. At 80% coverage, selective rejection reduces RMSE from 0.1848 to 0.1345, improves R-peak F1 from 0.8778 to 0.9175, and reduces HR MAE from 6.26 to 4.88 bpm.

Figures & tables

Explore similar work

Oct 6, 2026

BeatFlow-ECG: Rectified Flow for ECG Reconstruction from Indirect Wearable Signals

Continuous cardiac monitoring outside clinical settings requires signals that are both informative and practical to collect during daily life. Electrocardiography (ECG) provides rich information about cardiac rhythm and waveform morphology, while wearable photoplethysmography (PPG) is easier to acquire continuously but is only an indirect cardiovascular measurement and is highly sensitive to motion. We present BeatFlow-ECG, a conditional rectified-flow model for reconstructing single-channel ECG from synchronized PPG and inertial measurements. BeatFlow-ECG models reconstruction as conditional transport from noise to ECG using a convolutional encoder-decoder with a transformer bottleneck and explicit flow-time conditioning. Motion information is incorporated through IMU-derived conditioning features, motion-dependent loss weighting, and an easy-to-hard training curriculum. We evaluate the model under leave-one-subject-out protocols on PPG-DaLiA and WESAD. BeatFlow-ECG achieves the best results among the evaluated deterministic, adversarial, and diffusion-based baselines across all reported waveform and beat-timing metrics, with Pearson correlations of 0.983 and 0.986 and R-peak F1 scores of 0.946 and 0.955, respectively. Compared with Conditional DDPM-1D, L1 error decreases from 0.085 to 0.062 on PPG-DaLiA and from 0.074 to 0.055 on WESAD. Additional analyses on PPG-DaLiA show higher correlation in fixed R-peak-relative waveform regions and lower reconstruction error across low-, medium-, and high-motion subsets.
Feb 18, 2026

UCTECG-Net: Uncertainty-aware Convolution Transformer ECG Network for Arrhythmia Detection

Deep learning has improved automated electrocardiogram (ECG) classification, but limited insight into prediction reliability hinders its use in safety-critical settings. This paper proposes UCTECG-Net, an uncertainty-aware hybrid architecture that combines one-dimensional convolutions and Transformer encoders to process raw ECG signals and their spectrograms jointly. Evaluated on the MIT-BIH Arrhythmia and PTB Diagnostic datasets, UCTECG-Net outperforms LSTM, CNN1D, and Transformer baselines in terms of accuracy, precision, recall and F1 score, achieving up to 98.58% accuracy on MIT-BIH and 99.14% on PTB. To assess predictive reliability, we integrate three uncertainty quantification methods (Monte Carlo Dropout, Deep Ensembles, and Ensemble Monte Carlo Dropout) into all models and analyze their behavior using an uncertainty-aware confusion matrix and derived metrics. The results show that UCTECG-Net, particularly with Ensemble or EMCD, provides more reliable and better-aligned uncertainty estimates than competing architectures, offering a stronger basis for risk-aware ECG decision support.
Sep 30, 2026

Robust Transfer Learning for Paper ECG Recognition

Paper ECG recognition is challenging because real-world ECG images vary in layout, physical artifacts, and label availability. We introduce RobECG-CL, a rank-aware contrastive learning framework for robust paper ECG representation learning. Starting from standard 12-lead ECG recordings, we construct progressively degraded paper ECG views with heterogeneous layouts and train the model to balance same-recording invariance with degradation-aware ordering. Across synthetic stress tests on CODE-II and EchoNext, RobECG-CL improves robustness under severe degradation and few-shot transfer, outperforming contrastive learning baselines and surpassing the waveform-based foundation model, ECG-FM, in the 1% labeled setting. On 312 samples of hospital data with 37 labels, RobECG-CL achieves the best macro AUROC.