Skip to Content
  • Article
  • Open Access

26 May 2026

26 Pages

Looking Ahead When It Is Safe: An Uncertainty-Aware Paradigm for Blood Glucose Prediction with Dynamic Horizon Control

,
,
and
1
Department of Information and Communication Technologies, Centre for e-Health, University of Agder, 4879 Grimstad, Norway
2
Department of Information and Communication Technologies, Centre for Artificial Intelligence Research (CAIR), University of Agder, 4879 Grimstad, Norway
3
Centre for Artificial Intelligence and Innovation Pingla Institute Ltd., Sydney, NSW 2032, Australia
*
Author to whom correspondence should be addressed.

Abstract

Reliable time-series forecasting under rapidly changing conditions remains a critical challenge across many domains, particularly in healthcare, where physiological signals are inherently dynamic and uncertain. Blood glucose level prediction exemplifies this challenge, as accurate and timely forecasts are essential for effective diabetes management, yet traditional approaches rely on fixed prediction horizons and single-point estimates, which may yield unreliable decisions under rapidly changing physiological conditions. In this work, we propose a novel approach for adaptive horizon selection, applied to BGL prediction, employing a deep learning model. It employs evidential learning-based uncertainty quantification that decompose uncertainty into epistemic and aleatoric. Each set of models is trained to predict blood glucose levels at different future time steps, each providing both a point prediction and an associated uncertainty measure. At inference time, it dynamically balances predictive accuracy and reliability by selecting the longest horizon whose predicted uncertainty remains below a predefined threshold. This enables confidence-based horizon selection, using longer prediction horizons during stable periods and switching to shorter horizons when uncertainty signals critical glucose events requiring immediate intervention. This uncertainty-aware prediction approach promotes transparency by exposing confidence levels alongside predictions. Applicable to time-series forecasting tasks broadly, the proposed framework demonstrates encouraging potential, and when applied to BGL prediction as a representative clinical case, shows particular promise for supporting glycemic management through calibrated uncertainty estimation, offering a more transparent and interpretable alternative to fixed-horizon models toward trustworthy decision support in diabetes care.

1. Introduction

Accurate forecasting in sequential settings is a central problem in machine learning, particularly in contexts where decisions depend on predictions at varying time horizons [1]. Most existing approaches assume a fixed prediction horizon, implicitly treating all future time points as equally predictable. However, in many real-world systems, predictive reliability is inherently time-dependent: uncertainty typically increases with horizon length [2] and fluctuates dynamically based on the current system state [3]. This creates a fundamental limitation for fixed-horizon models, which may either provide predictions that are too short-term to be actionable or too long-term to be reliable.
This mismatch between prediction horizon and predictive confidence is especially critical in time-sensitive and safety-critical applications, where decisions must balance informativeness against reliability. While probabilistic forecasting methods provide uncertainty estimates, these are typically used for post hoc evaluation rather than as a mechanism for controlling the prediction process itself [4,5]. As a result, current approaches lack a principled way to adapt the forecasting horizon in response to changing uncertainty conditions, limiting their effectiveness in dynamic environments.
In this work, we propose an uncertainty-aware adaptive horizon selection framework that dynamically determines, at each time step, the most informative prediction horizon subject to a reliability constraint. The key idea is to leverage predictive uncertainty as a control signal, selecting the longest horizon for which the associated uncertainty remains within an acceptable threshold. This formulation is model-agnostic and domain-independent and can be integrated with any multi-horizon forecasting system capable of producing uncertainty estimates. By explicitly coupling horizon selection with predictive confidence, the proposed approach enables adaptive forecasting that balances temporal reach with reliability.
We instantiate the proposed framework in the context of blood glucose prediction, a challenging sequential forecasting task characterized by high inter-individual variability, external interventions (e.g., meals, physical activity), and strict safety requirements [6]. From a physiological perspective, the destruction of insulin-producing β -cells in Type 1 diabetes results in insulin deficiency and persistently elevated BGLs [7]. While intensive insulin treatment combined with continuous glucose monitoring improves glycemic management, achieving optimal control remains challenging due to the complex interplay of dietary intake, exercise, daily habits, and circadian rhythms [7]. Accurate predictions of future glucose levels are therefore essential to enable timely interventions that prevent dangerous hypoglycemic and hyperglycemic excursions [8,9].
Despite this inherent variability, traditional blood glucose prediction models typically rely on fixed point estimates or fixed prediction horizon, such as predicting glucose levels 30 min into the future [10,11,12,13,14,15,16]. While effective in some scenarios, this approach does not account for the variable reliability of such predictions under different physiological conditions. Deterministic predictions can be misleading if the model lacks confidence in its estimates and estimates with fixed horizon may either be overly conservative or dangerously overconfident, depending on the patient’s current condition [3]. In practice, a model that can dynamically adjust its prediction horizon based on the confidence in its forecasts would exhibit quicker adaptation and be safer, as the highly dynamic and variable nature of glucose physiology, influenced by meals, stress, and physical activities, makes certain periods inherently more predictable than others, requiring adaptive prediction windows to balance reliability and actionable time.
The proposed approach, as applied to BGL prediction, dynamically selects the optimal prediction horizon at each time step. Instead of relying on a single model, our method employs multiple bidirectional gated recurrent unit (GRU)-based evidential learning models, each specialized for a different prediction horizon (e.g., 20, 30 min ahead). Each model also provides an uncertainty estimate alongside its point prediction, with uncertainty decomposed into aleatoric and epistemic uncertainty. At prediction time, the system adaptively selects the longest horizon for which the prediction uncertainty is below a predefined threshold value. This enables the system to maximize prediction length while remaining sensitive to the reliability of its prediction. By coupling uncertainty quantification with adaptive model selection, our approach provides a mechanism for uncertainty-aware prediction.
The primary contribution of this work is the operational integration of evidential uncertainty quantification with dynamic prediction horizon control for uncertainty-aware forecasting. Unlike conventional approaches that treat uncertainty as a descriptive byproduct of prediction, we embed model uncertainty directly into the temporal decision process by adaptively regulating the prediction horizon according to confidence levels. Specifically, this work contributes the following:
  • Uncertainty-Driven Temporal Control: We introduce a mechanism that couples evidential uncertainty estimates with adaptive horizon selection, enabling the prediction system to modulate how far it forecasts based on reliability rather than using a fixed look-ahead window.
  • Reliability-Constrained Horizon Adaptation: We formalize horizon selection as a confidence-constrained maximization problem, selecting the longest horizon whose predictive uncertainty remains below an uncertainty threshold, thereby reducing exposure to unreliable long-term forecasts.
  • Clinically Interpretable Confidence Signals: Each prediction is accompanied by decomposed aleatoric and epistemic uncertainty, enabling both dynamic horizon control and downstream risk-aware interpretation.
While uncertainty estimation and multi-horizon prediction have been studied independently, their explicit coupling for safety-driven temporal regulation in biomedical forecasting represents a novel contribution. The proposed uncertainty-driven horizon selection mechanism adaptively determines the optimal prediction horizon based on model confidence, extending or contracting the forecast window in response to estimated uncertainty. This principle is general; rather than committing to a fixed horizon regardless of data complexity, the framework dynamically balances prediction reliability and warning time, a property relevant to any sequential forecasting task where early detection carries clinical or operational value.

3. Methodology

