HYBRID DEEP LEARNING APPROACH FOR ACCURATE ECG BEAT CLASSIFICATION USING RESNET18 AND BILSTM
DOI:
https://doi.org/10.32014/2025.2518-1726.368Keywords:
electrocardiogram classification, arrhythmia detection, deep learning, bidirectional long short-term memory (BiLSTM), ResNet18, biomedical signal processingAbstract
Accurate classification of electrocardiogram (ECG) beats plays a vital role in the early diagnosis of cardiovascular disorders. This paper proposes a novel hybrid deep learning framework that combines a convolutional neural network (CNN) backbone (ResNet18) with a bidirectional long short-term memory (BiLSTM) network to enhance ECG beat classification. Initially, the ECG signals are denoised using discrete wavelet transform with the ‘sym5’ wavelet and segmented into individual beats centered around R-peaks. Each beat is converted into a grayscale image with standardized dimensions of 224×224 pixels, followed by extensive data augmentation to ensure class balance across seven selected beat types: NOR, LBB, RBB, PVC, APC, VFW, and VEB.
Unlike traditional CNN-based approaches, the proposed method uses the ResNet18 network to extract deep spatial features from image representations of beats, which are then processed by a BiLSTM layer to capture sequential dependencies among beats. This temporal modeling enables the classifier to better recognize subtle morphological variations associated with arrhythmic events. Experimental results on the MIT-BIH Arrhythmia Database demonstrate that the hybrid model outperforms baseline CNN architectures, achieving an accuracy of 97.4% and a macro F1-score of 96.8%. Visualization through confusion matrices and F1 bar charts further supports the effectiveness of our approach, particularly in detecting rare beat classes.
This work presents a robust and scalable solution for ECG beat classification, with the potential to be integrated into real-time cardiac monitoring systems for clinical decision support.




