Skip to main content
JAMA Network logoLink to JAMA Network
. 2025 May 7;8(5):e258910. doi: 10.1001/jamanetworkopen.2025.8910

Real-Time AI-Assisted Insulin Titration System for Glucose Control in Patients With Type 2 Diabetes

A Randomized Clinical Trial

Zhen Ying 1, Yujuan Fan 2, Congling Chen 1, Yuchen Liu 3, Qi Tang 4, Zhiwei Chen 5, Qian Yang 6, Hongmei Yan 1, Liming Wu 7, Jiaping Lu 8, Zhiwen Liu 7, Jun Liu 6, Xiaoying Li 1,, Ying Chen 1,
PMCID: PMC12059970  PMID: 40332936

Key Points

Question

Can an artificial intelligence–based insulin clinical decision support system for type 2 diabetes achieve glycemic outcomes that are not inferior to standard therapy administered by senior endocrinology physicians?

Findings

In this randomized clinical trial of 149 adults with type 2 diabetes, the glycemic control of the artificial intelligence–based insulin clinical decision support system intervention was not inferior to that of standard therapy by senior physicians, without increasing risk of adverse events.

Meaning

The findings of this trial suggest that an artificial intelligence–based digital tool can achieve noninferior or possibly better outcomes compared with standard therapy by providing real-time and personalized clinical support.


This randomized clinical trial of adults with type 2 diabetes assesses the efficacy and safety of an artificial intelligence–based insulin clinical decision support system in achieving glucose control.

Abstract

Importance

Type 2 diabetes (T2D) is one of the most prevalent chronic diseases in the world. Insulin titration for glycemic control in T2D is crucial but limited by the lack of personalized and real-time tools.

Objective

To examine whether an artificial intelligence–based insulin clinical decision support system (iNCDSS) for glycemic control in hospitalized patients with T2D is noninferior to standard insulin therapy administered by senior physicians.

Design, Setting, and Participants

This multicenter, single-blind, parallel randomized clinical trial (RCT) was conducted between October 1, 2021, and September 8, 2022, in endocrinology wards of 3 medical centers. Eligible participants were adults (aged ≥18 years) with glycated hemoglobin levels between 7.0% and 11.0% who had received antidiabetic treatments in the previous 3 months.

Interventions

Participants were randomized in a 1:1 ratio to receive insulin dosage titration by iNCDSS or senior endocrinology physicians for 5 consecutive days.

Main Outcomes and Measures

The primary outcome was the proportion of time in the target glucose range (70-180 mg/dL) during the 5-day study period; the noninferiority margin was 6 percentage points. Secondary outcomes included other glycemic control measurements and adverse events.

Results

A total of 149 participants (mean [SD] age, 64.2 [12.0] years; 84 male [56.4%]) were enrolled and randomized to the iNCDSS group (n = 75) or physician group (n = 74). The mean (SD) target glucose range (primary outcome) was 76.4% (16.4%) in the iNCDSS group and 73.6% (16.8%) in the physician group, which achieved the prespecified noninferiority criterion (estimated treatment difference, 2.7%; 95% CI, −2.7% to 8.0%). There were no significant differences in adverse events between the 2 groups. Most physicians were satisfied with the iNCDSS for its clear, time-saving, effective, and safe clinical support.

Conclusions and Relevance

In this RCT of an iNCDSS, the system demonstrated noninferiority to senior endocrinology physicians in insulin titration in an inpatient setting, indicating its potential as a favorable tool for insulin titration in patients with T2D.

Trial Registration

ClinicalTrials.gov Identifier: NCT04642378

Introduction

Type 2 diabetes (T2D) is one of the most prevalent chronic diseases and leads to a considerable rate of death and social burden worldwide.1 Many adults with T2D eventually require insulin therapy,2 and the total volume of insulin required to treat T2D is expected to increase by more than 20% from 2018 to 2030.3 However, less than one-third of patients with T2D treated with insulin achieve their diabetes management goals.4,5 This suboptimal glycemic control is attributed partly to the prescription complexity, clinical inertia, and fear of hypoglycemia in insulin titration.6,7,8 Although a series of clinical guidelines on rational insulin use for patients with T2D has been proposed by experts,2,9,10,11 the guidelines cannot fully take into consideration the heterogeneity of each patient.12,13 Moreover, traditional insulin adjustment faces constraints as diabetes prevalence increases and specialized endocrinologists remain scarce.

Several digital technologies have emerged to support the management of glucose control, including dose calculations, insulin titration algorithms based on artificial intelligence (AI), and closed-loop insulin delivery systems.14 However, only a limited number of approaches consider the diverse and dynamic characteristics of T2D, and most of them are still in the preclinical simulation phase.15,16 In addition, current solutions were mainly designed for single insulin regimen,17,18 which limits their applications in patients with different treatments. Therefore, there is a critical need for a personalized insulin decision-making tool that is safe, effective, and broadly applicable for T2D.

Previous work19 developed an AI-based insulin clinical decision support system (iNCDSS) to optimize insulin treatment. Leveraging personalized algorithms, the iNCDSS outperformed other models and matched senior physicians’ performance in a retrospective dataset. After integrating this tool into clinical practice, a proof-of-concept trial demonstrated the feasibility of our tool in improving glucose control without increasing the risk of hypoglycemia.

