Deployment of a Spectrogram-Based Classifier for Physical Activity in Type 1 Diabetes on Embedded Systems

Autores
Saavedra, Marcos David; Estrebou, César Armando; Inthamoussou, Fernando Ariel; Garelli, Fabricio
Año de publicación
2025
Idioma
inglés
Tipo de recurso
documento de conferencia
Estado
versión publicada
Descripción
Individuals with Type 1 Diabetes (T1D) face significant challenges in maintaining glycemic control, particularly during and after physical activity (PA), due to its variable impact on blood glucose levels. Accurately identifying the type of PA in real-time is essential for developing effective decision support systems (DSS) and automated insulin delivery (AID) systems that can dynamically adjust therapy. Recent work has demonstrated the effectiveness of Convolutional Neural Networks (CNNs) for classifying PA types (aerobic, interval, resistance) in T1D using heart rate and step count data. However, for practical application in wearable devices or medical equipment like insulin pumps, the computational demands of such models must be significantly reduced. This work presents the deployment of an efficient spectrogram-based CNN PA classifier into resource-constrained embedded systems, specifically microcontrollers (MCUs). The optimization of the spectrogram generation process and the CNN model to suit the limitations of MCU hardware using the EmbedIA framework for MCU code generation is detailed. The classifier was successfully deployed on four MCU platforms (ESP32, ESP32-C3, ESP8266, Raspberry Pi Pico) using floating-point (float), 32- bit fixed-point (fixed32) and 16-bit fixed-point (fixed16) arithmetic. The float and fixed32 implementations maintained the original model’s high accuracy (87.64%), while the fixed16 version showed a minor but acceptable drop to 85.16%. Resource analysis revealed significant reductions in memory usage and, notably, substantial decreases in inference time for fixed-point implementations on MCUs without dedicated floating-point units. These results suggest that the proposed implementation is suitable for low-power embedded systems, highlighting its potential to be integrated into wearable devices and AID/DSS systems for more responsive and personalized glucose management in T1D.
Red de Universidades con Carreras en Informática
Materia
Ciencias Informáticas
physical activity classification
embedded systems
spectrogram
convolutional neural network
type 1 diabetes
Nivel de accesibilidad
acceso abierto
Condiciones de uso
http://creativecommons.org/licenses/by-nc-sa/4.0/
Repositorio
SEDICI (UNLP)
Institución
Universidad Nacional de La Plata
OAI Identificador
oai:sedici.unlp.edu.ar:10915/191140

