Cargando…
Design of Hardware Accelerators for Optimized and Quantized Neural Networks to Detect Atrial Fibrillation in Patch ECG Device with RISC-V
Atrial Fibrillation (AF) is one of the most common heart arrhythmias. It is known to cause up to 15% of all strokes. In current times, modern detection systems for arrhythmias, such as single-use patch electrocardiogram (ECG) devices, have to be energy efficient, small, and affordable. In this work,...
Autores principales: | , , , , , , |
---|---|
Formato: | Online Artículo Texto |
Lenguaje: | English |
Publicado: |
MDPI
2023
|
Materias: | |
Acceso en línea: | https://www.ncbi.nlm.nih.gov/pmc/articles/PMC10007562/ https://www.ncbi.nlm.nih.gov/pubmed/36904905 http://dx.doi.org/10.3390/s23052703 |
_version_ | 1784905552925556736 |
---|---|
author | Hoyer, Ingo Utz, Alexander Lüdecke, André Kappert, Holger Rohr, Maurice Antink, Christoph Hoog Seidl, Karsten |
author_facet | Hoyer, Ingo Utz, Alexander Lüdecke, André Kappert, Holger Rohr, Maurice Antink, Christoph Hoog Seidl, Karsten |
author_sort | Hoyer, Ingo |
collection | PubMed |
description | Atrial Fibrillation (AF) is one of the most common heart arrhythmias. It is known to cause up to 15% of all strokes. In current times, modern detection systems for arrhythmias, such as single-use patch electrocardiogram (ECG) devices, have to be energy efficient, small, and affordable. In this work, specialized hardware accelerators were developed. First, an artificial neural network (NN) for the detection of AF was optimized. Special attention was paid to the minimum requirements for the inference on a RISC-V-based microcontroller. Hence, a 32-bit floating-point-based NN was analyzed. To reduce the silicon area needed, the NN was quantized to an 8-bit fixed-point datatype (Q7). Based on this datatype, specialized accelerators were developed. Those accelerators included single-instruction multiple-data (SIMD) hardware as well as accelerators for activation functions such as sigmoid and hyperbolic tangents. To accelerate activation functions that require the e-function as part of their computation (e.g., softmax), an e-function accelerator was implemented in the hardware. To compensate for the losses of quantization, the network was expanded and optimized for run-time and memory requirements. The resulting NN has a 7.5% lower run-time in clock cycles (cc) without the accelerators and 2.2 percentage points (pp) lower accuracy compared to a floating-point-based net, while requiring 65% less memory. With the specialized accelerators, the inference run-time was lowered by 87.2% while the F1-Score decreased by 6.1 pp. Implementing the Q7 accelerators instead of the floating-point unit (FPU), the silicon area needed for the microcontroller in 180 nm-technology is below 1 mm [Formula: see text]. |
format | Online Article Text |
id | pubmed-10007562 |
institution | National Center for Biotechnology Information |
language | English |
publishDate | 2023 |
publisher | MDPI |
record_format | MEDLINE/PubMed |
spelling | pubmed-100075622023-03-12 Design of Hardware Accelerators for Optimized and Quantized Neural Networks to Detect Atrial Fibrillation in Patch ECG Device with RISC-V Hoyer, Ingo Utz, Alexander Lüdecke, André Kappert, Holger Rohr, Maurice Antink, Christoph Hoog Seidl, Karsten Sensors (Basel) Article Atrial Fibrillation (AF) is one of the most common heart arrhythmias. It is known to cause up to 15% of all strokes. In current times, modern detection systems for arrhythmias, such as single-use patch electrocardiogram (ECG) devices, have to be energy efficient, small, and affordable. In this work, specialized hardware accelerators were developed. First, an artificial neural network (NN) for the detection of AF was optimized. Special attention was paid to the minimum requirements for the inference on a RISC-V-based microcontroller. Hence, a 32-bit floating-point-based NN was analyzed. To reduce the silicon area needed, the NN was quantized to an 8-bit fixed-point datatype (Q7). Based on this datatype, specialized accelerators were developed. Those accelerators included single-instruction multiple-data (SIMD) hardware as well as accelerators for activation functions such as sigmoid and hyperbolic tangents. To accelerate activation functions that require the e-function as part of their computation (e.g., softmax), an e-function accelerator was implemented in the hardware. To compensate for the losses of quantization, the network was expanded and optimized for run-time and memory requirements. The resulting NN has a 7.5% lower run-time in clock cycles (cc) without the accelerators and 2.2 percentage points (pp) lower accuracy compared to a floating-point-based net, while requiring 65% less memory. With the specialized accelerators, the inference run-time was lowered by 87.2% while the F1-Score decreased by 6.1 pp. Implementing the Q7 accelerators instead of the floating-point unit (FPU), the silicon area needed for the microcontroller in 180 nm-technology is below 1 mm [Formula: see text]. MDPI 2023-03-01 /pmc/articles/PMC10007562/ /pubmed/36904905 http://dx.doi.org/10.3390/s23052703 Text en © 2023 by the authors. https://creativecommons.org/licenses/by/4.0/Licensee MDPI, Basel, Switzerland. This article is an open access article distributed under the terms and conditions of the Creative Commons Attribution (CC BY) license (https://creativecommons.org/licenses/by/4.0/). |
spellingShingle | Article Hoyer, Ingo Utz, Alexander Lüdecke, André Kappert, Holger Rohr, Maurice Antink, Christoph Hoog Seidl, Karsten Design of Hardware Accelerators for Optimized and Quantized Neural Networks to Detect Atrial Fibrillation in Patch ECG Device with RISC-V |
title | Design of Hardware Accelerators for Optimized and Quantized Neural Networks to Detect Atrial Fibrillation in Patch ECG Device with RISC-V |
title_full | Design of Hardware Accelerators for Optimized and Quantized Neural Networks to Detect Atrial Fibrillation in Patch ECG Device with RISC-V |
title_fullStr | Design of Hardware Accelerators for Optimized and Quantized Neural Networks to Detect Atrial Fibrillation in Patch ECG Device with RISC-V |
title_full_unstemmed | Design of Hardware Accelerators for Optimized and Quantized Neural Networks to Detect Atrial Fibrillation in Patch ECG Device with RISC-V |
title_short | Design of Hardware Accelerators for Optimized and Quantized Neural Networks to Detect Atrial Fibrillation in Patch ECG Device with RISC-V |
title_sort | design of hardware accelerators for optimized and quantized neural networks to detect atrial fibrillation in patch ecg device with risc-v |
topic | Article |
url | https://www.ncbi.nlm.nih.gov/pmc/articles/PMC10007562/ https://www.ncbi.nlm.nih.gov/pubmed/36904905 http://dx.doi.org/10.3390/s23052703 |
work_keys_str_mv | AT hoyeringo designofhardwareacceleratorsforoptimizedandquantizedneuralnetworkstodetectatrialfibrillationinpatchecgdevicewithriscv AT utzalexander designofhardwareacceleratorsforoptimizedandquantizedneuralnetworkstodetectatrialfibrillationinpatchecgdevicewithriscv AT ludeckeandre designofhardwareacceleratorsforoptimizedandquantizedneuralnetworkstodetectatrialfibrillationinpatchecgdevicewithriscv AT kappertholger designofhardwareacceleratorsforoptimizedandquantizedneuralnetworkstodetectatrialfibrillationinpatchecgdevicewithriscv AT rohrmaurice designofhardwareacceleratorsforoptimizedandquantizedneuralnetworkstodetectatrialfibrillationinpatchecgdevicewithriscv AT antinkchristophhoog designofhardwareacceleratorsforoptimizedandquantizedneuralnetworkstodetectatrialfibrillationinpatchecgdevicewithriscv AT seidlkarsten designofhardwareacceleratorsforoptimizedandquantizedneuralnetworkstodetectatrialfibrillationinpatchecgdevicewithriscv |