This study assesses the efficacy and safety of iNCDSS in patients with T2D receiving insulin therapy in endocrinology wards. We hypothesized that iNCDSS would be noninferior to standard insulin therapy by senior endocrinology physicians in an inpatient setting.

Methods

Study Design

This trial was a multicenter, single-blind, parallel randomized clinical trial (RCT) that evaluated the efficacy and safety of iNCDSS in hospitalized patients with T2D. The trial was completed at 3 medical centers in China: Zhongshan Hospital, Xuhui Central Hospital, and Shanghai Fifth People’s Hospital. The study was approved by the ethical committees at each center. Each participant provided written informed consent. This study was reported in concordance with the Consolidated Standards of Reporting Trials (CONSORT) reporting guideline. The trial protocol can be found in Supplement 1.20

Participants

Between October 1, 2021, and September 8, 2022, a total of 305 individuals were screened. Eligible participants were adults (aged ≥18 years) diagnosed with T2D with glycated hemoglobin (HbA1c) levels between 7.0% and 11.0% (to convert to proportion of total hemoglobin, multiply by 0.01) who had been treated with diet, any combination of oral antidiabetic agents, and/or insulin therapy in the previous 3 months. These patients with poorly controlled T2D were admitted to endocrinology wards for glycemic control.

Key exclusion criteria were acute complications of diabetes; body mass index of 45 or greater (calculated as weight in kilograms divided by height in meters squared); pregnancy or breastfeeding; severe cardiac, hepatic, or kidney diseases; psychiatric or psychological diseases; severe edema, infections, or peripheral circulation disorders; and surgery during hospitalization. A full list of exclusion criteria is included in the trial protocol (Supplement 1).

Randomization and Masking

Eligible participants were randomly assigned (1:1) to the iNCDSS group or physician group using block randomization with varying block sizes of 4 to 6. Randomization was stratified by sites and baseline HbA1c values (<8.0% or ≥8.0%). The randomization sequence was generated by an independent qualified statistician. Treatment allocation was masked from participants and was concealed with sealed opaque envelopes.

Procedures

The trial consisted of screening, run-in, and randomized treatment phases (Figure 1). For each recruited participant, demographic and clinical characteristics were assessed for eligibility. After the screening, eligible participants entered a run-in phase during which all participants received insulin therapy for a whole day. The initiation or switch of insulin regimen, if needed, was determined by endocrinologists based on patients’ glycemic control and guidelines. All other antidiabetes medications were continued except sulfonylurea (eMethods in Supplement 2). For each patient, capillary glucose concentrations were measured before meals and bedtime using a glucometer (Glupad [Sino Medical Sciences Technology Inc]), and the glucose values were automatedly uploaded into the hospital information system for guiding insulin dosage.

Figure 1. CONSORT Diagram.

Figure 1.

CGM indicates continuous glucose monitoring; iNCDSS, insulin clinical decision support system.

aThe iNCDSS group had 74 participants with the primary outcome.

bThe physician group had 70 participants with the primary outcome.

Eligible participants were randomly assigned to the intervention or control group. Participants in the intervention group received insulin dosage titration based on the recommendations of the iNCDSS tool, whereas those in the control group received insulin dosage titration determined by senior physicians (Q.Y., L.W., and H.Y.), all of whom were board-certified attending physicians with more than 10 years of experience in endocrinology. Both groups were studied for 5 consecutive days.

The process in the intervention group administered by the iNCDSS has been described previously.19 The model was implemented into the clinical settings to build a workflow for insulin titration support, which could read in real time the patient information and provide insulin recommendations in the interface (eMethods in Supplement 2). The insulin titration recommendation covered 3 common subcutaneous insulin regimens (basal insulin only, biphasic or premixed insulin regimen, and basal-bolus regimen). After the warm-up of the first run-in day, the algorithm automatically read the insulin regimen and calculated an updated insulin regimen, providing precise insulin dosage recommendations for the subsequent 24 hours. These recommendations were subsequently reviewed and confirmed by the physicians during their daily morning rounds. Physicians’ adherence to and deviations from recommended insulin doses were recorded. Physicians who used the iNCDSS tool completed a questionnaire to evaluate their satisfaction with the tool (eMethods in Supplement 2). In the control group, insulin dosage was prescribed and titrated by senior physicians (Q.Y., L.W., and H.Y.) based on capillary blood glucose measurements and clinical information in accordance with clinical practice.

Throughout the intervention period, continuous glucose monitoring (CGM) was performed using flash glucose monitoring (Freestyle Libre [Abbott]) in both groups. Participants did not have access to CGM data, and physicians did not use CGM data to make any treatment decisions. The antidiabetic medications were not changed during the intervention period. Participants in both groups were provided standard meals at the usual mealtime. No restrictions were placed on consuming other meals and snacks or on usual activities.

Outcomes

