Figure 3

Hypoglycemia detection during the night using the heartbeat majority voting in the 10-minute window of time. The black waveform represents the glucose values recorded by the CGM, considered as ground truth glucose level in this study. The grey shaded regions illustrate a ± 10% error boundary for the CGM glucose readings18,19 as it has been reported in previous studies. The colour of the points indicates the predicted class: red for the predicted low-glucose levels and green for the predicted normal-glucose levels. Moreover, dark colours indicate more certain predictions: dark red points accounted for low-glucose predictions with the predicted probability > 0.7, while light red accounted for low-glucose prediction with predicted probability ≤ 0.7; dark green accounted for normal-glucose prediction with predicted probability > 0.7 and light green accounted for normal-glucose prediction with a probability ≤ 0.7. Images a and b present the glucose levels predictions for a sample training day, while columns c and d present the glucose predictions for the same sample test day. The missing heartbeats are due to one of the following reasons: participant removing the sensor, artifact due to movement; missing glucose data, ECG pre-processing.