The proposed paradigm, illustrated in Figure 1, constitutes a general uncertainty-aware adaptive horizon selection framework applicable to time-series forecasting tasks. While the framework is described here in the context of BGL prediction as a concrete and clinically motivated instantiation, its design is not inherently domain-specific. The framework consists of multiple evidential models, each built upon a bidirectional GRU with an integrated attention mechanism and independently trained for different prediction step sizes. This architecture demonstrated strong performance in our previous study [3]; it comprises a two-layer GRU with dropout, where each unit maintains bidirectional hidden states of size 2 × hidden dimension, enabling the model to capture both forward and backward temporal dependencies. The resulting sequence representations are passed through an attention module, which applies a linear transformation followed by softmax weighting to generate a context vector emphasizing the most informative time steps. This context vector is then fed into a fully connected (FC) layer that produces four evidential parameters’ gamma ( γ , predicted target value), precision/inverse variance (v reflecting confidence in prediction), alpha ( α related to variance estimation), and beta ( β the scale of uncertainty) defining a normal-inverse gamma (NIG) distribution for modeling predictive uncertainty. By learning these parameters, epistemic (model-related) and aleatoric (data-related) uncertainty components are estimated, allowing for a comprehensive evaluation of model reliability. Aleatoric uncertainty represents the inherent, unavoidable randomness in data themselves, the natural variability that would exist even with a perfect model [3]. Epistemic uncertainty reflects the model’s own uncertainty due to limited training data, essentially how confident the model is in its predictions [3]. The prediction output y ^ ( t ) , aleatoric uncertainty σ aleatoric , epistemic uncertainty σ epistemic , and total uncertainty σ are given by [36]
y ^ ( t ) = γ
σ a = β α − 1
σ e = β v ( α − 1 )
σ = β α − 1 1 + 1 v
Figure 1. General architecture of the uncertainty-aware adaptive horizon selection framework. The blood glucose prediction case is used as an instantiation. It consists of multiple evidential models trained separately for various step sizes. At prediction time, the model with the longest horizon whose predicted uncertainty value remains within an acceptable threshold is selected.
Model training employs an evidential loss function, as described in [36] and Equation (8), which integrates the negative log-likelihood (NLL) with a regularization term to mitigate overconfidence.
ω = 2 β
L NLL = 1 2 log π v − α log ( ω ) + α + 1 2 log v ( y − γ ) 2 + ω + log Γ ( α ) − log Γ α + 1 2
L reg = | y − γ | ( 2 v + α )
L = L NLL + λ L reg
where 2 α is the degrees of freedom. Furthermore, a regularizer L reg is employed to penalize the prediction error [36].
Additionally, instead of relying on a single fixed prediction horizon, the proposed method employs multiple such evidential models, each trained to predict target values at different time horizons.
Here, the estimated uncertainty serves dual purposes: they provide explicit confidence scores for downstream clinical decision-making (per Contribution 3), and they enable adaptive prediction horizon selection. In this work, we demonstrate the latter through threshold-based horizon selection, but the uncertainty values themselves support arbitrary risk-aware decision-making.

3.1. Multi-Horizon Predictions

Let H = { h 1 , h 2 , … , h n } be the set of possible prediction horizons, where each h i represents a future time offset (e.g., 10, 20, 30 min). For each horizon h i ∈ H , a separate model M h i , dedicated to that horizon, is trained to predict at time ( t + h i ) using a sliding window of input features from ( t − w ) to (t), where (w) denotes the window size. Consistent with our previous work [3], we employ a 2 h window size in this study. Formally, each model predicts
y ^ h i ( t ) ≈ y ( t + h i )
where y ^ h i ( t ) is the predicted target value for horizon h i with model M h i .
Each model M h i is specifically designed to generate both a point prediction y ^ h i ( t ) and a corresponding uncertainty estimate σ h i ( t ) at time t. This dual output capability enables the model to explicitly quantify its confidence level for each prediction, providing valuable insights into the reliability of the predictions.

3.2. Adaptive Horizon Selection

At prediction time, the model with the longest horizon whose predictions remain within an acceptable threshold is selected. The threshold ( ϵ ) was selected based on the error ratio, which compares mean prediction errors between high- and low-uncertainty groups defined by percentile thresholds of the uncertainty distribution. A higher error ratio indicates stronger discriminative ability, ensuring that predictions flagged as uncertain are demonstrably more error-prone and providing a principled basis for threshold selection. This selection was performed exclusively on the validation set, independently of the test set, and the chosen threshold was subsequently applied to the test set without further adjustment. Empirical results on the validation set indicated that thresholds in the 70th–90th percentile range consistently maximized the error ratio. The 90th percentile, corresponding to a threshold value of 30, was selected as the operating point for this dataset, reflecting a practical balance between prediction rejection rate and error discrimination. We note that this threshold represents a dataset-specific choice informed by validation performance, and its generalizability across alternative datasets or patient populations remains an important direction for future investigation.
At prediction time, the uncertainty estimates σ h i ( t ) for all horizons h i ∈ H are evaluated based on this defined threshold. The selected prediction horizon h ∗ ( t ) is the longest horizon whose uncertainty is below this threshold:
h ∗ ( t ) = arg max h i ∈ H | σ h i ( t ) < ϵ
From a decision-theoretic perspective, the adaptive horizon mechanism can be interpreted as a constrained reliability optimization rather than a fully Bayesian risk-minimization formulation. Instead of explicitly minimizing an expected utility or cost function, we impose a confidence constraint on the predictive distribution and select the maximal horizon satisfying this constraint. This design choice reflects a practical trade-off: in real-world diabetes management, clinicians typically rely on interpretable confidence bounds rather than abstract utility functions. The threshold-based formulation provides a transparent and operationally simple mechanism for enforcing reliability guarantees without requiring specification of patient-specific cost models, which are often unavailable or highly individualized. Thus, while not a full Bayesian decision-theoretic framework, the approach implements a reliability-constrained temporal control strategy that is consistent with the risk-aware forecasting principle.
In the specific case of BGL prediction, the proposed general framework is instantiated with an additional clinically motivated mechanism to account for the safety-critical nature of hypoglycemic events, prioritizing shorter prediction horizons upon their detection, as formalized in Algorithm 1. Specifically, under normal glycemic conditions, the thresholding mechanism drives horizon selection by identifying the longest horizon for which the uncertainty estimate falls below the defined threshold ϵ . However, when a hypoglycemic event is detected, cascade override operates as a safety-critical layer that supersedes the uncertainty-based selection. The two mechanisms therefore operate in a complementary and hierarchical manner, with uncertainty thresholding governing routine horizon selection and the hypoglycemia cascade ensuring safety-critical responsiveness when low glucose events are detected.
If both 20 min and 70 min models predict hypoglycemia (e.g., 65 mg/dL and 72 mg/dL, respectively), the 20 min prediction indicates a more immediate and typically more severe threat requiring urgent intervention. In glucose management, shorter prediction horizons not only provide less time for preventive action but often indicate more critical glycemic events. Therefore, this cascade override system prioritizes predictions in descending order of urgency (20 min > 30 min > 60 min > 70 min). Nevertheless, to allow the minimum time interval for effective patient intervention [37] and provide optimal balance between prediction accuracy and actionable warning time [38,39], the 30 min horizon is prioritized against 20 min. These prioritization are to ensure that the most time-sensitive hypoglycemic risks trigger immediate clinical intervention while stable normoglycemic predictions rely on longer-horizon models for better accuracy.
Algorithm 1 Uncertainty-Aware Hypoglycemic Glucose Prediction
  • Require: Predictions y ^ h and uncertainties σ h for horizons h ∈ { 20 , … , 60 , 70 } minutes
  • Ensure: Final predictions y ^ final and uncertainties σ final
  1:
Initialize:  y ^ final ← y ^ 70 , σ final ← σ 70 , h source ← “ 70 min ”
  2:
Define hypoglycemia risk indicator:
  3:
HypoRisk h ← ( y ^ h < 70 ) ∨ ( ( y ^ h − σ h ) < 70 )
  4:
Apply cascade override (priority: 20 min > …> 60 min > 70 min):
  5:
for  h ∈ { 70 , 60 … , 20 }   do
  6:
    I h ← { i : HypoRisk h ( i ) = True } {Samples with hypoglycemia risk}
  7:
    y ^ final [ I h ] ← y ^ h [ I h ]
  8:
    σ final [ I h ] ← σ h [ I h ]
  9:
    h source [ I h ] ← h
10:
   if  h ≤ 30  then
11:
       break
12:
   end if
13:
end for
14:
return  y ^ final , σ final , h source

3.3. Final Prediction