The primary outcome was the proportion of time in the target glucose range (TIR; 70-180 mg/dL) measured by CGM during the 5-day intervention period. Secondary outcomes included the proportion of time in which the glucose level was above the target range (180-250 or >250 mg/dL) or below the target range (54-70 or <54 mg/dL), mean sensor glucose concentration, glucose management indicator, glucose variability (defined as the coefficient of variation of sensor glucose), mean premeal and prebed capillary glucose concentration, and the mean total daily insulin dose during the 5-day intervention period. Secondary outcomes were analyzed without predefined noninferiority margins and therefore were interpreted as exploratory. Daytime (8 am to midnight) and overnight (midnight to 8 am) results were calculated for a subset of outcomes (proportion of time in, below, or above the target glucose range, mean sensor glucose measurement, and the coefficient of variation in sensor glucose measurement, with the use of data from the respective periods) to limit multiple comparisons. Assessment of the satisfaction of physicians in the iNCDSS group was collected at the end of the study using a questionnaire with a 5-point Likert scale from 1 to 5, with 1 indicating very dissatisfied or disagree and 5 indicating very satisfied or agree (eMethods in Supplement 2). A full list of all secondary and other prespecified outcomes is in the protocol (Supplement 1). Safety outcomes include the incidence of clinically significant hypoglycemia (glucose <54 mg/dL), severe hypoglycemia (glucose <40 mg/dL or an episode that required the assistance of another person), and clinically significant hyperglycemia (glucose >360 mg/dL) or ketonemia, along with other adverse events and serious adverse events.

Statistical Analysis

We hypothesized that the use of the iNCDSS would not be inferior to senior physician recommendations of the TIR (70-180 mg/dL). According to previous studies,19,21,22 the mean (SD) TIR (70-180 mg/dL) was 80% (12%), and a noninferiority margin of 6 percentage points was chosen to assess the difference between the groups. We calculated a sample size of 142 participants (considering a dropout rate of approximately 10%) to achieve a power of 80% with an α = .025 (1-sided 95% CI).

In the RCT, we analyzed efficacy and safety data by intention to treat. This primary analysis included all randomized study participants, and participants were analyzed according to the treatment they were assigned. We also conducted a per-protocol analysis. The primary and secondary outcomes were compared with a linear mixed-effect regression model with treatment (iNCDSS and physician group) as the fixed effect, site as a random effect, and baseline HbA1c level as a covariate. The noninferiority hypothesis was tested for the primary outcome by estimating the difference in TIR of 70 to 180 mg/dL between the 2 groups, and the lower limit of the 95% CI of −6.0% was set as the noninferiority threshold. Additional analysis was performed with baseline insulin dosage as a covariate included in the linear mixed-effect regression models. Multiple imputation was also used to impute the missing data of the primary outcome to determine whether the result was consistent. We tabulated the numbers of events (safety outcome) that were related to a capillary glucose measurement of less than 54 mg/dL, less than 40 mg/dL, or more than 360 mg/dL and ketonemia in each group, and we compared the proportion of participants with events between the 2 groups with the Fisher exact test. We report values as means (SDs) or medians (IQRs) unless stated otherwise. All statistical analyses were performed using R version 4.3.2 (R Project for Statistical Computing) and SAS version 9.3 (SAS Institute). Data analysis was performed from November 2023 to March 2024.

Results

Study Participants

Of the 305 individuals screened, 149 were eligible and consented. The mean (SD) age of the study population was 64.2 (12.0) years, 65 (43.6%) were female, and 84 (56.4%) were male. Mean (SD) body mass index was 25.1 (3.9), and mean (SD) HbA1c level at enrollment was 9.0% (1.1%) (eTable 1 in Supplement 2). Of the 149 hospitalized participants, 75 were randomly assigned to the iNCDSS group and 74 to the physician group. Thirteen participants discontinued the study before completion: 7 from the iNCDSS group (6 due to earlier discharge and 1 due to CGM error) and 6 from the physician group (2 due to earlier discharge, 1 due to CGM error, and 3 due to CGM loss). Of these participants, 8 provided available CGM data for calculating the primary outcome (Figure 1). The primary analysis based on the intention-to-treat population included 75 participants in the iNCDSS group and 74 in the physician group. The demographics, baseline laboratory tests, disease conditions, and medication use of the 2 groups were similar (Table 1; eTable 2 in Supplement 2). The baseline characteristics by site are presented in eTable 3 in Supplement 2.

Table 1. Demographics and Baseline Characteristics of the Study Sample.

Characteristic No. (%) of participants
iNCDSS group (n = 75) Physician group (n = 74)
Sex
Male 45 (60.0) 39 (52.7)
Female 30 (40.0) 35 (47.3)
Age, mean (SD), y 63.4 (12.3) 65.0 (11.7)
BMI, mean (SD) 25.2 (4.1) 25.0 (3.7)
HbA1c, mean (SD), % 9.0 (1.1) 9.0 (1.0)
Duration of diabetes, mean (SD), y 13.1 (9.0) 15.9 (8.9)
Previous diabetes treatments
Diet alone 0 1 (1.4)
Oral agents 30 (40.0) 20 (27.0)
Insulin alone 5 (6.7) 7 (9.5)
Insulin plus oral agents 40 (53.3) 46 (62.2)

Abbreviations: BMI, body mass index (calculated as weight in kilograms divided by height in meters squared); HbA1c, glycated hemoglobin; iNCDSS, insulin clinical decision support system.

SI conversion factor: To convert HbA1c to proportion of total hemoglobin, multiply by 0.01.

Outcomes

