Skip to main page content
U.S. flag

An official website of the United States government

Dot gov

The .gov means it’s official.
Federal government websites often end in .gov or .mil. Before sharing sensitive information, make sure you’re on a federal government site.

Https

The site is secure.
The https:// ensures that you are connecting to the official website and that any information you provide is encrypted and transmitted securely.

Access keys NCBI Homepage MyNCBI Homepage Main Content Main Navigation
. 2021 Mar 16;21(1):101.
doi: 10.1186/s12911-021-01462-5.

Stacked LSTM based deep recurrent neural network with kalman smoothing for blood glucose prediction

Affiliations

Stacked LSTM based deep recurrent neural network with kalman smoothing for blood glucose prediction

Md Fazle Rabby et al. BMC Med Inform Decis Mak. .

Abstract

Background: Blood glucose (BG) management is crucial for type-1 diabetes patients resulting in the necessity of reliable artificial pancreas or insulin infusion systems. In recent years, deep learning techniques have been utilized for a more accurate BG level prediction system. However, continuous glucose monitoring (CGM) readings are susceptible to sensor errors. As a result, inaccurate CGM readings would affect BG prediction and make it unreliable, even if the most optimal machine learning model is used.

Methods: In this work, we propose a novel approach to predicting blood glucose level with a stacked Long short-term memory (LSTM) based deep recurrent neural network (RNN) model considering sensor fault. We use the Kalman smoothing technique for the correction of the inaccurate CGM readings due to sensor error.

Results: For the OhioT1DM (2018) dataset, containing eight weeks' data from six different patients, we achieve an average RMSE of 6.45 and 17.24 mg/dl for 30 min and 60 min of prediction horizon (PH), respectively.

Conclusions: To the best of our knowledge, this is the leading average prediction accuracy for the ohioT1DM dataset. Different physiological information, e.g., Kalman smoothed CGM data, carbohydrates from the meal, bolus insulin, and cumulative step counts in a fixed time interval, are crafted to represent meaningful features used as input to the model. The goal of our approach is to lower the difference between the predicted CGM values and the fingerstick blood glucose readings-the ground truth. Our results indicate that the proposed approach is feasible for more reliable BG forecasting that might improve the performance of the artificial pancreas and insulin infusion system for T1D diabetes management.

Keywords: Blood glucose level prediction; Kalman smoothing; Recurrent neural network; Sensor fault correction; Stacked long short-term memory.

PubMed Disclaimer

Conflict of interest statement

The authors declare that they have no competing interests.

Figures

Fig. 1
Fig. 1
Architecture of the proposed BG prediction system
Fig. 2
Fig. 2
Kalman smoothed CGM values vs raw CGM readings for 12 h time window from the patient #563. Here red dots are raw CGM readings, where the blue line is the smoothed CGM values
Fig. 3
Fig. 3
Two layered stacked LSTM network
Fig. 4
Fig. 4
12-h of prediction results over PH = 30, for patient #570 (left) and #575 (right), are illustrated. Here red dots are CGM readings (unprocessed); those are ground truths. Where the blue line is the prediction curve, and the light blue region is the standard deviation
Fig. 5
Fig. 5
12-h period prediction over PH=30, for patient #563 with the model trained with unprocessed CGM readings (Left) and Kalman-smoothed CGM readings for sensor fault correction (Right) respectively

Similar articles

Cited by

References

    1. Group N.D.D, et al. Classification and diagnosis of diabetes mellitus and other categories of glucose intolerance. Diabetes. 1979;28(12):1039–1057. doi: 10.2337/diab.28.12.1039. - DOI - PubMed
    1. Association AD, et al. 2. Classification and diagnosis of diabetes. Diabetes Care. 2017;40(Supplement 1):11–24. doi: 10.2337/dc17-S005. - DOI - PubMed
    1. Cryer PE, Davis SN, Shamoon H. Hypoglycemia in diabetes. Diabetes care. 2003;26(6):1902–1912. doi: 10.2337/diacare.26.6.1902. - DOI - PubMed
    1. Kotagal M, Symons RG, Hirsch IB, Umpierrez GE, Dellinger EP, Farrokhi ET, Flum DR. Perioperative hyperglycemia and risk of adverse events among patients with and without diabetes. Ann Surg. 2015;261(1):97. doi: 10.1097/SLA.0000000000000688. - DOI - PMC - PubMed
    1. Facchinetti A, Favero S, Sparacino G, Cobelli C. An online failure detection method of the glucose sensor-insulin pump system: improved overnight safety of type-1 diabetic subjects. IEEE Trans Biomed Eng. 2012;60(2):406–416. doi: 10.1109/TBME.2012.2227256. - DOI - PubMed

Publication types