ORIGINAL RESEARCH article

Front. Endocrinol., 22 February 2023

Sec. Clinical Diabetes

Volume 14 - 2023 | https://doi.org/10.3389/fendo.2023.998881

Evaluating the influence of sleep quality and quantity on glycemic control in adults with type 1 diabetes

  • 1. Endocrinology and Nutrition Service, Hospital Universitario Príncipe de Asturias, Madrid, Spain

  • 2. Computer Architecture and Automation Department, Universidad Complutense de Madrid, Madrid, Spain

  • 3. Education Department, Universidad a Distancia de Madrid, Madrid, Spain

Abstract

Background:

Sleep quality disturbances are frequent in adults with type 1 diabetes. However, the possible influence of sleep problems on glycemic variability has yet to be studied in depth. This study aims to assess the influence of sleep quality on glycemic control.

Materials and methods:

An observational study of 25 adults with type 1 diabetes, with simultaneous recording, for 14 days, of continuous glucose monitoring (Abbott FreeStyle Libre system) and a sleep study by wrist actigraphy (Fitbit Ionic device). The study analyzes, using artificial intelligence techniques, the relationship between the quality and structure of sleep with time in normo-, hypo-, and hyperglycemia ranges and with glycemic variability. The patients were also studied as a group, comparing patients with good and poor sleep quality.

Results:

A total of 243 days/nights were analyzed, of which 77% (n = 189) were categorized as poor quality and 33% (n = 54) as good quality. Linear regression methods were used to find a correlation (r =0.8) between the variability of sleep efficiency and the variability of mean blood glucose. With clustering techniques, patients were grouped according to their sleep structure (characterizing this structure by the number of transitions between the different sleep phases). These clusters showed a relationship between time in range and sleep structure.

Conclusions:

This study suggests that poor sleep quality is associated with lower time in range and greater glycemic variability, so improving sleep quality in patients with type 1 diabetes could improve their glycemic control.

1 Introduction

Poor sleep quality and insufficient amount of sleep are common in the general population and people with type 1 diabetes mellitus (T1DM) (, ). A shorter duration of the deep sleep phase (, ), subjective quality of sleep, excessive daytime sleepiness (, ), and higher prevalence of obstructive sleep apnea () have been demonstrated in both adults and children with T1DM. The impact of these disturbances on glycemic control in patients with T1DM is an area of increasing interest. Previous studies suggest that sleep disturbances decrease insulin sensitivity, worse glycemic control, and increase glycemic variability (). Recently, the American Diabetes Association recommended the study of sleep patterns as part of clin-ical evaluation of a patient with T1DM (). The main objective of this study is to investigate by machine learning techniques the relationship among sleep structure, sleep quantity and quality, and glycemic control in patients with T1DM.

Griggs et al. (2020) () found in 38 patients that a higher glucose variability was associated within-person with more sleep disruptions or worse sleep. Our work extends theirs by grouping sleep patterns and analyzing the influence on glucose values during the day. Feupe et al. (2013) () studied the relation-ship between deep sleep duration and HbA1c level and concluded that they are inversely correlated.

Some previous studies used signal processing techniques to study the influence of physical exercise during the day on the glucose evolution during the following night (). To find coherence between the patient’s circadian rhythms, they used the cosinor technique (a technique used in circadian physiology) and wavelets. Another similar study using the wavelet coherence analysis is Griggs et al. (2022) (). Other studies () found significant relations between variability in sleep duration and poor glycemic control.

Our study complements these works by including the different sleep states during the night, grouping them into repetitive patterns, and studying their influence on different metrics of the following day. We apply clustering techniques and language processing techniques.

2 Materials and methods

The study was approved by the ethics committee of the Príncipe de Asturias Hospital of Alcalá de Henares, Madrid, Spain. The research was compliant with the Declaration of Helsinki guidelines. Written consent was obtained from each participant prior to engagement.

2.1 Inclusion/exclusion criteria

Eligible participants were adults between 18 and 65 years with T1DM with at least one year of duration, being on treatment with an insulin pump or multiple doses of subcutaneous insulin per day (MDI), having the availability of a mobile device capable of reading the sensors of the FreeStyle Libre system, and giving informed consent for inclusion in the study. Pre-screened subjects were excluded if they were diagnosed with a significant psychiatric disorder. Subjects in treatment with corticoids or patients that have required hospitalization or surgery on the last six months were excluded.

2.2 Data gathering and preprocessing

The main objective of this study is to analyze the impact of sleep disturbances on short-term gly-cemic control, glycemic variability, and the frequency of hypoglycemia in a group of patients with T1DM. For this purpose, flash continuous glucose monitoring (performed by Abbott FreeStyle Libre devices) and a sleep study using wrist actigraphy (Fitbit Ionic device on the non-dominant wrist) were carried out simultaneously for 14 days in a group of patients. The CGM data includes interstitial blood glucose levels recorded during the entire time the patient wore the sensor, not only during sleep. Fitbit ionic devices incorporate a light sensor (photoplethysmography, PPG) and an accelerometer to identify sleep stages. From (), “Fitbit uses proprietary sleep-staging machine learning algorithms applied to mo-tion, heart rate variability, and respiratory rate, with the last two calculated from heartbeat data sensed by PPG”. Twenty-five patients were included, although data from three patients had to be discarded, with a total of 243 nights/days recorded. The study analyzes interindividual and intraindividual differences in glycemic control concerning nights with worse or better quality/quantity of sleep.