The mean (SD) TIR (70-180 mg/dL [to convert to millimoles per liter, multiply by 0.0555]) was 76.4% (16.4%) in the iNCDSS group and 73.6% (16.8%) in the physician group. The lower bound of the 2-sided 95% CI for the difference in proportions between the 2 groups achieved the prespecified noninferiority criterion of −6% (difference, 2.7%; 95% CI, −2.7% to 8.0%; P = .33) (Table 2). Consistent results were observed in the per-protocol analysis, which included 68 participants in each group (eTables 4 and 5 in Supplement 2). Results of the linear mixed-effect regression model with baseline insulin dosage as a covariate and multiple imputation for handling missing data are provided in eTable 6 in Supplement 2.

Table 2. Glucose Control and Mean Daily Insulin Dose in the Randomized Clinical Trial.

iNCDSS group (n = 75) Physician group (n = 74) Estimated treatment difference (95% CI) P value
Time in which the glucose level is within range, mean (SD), %a
70-180 mg/dL 76.4 (16.4) 73.6 (16.8) 2.7 (−2.7 to 8.0) .33
181-250 mg/dL 15.7 (11.3) 18.2 (12.0) −2.5 (−6.3 to 1.3) .20
>250 mg/dL 4.0 (7.7) 4.2 (8.2) −0.2 (−2.8 to 2.4) .87
54-70 mg/dL 3.3 (4.4) 3.1 (5.0) 0.2 (−1.3 to 1.8) .77
<54 mg/dL 0.0 (0.0-0.4) 0.0 (0.0-0.6) −0.2 (−0.9 to 0.4) .52
Glucose, mean (SD), mg/dLa 139.9 (27.6) 144.4 (27.4) −4.5 (−13.5 to 4.4) .33
CV of glucose, mean (SD), %a 31.2 (7.0) 30.4 (6.8) 0.8 (−1.4 to 3.0) .49
GMI, mean (SD), %a 6.7 (0.7) 6.8 (0.7) −0.1 (−0.3 to 0.1) .33
Capillary glucose concentrations, mean (SD), mg/dL
Prebreakfast (5-8 am) 131.1 (28.0) 142.1(35.8) −10.9 (−21.0 to −0.8) .04
Prelunch (11 am-1 pm) 151.0 (47.8) 158.2 (46.9) −6.2 (−19.6 to 7.2) .37
Predinner (4-6 pm) 167.7 (45.3) 181.9 (47.3) −13.8 (−28.3 to 0.8) .07
Prebed (8-10 pm) 168.6 (49.1) 176.9 (48.3) −7.3 (−22.4 to 7.9) .35
Daily insulin dose, median (IQR), units 27.2 (20.0-34.4) 30.2 (22.8 to 42.6) −5.4 (−9.3 to −1.6) .01

Abbreviations: CV, coefficient of variation; GMI, glucose management indicator; iNCDSS, insulin clinical decision support system.

SI conversion factor: To convert glucose to millimoles per liter, multiply by 0.0555.

a

Participants who had available continuous glucose monitoring data were included in the analysis (74 participants in the iNCDSS group and 70 participants in the physician group).

The proportions of time in which the glucose level was above 250 mg/dL, within 180 to 250 mg/dL, within 54 to 70 mg/dL, or below 54 mg/dL as well as the coefficient of variation of glucose, glucose management indicator, and mean sensor glucose concentration, are given in Table 2. There were no statistically significant differences between the groups in these prespecified continuous glucose monitoring measurements. The 24-hour sensor glucose concentrations of the iNCDSS group and the physician group shown in Figure 2A indicate similar glucose fluctuations in both groups. In the iNCDSS group, the mean daily sensor glucose gradually decreased during the 5-day intervention period (Figure 2B). The mean (SD) prebreakfast capillary glucose in the iNCDSS group (131.1 [28.0] mg/dL) was significantly lower than that in the physician group (142.1 [35.8] mg/dL; P = .04), and the capillary glucose levels of prelunch (151.0 [47.8] in the iNCDSS group and 142.1 [35.8] mg/dL in the physician group; P = .04), predinner (167.7 [45.3] mg/dL in the iNCDSS group and 181.9 [47.3] mg/dL in the physician group; P = .07), and prebed (168.6 [49.1] mg/dL and 176.9 [48.3] mg/dL in the physician group; P = .35) were similar between the 2 groups (Table 2). The median (IQR) daily insulin dosage in the iNCDSS group was significantly lower (27.2 [20.0-35.5] units) compared with the physician group (30.2 [22.8-42.6] units; P = .01) (Table 2). However, when baseline insulin dosage was included in the model as a covariate, no significant difference of median daily insulin dosage was observed, suggesting that the observed between-group difference was primarily due to different baseline dosages rather than a reduction in adjustments by the iNCDSS (eTable 6 in Supplement 2).

Figure 2. Sensor Glucose Concentration During Intervention.

Figure 2.

A, Median sensor glucose concentrations. Solid orange line (orange shaded area) indicate median (IQR) sensor glucose concentration during use of the insulin clinical decision support system (iNCDSS); solid blue line (blue shaded area) indicate median (IQR) number of physician interventions. The brown shaded area indicates overlapping IQRs. The lower and upper limits of the target glucose concentration range of 70 to 180 mg/dL are denoted by the horizontal dashed lines. B, Mean sensor glucose concentration over time among participants who received iNCDSS (orange line) and senior physician (blue line) insulin recommendations. Error bars indicate standard error of the mean. To convert glucose to millimoles per liter, multiply by 0.0555.

