Related Experiment Video
Updated: May 28, 2026

Analyzing Long-Term Electrocardiography Recordings to Detect Arrhythmias in Mice
Published on: May 23, 2021
Real-Time Cardiac Arrhythmia Classification Using TinyML on Ultra-Low-Cost Microcontrollers: A Feasibility Study for
Misael Zambrano-de la Torre1, Sebastian Guzman-Alfaro1, Andrea Acuña-Correa2
1Unidad Académica de Ingeniería Eléctrica, Universidad Autónoma de Zacatecas, Zacatecas 98160, Mexico.
This study demonstrates a real-time cardiac arrhythmia classification system using a quantized deep learning model on an Arduino microcontroller. The Tiny Machine Learning (TinyML) system achieves high accuracy with minimal resources, enabling low-cost cardiac monitoring.
Area of Science:
- Embedded Systems Engineering
- Artificial Intelligence
- Biomedical Signal Processing
Background:
- Edge computing and Tiny Machine Learning (TinyML) enable AI on resource-constrained devices.
- Deploying AI on microcontrollers requires efficient models and hardware optimization.
- Cardiac arrhythmia detection is crucial for remote and low-cost healthcare solutions.
Purpose of the Study:
- To design, implement, and validate a real-time cardiac arrhythmia classification system.
- To deploy a quantized 1D-CNN model on an 8-bit Arduino UNO microcontroller.
- To demonstrate the feasibility of TinyML for low-cost cardiac monitoring.
Main Methods:
- ECG signal acquisition using AD8232, signal preprocessing, and heartbeat segmentation.
- Development and quantization of a 1D-CNN model using TensorFlow and TensorFlow Lite.
- Deployment on an Arduino UNO with real-time visualization on an OLED display.
Main Results:
- Achieved 97.6% accuracy in classifying Normal, Ventricular, and Supraventricular arrhythmias.
- Model footprint below 24 KB with an average inference time of 200 ms per heartbeat.
- Successfully enabled real-time operation on a resource-constrained microcontroller.
Conclusions:
- Lightweight deep learning models can be deployed on ultra-constrained embedded systems via TinyML.
- The system serves as a proof-of-concept for low-cost cardiac monitoring technologies.
- Highlights the trade-offs between AI performance and hardware limitations in embedded systems.
Related Concept Videos
Dysrhythmias V: Evaluating Dysrhythmias
Dysrhythmias VI: Management of Dysrhythmias
Disturbances in Heart Rhythm
Arrhythmias are categorized by their speed, rhythm, and origin. A slow heart...
Dysrhythmias II: Classification of Tachyarrhythmias
Pulse rhythm
Conversely, an irregular pulse pattern is termed dysrhythmia, stemming from disruptions in cardiac muscle...
Mechanism of Cardiac Arrhythmias