The final prediction for each model comes with total uncertainty, providing not just a point estimate but a complete probabilistic assessment. However, the final prediction with adaptive horizon selection, y ^ ( t + h ∗ ( t ) ) , is taken from the model corresponding to the selected horizon:
y ^ ( t + h ∗ ( t ) ) = y ^ h ∗ ( t ) ( t )
This selection mechanism ensures that the system uses the most informative prediction available while adhering to a predefined level of uncertainty tolerance.

3.4. Dataset

This study employed the OhioT1DM dataset [40], comprising comprehensive eight-week monitoring data from twelve Type 1 diabetic patients aged 20–80 years (seven males, five females). The dataset encompasses 166,532 continuous glucose monitoring (CGM) measurements recorded at five-minute intervals using Medtronic Enlite sensors, along with insulin delivery data from Medtronic 530G Pump, Medtronic MiniMed, Inc., Northridge, California, United States (both basal and bolus doses), and self-reported lifestyle information including meals and physical activity captured via smartphone applications and fitness devices. For this analysis, only glucose measurements were utilized. This study adopted the dataset’s existing patient-specific train–test splits for model development and evaluation. The training data underwent further subdivision, with 20% allocated for validation. Following model training on this reduced training set, performance assessment was conducted on completely held-out test data. Data preprocessing involved resampling all signals to consistent five-minute intervals and removing segments with data gaps exceeding 30 min. Linear interpolation addressed shorter missing data periods in training and validation sets, though test data remained unimputed. All signals underwent standardization to achieve zero mean and unit variance.

3.5. Performance Evaluation Criteria

3.5.1. Prediction Performance

This evaluation focuses on the accuracy of the adaptive predictions across varying time horizons, for which standard regression metrics are computed, including mean absolute error (MAE) and root mean square error (RMSE).
Root Mean Square Error (RMSE)
RMSE measures the standard deviation of the prediction errors, reflecting how closely predictions match the reference values. Lower RMSE values indicate higher accuracy.
R M S E = 1 N ∑ i = 1 N ( y h ∗ ( t ) − y ^ h ∗ ( t ) ) 2
Here, y h ∗ ( t ) and y ^ h ∗ ( t ) are the reference and predicted BGLs, respectively, for selected prediction horizon h ∗ ( t ) , and N is the number of test samples.
Mean Absolute Error (MAE)
MAE computes the average absolute difference between predicted and actual values. It treats all errors equally and provides an intuitive measure of overall accuracy.
M A E = 1 N ∑ i = 1 N | y h ∗ ( t ) − y ^ h ∗ ( t ) |
Lower MAE values reflect better predictive performance, while higher values suggest greater deviation from the ground truth.

3.5.2. Uncertainty Calibration

This analysis ensures that the uncertainty estimates are reliable and meaningful. Uncertainty calibration is performed to assess whether the true glucose measurements lie within the predicted ±2 σ confidence interval approximately 95% of the time [41]. Good calibration indicates that the predicted uncertainty intervals reliably correspond to the actual confidence level. Additional analyses such as the reliability diagram are plotted to investigate the calibration quality by calculating the average absolute difference between predicted uncertainty and observed error across different prediction bins [42].

3.5.3. Safety and Clinical Relevance

This evaluation ensures that the system is clinically trustworthy, especially in critical conditions.
Clarke Error Grid
Regression metrics offer general insight, but may overlook clinically critical errors. To address this, the Clarke error grid (CEG) analysis [43] is employed for a more clinically relevant assessment. The CEG visualizes the relationship between predicted and reference BGLs using a scatterplot divided into five zones, each reflecting the potential clinical impact of the prediction error:
  • Region A: Predictions within 20% of reference values (accurate).
  • Region B: Outside 20% but clinically acceptable.
  • Region C: May lead to unnecessary treatment.
  • Region D: Potentially dangerous failure to detect critical events.
  • Region E: Errors leading to harmful opposite treatments.
This visual tool categorizes prediction errors based on clinical safety. Predicted glucose is plotted against reference glucose, with grid zones indicating safe and risky predictions.
Critical Event Detection
This assessment evaluates the system’s ability to detect glycemic events such as hypoglycemia (glucose < 70 mg/dL) and hyperglycemia (glucose > 180 mg/dL). The metrics such as precision, recall, F1 score, and Matthews correlation coefficient (MCC), which are standard metrics used in BGL prediction [44], are utilized for the evaluations.
  • Precision
    Precision measures the proportion of correctly predicted adverse glycemic events among all predicted events. It answers the question: “Of all events predicted as [hypoglycemia/hyperglycemia], how many are actually true events?”
    Precision = T P T P + F P
    where T P = True Positives, T N = True Negatives, F P = False Positives, F N = False Negatives
  • Recall
    Recall = T P T P + F N
    Recall (also known as sensitivity or true positive rate) measures the proportion of correctly predicted adverse glycemic events among all actual events. It answers the question: “Of all actual adverse glycemic events, how many were correctly predicted?”
  • F1 Score
    F 1 Score = 2 × Precision × Recall Precision + Recall
    The F1 score is the harmonic mean of precision and recall. It provides a balance between the two metrics, especially when dealing with imbalanced datasets.
  • Matthews correlation coefficient
    MCC = T P × T N − F P × F N ( T P + F P ) ( T P + F N ) ( T N + F P ) ( T N + F N )
    The MCC is a balanced measure that takes into account all four categories ( T P , T N , F P , F N ). It produces a value between − 1 and + 1 :
    -
    + 1 indicates a perfect prediction;
    -
    0 indicates a random prediction;
    -
    − 1 indicates total disagreement between prediction and observation.

3.5.4. Adaptivity Analysis

This analysis examines how well the system adjusts the prediction horizon in response to changing glucose dynamics and how frequently the horizons are being selected, for which different visualizations are depicted to provide qualitative insights into model behavior.

3.5.5. Ablation Studies

Ablation experiments quantify the contribution of each component in the proposed method.
  • Adaptive Selection: Employing the same model architectures with a fixed prediction horizon (e.g., 30 min), results are compared against the adaptive setup to demonstrate the importance of adaptive selection.
  • Uncertainty Estimation: The significance of incorporating uncertainty is demonstrated by contrasting the results obtained using standard point predictions with those that include uncertainty estimation.

4. Experimental Results and Discussion

4.1. Prediction Performance

The final average RMSE of 30.84 and MAE of 22.24, as presented in Table 1, reflect the inherent trade-off between prediction horizon length and accuracy that characterizes the proposed adaptive approach. The accompanying histogram in Figure 2, illustrating the distribution of selected prediction horizons based on uncertainty estimates, reveals a right-skewed distribution with horizons ranging from 20 to 70 min. A notable concentration is observed at the 50–70-min range, accounting for more than 75% of all selections, with the remaining horizons distributed across shorter intervals, including 30 min (17.6%), and less frequent selections at other horizons (1.4% and 3.2%). This distributional pattern reflects the model’s tendency to select longer horizons when uncertainty estimates permit, thereby maximizing available warning time for clinical intervention. While the resulting RMSE of 30.84 mg/dL is higher than that of fixed short-horizon models, it compares more competitively against fixed predictions at equivalent horizons, improving upon the fixed 60 min model (34.37 mg/dL) by 10.3% and the fixed 70 min model (37.95 mg/dL) by 18.7%.
Table 1. Summary of predictive performance (RMSE, MAE, CEG, and calibration results) of the adaptive prediction horizon method and fixed-horizons method.
Figure 2. Histogram plot demonstrating selection of different prediction horizons based on uncertainty estimates. Selected horizons are plotted along the x-axis, with their frequencies shown on the y-axis.
From a clinical perspective, a fixed-horizon system issues glucose predictions at identical intervals regardless of forecast reliability, whereas the proposed method issues longer-horizon predictions when glycemic conditions are stable and shorter-horizon predictions when rapid glucose variability renders long-range forecasting unreliable. In practical deployment contexts such as closed-loop insulin delivery or hypoglycemia early-warning systems, a high-confidence 40 min forecast is considerably more actionable than an uncertain 60 min forecast, as unreliable long-horizon predictions may contribute to inappropriate clinical decisions. To evaluate this trade-off in a matched-condition setting, accuracy vs. lead-time curves for all fixed-horizon baselines are presented in Figure 3. The adaptive method’s aggregate operating point (RMSE = 30.84 mg/dL, average lead time = 52 min) lies below the fixed-baseline curve at the equivalent lead time, indicating better predictive accuracy relative to a fixed-horizon model operating under the same average forecast length. These comparisons suggest that the adaptive approach achieves a more balanced accuracy–horizon trade-off than fixed long-horizon alternatives, though the trade-off relative to fixed short-horizon models remains an important consideration that should weigh against the extended warning time provided.
Figure 3. Accuracy–lead-time trade-off curves for blood glucose prediction. Each point on the blue curve represents the test-set error (RMSE, left; MAE, right) of a fixed-horizon baseline trained and evaluated at a single prediction horizon (20, 30, 40, 50, 60, and 70 min). The orange diamond denotes the aggregate operating point of the proposed adaptive method, positioned at its average selected horizon of approximately 52 min.