Additionally, the TIR (70-180 mg/dL) was numerically higher in the iNCDSS intervention group compared with the physician group across different insulin regimens with no significant differences (basal insulin regimen: 78.6% [17.8%] vs 65.0% [40.2%]; premixed or biphasic insulin regimen: 74.7% [17.0%] vs 74.5% [14.9%]; basal bolus insulin regimen: 81.1% [9.7%] vs 73.3% [15.0%]) (eTable 7 in Supplement 2). Subgroup analyses were conducted in patients with or without prior insulin treatment as well as in patients with different levels of HbA1c. These findings demonstrated no statistically significant differences in glycemic control between the iNCDSS and physician groups across all these subgroups (eTables 8 and 9 in Supplement 2).

The proportion of time that overnight and daytime sensor glucose concentration was in the target range (70-180 mg/dL) was not significantly higher in the iNCDSS group vs the physician group (overnight: 84.9% [15.1%] vs 81.6% [17.9%]; difference, 3.3%; 95% CI, −2.0% to 8.6%; P = .23; daytime: 72.0% [20.6%] vs 69.6% [20.1%]; difference, 2.4%; 95% CI, −4.2% to 8.9%; P = .48). In addition, no significant differences were noted in mean sensor glucose, glucose management indicator, and glucose variability during daytime and overnight (eTable 10 in Supplement 2).

The numbers of adverse events are shown in Figure 3A and eTable 11 in Supplement 2. There were no differences in the number of patients with capillary glucose levels greater than 360 mg/dL or capillary glucose levels greater than 54 mg/dL between groups by capillary glucose measurements (Figure 3A). No episodes of severe hypoglycemia with glucose levels less than 40 mg/dL or ketoacidosis occurred in either group. One adverse event of subcutaneous bruise related to CGM wearing was observed in the iNCDSS group (eTable 11 in Supplement 2).

Figure 3. Adverse Events and Physicians’ Satisfaction.

Figure 3.

A, Proportion of patients with hyperglycemic (>360 mg/dL) or hypoglycemic (<54 mg/dL) episodes. The number of patients with adverse events are shown below the x-axis. There were no statistically significant differences between the insulin clinical decision support system (iNCDSS) group and the physician group. B, Mean scores on the postintervention evaluation of the iNCDSS during the treatment trial assessed by physicians (n = 10) using questionnaires (eMethods in Supplement 2). The satisfaction agreement was scored on a scale of 1 to 5, with 1 indicating very dissatisfied or disagree and 5 indicating very satisfied or agree. Error bars indicate SDs. AI indicates artificial intelligence. To convert glucose to millimoles per liter, multiply by 0.0555.

During the intervention, 752 of 760 iNCDSS recommendations (98.9%) were adopted by physicians. Satisfaction questionnaires were completed by 10 physicians at the bedside who used our system in the trial. Most physicians stated that the iNCDSS interface was clear (4.6 of 5.0), time-saving (4.2 of 5.0), effective (4.0 of 5.0), and safe (4.4 of 5.0) in clinical practice, with an overall satisfaction score of 4.1 of 5.0 using a 5-point Likert scale questionnaire (Figure 3B; eTable 12 in Supplement 2).

Discussion

In this RCT, our results suggest that the iNCDSS is effective and safe in hospitalized patients with T2D. The dynamic insulin titration by iNCDSS led to a progressive decrease in mean sensor glucose concentration during intervention, with the TIR (70-180 mg/dL) achieving the guideline-recommended target23 and being noninferior to endocrinologists. The safety of the iNCDSS was further supported by its numerically lower rates of hypoglycemia and hyperglycemia, with no reported severe glycemic events. Importantly, physicians widely accepted the iNCDSS’s advice, expressing satisfaction with its clear interface, effective and safe dosage recommendations, and the time it saved. These clinical outcomes, along with high physician adherence, demonstrated iNCDSS’s clinical utility. Subgroup analyses identified that the iNCDSS remained effective in participants across common subcutaneous insulin regimens, including once-daily basal, basal-bolus, and premixed regimens. Additionally, no significant between-group differences were observed in the insulin-experienced and insulin-naive subgroups.

Optimal insulin therapy is crucial for improving glycemic control and reducing complications for T2D. Despite the emergence of digital insulin-titration technologies, few are implemented in clinical practice. A rule-based glycemic management system for basal-bolus insulin titration (GlucoTab [decide Clinical Software GmbH]) has been used in hospitalized patients with T2D. A pilot, single-arm, intervention study24 showed that this system achieved a mean sensor glucose of 151.2 mg/dL during a 4- to 10-day intervention, but its generalization to other sites remains limited. The iNCDSS incorporated more patient-specific features into the advanced AI-based algorithm, generating personalized insulin recommendations. Moreover, it can be integrated into workflows of different hospitals according to standardized protocol, and our multicenter RCT demonstrated its efficacy in optimizing glycemic control with a mean TIR of 76.4% during 5-day intervention, comparable with endocrinologists. Besides basal-bolus regimens, the iNCDSS also supports premixed insulin titration, which is commonly used in outpatient settings. An AI-driven application designed for outpatient glycemic optimization (d-Nav [Hygieia LLC]) supports weekly insulin titration for T2D by assessing glucose readings and patterns. A study showed that d-Nav could assist health care professionals in insulin titration and lead to superior glycemic control compared with health care professionals alone in patients with T2D.25 However, its interval for insulin titration was 1 to 4 weeks, and there is no evidence of its ability to optimize blood glucose in the short term. The patients with uncontrolled T2D included in our study received real-time insulin titration and achieved the glucose target in a relatively short period, suggesting iNCDSS’s capacity for effective and timely insulin adjustments, which would greatly benefit patients needing rapid glycemic control, especially inpatients. Closed-loop insulin delivery systems, which continuously adjust insulin pumps based on CGM readings, were initially designed for type 1 diabetes.26 Although previous clinical trials have demonstrated its improvements in glucose control for T2D,27,28,29 its universal applicability is hindered by barriers such as patient acceptance, cost, and device complexity.30,31,32 The iNCDSS, which leverages point-of-care capillary blood glucose measurements and encompasses common subcutaneous insulin regimens, would be more suitable for patients with T2D in clinical practice.

