Scroll to:
Clinical decision support system based on artificial intelligence for adjusting insulin pump parameters in children with type 1 diabetes mellitus
https://doi.org/10.14341/DM13167
Abstract
BACKGROUND: Widely available diabetes devices (continuous glucose monitoring, insulin pump etc.) generate large amount of data and development of an advanced clinical decision support system (CDSS), able to automatically evaluate and optimize insulin therapy, is relevant.
AIM: Development of a mathematical model and an CDSS based on it to optimize insulin therapy in children with type 1 diabetes (T1D) and assessment of the agreement between the recommendations of the CDSS and the physician on insulin pump (IP) parameters: basal profile (BP), carbohydrate ratio (CR), correction factor (СF).
MATERIALS AND METHODS: Data from 504 children with T1DM were analyzed over the period of 7875 days. The data included glucose, insulin, food, sex, age, height, weight, diabetes duration and HbA1c. We constructed recurrent neural network (RNN) to predict glucose concentration for 30-120 minutes, an algorithm for optimizing IP settings using prediction results. Next, a software product was developed — a CDSS. To assess the agreement of the recommendations of the CDSS and physicians, retrospective data from 40 remote telemedicine consultations of 40 patients with T1D (median age 11.6 years [7; 15]) were used and 960 points of possible adjustments were analyzed. Three degrees of agreement have been introduced: complete agreement, partial agreement, and complete disagreement. The magnitude of the adjustments was also analyzed.
RESULTS: The accuracy of glycemic predictions was better or comparable with other similar models. The assessment of agreement for BP, CR and CF, according to the Kappa index, showed slight and weak agreement. The frequency of complete agreement between recommendations for adjusting the ongoing IP therapy between the CDSS and physicians is 37.5–53.8%, and complete inconsistency is 4.5–17.4%. From a clinical point of view, consistency in the frequency of occurrence of the indicator is more important. There were no differences in median IP settings between the CDSS and physicians.
CONCLUSION: The CDSS has an acceptable accuracy of glycemic predictions. The CDSS and physicians provide comparable recommendations regarding CSII parameters.
Keywords
For citations:
Sorokin D.Yu., Trufanova E.S., Rebrova O.Yu., Bezlepkina O.B., Laptev D.N. Clinical decision support system based on artificial intelligence for adjusting insulin pump parameters in children with type 1 diabetes mellitus. Diabetes mellitus. 2024;27(3):242-253. https://doi.org/10.14341/DM13167
BACKGROUND
Insulin therapy is the main component of treatment for type 1 diabetes mellitus (T1D). The main insulin administration regimen is an intensified regimen (basal-bolus), and one of the methods is continuous subcutaneous insulin infusion (SCII) using insulin pumps (IP). Glucose self-monitoring is carried out using glucometers (blood glucose self-monitoring, BGSM), continuous glucose monitoring (CGM) or flash glucose monitoring (FGM). Intensified insulin therapy helps to reduce risk of diabetes-related complications [1][2], with the combination of IP with CGM/FGM being the most effective.
Despite the increasing availability of IPs and the emergence of highly accurate and affordable CGM and FGM, only about 21% of all children, 16% of adolescents [3], and 35% of adults [4] with T1D achieve glycemic control compensation (target glycated hemoglobin (HbA1c) <7%). This is due to a large number of reasons, one of which is the need for regular monthly adjustments to insulin dosages. The widespread use of electronic devices for diabetes management (SCII, CGM, FGM) leads to the accumulation of a large array of electronic data, the analysis of which can be difficult. Previous studies have shown the effectiveness of regular and frequent insulin dose adjustments in improving glycemic control [5][6]. Despite more than 30 years of experience with an intensified insulin therapy regimen, there are no consensus guidelines for doctors and recommendations for patients on ways to optimize insulin therapy parameters [7][8]. Because of the absence of consensus, healthcare professionals are subjective in adjusting doses, mainly relying on their individual experience and therefore the doses vary widely. These problems make it relevant to develop an algorithm for adjusting insulin pump settings and assess the degree of agreement between recommendations provided by the pump and doctors’ expert opinions. A possible approach to the development of such an algorithm and a clinical decision support system (CDSS) based on it may use artificial intelligence (AI) technologies, including machine learning. AI can expand the possibilities of full-fledged, personalized and intellectual management of diabetes.
There is currently limited research available on the use of machine learning in the adjustment of insulin therapy in T1D patients [9][10]. Nimri R. et al. [9] evaluated the clinical performance of an automated Advisor Pro algorithm (DreaMed Diabetes Ltd, Petah Tikva, Israel) in a multicenter randomized trial. The limitations of this study are age of patients and the degree of underlying disease compensation at baseline – the age was 15.6 ± 3.0 years, HbA1c 8.4 ± 0.8%. In this age group, hormonal shifts associated with growth and development of the body are approaching their completion in such patients, which greatly affect the course of T1D towards worsening; patients develop responsible attitude towards their disease, which leads to improved compensation of T1D. Tyler N. et al. [10] assessed the agreement of recommendations given by the algorithm and the doctors. The limitation of this study is that electronic syringe insulin delivery pens featured in the publication do not have marketing authorization in the Russian Federation.
Thus, the development of CDSS to optimize T1D insulin therapy continues to be relevant.
PURPOSE OF THE STUDY
Development of a mathematical model and CDSS based on it to optimize insulin therapy in children with T1D and assessment of the agreement of recommendations provided by CDSS and doctor on the parameters of insulin pump (IP) therapy: BP, basal profile; CF, carbohydrate factor, ISF, insulin sensitivity factor.
MATERIALS AND METHODS
Two studies were conducted sequentially.
I. Development of a mathematical model for glucose profile prediction
Study site and time – Pediatric Diabetes Mellitus Department, Endocrinology Research Centre, data were collected from January 2015 to June 2022.
Study population – children with T1D.
Inclusion criteria
- Children of both sexes.
- Age from 1 year to 18 years.
- T1D (E10 according to ICD-10).
- Disease duration – 1 year or more.
- Insulin therapy using CSII during 3 months or more.
- Glucose monitoring using CGM/FGM during months or more.
Exclusion criteria
- Clinically significant acute diseases of the cardiovascular, nervous, genitourinary systems, or gastrointestinal tract; blood diseases.
- Insulin therapy by multiple insulin injections for more than 14 days in the last month.
- Systemic therapy with glucocorticoids.
- Clinical diagnosis of diabetic retinopathy or maculopathy.
- History of emotional, behavioral, or other disorders that may interfere with diabetes control and participation in the study.
Method of sample formation from the studied population – continuous.
Study design – prospective.
Materials
The following patient data were analyzed: sex, age (years), body weight (kg), height (cm), duration of diabetes (years), HbA1c (%), data obtained from electronic devices Medtronic Paradigm MMT-715, Paradigm Real Time MMT-722, Paradigm VEO MMT-754, MiniMed 640G (start date of analysis period, end date of analysis period, IP settings (administered basal and bolus insulin, carbohydrates consumed, blood glucose), glucose monitoring data (glucose profile)).
The data obtained from the IPs manufactured by Medtronic did not contain information on the pump settings at the time of data transfer, therefore, the daily values of BP, CR, and ISF averaged over 3 hours for the selected period of time were calculated.
Methods
Considering the possibility of errors in the CGM/FGM data, these data were pre-processed:
- removal of outliers – if the rate of change in glucose level exceeded 0.7 mmol/l per minute, then the current and neighboring (20 minutes) measurements were replaced with values calculated by linear interpolation;
- smoothing – averaging of measurements by the moving average method with a period of 20 minutes (4 measurements).
Patients were randomized into two groups: 80% of patients included in the training set (n=403), 20% in the test set (n=101). When developing the pilot version of the model, the data of each patient of the training set were, in turn, divided into two parts – the first 80% of records of each patient were assigned to the training set, subsequent 20% of records were assigned to the test set.
To develop a mathematical model for predicting glucose levels, the method of building a recurrent artificial neural network (ANN) was used. The development tools used were the high-level language Python 3 and the open-source machine learning environment PyTorch [12]. Final recommendations of IP parameters are provided in intervals of 3 hours. Bolus and basal dosages are adjusted independently. The interval is assessed as basal if the bolus is not administered within three hours.
The prediction accuracy of the model on test data was estimated by root mean squared error (RMSE) and mean absolute error (MAE).
For the software implementation of the model and the IP setting optimizer based on it, the Python 3.9 programming language and the Dash Open Source 2.4.1 open library were used.
II. Evaluation of the agreement of recommendations provided by CDSS with doctors’ expert opinions
Study site and time – Pediatric Diabetes Mellitus Department, Endocrinology Research Centre, data was collected from August – December 2022.
Study population – same population as above.
Method of sample formation from the studied population – continuous.
Study design – cross-sectional.
Materials
Analyzed data included data from insulin pumps, CGM/FGM data, personalized patient metadata, and data on the adjustment of insulin therapy by doctors of the Pediatric Diabetes Mellitus Department, Endocrinology Research Centre, at remote telemedicine consultations based on documents in deferred mode for the last 28 days at the time of consultation. The IP parameters were corrected based on the last day and included 24 hourly settings of three IP parameters: BP, CF and ISF (72 settings in total).
Remote consultations were carried out by six highly qualified pediatric endocrinologists of the Pediatric Diabetes Mellitus Department, Endocrinology Research Centre. The glucose profile and IP settings (without prior adjustments by doctor) for each patient were fed to CDSS input, and 24 hourly settings for the same three parameters were obtained at the output.
Methods
The consistency of the hourly IP settings between the recommendations provided by CDSS and doctor was assessed in relation to 24 values of three parameters (BP, CR, ISF), which means 72 data points for each of the patients.
Consistency was assessed in two aspects:
1) direction of adjustment;
2) adjustment value.
Consistency of adjustments by direction was assessed using quadratic weighted kappa index (https://www.medcalc.org/calc/kappa.php) and by assessing the consistency of the directions of adjustments between CDSS and doctor as follows:
- complete consistency when the directions of adjustments from baseline values made by the doctor and CDSS matched, e.g. both decided to increase the parameter;
- partial consistency, where one decided to change the parameter and the other to keep it the same. For example, the doctor decided to increase the parameter, while CDSS decided to leave it unchanged;
- complete disagreement when the directions of adjustments from baseline values made by the doctor and CDSS were opposite. For example, the doctor decided to increase the parameter, while CDSS decided to reduce this parameter.
Consistency of adjustments by magnitude was assessed using:
- mean hourly values of IP parameters (regardless of consistency in the direction of adjustment) were estimated as the average value of the recommendations provided by CDSS or doctors’ recommendations over 24 hours for BP, CR, and ISF according to the formula:

where M – mean hourly value of IP parameter,
Vali – value of IP parameter for the corresponding hour of adjustment;
- difference between the values recommended by CDSS and doctors’ recommendations (with direction of adjustment being in agreement), which was assessed using the mean absolute relative difference (MARD, %):

where Rdoct – doctor’s recommendation,
RCDSS – recommendation by CDSS,
n – number of periods.
Difference of up to 10% is considered clinically acceptable [11].
- number of intervals for adjustment of IP parameters (BP, CR, ISF) provided by CDSS and doctor (regardless of agreement in terms of direction).
Statistical analysis
Data analysis was performed in Statistica v.13 (TIBCO Inc., USA), MS Excel 2019 (Microsoft, USA), Python 3.10.2 using open-source libraries: statsmodels 0.13.2, and SciPy 1.9.1. Distributions of quantitative variables were described using median (Me) and lower and upper quartiles [ Q1; Q3]. The difference between quantitative features in dependent samples was evaluated using the Wilcoxon test (W-test), for independent samples the Mann-Whitney test (U-test) was used. Descriptive statistics of qualitative data are presented as absolute (n) and relative (%) frequencies. The confidence interval (CI) for the fractions was calculated using the Agresti-Coull method, for medians the bootstrap method was used. The quadratically weighted Kappa index and its 95% CI (https://www.medcalc.org/calc/kappa.php) were calculated to assess the agreement between IP adjustments. The significance level (P0) was set at 0.05. In the case of multiple hypothesis testing, Bonferroni correction was applied.
Ethical review
The local ethics committee of the National Medical Endocrinology Research Centre in accordance with Minutes No. 17 of the committee meeting dated 28.10.2020 decided that the planned scientific activities meet the ethical standards of good clinical practice and can be allowed for realization at the site of the Pediatric Endocrinology Institute, Endocrinology Research Centre. Legal representatives of patients gave informed consent to anonymous use of clinical data.
RESULTS
I. Development of a mathematical model for glucose profile prediction
The pilot version of the model (INS v.1) and the IP setting optimizer based on it were developed using the data of 167 patients (44,376 patient-hours) [12]. Further, we continued to collect IP and CGM/FGM data; a total of 189,000 patient-hours (7,875 days) of data were obtained from 504 pediatric patients with T1D. Clinical and laboratory characteristics of patients are presented in Table 1.
Table 1. Clinical and laboratory characteristics of 504 patients whose data were used in the development of the final version of the mathematical model (INS v.2)
|
Characteristic |
Me [Q1; Q3] |
|
Age, years |
11.1 [ 7.8; 14]. 95% CI for Me (10.6-11.4) |
|
Height, cm |
146.2 [ 129; 161.1] |
|
Weight, kg |
37 [ 25.4; 54.5] |
|
Duration of T1D, years |
3.1 [ 1.6; 6] |
|
TDD, U/kg/day |
0.9 [ 0.7; 1] |
|
TDD, U/day |
31.9 [ 18.4; 49] |
|
HbA1c, % |
7.5 [ 6.7; 8.3]. 95% CI for Me (7.4; 8.0) |
Note: HbA1c – glycated hemoglobin, T1D – type 1 diabetes mellitus, TDD – total daily dose of insulin, CI – confidence interval.
The patient sample is representative – median age and HbA1c in studies [12][13][14] are within the 95% CI of the medians of these characteristics of our population (Table 2).
Table 2. Patient characteristics in earlier studies
|
Clinical trial |
Age, years |
HbA1c, % |
|
E.M. Romanenkova et al., n=703 [12] |
11.3 [ 7.3; 14.6] |
7.4% [ 6.5; 8.6] |
|
Laptev DN, et al., n=469 [13] |
11.3 [ 8.4; 14.6] |
7.4% [ 6.6; 8.4] |
|
Laptev DN, et al., n=228 [14] |
11.2 [ 8.6; 14.7] |
7.6% [ 6.8; 8.9] |
Note: Data are presented as median and interquartile range: Me [Q1; Q3].
After receiving additional data and their similar preprocessing, the next (final) version of the model (INS v.2) was developed, and the IP setting optimizer was also updated. The prediction of the glucose profile provided by the pilot and final versions of the model at time horizons of 30, 60, 90 and 120 minutes was evaluated (Table 3). The accuracy of glucose profile prediction provided by the final version of the model is arithmetically better according to the MAE criterion than those provided by the pilot version and foreign analogues.
Table 3. Accuracy of glucose concentration prediction by different models [15] and INS v.2 at time horizons of 30, 60, 90 and 120 minutes
|
Test data of patient from training set |
Test data of patient from test set |
||||||||
|
Prediction horizon (min) |
|||||||||
|
30 |
60 |
90 |
120 |
30 |
60 |
90 |
120 |
||
|
ZOH [16] |
RMSE |
1.62 |
2.43 |
2.85 |
3.6 |
1.49 |
2.30 |
2.76 |
3.02 |
|
MAE |
1.17 |
1.78 |
2.12 |
2.32 |
1.08 |
1.70 |
2.07 |
2.29 |
|
|
ARIX [16] |
RMSE |
2.15 |
2.49 |
2.63 |
2.75 |
– |
|||
|
MAE |
1.50 |
1.73 |
1.88 |
2.13 |
|||||
|
LGBM [17] |
RMSE |
1.36 |
2.04 |
2.34 |
2.50 |
1.22 |
1.96 |
2.32 |
2.49 |
|
MAE |
0.95 |
1.49 |
1.75 |
1.91 |
0.87 |
1.43 |
1.74 |
1.91 |
|
|
INS v.1 |
RMSE |
1.31 |
1.95 |
2.25 |
2.40 |
1.21 |
1,90 |
2,26 |
2,44 |
|
MAE |
0.93 |
1.43 |
1.70 |
1.85 |
0.86 |
1,41 |
1,72 |
1,89 |
|
|
INS v.2 |
MAE |
– |
0.80 |
1.30 |
1.50 |
1.70 |
|||
Note: ZOH – simple basic model that outputs the current glucose value as a prediction for each prediction horizon, ARIX – autoregressive model integrated with extra input, the model is selected for each patient separately, LGBM – implementation of gradient boosting model, ANN – artificial neural network, RMSE – root mean square error, MAE – mean absolute error.
The mathematical model INS v.2 and the optimizer of insulin dosages were implemented as a computer software – CDSS for optimization of IP parameters. The web application is located on the Internet (currently not freely available). Examples of interfaces are shown in Figures 1, 2.

Figure 1. CDSS interface to optimize IP parameters in children with T1D prior to data optimization.

Figure 2. Interface of CDSS for optimization of IP parameters for children with T1D after data optimization.
II. Evaluation of agreement between recommendations provided by CDSS and expert opinions of doctors
The study included 40 patients, their clinical and laboratory characteristics are presented in Table 4. The total number of analysis points was 2880 for 40 patients, 960 points each for BP, CR and ISF.
Table 4. Clinical and laboratory characteristics of 40 patients included in the study to assess the agreement between recommendations provided by CDSS and expert opinions of doctors
|
Characteristics |
Me [Q1; Q3] |
|
Age, years |
11.6 [ 7; 15]. 95% CI for Me (10.0; 12.6) |
|
Height, cm |
155.5 [ 126; 166] |
|
Weight, kg |
46.5 [ 26; 57] |
|
Duration of T1D, years |
3.3 [ 2; 6.7] |
|
TDD, U/kg/day |
0.8 [ 0.6; 0.9] |
|
TDD, U/day |
35.3 [ 20.8; 54.7] |
|
HbA1c, % |
7.6 [ 6.9; 8.2]. 95% CI for Me (7.4; 8.0) |
Note: HbA1c – glycated hemoglobin, T1D – type 1 diabetes mellitus, TDD – total daily dose of insulin, CI – confidence interval.
The patient sample is representative – the medians of age and HbA1c in other studies (Table 2) are within the 95% CI of the medians of the same characteristics in our sample (Table 2).
Assessment of agreement in BP, CR, and ISF adjustments (Table 5) by kappa index (quadratically weighted) showed a weak degree of agreement. When assessing the degrees of agreement, it was found that the complete agreement of the directions of adjustments of the IP parameters is in the range of 37.5-53.8%, the complete disagreement is 4.5-17.4% (Table 6, Fig. 1). From a clinical point of view, the degree of agreement is more important, and from the comparison of CI it follows that:
- complete disagreement of adjustment directions is statistically significantly less common than complete or partial agreement;
- for BP and CR, the frequencies of complete and partial agreement do not differ;
- for ISF, complete agreement is more common than partial agreement.
Table 5. Agreement of CDSS and doctors’ recommendations for adjustment of BP, CR and IP in 40 patients (960 points of adjustment for each parameter)
|
Doctor |
||||
|
Decrease |
No change |
Increase |
||
|
CDSS |
BP: Kappa index (quadratically weighted): 0.17. 95% CI (0.11; 0.23) |
|||
|
Decrease |
193 |
170 |
63 |
|
|
No change |
38 |
128 |
56 |
|
|
Increase |
81 |
162 |
69 |
|
|
CDSS |
CR: Kappa index (quadratically weighted): 0.16. 95% CI (0.10; 0.22) |
|||
|
Decrease |
8 |
86 |
33 |
|
|
No change |
115 |
315 |
33 |
|
|
Increase |
24 |
222 |
124 |
|
|
CDSS |
ISF: Kappa index (quadratically weighted): 0.03. 95% CI (-0.04; 0.09) |
|||
|
Decrease |
35 |
123 |
44 |
|
|
No change |
49 |
417 |
167 |
|
|
Increase |
26 |
65 |
34 |
|
Note. CDSS – clinical decision support system, CI – confidence interval, BP – basal profile, CR – carbohydrate ratio, ISF – insulin sensitivity factor.
Table 6. Frequency of agreement in the direction of adjustment between CDSS recommendations and physician opinion (relative to baseline values) in IP parameter adjustment for 40 subjects (960 treatment points for each parameter)
|
BP, % (n=960) |
CR, % (n=960) |
ISF, % (n=960) |
|
|
Complete agreement |
40.6 (37.5; 43.8) |
46.6 (43.4; 49.8) |
50.6 (47.4; 53.8) |
|
Partial agreement |
44.4 (41.2; 47.6) |
47.5 (44.3; 50.7) |
42.1 (38.9; 45.3) |
|
Complete disagreement |
15.0 (12.8; 17.4) |
5.9 (4.5; 7.6) |
7.3 (5.7; 9.1) |
Note. Results are presented as frequency and 95% CI. BP – basal profile, CR – carbohydrate ratio, ISF – insulin sensitivity factor.
It can be seen from Table 7 that CDSS tends to adjust BP (decrease or increase) rather than left it unchanged; vice versa, the doctors more often left BP unchanged. Both CDSS and doctors more often changed BP parameters by decreasing than increasing them. CDSS increased CR more often than decreased it; the frequences of increases and decreases of CR by doctors are nearly equal. Concerning ISF, both CDSS and doctors left it unchanged in most cases, but if a change was made, CDSS more often decreased ISF, while doctors increased it.
Table 7. Frequencies of IP parameter adjustment directions by CDSS and doctors (relative to baseline values) in a sample of 40 patients (960 adjustments of each parameter)
|
Correction direction |
CDSS, % (n=960) |
Doctor, % (n=960) |
|
BP, no change |
23.1 (20.4; 25.8) |
47.9 (44.7; 51.1) |
|
BP, increase |
32.5 (29.5; 35.5) |
19.6 (17.1; 22.1) |
|
BP, decrease |
44.4 (41.3; 47.5) |
32.5 (29.5; 35.5) |
|
CR, no change |
48.2 (45.0; 51.4) |
64.9 (61.9; 67.9) |
|
CR, increase |
38.5 (35.4; 41.6) |
19.8 (17.3; 22.3) |
|
CR, decrease |
13.2 (11.1; 15.3) |
15.3 (13.0; 17.6) |
|
ISF, no change |
65.9 (62.9; 68.9) |
63.0 (60.0; 66.1) |
|
ISF, increase |
13.0 (10.9; 15.1) |
25.5 (22.7; 28.3) |
|
ISF, decrease |
21.0 (18.4; 23.6) |
11.5 (9.5; 13.5) |
Note. Results are presented as relative frequency and 95% CI. CDSS – clinical decision support system; BP – basal profile, CR – carbohydrate ratio, ISF – insulin sensitivity factor.
Next, the agreement of adjustments by their magnitude was evaluated. Table 8 shows that there are no statistically significant differences in the median hourly parameters of ISF between CDSS and doctors. There are also no statistically significant differences between the CDSS recommendations and medical opinions when compared with the baseline ISF settings.
Table 8. Hourly mean ISF before consultation and recommended by CDSS and doctors in a sample including 40 patients
|
Baseline (n=40) |
CDSS (n=40) |
Doctor (n=40) |
P, U-test |
|||
|
Baseline – CDSS |
Baseline – doctor |
CDSS – doctor |
||||
|
BP, U/h |
0.6 [ 0.3; 1.2] |
0.7 [ 0.3; 1.2] |
0.7 [ 0.3; 1.2] |
0.875 |
0.935 |
0.943 |
|
CR, U/BU |
1.1 [ 0.8; 1.4] |
1.2 [ 0.8; 1.4] |
1.2 [ 0.8; 1.6] |
0.543 |
0.720 |
0.785 |
|
ISF, mmol/L |
4.6 [ 3.0; 8.8] |
4.4 [ 3.0; 8.8] |
4.4 [ 3.0; 6.8] |
0.912 |
0.609 |
0.720 |
Note. Results are presented as median and interquartile range: Me [Q1; Q3]. CDSS – clinical decision support system, BP – basal profile, CR – carbohydrate ratio, ISF – insulin sensitivity factor; BU – bread unit.
Table 9 provides descriptive statistics and CI for MARD. Discrepancies of up to 10% in the recommendations by CDSS and doctor are clinically insignificant, therefore, we consider that the agreement between recommendations by CDSS and doctor for adjustment of CR and ISF according to the MARD criterion is satisfactory. For BP, MARD exceeded 10% in 14% of cases (55 of 390 cases), 95% CI (11%; 18%)
Table 9. Difference of the adjustments by CDSS in relation to the adjustments by doctors (MARD), with direction of adjustment being in complete agreement
|
BP (n=390) |
CR (n=447) |
ISF (n=486) |
|
|
MARD, % |
2.3 (1.0; 5.4) |
0 (0; 1.7) |
0 (0; 0) |
Note: Results are presented as median and 95% CI. MARD – mean absolute relative difference; BP – basal profile, CR – carbohydrate ratio, ISF – insulin sensitivity factor.
CDSS tended to increase the number of intervals for adjusting CR in comparison with the baseline settings and doctors’ recommendations (Table 10). For BP and ISF, no statistically significant differences were found between the recommendations by CDSS and doctors.
Table 10. Number of recommended IP settings adjustment intervals per day before consultation and recommended by CDSS and doctors in a sample of 40 patients
|
Baseline |
CDSS |
Doctor |
P, U-test |
|||
|
Baseline - CDSS |
Baseline - Doctor |
CDSS - Doctor |
||||
|
BP (N) |
6 [ 4; 7] |
7 [ 5; 7] |
5 [ 4; 6] |
0.143 |
0.187 |
0.013 |
|
CR (N) |
4 [ 3; 5] |
5 [ 4; 6] |
4 [ 3; 5] |
0.003 |
0.943 |
0.004 |
|
ISF (N) |
1.5 [ 1; 3] |
1 [ 1; 3] |
1 [ 1; 3] |
0.928 |
0.482 |
0.563 |
Note: Data are presented as median and interquartile range: Me [Q1; Q3]. Bonferroni correction: P0=0.05/9≈0.0055. CDSS – clinical decision support system; BP – basal profile; CR – carbohydrate ratio; ISF – insulin sensitivity factor.
DISCUSSION
I. Development of a mathematical model for glucose profile prediction
Sample representativeness
The sample is representative relative to the target population of children with T1D in terms of age and degree of carbohydrate metabolism compensation (Tables 1–2).
Comparison with other publications
Glucose profile prediction is an important component of CDSS. According to Oviedo S, et al.[18], glucose prediction models can be divided into 3 groups: physiological models use mathematical formulas describing food absorption and insulin action (Dall Man model [19], Hovorka model [20]); data-driven models use machine learning methods (on an electronic data array); hybrid models use machine learning methods supplemented by physiological models. The mathematical model we developed for predicting glucose levels belongs to the group of data-driven models, since only input and output data (electronic data from IP and CGM, patient metadata) were used in ANN training, between which patterns were revealed. Assessment of the effectiveness of our final model with other models from the group of data-driven models [16][17] showed a decrease in the glucose profile prediction error by about one and a half times.
II. Evaluation of the agreement between recommendations of CDSS and expert opinion of doctors
Sample representativeness
The sample is representative relative to the target population of children with T1D in terms of age and degree of carbohydrate metabolism compensation (Tables 2–4).
Comparison with other publications
To assess the possibility of clinical use of CDSS, we evaluated the agreement between recommendations of CDSS and doctors when adjusting IP settings, supplemented with CGM/FGM, in children with T1D. The rate of complete agreement across all three IP parameters (BP, CR, ISF) was in the range of 37.5–53.8% and partial agreement was 38.9–50.7%, which is clinically satisfactory and consistent with previous studies [21].
With complete agreement on the direction of adjustment, more pronounced differences between doctors and CDSS in the magnitude of adjustment (according to MARD) were found for BP rather than for CF and ISF. Disagreements up to 10% are considered clinically insignificant [11], therefore we consider the agreement between the recommendations by CDSS and doctors to be satisfactory in terms of adjustment magnitude.
Compared to doctors, CDSS increases the number of intervals for CR adjustment. Previous studies have shown that the need for insulin during the day is different, and this depends mainly on the age and stage of puberty [22]. Euglycaemic clamp study showed that it takes 2.5 to 4 hours until a significant change in basal infusion leads to a new stable level [23], so up to 10 intervals are effective with existing insulin analogues. CDSS has a limited number of intervals for all IP parameters – a maximum of 8.
CDSS tended to recommend increases in CRs and decreases in BP; thus, more insulin can be administered as boluses and less as basal doses. The conclusion that more insulin should be administered as boluses than basal doses was observed in studies with pump [24] and closed loop [25], and was found to be associated with better glycemic control and HbA1c levels.
In a study by Nimri R. et al. [21] agreement was assessed between doctors (26 specialists from 16 countries) and between doctors and the automated algorithm Advisor Pro (DreaMed Diabetes Ltd, Petah Tikva, Israel) in IP adjustment in 15 patients with T1D (mean age 16.2 years ± 4.3, of which 4 patients were over 20 years old, mean HbA1c 8.3% ± 0.9). Complete agreement between doctors, as well as between doctors and the algorithm on the direction of adjustment on all three IP parameters was the same ~ 45% (mean). It was found that the level of complete disagreement in the direction of adjustment was slightly higher for BP than for CF and ISF. This was also found in our study.
Distinctive features of our study as compared to the Advisor Pro study are the age range and the degree of compensation of carbohydrate metabolism. In the latter study, the majority of patients were from older age groups than in our study. This was associated with a stable course of T1D in patients of a foreign study due to the completion of sexual development (absence of sudden hormonal changes associated with the growth and development of the body), general stabilization of the lifestyle (the lifestyle of adults is more regular), these patients also develop responsibility and greater independence in T1D management. Our study included patients of all age groups, with all features of the course of T1D in each period of body formation. In a foreign study, carbohydrate metabolism compensation was worse than in our study. For patients with high HbA1c levels compensation more often focuses on insulin therapy adjustment, while in case of medium HbA1c levels the focus is more often on other issues. The results of the agreement of recommendations for the adjustment of insulin pump therapy between the doctor and the software in our and foreign studies are in good agreement. If our study was fully corresponding in the age range and the degree of compensation for carbohydrate metabolism to this foreign study, the degree of agreement between the recommendations of our software and medical opinions could be higher.
A study conducted in the Netherlands assessed factors that influenced the decision of 190 healthcare professionals to titrate basal insulin for T2D patients. I was found that even in T2D for which guidelines and official recommendations exist, and adjustment is simpler because only basal insulin is adjusted, the magnitude of insulin titration was found to be significantly different between specialists [26]. Thus, among doctors, even when treatment guidelines are available, there is a significant disagreement in approaches to treatment adjustment, which is probably due to different experience and motivation to achieve certain target parameters, as well as other subjective reasons. Therefore, comparing the agreement between CDSS and expert opinion of doctors can also show significant disagreement, which was demonstrated in our study.

Figure 3. Frequency (%) of agreement in the direction of adjustment of IP parameters between physician doctor and CDSS (relative to baseline values) (relative frequencies and 95% CI). Estimated at 960 tuning points for each parameter.
BP – basal profile, CR – carbohydrate ratio, ISF – insulin sensitivity factor.
Clinical relevance of results
The use of CDSS in clinical practice can help in regular and frequent observation of children with T1D, standardize the approach to the adjustment of IP parameters, supplemented with CGM/FGM. This will allow more efficient allocation of health care resources, personalized treatment and patient management.
Study limitations
Potential limitations of the use of CDSS are the need to use electronic devices for diabetes management (IP, CGM/FGM) of certain manufacturers (Medtronic, FreeStyle Libre), the minimum amount of data for analysis, possible data loss, and the need for manual data loading.
Further research areas
It seems promising to continue collecting data and using them to develop new versions of the model. In order to more accurately predict the glucose profile, it seems advisable to use such model predictors as data from approved electronic devices reflecting the influence of external factors on glucose patterns, for example, a pulse oximeter, a physical activity tracker, etc. Data collection could be simplified by using a cloud storage for automatic data download from devices in real time.
CONCLUSION
On a large sample of patients, a software product, CDSS, was developed to predict the glucose profile and adjust the parameters of insulin pump therapy supplemented with CGM/FGM. In terms of prediction accuracy, the developed model surpasses foreign analogues. The agreement between the recommendations provided by CDSS and the expert opinions of doctors is acceptable.
FURTHER INFORMATION
Funding. The study was carried out with the financial support of Alfa Group and the Culture of Charity foundation as part of the Alfa-Endo National Charity Program for helping children with endocrine diseases.
Contributions of authors. Sorokin D.Yu. – study design, creation of a database for training an artificial neural network, development of a program module (program interface module), research, statistical analysis of data, writing the manuscript; Trufanova E.S. – development of mathematical models, design of a software product, writing program code; Rebrova O.Yu. – scientific advice for data analysis, presenting study results, scientific editing of the manuscript; Bezlepkina O.B. – system analysis and justification of the need for development, formulation of requirements; Laptev D.N. – system analysis and justification of the need for development, formulation of requirements, development of a software module (module for graphic presentation of data), organization of research.
All authors approved the final version of the manuscript before publication, agreed to be responsible for all aspects of the manuscript, ensuring proper investigation and resolution of issues related to the accuracy or fidelity of any part of the manuscript.
Acknowledgments. The authors express their gratitude to the employees of the Pediatric Diabetes Mellitus Department, Endocrinology Research Centre: Ekaterina Andreevna Andrianova, Andrey Olegovich Emelyanov, Irina Alexandrovna Eremina, Tamara Leonidovna Kuraeva, Galina Nikolaevna Svetlova, Elena Alexandrovna Sechko, Elena Vitalievna Titovich – for participation in the study of the agreement between the recommendation provided by CDSS and expert opinion of doctors in the adjustment of insulin pump parameters.
References
1. «1. American Diabetes Association. Standards of medical care in diabetes 2019. Diabetes Care. 2019;42:1-193
2. Laptev DN, Pereverzeva SV, Emelyanov AO, Peterkova VA. Monitoring of insulin pump therapy in children, adolescents, and young adults with type 1 diabetes mellitus in the Russian Federation. Problems of Endocrinology. 2018;64(2):85- 92. (In Russ.) doi: https://doi.org/10.14341/probl8756
3. Dedov II, Shestakova MV, Peterkova VA, et al. Diabetes mellitus in children and adolescents according to the Federal diabetes registry in the Russian Federation: dynamics of major epidemiological characteristics for 2013–2016. Diabetes mellitus. 2017;20(6):392-402. (In Russ.) doi: https://doi.org/10.14341/DM9460
4. Shestakova MV, Vikulova OK, Zheleznyakova AV, Isakov MA, Dedov II. Diabetes epidemiology in Russia: what has changed over the decade? // Terapevticheskii arkhiv. 2019;91(10):4-13. (In Russ.) doi: https://doi.org/10.26442/00403660.2019.10.000364
5. The DCCT Research Group. Diabetes Control and Complications Trial (DCCT): results of feasibility study. Diabetes Care. 1987;10(1):1-19. doi: https://doi.org/10.2337/diacare.10.1.1
6. The Diabetes Control and Complications Trial Research Group. The effect of intensive treatment of diabetes on the development and progression of long-term complications in insulindependent diabetes mellitus. N Engl J Med. 1993;329(14):977-986. doi: https://doi.org/10.1056/NEJM199309303291401
7. Pettus J, Edelman SV. Recommendations for using real-time continuous glucose monitoring (rtCGM) data for insulin adjustments in type 1 diabetes. J Diabetes Sci Technol. 2017;11(1):138 -147. doi: https://doi.org/10.1177/1932296816663747
8. Aleppo G, Laffel LM, Ahmann AJ, et al. A practical approach to using trend arrows on the dexcom G5 CGM system for the management of adults with diabetes. J Endocr Soc. 2017;1(12):1445-1460. doi: https://doi.org/10.1210/js.2017-00388
9. Nimri R, Battelino T, Laffel LM, et al. Insulin dose optimization using an automated artificial intelligence-based decision support system in youths with type 1 diabetes. Nature Medicine. 2020;26:1380-1384. doi: https://doi.org/10.1038/s41591-020-1045-7
10. Tyler NS, Mosquera-Lopez CM, Wilson LM, et al. An artificial intelligence decision support system for the management of type 1 diabetes. Nat Metab. 2020;2:612-619. doi: https://doi.org/10.1038/s42255-020-0212-y
11. ISPAD [Internet]. ISPAD Clinical Practice Consensus Guidelines 2022 [cited 2024 May 8]. Available from: https://www.ispad.org/page/ISPADGuidelines2022
12. Romanenkova EM, Eremina IA, Titovich EV, et al. C-peptide levels and the prevalence of islets autoantibodies in children with type 1 diabetes mellitus with different duration of the disease. Diabetes mellitus. 2022;25(2):155-165. (In Russ.) doi: https://doi.org/10.14341/DM12843
13. Laptev DN, Bezlepkina OB, Demina ES, et al. Evaluation of FreeStyle Libre in pediatric t1dm: improved glycemic control, reduction in diabetic ketoacidosis and severe hypoglycemia. Problems of Endocrinology. 2022;68(3):86-92. (In Russ.) doi: https://doi.org/10.14341/probl12877
14. Laptev DN, Emelyanov AO, Andrianova EA, et al. The use of Flash glucose monitoring in children with type 1 diabetes mellitus in real clinical practice. Diabetes mellitus. 2021;24(6):504-510. (In Russ.) doi: https://doi.org/10.14341/DM12817
15. Trufanova ES, Rebrova OY. Decision Support System for Type 1 Diabetes Management. Bachelor’s Thesis. 2021. Federal State Autonomous Educational Institution for Higher Education National Research University Higher School of Economics.
16. Finan DA, Doyle FJ, Palerm CC, et al. Experimental Evaluation of a Recursive Model Identification Technique for Type 1 Diabetes. Journal of Diabetes Science and Technology. 2009;3(5):1192-1202. doi: https://doi.org/10.1177/193229680900300526
17. Fazle R, Yazhou T, Imran H, et al. Stacked LSTM Based Deep Recurrent Neural Network with Kalman Smoothing for Blood Glucose Prediction. BMC Med Inform Decis Mak. 2021;21:101. doi: https://doi.org/10.1186/s12911-021-01462-5
18. Oviedo S, Vehí J, Calm R, Armengol J. A review of personalized blood glucose prediction strategies for T1DM patients. Int J Numer Meth Biomed Engng. 2017;33:2833. doi: https://doi.org/10.1002/cnm.2833
19. Dalla Man С, Rizza R, Cobelli С. Meal simulation model of the glucoseinsulin system. IEEE Trans Biomed Eng. 2007;54(10):1740-1749. doi: https://doi.org/10.1109/TBME.2007.893506
20. Hovorka R, Canonico V, Chassin LJ, et al. Nonlinear model predictive control of glucose concentration in subjects with type 1 diabetes. Physiol Meas. 2004;25(4):905-920. doi: https://doi.org/10.1088/0967-3334/25/4/010
21. Nimri R, Dassau E, Segall T, et al. Adjusting insulin doses in patients with type 1 diabetes who use insulin pump and continuous glucose monitoring: Variations among countries and physicians. Diabetes Obes Metab. 2018;20(10):2458-2466. doi: https://doi.org/10.1111/dom.13408
22. Bachran R, Beyer P, Klinkert C, et al. Basal rates and circadian profiles in continuous subcutaneous insulin infusion (CSII) differ for preschool children, prepubertal children, adolescents and young adults. Pediatr Diabetes. 2012;13(1):1-5. doi: https://doi.org/10.1111/j.1399-5448.2011.00777.x
23. Heinemann L, Nosek L, Kapitza C, et al. Changes in basal insulin infusion rates with subcutaneous insulin infusion: time until a change in metabolic effect is induced in patients with type 1 diabetes. Diabetes Care. 2009;32(8):1437-1439. doi: https://doi.org/10.2337/dc09-0595
24. Danne T, Battelino T, Jarosz-Chobot P, et al. Establishing glycaemic control with continuous subcutaneous insulin infusion in children and adolescents with type 1 diabetes: experience of the PedPump Study in 17 countries. Diabetologia. 2008;51(9):1594-1601. doi: https://doi.org/10.1007/s00125-008-1072-2
25. Nimri R, Muller I, Atlas E, et al. MD-Logic Overnight Control for 6 Weeks of Home Use in Patients With Type 1 Diabetes: Randomized Crossover Trial. Diabetes Care. 2014;37(11):3025-3032. doi: https://doi.org/10.2337/dc14-0835
26. Simon AC, Schopman JE, Hoekstra JB, et al. Factors that drive insulin-dosing decisions of diabetes care providers: a vignettebased study in the Netherlands. Diabet Med. 2015;32(1):69-77. doi: https://doi.org/10.1111/dme.12586
About the Authors
D. Yu. SorokinRussian Federation
Daniil Yu. Sorokin
Researcher ID: HJY-5714-2023
11 Dm. Ulyanova street, 117036 Moscow
E. S. Trufanova
Russian Federation
Evgeniya S. Trufanova
Moscow
O. Yu. Rebrova
Russian Federation
Olga Yu. Rebrova, PhD
ResearcherID: A-9071-2010;
Scopus Author ID: 6601986825
Moscow
O. B. Bezlepkina
Russian Federation
Olga B. Bezlepkina, PhD, Professor
ResearcherID: B-6627-2017;
Scopus Author ID: 6507632848
Moscow
D. N. Laptev
Russian Federation
Dmitry N. Laptev, MD, PhD, Professor
Researcher ID: O-1826-2013;
Scopus Author ID: 24341083800
Moscow
Supplementary files
|
|
1. Рисунок 1. Интерфейс системы поддержки принятия врачебных решений по оптимизации параметров инсулиновых помп у детей с сахарным диабетом 1 типа до оптимизации данных. | |
| Subject | ||
| Type | Исследовательские инструменты | |
View
(419KB)
|
Indexing metadata ▾ | |
|
|
2. Figure 1. CDSS interface to optimize IP parameters in children with T1D prior to data optimization. | |
| Subject | ||
| Type | Исследовательские инструменты | |
View
(409KB)
|
Indexing metadata ▾ | |
|
|
3. Рисунок 2. Интерфейс системы поддержки принятия врачебных решений по оптимизации параметров инсулиновых помп у детей с сахарным диабетом 1 типа после оптимизации данных. | |
| Subject | ||
| Type | Исследовательские инструменты | |
View
(1020KB)
|
Indexing metadata ▾ | |
|
|
4. Figure 2. Interface of CDSS for optimization of IP parameters for children with T1D after data optimization. | |
| Subject | ||
| Type | Исследовательские инструменты | |
View
(1000KB)
|
Indexing metadata ▾ | |
|
|
5. Рисунок 3. Частоты степеней согласованности (%) по направлению корректировки параметров инсулиновых помп между врачом и системой поддержки принятия врачебных решений (относительно исходных значений) (относительные частоты и 95% ДИ). Оценено по 960 точек настройки для каждого параметра. БП — базальный профиль, УК — углеводный коэффициент, ЧИ — чувствительность к инсулину. | |
| Subject | ||
| Type | Исследовательские инструменты | |
View
(198KB)
|
Indexing metadata ▾ | |
|
|
6. Figure 3. Frequency (%) of agreement in the direction of adjustment of IP parameters between physician doctor and CDSS (relative to baseline values) (relative frequencies and 95% CI). Estimated at 960 tuning points for each parameter. BP – basal profile, CR – carbohydrate ratio, ISF – insulin sensitivity factor. | |
| Subject | ||
| Type | Исследовательские инструменты | |
View
(188KB)
|
Indexing metadata ▾ | |
Review
For citations:
Sorokin D.Yu., Trufanova E.S., Rebrova O.Yu., Bezlepkina O.B., Laptev D.N. Clinical decision support system based on artificial intelligence for adjusting insulin pump parameters in children with type 1 diabetes mellitus. Diabetes mellitus. 2024;27(3):242-253. https://doi.org/10.14341/DM13167
JATS XML
This work is licensed under a Creative Commons Attribution-NonCommercial-NoDerivatives 4.0 International License (CC BY-NC-ND 4.0).








