4.2. Uncertainty Calibration

To evaluate uncertainty calibration, the percentage of actual glucose values lying within the ±2 σ confidence interval was analyzed. The model achieved 95.34%, which is closely aligned with the expected 95%, indicating that the uncertainty estimates are well calibrated. Additionally, the reliability diagram in Figure 4 indicates that the model’s uncertainty estimates track reasonably close to the ideal diagonal, with predicted uncertainties spanning from approximately 9 to 35 and corresponding observed errors ranging from 7 to 31. The model exhibits slight underconfidence in low-uncertainty regions, where it predicts errors around 10 but actually achieves errors closer to 7, suggesting that it is somewhat conservative in these cases. Calibration quality is particularly strong in the mid-range (15–20), where predictions align closely with the perfect calibration line. At higher uncertainty levels (30+), the model shows minor underconfidence with observed errors slightly lower than the uncertainty predictions, though this deviation remains modest. Overall, the predicted uncertainty closely aligns with the ideal diagonal and confirms that the model’s uncertainty quantifications are trustworthy for decision-making purposes.
Figure 4. Reliability diagram demonstrating how well a model’s predicted uncertainty estimates (plotted along the x-axis) match its actual errors (plotted along the y-axis) to assess model calibration.
To further evaluate the predictive distribution, we assess all three uncertainty components, aleatoric, epistemic, and total, across a comprehensive set of probabilistic metrics, summarized in Table 2. The results reveal a consistent trade-off between calibration, sharpness, and error–uncertainty alignment across uncertainty components. In particular, none of the uncertainty representations simultaneously optimize all evaluation criteria. We observe statistically significant but weak Spearman rank correlations across all components: aleatoric (0.1819), epistemic (0.1312), and total uncertainty (0.12) (all p < 0.0001). Among these, aleatoric uncertainty exhibits the strongest association with absolute prediction error, suggesting that data-inherent variability contributes meaningfully to prediction difficulty. However, the overall low magnitude of correlations indicates that none of the uncertainty components provide a strong standalone ranking signal.
Table 2. Comparison of aleatoric, epistemic, and total uncertainty across calibration, sharpness, and ranking metrics.
Aleatoric uncertainty achieves the lowest calibration error (ECE), indicating strong local calibration; however, it systematically undercovers at all interval levels (e.g., ±2 σ coverage: 86.97% vs. expected 95%), reflecting overly narrow predictive intervals. In contrast, total uncertainty achieves the most reliable coverage behavior, including near-nominal performance at higher confidence levels (e.g., 90% coverage = 0.900 and ±2 σ coverage = 95.34%), and the best overall probabilistic performance in terms of NLL and CRPS. These results highlight a fundamental trade-off between calibration, sharpness, and error–uncertainty alignment. Aleatoric uncertainty better captures error structure but lacks reliable interval coverage, whereas total uncertainty improves calibration and probabilistic scoring but weakens error ranking ability. Epistemic uncertainty plays an intermediate but non-dominant role.
Overall, no single uncertainty component simultaneously optimizes calibration, sharpness, and ranking performance, suggesting that treating uncertainty as a single aggregated quantity is suboptimal for downstream decision tasks. Instead, separating or reweighting aleatoric and epistemic components may better align uncertainty estimates, potentially achieved via learned weighting schemes or task-aware decision layers that dynamically adjust the contribution of each component.

4.3. Safety and Clinical Relevance

4.3.1. Clarke Error Grid

The CEG in the provided result evaluates the accuracy of predicted blood glucose concentrations compared to reference values. The grid is divided into five zones (A–E), each representing a different level of clinical accuracy. Zone A indicates clinically accurate measurements that would lead to correct treatment decisions. Zone B would not result in harmful clinical outcomes, making them clinically acceptable. Zones C through E represent increasing levels of inaccuracy. In Figure 5, most data points appear concentrated in Zones A and B, closely aligning with the diagonal line (y = x). It is also indicated in the results in Table 1; 97.99% data points lie in Zones A and B, which suggests that the predictive model demonstrates strong aggregate accuracy in terms of glucose concentration error. The minimal presence of points (2.00%) in Zones C–E indicates a low rate of large-magnitude prediction errors, with only a small fraction of predictions falling into regions associated with potentially inappropriate clinical decisions based on glucose concentration.
Figure 5. Visual plot of Clarke error grid, a standard tool for evaluating the accuracy of BGL predictions versus reference values. The grid divides predictions into Zones A–E, ranging from clinically accurate or acceptable (A–B) to increasingly inaccurate and potentially harmful (C–E).

4.3.2. Critical Event Detection

As CEG evaluates distributional accuracy in aggregate and does not capture event-level detection performance, the confusion matrix and classification metrics in Table 3 and Table 4 provide a more detailed evaluation of the model’s performance across individual glycemic states, namely hypoglycemia, normal, and hyperglycemia. The model demonstrates strong overall classification ability, correctly identifying the majority of normal and hyperglycemia cases, though some misclassifications occurs between adjacent categories, particularly normal and hyperglycemia, where values near the threshold are often clinically ambiguous. The confusion matrix in Table 3 reveals asymmetric misclassifications between the two states: the system correctly identifies normoglycemic states 92.3% of the time and hyperglycemic states 75.8% of the time, but critically, only correctly predicts hypoglycemic states 47.4% of the time. This 52.6% miss rate for hypoglycemia is clinically concerning, as it means more than half of all hypoglycemic episodes are not being anticipated by the prediction system, potentially leaving patients at substantial risk without adequate warning to take preventive action.
Table 3. Confusion matrix for future glycemic state predictions.
Table 4. Classification results of hypoglycemia and hyperglycemia predictions.
For hypoglycemia detection, the model achieves a precision of 0.61, meaning that when it predicts hypoglycemia, it is correct 61% of the time, while the recall of 0.49 indicates that it only catches about half of actual hypoglycemic events. The F1 score of 0.54 and MCC of 0.53 both suggest moderate overall performance that is meaningfully better. The low recall is particularly problematic in this medical context, as missing half of hypoglycemic events could lead to serious health consequences. Hyperglycemia classification shows higher effectiveness, with a precision of 0.91, recall of 0.75, and F1 score of 0.82, reflecting the model’s strong capability to identify elevated glucose levels with fewer false positives. The MCC score of 0.70 for hyperglycemia confirms a strong correlation between the predicted and actual classes, suggesting balanced and robust performance across the model. Overall, the results indicate that the model performs particularly well for distinguishing normal and hyperglycemic states, with some room for improvement in hypoglycemia recall.

4.4. Adaptivity Analysis

