An LSTM-based Neural Network Wearable System for Blood Glucose Prediction in People with Diabetes

IEEE J Biomed Health Inform. 2023 Aug 1:PP. doi: 10.1109/JBHI.2023.3300511. Online ahead of print.

Abstract

This article proposes the first hardware implemen-tation of a low-power LSTM neural network targeting a wearable medical device designed to predict blood glucose at a 30-minute horizon. This work aims to reduce energy consumption by propos-ing new activation functions that target hardware implementation. On top of this proposal, we also prove there is room for improve-ment in energy consumption by applying neural network optimiza-tions at the algorithmic, such as quantization, and architecture level, LSTM hyperparameters, that consider the target hardware. To validate our proposal, we devise an optimized version of the neural network aimed to be wearable and, therefore, to reduce its energy consumption while preserving its accuracy as much as possible. The hardware is implemented on a Xilinx Virtex-7 FPGA VC707 Evaluation Kit. It is compared with (i) a faithful design of the original neural network implemented on the same evaluation kit, (ii) three state-of-the-art LSTM-based FPGA implementations, and (iii) software implementations running in cutting-edge smartphones:OnePlus NordTM and an Apple iPhone 13 ProTM with artificial in-telligence hardware accelerators. Our proposal consumes between ×1020 and ×7 less energy than the software implementations, being the most efficient system compared to the smartphones. On the other hand, its energy efficiency, measured in GFLOP/J, is between ×2.84 and ×7.82 greater than other state-of-the-art LSTM implementations, proving to be the most suitable implementation for a wearable system for blood glucose prediction.