ArrythML-II:面向可穿戴设备ECG心律失常检测与多类心搏分类的优化TinyML框架
ArrythML-II: An Optimized TinyML Framework for ECG Arrhythmia Detection and Multi-Class Beat Classification on Wearable Devices
ArrythML-II 是一套面向可穿戴平台优化的 TinyML 框架,用于端侧 ECG 心律失常检测与多类心搏分类。其自编码器与轻量分类器经 INT8 量化后部署于基于 PSoC 6 的单导联 ECG 设备,模型大小约 44KB 和 22KB,单段端到端处理时间 5.1ms 和 4.7ms。在 MIT-BIH 数据库上,自编码器准确率 84.76%,六分类器准确率 82.29%。
arXiv:2611.28791v1 Announce Type: new 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.
来源:arXiv (AI + Vision + Imaging) · arxiv.org