CS Paper Radar

ArrythML-II: An Optimized TinyML Framework for ECG Arrhythmia Detection and Multi-Class Beat Classification on Wearable Devices

Nagarajan S, Kurian Polachan

cs.LG ·submitted 2026-11-21 13:06 UTC · v1

Abstract

This paper presents ArrythML-II, an optimized TinyML framework for on-device ECG arrhythmia detection and multi-class beat classification on wearable platforms. A systematic hyperparameter optimization framework is developed to identify compact autoencoder architectures for binary ECG arrhythmia detection. A custom scoring mechanism jointly considers detection performance, reconstruction-error thresholds, and model size to guide architecture selection. The framework is further extended to six-class ECG beat classification using a lightweight classifier derived from the optimized autoencoder architecture. Both models are INT8 quantized and deployed using TensorFlow Lite Micro on a custom-developed, battery-operated, single-lead ECG device based on the PSoC~6 microcontroller. The deployed autoencoder and classifier have model sizes of approximately 44~KB and 22~KB, respectively, with end-to-end processing times of 5.1~ms and 4.7~ms per ECG segment. Model inference accounts for 3.95~ms and 1.38~ms of these processing times, respectively. In the refined arrhythmia detection evaluation using the MIT-BIH Arrhythmia Database, the autoencoder achieved an accuracy of 84.76\%, precision of 82.68\%, and recall of 77.99\%. The multi-class classifier achieved 82.29\% accuracy, weighted precision of 90.18\%, and weighted recall of 82.29\%. Beyond offline model evaluation, the wearable platform is validated using preloaded ECG segments, live ECG signals, and an ESP32-S3-based ECG emulator that replays annotated MIT-BIH recordings as analog waveforms. The results demonstrate the feasibility of integrating optimized TinyML models into wearable platforms for real-time ECG analysis.

Comment
17 pages

Closest papers

Nearest neighbours by meaning across the whole index.

Few-Shot Prototype Head Adaptation for On-Device ECG Personalization on PSoC~6

cs.LG cs.AI ·2026-10-05 ·Guilherme Silva, Pedro Silva, Gladston Moreira, Eduardo Luz
published similarity 0.71
Abstract

Wearable and bedside electrocardiogram (ECG) monitors must adapt to patient-specific morphology to maintain arrhythmia detection accuracy across users, yet personalization is typically performed offline and cannot account for individual physiology, electrode placement, or recording drift. On-device adaptation by backpropagation is expensive for microcontroller-class medical devices because it requires an optimizer state, repeated backward passes through convolutional layers, and labeled arrhythmic beats that may not be available at deployment time. This letter proposes prototype-only head adaptation as a compact personalization primitive for TinyML ECG systems. A one-dimensional convolutional neural network (1-D CNN; 1,314 parameters and 72.6k multiply-accumulate operations per beat) is trained offline on the MIT-BIH Arrhythmia Database under an inter-patient protocol, frozen as a feature extractor, and exported to a PSoC 6 microcontroller. Patient-specific adaptation then reduces to computing closed-form class means in a 32-dimensional embedding space, requiring no convolutional backward pass, no iterative optimization, and only one forward pass per support beat. Prototype adaptation improves inter-patient macro-F1 from 0.635/0.639/0.646 to 0.731/0.771/0.797 at 1/5/10-shot, outperforming linear stochastic-gradient-descent (SGD) head fine-tuning at every shot count for the target tiny backbone. On-device replay over 18 one-shot episodes on a PSoC 6 Cortex-M4F matches the host macro-F1 for the prototype head (0.798), with 11.39 ms per beat, 5.2 KB flash, and 22.2 KB SRAM. A restricted variant that updates only the normal-class prototype from passively buffered sinus beats yields a consistent +0.05 macro-F1 gain, reducing the annotation burden during initial

0.37

Heart Signal (ECG) as Vibration Signature for Human Authentication Using TinyML

cs.CR cs.AR ·2026-10-17 ·Yogeswar Reddy Thota, Student Member, IEEE, Hanan Alsmadi, Student Member +4 more
similarity 0.67
Abstract