Three visits were programmed to complete the collaboration of the participants. The study was explained to the participants in a first visit (Pre-screening Visit), and all patients signed an informed consent form. Participants were also committed to continuing with their usual treatment. In addition, sociodemographic variables, anthropometric data, and clinical data were collected from medical records. In a second visit, Visit 1, participants were given a wristband with wristwatch actigraphy (Fitbit Ionic device), and a FreeStyle Libre sensor (first generation, no alarms) was placed for continuous glucose monitoring for 14 days. The sensor was connected to the Abbot Libre View platform. Patients self-completed the Pittsburgh Sleep Quality Index (PSQI) questionnaire to assess habitual self-perceived sleep quality (). Visit 1 took place between 1 and 30 days after the pre-screening visit. Finally, during Visit 2, the glucose sensor and wrist actigraphy were removed. Visit 2 was programmed to be held 15 days after Visit 1. During this period, participants could contact the study’s technical staff to solve any technical concerns.

PSQI examines seven components: sleep quality, latency, habitual sleep efficiency, sleep duration, sleep disturbances, use of sleep medication, and daytime dysfunction. With 19 questions, participants rate the components on a scale of 0 to 3, ranging from 0 to 21, with higher scores indicating worse sleep quality (>5 reveal poor sleepers).

Recording of blood glucose data was performed through the Abbott Libre View application. Time-in-range is estimated directly by the FreeStyle Libre systems. In addition, we calculated it from the microdata generated by the meter using the Rosendaal method (), which assumes a linear progression between two glucose values and calculates the specific value for each minute (linear interpolation). The same method was used to calculate time in hypo and hyperglycemia. The recording of the wrist activity was also performed automatically and digitized by the Fitbit mobile application. Microdata is not available directly from Fitbit, so we adapted the API (Application Program Interface) for recovering detailed information ().

Glucose sensors were placed on the arm, and the Fitbit device was worn on the non-dominant wrist. The Fitbit and glucose data were synchronized at the closest multiple of 5 minutes. Once synchronized, sleep times spent in each stage were added to resynchronize with the 15 minutes used by FreeStyle Libre data. Days with gaps higher than one hour and a half in glucose were discarded. Fitbit data presented some outliers in sleeping times, mixing nap and night sleeping times for some days. Those days were eliminated manually. Heart rate, steps, and burned calories were collected and synchronized for future studies. Limitations of Fitbit Ionic devices are discussed in section 5

The glucose monitoring variables analyzed in this study are: time-in-range 70-180 mg/dl (TR) in percentage, mean blood glucose (mg/dl) (Mean_glucose), standard deviation (SD), coefficient of vari-ation (CV), percentage of time spent in level 1 hypoglycemia (55-70 mg/dl) and level 2 hypoglycemia (< 55 mg/dl) (T Hypo), time in hyperglycemia level 1 (180-250 mg/dl) and level 2 (> 250 mg/dl) (T Hyper), number of hypoglycemia/hyperglycemia episodes with at least 15 min of duration, Mean Amplitude of Glycemic Excursions (MAGE) and Mean Daily Glucose Differences (MDGD).

2.3 Methodology

Figure 1 shows the workflow we have used in this study. First, we recorded the 24-hour time series of blood glucose levels (box B) and the sleep state sequences during the corresponding nights of the par-ticipants in the study (box A). After performing the clustering (subsection 2.4) according to the structure of sleep states (box C), we consequently grouped the daily time series of glucose levels corresponding to the nights of each cluster (box D). Then, the glucose time series were averaged by cluster (box E), and we obtained the dynamics of the glucose level that characterize each cluster. As a final phase, the behavior of the clusters is studied in two different ways: on the one hand, a language processing tech-nique is applied to find similarities and dissimilarities (subsection 2.5) in the glucose time series (box F) and, on the other hand, a statistical analysis (subsection 2.6) is performed to compare the glycemic characteristics between clusters (box G).

Figure 1

2.4 Analysis of the sequence of sleep states

Throughout the night, the person transits between different sleep states (wake, light, rem, deep), forming a time series of states or categories (). Figure 1 (box A) presents this time series as a sequence of colors displaying the sleep states. Each sleep state is represented by a color.

In this study, we want to determine whether there are patterns in the sleep time series during nights that correlate to patterns of blood glucose level evolution of the following day. To search for sleep patterns, we tried different time series clustering techniques (). Clustering is a group of machine learning techniques that identify clusters in the data. A cluster is a group or subset of elements of a population.

In this work, we applied clustering to group the nights of the participants based on the sequence of sleep states, i.e., each cluster includes those temporal sequences that are most similar to each other (). Subsequently, we analyzed the evolution of glucose during the following day for each cluster. Finally, we analyzed specific and expected behaviors in the diurnal evolution of glucose values for the different clusters. This last step is explained in more detail in subsection 2.5.

Figure 1 (box C) illustrates the result of applying clustering to the sleep data in four clusters, i.e., four sleep behavior patterns of the study participants.

2.5 Similarity among glucose time series