The graph plot in Figure 6 reveals a sophisticated adaptive relationship between predicted glucose dynamics and horizon selection behavior across an approximately 4.5-day observation period. The result demonstrates clear reactivity to glucose instability, with the most striking example occurring on the afternoon of 21 January where predicted glucose drops precipitously to approximately 60 mg/dL (approaching hypoglycemia), where there is a reduction in prediction horizons to 20–30 min for those glucose drops. This can be meaningfully defined as the adaptive selection prioritizes safety by ensuring better accuracy and allowing immediate clinical intervention during this high-risk period. Similarly, the night of 21 January shows horizons dropping to 30–40 min, coinciding with predicted glucose values in the 100–120 mg/dL range with visible fluctuations, appropriately reflecting increased vigilance during periods of nocturnal glucose variability. In contrast, during periods of glucose stability, longer prediction horizons are consistently selected, as evidenced by the sustained 60–70 min horizons during mid-morning periods (08:00–10:00) and stable daytime segments when predicted glucose maintains steady values in the 120–200 mg/dL range. It also demonstrates appropriate conservatism during rapid glucose transitions, such as the post-meal spikes visible on 18, 21, and 22 January, where glucose rises sharply to 300+ mg/dL, with horizon reductions to 40–50 min. Notably, nighttime behavior varies across days based on glucose stability rather than time per nights, with relatively stable glucose patterns (18–19 January, 21–22 January) selecting 50–60 min horizons, while nights with greater variability trigger more conservative 30–40 min selections, demonstrating that the horizon selection mechanism is also driven by dynamics of glucose levels. Overall, this visualization revealed the following:
Figure 6. A time-series plot illustrating selected horizons (minutes) in blue and predicted glucose levels (mg/dL) in a red dashed line over roughly 4.5 days. Lower prediction horizons (20–30) are shown in red, while different times of day, night (20:00–06:00), early morning (06:00–08:00), mid-morning (08:00–10:00), and day (10:00–20:00) are represented in blue, yellow, orange, and green, respectively.
Hypoglycemia response: Lower glucose 60 mg/dL correlates with minimum horizons of 20–30 min;
Hyperglycemia spikes: Rapid rises to 300+ mg/dL allowed moderate horizon reductions (not as severe as hypo);
Stability periods: Flat glucose in the 150–200 range selected maximum horizons of 60–70 min;
Night variability: Different night behaviors are clearly explained by glucose patterns, not just time of day;
Dynamic adaptation: The system continuously adjusts horizons in response to glucose trajectory changes. This visualization validates that the horizon selection is working as intended, being conservative when glucose is unstable/dangerous and confident when glucose is stable.
Figure 7 demonstrates how prediction uncertainty systematically varies with both the prediction horizon and glucose levels. Short-term predictions (20–40 min) with low uncertainty (10–30) cluster tightly, while longer horizons (50–70 min) show substantially higher uncertainty (30–40) as predictions become less reliable. The plot reveals three distinct glucose regimes: hypoglycemic events (50–80 mg/dL) are predicted with very low uncertainty at short horizons, normal glucose levels (100–180 mg/dL) show moderate and progressively increasing uncertainty with time, and hyperglycemic episodes (250–400 mg/dL) display higher uncertainty due to which the short prediction horizons have been selected, suggesting rapid and unpredictable glucose dynamics during these critical events. Also, as the prediction horizon extends (50–70 min), uncertainty increases, and the spread of glucose predictions becomes wider, reflecting declining confidence in longer-term predictions, a common feature in prediction models. At extended prediction horizons between 50 and 70 min, predictions tend to converge toward mean glucose values (100–250 mg/dL), indicating that the model’s predictive reliability depends not only on the time horizon but also on the glucose range, consistent with the previous adaptivity analysis. It performs more confidently for near-term and hypoglycemic predictions but becomes increasingly uncertain for longer-term and hyperglycemic predictions. Overall, the plot effectively demonstrates the dual dependence of predictive confidence on both temporal distance and glucose level. While the model demonstrates comparatively higher confidence in hypoglycemic predictions relative to other prediction categories, the absolute performance metrics remain modest, with precision of 61% and recall of 49%, as detailed in the previous section. This moderate performance can be attributed to the inherent class imbalance in the dataset, where hypoglycemic events are substantially rarer than normal glucose readings, thereby limiting the model’s exposure to these critical patterns during training.
Figure 7. A plot illustrating different horizon selections overlaid on glucose trends. Predicted glucose levels are shown on the y-axis, with red and purple dashed lines indicating hypo- and hyperglycemic ranges, respectively, while uncertainties are plotted on the x-axis. The selected horizons for each prediction are displayed in distinct colors.
The analysis of blood glucose prediction horizons across different times of day is depicted in Table 5, Table 6, Table 7 and Table 8. The result in Table 5 shows, across all four time periods, night, morning, day, and evening, the system predominantly utilized longer horizons (51–70 min), which were selected 42–52% of the time across all periods, while the short horizons were only employed for 15–23% of the time. The overall prediction performance in Table 6 demonstrates clinically acceptable accuracy, with 68.4% of predictions falling within 20 mg/dL of actual glucose values and a mean absolute error of 22.2 mg/dL. The system achieves excellent accuracy for nearly half of all predictions (45.0% within 10 mg/dL), though a concerning 11.9% of predictions exhibit poor performance with errors exceeding 40 mg/dL.
Table 5. Distribution of prediction horizon selection by times of the day.
Table 6. Overall prediction accuracy distribution based on error ranges.
Table 7. Distribution of prediction accuracy based on glycemic state and time of the day.
Table 8. Summary of glycemic states’ prediction accuracy.
The temporal and glycemic state interaction analysis in Table 7 reveals distinct patterns in prediction performance across different times of day. Night hours demonstrate the most consistent and accurate predictions across all glycemic states, with errors ranging from 13.6 to 21.4 mg/dL and 76–84% of predictions within clinically acceptable bounds. This superior nighttime performance occurs despite using relatively long average horizons of 54 min for hyperglycemic states, suggesting that nocturnal glucose dynamics are inherently more predictable due to the absence of meals, activity, and insulin boluses. Morning predictions show the best performance for hypoglycemic detection (12.9 mg/dL average error, 89.5% accuracy) but struggle with hyperglycemia, which exhibits a 27.8 mg/dL average error. Day and evening periods demonstrate progressively degrading accuracy, with evening glycemic predictions showing particularly concerning performance: an average error of 29 mg/dL with only 44.4% and 61.9% of hypo- and hyper-predictions within 20 mg/dL, representing the weakest predictive capability across all time–state combinations. This degradation in prediction performance may be attributed to increased variability in glucose dynamics during daytime and evening hours, driven by meals, physical activity, and insulin boluses. Overall, the system’s ability to correctly classify future glycemic states is moderately strong overall, achieving 84.1% accuracy in predicting whether glucose will be in hypoglycemic, normal, or hyperglycemic ranges at the selected horizon, as shown in Table 8. Night predictions are most accurate at 86.5%, declining progressively through morning (85.2%), day (83.1%), and evening (81.4%); these differences in performance can be attributed to variations in glucose stability and dynamics throughout the day.

4.5. Ablation Study

4.5.1. Adaptive Selection

To analyze the significance of using the adaptive prediction horizon strategy, glycemic detection performance is compared between fixed-horizon and adaptive horizon configurations, as presented in Table 9. The results reveal a nuanced picture in which the adaptive approach offers certain advantages over fixed-horizon alternatives, though the degree of improvement varies across glycemic conditions and metrics. For hyperglycemia detection, the adaptive method achieves a precision of 0.91, recall of 0.75, and F1 score of 0.82, reflecting a reasonable balance between sensitivity and specificity. For hypoglycemia, performance is more modest, with an F1 of 0.54 and recall of 0.49. The MCC values of 0.70 for hyperglycemia and 0.53 for hypoglycemia provide additional context, indicating moderate-to-reasonable agreement with ground truth labels across both conditions.
Table 9. An ablation study: The effect of adaptive horizon selection strategy.
When compared against fixed-horizon models, the adaptive approach demonstrates its clearest advantage over longer fixed horizons. The fixed 60 min model degrades substantially in hypoglycemia detection (F1 = 0.026, recall = 1.4%), whereas the adaptive method maintains considerably more stable performance across both glycemic events by selecting shorter horizons when uncertainty is high. The comparison with the fixed 30 min model is more nuanced: performance across several metrics is comparable, and in some cases, the fixed 30 min model achieves higher recall and F1 for hyperglycemia. The key distinction lies in the horizon itself; the adaptive method achieves similar event-detection performance while predominantly selecting horizons of 50–70 min, offering substantially greater warning time when conditions permit. This extended predictive reach, achieved without sacrificing detection stability, represents a different operational capability rather than a straightforward accuracy gain.

