Related Experiment Video
Updated: Aug 10, 2025

Patient Directed Recording of a Bipolar Three-Lead Electrocardiogram using a Smartwatch with ECG Function
Published on: December 11, 2019
A Tiny Matched Filter-Based CNN for Inter-Patient ECG Classification and Arrhythmia Detection at the Edge
1Electrical Engineering Department, College of Engineering, King Faisal University, Al-Ahsa 31982, Saudi Arabia.
This study introduces a compact machine learning model for real-time electrocardiogram (ECG) analysis on edge devices, enabling efficient arrhythmia detection without cloud reliance. The tiny convolutional neural network (CNN) offers high accuracy and rapid inference for improved cardiovascular patient monitoring.
Area of Science:
- Cardiology
- Machine Learning
- Edge Computing
Background:
- Cloud-based machine learning (ML) for electrocardiogram (ECG) analysis faces limitations in availability and privacy for real-time arrhythmia detection.
- Edge inference offers a promising alternative but requires computationally efficient ML models suitable for resource-constrained devices.
Purpose of the Study:
- To develop a tiny convolutional neural network (CNN) classifier for real-time ECG monitoring at the edge.
- To address the computational demands of ML algorithms on edge devices for arrhythmia detection.
Main Methods:
- A tiny convolutional neural network (CNN) classifier was designed utilizing matched filter (MF) theory for ECG analysis.
- The model was trained and tested on the MIT-BIH dataset and validated on INCART, QT, and PTB databases.
- Performance was evaluated for generalization and in the presence of noise.
Main Results:
- The proposed classifier achieved an average accuracy of 98.18%, sensitivity of 91.90%, and F1 score of 92.17%.
- High sensitivity was observed for detecting supraventricular (85.3%) and ventricular (96.34%) ectopic beats.
- The model boasts a small size (15 KB) and rapid inference time (<1 ms), outperforming state-of-the-art ECG classifiers.
Conclusions:
- The developed tiny CNN classifier provides a computationally efficient and accurate solution for edge-based real-time ECG arrhythmia monitoring.
- Its minimal complexity and superior performance make it suitable for deployment on resource-constrained edge devices, potentially benefiting millions of cardiovascular patients.
Related Concept Videos
Instrumentation Amplifier
To overcome this challenge, an ECG machine utilizes an instrumentation amplifier. This specialized amplifier is...
Pulse rhythm
Conversely, an irregular pulse pattern is termed dysrhythmia, stemming from disruptions in cardiac...
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...
ECG Interpretation of Arrhythmias II: Atrial, Junctional and Ventricular Arrhythmias
ECG Interpretation of Arrhythmias I: Sinus Arrhythmias
Types of Arrhythmias
Sinus Node Arrhythmias
Sinus Bradycardia: Originating from the sinoatrial (SA) node, sinus bradycardia involves slower impulses, resulting in a heart rate of less than 60 beats per minute (bpm). Causes include sleep, vagal stimulation, beta-blockers, hypothyroidism,...
Holter Monitor: 24-Hour Monitoring

