Exploratory Anomaly Detection with Blood Glucose Level Time Series Prediction

Closed

Ade Anggian Hakim, Sharlini Singa Durai, Farhanahani Mahmud, Chin Phong Soon, Zarina Tukiran, Rudi Setiawan

2025 International Journal of Integrated Engineering Vol. 17 Issue 6 Special Issue : Electrical Engineering Article Cited by 1 SDG 3SDG 17 Quartile

Abstract

Diabetes patients need effective blood glucose (BG) management to avoid developing serious health complications. Real-time BG prediction and anomaly detection through deep learning techniques improve diabetes care in this project. This study utilized the ShanghaiT1DM dataset to train Long Short-Term Memory networks for blood glucose prediction with a dataset split of 70% training and 30% testing aimed at optimizing a 30-minute prediction horizon. The study imputed missing data before validating stationarity through both the Augmented Dickey-Fuller and the Kwiatkowski-Phillips-Schmidt-Shin tests. The evaluation of anomaly detection methods included the rule-based approach alongside the statistical technique of Z-score and the machine learning algorithm of the isolation forest method. The highest accuracy for the detection of hypoglycemia was attained by the isolation forest (0.948), followed by the rule-based (0.887) and Z-score (0.791) methods. In the detection of hyperglycemia, the most effective method was the rule-based (0.847), followed by lower accuracies from the Z-score (0.715) and isolation forest (0.550) methods. Furthermore, the rule-based method exhibited superior performance in both the detection of hypoglycemia (accuracy = 0.887) and hyperglycemia (accuracy = 0.847), exhibiting high precision, recall, and F1-scores throughout, hence established as the strongest method for the detection of anomalies. The results from this research attest that the combination of LSTM-based prediction of blood glucose and rule-based detection of anomaly yields the most accurate method for the detection of hypoglycemia and hyperglycemia from the dataset analyzed. Though the rule-based method proved superior over statistical and machine learning methods, the Z-score and isolation forest methods retain potential for improvement. This is an open access article under the CC BY-NC-SA 4.0 license.

Affiliations

Faculty of Electrical and Electronic Engineering, Universiti Tun Hussein Onn Malaysia (UTHM), Parit Raja, Johor, Batu Pahat, 86400, Malaysia; Microelectronics and Nanotechnology Shamsuddin Research Centre, Institute of Integrated Engineering, (UTHM), Parit Raja, Johor, Batu Pahat, 86400, Malaysia; Faculty of Industrial Technology, Institut Teknologi Sumatera, Terusan Ryacudu Street, Way Huwi, South Lampung Regency, 35365, Indonesia

Research at a Glance

Premium content — register to unlock

Research at a Glance

Register to unlock

Topics & SDG Alignment

Premium content — register to unlock

Topics & SDG Alignment

Register to unlock

Collaboration

Premium content — register to unlock

Collaboration

Register to unlock

Author Profile (Selected)

Premium content — register to unlock

Author Profile (Selected)

Register to unlock

References Overview

Premium content — register to unlock

References Overview

Register to unlock

Journal & Source

Premium content — register to unlock

Journal & Source

Register to unlock

Metadata & Integrity

Premium content — register to unlock

Metadata & Integrity

Register to unlock