4.5.2. Uncertainty Estimation

To analyze whether the uncertainty has importance in predictive performance, the detection strategies for hypo- and hyperglycemia are compared, as shown in Table 10, which highlights the trade-off between sensitivity and false alarms. For hypoglycemia, the point prediction strategy detects only 48.9% of events but keeps false alarms low (125), while the conservative strategy (mean − 1 σ ) with additional uncertainty introduction dramatically increases sensitivity to 85.5% at the cost of many more false alarms (983). A very conservative approach (mean − 2 σ ) further improves sensitivity to 95.2%, with an increase in false alarms. A similar pattern is observed for hyperglycemia detection in Table 11; the point prediction strategy captures 75.8% of events with 573 false alarms, whereas the conservative (mean + 1 σ ) and very conservative (mean + 2 σ ) strategies achieve sensitivities of 94.4% and 99.7%, respectively, while generating substantially more false alarms.
Table 10. An ablation study: Hypoglycemia detection strategy comparison.
Table 11. An ablation study: Hyperglycemia detection strategy comparison.
These detection strategies are presented as an exploratory analysis to demonstrate the clinical utility of predictive uncertainty rather than as alternative operating modes of the proposed framework. The results nonetheless highlight a clinically meaningful trade-off: the false alarm burden rises substantially with each increase in conservatism. Concretely, this corresponds to a marked rise in false positive alerts per patient-day, which may become burdensome in continuous monitoring settings and contribute to alarm fatigue.
Under a clinically motivated risk model, where missed hypoglycemic events are considered significantly more harmful than false alarms, a moderate increase in false alarms can be justified if it leads to a substantial gain in sensitivity. In this context, the (mean − 1 σ ) strategy offers a balanced operating point, achieving a large sensitivity gain while keeping the false alarm rate within a more manageable range compared to the more aggressive (mean − 2 σ ) strategy. Thus, (mean − 1 σ ) is a reasonable default in safety-critical monitoring scenarios, where reducing missed hypoglycemic events is a priority, while still limiting excessive alarm burden. Point prediction may be preferable in lower-risk settings where minimizing alarm frequency is critical, whereas (mean − 2 σ ) may be reserved for extreme high-risk cases where maximizing sensitivity outweighs concerns about alarm fatigue.

4.6. State-of-the-Art Baseline Methods

The performance of the proposed adaptive horizon selection model is compared with several data-driven baseline models described in our previous work [14], with Table 12 summarizing hypoglycemia detection performance. As the proposed method operates with a variable prediction horizon rather than a fixed one, the comparison presented here serves as a contextual reference rather than a direct equivalent. Given the near-zero performance of baseline methods for hypoglycemia detection at the 60 min horizon, the 30 min fixed horizon is used as the most meaningful reference point for this comparison.
Table 12. Comparison of hypoglycemia detection performance between proposed method and baselines over a prediction horizon = 30 min.
As shown in Table 12, precision varies considerably across methods, with CNN and TCN achieving the highest precision (0.72), indicating relatively few false positives when hypoglycemia is predicted. The proposed method and FFN achieve moderate precision values in the range of (0.60–0.61). Recall is generally lower than precision across all models, reflecting the inherent difficulty of hypoglycemia event detection. Among the methods compared, the proposed approach achieves the highest recall (0.49), suggesting improved sensitivity relative to fixed-horizon alternatives, though a substantial proportion of events remain undetected. F1 scores are comparable between the proposed method and SAN (0.54 each), and MCC values are similarly close (0.53 vs. 0.54 respectively), indicating that the two methods perform at a broadly equivalent level on this metric. FFN, CNN, and TCN show less balanced performance overall, with CNN in particular exhibiting very low recall (0.04) despite high precision.
Taken together, these results indicate that the proposed adaptive method achieves competitive performance in hypoglycemia detection relative to the compared baselines, particularly in terms of recall, while predominantly operating at horizons of 50–70 min. This is particularly noteworthy given that fixed-horizon baselines exhibit near-zero performance at the 60 min horizon, where the adaptive mechanism maintains reasonable detection performance by dynamically adjusting to shorter horizons when uncertainty is high, demonstrating the practical value of uncertainty-driven horizon adaptivity.

5. Limitations and Future Work

While the proposed framework demonstrates encouraging results, several aspects merit further consideration. The evaluation is currently limited to a single dataset, which may constrain generalizability, given that blood glucose dynamics can vary considerably across patient populations with differing meal patterns, physical activity levels, stress responses, and insulin usage. As such, the model’s robustness to potential dataset shifts between training and deployment settings remains an important area for future validation. In addition, the present framework relies solely on glucose inputs; incorporating additional physiological signals, such as meal intake and insulin records, could potentially enhance both predictive accuracy and uncertainty calibration in real-world applications.
Furthermore, the model is trained on aggregated data across patients to capture general blood glucose dynamics; however, personalized models for individual patients and per-patient or per-horizon adaptive uncertainty thresholds that better account for varying uncertainty profiles represent a promising direction for future work.
Although the current evaluation reports sample-level glycemic state classification, it does not extend to episode-level hypoglycemic event detection, which would further strengthen the clinical validity of the reported results. Metrics such as event-detection rate, lead time before onset, and false alarm rate per day are therefore not evaluated in the current work and represent a natural extension toward clinical deployment. At the sample level, approximately half of hypoglycemic instances are missed at the default threshold (recall = 0.49), indicating limited sensitivity to low-glucose events. While the Clarke error grid (CEG) analysis shows that 97.99% of predictions fall within clinically acceptable Zones A and B, this metric primarily reflects aggregate prediction accuracy across all glycemic ranges and may not adequately capture the clinical impact of missed hypoglycemic events specifically. Furthermore, a more detailed analysis by hypoglycemia severity, distinguishing Level 1 (54–70 mg/dL) from Level 2 (<54 mg/dL), would provide better insight into clinical risk and remains an important direction for future work. Additional improvements may include expanding the dataset to better represent hypoglycemic events and exploring asymmetric loss functions to enhance sensitivity in the low-glucose range.

6. Conclusions

In this study, we present a novel uncertainty-aware paradigm for adaptive prediction horizon selection demonstrated through its application to BGL prediction and evaluated as a proof-of-concept on the OhioT1DM dataset using continuous glucose measurements. The proposed model achieves clinically acceptable aggregate accuracy, with a mean absolute error of 22.2 mg/dL and well-calibrated uncertainty estimates (95% calibration). Results indicate that the model performs reasonably well in distinguishing between normal and hyperglycemic states, while hypoglycemia recall remains a primary limitation of the current work.
Notably, the system fails to detect approximately 52% of hypoglycemic events, representing an important patient safety concern that the authors acknowledge as the most critical direction for future improvement. However, this limitation is partly offset by the relatively low false alarm rate, which contributes positively to overall system reliability. The adaptivity analysis further demonstrates that the system continuously adjusts prediction horizons in response to changes in glucose trajectories, exhibiting appropriately conservative behavior under unstable glucose conditions and more confident predictions under stable ones.
Examining prediction uncertainty across varying horizons reveals that the system maintains higher confidence for short-term predictions while becoming increasingly uncertain over longer horizons and hyperglycemic ranges, contributing to model transparency. Overall, the proposed framework demonstrates competitive performance relative to baseline models and achieves 84.1% accuracy in glycemic state classification at the adaptively selected prediction horizon. These results are promising within the scope of the current experimental setting; broader conclusions regarding clinical deployment will require validation across independent datasets, incorporation of additional physiological features, and exploration of patient-specific modeling strategies. While the present work is grounded in blood glucose forecasting as its primary application domain, the underlying principles of uncertainty-driven adaptive horizon selection are not inherently domain-specific and may offer a transferable framework for other time-sensitive risk prediction settings, such as medical monitoring and safety-critical forecasting, a direction the authors identify as a natural avenue for future exploration.

