| Literature DB >> 35169690 |
Andrew D Zale1, Mohammed S Abusamaan1, John McGready2, Nestoras Mathioudakis1.
Abstract
BACKGROUND: Inpatient glucose management can be challenging due to evolving factors that influence a patient's blood glucose (BG) throughout hospital admission. The purpose of our study was to predict the category of a patient's next BG measurement based on electronic medical record (EMR) data.Entities:
Keywords: AUC, area under receiver operating curve; BG, blood glucose; BMI, body mass index; CGM, continuous glucose monitor; EMR, electronic medical record; ICD, International Classification of Diseases; ICU, intensive care unit; NLR, negative likelihood ratio; NPO, nil per os; NPV, negative predictive value; PLR, positive likelihood ratio; PPV, positive predictive value; T1DM, type 1 diabetes mellitus; T2DM, type 2 diabetes mellitus
Year: 2022 PMID: 35169690 PMCID: PMC8829081 DOI: 10.1016/j.eclinm.2022.101290
Source DB: PubMed Journal: EClinicalMedicine ISSN: 2589-5370
Figure 2Lookback window, index observation, and prediction horizon. Top: Starting with the 5th blood glucose (BG) measurement, our machine learning algorithm begins to make predictions about a patient's next BG measurement in an expected prediction horizon of five minutes-ten hours. Data preceding the 5th BG measurement are included in summary statistics over the previous 24 h and admission as applicable.
Bottom: As a patient's admission becomes longer, BG measurements that were earlier in the admission may no longer be included in the 24 h summary statistics but will continue to be included in the admission summary statistics. The five minute to ten hour prediction horizon continues to roll with each new BG measurement.
Figure 1Study flowchart. *These BG readings were included as historical glucose data in the admission, but not as index observations.
Baseline Characteristics of Study Population at Admission Level Comparing Each Validation Set to the Training Set.
| Training | Validation | |||||
|---|---|---|---|---|---|---|
| Internal | External | |||||
| Hospital 1 | Hospital 1 | Hospital 2 | Hospital 3 | Hospital 4 | Hospital 5 | |
| Number of Admissions | 38,470 | 35,257 | 14,874 | 9296 | 4905 | 9630 |
| Age, years, median (IQR) | 59·0 (46·0, 69·0) | 59·0 (46·0, 69·0) | 63·0 (52·0, 74·0) | 71·0 (59·0, 81·0) | 71·0 (58·0, 82·0) | 74·0 (62·0, 84·0) |
| Sex | ||||||
| Female | 18,785 (48·8%) | 17,159 (48·7%) | 7472 (50·2%) | 4775 (51·4%) | 2661 (54·3%) | 4834 (50·2%) |
| Male | 19,685 (51·2%) | 18,098 (51·3%) | 7402 (49·8%) | 4521 (48·6%) | 2244 (45·7%) | 4796 (49·8%) |
| Race | ||||||
| Black | 14,581 (37·9%) | 13,343 (37·8%) | 4361 (29·3%) | 2723 (29·3%) | 1277 (26·0%) | 1742 (18·1%) |
| White | 20,521 (53·3%) | 18,419 (52·2%) | 9599 (64·5%) | 5278 (56·8%) | 3114 (63·5%) | 6105 (63·4%) |
| Other | 3368 (8·8%) | 3495 (9·9%) | 914 (6·1%) | 1295 (13·9%) | 514 (10·5%) | 1783 (18·5%) |
| BMI, kg/m, median (IQR) | 26·8 (22·7, 31·9) | 26·8 (22·8, 31·9) | 28·1 (23·4, 34·0) | 27·4 (23·2, 32·8) | 25·8 (22·3, 30·5) | 26·3 (22·7, 30·7) |
| Weight, pounds, median (IQR) | 171·0 (141·0, 206·0) | 171·0 (141·0, 206·0) | 177·0 (145·0, 216·0) | 173·0 (142·0, 211·0) | 164·0 (136·0, 197·0) | 164·0 (137·0, 197·0) |
| Diabetes diagnosis | ||||||
| None | 30,793 (80·0%) | 27,714 (78·6%) | 10,354 (69·6%) | 6557 (70·5%) | 4044 (82·4%) | 6872 (71·4%) |
| T1DM | 558 (1·5%) | 528 (1·5%) | 320 (2·2%) | 254 (2·7%) | 62 (1·3%) | 229 (2·4%) |
| T2DM | 6788 (17·6%) | 6636 (18·8%) | 4137 (27·8%) | 2430 (26·1%) | 768 (15·7%) | 2453 (25·5%) |
| Other DM | 331 (0·9%) | 379 (1·1%) | 63 (0·4%) | 55 (0·6%) | 31 (0·6%) | 76 (0·8%) |
| Home insulin | 2914 (7·6%) | 2350 (6·7%) | 1241 (8·3%) | 1348 (14·5%) | 431 (8·8%) | 1115 (11·6%) |
| Home steroid | 2156 (5·6%) | 1801 (5·1%) | 466 (3·1%) | 555 (6·0%) | 339 (6·9%) | 656 (6·8%) |
| Average BG, median (IQR) | 122·2 (106·6, 148·7) | 121·4 (106·2, 148·0) | 119·7 (102·9, 158·4) | 129·0 (109·0, 167·5) | 114·8 (101·6, 143·2) | 124·2 (106·8, 157·5) |
| Number of BG measurements, median (IQR) | 15·0 (7·0, 35·0) | 15·0 (7·0, 36·0) | 12·0 (6·0, 26·0) | 11·0 (6·0, 23·0) | 7·0 (5·0, 16·0) | 10·0 (5·0, 22·0) |
| Length of stay, days, median (IQR) | 5·5 (3·4, 9·4) | 5·8 (3·7, 9·9) | 4·9 (3·1, 8·0) | 4·9 (3·2, 7·5) | 5·1 (3·4, 8·0) | 4·9 (3·3, 7·4) |
IQR = interquartile range; BMI = body mass index; T1DM = type 1 diabetes; T2DM = type 2 diabetes; BG = blood glucose.
P-value < 0·05.
P-value < 0·01.
P-value < 0·001.
Figure 3Time to next blood glucose reading in test set of Hospital 1. Red lines mark the middle 90% (5th percentile-95th percentile) and blue lines mark the middle 50% (25th percentile–75th percentile).
Figure 4Variable Importance Plot of Top 20 Predictors. Variable importance plot based on the mean decrease in Gini, which is a measure of how much heterogeneity (i.e. misclassification) is lost when a predictor is used in a random forest node.
Figure 5Probability cutpoints to determine the predicted class of a patient's next BG reading. This shows how probabilities for each BG category are used in an algorithmic fashion to determine the final class of BG. Cutpoints were selected that maximized the sum of sensitivity and specificity for each class.
Null model and random forest model performance and 95% confidence intervals on internal chronologic validation.
| Null Model | Random Forest Model | |||||
|---|---|---|---|---|---|---|
| Controlled | Hyper | Hypo | Controlled | Hyper | Hypo | |
| Prevalence | 0·73 | 0·26 | 0·01 | 0·73 | 0·26 | 0·01 |
| AUROC | – | – | – | 0·87 (0·87, 0·87) | 0·91 (0·91, 0·91) | 0·90 (0·90, 0·91) |
| Sensitivity | 0·87 (0·87, 0·87) | 0·70 (0·70, 0·70) | 0·25 (0·25, 0·26) | 0·77 (0·77, 0·77) | 0·77 (0·77, 0·77) | 0·73 (0·72, 0·74) |
| Specificity | 0·68 (0·68, 0·68) | 0·91 (0·90, 0·91) | 0·99 (0·99, 0·99) | 0·81 (0·80, 0·81) | 0·89 (0·89, 0·89) | 0·91 (0·91, 0·91) |
| PPV | 0·86 (0·86, 0·87) | 0·72 (0·72, 0·72) | 0·25 (0·25, 0·26) | 0·91 (0·91, 0·92) | 0·70 (0·70, 0·70) | 0·10 (0·10, 0·11) |
| NPV | 0·70 (0·70, 0·70) | 0·90 (0·90, 0·90) | 0·99 (0·99, 0·99) | 0·57 (0·57, 0·57) | 0·92 (0·92, 0·92) | 1·00 (1·00, 1·00) |
| PLR | 2·75 (2·73, 2·76) | 7·42 (7·36, 7·48) | 22·73 (21·87, 23·62) | 3·99 (3·95, 4·02) | 6·84 (6·79, 6·90) | 7·79 (7·69, 7·90) |
| NLR | 0·19 (0·18, 0·19) | 0·33 (0·33, 0·33) | 0·75 (0·75, 0·76) | 0·28 (0·28, 0·28) | 0·26 (0·26, 0·26) | 0·30 (0·29, 0·30) |
AUC = area under the receiver operating characteristic curve; PPV = positive predictive value; NPV = negative predictive value; PLR = positive likelihood ratio; NLR = negative likelihood ratio; hyper = hyperglycemia; hypo = hypoglycemia. 95% CI shown in parentheses.
Figure 6AUC performance of each class of prediction by hospital. AUC curves were plotted for each class (controlled, hyperglycemia, and hypoglycemia) by comparing the sensitivity and specificity at different cutpoints for each class individually (controlled vs. not controlled, hyperglycemic vs. not hyperglycemic, and hypoglycemic vs. not hypoglycemic). The AUC curves of Hospital 1 are the class-specific model performance in the test set and the AUC curves of Hospitals 2–5 are the class-specific model performances in the external validation sets.
Random forest model performance and 95% confidence intervals upon external validation.
| Hospital 2 | Hospital 3 | Hospital 4 | Hospital 5 | |||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Controlled | Hyper | Hypo | Controlled | Hyper | Hypo | Controlled | Hyper | Hypo | Controlled | Hyper | Hypo | |
| Prevalence | 0·65 | 0·33 | 0·02 | 0·63 | 0·35 | 0·03 | 0·65 | 0·33 | 0·02 | 0·68 | 0·30 | 0·02 |
| AUROC | 0·85 (0·85, 0·85) | 0·90 (0·90, 0·90) | 0·85 (0·85, 0·85) | 0·91 (0·90, 0·91) | 0·88 (0·88, 0·88) | 0·90 (0·89, 0·91) | 0·84 (0·84, 0·84) | 0·87 (0·86, 0·87) | 0·89 (0·87, 0·90) | 0·83 (0·82, 0·83) | 0·87 (0·87, 0·88) | 0·90 (0·89, 0·90) |
| Sensitivity | 0·69 (0·69, 0·69) | 0·80 (0·80, 0·81) | 0·78 (0·77, 0·80) | 0·64 (0·64, 0·65) | 0·79 (0·79, 0·80) | 0·78 (0·76, 0·80) | 0·70 (0·69, 0·71) | 0·76 (0·75, 0·77) | 0·69 (0·65, 0·73) | 0·69 (0·69, 0·70) | 0·75 (0·74, 0·75) | 0·76 (0·75, 0·78) |
| Specificity | 0·84 (0·84, 0·85) | 0·84 (0·84, 0·85) | 0·89 (0·88, 0·89) | 0·84 (0·84, 0·84) | 0·82 (0·82, 0·83) | 0·87 (0·87, 0·87) | 0·81 (0·81, 0·82) | 0·82 (0·82, 0·83) | 0·90 (0·90, 0·91) | 0·80 (0·80, 0·81) | 0·84 (0·84, 0·84) | 0·88 (0·88, 0·88) |
| PPV | 0·89 (0·89, 0·89) | 0·72 (0·72, 0·72) | 0·12 (0·12, 0·12) | 0·87 (0·87, 0·87) | 0·71 (0·70, 0·71) | 0·13 (0·13, 0·14) | 0·88 (0·87, 0·88) | 0·68 (0·67, 0·69) | 0·11 (0·10, 0·12) | 0·88 (0·88, 0·89) | 0·67 (0·66, 0·67) | 0·12 (0·12, 0·13) |
| NPV | 0·60 (0·59, 0·60) | 0·90 (0·89, 0·90) | 1·00 (0·99, 1·00) | 0·59 (0·58, 0·59) | 0·88 (0·88, 0·88) | 0·99 (0·99, 0·99) | 0·59 (0·58, 0·60) | 0·87 (0·87, 0·88) | 0·99 (0·99, 1·00) | 0·55 (0·55, 0·56) | 0·89 (0·88, 0·89) | 0·99 (0·99, 0·99) |
| PLR | 4·41 (4·33, 4·48) | 5·16 (5·10, 5·23) | 6·85 (6·71, 6·99) | 4·02 (3·92, 4·12) | 4·45 (4·37, 4·53) | 6·08 (5·91, 6·25) | 3·77 (3·62, 3·93) | 4·25 (4·12, 4·38) | 7·17 (6·70, 7·67) | 3·55 (3·47, 3·63) | 4·73 (4·65, 4·82) | 6·45 (6·27, 6·63) |
| NLR | 0·37 (0·37, 0·37) | 0·23 (0·23, 0·24) | 0·24 (0·23, 0·26) | 0·42 (0·42, 0·43) | 0·25 (0·25, 0·26) | 0·25 (0·23, 0·27) | 0·37 (0·36, 0·38) | 0·29 (0·28, 0·30) | 0·35 (0·30, 0·39) | 0·38 (0·38, 0·39) | 0·30 (0·29, 0·31) | 0·27 (0·25, 0·29) |
AUC = area under the receiver operating characteristic curve; PPV = positive predictive value; NPV = negative predictive value; PLR = positive likelihood ratio; NLR = negative likelihood ratio; hyper = hyperglycemia; hypo = hypoglycemia. 95% CI shown in parentheses.