Related Experiment Video
Updated: Dec 15, 2025

Author Spotlight: Enhancement of Salient Object Detection for Smart Grid Applications
Published on: December 15, 2023
Electrocardiogram heartbeat classification based on a deep convolutional neural network and focal loss
Taissir Fekih Romdhane1, Haikel Alhichri2, Ridha Ouni2
1National Engineering School of Sousse, Electrical Engineering Department, University of Sousse, Sousse, Tunisia.
This study introduces a deep learning model for electrocardiogram (ECG) analysis, improving arrhythmia detection, especially for imbalanced datasets, using a novel focal loss function for better accuracy.
Area of Science:
- Cardiology
- Biomedical Engineering
- Artificial Intelligence
Background:
- Electrocardiograms (ECGs) are crucial for diagnosing cardiovascular diseases and detecting arrhythmias.
- Traditional ECG analysis involves denoising, segmentation, feature extraction, and classification.
- Existing methods struggle with imbalanced datasets, particularly in classifying minority heartbeat categories.
Purpose of the Study:
- To develop an automated deep learning method for ECG analysis and arrhythmia classification.
- To address the challenge of imbalanced datasets in ECG classification.
- To improve the accuracy and performance of ECG-based arrhythmia detection.
Main Methods:
- A deep learning approach utilizing a convolutional neural network (CNN) for automatic feature extraction and classification.
- A novel heartbeat segmentation algorithm defining beats from R-peak to 1.2 times the median RR interval.
- Optimization of the CNN model with a focal loss function to enhance the importance of minority heartbeat classes.
Main Results:
- The proposed method achieved high performance metrics: 98.41% overall accuracy, 98.38% F1-score, 98.37% precision, and 98.41% recall.
- The focal loss function significantly improved classification accuracy for minority heartbeat classes.
- The method demonstrated superior performance compared to existing state-of-the-art techniques on the MIT-BIH and INCART datasets.
Conclusions:
- The proposed deep learning method offers an effective and automated approach for ECG analysis and arrhythmia detection.
- The focal loss function is a valuable tool for improving classification performance on imbalanced ECG datasets.
- This approach represents a significant advancement in automated cardiovascular disease diagnosis and arrhythmia monitoring.
Related Concept Videos
Electrocardiogram Fundamentals
An electrocardiogram (ECG) is a diagnostic tool for identifying cardiac conditions such as arrhythmias, conduction abnormalities, and myocardial ischemia.
Definition
An electrocardiogram (ECG) visualizes the heart's electrical activity by tracing the electrical movement associated with each heartbeat on a graph or monitor. As the heart beats, an electrical wave passes through it, correlating with the cardiac cycle events.
Parts of an ECG
An ECG utilizes electrodes on the skin...
Electrocardiogram
Three major waveforms are present in a typical ECG recording: the P wave, the QRS complex, and...
Force Classification
Contact and non-contact forces are two of the most widely used categories of forces. As the name suggests, contact forces require physical contact between two objects to act upon each other. Examples of contact forces include frictional,...
Seizures: Classification
Seizures are typically classified into two main categories: focal and generalized seizures.
Focal Seizures
Focal seizures originate from specific regions of the brain. These seizures are further sub-classified into two types:
Electrophysiology of Normal Cardiac Rhythm
Classification of Signals
A continuous-time signal holds a value at every instant in time, representing information seamlessly. In contrast, a discrete-time signal holds values only at specific moments, often denoted as x(n), where...