The iNCDSS is an AI-driven tool that uses electronic health records incorporating typical characteristics of the general T2D population to output real-time and personalized insulin titration covering the most commonly used subcutaneous insulin regimens in T2D.19 Suboptimal glycemic control for inpatients with T2D often results in prolonged hospital stays and poor clinical outcomes,33 whereas the iNCDSS offers a pragmatic solution to optimal insulin titration. In our study, the iNCDSS showed noninferiority compared with endocrinologists in glycemic control optimization in hospitalized patients with uncontrolled T2D. The patients included in our study also presented with chronic comorbidities, indicating our system’s adaptability to general wards to facilitate optimized glycemic control. Moreover, physicians’ high adherence and positive feedback further underscore the system’s potential to alleviate clinical burden in general wards. Inpatient glycemic management is additionally complicated by acute illness and stress-induced hyperglycemia. Because the iNCDSS could provide dynamic and timely basal-bolus insulin adjustments, it may be applicable for managing hyperglycemia in acutely ill patients with pronounced glucose fluctuations, although further validation is needed. Furthermore, the iNCDSS’s ability to support precise and frequent insulin titration based on capillary blood glucose measurements is also critical for discharged patients, indicating its potential as a scalable solution for glucose management in outpatient settings with further algorithm update and hardware device integration.

Strengths and Limitations

There are many strengths of our study. We conducted an RCT to assess an AI-based clinical decision-making system that leverages high-quality electronic health record datasets and machine learning algorithms for real-time insulin dosage recommendations. Additionally, the performance of the iNCDSS demonstrates noninferiority compared with senior endocrinologists who represent the highest level of expertise in clinical practice, suggesting promise for addressing the need for optimization of glycemic control in patients with T2D. Furthermore, the integration of the iNCDSS into clinical workflows facilitates its ease of use in an inpatient setting, potentially accelerating its adoption for future widespread clinical applications. Furthermore, our multicenter study design allowed us to assess the safety and efficacy of the iNCDSS tool across different health care systems and patient populations. This supports the generalizability of our findings and further establishes the system’s potential for widespread use in managing T2D.

This study also has limitations. First, although our study is a multicenter RCT, all participating sites were Chinese hospitals, potentially limiting the generalizability of our findings to patients of other ethnicities. Second, the trial was conducted during a relatively short period, which may not reflect glycemic control over longer durations. Third, our study was conducted in specialized endocrinology wards, focusing on patients with uncontrolled T2D admitted primarily for optimization of glycemic control, and did not account for patients with stress-induced hyperglycemia, medical nutrition support, or corticosteroid treatment. Additional studies assessing the iNCDSS for a more extended period and broader clinical application scenarios are necessary to validate its efficacy and safety.

Conclusions

In this RCT of an AI-based iNCDSS, we developed a system that provided timely and personalized insulin dosage titration recommendations. The system demonstrated efficacy and safety in insulin dosage titration, showing noninferiority compared with the performance of senior physicians in treating hospitalized patients with T2D in specialized endocrinology wards. Additional studies are needed to evaluate the efficacy and safety of the iNCDSS in specific patient cohorts to facilitate its widespread adoption by health care systems.

Supplement 1.

Trial Protocol

Supplement 2.

eTable 1. Demographics and Baseline Characteristics of the Randomized Population, and Participants With/Without Primary Outcome

eTable 2. Demographics and Baseline Characteristics of the Randomized Population

eTable 3. Baseline Characteristics by Site

eTable 4. Demographics and Baseline Characteristics of the Per-Protocol Population

eTable 5. Glucose Control and Mean Daily Insulin Dose in the Per-protocol Population

eTable 6. Sensitivity Analyses

eTable 7. Insulin Regimens and Glucose Control

eTable 8. Prior History of Insulin Use and Glucose Control

eTable 9. Baseline HbA1c and Glucose Control

eTable 10. Main Outcomes During the Night (0000-0800 h) and Daytime (0800-0000h)

eTable 11. Safety Findings

eTable 12. Healthcare Professional Post-Intervention Survey Responses: Physicians Who Used the iNCDSS During the Study (n = 10)

eMethods.

Supplement 3.

Data Sharing Statement