Ensuring data security in the era of Artificial Intelligence (AI) and deepfake technology requires robust biometric systems. Conventional methods such as facial recognition, iris scans, fingerprints, and voice recognition are increasingly vulnerable to spoofing and provide only one-time authentication at login. This study introduces an Electrocardiogram (ECG) based authentication framework, compared with Photoplethysmography (PPG), leveraging Tiny Machine Learning (TinyML) for deployment on resource-constrained microcontroller units (MCUs). The proposed method enables continuous authentication, offering ongoing verification throughout device usage, which conventional biometrics cannot achieve. It also serves as a password-free solution, reducing risks of credential loss, theft, or reuse. However, ECG signals vary with physical activity, health conditions, age, and emotional states, requiring robust signal processing and learning algorithms. To address this, efficient TinyML models were designed to mitigate recognition errors from noisy real-time data. Experiments used single-lead ECG signals (Lead I) from UofTDB, MIT-BIH Arrhythmia, MIT-BIH Noise Stress Test, and PTB databases. Spectrograms and spectral features were extracted to train Deep Neural Network (DNN), 1D CNN, and 2D CNN models within the Edge Impulse platform, achieving 98% accuracy. The trained model was converted into TinyML format and deployed on an Espressif ESP-EYE (ESP32, 240 MHz). Support Vector Machine (SVM) models were also applied for benchmarking. By analyzing the number of heartbeats required for reliable recognition, the results show that averaging multiple signals improves tolerance to noise and enhances accuracy. Overall, ECG-based authentication demonstrates strong potential as a secure, real-time, and continuously verifiable method for personal identification on wearable and edge devices.

0.20

ECGWmark: Deep Watermarking of Electrocardiogram Signals With Error-Correcting Codes

eess.SP cs.CRcs.CV ·2026-10-09 ·Kuan-Yu Chen, Kuan-Chen Wang, Yu Tsao, Jian-Jiun Ding
similarity 0.64
Abstract · 10 pages, 3 figures, 4 tables

Wearable electrocardiogram (ECG) recordings pass through multiple networks and systems before automated interpretation, making patient metadata vulnerable to loss. Digital watermarking embeds this metadata directly into the signal. However, conventional ECG watermarking methods fail under temporal desynchronization, and waveform similarity does not guarantee downstream diagnostic preservation. This article presents ECGWmark, a deep watermarking framework for single-lead ECG. A fully convolutional generator embeds the payload without signal quantization, a detector decodes the message frame by frame and verifies watermark presence, and a frozen arrhythmia classifier penalizes changes that would alter diagnostic predictions. To bridge the gap between bit accuracy and whole-message recovery, payloads are protected by extended Hamming codes, validation-selected interleaving, and soft-decision decoding. On the MIT-BIH Arrhythmia Database, ECGWmark maintains over 90\% bit accuracy under time shifts of 10 to 50 samples, where transform baselines fall to chance level. With the coding layer, the protected 16-bit payload achieves 99.86\% exact recovery on clean segments and sustains over 90\% recovery under time shifts, 10\% sample deletion, and 10\% packet loss. Inter-patient evaluation confirms improved ventricular-beat sensitivity with preserved macro-F1. Requiring only 0.56 million parameters and about 15~ms per segment on a desktop CPU, ECGWmark highlights the need to assess physiological watermarking through whole-message recovery and diagnostic consistency.

0.18

Analysis of Respiratory Sinus Arrhythmia with Neural Networks

cs.LG cs.AI ·2026-09-04 ·Julian Szymanski, Patryk Orkisz, Higinio Mora
top venue similarity 0.63
Abstract

The paper introduces a neural network-based approach for analyzing ECG signals to estimate respiratory rate by leveraging the phe- nomenon of Respiratory Sinus Arrhythmia (RSA). Our method employs a deep learning model trained to predict respiratory waveforms directly from ECG input data. To achieve this, we developed and evaluated three different neural network architectures capable of automatically extract- ing relevant features from ECG signals without the need for manual preprocessing. The proposed approach offers a robust and scalable solu- tion for non-invasive respiratory monitoring, with potential applications in healthcare and wearable technology

0.40

Sensor-Free Shockable Rhythm Classification During CPR Using the Existing ECG Channel of Public-Access Automated External Defibrillators

eess.SP ·2026-11-19 ·Jaechan Lim, David Hicks, Matt Valentine, Ki H. Chon
similarity 0.63
Abstract

Automated external defibrillators (AEDs) are public-access devices intended for use by lay rescuers, yet they must pause chest compressions to analyze the rhythm because compressions corrupt the electrocardiogram (ECG). Removing this pause requires a method that uses the hardware already present in the device, fits within its processor budget, and meets the rhythm-recognition performance required for defibrillator approval. Existing approaches rely either on an auxiliary sensor, which entails a hardware redesign, or on an additional network that reconstructs the ECG before classification. This work classifies the compression-contaminated ECG directly, using only the existing ECG channel of the AED. A cascade of three compact convolutional networks trained with different class ratios verifies each decision with a second network biased toward the proposed outcome; disagreement yields an indeterminate outcome. Evaluated on an independent manufacturer-provided cohort of 464 subjects over 15 train-validation partitions, the cascade satisfies both adjudicable American Heart Association criteria under all six noise conditions at an eight-second window and a signal-to-artifact ratio of 0 dB, with sinus-rhythm specificity of 99.20-99.43% and other non-shockable specificity of 95.48-96.20%, leaving only 1.07-1.48% of segments indeterminate. The criteria are not met at -3 dB. Single networks matched in parameter count and inference cost do not reproduce this performance. Each decision evaluates two of the three networks and requires 6.68 ms on a single thread of a general-purpose processor, and eight-bit quantization reduces the model to 1.45 MiB without changing any compliance verdict. Thus, rhythm analysis during ongoing CPR can be implemented with the ECG hardware already present in public-access AEDs, without auxiliary sensing hardware, subject to validation on the target device.

