Abstract
Electrocardiogram (ECG) classification is essential for accurately detecting and tracking heart rhythm disorders. This study proposes a multi-class ECG classification framework for identifying cardiac arrhythmias like Atrial Fibrillation (AF), Ventricular Fibrillation (VF), Normal Rhythm (NR), and Ventricular Tachycardia (VT). The ECG signals were decomposed using Variational Mode Decomposition (VMD), and higher-order statistics as well as entropy-based features were extracted from each mode. Multi-task Particle Swarm Optimization (MT-PSO) was employed to reduce redundant features and enhance the discriminative capability of the dataset. Multiple machine-learning models were evaluated, and optimized feature set led to clear performance improvements. The best results were obtained using LightGBM (ACC 0.993), HistGradientBoost (0.991), XGBoost (0.990), and ExtraTrees (0.990). Execution time also decreased for several models after optimization. Confusion-matrix and ROC analyses confirmed reliable detection across all four cardiac classes, and comparison with reported works shows that the proposed framework offers competitive or improved performance for ECG classification.
Similar content being viewed by others
Data availability
The data used to support the findings of this study are available from publicly available third-party repositories hosted on PhysioNet (https://www.physionet.org/). No new datasets were generated during the current study.
References
Rangayyan, R. M. Biomedical Signal Analysis (John Wiley & Sons, 2015).
Wang, Y. et al. Arrhythmia classification algorithm based on multi-head self-attention mechanism. Biomed. Signal Process. Control 79, 104206 (2023).
Guo, L., Sim, G. & Matuszewski, B. Inter-patient ECG classification with convolutional and recurrent neural networks. Biocybern. Biomed. Eng. 39(3), 868–879 (2019).
Ansari, Y., Mourad, O., Qaraqe, K. & Serpedin, E. Deep learning for ecg arrhythmia detection and classification: An overview of progress for period 2017–2023. Front. Physiol. 14, 1246746 (2023).
Chaitanya, M. K. & Sharma, L. D. Pre-trained bi-lstm model for automated classification of ventricular arrhythmias using 1-d and 2-d ECG. Bull. Electr. Eng. Inform. 13(4), 2485–2495 (2024a).
Faust, O. & Acharya, U. R. Automated classification of five arrhythmias and normal sinus rhythm based on rr interval signals. Expert Syst. Appl. 181, 115031 (2021).
Markides, V. & Schilling, R. J. Atrial fibrillation: classification, pathophysiology, mechanisms and drug treatment. Heart 89(8), 939–943 (2003).
Chaitanya, M. K. et al. Automatic classification of atrial and ventricular arrhythmias using scaled bidirectional LSTM. IEEE Sens. J. https://doi.org/10.1109/jsen.2025.3575848 (2025).
Shoeibi, A. et al. Applications of deep learning techniques for automated multiple sclerosis detection using magnetic resonance imaging: A review. Comput. Biol. Med. 136, 104697 (2021).
Wang, J., Wang, P. & Wang, S. Automated detection of atrial fibrillation in ECG signals based on wavelet packet transform and correlation function of random process. Biomed. Signal Process. Control 55, 101662 (2020).
Chaitanya, M. K., Sharma, L. D., Roy, A. & Rahul, J. A review on artificial intelligence for electrocardiogram signal analysis. In Big Data Analytics and Artificial Intelligence in the Healthcare Industry 38–72 (2022).
Xia, Y., Wulan, N., Wang, K. & Zhang, H. Detecting atrial fibrillation by deep convolutional neural networks. Comput. Biol. Med. 93, 84–92 (2018).
Petmezas, G. et al. Automated atrial fibrillation detection using a hybrid CNN-LSTM network on imbalanced ECG datasets. Biomed. Signal Process. Control 63, 102194 (2021).
Chaitanya, M. K. & Sharma, L. D. Automated detection of myocardial infarction using binary Harry Hawks feature selection and ensemble KNN classifier. Comput. Methods Biomech. Biomed. Eng. 27(14), 2024–2040 (2024b).
Verma, A. & Dong, X. Detection of ventricular fibrillation using random forest classifier. J. Biomed. Sci. Eng. 9(5), 259–268 (2016).
Jekova, I. & Krasteva, V. Real time detection of ventricular fibrillation and tachycardia. Physiol. Meas. 25(5), 1167 (2004).
Li, Q., Rajagopalan, C. & Clifford, G. D. Ventricular fibrillation and tachycardia classification using a machine learning approach. IEEE Trans. Biomed. Eng. 61(6), 1607–1613 (2013).
Singhal, S. & Kumar, M. A systematic review on artificial intelligence-based techniques for diagnosis of cardiovascular arrhythmia diseases: Challenges and opportunities. Arch. Comput. Methods Eng. 30(2), 865–888 (2023).
Liu, X., Wang, H., Li, Z. & Qin, L. Deep learning in ECG diagnosis: A review. Knowl. Based Syst. 227, 107187 (2021).
Xiao, Q. et al. Deep learning-based ECG arrhythmia classification: A systematic review. Appl. Sci. 13(8), 4964 (2023).
Dong, X. & Si, W. Heartbeat dynamics: A novel efficient interpretable feature for arrhythmias classification. IEEE Access 11, 87071–87086 (2023).
Zhang, J., Liu, A., Liang, D., Chen, X. & Gao, M. Interpatient ECG heartbeat classification with an adversarial convolutional neural network. J. Healthc. Eng. 2021(1), 9946596 (2021).
Alonso-Atienza, F., Morgado, E., Fernandez-Martinez, L., Garcia-Alberola, A. & Rojo-Alvarez, J. L. Detection of life-threatening arrhythmias using feature selection and support vector machines. IEEE Trans. Biomed. Eng. 61(3), 832–840 (2013).
Balasundaram, K., Masse, S., Nair, K. & Umapathy, K. A classification scheme for ventricular arrhythmias using wavelets analysis. Med. Biol. Eng. Comput. 51(1), 153–164 (2013).
Maji, U., Mitra, M. & Pal, S. Automatic detection of atrial fibrillation using empirical mode decomposition and statistical approach. Procedia Technol. 10, 45–52 (2013).
Tripathy, R., Sharma, L. & Dandapat, S. Detection of shockable ventricular arrhythmia using variational mode decomposition. J. Med. Syst. 40(4), 79. (2016).
Khadra, L., Al-Fahoum, A., & Binajjaj, S. A new quantitative analysis technique for cardiac arrhythmia using bispectrum and bicoherency. In: The 26th Annual International Conference of the IEEE Engineering in Medicine and Biology Society, 1, 13–16 (IEEE, 2004).
Arafat, M. A., Sieed, J. & Hasan, M. K. Detection of ventricular fibrillation using empirical mode decomposition and Bayes decision theory. Comput. Biol. Med. 39(11), 1051–1057 (2009).
Oh, S. L. et al. Shockable versus nonshockable life-threatening ventricular arrhythmias using DWT and nonlinear features of ECG signals. J. Mech. Med. Biol. 17(07), 1740004 (2017).
Kaya, Y., & Pehlivan, H. Classification of premature ventricular contraction in ecg. International Journal of Advanced Computer Science and Applications 6(7) (2015)
Wang, X., Gao, Y., Lin, J., Rangwala, H., & Mittu, R. A machine learning approach to false alarm detection for critical arrhythmia alarms. In: 2015 IEEE 14th International Conference on Machine Learning and Applications (ICMLA), 202–207 (IEEE, 2015).
Karpagachelvi, S., Arthanari, M. & Sivakumar, M. Classification of electrocardiogram signals with support vector machines and extreme learning machine. Neural Comput. Appl. 21(6), 1331–1339 (2012).
Althahab, A. Q. J. A new hybrid adaptive combination technique for ecg signal enhancement. Multidimens. Syst. Signal Process. 30(3), 1309–1325 (2019).
Mohebbi, M., & Ghassemian, H. Detection of atrial fibrillation episodes using svm. In: 2008 30th Annual International Conference of the IEEE Engineering in Medicine and Biology Society, 177–180 (IEEE, 2008).
Fairooz, T. & Khammari, H. Svm classification of cwt signal features for predicting sudden cardiac death. Biomed. Phys. Eng. Express 2(2), 025006 (2016).
Acharya, U. R. et al. Automated identification of shockable and non-shockable life-threatening ventricular arrhythmias using convolutional neural network. Future Gener. Comput. Syst. 79, 952–959 (2018).
Song, M. H., Lee, J., Cho, S. P., Lee, K. J. & Yoo, S. K. Support vector machine based arrhythmia classification using reduced features. Int. J. Control Autom. Syst. 3(4), 571–579 (2005).
Wang, Y., Zhu, Y.-S., Thakor, N. V. & Xu, Y.-H. A short-time multifractal approach for arrhythmia detection based on fuzzy neural network. IEEE Trans. Biomed. Eng. 48(9), 989–995 (2001).
Martis, R. J. et al. Automated screening of arrhythmia using wavelet based machine learning techniques. J. Med. Syst. 36(2), 677–688 (2012).
Afonso, V. X. & Tompkins, W. J. Detecting ventricular fibrillation. IEEE Eng. Med. Biol. Mag. 14(2), 152–159 (2002).
Asl, B. M., Setarehdan, S. K. & Mohebbi, M. Support vector machine-based arrhythmia classification using reduced features of heart rate variability signal. Artif. Intell. Med. 44(1), 51–64 (2008).
Wu, S.-C., Chen, P.-T. & Hsieh, J.-H. Spatiotemporal features of electrocardiogram for biometric recognition. Multidimens. Syst. Signal Process. 30(2), 989–1007 (2019).
Li, Q., Rajagopalan, C. & Clifford, G. D. A machine learning approach to multi-level ECG signal quality classification. Comput. Methods Programs Biomed. 117(3), 435–447 (2014).
Muratduranay, F., et al. Arrhythmia detection in multi-channel ecg images: vision transformer and explainable approaches. Knowledge-Based Systems, 114889 (2025)
Khatar, Z., Bentaleb, D., Abghour, N. & Moussaid, K. GAF-GradCAM: Guided dynamic weighted fusion of temporal and frequency GAF 2D matrices for ECG-based arrhythmia detection using deep learning. Sci. Afr. 28, 02687 (2025).
Wang, X. et al. Pra-net: Polymorphic representation aware network for accurate cardiac arrhythmia detection from electrocardiogram signals. IEEE Trans. Instrum. Meas. https://doi.org/10.1109/tim.2025.3547091 (2025).
Lim, J., Han, D. & Chon, K. H. QRS-centric beat-wise atrial fibrillation detection in ECG signals using deep neural networks. Comput. Biol. Med. 192, 110282 (2025).
Shah, A. et al. Electrocardiogram analysis for cardiac arrhythmia classification and prediction through self attention based auto encoder. Sci. Rep. 15(1), 9230 (2025).
Ye, Y. et al. Hybrid CNN-BLSTM architecture for classification and detection of arrhythmia in ECG signals. Sci. Rep. 15(1), 34510 (2025).
Mjahad, A., Rosado-Muñoz, A., Bataller-Mompeán, M., Francés-Víllora, J. & Guerrero-Martínez, J. Ventricular fibrillation and tachycardia detection from surface ECG using time-frequency representation images as input dataset for machine learning. Comput. Methods Programs Biomed. 141, 119–127 (2017).
Anas, E. M. A., Lee, S. Y. & Hasan, M. K. Exploiting correlation of ECG with certain EMD functions for discrimination of ventricular fibrillation. Comput. Biol. Med. 41(2), 110–114 (2011).
Mohanty, M., Sahoo, S., Biswal, P. & Sabut, S. Efficient classification of ventricular arrhythmias using feature selection and C4.5 classifier. Biomed. Signal Process. Control 44, 200–208 (2018).
Dewangan, N. K. & Shukla, S. A survey on ECG signal feature extraction and analysis techniques. International journal of innovative research in electrical, electronics, instrumentation and control engineering 3(6), 12–19 (2015).
Karpagachelvi, S., Arthanari, M., & Sivakumar, M. Ecg feature extraction techniques-a survey approach. arXiv preprint arXiv:1005.0957 (2010)
Hossain, M. M. et al. Analysis of the performance of feature optimization techniques for the diagnosis of machine learning-based chronic kidney disease. Mach. Learn. Appl. 9, 100330 (2022).
Patro, K. K., Jaya Prakash, A., Jayamanmadha Rao, M. & Rajesh Kumar, P. An efficient optimized feature selection with machine learning approach for ECG biometric recognition. IETE J. Res. 68(4), 2743–2754 (2022).
Hassaballah, M., Wazery, Y. M., Ibrahim, I. E. & Farag, A. ECG heartbeat classification using machine learning and metaheuristic optimization for smart healthcare systems. Bioengineering 10(4), 429 (2023).
Qaisar, S. M., Khan, S. I., Srinivasan, K. & Krichen, M. Arrhythmia classification using multirate processing metaheuristic optimization and variational mode decomposition. J. King Saud Univ. Comput. Inf. Sci. 35(1), 26–37 (2023).
Tunç, M. & Cangöz, G. B. Classification of the cardiac arrhythmia using combined feature selection algorithms. Turk. J. Sci. Technol. 19(1), 147–159 (2024).
Goldberger, A. L. et al. Physiobank, PhysioToolkit, and PhysioNet: Components of a new research resource for complex physiologic signals. Circulation 101(23), 215–220 (2000).
Huang, N. E. et al. The empirical mode decomposition and the Hilbert spectrum for nonlinear and non-stationary time series analysis. Proc. R. Soc. Lond. A Math. Phys. Eng. Sci. 454(1971), 903–995 (1998).
Rilling, G. & Flandrin, P. One or two frequencies? The empirical mode decomposition answers. IEEE Trans. Signal Process. 56(1), 85–95 (2007).
Li, X., Jiang, Y., Hong, J., Dong, Y. & Yao, L. Estimation of cognitive workload by approximate entropy of EEG. J. Mech. Med. Biol. 16(06), 1650077 (2016).
Osowski, S. & Linh, T. H. ECG beat recognition using fuzzy hybrid neural network. IEEE Trans. Biomed. Eng. 48(11), 1265–1271 (2001).
Khadra, L., Al-Fahoum, A. S. & Binajjaj, S. A quantitative analysis approach for cardiac arrhythmia classification using higher order spectral techniques. IEEE Trans. Biomed. Eng. 52(11), 1840–1845 (2005).
Torun, M.U., Isler, Y., Kuntalp, D., & Kuntalp, M. Classification of branch block beats using higher order spectral analysis and neural networks. In: 2006 IEEE 14th Signal Processing and Communications Applications, 1–4 (IEEE, 2006).
Osowski, S., Hoai, L. T. & Markiewicz, T. Support vector machine-based expert system for reliable heartbeat recognition. IEEE Trans. Biomed. Eng. 51(4), 582–589 (2004).
Besrour, R., Lachiri, Z.,& Ellouze, N. Ecg beat classifier using support vector machine. In: 2008 3rd International Conference on Information and Communication Technologies: From Theory to Applications, 1–5 (IEEE, 2008).
Yu, S.-N. & Chen, Y.-H. Noise-tolerant electrocardiogram beat classification based on higher order statistics of subband components. Artif. Intell. Med. 46(2), 165–178 (2009).
Mendel, J. M. Tutorial on higher-order statistics (spectra) in signal processing and system theory: Theoretical results and some applications. Proc. IEEE 79(3), 278–305 (1991).
Chaitanya, M. K. & Sharma, L. D. Cross subject myocardial infarction detection from vectorcardiogram signals using binary Harry Hawks feature selection and ensemble classifiers. IEEE Access 12, 28247–28259 (2024c).
Funding
Open access funding provided by Vellore Institute of Technology- AP University.
Author information
Authors and Affiliations
Contributions
Conceptualization: Y Murali Krishna; Data curation: K Padma Vasavi; Formal analysis: Y Murali Krishna; Investigation: M Krishna Chaitanya; Methodology: Y Murali Krishna; Resources: N Udaya Kumar; Supervision:Beebi Naseeba; Validation: Jammisetty Yedukondalu; Writing original draft: M Krishna Chaitanya; Writing review & editing: Jammisetty Yedukondalu;
Corresponding author
Ethics declarations
Competing interests
The authors declare no competing interests.
Additional information
Publisher’s note
Springer Nature remains neutral with regard to jurisdictional claims in published maps and institutional affiliations.
Rights and permissions
Open Access This article is licensed under a Creative Commons Attribution-NonCommercial-NoDerivatives 4.0 International License, which permits any non-commercial use, sharing, distribution and reproduction in any medium or format, as long as you give appropriate credit to the original author(s) and the source, provide a link to the Creative Commons licence, and indicate if you modified the licensed material. You do not have permission under this licence to share adapted material derived from this article or parts of it. The images or other third party material in this article are included in the article’s Creative Commons licence, unless indicated otherwise in a credit line to the material. If material is not included in the article’s Creative Commons licence and your intended use is not permitted by statutory regulation or exceeds the permitted use, you will need to obtain permission directly from the copyright holder. To view a copy of this licence, visit http://creativecommons.org/licenses/by-nc-nd/4.0/.
About this article
Cite this article
Krishna, Y.M., Vasavi, K.P., Chaitanya, M.K. et al. Automated multi-class ECG arrhythmia detection using VMD and multi-task optimization. Sci Rep (2026). https://doi.org/10.1038/s41598-026-44103-5
Received:
Accepted:
Published:
DOI: https://doi.org/10.1038/s41598-026-44103-5