References

  • 1.Sun H, Saeedi P, Karuranga S, et al. IDF Diabetes Atlas: global, regional and country-level diabetes prevalence estimates for 2021 and projections for 2045. Diabetes Res Clin Pract. 2022;183:109119. doi: 10.1016/j.diabres.2021.109119 [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 2.American Diabetes Association Professional Practice Committee . Pharmacologic approaches to glycemic treatment: standards of care in diabetes–2024. Diabetes Care. 2024;47(suppl 1):S158-S178. doi: 10.2337/dc24-S009 [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 3.Basu S, Yudkin JS, Kehlenbrink S, et al. Estimation of global insulin use for type 2 diabetes, 2018-30: a microsimulation analysis. Lancet Diabetes Endocrinol. 2019;7(1):25-33. doi: 10.1016/S2213-8587(18)30303-6 [DOI] [PubMed] [Google Scholar]
  • 4.Ji L, Zhang P, Weng J, et al. Observational Registry of Basal Insulin Treatment (ORBIT) in patients with type 2 diabetes uncontrolled by oral hypoglycemic agents in China–study design and baseline characteristics. Diabetes Technol Ther. 2015;17(10):735-744. doi: 10.1089/dia.2015.0054 [DOI] [PubMed] [Google Scholar]
  • 5.Aradóttir TB, Boiroux D, Bengtsson H, et al. Model predictive control for dose guidance in long acting insulin treatment of type 2 diabetes. IFAC J Syst Control. 2019;9:100067. doi: 10.1016/j.ifacsc.2019.100067 [DOI] [Google Scholar]
  • 6.Ross SA, Tildesley HD, Ashkenas J. Barriers to effective insulin treatment: the persistence of poor glycemic control in type 2 diabetes. Curr Med Res Opin. 2011;27(suppl 3):13-20. doi: 10.1185/03007995.2011.621416 [DOI] [PubMed] [Google Scholar]
  • 7.Karter AJ, Subramanian U, Saha C, et al. Barriers to insulin initiation: the Translating Research Into Action for Diabetes insulin starts project. Diabetes Care. 2010;33(4):733-735. doi: 10.2337/dc09-1184 [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 8.Okemah J, Peng J, Quiñones M. Addressing clinical inertia in type 2 diabetes mellitus: a review. Adv Ther. 2018;35(11):1735-1745. doi: 10.1007/s12325-018-0819-5 [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 9.Chan SP, Aamir AH, Bee YM, et al. Practical guidance on basal insulin initiation and titration in Asia: a Delphi-based consensus. Diabetes Ther. 2022;13(8):1511-1529. doi: 10.1007/s13300-022-01286-0 [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 10.Samson SL, Vellanki P, Blonde L, et al. American Association of Clinical Endocrinology Consensus Statement: comprehensive type 2 diabetes management algorithm - 2023 update. Endocr Pract. 2023;29(5):305-340. doi: 10.1016/j.eprac.2023.02.001 [DOI] [PubMed] [Google Scholar]
  • 11.Jain SM, Seshadri K, Unnikrishnan AG, et al. Best practices and tools for titrating basal insulins: expert opinion from an Indian panel via the modified Delphi consensus method. Diabetes Ther. 2020;11(3):621-632. doi: 10.1007/s13300-020-00770-9 [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 12.Nair ATN, Wesolowska-Andersen A, Brorsson C, et al. Heterogeneity in phenotype, disease progression and drug response in type 2 diabetes. Nat Med. 2022;28(5):982-988. doi: 10.1038/s41591-022-01790-7 [DOI] [PubMed] [Google Scholar]
  • 13.Cantrell RA, Alatorre CI, Davis EJ, et al. A review of treatment response in type 2 diabetes: assessing the role of patient heterogeneity. Diabetes Obes Metab. 2010;12(10):845-857. doi: 10.1111/j.1463-1326.2010.01248.x [DOI] [PubMed] [Google Scholar]
  • 14.Mackenzie SC, Sainsbury CAR, Wake DJ. Diabetes and artificial intelligence beyond the closed loop: a review of the landscape, promise and challenges. Diabetologia. 2024;67(2):223-235. doi: 10.1007/s00125-023-06038-8 [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 15.Wang Y, Fu H, Zeng D. Learning optimal personalized treatment rules in consideration of benefit and risk: with an application to treating type 2 diabetes patients with insulin therapies. J Am Stat Assoc. 2018;113(521):1-13. doi: 10.1080/01621459.2017.1303386 [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 16.Nguyen M, Jankovic I, Kalesinskas L, Baiocchi M, Chen JH. Machine learning for initial insulin estimation in hospitalized patients. J Am Med Inform Assoc. 2021;28(10):2212-2219. doi: 10.1093/jamia/ocab099 [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 17.Luo Y, Chang Y, Zhao Z, et al. Device-supported automated basal insulin titration in adults with type 2 diabetes: a systematic review and meta-analysis of randomized controlled trials. Lancet Reg Health West Pac. 2023;35:100746. doi: 10.1016/j.lanwpc.2023.100746 [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 18.Daly AB, Boughton CK, Nwokolo M, et al. Fully automated closed-loop insulin delivery in adults with type 2 diabetes: an open-label, single-center, randomized crossover trial. Nat Med. 2023;29(1):203-208. doi: 10.1038/s41591-022-02144-z [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 19.Chen Y, Chen Z, Zhao L, et al. Real-time artificial intelligence assisted insulin dosage titration system for glucose control in type 2 diabetic patients: a proof of concept study. Curr Med (Cham). 2023;2(1). doi: 10.1007/s44194-023-00020-7 [DOI] [Google Scholar]
  • 20.Schulz KF, Altman DG, Moher D; CONSORT Group . CONSORT 2010 statement: updated guidelines for reporting parallel group randomised trials. BMJ. 2010;340:c332. doi: 10.1136/bmj.c332 [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 21.Nimri R, Battelino T, Laffel LM, et al. ; NextDREAM Consortium . Insulin dose optimization using an automated artificial intelligence-based decision support system in youths with type 1 diabetes. Nat Med. 2020;26(9):1380-1384. doi: 10.1038/s41591-020-1045-7 [DOI] [PubMed] [Google Scholar]
  • 22.Aleppo G, Ruedy KJ, Riddlesworth TD, et al. ; REPLACE-BG Study Group . REPLACE-BG: a randomized trial comparing continuous glucose monitoring with and without routine blood glucose monitoring in adults with well-controlled type 1 diabetes. Diabetes Care. 2017;40(4):538-545. doi: 10.2337/dc16-2482 [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 23.Battelino T, Danne T, Bergenstal RM, et al. Clinical targets for continuous glucose monitoring data interpretation: recommendations from the international consensus on time in range. Diabetes Care. 2019;42(8):1593-1603. doi: 10.2337/dci19-0028 [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 24.Aberer F, Lichtenegger KM, Smajic E, et al. GlucoTab-guided insulin therapy using insulin glargine U300 enables glycaemic control with low risk of hypoglycaemia in hospitalized patients with type 2 diabetes. Diabetes Obes Metab. 2019;21(3):584-591. doi: 10.1111/dom.13559 [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 25.Bergenstal RM, Johnson M, Passi R, et al. Automated insulin dosing guidance to optimise insulin management in patients with type 2 diabetes: a multicentre, randomised controlled trial. Lancet. 2019;393(10176):1138-1148. doi: 10.1016/S0140-6736(19)30368-X [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 26.Lal RA, Ekhlaspour L, Hood K, Buckingham B. Realizing a closed-loop (artificial pancreas) system for the treatment of type 1 diabetes. Endocr Rev. 2019;40(6):1521-1546. doi: 10.1210/er.2018-00174 [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 27.Thabit H, Hartnell S, Allen JM, et al. Closed-loop insulin delivery in inpatients with type 2 diabetes: a randomised, parallel-group trial. Lancet Diabetes Endocrinol. 2017;5(2):117-124. doi: 10.1016/S2213-8587(16)30280-7 [DOI] [PubMed] [Google Scholar]
  • 28.Kumareswaran K, Thabit H, Leelarathna L, et al. Feasibility of closed-loop insulin delivery in type 2 diabetes: a randomized controlled study. Diabetes Care. 2014;37(5):1198-1203. doi: 10.2337/dc13-1030 [DOI] [PubMed] [Google Scholar]
  • 29.Bally L, Thabit H, Hartnell S, et al. Closed-loop insulin delivery for glycemic control in noncritical care. N Engl J Med. 2018;379(6):547-556. doi: 10.1056/NEJMoa1805233 [DOI] [PubMed] [Google Scholar]
  • 30.Pozzilli P, Battelino T, Danne T, Hovorka R, Jarosz-Chobot P, Renard E. Continuous subcutaneous insulin infusion in diabetes: patient populations, safety, efficacy, and pharmacoeconomics. Diabetes Metab Res Rev. 2016;32(1):21-39. doi: 10.1002/dmrr.2653 [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 31.Jendle J, Reznik Y. Use of insulin pumps and closed-loop systems among people living with diabetes: a narrative review of clinical and cost-effectiveness to enable access to technology and meet the needs of payers. Diabetes Obes Metab. 2023;25(suppl 2):21-32. doi: 10.1111/dom.15087 [DOI] [PubMed] [Google Scholar]
  • 32.McQueen RB, Ellis SL, Campbell JD, Nair KV, Sullivan PW. Cost-effectiveness of continuous glucose monitoring and intensive insulin therapy for type 1 diabetes. Cost Eff Resour Alloc. 2011;9:13. doi: 10.1186/1478-7547-9-13 [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 33.Demidowich AP, Stanback C, Zilbermint M. Inpatient diabetes management. Ann N Y Acad Sci. 2024;1538(1):5-20. doi: 10.1111/nyas.15190 [DOI] [PubMed] [Google Scholar]

Associated Data

This section collects any data citations, data availability statements, or supplementary materials included in this article.

Supplementary Materials

Supplement 1.

Trial Protocol

Supplement 2.

eTable 1. Demographics and Baseline Characteristics of the Randomized Population, and Participants With/Without Primary Outcome

eTable 2. Demographics and Baseline Characteristics of the Randomized Population

eTable 3. Baseline Characteristics by Site

eTable 4. Demographics and Baseline Characteristics of the Per-Protocol Population

eTable 5. Glucose Control and Mean Daily Insulin Dose in the Per-protocol Population

eTable 6. Sensitivity Analyses

eTable 7. Insulin Regimens and Glucose Control

eTable 8. Prior History of Insulin Use and Glucose Control

eTable 9. Baseline HbA1c and Glucose Control

eTable 10. Main Outcomes During the Night (0000-0800 h) and Daytime (0800-0000h)

eTable 11. Safety Findings

eTable 12. Healthcare Professional Post-Intervention Survey Responses: Physicians Who Used the iNCDSS During the Study (n = 10)

eMethods.

Supplement 3.

Data Sharing Statement


Articles from JAMA Network Open are provided here courtesy of American Medical Association

RESOURCES