Preprint

·2025 OPEN ACCESS

A Comparative Analysis of Supervised and Unsupervised Learning Methods for Normal-Abnormal Heartbeat Classification

Buse Çiçek YTU , Fatih Öztürk YTU , Yunus Emre Erdem YTU , İrem Sayın YTU , Onur Sarıalioğlu YTU , İbrahim Cem Balcı YTU , Su Beşer , Hüseyin Üvet YTU

medRxiv

Abstract

Abstract In this study, the performances of 33 supervised and unsupervised machine learning methods for the automatic classification of cardiac arrhythmias as normal or abnormal using the MIT BIH Arrhythmia Database are evaluated. Electrocardiogram signals from the MLII and V1 leads are segmented into fixed-length windows aligned to the R peak, with raw amplitude values used as model inputs without feature extraction. In the supervised analysis, various statistical and ensemble classifiers are evaluated, while the unsupervised analysis assesses Isolation Forest, One Class support vector machines (SVM), Local Outlier Factor, Elliptic Envelope, and an autoencoder model. The results demonstrate that, when labeled data are available, supervised methods, particularly K nearest neighbors (KNN) and Random Forest, provide higher accuracy and more balanced classification compared with unsupervised models. Unsupervised approaches, on the other hand, are positioned as complementary tools for arrhythmia screening and early warning when labeled data are limited.

Keywords

Unsupervised learning Pattern recognition (psychology) Autoencoder Support vector machine Supervised learning Heartbeat Anomaly detection Outlier Feature (linguistics) Semi-supervised learning Artificial intelligence Computer science

Subject Areas

ECG Monitoring and Analysis ·Cardiology and Cardiovascular Medicine ·Health Sciences
Atrial Fibrillation Management and Outcomes ·Cardiology and Cardiovascular Medicine ·Health Sciences
Phonocardiography and Auscultation Techniques ·Pulmonary and Respiratory Medicine ·Health Sciences