Accurate Prediction of Type 1 Diabetes Using a Novel Hybrid GRU-Transformer Model and Enhanced CGM Features
Accurate prediction of Blood Glucose (BG) levels is essential for effective diabetes management and the prevention of adverse glycemic events. This study introduces a novel designed hybrid Gated Recurrent Unit-Transformer (GRU-Transformer) model tailored to forecast BG levels at 15, 30, 45, and 60 min horizons using only Continuous Glucose Monitoring (CGM) data as input. The proposed approach integrates advanced CGM feature extraction step. The extracted features are statistically the mean, the median, the maximum, the entropy, the autocorrelation and the Detrended Fluctuation Analysis (DFA). In addition, in order to define more enhanced and specific features, the custom 3-points monotonicity score, the sinusoidal time encoding, and the workday/weekend binary features are proposed in this work. This approach enables the model to capture physiological dynamics and contextual temporal patterns of Type 1 Diabetes (T1D) with great accuracy. To thoroughly assess the performance of the proposed method, we relied on several well-established metrics, including Root Mean Squared Error (RMSE), Coefficient of Determination (R2), Mean Absolute Error (MAE), Mean Absolute Percentage Error (MAPE), and Root Mean Squared Percentage Error (RMSPE). Experimental results demonstrate that the proposed method achieves superior predictive accuracy for both short-term (15–30 min) and long-term (45–60 min) forecasting. Specifically, the model attained the lowest average RMSE values, with 4.00 mg/dL, 6.65 mg/dL, 7.96 mg/dL, and 8.91 mg/dL and yielding consistently high R2 scores for the respective prediction horizons. This new method distinguishes itself by continuously exceeding current prediction models, reinforcing its potential for real-time CGM and clinical decision support. Its high accuracy and adaptability make it a favorable tool for improving diabetes management and personalized glycemic control.
Authors
- Véronique Di Costanzo
- Najiba El Amrani El Idrissi (ORCID: https://orcid.org/0000-0001-5603-1306)
- J. L. Ginoux
- Roomila Naeck
- Loubna Mazgouti (ORCID: https://orcid.org/0009-0007-7537-118X)
- Nacira Laamiri
- Jaouher Ben Ali
Institutions
- Tunis University (TN)
- Centre National de la Recherche Scientifique (FR)
- Université de Toulon (FR)
- Namazi Hospital (IR)
- Artelia (France) (FR)
- Laboratoire d’Informatique et Systèmes (FR)
- National Engineering School of Tunis (TN)
- Centre Hospitalier Intercommunal Toulon-La Seyne-sur-Mer (FR)
- Sidi Mohamed Ben Abdellah University (MA)
- University of Sousse (TN)
Publication Details
- Journal
- Algorithms
- Published
- 2026-01-06
- DOI
- https://doi.org/10.3390/a19010052
- Primary Topic
- Diabetes Management and Research
- Type
- article
- Field-Weighted Citation Impact
- 0.00