Figure 1 (box E) shows each cluster’s average glucose time series. To identify specific behaviors of each cluster, we applied techniques commonly used in language processing (, ). To do this, we trans-form a time series of numerical glucose values into a sequence of symbols. These symbols are obtained after the time series is normalized and reduced by obtaining the average of a number n of glucose values (in this work, n =4) (Piecewise Aggregate Approximation, PAA) (). A symbol is assigned to each aver-aged point within a dictionary based on the statistical distribution (Symbolic Aggregate approXimation, SAX) (, ). Finally, the symbols are grouped into words of a specific size (12 in this work).

Next, we identify behaviors specific to each cluster and those familiar to all clusters. Based on the number of occurrences of each “word” in all the time series of each cluster, we obtain the weight vectors associated with each word [Term Frequency -Inverse Document Frequency ()]. Thanks to the weight vectors, we calculate the cosine similarity () and use this value to know if a word is specific to a cluster. In the average time series, we show those cluster-specific segments in cool colors (dark and light blue) and warm colors (red and orange) the similar segments across all clusters. The concept is that words with a very high frequency of occurrence in one cluster and a shallow frequency in the others appear in blue, whether the word appears a lot in all the clusters appears in orange or red. If the occurrence in the other clusters is medium, the color is green or yellow. Hence, we can identify the dynamics of glucose that characterizes a cluster. In Figure 1 (box F), we present a summary of the process for words of size

2.6 Statistical methods

In order to find out the possible relationship between the glucose levels and the quality of sleep, several cluster analyses and correlational studies were performed using the R language and related libraries (, ). These types of models, together with language processing techniques taken from the field of artificial intelligence, make it possible to determine possible patterns between the different variables selected and the nocturnal sleep patterns ().

On the one hand, the K-means algorithm is used in the various cluster analyses among available data (): first, considering the variables associated with sleep alone, then the variables associated with glucose levels, and finally, the set of all variables. On the other hand, the correlation analysis takes as a reference Pearson’s correlation coefficient. These values have been obtained after processing these glucose records with the R Package gluvarpro ().

To compare the glycemic characteristics of clusters, we used Welch’s F-test () using the package from Dag et al. (2018) (). We performed pairwise tests using Bonferroni’s correction (, ) for the p-values to calculate pairwise differences for each variable between the scores of each cluster (using the same package as before). In addition, we used Shannon’s entropy () for analyzing the results of the clustering. Shannon’s entropy provides an idea of how ordered sleep was. Higher values of entropy indicate higher levels of disorder.

3 Results

3.1 Participant characteristics

Twenty-five subjects participated in this study, of whom fourteen were female and eleven were male. Table 1 shows the characteristics of the participants identified by a random ID and including gender (M=Male; F=Female), age, BMI, HbA1c, diabetes treatment (MDI: Multiples doses of insulin; CSII: Continuous subcutaneous insulin infusion), and years of evolution of T1DM.

Table 1

IDGenderAgeBMIHbA1cTreatmentYears T1DM
HUPA001FQ4Q2Q4ISCIQ3
HUPA002MQ4Q2Q2ISCIQ4
HUPA003FQ3Q1Q2ISCIQ2
HUPA004MQ2Q4Q3ISCIQ1
HUPA005FQ1Q2Q1ISCIQ4
HUPA006MQ1Q3Q3ISCIQ2
HUPA007MQ2Q4Q1ISCIQ1
HUPA008FQ1Q4Q4ISCIQ1
HUPA009FQ3Q2Q3ISCIQ4
HUPA010FQ3Q1Q1ISCIQ2
HUPA011FQ2Q2Q3ISCIQ4
HUPA014FQ4Q3Q4MDIQ2
HUPA015FQ3Q1Q1MDIQ1
HUPA016FQ2Q3Q1ISCIQ3
HUPA017FQ1Q1Q4MDIQ3
HUPA018FQ2Q1Q2ISCIQ4
HUPA019MQ1Q3Q2MDIQ1
HUPA020MQ3Q3Q4MDIQ2
HUPA021FQ4Q3Q3MDIQ1
HUPA022MQ4Q2Q1ISCIQ2
HUPA023MQ1Q1Q3MDIQ1
HUPA024MQ3Q4Q4MDIQ4
HUPA025MQ2Q4Q1ISCIQ3
HUPA026FQ4Q4Q2MDIQ3
HUPA027MQ1Q1Q2MDIQ3
AverageF:14/2538.324.47.4ISCI:15/2518.1

Characteristics of the participants: ID, Gender (M, Male; F, Female; Sex assigned at birth coincides with gender identity for all participants), Age, BMI, HbA1c, Treatment (MDI, Multiples doses of insulin; ISCI, Infusion Subcutaneal continuous of insulin); Years of evolution of T1DM.

The mean age is 38.3 years, with an age range of 18-60.8 years, while the first and third quartiles are 26.4 and 47.9 years. The mean duration of diabetes is 18.1 years with a range of 0.8-39.5 years, and the first/third quartiles are 11.2/24.2 years. HbA1c mean is 7.4% (range 6-9.7%) and 1st/3rd quartiles are 7/7.8%. Body Mass Index (BMI) mean is 24.4 (range 18.5-32.2) and 1st/3rd quartiles are 22.3/26.3. Fifteen patients were on continuous insulin pump therapy, and ten were on multiple daily insulin doses. The CGM shows a mean blood glucose of 155 mg/dl, high glycemic variability (CV 36), and a time in hypo and hyperglycemia above target.

