Generalizability and Clinical Implications of Electrocardiogram Denoising with Cardio-NAFNet

Chanho Lim, Yunsung Chung, Jihun Hamm, Zhengming Ding, Mario Mekhael, Charbel Noujaim, Ala Assaf, Hadi Younes, Nour Chouman, Noor Makan, Eoin Donnellan, Nassir F. Marrouche

Abstract

The rise of mobile electrocardiogram (ECG) devices has led to a surge in recordings containing significant magnitudes of noise. While several artificial intelligence (AI) models have demonstrated success in denoising, their generalizability and impact on clinical interpretability remain critical concerns. We propose Cardio-NAFNet, a novel AI-based approach to ECG denoising that employs a modified version of the Non-Linear Activation Free Network (NAFNet). We conducted three experiments to evaluate the model's quantitative performance, clinical implications, and generalizability. In the first experiment, Cardio-NAFNet achieved a 53.74dB average signal-to-noise ratio (SNR) across varying noise magnitudes in beat-to-beat denoising, representing a significant improvement over current state-of-the-art models. In the second experiment, we assessed the enhancement of clinical interpretation by utilizing a pretrained ECG classifier. When tested on noisy signals and their denoised counterparts, Cardio-NAFNet’s outputs provided a 26% boost in classification accuracy. Finally, we provide external validation using a dataset of single-lead mobile ECG signals alongside signal quality evaluations from physician experts. Our findings suggest that Cardio-NAFNet effectively captures and reconstructs critical ECG features, offering both quantitative excellence and generalizable qualitative improvements.

Introduction

Mobile health technology has democratized cardiac monitoring, allowing patients to record electrocardiograms (ECGs) via smartwatches and handheld devices. However, these recordings are frequently compromised by noise sources rarely encountered in clinical settings, such as Electrode Motion (EM), Baseline Wandering (BW), and Muscle Artifacts (MA).

Existing AI denoising solutions often face a trade-off: they may successfully remove noise but inadvertently "smooth out" the subtle electrical variations—such as the P-wave or the specific morphology of the QRS complex—that physicians require for accurate diagnosis. Furthermore, many models lack generalizability, performing well on synthetic benchmarks but failing on real-world data from diverse hardware. Cardio-NAFNet was developed to bridge this gap between signal processing efficiency and clinical utility.

Methodology

The Cardio-NAFNet Architecture

Cardio-NAFNet is based on the Non-Linear Activation Free Network (NAFNet), an architecture originally designed for high-performance image restoration. The researchers adapted this for one-dimensional signal processing with several key modifications:

  • Activation-Free Design: Traditional neural networks rely on non-linear activation functions (like ReLU or Sigmoid). Cardio-NAFNet replaces these with a "Simple Gate" mechanism (element-wise multiplication) and "Simple Channel Attention." This approach reduces computational overhead while maintaining the high-fidelity restoration required for medical signals.
  • U-Net Backbone: The model utilizes an encoder-decoder structure with skip connections. This ensures that fine-grained temporal details from the original signal are preserved and integrated into the final denoised output.
  • Hybrid Loss Function: To ensure the model prioritizes the most critical parts of the ECG, the authors implemented a hybrid loss function combining Mean Squared Error (MSE) with an $L_{max}$ component. The $L_{max}$ term specifically penalizes the maximum difference between the denoised and clean signals, which is vital for preserving the sharp R-wave peaks used in heart rate variability analysis.

Data and Validation

The study employed a robust three-tier dataset strategy:

  1. MIT-BIH Arrhythmia Database: Provided clean templates for training.
  2. MIT-BIH Noise Stress Database: Provided realistic noise profiles to simulate real-world interference.
  3. DECAAF-II Trial Data: Served as an external validation set, consisting of single-lead ECG strips from handheld "ECG Check" devices used by patients in home environments.

Results and Discussion

Quantitative Superiority

In comparative testing, Cardio-NAFNet achieved an average SNR of 53.74dB. This outperforms the previous state-of-the-art model (CAE-CGAN) by 11.76dB. This significant margin suggests that the activation-free architecture is uniquely suited to the linear and periodic nature of cardiac signals.

Clinical Impact on Automated Diagnosis

A primary goal of denoising is to improve the performance of downstream diagnostic tools. The researchers tested a pre-trained heart rhythm classifier on raw noisy data versus data processed by Cardio-NAFNet. The denoised signals led to a 26% improvement in classification accuracy, demonstrating that the model preserves the underlying diagnostic features of the arrhythmia rather than just creating a visually "clean" line.

Physician Evaluation

To ensure qualitative clinical relevance, expert physicians manually scored the quality of ECG strips from the DECAAF-II dataset. On a 5-point scale:

  • Raw Mobile ECGs: Mean score of 3.18.
  • Cardio-NAFNet Denoised ECGs: Mean score of 4.46.

Physicians noted that many signals previously deemed "noisy but readable" were transformed into "perfectly clear" recordings, potentially reducing the rate of false positives and uninterpretable tests in remote monitoring programs.

Conclusion

Cardio-NAFNet represents a significant step forward in ECG signal processing. By moving away from traditional non-linear activations and focusing on a gate-based architecture, the model achieves unprecedented signal fidelity. The results demonstrate that high-quality denoising can directly translate to better automated classification and higher physician confidence. Future research will focus on extending this architecture to 12-lead clinical ECGs, aiming to bring high-fidelity diagnostic capabilities to resource-limited or remote environments.

Summary updated

BibTeX
@article{lim2024generalizability,
  author = {Chanho Lim and Yunsung Chung and Jihun Hamm and Zhengming Ding and Mario Mekhael and Charbel Noujaim and Ala Assaf and Hadi Younes and Nour Chouman and Noor Makan and Eoin Donnellan and Nassir F. Marrouche},
  title = {{Generalizability and Clinical Implications of Electrocardiogram Denoising with Cardio-NAFNet}},
  journal = {Journal of Biotechnology and Biomedicine},
  year = {2024},
  doi = {10.26502/jbb.2642-91280124},
}
Figure