0.28

Wearable ECG Quality Assessment: A Deep Learning and Ambulatory Context-Awareness Approach

cs.AI eess.SP ·2026-09-24 ·Xiaopeng Mao, Marike Weisbjerg, Sadasivan Puthusserypady
similarity 0.61
Abstract

This paper presents and evaluates a Deep Learning-based (DL-based) Signal Quality Assessment (SQA) model to distinguish between clean and noisy ambulatory Electrocardiograms (ECG). The model is trained on Copenhagen Center for Health Technology-Contextualized Arrhythmia Database (CACHET-CADB), which, to the best of our knowledge, is the first ambulatory ECG database with both physical and patient-reported contextual data. The model shows stable performance on different databases such as MIT-databases and the latest PyhsioNet/Cinc Challenge 2021 databases. Subsequently, the paper demonstrates how complicated ECG noise can be investigated by the SQA model and the physical contextual data.

0.08

TransECG-SSL: Hybrid Self-Supervised Representation Learning for ECG Arrhythmia Classification

cs.LG ·2026-10-26 ·Ahtisham Ayyub, Fasih Haider, Muhammad Rehan Usman, Saturnino Luz, Christos Politis +1 more
similarity 0.60
Abstract · Submitted to IEEE Journal of Biomedical and Health Informatics

Cross-dataset generalisation remains a major challenge for automated electrocardiogram (ECG) arrhythmia classification because of differences in patient populations, acquisition protocols, annotation practices, and class distributions. Learning representations that remain informative across independent datasets could reduce reliance on dataset-specific labelled data. We propose TransECG-SSL, a self-supervised framework for transferable heartbeat representation learning from unlabelled ECG data. A Transformer encoder is pretrained using a hybrid objective combining masked signal reconstruction and contrastive learning, then frozen and evaluated by linear probing under patient-disjoint evaluation. Experiments across three public ECG databases and seven source--target settings show that Hybrid SSL consistently outperforms randomly initialised Transformers and achieves higher balanced accuracy than architecture-matched source-supervised pretraining. Reconstruction-only SSL remains competitive with Hybrid SSL, whereas contrastive-only pretraining performs substantially worse, highlighting the importance of masked reconstruction for transferability. Cross-dataset transfer nevertheless reduces balanced accuracy relative to target-specific self-supervised pretraining, while minority arrhythmia classes remain challenging under severe class imbalance. These findings demonstrate the potential of label-efficient self-supervised learning for cross-dataset ECG representation transfer while highlighting persistent limitations from domain shift and class imbalance.

0.24

Test-Time Adaptation for ECG Classification via SQI-Gated Self-Training and Beat-Rhythm Consistency

cs.LG ·2026-08-24 ·Wenhan Jiang, Zhipeng Deng, Jiale Zhou, Haolin Wang, Yafei Ou +1 more
top venue similarity 0.60
Abstract · Accepted at MICCAI 2026

Deep learning models for electrocardiogram (ECG) classification often suffer from significant performance degradation when deployed in unseen domains due to shifts in acquisition devices and patient populations. Test-time adaptation (TTA) offers a practical solution by adapting models using only unlabeled data at inference time. However, existing TTA methods often underperform on ECG tasks, since naive online updates ignore the hierarchical beat-rhythm structure of cardiac cycles and are vulnerable to signal artifacts, which leads to unstable adaptation and model drift. We propose BeatRhythm-TTA, an ECG-tailored TTA framework that explicitly accounts for ECG's noisy observations and structured beat-rhythm semantics under domain shift. First, to handle pervasive ECG artifacts, we introduce a Signal Quality Index (SQI)-gated adaptation scheme that selectively filters out low-quality signals to prevent harmful updates. Second, to leverage ECG's beat-rhythm semantics, we enforce dual-level consistency so the model preserves beat morphology and rhythm dynamics while adapting to shifted acquisition conditions. Extensive experiments on multi-label ECG diagnosis across three adaptation protocols, using PTB-XL as the source domain and CPSC2018/Georgia as two target domains, demonstrate the effectiveness of our method, yielding an average +2.70% relative improvement in Macro-F1 over the best competing method.

0.55