Research Article

Research on ECG Classification Algorithm Based on Wavelet Transform Noise Reduction and Random Forest

Yuchen Li*
Institute of International Collaboration, Dalian Maritime University, Linghai Street, Dalian, China

* Corresponding author: [email protected]

Abstract

Electrocardiogram (ECG) signal classification is a critical task in arrhythmia diagnosis, and its accuracy directly affects the effectiveness of clinical decision-making. However, ECG signals usually contain noise and have uneven category distribution, which poses a great challenge to the classification task. To this end, this study proposes a classification method for ECG signals based on wavelet noise reduction and random forests. Specifically, we first remove the noise from the signals using the wavelet transform, then we select an oversampling technique to alleviate the problem of category imbalance, and finally we use a random forest model to train the classification. We conducted comparative experiments to demonstrate the significant advantages of our algorithm in the ECG signal classification task. In addition, to validate the effectiveness of the proposed method, we designed ablation experiments to demonstrate the important role of wavelet transform noise reduction and oversampling in improving the model performance. This paper proposes a method which obviously improves the accuracy of ECG signal classification, and at the same time provides reliable technical support for the automatic diagnosis of cardiac arrhythmia.

Keywords: electrocardiogram; wavelet transform; oversampling; machine learning
Published: April 10, 2025
DOI: 10.54254/2755-2721/2025.TJ21924
Volume: ACE Vol.146
pp. 33-42
Download PDF

References

  1. Sathi T A, Jany R, Ela R Z, et al. An interpretable electrocardiogram-based model for predicting arrhythmia and ischemia in cardiovascular disease[J]. Results in Engineering, 2024, 24: 103381.
  2. Liu J, Li Z, Jin Y, et al. A review of arrhythmia detection based on electrocardiogram with artificial intelligence[J]. Expert review of medical devices, 2022, 19(7): 549-560.
  3. Charoenpong J, Pimpunchat B, Amornsamankul S, et al. A Comparison of Machine Learning Algorithms and their Applications[J]. International Journal of Simulation--Systems, Science & Technology, 2019, 20(4).
  4. Gondowijoyo S M, Setiawan R, Hikmah N F. Applying artificial neural network on heart rate variability and electroencephalogram signals to determine stress[J]. TELKOMNIKA (Telecommunication Computing Electronics and Control), 2024, 22(4): 910-920.
  5. Wang Guanjun, Wu Ting, Wang Long, et al. Study on electrocardiogram diagnosis based on Machine learning[J]. Journal of Practical Electrocardiology, 2020, 29(4).
  6. Ayano Y M, Schwenker F, Dufera B D, et al. Interpretable machine learning techniques in ECG-based heart disease classification: a systematic review[J]. Diagnostics, 2022, 13(1): 111.
  7. Zahid M U, Kiranyaz S, Gabbouj M. Global ECG classification by self-operational neural networks with feature injection[J]. IEEE Transactions on Biomedical Engineering, 2022, 70(1): 205-215.
  8. Ramachandran D, Kumar R S, Alkhayyat A, et al. Classification of Electrocardiography Hybrid Convolutional Neural Network‐Long Short Term Memory with Fully Connected Layer[J]. Computational Intelligence and Neuroscience, 2022, 2022(1): 6348424.
  9. Wang D, Qiu L, Zhu W, et al. Inter-patient ECG characteristic wave detection based on convolutional neural network combined with transformer[J]. Biomedical Signal Processing and Control, 2023, 81: 104436.
  10. Cha X, Zhang Y, Zhang Y, et al. [Early classification and recognition algorithm for sudden cardiac arrest based on limited electrocardiogram data trained with a two-stages convolutional neural network]. Sheng Wu Yi Xue Gong Cheng Xue Za Zhi. 2024 Aug 25;41(4):692-699. Chinese. doi: 10.7507/1001-5515.202306066. PMID: 39218594; PMCID: PMC11366462.
  11. Tang Xiao, Tang Li, Mo Zhiwen. ECG classification strategy based on support vector Machine algorithm[J]. Journal of Biomedical Engineering, 2008, 25(2): 246-249.
  12. Fila R J J B, Attri S H, Sharma V. Mitigating Overfitting in Deep Learning: Insights from Bayesian Regularization[C]//2024 IEEE Region 10 Symposium (TENSYMP). IEEE, 2024: 1-6.
  13. Feng Yi, Wang Xianghua. Wavelet transform noise reduction processing and its Matlab implementation [J]. Data Acquisition and Processing,2006,21(B12):37-39
  14. Chen Xiaoxi; Wang Yanjie; Liu Xiang. An in-depth study of wavelet threshold denoising method. Laser and infrared.2012(01):107-112
  15. complexity analysis[J]. IEEE Transactions on Knowledge and Data Engineering, 2022, 35(7): 6651-6672.
  16. https://physionet.org/content/mitdb/1.0.0/