Evaluation of Optimally Tuned K-Nearest Neighbors for 30-Minute Blood Glucose Prediction in Type 1 Diabetes Using OhioT1DM Dataset
Abstract
Diabetes is a long-term chronic medical condition with the potential to evolve into a global healthcare crisis, glycemic control is fundamental for the effective management of diabetes and the prevention of its associated complications. Forecasting future blood glucose levels (BGLs) for diabetic patients can help them avoid serious health problems. This study investigates the application of the KNN regression algorithm to predict future (BGLs), utilizing historical blood glucose measurements from twelve patients (six patients from the Ohio dataset version 2018 and six patients from the Ohio dataset version 2020) as the only input feature. Our proposed approach employed a methodology that utilized historical measurements to train predictive models. Specifically, we leveraged the following historical data points - (BGLs) at 4-hours, 8-hours, 12-hours, 16-hours, 20-hours, and 24-hours intervals - as input features to predict (BGLs) 30 minutes into the future. This study explores the impact of varying parameters of the KNN algorithm, such as the K value= [2,3,5,7,11], weights= ['uniform', 'distance'] and distance metric= ['euclidean', 'manhattan', 'minkowski'], on the performance of the model. Furthermore, we compared the obtained results of the KNN algorithm with other machine learning methods, including linear regression, Random Forests, Support Vector Machines, CatBoostRegressor, LightGBM, XGBoost, artificial neural networks and previous studies. Among these, KNN yielded the best results with optimal hyperparameters (k=2, Weights='distance', Metric='manhattan') in the tow version of datasets OhioT1DM V2018 and OhioT1DM V2020. The OhioT1DM V2018 dataset yielded optimal performance with an RMSE of 5.09 ± 0.91 mg/dl using a 24-hour window size, and an MAE of 2.42 ± 0.34 mg/dl with a 12-hour window size. For the OhioT1DM V2020 dataset, the best results were an RMSE of 5.56 ± 1.14 mg/dl with a 12-hour window size, and an MAE of 2.47 ± 0.34 mg/dl achieved using an 8-hour window size. This research confirms that KNN algorithm with optimal hyperparameters (k=2, Weights='distance', Metric='manhattan') can effectively predict blood glucose events, which will help prevent and reduce the occurrence of serious complications such as hypoglycemia and hyperglycemia.DOI:
https://doi.org/10.31449/inf.v49i11.8334Downloads
Published
How to Cite
Issue
Section
License
I assign to Informatica, An International Journal of Computing and Informatics ("Journal") the copyright in the manuscript identified above and any additional material (figures, tables, illustrations, software or other information intended for publication) submitted as part of or as a supplement to the manuscript ("Paper") in all forms and media throughout the world, in all languages, for the full term of copyright, effective when and if the article is accepted for publication. This transfer includes the right to reproduce and/or to distribute the Paper to other journals or digital libraries in electronic and online forms and systems.
I understand that I retain the rights to use the pre-prints, off-prints, accepted manuscript and published journal Paper for personal use, scholarly purposes and internal institutional use.
In certain cases, I can ask for retaining the publishing rights of the Paper. The Journal can permit or deny the request for publishing rights, to which I fully agree.
I declare that the submitted Paper is original, has been written by the stated authors and has not been published elsewhere nor is currently being considered for publication by any other journal and will not be submitted for such review while under review by this Journal. The Paper contains no material that violates proprietary rights of any other person or entity. I have obtained written permission from copyright owners for any excerpts from copyrighted works that are included and have credited the sources in my article. I have informed the co-author(s) of the terms of this publishing agreement.
Copyright © Slovenian Society Informatika