id SEDICI_fbe14a9190655352de6462636922bbeb
oai_identifier_str oai:sedici.unlp.edu.ar:10915/191140
network_acronym_str SEDICI
repository_id_str 1329
network_name_str SEDICI (UNLP)
spelling Deployment of a Spectrogram-Based Classifier for Physical Activity in Type 1 Diabetes on Embedded SystemsSaavedra, Marcos DavidEstrebou, César ArmandoInthamoussou, Fernando ArielGarelli, FabricioCiencias Informáticasphysical activity classificationembedded systemsspectrogramconvolutional neural networktype 1 diabetesIndividuals with Type 1 Diabetes (T1D) face significant challenges in maintaining glycemic control, particularly during and after physical activity (PA), due to its variable impact on blood glucose levels. Accurately identifying the type of PA in real-time is essential for developing effective decision support systems (DSS) and automated insulin delivery (AID) systems that can dynamically adjust therapy. Recent work has demonstrated the effectiveness of Convolutional Neural Networks (CNNs) for classifying PA types (aerobic, interval, resistance) in T1D using heart rate and step count data. However, for practical application in wearable devices or medical equipment like insulin pumps, the computational demands of such models must be significantly reduced. This work presents the deployment of an efficient spectrogram-based CNN PA classifier into resource-constrained embedded systems, specifically microcontrollers (MCUs). The optimization of the spectrogram generation process and the CNN model to suit the limitations of MCU hardware using the EmbedIA framework for MCU code generation is detailed. The classifier was successfully deployed on four MCU platforms (ESP32, ESP32-C3, ESP8266, Raspberry Pi Pico) using floating-point (float), 32- bit fixed-point (fixed32) and 16-bit fixed-point (fixed16) arithmetic. The float and fixed32 implementations maintained the original model’s high accuracy (87.64%), while the fixed16 version showed a minor but acceptable drop to 85.16%. Resource analysis revealed significant reductions in memory usage and, notably, substantial decreases in inference time for fixed-point implementations on MCUs without dedicated floating-point units. These results suggest that the proposed implementation is suitable for low-power embedded systems, highlighting its potential to be integrated into wearable devices and AID/DSS systems for more responsive and personalized glucose management in T1D.Red de Universidades con Carreras en Informática2025-10info:eu-repo/semantics/conferenceObjectinfo:eu-repo/semantics/publishedVersionObjeto de conferenciahttp://purl.org/coar/resource_type/c_5794info:ar-repo/semantics/documentoDeConferenciaapplication/pdf54-63http://sedici.unlp.edu.ar/handle/10915/191140enginfo:eu-repo/semantics/altIdentifier/isbn/978-987-8258-99-7info:eu-repo/semantics/reference/hdl/10915/189846info:eu-repo/semantics/openAccesshttp://creativecommons.org/licenses/by-nc-sa/4.0/Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International (CC BY-NC-SA 4.0)reponame:SEDICI (UNLP)instname:Universidad Nacional de La Platainstacron:UNLP2026-03-26T09:21:32Zoai:sedici.unlp.edu.ar:10915/191140Institucionalhttp://sedici.unlp.edu.ar/Universidad públicaNo correspondehttp://sedici.unlp.edu.ar/oai/snrdalira@sedici.unlp.edu.arArgentinaNo correspondeNo correspondeNo correspondeopendoar:13292026-03-26 09:21:32.381SEDICI (UNLP) - Universidad Nacional de La Platafalse
dc.title.none.fl_str_mv Deployment of a Spectrogram-Based Classifier for Physical Activity in Type 1 Diabetes on Embedded Systems
title Deployment of a Spectrogram-Based Classifier for Physical Activity in Type 1 Diabetes on Embedded Systems
spellingShingle Deployment of a Spectrogram-Based Classifier for Physical Activity in Type 1 Diabetes on Embedded Systems
Saavedra, Marcos David
Ciencias Informáticas
physical activity classification
embedded systems
spectrogram
convolutional neural network
type 1 diabetes
title_short Deployment of a Spectrogram-Based Classifier for Physical Activity in Type 1 Diabetes on Embedded Systems
title_full Deployment of a Spectrogram-Based Classifier for Physical Activity in Type 1 Diabetes on Embedded Systems
title_fullStr Deployment of a Spectrogram-Based Classifier for Physical Activity in Type 1 Diabetes on Embedded Systems
title_full_unstemmed Deployment of a Spectrogram-Based Classifier for Physical Activity in Type 1 Diabetes on Embedded Systems
title_sort Deployment of a Spectrogram-Based Classifier for Physical Activity in Type 1 Diabetes on Embedded Systems
dc.creator.none.fl_str_mv Saavedra, Marcos David
Estrebou, César Armando
Inthamoussou, Fernando Ariel
Garelli, Fabricio
author Saavedra, Marcos David
author_facet Saavedra, Marcos David
Estrebou, César Armando
Inthamoussou, Fernando Ariel
Garelli, Fabricio
author_role author
author2 Estrebou, César Armando
Inthamoussou, Fernando Ariel
Garelli, Fabricio
author2_role author
author
author
dc.subject.none.fl_str_mv Ciencias Informáticas
physical activity classification
embedded systems
spectrogram
convolutional neural network
type 1 diabetes
topic Ciencias Informáticas
physical activity classification
embedded systems
spectrogram
convolutional neural network
type 1 diabetes
dc.description.none.fl_txt_mv Individuals with Type 1 Diabetes (T1D) face significant challenges in maintaining glycemic control, particularly during and after physical activity (PA), due to its variable impact on blood glucose levels. Accurately identifying the type of PA in real-time is essential for developing effective decision support systems (DSS) and automated insulin delivery (AID) systems that can dynamically adjust therapy. Recent work has demonstrated the effectiveness of Convolutional Neural Networks (CNNs) for classifying PA types (aerobic, interval, resistance) in T1D using heart rate and step count data. However, for practical application in wearable devices or medical equipment like insulin pumps, the computational demands of such models must be significantly reduced. This work presents the deployment of an efficient spectrogram-based CNN PA classifier into resource-constrained embedded systems, specifically microcontrollers (MCUs). The optimization of the spectrogram generation process and the CNN model to suit the limitations of MCU hardware using the EmbedIA framework for MCU code generation is detailed. The classifier was successfully deployed on four MCU platforms (ESP32, ESP32-C3, ESP8266, Raspberry Pi Pico) using floating-point (float), 32- bit fixed-point (fixed32) and 16-bit fixed-point (fixed16) arithmetic. The float and fixed32 implementations maintained the original model’s high accuracy (87.64%), while the fixed16 version showed a minor but acceptable drop to 85.16%. Resource analysis revealed significant reductions in memory usage and, notably, substantial decreases in inference time for fixed-point implementations on MCUs without dedicated floating-point units. These results suggest that the proposed implementation is suitable for low-power embedded systems, highlighting its potential to be integrated into wearable devices and AID/DSS systems for more responsive and personalized glucose management in T1D.
Red de Universidades con Carreras en Informática
description Individuals with Type 1 Diabetes (T1D) face significant challenges in maintaining glycemic control, particularly during and after physical activity (PA), due to its variable impact on blood glucose levels. Accurately identifying the type of PA in real-time is essential for developing effective decision support systems (DSS) and automated insulin delivery (AID) systems that can dynamically adjust therapy. Recent work has demonstrated the effectiveness of Convolutional Neural Networks (CNNs) for classifying PA types (aerobic, interval, resistance) in T1D using heart rate and step count data. However, for practical application in wearable devices or medical equipment like insulin pumps, the computational demands of such models must be significantly reduced. This work presents the deployment of an efficient spectrogram-based CNN PA classifier into resource-constrained embedded systems, specifically microcontrollers (MCUs). The optimization of the spectrogram generation process and the CNN model to suit the limitations of MCU hardware using the EmbedIA framework for MCU code generation is detailed. The classifier was successfully deployed on four MCU platforms (ESP32, ESP32-C3, ESP8266, Raspberry Pi Pico) using floating-point (float), 32- bit fixed-point (fixed32) and 16-bit fixed-point (fixed16) arithmetic. The float and fixed32 implementations maintained the original model’s high accuracy (87.64%), while the fixed16 version showed a minor but acceptable drop to 85.16%. Resource analysis revealed significant reductions in memory usage and, notably, substantial decreases in inference time for fixed-point implementations on MCUs without dedicated floating-point units. These results suggest that the proposed implementation is suitable for low-power embedded systems, highlighting its potential to be integrated into wearable devices and AID/DSS systems for more responsive and personalized glucose management in T1D.
publishDate 2025
dc.date.none.fl_str_mv 2025-10
dc.type.none.fl_str_mv info:eu-repo/semantics/conferenceObject
info:eu-repo/semantics/publishedVersion
Objeto de conferencia
http://purl.org/coar/resource_type/c_5794
info:ar-repo/semantics/documentoDeConferencia
format conferenceObject
status_str publishedVersion
dc.identifier.none.fl_str_mv http://sedici.unlp.edu.ar/handle/10915/191140
url http://sedici.unlp.edu.ar/handle/10915/191140
dc.language.none.fl_str_mv eng
language eng
dc.relation.none.fl_str_mv info:eu-repo/semantics/altIdentifier/isbn/978-987-8258-99-7
info:eu-repo/semantics/reference/hdl/10915/189846
dc.rights.none.fl_str_mv info:eu-repo/semantics/openAccess
http://creativecommons.org/licenses/by-nc-sa/4.0/
Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International (CC BY-NC-SA 4.0)
eu_rights_str_mv openAccess
rights_invalid_str_mv http://creativecommons.org/licenses/by-nc-sa/4.0/
Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International (CC BY-NC-SA 4.0)
dc.format.none.fl_str_mv application/pdf
54-63
dc.source.none.fl_str_mv reponame:SEDICI (UNLP)
instname:Universidad Nacional de La Plata
instacron:UNLP
reponame_str SEDICI (UNLP)
collection SEDICI (UNLP)
instname_str Universidad Nacional de La Plata
instacron_str UNLP
institution UNLP
repository.name.fl_str_mv SEDICI (UNLP) - Universidad Nacional de La Plata
repository.mail.fl_str_mv alira@sedici.unlp.edu.ar
_version_ 1860736630231400448
score 12.977003