cs.LGNov 21, 2026

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

Authors: Nagarajan S, Kurian Polachan

Organizations: International Institute of Information Technology, Bangalore, India

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 PSoC6 microcontroller. The deployed autoencoder and classifier have model sizes of approximately 44KB and 22KB, respectively, with end-to-end processing times of 5.1ms and 4.7ms per ECG segment. Model inference accounts for 3.95ms 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.

Figures & tables

Explore similar work

CardsList
  1. ECG-LDC: A Hardware-Efficient Low-Dimensional Computing Framework for ECG Arrhythmia Classification

    Jun 13, 2026Anh Tran, Khanh Tran, Cuong DoEfficient Neural Network InferenceElectrocardiogram Classification

  2. Toward Energy-Efficient and Low-Power Arrhythmia Detection for Wearable Devices

    Jul 16, 2026Floriaan Bulten, Yawar Rasheed, Arlene John +2Energy-Efficient MLElectrocardiogram Classification