An LSTM-Based Neural Network Wearable System for Blood Glucose Prediction in People With Diabetes
Félix Tena, Óscar Garnica, Juan Lanchares Dávila, J. Ignacio Hidalgo
Abstract
This article proposes the first hardware implementation 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 proposing new activation functions that target hardware implementation. On top of this proposal, we also prove there is room for improvement in energy consumption by applying neural network optimizations 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 Nord and an Apple iPhone 13 Pro with artificial intelligence 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.