Noise Reduction in ECG Signals Using Fully Convolutional Denoising Autoencoders

Hsin-Tien Chiang, Yi-Yen Hsieh, Szu-Wei Fu, Kuo-Hsuan Hung, Yu Tsao, Shao-Yi Chien

Abstract

Electrocardiogram (ECG) signals are frequently contaminated by various noise sources in clinical environments, complicating diagnosis. This paper proposes a Fully Convolutional Denoising Autoencoder (FCN-DAE) to effectively remove noise while preserving critical clinical features. By eliminating fully connected layers and pooling operations, the model achieves superior signal reconstruction and a 32x compression ratio. Experimental results on standard datasets demonstrate that the FCN-DAE outperforms traditional Deep Neural Networks (DNNs) and standard Convolutional Neural Networks (CNNs) in terms of Signal-to-Noise Ratio (SNR) improvement and visual fidelity.

Introduction

The electrocardiogram (ECG) is a vital diagnostic tool for identifying cardiac arrhythmias. However, real-world ECG signals are often degraded by noise, including Baseline Wander (BW), Muscle Artifacts (MA), and Electrode Motion (EM). Traditional filtering techniques often struggle to differentiate between high-frequency noise and the sharp R-peaks of the ECG signal, potentially leading to diagnostic errors. There is a critical need for robust denoising methods that can maintain the morphological integrity of the signal, particularly the QRS complex.

Methods: The FCN-DAE Architecture

The researchers developed a 13-layer Fully Convolutional Denoising Autoencoder (FCN-DAE). Unlike standard CNNs, this architecture avoids fully connected (dense) layers, which often lead to signal "averaging" and loss of peak amplitude.

Architecture of the proposed FCN-DAE, utilizing strided convolutions and de-convolutions to maintain signal fidelity.

Key design choices include:

  • Strided Convolutions: Instead of max-pooling, which discards spatial information, the model uses strided convolutions to downsample the signal. This ensures better alignment between the input and reconstructed output.
  • Bottleneck Compression: The encoder compresses a 1024-sample input into a 32-sample latent representation ($z$). This forces the network to capture only the most salient features of the clean ECG signal.
  • Activation and Normalization: Exponential Linear Units (ELU) and Batch Normalization are employed to stabilize training and improve convergence speed.

The model was trained using clean signals from the MIT-BIH Arrhythmia Database and noise profiles from the MIT-BIH Noise Stress Test Database (NSTDB).

Key Results and Performance

The FCN-DAE was evaluated against standard DNN and CNN architectures. Quantitative analysis focused on Signal-to-Noise Ratio improvement ($SNR_{imp}$) and Percentage-root-mean-square Difference (PRD).

Comparison of Percentage-root-mean-square Difference (PRD) across different models and input SNR levels.

As shown in the performance metrics, the FCN-DAE consistently achieved the lowest PRD across various input SNR levels. At a highly noisy input of -1 dB, the FCN improved the signal by 15.49 dB, compared to 11.75 dB for the DNN and 14.14 dB for the CNN. Qualitatively, the FCN-DAE was uniquely capable of preserving the sharp R-peaks and smooth baselines, whereas other models often introduced artifacts or attenuated the signal peaks.

Discussion and Conclusion

The success of the FCN-DAE stems from its focus on local connectivity. By discarding dense layers, the model maintains the translation invariance necessary for processing temporal signals like the ECG. Furthermore, the ability to reconstruct clean signals from a 32x compressed bottleneck suggests significant potential for efficient data transmission in wearable medical devices.

Future work will focus on real-time implementation on low-power hardware and clinical validation to ensure that the denoising process does not introduce artifacts that could be misinterpreted as pathological features.

Summary updated

Abstract

The electrocardiogram (ECG) is an efficient and noninvasive indicator for arrhythmia detection and prevention. In real-world scenarios, ECG signals are prone to be contaminated with various noises, which may lead to wrong interpretation. Therefore, significant attention has been paid on denoising of ECG for accurate diagnosis and analysis. A denoising autoencoder (DAE) can be applied to reconstruct the clean data from its noisy version. In this paper, a DAE using the fully convolutional network (FCN) is proposed for ECG signal denoising. Meanwhile, the proposed FCN-based DAE can perform compression with regard to the DAE architecture. The proposed approach is applied to ECG signals from the MIT-BIH Arrhythmia database and the added noise signals are obtained from the MIT-BIH Noise Stress Test database. The denoising performance is evaluated using the root-mean-square error (RMSE), percentage-root-mean-square difference (PRD), and improvement in signal-to-noise ratio (SNR <sub xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:xlink="http://www.w3.org/1999/xlink">imp</sub> ). The results of the experiments conducted on noisy ECG signals of different levels of input SNR show that the FCN acquires better performance as compared to the deep fully connected neural network- and convolutional neural network-based denoising models. Moreover, the proposed FCN-based DAE reduces the size of the input ECG signals, where the compressed data is 32 times smaller than the original. The results of the study demonstrate the superiority of FCN in denoising, with lower RMSE and PRD, as well as higher SNR <sub xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:xlink="http://www.w3.org/1999/xlink">imp</sub> . According to the results, we believe that the proposed FCN-based DAE has a good application prospect in clinical practice.
BibTeX
@article{chiang2019noise,
  author = {Hsin-Tien Chiang and Yi-Yen Hsieh and Szu-Wei Fu and Kuo-Hsuan Hung and Yu Tsao and Shao-Yi Chien},
  title = {{Noise Reduction in ECG Signals Using Fully Convolutional Denoising Autoencoders}},
  journal = {IEEE Access},
  year = {2019},
  doi = {10.1109/access.2019.2912036},
}
Figure