Autonomous Detection of Cardiac Ailments Using ECG Signals ‎and Random Forest Classifier

  • Authors

    • Gunturu Naga Lakshmi Af Research Scholars, Department of Computer Science and Engineering, Acharya Nagarjuna University College of Engineering and ‎Technology, Acharya Nagarjuna University
    • S. Nagakishore Bhavanam Professor, Department of Computer Science and Engineering, Mangalayatan University Jabalpur, Jabalpur
    • Vasujadevi Midasala Associate Professor, Department of Computer Science and Engineering, Mangalayatan University Jabalpur, Jabalpur
    • Dvsrk Chaitanya Department of Civil Engineering, Acharya Nagarjuna University College of Engineering and Technology, ‎Acharya Nagarjuna University
    https://doi.org/10.14419/hcmee071

    Received date: June 24, 2025

    Accepted date: October 24, 2025

    Published date: December 26, 2025

  • ECG; Anamoly Detection; Classification; Random Forest
  • Abstract

    The ECG signal is a vital resource in diagnosing various cardiac ailments, providing crucial information for accurate decision-making re-‎garding different types of heart diseases. To achieve autonomous detection of cardiac ailments, several strategies have been proposed to ‎extract critical features from the ECG signal with utmost precision. In this study, a state-of-the-art methodology is introduced for the auto-‎matic detection of cardiac ailments. The proposed methodology encompasses three main steps: pre-processing, feature extraction, and classi-‎fication. In the pre-processing step, a Butterworth third-order band-pass filter is utilized to refine the ECG signal. For feature extraction, a ‎four-level maximal overlap discrete wavelet packet transform (MODWPT) technique is employed, utilizing the symlet wavelet as the mother ‎wavelet. In the final stage of classification, five supervised machine learning algor2 ns are applied to classify the considered three cardiac ‎ailments from the MIT-BIH database: Arrhythmia, Congestive Heart Failure, Atrial Fibrillation, and Normal Sinus Rhythm. The algorithms ‎used include Support Vector Machine (SVM), K-nearest Neighbour (KNN). Naive Bayes (NB), Decision Tree (DT), and Random Forest ‎‎(RF). These classifiers yield overall accuracies of 90.83%, 90.56%, 90.28%, 91.39%, and 91.94% respectively. Based on the results, it is ‎evident that the Random Forest classifier exhibits superior accuracy among the proposed methodology's classifiers for the multiclass classi-‎fication of cardiac ailments‎.

  • References

    1. S. Banerjee and G. K. Singh, "Monte Carlo Filter-Based Motion Artifact Removal from Electrocardiogram Signal for Real-Time Telecardiology System," in IEEE Transactions on Instrumentation and Measurement, vol. 70, pp. 1-10, 2021, Art no. 4006110, https://doi.org/10.1109/TIM.2021.3102737.
    2. A. Gotchev, N. Nikolaev and K. Egiazarian, "Improving the transform domain ECG denoising performance by applying inter-beat and intra-beat decorrelating transforms", Proc. IEEE Int. Symp. Circuits Syst. (ISCAS), pp. 17-20, May 2001. https://doi.org/10.1109/ISCAS.2001.920995.
    3. S. Poungponsri and X.-H. Yu, "An adaptive filtering approach for electrocardiogram (ECG) signal noise reduction using neural networks", Neuro-computing, vol. 117, no. 87, pp. 206-213, Oct. 2013. https://doi.org/10.1016/j.neucom.2013.02.010.
    4. W.-H. Jung and S.-G. Lee, "ECG identification based on non-fiducial feature extraction using window removal method", Appl. Sci., vol. 7, no. 11, Nov. 2017. https://doi.org/10.3390/app7111205.
    5. T. He, G. Clifford and L. Tarassenko, "Application of independent component analysis in removing artefacts from the electrocardiogram", Neural Comput. Appl., vol. 15, no. 2, pp. 105-116, Apr. 2006. https://doi.org/10.1007/s00521-005-0013-y.
    6. M. Rakshit and S. Das, "An efficient ECG denoising methodology using empirical mode decomposition and adaptive switching mean filter", Bio-med. Signal Process. Control, vol. 40, pp. 140-148, Feb. 2018. https://doi.org/10.1016/j.bspc.2017.09.020.
    7. W.-H. Jung and S.-G. Lee, "ECG identification based on non-fiducial feature extraction using window removal method", Appl. Sci., vol. 7, no. 11, Nov. 2017. https://doi.org/10.3390/app7111205.
    8. H. Chen and K. Maharatna, "An Automatic R and T Peak Detection Method Based on the Combination of Hierarchical Clustering and Discrete Wavelet Transform," in IEEE Journal of Biomedical and Health Informatics, vol. 24, no. 10, pp. 2825-2832, Oct. 2020, https://doi.org/10.1109/JBHI.2020.2973982.
    9. U. Satija, B. Ramkumar and M. S. Manikandan, "A New Automated Signal Quality-Aware ECG Beat Classification Method for Unsupervised ECG Diagnosis Environments," in IEEE Sensors Journal, vol. 19, no. 1, pp. 277-286, 1 Jan.1, 2019, https://doi.org/10.1109/JSEN.2018.2877055.
    10. M. Nazari and S. M. Sakhaei, "Variational Mode Extraction: A New Efficient Method to Derive Respiratory Signals from ECG," in IEEE Journal of Biomedical and Health Informatics, vol. 22, no. 4, pp. 1059-1067, July 2018, https://doi.org/10.1109/JBHI.2017.2734074.
    11. N. Karimian, Z. Guo, M. Tehranipoor and D. Forte, "Highly Reliable Key Generation from Electrocardiogram (ECG)," in IEEE Transactions on Biomedical Engineering, vol. 64, no. 6, pp. 1400-1411, June 2017, https://doi.org/10.1109/TBME.2016.2607020.
    12. L. B. Marinho, N. D. M. M. Nascimento, J. W. M. Souza, M. V. Gurgel, P. P. R. Filho and V. H. С. de Albuquerque. "A novel electrocardiogram feature extraction approach for cardiac arrhythmia classification", Future Gener. Comput. Syst., vol. 97, pp. 564-577. Aug. 2019. https://doi.org/10.1016/j.future.2019.03.025.
    13. M. Thomas, M. K. Das and S. Ari, "Automatic ECG arrhythmia classification using dual tree complex wavelet-based features", AEU-Int. J. Elec-tron. Commun., vol. 69, no. 4, pp. 715-721. Apr. 2015. https://doi.org/10.1016/j.aeue.2014.12.013.
    14. Y. Kaya, H. Pehlivan and M. E. Tenekeci, "Effective ECG beat classification using higher order statistic features and genetic feature selection", Biomed. Res., vol. 28, no. 17. pp. 7594-7603, Aug. 2017.
    15. 1. Christov, V. Krasteva, I. Simova, T. Neycheva and R. Schmid, "Multi-parametric analysis for atrial fibrillation classification in the ECG", Proc. Comput. Cardiol. Conf. (CinC), pp. 1-4, Sep. 2017. https://doi.org/10.22489/CinC.2017.175-021.
    16. https://physionet.org/about/database/ (accessed in October 2020).
    17. S. T. Alam, M. M. Hossain, M. D. Rahman. M. K. Islam," Towards Development of a Low Cost and Portable ECG Monitoring System for Ru-ral/Remote Areas of Bangladesh", International Journal of Image, Graphics and Signal Processing (IJIGSP), Vol. 10, No.5, pp. 24-32, 2018. https://doi.org/10.5815/ijigsp.2018.05.03.
    18. Mikel Galar, Alberto Fernández, Edurne Barrenechea, Humberto Bustince, and Francisco Herrera. 2011. An overview of ensemble methods for bi-nary classifiers in multi-class problems: Experimental study on one-vs-one and one-vs-all schemes. Pattern Recogn.44, 8 (August, 2011), 1761-1776. https://doi.org/10.1016/j.patcog.2011.01.017.
    19. T. Denoeux, "A k-nearest neighbor classification rule based on Dempster-Shafer theory", IEEE Trans. Syst. Man. Cybern., vol. 25, no. 5, pp. 804-813, May 1995. https://doi.org/10.1109/21.376493.
    20. S.-B. Kim, K.-S. Han, H.-C. Rim and S. H. Myaeng, "Some effective techniques for Naive Bayes text classification", IEEE Trans. Knowl. Data Eng., vol. 18, no. 11, pp. 1457-1466, Nov. 2006. https://doi.org/10.1109/TKDE.2006.180.
    21. Hastie, T., R. Tibshirani, and J. Friedman. The Elements of Statistical Learning, Second Edition. NY: Springer, 2008.
    22. J. R. Quinlan, "Simplifying decision trees", Int. J. Man-Mach. Stud., vol. 27, no. 3, pp. 221-234, Sep. 1987. https://doi.org/10.1016/S0020-7373(87)80053-6.
    23. A. Liaw and M. Wiener, "Classification and regression by random forest", R Newslett., vol. 2, no. 3, pp. 18-22, 2002.
    24. M. Ingale, R. Cordeiro, S. Thentu, Y. Park and N. Karimian, "ECG Biometric Authentication: A Comparative Analysis," in IEEE Access, vol. 8, pp. 117853-117866, 2020, https://doi.org/10.1109/ACCESS.2020.3004464.
    25. M. Nabian, Y. Yin, J. Wormwood. K. S. Quigley. L. F. Barrett and S. Ostadabbas, "An Open-Source Feature Extraction Tool for the Analysis of Peripheral Physiological Data," in IEEE Journal of Translational Engineering in Health and Medicine, vol. 6, pp. 1-11, 2018, Art no. 2800711, https://doi.org/10.1109/JTEHM.2018.2878000.
    26. Rácz, A., Bajusz, D., & Héberger, K. (2019). Multi-Level Comparison of Machine Learning Classifiers and Their Performance Metrics. Molecules (Basel, Switzerland), 24(15), 2811. https://doi.org/10.3390/molecules24152811.
    27. D. Lai, Y. Zhang, X. Zhang, Y. Su and M. B. Bin Heyat. "An Automated Strategy for Early Risk Identification of Sudden Cardiac Death by Us-ing Machine Learning Approach on Measurable Arrhythmic Risk Markers," in IEEE Access, vol. 7. pp. 94701-94716, 2019, https://doi.org/10.1109/ACCESS.2019.2925847.
    28. F. Melgani and Y. Bazi, "Classification of Electrocardiogram Signals With withort Vector Machines and Particle Swarm Optimization," in IEEE Transactions on Information Technology in Biomedicine, vol. 12, no. 5. pp. 667-677, Sept. 2008, https://doi.org/10.1109/TITB.2008.923147.
  • Downloads

  • How to Cite

    Lakshmi, G. N. ., Bhavanam , S. N. ., Midasala , V. ., & Chaitanya , D. . (2025). Autonomous Detection of Cardiac Ailments Using ECG Signals ‎and Random Forest Classifier. International Journal of Basic and Applied Sciences, 14(8), 540-550. https://doi.org/10.14419/hcmee071