3.2 Pittsburgh questionnaire results

Table 2 shows the results of the Pittsburgh questionnaire. The results of the PSQI give a poor overall sleep quality in 12/23 patients, being these results concordant with the objective assessment of the actigraphy. Sleep disturbances contribute most to the high PSQI score (sudden nocturnal awakenings or other reasons like heat, cold, pain, nightmares, snoring, coughing, or the need to urinate). This result is also concordant with the actigraphy results, where the mean duration of objective nocturnal awakenings (WASO) is 52 minutes. Nine patients report significant daytime dysfunction (score >1) regarding drowsiness or poor mood for daily activities. One of the participants was discarded because he/she worked in shifts.

Table 2

IDQualityLatencyDurationEfficiencyDisturbancesMedicationDi dysfunctionGlobalSubjective hours sleep
HUPA0013310303136
HUPA002011011267
HUPA0033230202125
HUPA004010013278
HUPA005111020057
HUPA006011110266.3
HUPA007011011157
HUPA008012011165
HUPA009011010256.3
HUPA0102333203164
HUPA011110010147.3
HUPA0142213200107
HUPA015100010146.3
HUPA016110010037.3
HUPA0172133203154.3
HUPA018211110185
HUPA0191100100310
HUPA020010010146.3
HUPA0213311200126
HUPA0220NV0NVNV01NV6
HUPA023020010038.3
HUPA024032110075
HUPA025001211056
HUPA0261100231108
HUPA027110010037.5
Average0.913.81.381,190.571.330.321,297.09

Results of Pitsburg questionnaire.

3.3 Sleep and glycemic control characteristics

Table 3 presents the values of the sleep monitoring variables for the participants of the study. Al-though most participants have a sleep efficiency higher than 90%, there are also 3 cases with a value close to 45% and two others with low-efficiency values (58% and 68%). Sleep data from some parti-cipants, such as HUPA007 or HUPA008, were discarded due to inconsistency in the reported data.

Table 3

Participant
ID
Efficiency
%
Asleep
(min)
Light
(min)
Deep
(min)
REM
(min)
Awake
(min)
Bed
(min)
HUPA00194±2366.08±114.66218.08±49.3953.38±30.5194.62±43.9242.38±13.93419±128
HUPA00297±2390.73±74.93216.27±69.9184.36±19.8290.09±23.3433.36±14.53424±87
HUPA00393±3335.75±98.39228.50±83.3946.75±16.2760.50±20.8945.25±22.80350±98
HUPA00496±2333.00±43.97207.00±29.3967.30±16.9358.70±30.5640.10±7.75376±44
HUPA00558±14350.88±54.08211.38±25.6269.12±24.1970.38±23.1350.38±10.68401±58
HUPA00647±33384.17±49.01233.67±27.3566.17±13.3584.33±20.368.33±22.44467±57
HUPA00794±2325.46±38.89204.38±38.8254.62±15.0866.46±23.4837.92±7.76100±74
HUPA01191±3386.46±41.92255.23±30.7556.15±10.6775.08±26.2455.92±11.84442±43
HUPA01493±2481.92±98.54293.67±60.1278.58±23.78109.67±44.2986.75±35.94569±127
HUPA01594±1417.46±90.13250.08±74.1472.92±17.6494.46±30.5454.23±21.19476±106
HUPA01697±2416.69±40.41255.85±36.9662.54±14.3198.31±20.6653.08±16.17474±48
HUPA01790±3404.85±54.43245.62±55.2861.85±15.7397.38±24.8166.00±19.94471±66
HUPA01847±5408.82±37.31205.91±33.4876.27±20.58126.64±35.5451.64±9.64403±24
HUPA01993±2363.50±37.44253.50±23.9372.00±30.0138.00±24.9860.33±19.25424±52
HUPA02046±9319.90±80.52202.50±67.9157.00±18.3760.40±19.7348.70±19.97369±94
HUPA02169±2387.00±20.65240.75±26.7961.00±18.2385.25±27.6256.88±13.29444±28
HUPA02294±3303.86±81.22204.07±56.3638.71±17.5161.07±30.6241.86±13.4346±92
HUPA02396±1421.00±72.27275.90±44.0373.40±15.6471.70±28.2955.10±9.35509±43
HUPA02492±4298.00±68.25213.00±55.6134.33±9.0050.67±16.6356.17±16.34170±138
HUPA02592±3383.50±51.79232.00±42.6772.75±13.5078.75±20.0555.75±13.1480±103
HUPA02661±6437.06±36.85241.50±33.8582.81±17.17112.75±26.5655.88±12.10325±219
HUPA02793±2345.31±48.17189.23±29.6577.77±13.7478.31±19.9745.85±11.12449±73
Average83±5375.52±60.63230.82±45.2564.54±17.8280.16±26.4652.81±15.57391±119

Sleep States: Average duration with standard deviation (in minutes).

