Related Experiment Video
Updated: May 27, 2026

10:17
Real-Time Cardiac Mapping with a Noninvasive Imageless Electrocardiographic Imaging System
Published on: April 11, 2025
A multi-branch vision transformer with GA-optimized focal loss for ECG signal classification
1Computer Engineering Department, Faculty of Technology, Sakarya University of Applied Sciences, Sakarya, Turkey.
Summary
A new hybrid deep learning model, MBViT-FocalGA, accurately classifies electrocardiogram (ECG) signals for detecting cardiac arrhythmias by capturing temporal patterns and addressing class imbalance.
Area of Science:
- Cardiology
- Artificial Intelligence
- Biomedical Signal Processing
Background:
- Electrocardiogram (ECG) signal classification is vital for diagnosing cardiac arrhythmias.
- Challenges include data imbalance and capturing complex temporal patterns in ECG data.
Purpose of the Study:
- To propose a novel hybrid deep learning model, MBViT-FocalGA, for enhanced ECG signal classification.
- To address limitations in current arrhythmia detection methods.
Main Methods:
- Developed a Multi-branch Vision Transformer (MBViT) architecture to learn local and global ECG signal patterns.
- Utilized a Genetic Algorithm (GA) to optimize Focal Loss hyperparameters, mitigating class imbalance.
- Evaluated performance on the MIT-BIH Arrhythmia Database in two-class and five-class scenarios.
Main Results:
- The MBViT-FocalGA model achieved 98% overall accuracy and high F1 scores.
- Demonstrated superior performance compared to traditional deep learning models in both classification scenarios.
- Successfully improved the recognition of minority classes in imbalanced ECG datasets.
Conclusions:
- Transformer-based architectures show significant potential for ECG classification.
- Adaptive loss function optimization is effective in improving arrhythmia detection accuracy.
- The MBViT-FocalGA model offers a promising approach for clinical application in cardiac arrhythmia detection.
Related Concept Videos
Instrumentation Amplifier
An electrocardiography (ECG) machine is an essential piece of medical equipment used to monitor the electrical activity of the heart. It operates by detecting small electrical changes on the skin that result from the depolarization of the heart muscle during each heartbeat. However, these signals are in the microvolt range and can be easily overwhelmed by noise or interference.
To overcome this challenge, an ECG machine utilizes an instrumentation amplifier. This specialized amplifier is...
To overcome this challenge, an ECG machine utilizes an instrumentation amplifier. This specialized amplifier is...
Energy Losses in Transformers
In an ideal transformer, it is assumed that there are no energy losses, and, hence, all the power at the primary winding is transferred to the secondary winding. However, in reality, the transformers always have some energy losses, and, hence, the output power obtained at the secondary winding is less than the input power at the primary winding due to energy losses.
There are four main reasons for energy losses in transformers.
The first cause can be the high resistance of the copper windings...
There are four main reasons for energy losses in transformers.
The first cause can be the high resistance of the copper windings...
Types Of Transformers
Transformers can provide desired voltages to a circuit by modifying the number of turns in the secondary windings.
If the ratio of the number of turns in the secondary winding to that of the primary winding is greater than one, then the transformer is said to be a step-up transformer. In a step-up transformer, the voltage at the secondary winding is greater than the voltage applied at the primary winding.
However, if this ratio is less than one, the transformer is said to be a step-down...
If the ratio of the number of turns in the secondary winding to that of the primary winding is greater than one, then the transformer is said to be a step-up transformer. In a step-up transformer, the voltage at the secondary winding is greater than the voltage applied at the primary winding.
However, if this ratio is less than one, the transformer is said to be a step-down...
Electrocardiogram
An electrocardiogram (ECG or EKG) is a critical diagnostic tool that records the electrical signals produced by the heart during each heartbeat. This recording is achieved through electrodes placed strategically on the arms, legs, and chest. The electrocardiograph amplifies these signals and produces 12 distinct tracings, offering a comprehensive understanding of the heart's electrical activity.
Three major waveforms are present in a typical ECG recording: the P wave, the QRS complex, and the T...
Three major waveforms are present in a typical ECG recording: the P wave, the QRS complex, and the T...
Equivalent Circuits for Practical Transformers
The practical equivalent circuits of single-phase two-winding transformers exhibit significant deviations from their idealized versions due to the inherent properties of winding resistance and finite core permeability. These properties result in real and reactive power losses, affecting the transformer's performance. Understanding these deviations is crucial for designing more efficient transformers.
In a practical transformer, each winding exhibits resistance and leakage reactance. The winding...
In a practical transformer, each winding exhibits resistance and leakage reactance. The winding...
Three-Winding Transformers
Three identical single-phase transformers can be configured to form a three-phase transformer connection, which involves high-voltage and low-voltage windings. The high-voltage windings are denoted by capital letters A-B-C, while the low-voltage windings are labeled with lowercase letters a-b-c, representing their respective phases. This notation helps distinguish between the high and low voltage sides of the transformer.
In the per-unit equivalent circuit of a grounded Y-Y three-phase...
In the per-unit equivalent circuit of a grounded Y-Y three-phase...