Related Experiment Video
Updated: Sep 17, 2025

Real-Time Electrocardiogram Monitoring During Treadmill Training in Mice
Published on: May 5, 2022
DeepECG-Net: a hybrid transformer-based deep learning model for real-time ECG anomaly detection
1Department of Information Technology, College of Computer, Qassim University, Buraydah, 51452, Saudi Arabia. mgietha@qu.edu.sa.
Abstract:
Real-time Electrocardiogram (ECG) anomaly detection is critical for accurate diagnosis and timely intervention in cardiac disorders. Existing models, such as CNNs and LSTMs, often struggle with long-range dependencies, generalization across multiple ECG patterns, and real-time inference with minimal latency. To address these limitations, we propose DeepECG-Net. This hybrid transformer-based deep learning model integrates CNNs and transformer architectures for enhanced feature representation and global dependency capture in ECG anomaly detection. Unlike conventional CNNs, which fail to handle long-term sequence dependencies, or LSTMs, which incur high computational costs, DeepECG-Net leverages a multi-head self-attention mechanism to learn both local and global ECG signal variations efficiently. This results in reduced computational overhead, improved interpretability, and superior real-time detection capabilities. DeepECG-Net achieves 98.2% accuracy with a hierarchical embedding strategy, outperforming ECGNet (88%) and LSTM models (90%). It also demonstrates significant signal reconstruction improvements, with SNR rising from 5.2 dB to 14.5 dB and MSE reducing from 0.042 to 0.007. Its low memory usage (30 MB) makes it ideal for deploying real-time clinical and wearable device applications. Our model achieves 98.2% precision, 96.8% recall, and 97.5% F1 score, closing the gap between AI-driven healthcare and real-time cardiac monitoring. The model is also extended with a federated learning framework for privacy-preserving distributed ECG anomaly detection, supporting deployment across wearable and clinical edge devices. The model was deployed on a Raspberry Pi 4B with 4 GB RAM, achieving sub-50 ms latency and 30 MB memory usage, making it ideal for real-time applications on standalone wearable platforms.
More Related Videos
10:17Real-Time Cardiac Mapping with a Noninvasive Imageless Electrocardiographic Imaging System
Published on: April 11, 2025
11:25Simultaneous Scalp Electroencephalography EEG, Electromyography EMG, and Whole-body Segmental Inertial Recording for Multi-modal Neural Decoding
Published on: July 26, 2013
Related Concept Videos
Electrocardiogram
Three major waveforms are present in a typical ECG recording: the P wave, the QRS complex, and...
Pulse rhythm
Conversely, an irregular pulse pattern is termed dysrhythmia, stemming from disruptions in cardiac...
Instrumentation Amplifier
To overcome this challenge, an ECG machine utilizes an instrumentation amplifier. This specialized amplifier is...
Correlation between ECG and Cardiac Cycle
A cardiac action potential originates in the SA node and spreads throughout the atria and the AV node in approximately 0.03 seconds. This results in the P wave in an ECG and triggers atrial contraction. The action potential is then briefly slowed at the AV node, allowing the atria to contract and fill the ventricles with blood before...