Following the consensus on sleep quality assessment of the National Sleep Foundation (), three vari-ables were used for evaluating the sleep quality: the number of awakenings during the night, WASO or Wake After Sleep Onset and the sleep efficiency (as the ration of total sleep time to time in bed ().

Table 4 shows the sleep characteristics of the participant. Sleep quality was categorized as poor if at least two of three mentioned criteria were met, i.e., sleep efficiency < 85% or Wake After Sleep Onset (WASO) > 40 min or a number of awakenings > 4. The sleep characteristics of the participants show large inter-individual differences, and only 48% of the patients have a good overall sleep quality, although the mean sleep duration is not low (mean of 7.15 hours). Of the 243 nights analyzed, 77% (n = 189) were of poor sleep quality and 33% (n = 54) of good quality. It should be noted that eight patients had no night with good sleep quality. The factor that most determined poor sleep quality was the duration of nighttime awakenings, with a mean of 52.81 minutes.

Table 4

ParticipantTotalSleep QualitySleep TimeSleep EfficiencyWASOAwakenings
IDNightsGoodPoorAvg (hours)Avg (%)Avg (min)Avg per night
HUPA001P133106.81±2.1194.08±2.1442.38±13.935.00±2.24
HUPA002P11837.07±1.4597.45±1.6333.36±14.532.73±1.90
HUPA003P12756.35±1.9993.08±2.8145.25±22.83.25±1.76
HUPA004P10646.22±0.7595.80±1.8140.10±7.753.20±1.40
HUPA005P8086.69±0.9758.50±14.4150.38±10.683.50±1.51
HUPA006P6067.54±0.9847.67±33.6868.33±22.446.33±3.33
HUPA007P13856.06±0.6894.08±2.1037.92±7.762.69±1.49
HUPA011P131127.37±0.7290.92±3.4355.92±11.844.23±1.83
HUPA014P121119.48±2.1292.67±2.3986.75±35.945.08±2.50
HUPA015P133107.94±1.7693.69±1.5554.23±21.193.69±1.49
HUPA016P132117.91±0.8096.54±2.2253.08±16.170.15±0.38
IDNightsGoodPoorAvg (hours)Avg (%)Avg (min)Avg per night
HUPA017P131127.85±1.1190.31±3.3566.00±19.944.85±1.68
HUPA018P110117.67±0.6946.91±5.4951.64±9.644.09±1.14
HUPA019P6067.06±0.8793.00±1.6760.33±19.256.17±5.00
HUPA020P100106.14±1.5746.50±9.1648.7±19.973.70±1.25
HUPA021P8087.40±0.4769.38±2.2056.88±13.294.62±1.85
HUPA022P14865.76±1.5493.93±2.9741.86±13.403.50±1.56
HUPA023P100107.93±1.3395.50±1.1855.10±9.354.80±1.40
HUPA024P6155.90±1.3892.00±4.4756.17±16.341.17±2.86
HUPA025P121117.32±1.0192.08±3.0055.75±13.144.17±2.52
HUPA026P160168.22±0.7160.75±5.8655.88±12.105.31±1.82
HUPA027P13496.52±0.8193.38±2.3345.85±11.123.23±1.54
Overall243541897.15±1.1783.1±4.9952.81±15.573.88±1.93

Participants characteristics Sleep quality was categorized as ’poor’ if at least two of three criteria were met, i.e., sleep efficiency < 85% or WASO > 40 min or number of awakenings > 4, based on the National Sleep Foundation’s consensus recommendations for sleep quality assessment.

Table 5 shows the percentages of time spent in sleep phases of Light, REM and Deep. Light phases percentage ranges from 45% to 60.8% with an average of 54.14%. The average time spent in the Deep phase is 15.08%, with a maximum of 20.19% and a minimum of 11.72%. Finally, participants spent an average of 18.49% of the time in bed in the REM phase, ranging from 8.62% to 27.24%.

Table 5

Participant IDLight%Deep%REM%
HUPA0001P54.8512.4922.23
HUPA0002P50.2320.1921.88
HUPA0003P59.5112.6816.36
HUPA0004P55.7117.9815.47
HUPA0005P53.2516.9317.19
HUPA0006P51.7414.5518.74
HUPA0007P56.1815.0118.33
HUPA0011P57.7212.7216.85
HUPA0014P52.2614.0018.88
HUPA0015P52.0715.7620.00
HUPA0016P53.8513.2620.88
HUPA0017P51.8313.5120.76
HUPA0018P45.0016.5627.24
HUPA0019P60.8016.558.62
HUPA0020P54.4615.2517.30
HUPA0021P54.4413.6519.17
HUPA0022P59.1311.7217.05
HUPA0023P58.1115.4314.81
HUPA0024P59.8110.1914.20
HUPA0025P52.6616.6318.07
HUPA0026P49.0416.8322.83
HUPA0027P48.3219.8719.94
Average54.1415.0818.49

Sleep States: Ratio over Total Sleeping Time.

Table 6 shows the overnight glycemic characteristics of the participants. Patients presented low values of time in range, with an average of 59.97 ± 14.74%, which is an indication of poor glycemic control. The high values of the average CV (36.45 ± 8.76) and standard deviation of the mean glucose (55.85 ± 14.) are also concordant with this appreciation.

Table 6

Participant IDNightsMean glucose
mg/dl
SDCVTRT Hyper
%
T Hypo
%
HUPA001P13181.71±32.2767.12±10.9737.27±5.0754.21±13.7743.54±14.742.25±3.13
HUPA002P11113.68±30.5950.18±15.8544.72±11.5260.94±16.5915.00±17.3024.07±18.09
HUPA003P12139.88±22.8555.38±16.5738.98±5.5669.66±12.5322.69±14.687.65±7.24
HUPA004P10178.75±44.7574.15±23.8644.07±14.8644.37±19.3643.70±22.3911.93±13.73
HUPA005P8151.06±23.7443.05±14.6829.29±11.1269.09±16.9627.21±18.193.70±4.45
HUPA006P6212.05±97.7362.41±36.4835.97±20.2346.76±28.6948.68±29.744.56±5.55
HUPA007P13173.64±29.5373.14±14.3142.53±8.4746.28±17.3545.07±17.618.65±8.49
HUPA011P13159.30±19.3754.00±8.3834.09±4.9765.47±10.2331.96±11.562.57±3.52
HUPA014P12186.47±19.1268.55±22.5436.68±11.0044.96±10.2150.83±11.344.20±3.77
HUPA015P13165.90±20.7265.03±10.6739.33±5.0857.68±12.0138.60±13.383.72±3.22
HUPA016P13157.32±45.8167.24±20.4443.51±12.6251.16±18.5436.10±22.7512.74±10.33
HUPA017P13198.39±27.3862.06±16.5131.67±8.1437.39±16.9460.25±18.302.35±3.36
HUPA018P11144.12±35.9762.64±17.9343.60±5.6249.73±11.8331.77±18.5618.50±14.91
HUPA019P6159.97±17.5954.82±5.0534.40±2.6459.14±11.1436.85±11.924.01±2.24
HUPA020P10193.99±29.7372.11±18.3137.23±7.7444.92±14.0451.29±15.313.78±3.88
HUPA021P8141.27±14.8444.83±5.4631.92±4.3274.07±9.1522.78±10.683.14±5.71
HUPA022P14111.12±23.5131.58±7.5529.00±6.9679.57±11.255.01±8.6215.42±13.42
HUPA023P10132.89±21.2938.98±7.2229.53±4.8178.92±12.6918.05±14.393.03±4.47
HUPA024P6157.51±31.5856.53±18.8037.25±14.7457.63±9.8235.17±15.257.19±10.08
HUPA025P12113.51±14.5636.46±9.2132.09±7.4479.58±11.247.42±6.8512.99±8.94
HUPA026P16133.64±24.6057.68±20.7842.86±11.9860.70±21.9122.25±17.3717.05±13.76
HUPA027P13121.24±21.1630.73±8.2425.82±7.9287.04±18.098.36±18.094.60±4.91
Overall243155.79±29.4955.85±14.9936.45±8.7659.97±14.7431.94±15.868.10±7.60

Overnight glycemic characteristics in individual participants.

3.4 Association between sleep quality and blood glucose

In Figure 2, the upper triangular view of the correlation matrix for different variables recorded in this study is displayed as a correlogram. Red/blue colors for showing negative/positive correlation, and low/high intensity indicating the absolute value of the correlation. In addition to the expected correlations, we can point out several facts. Both poor and good sleep qualities have no significant correlation with any other variable. A positive correlation of 0.8 was found between the standard deviation of sleep efficiency and the standard deviation of mean blood glucose. In addition, the standard deviation of sleep efficiency has a positive correlation (0.66/0.62/0.65/0.61) with the standard deviation of glucose, the coefficient of variation, the time in range, and the time in hyperglycemia. There is a positive correlation (0.55) between the coefficient of variation and the mean time spent in hypoglycemia.

Figure 2

As mentioned, we used the clustering techniques to find patterns in sleep behavior. We experi-mented with a different number of clusters, having found k =4 to be the best option, showing a clear relationship between sleep structure and glucose variables. With k =3, we have a cluster with very broad glucose patterns, whereas, with k =5, the relationship between sleep structure and the different glucose variables is confirmed with no additional information, remaining the main clusters the same. With k =4, the number of nights grouped in each cluster was: 33, 78, 41 and 91.

In the left column of Figure 3, we can see the four sleep clusters, while the right column shows the average glucose dynamics in the days corresponding to each cluster. Remind that in the right column, the specificity of the glucose patterns is shown with intense blue color, while the patterns common to all clusters are shown in red. Because we take glucose level samples every 15 minutes, we have 96 samples per day. In the horizontal axis, we mark the main hourly correspondences. In order to correctly compare the sleep clusters, we show a total of 44 possible states per night (horizontal axis, on the left column).

Figure 3

We calculated the Shannon’s entropy for the four clusters resulting in the following order (from highest entropy to lowest): 1,3, 2, and 4. Figure 4 shows the results of the main glucose variables for each cluster. On the one hand, the four clusters have slightly different sample sizes. On the other hand, we cannot assume that the clusters will have the same variance. The result of Welch’s F-test indicates that we can reject the null hypothesis that each cluster has the same mean value.

Figure 4

After the statistical tests with Bonferroni’s correction, we obtain several observations. Regarding time in Range, there is statistical significance between Cluster 1 and Cluster 4. We found significant differences for Cluster 1 and Cluster 2, versus Cluster 3 and Cluster 4 in time in hypoglycemia, and for Cluster 3 versus Cluster 2 and Cluster 4 in time in hyperglycemia. Cluster 1 and Cluster 4 are also significantly different in terms of CV. For the mean of glucose values, despite Welch’s F-test, the pairwise tests found no significant differences. One explanation could be that the applied Bonferroni’s adjustment was too severe (, ). Another variable related to glucose variability, the standard deviation of glucose levels, presented significant differences for Cluster 1 and Cluster 3 versus Cluster 2 and Cluster 4. So, from these statistical results and the parallel observation of Figures (3 and 4 several conclusions arose. Clusters 1 and 2 (Figures 3A, C) have the longest sleep state sequences, the highest nocturnal glucose levels and a maximum peak around noon. Clusters 3 and 4 (Figures 3E, G), with the shortest sleep state sequences have the lowest nocturnal glucose levels and a maximum peak around sunset. In addition, these are the two clusters with the lowest time in hypoglycemia (Figure 4B). In the case of Cluster 3, this is mainly because this cluster has the longest time in hyperglycemia (Figure 4C), while Cluster 4 is the cluster with the longest time in range (Figure 4A). Cluster 1, with the highest Shannon’s entropy and the longest sequence of states (40), has as distinctive characteristic a very pronounced drop in glucose levels prior to the night and, at the same time, the most accentuated nocturnal rise (displayed in dark blue in Figure 3B). In addition, it is the cluster with the lowest time in range (Figure 4A), the highest time in hypoglycemia (Figure 4B), coefficient of variation (Figure 4D) and standard deviation (Figure 4F). Cluster 3, with the shortest sleep sequence (16 states), has the unique characteristic of a pronounced drop in glucose level during the night (Figure 3F). It is also the cluster with the highest time in hyperglycemia (Figure 4C) and, therefore, the highest mean level of glucose (Figure 4E). In Figure 4F, we can see that the lowest standard deviation corresponds to clusters 2 and 4. This could be related to the fact that these two clusters have the sleep state sequences with the lowest Shannon’s entropy. The shortest time in hyperglycemia and therefore lower mean glucose level (Figures 4C, E) corresponds to Cluster 2, which has a low level of Shannon’s entropy and a medium length of the sleep state sequence (Figure 3C).

4 Discussion

This study shows that in adults with T1DM, subjective and objectively assessed sleep quality is poor, as occurs in 77% nights analyzed with actigraphy and 52% patients report Pittsburgh index > 5. In a previous epidemiological study using the Pittsburgh survey to measure subjective sleep quality () in a sample of 222 patients, authors found that 41% have poor sleep quality (Pittsburgh index >5). According to our study’s observational data, sleep quality variability in adults with type 1 diabetes is associated with more significant variability in nocturnal blood glucose levels.

Similar findings have been reported in a group of adolescent patients using actigraphy and CGM, where sleep fragmentation, earlier awakening, and longer duration of WASO are associated with greater glycemic variability and longer time in hypoglycemia ().

To our best knowledge, this is one of the first studies using machine learning techniques to analyze the relationship between sleep structure and times in normo-, hypo-, and hyperglycemia and to show that better sleep structure is associated with longer time in the glycemic range during that day. Our results confirm those of a previous study in 20 adult patients (), showing that poor sleep quality is associated with greater glycemic variability. However, they found no association between sleep quality and time in range. This study only analyzes the relationship between sleep quality and glycemia with a linear mixed-effects model. The application of machine learning clustering reveals that nights with a higher disorder of the sleep structure presented lower time in range and a higher percentage of time in hypoglycemia. Increased time in the deep sleep phase was correlated with lower HBA1c and less time in nocturnal hypoglycemia in a previous study ().

Other previous studies that do not use continuous glucose monitoring also suggest that sleep disturb-ances worsen glucose control. In particular, patients with short sleep duration (<6.5 hours) reported higher HbA1c than patients with longer sleep duration (>6.5 hours) (). Social jet lag (major changes in the duration and timing of sleep between weekdays and holidays) was associated with worse chronic metabolic control (). Some studies demonstrate the influence of sleep quality or duration on glycemic control in children. However, the findings among the different authors are not the same: it has been reported that a longer duration of the light sleep phase is associated with higher mean daily blood glucose, more episodes of hyperglycemia, and higher HbA1c (), and that increased nocturnal awakenings () correlate with high glycemic variability.

Most of these studies have limitations in that they were conducted on a small number of patients, some only used subjective sleep assessments, and only two studies in adults simultaneously performed continuous glucose monitoring and polysomnography.

There are several possible mechanisms involved in poorer glycemic control (). Decreasing the duration of the REM phase would produce lower nocturnal glucose consumption, given that in the cerebral REM phase, glucose consumption is similar to awake. In contrast, in the cerebral non-REM phase, glucose consumption is much lower. In the general population and patients with diabetes, sleep deprivation, fragmentation, and decreased deep sleep are associated with decreased insulin sensitivity, possibly mediated by increased cortisol and Growth hormone (GH) levels. In patients with T1DM, higher nocturnal levels of growth hormone, adrenaline, ACTH, and cortisol than in the control population have been reported (). In an experimental study, the partial restriction of a single night of sleep (4 hours) de-creased peripheral insulin sensitivity measured by the hyperinsulinemic-euglycemic clamp in patients with T1DM ().

Although it has been proposed that continuous glucose monitoring may alter sleep quality due to hyper-or hypoglycemia alarms, in this study, the CGM did not have alarms, so the likelihood of inter-ference of the CGM on sleep quality is very low. Finally, sleep disturbances could worsen glycemic control by an indirect mechanism related to patients’ behavior and cognitive functions. An association has been described in children and teenagers between a shorter duration of sleep and a decrease in the frequency of self-monitoring and insulin bolus administration ().

5 Limitations

The use of Fitbit devices is controversial. The previous generation of Fitbit devices was equipped only with body movement sensors and, therefore, were unsuitable for recording sleep stages. How-ever, new generations incorporated heart rate recording and a light sensor, so the Fitbit Ionic models greatly improved the ability to identify sleep stages. In fact, they are considered sleep-staging models (). However, the data is not available directly from the web. Instead, programming an API is necessary to obtain the data. Although the code was tested thoroughly, a deeper validation with other wrist devices of higher complexity would be beneficial. Recently evaluations of several commercial sleep technologies during sleeping concluded that Fitbit ionic measured with greater accuracy and limited bias Total sleep time (TST), total wake time (TWT), and sleep efficiency (SE). Regarding sleep, stages were reported poor for the time spent in REM sleep and with lower error in the other two stages (). We did not find other validation studies for Fitbit Ionic. The sample size of n=22 should be considered when evaluat-ing the results and conclusions presented in this work. Although all of the participants are adults and sleep recommendations are not different throughout adulthood, it would be necessary to study better the differences on sleep patterns based on age.

This study did not look at possible differences between patients treated with MDI or CSII. Separating patients by treatment would further reduce the number of nights used to analyze each group as we clustered by night rather than by patient. Future work should include larger samples to investigate such possible relationships.

6 Conclusion

To our best knowledge, our work is the first study that, using artificial intelligence and statistical techniques, has found a relationship between sleep structure and times in normo-, hypo-, and hypergly-cemia. Our main conclusion is that better sleep structure is associated with a longer time in the glycemic range. Future studies are needed to confirm these findings in a larger patient population and investigate the mechanisms involved in the decreased time in range and increased glycaemic variability caused by poor sleep quality. We believe that sleep disturbances should be a factor to be assessed in the clinical practice of patients with type 1 diabetes and that strategies should be designed to treat these disturbances. As future work, we are considering conducting a study to investigate further the relationship between sleep and glycemia by age group. Intuitively, variables affected by age, such as habits, responsibilities, social influences, etc., may produce significant differences in sleep patterns and diabetes outcomes.

Statements

Data availability statement

The raw data supporting the conclusions of this article will be made available by the authors, without undue reservation.

Ethics statement

The studies involving human participants were reviewed and approved by Hospital Universitario Príncipe de Asturias. The patients/participants provided their written informed consent to participate in this study.

Author contributions

MB-S: Experimental design. Medical analysis. JV: AI techniques, programming, figures, writting. AS-S: statistical analysis OG: AI analysis, writing JIH: AI analysis, writing and Funding. All authors contributed to the article and approved the submitted version.

Funding

This work has been supported by: Fundación Eugenio Rodriguez Pascual 2019 grant -Desarrollo de sistemas adaptativos y bioin-spirados para el control glucémico con infusores subcutáneos continuos de insulina y monitores continuos de glucosa (Development of adaptive and bioinspired systems for glycemic control with continuous subcutaneous insulin infusors and continuous glucose monitors). The Spanish Ministerio de Innovación Ciencia y Universidad -grants PID2021-125549OB-I00, PDC2022-133429-I00 and RTI2018-095180-B-I00. Madrid Regional Government -FEDER grants B2017/BMD3773 (GenObIA-CM) and Y2018/NMT-4668 (Micro-Stress-MAP-CM).

Conflict of interest

The 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.

Publisher’s note

All claims expressed in this article are solely those of the authors and do not necessarily represent those of their affiliated organizations, or those of the publisher, the editors and the reviewers. Any product that may be evaluated in this article, or claim that may be made by its manufacturer, is not guaranteed or endorsed by the publisher.

References

Summary

Keywords

sleep structure, glycemic control, clustering techniques, glucose behavior prediction, statistical analysis

Citation

Botella-Serrano M, Velasco JM, Sánchez-Sánchez A, Garnica O and Hidalgo JI (2023) Evaluating the influence of sleep quality and quantity on glycemic control in adults with type 1 diabetes. Front. Endocrinol. 14:998881. doi: 10.3389/fendo.2023.998881

Received

20 July 2022

Accepted

19 January 2023

Published

22 February 2023

Volume

14 - 2023

Edited by

Peng Li, University of Michigan, United States

Reviewed by

Eung-Kwon Pae, University of Maryland, Baltimore, United States; Ali Cinar, Illinois Institute of Technology, United States

Updates

Copyright

*Correspondence: Marta Botella-Serrano, ; Jose Manuel Velasco, ; J. Ignacio Hidalgo,

This article was submitted to Clinical Diabetes, a section of the journal Frontiers in Endocrinology

Disclaimer

All claims expressed in this article are solely those of the authors and do not necessarily represent those of their affiliated organizations, or those of the publisher, the editors and the reviewers. Any product that may be evaluated in this article or claim that may be made by its manufacturer is not guaranteed or endorsed by the publisher.

Outline

Figures

Cite article

Copy to clipboard


Export citation file


Share article

Article metrics