Author Contributions

Conceptualization, S.G.; methodology, S.G.; software, S.G. and T.C.; validation, S.G., T.C., M.G. and C.W.O.; formal analysis, S.G. and C.W.O.; investigation, S.G. and T.C.; resources, S.G.; data curation, S.G.; writing—original draft preparation, S.G.; writing—review and editing, S.G., T.C., M.G. and C.W.O.; visualization, T.C., M.G. and C.W.O.; supervision, T.C., M.G. and C.W.O.; project administration, C.W.O. All authors have read and agreed to the published version of the manuscript.

Funding

This research received no external funding.

Institutional Review Board Statement

Not applicable.

Data Availability Statement

The Ohio datasets utilized in this study are publicly available upon request via the link: https://ohio.qualtrics.com/jfe/form/SV_02QtWEVm7ARIKIl (accessed on 19 September 2023).

Conflicts of Interest

This work was conducted while the author Christian W. Omlin was affiliated with the University of Agder. The author is currently affiliated with Pingla Institute, Australia. The remaining authors declare that the research was conducted in the absence of any commercial or financial relationships that could be construed as a potential conflict of interest.

Abbreviations

The following abbreviations are used in this manuscript:
BGLBlood glucose level
GRUGated recurrent unit
RNNRecurrent neural network
LSTMLong short-term memory
CNNConvolutional neural networks
TCNTemporal CNN
FFNFeed forward neural network
SANSelf-attention network
IMMInfinite mixture model
RLReinforcement Learning
MPCModel predictive control
FCFully connected
NIGNormal-inverse gamma
NLLNegative log-likelihood
CGMContinuous glucose monitoring
RMSERoot mean square error
MAEMean absolute error
CEGClarke error grid
MCCMatthews correlation coefficient

