Hybrid gradient boosting with SMOTE-augmented feature engineering for high-accuracy cardiac arrhythmia detection: a comparative supervised machine learning study
Keywords:
Cardiac Arrhythmia Detection, ECG Classification, Supervised Machine Learning, Gradient Boosting, Feature Engineering, Hyperparameter OptimizationAbstract
Background: Cardiac arrhythmias are a significant problem in the world and are the cause of around 15-20% of sudden cardiac deaths each year. Electrocardiogram (ECG) signal automated detection at the right time and place is still a major challenge in clinical practice because of signal complexity, inter-patient variation and significant class imbalance in clinical data sets. Objective: This study seeks to propose and test a supervised machine learning pipeline for the automated binary classification of cardiac arrhythmias based on multi-dimensional features extracted from the ECG, which involves gradient boosting classification, data augmentation using SMOTE, feature selection using SelectKBest and systematic hyper parameter optimization using 5-fold stratified cross-validated grid search. Methods: A total of 2,000 ECG samples (970 normal and 1,030 arrhythmic) were collected, pre-processed by Z-score normalization and mean imputation, and then selected the top 12 features from 20 candidate features using chi-squared feature selection. To deal with class imbalance, SMOTE was only employed on the training partition. 6 classifiers (Gradient Boosting, Random Forest, Support Vector Machine, Decision Tree, K-Nearest Neighbors, and Logistic Regression) were trained, tuned and benchmarked using the same experimental conditions. Results: The proposed Gradient Boosting model attained a classification accuracy of 95.8%, a precision score of 96.1%, a recall score of 95.4%, F1-Score of 95.7% and AUC-ROC of 0.989, which is an improvement of 1.6–11.6 percentage points compared to the other baselines. The ablation experiments showed that each of the pipeline stages was indeed a significant contributor to the overall performance and that the combination of SMOTE and hyper parameter optimization resulted in a 5.3% F1-gain compared to the baseline configuration. Conclusion: The proposed ECG arrhythmia detection framework shows competitive performance with recent state-of-the-art ECG classifiers and offers an interpretable and computational efficient method for clinically deployable arrhythmia detection. The pipeline is generalizable to other bio-signal classification applications, and is fully reproducible using open-source code.
References
MartisR. J. AcharyaU. R. MinL. C. ECG beat classification using PCA, LDA, ICA and Discrete Wavelet Transform Biomed. Signal Process. Control 2013 8 5 437 448 09 10.1016/j.bspc.2013.01.005
LitjensG. A survey on deep learning in medical image analysis Med. Image Anal. 2017 42 60 88 12 10.1016/j.media.2017.07.005
GoldbergerL. PhysioBank, PhysioToolkit, and PhysioNet: components of a new research resource for complex physiologic signals Circulation 2000 101 23 E215 E220 06 10.1161/01.CIR.101.23.e215
AttiaZ. I. HarmonD. M. BehrE. R. FriedmanP. A. Application of artificial intelligence to the electrocardiogram Eur. Heart J. 2021 42 46 4717 4730 12 10.1093/eurheartj/ehab649
HannunA. Y. Cardiologist-level arrhythmia detection and classification in ambulatory electrocardiograms using a deep neural network Nat. Med. 2019 25 1 65 69 01 10.1038/s41591-018-0268-3
TsoumasI. Evaluating machine learning algorithms for ECG classification: A systematic review IEEE Access 2022 10 112145 112163 10 10.1109/ACCESS.2022.3214532
JohnsonJ. M. KhoshgoftaarT. M. Survey on deep learning with class imbalance J. Big Data 2019 6 1 12 10.1186/s40537-019-0192-5
ChawlaN. V. BowyerK. W. HallL. O. KegelmeyerW. P. SMOTE: Synthetic minority over-sampling technique J. Artif. Intell. Res. 2002 16 321 357 06 10.1613/jair.953
CortesC. VapnikV. Support-vector networks Mach. Learn. 1995 20 3 273 297 09 10.1007/BF00994018
HearstM. A. DumaisS. T. OsunaE. PlattJ. ScholkopfB. Support vector machines IEEE Intell. Syst. 1998 13 4 18 28 07 10.1109/5254.708428
CharbutyB. AbdulazeezA. Classification based on decision tree algorithm for machine learning Journal of Applied Science and Technology Trends 2021 2 01 20 28 03 10.38094/jastt20165
CoverT. HartP. Nearest neighbor pattern classification IEEE Trans. Inf. Theory 1967 13 1 21 27 01 10.1109/TIT.1967.1053964
BishopC. M. Pattern Recognition and Machine Learning New York, NY, USA Springer 2006 10.1007/978-0-387-45528-0
BreimanL. Random forests Mach. Learn. 2001 45 1 5 32 10 10.1023/A:1010933404324
FriedmanJ. H. Greedy function approximation: A gradient boosting machine Ann. Stat. 2001 29 5 1189 1232 10 10.1214/aos/1013203451
FouladvandS. NoshadM. GoldsteinM. K. PeriyakoilV. J. ChenJ. H. Mild cognitive impairment: Data-driven prediction, risk factors, and workup AMIA Summits Transl. Sci. Proc. 2023 2023 167 175 10.1145/2939672.2939785
KeG. LightGBM: A highly efficient gradient boosting decision tree Proceedings of Advances in Neural Information Processing Systems (NeurIPS) 2017 3146 3154 10.5555/3294996.3295074
HochreiterS. SchmidhuberJ. Long short-term memory Neural Comput. 1997 9 8 1735 1780 11 10.1162/neco.1997.9.8.1735
LeCunY. BengioY. HintonG. Deep learning Nature 2015 521 7553 436 444 05 10.1038/nature14539
BergstraJ. BengioY. Random search for hyper-parameter optimization J. Mach. Learn. Res. 2012 13 281 305 02 10.5555/2188385.2188395
PedregosaF. Scikit-learn: Machine learning in Python J. Mach. Learn. Res. 2011 12 2825 2830 11 10.48550/arXiv.1201.0490
MoodyG. B. MarkR. G. The impact of the MIT-BIH arrhythmia database IEEE Eng. Med. Biol. Mag. 2001 20 3 45 50 05 10.1109/51.932724
Data mining: Practical machine learning tools and techniques 3rd Oxford, England Morgan Kaufmann 2011 10.1016/C2009-0-19715-5
ChandrashekarG. SahinF. A survey on feature selection methods Comput. Electr. Eng. 2014 40 1 16 28 01 10.1016/j.compeleceng.2013.11.024
LiuH. YuL. Toward integrating feature selection algorithms for classification and clustering IEEE Trans. Knowl. Data Eng. 2005 17 4 491 502 04 10.1109/TKDE.2005.66
FawcettT. An introduction to ROC analysis Pattern Recognit. Lett. 2006 27 8 861 874 06 10.1016/j.patrec.2005.10.010
EfronB. TibshiraniR. J. An introduction to the bootstrap Chapman and Hall/CRC 1994 10.1201/9780429246593
GéronA. Hands-On Machine Learning with Scikit-Learn, Keras, and TensorFlow 3rd Sebastopol, CA, USA O’Reilly Media 2022 10.5555/3512891
Published
How to Cite
Issue
Section
Copyright (c) 2026 The Author(s)

This work is licensed under a Creative Commons Attribution 4.0 International License.