Wearable systems for the continuous and real-time monitoring of cardiovascular diseases are becoming widespread and valuable assets in diagnosis and therapy. A promising approach for real-time analysis of the electrocardiographic (ECG) signal and the detection of heart conditions, such as arrhythmia, is represented by the transformer machine learning model. Transformers are powerful models for the classification of time series, although efficient implementation in the wearable domain raises significant design challenges, to combine adequate accuracy and a suitable complexity. In this work, we present a tiny transformer model for the analysis of the ECG signal, requiring only 6k parameters and reaching 98.97% accuracy in the recognition of the 5 most common arrhythmia classes from the MIT-BIH Arrhythmia database, assessed considering 8-bit integer inference as required for efficient execution on low-power microcontroller-based devices. We explored an augmentation-based training approach for improving the robustness against electrode motion artifacts noise, resulting in a worst-case post-deployment performance assessment of 98.36% accuracy. Suitability for wearable monitoring solutions is finally demonstrated through efficient deployment on the parallel ultra-low-power GAP9 processor, where inference execution requires 4.28ms and 0.09mJ.

Busia, P., Scrugli, M.A., Jung, V.J., Benini, L., Meloni, P. (2025). A Tiny Transformer for Low-Power Arrhythmia Classification on Microcontrollers. IEEE TRANSACTIONS ON BIOMEDICAL CIRCUITS AND SYSTEMS, 19(1), 142-152 [10.1109/TBCAS.2024.3401858].

A Tiny Transformer for Low-Power Arrhythmia Classification on Microcontrollers

Benini L.;
2025

Abstract

Wearable systems for the continuous and real-time monitoring of cardiovascular diseases are becoming widespread and valuable assets in diagnosis and therapy. A promising approach for real-time analysis of the electrocardiographic (ECG) signal and the detection of heart conditions, such as arrhythmia, is represented by the transformer machine learning model. Transformers are powerful models for the classification of time series, although efficient implementation in the wearable domain raises significant design challenges, to combine adequate accuracy and a suitable complexity. In this work, we present a tiny transformer model for the analysis of the ECG signal, requiring only 6k parameters and reaching 98.97% accuracy in the recognition of the 5 most common arrhythmia classes from the MIT-BIH Arrhythmia database, assessed considering 8-bit integer inference as required for efficient execution on low-power microcontroller-based devices. We explored an augmentation-based training approach for improving the robustness against electrode motion artifacts noise, resulting in a worst-case post-deployment performance assessment of 98.36% accuracy. Suitability for wearable monitoring solutions is finally demonstrated through efficient deployment on the parallel ultra-low-power GAP9 processor, where inference execution requires 4.28ms and 0.09mJ.
2025
Busia, P., Scrugli, M.A., Jung, V.J., Benini, L., Meloni, P. (2025). A Tiny Transformer for Low-Power Arrhythmia Classification on Microcontrollers. IEEE TRANSACTIONS ON BIOMEDICAL CIRCUITS AND SYSTEMS, 19(1), 142-152 [10.1109/TBCAS.2024.3401858].
Busia, P.; Scrugli, M. A.; Jung, V. J.; Benini, L.; Meloni, P.
File in questo prodotto:
File Dimensione Formato  
A_Tiny_Transformer_for_Low-Power_Arrhythmia_Classification_on_Microcontrollers.pdf

accesso aperto

Tipo: Versione (PDF) editoriale / Version Of Record
Licenza: Licenza per Accesso Aperto. Creative Commons Attribuzione (CCBY)
Dimensione 1.02 MB
Formato Adobe PDF
1.02 MB Adobe PDF Visualizza/Apri

I documenti in IRIS sono protetti da copyright e tutti i diritti sono riservati, salvo diversa indicazione.

Utilizza questo identificativo per citare o creare un link a questo documento: https://hdl.handle.net/11585/1038552
Citazioni
  • ???jsp.display-item.citation.pmc??? 4
  • Scopus 24
  • ???jsp.display-item.citation.isi??? 17
social impact