References

  1. Lim, B.; Zohren, S. Time-series forecasting with deep learning: A survey. Philos. Trans. R. Soc. A Math. Phys. Eng. Sci. 2021, 379, 20200209. [Google Scholar] [CrossRef] [Scilit] [PubMed]
  2. Tayman, J.; Smith, S.K.; Lin, J. Precision, bias, and uncertainty for state population forecasts: An exploratory analysis of time-series models. Popul. Res. Policy Rev. 2007, 26, 347–369. [Google Scholar] [CrossRef] [Scilit]
  3. Ghimire, S.; Celik, T.; Gerdes, M.; Omlin, C.W. Bayesian Neural Network for Uncertainty-Aware Blood Glucose Prediction for Type 1 Diabetes. In Proceedings of the 2025 IEEE 38th International Symposium on Computer-Based Medical Systems (CBMS), Madrid, Spain, 18–20 June 2025; pp. 527–528. [Google Scholar]
  4. Foldesi, L.; Valdenegro-Toro, M. Comparison of uncertainty quantification with deep learning in time series regression. arXiv 2022, arXiv:2211.06233. [Google Scholar] [CrossRef] [Scilit]
  5. Tyralis, H.; Papacharalampous, G. A review of predictive uncertainty estimation with machine learning. Artif. Intell. Rev. 2024, 57, 94. [Google Scholar] [CrossRef] [Scilit]
  6. Li, K.; Daniels, J.; Liu, C.; Herrero, P.; Georgiou, P. Convolutional recurrent neural networks for glucose prediction. IEEE J. Biomed. Health Inform. 2019, 24, 603–613. [Google Scholar] [CrossRef] [Scilit]
  7. Georga, E.I.; Protopappas, V.C.; Ardigo, D.; Marina, M.; Zavaroni, I.; Polyzos, D.; Fotiadis, D.I. Multivariate prediction of subcutaneous glucose concentration in type 1 diabetes patients based on support vector regression. IEEE J. Biomed. Health Inform. 2012, 17, 71–81. [Google Scholar] [CrossRef] [Scilit]
  8. Kovatchev, B. Automated closed-loop control of diabetes: The artificial pancreas. Bioelectron. Med. 2018, 4, 14. [Google Scholar] [CrossRef] [Scilit]
  9. Deng, Y.; Lu, L.; Aponte, L.; Angelidi, A.M.; Novak, V.; Karniadakis, G.E.; Mantzoros, C.S. Deep transfer learning and data augmentation improve glucose levels prediction in type 2 diabetes patients. npj Digit. Med. 2021, 4, 109. [Google Scholar] [CrossRef] [Scilit]
  10. Oviedo, S.; Vehí, J.; Calm, R.; Armengol, J. A review of personalized blood glucose prediction strategies for T1DM patients. Int. J. Numer. Methods Biomed. Eng. 2017, 33, e2833. [Google Scholar] [CrossRef] [Scilit]
  11. Woldaregay, A.Z.; Årsand, E.; Walderhaug, S.; Albers, D.; Mamykina, L.; Botsis, T.; Hartvigsen, G. Data-driven modeling and prediction of blood glucose dynamics: Machine learning applications in type 1 diabetes. Artif. Intell. Med. 2019, 98, 109–134. [Google Scholar] [CrossRef] [Scilit]
  12. Afsaneh, E.; Sharifdini, A.; Ghazzaghi, H.; Ghobadi, M.Z. Recent applications of machine learning and deep learning models in the prediction, diagnosis, and management of diabetes: A comprehensive review. Diabetol. Metab. Syndr. 2022, 14, 196. [Google Scholar] [CrossRef] [Scilit]
  13. Xie, J.; Wang, Q. Benchmarking machine learning algorithms on blood glucose prediction for type I diabetes in comparison with classical time-series models. IEEE Trans. Biomed. Eng. 2020, 67, 3101–3124. [Google Scholar] [CrossRef] [Scilit]
  14. Ghimire, S.; Celik, T.; Gerdes, M.; Omlin, C.W. Deep learning for blood glucose level prediction: How well do models generalize across different data sets? PLoS ONE 2024, 19, e0310801. [Google Scholar] [CrossRef] [Scilit]
  15. Fox, I.; Ang, L.; Jaiswal, M.; Pop-Busui, R.; Wiens, J. Deep multi-output forecasting: Learning to accurately predict blood glucose trajectories. In Proceedings of the 24th ACM SIGKDD International Conference on Knowledge Discovery & Data Mining, London, UK, 19–23 August 2018; pp. 1387–1395. [Google Scholar]
  16. Armandpour, M.; Kidd, B.; Du, Y.; Huang, J.Z. Deep personalized glucose level forecasting using attention-based recurrent neural networks. In Proceedings of the 2021 International Joint Conference on Neural Networks (IJCNN), Shenzhen, China, 18–22 July 2021; pp. 1–8. [Google Scholar]
  17. Yao, Y.; Han, T.; Yu, J.; Xie, M. Uncertainty-aware deep learning for reliable health monitoring in safety-critical energy systems. Energy 2024, 291, 130419. [Google Scholar]
  18. Zhou, T.; Han, T.; Droguett, E.L. Towards trustworthy machine fault diagnosis: A probabilistic Bayesian deep learning framework. Reliab. Eng. Syst. Saf. 2022, 224, 108525. [Google Scholar] [CrossRef] [Scilit]
  19. Wang, K.; Shen, C.; Li, X.; Lu, J. Uncertainty Quantification for Safe and Reliable Autonomous Vehicles: A Review of Methods and Applications. IEEE Trans. Intell. Transp. Syst. 2025, 26, 2880–2896. [Google Scholar] [CrossRef] [Scilit]
  20. Cai, K.; Wang, C.; Song, S.; Chen, H.; Meng, M.Q.H. Risk-aware path planning under uncertainty in dynamic environments. J. Intell. Robot. Syst. 2021, 101, 47. [Google Scholar] [CrossRef] [Scilit]
  21. Papachristos, C.; Khattak, S.; Alexis, K. Uncertainty-aware receding horizon exploration and mapping using aerial robots. In Proceedings of the 2017 IEEE International Conference on Robotics and Automation (ICRA), Singapore, 29 May–3 June 2017; pp. 4568–4575. [Google Scholar]
  22. Zhang, Z.; Scaramuzza, D. Perception-aware receding horizon navigation for MAVs. In Proceedings of the 2018 IEEE International Conference on Robotics and Automation (ICRA), Brisbane, QLD, Australia, 21–25 May 2018; pp. 2534–2541. [Google Scholar]
  23. Hu, W.; Wang, H.; He, M.; Wang, N. Uncertainty-aware hierarchical reinforcement learning for long-horizon tasks. Appl. Intell. 2023, 53, 28555–28569. [Google Scholar] [CrossRef] [Scilit]
  24. Reenberg, A.T.; Boiroux, D.; Ritschel, T.K.S.; Jørgensen, J.B. Model predictive control of the blood glucose concentration for critically ill patients in intensive care units. In Proceedings of the 2019 IEEE 58th Conference on Decision and Control (CDC), Nice, France, 11–13 December 2019; pp. 3762–3769. [Google Scholar]
  25. Incremona, G.P.; Messori, M.; Toffanin, C.; Cobelli, C.; Magni, L. Model predictive control with integral action for artificial pancreas. Control Eng. Pract. 2018, 77, 86–94. [Google Scholar] [CrossRef] [Scilit]
  26. Mirshekarian, S.; Shen, H.; Bunescu, R.; Marling, C. LSTMs and neural attention models for blood glucose prediction: Comparative experiments on real and synthetic data. In Proceedings of the 2019 41st Annual International Conference of the IEEE Engineering in Medicine and Biology Society (EMBC), Berlin, Germany, 23–27 July 2019; pp. 706–712. [Google Scholar]
  27. Cui, R.; Hettiarachchi, C.; Nolan, C.J.; Daskalaki, E.; Suominen, H. Personalised short-term glucose prediction via recurrent self-attention network. In Proceedings of the 2021 IEEE 34th International Symposium on Computer-Based Medical Systems (CBMS), Aveiro, Portugal, 7–9 June 2021; pp. 154–159. [Google Scholar]
  28. Ali, J.B.; Hamdi, T.; Fnaiech, N.; Di Costanzo, V.; Fnaiech, F.; Ginoux, J.M. Continuous Blood Glucose Level Prediction of Type 1 Diabetes Based on Artificial Neural Network; Elsevier: Amsterdam, The Netherlands, 2018; Volume 38, pp. 828–840. [Google Scholar]
  29. Alfian, G.; Syafrudin, M.; Anshari, M.; Benes, F.; Atmaji, F.T.D.; Fahrurrozi, I.; Hidayatullah, A.F.; Rhee, J. Blood Glucose Prediction Model for Type 1 Diabetes Based on Artificial Neural Network with Time-Domain Features; Elsevier: Amsterdam, The Netherlands, 2020; Volume 40, pp. 1586–1599. [Google Scholar]
  30. Ahmed, B.M.; Ali, M.E.; Masud, M.M.; Naznin, M. Recent trends and techniques of blood glucose level prediction for diabetes control. Smart Health 2024, 32, 100457. [Google Scholar] [CrossRef] [Scilit]
  31. Katsarou, D.N.; Georga, E.I.; Christou, M.A.; Christou, P.A.; Tigas, S.; Papaloukas, C.; Fotiadis, D.I. Optimizing hypoglycaemia prediction in type 1 diabetes with Ensemble Machine Learning modeling. BMC Med. Inform. Decis. Mak. 2025, 25, 46. [Google Scholar] [CrossRef] [Scilit]
  32. Mazgouti, L.; Laamiri, N.; Ali, J.B.; El Idrissi, N.E.A.; Di Costanzo, V.; Naeck, R.; Ginoux, J.M. Optimization of Blood Glucose Prediction with LSTM-XGBoost Fusion and Integration of Statistical Features for Enhanced Accuracy; Elsevier: Amsterdam, The Netherlands, 2025; Volume 107, p. 107814. [Google Scholar]
  33. Sun, X.; Rashid, M.M.; Sevil, M.; Hobbs, N.; Brandt, R.; Askari, M.R.; Shahidehpour, A.; Cinar, A. Prediction of Blood Glucose Levels for People with Type 1 Diabetes using Latent-Variable-based Model. KDH@ ECAI 2020, 20, 115–119. [Google Scholar]
  34. Martinsson, J.; Schliep, A.; Eliasson, B.; Mogren, O. Blood glucose prediction with variance estimation using recurrent neural networks. J. Healthc. Inform. Res. 2020, 4, 1–18. [Google Scholar] [CrossRef] [Scilit]
  35. Sergazinov, R.; Armandpour, M.; Gaynanova, I. Gluformer: Transformer-based personalized glucose forecasting with uncertainty quantification. In Proceedings of the ICASSP 2023-2023 IEEE International Conference on Acoustics, Speech and Signal Processing (ICASSP), Rhodes Island, Greece, 4–10 June 2023; pp. 1–5. [Google Scholar]
  36. Zhu, T.; Li, K.; Herrero, P.; Georgiou, P. Personalized blood glucose prediction for type 1 diabetes using evidential deep learning and meta-learning. IEEE Trans. Biomed. Eng. 2022, 70, 193–204. [Google Scholar] [CrossRef] [Scilit]
  37. Zhang, L.; Yang, L.; Zhou, Z. Data-based modeling for hypoglycemia prediction: Importance, trends, and implications for clinical practice. Front. Public Health 2023, 11, 1044059. [Google Scholar] [CrossRef] [Scilit]
  38. Palerm, C.C.; Bequette, B.W. Hypoglycemia detection and prediction using continuous glucose monitoring—A study on hypoglycemic clamp data. J. Diabetes Sci. Technol. 2007, 1, 624–629. [Google Scholar] [CrossRef] [Scilit]
  39. Palerm, C.C.; Willis, J.P.; Desemone, J.; Bequette, B.W. Hypoglycemia prediction and detection using optimal estimation. Diabetes Technol. Ther. 2005, 7, 3–14. [Google Scholar] [CrossRef] [Scilit]
  40. Marling, C.; Bunescu, R. The OhioT1DM dataset for blood glucose level prediction: Update 2020. In Proceedings of the CEUR Workshop Proceedings; NIH Public Access: Santiago de Compostela, Spain, 2020; Volume 2675, p. 71. [Google Scholar]
  41. Hirschfeld, L.; Swanson, K.; Yang, K.; Barzilay, R.; Coley, C.W. Uncertainty quantification using neural networks for molecular property prediction. J. Chem. Inf. Model. 2020, 60, 3770–3780. [Google Scholar] [CrossRef] [Scilit]
  42. Guo, C.; Pleiss, G.; Sun, Y.; Weinberger, K.Q. On calibration of modern neural networks. In Proceedings of the International Conference on Machine Learning; PMLR: Sydney, Australia, 2017; pp. 1321–1330. [Google Scholar]
  43. Clarke, W.L. The original Clarke error grid analysis (EGA). Diabetes Technol. Ther. 2005, 7, 776–779. [Google Scholar] [CrossRef] [Scilit]
  44. Nemat, H.; Khadem, H.; Eissa, M.R.; Elliott, J.; Benaissa, M. Blood glucose level prediction: Advanced deep-ensemble learning approach. IEEE J. Biomed. Health Inform. 2022, 26, 2758–2769. [Google Scholar] [CrossRef] [Scilit]
Disclaimer/Publisher’s Note: The statements, opinions and data contained in all publications are solely those of the individual author(s) and contributor(s) and not of MDPI and/or the editor(s). MDPI and/or the editor(s) disclaim responsibility for any injury to people or property resulting from any ideas, methods, instructions or products referred to in the content.

Article Metrics

Citations

Article Access Statistics

Multiple requests from the same IP address are counted as one view.