{"title":"813-P: Machine Learning–Based Prediction Models for Initial Insulin Pump Dosing in Type 2 Diabetes Patients","authors":"MINGGUANG TANG, XIAOYI WANG, XI RONG","doi":"10.2337/db25-813-p","DOIUrl":null,"url":null,"abstract":"Introduction and Objective: Accurate initial insulin dosing is essential for optimal glycemic control in type 2 diabetes patients with insulin pumps. Traditional weight-based estimations lack precision due to the heterogeneity of type 2 diabetes, underscoring the need for advanced predictive approaches. This study developed machine learning models to enhance the accuracy of initial premeal and basal dose predictions. Methods: Data from 1,245 patients at the First Affiliated Hospital of Guangxi Medical University were used for model construction and internal validation, and 60 patients from Sun Yat-sen Memorial Hospital for external validation. Adults aged 18-79 years with type 2 diabetes who initiated insulin pump therapy were included, with data collected during the first 24 hours following admission. Patients with severe comorbidities, acute complications, or organ failure were excluded. A stacked ensemble framework combining random forest, XGBoost, GBM, SVM, and Bayesian regression was used. Model 1 predicts premeal insulin doses, and Model 2 basal doses based on Model 1’s outputs. Performance was evaluated using RMSE, MAE, and MAPE. Results: Model 1 achieved an RMSE of 1.10 IU, MAE of 0.79 IU, and MAPE of 19.10% for internal validation, and an RMSE of 1.21 IU, MAE of 0.88 IU, and MAPE of 17.83% for external validation. Model 2 achieved an RMSE of 2.31 IU, MAE of 1.80 IU, and MAPE of 18.66% for internal validation, and an RMSE of 3.89 IU, MAE of 3.21 IU, and MAPE of 23.47% for external validation. Compared to traditional methods, machine learning models significantly reduced RMSE, MAE, and MAPE in both premeal and basal dose predictions. The prediction models are available as a web-based calculator at https://rongxi.shinyapps.io/Pump/. Conclusion: The machine learning models accurately predict initial insulin pump dosing and outperform traditional methods, offering a practical tool for optimizing therapy in type 2 diabetes patients with insulin pump treatment. Disclosure M. Tang: None. X. Wang: None. X. Rong: None. Funding the Clinical Research 'Climbing' Program of the First Affiliated Hospital of Guangxi Medical University (YYZS2023010); Guangxi Medical University Student Innovation and Entrepreneurship Training Program Project (X202310598348 and S202410598192)","PeriodicalId":11376,"journal":{"name":"Diabetes","volume":"21 1","pages":""},"PeriodicalIF":7.5000,"publicationDate":"2025-06-13","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"","citationCount":"0","resultStr":null,"platform":"Semanticscholar","paperid":null,"PeriodicalName":"Diabetes","FirstCategoryId":"3","ListUrlMain":"https://doi.org/10.2337/db25-813-p","RegionNum":1,"RegionCategory":"医学","ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":null,"EPubDate":"","PubModel":"","JCR":"Q1","JCRName":"ENDOCRINOLOGY & METABOLISM","Score":null,"Total":0}
引用次数: 0
Abstract
Introduction and Objective: Accurate initial insulin dosing is essential for optimal glycemic control in type 2 diabetes patients with insulin pumps. Traditional weight-based estimations lack precision due to the heterogeneity of type 2 diabetes, underscoring the need for advanced predictive approaches. This study developed machine learning models to enhance the accuracy of initial premeal and basal dose predictions. Methods: Data from 1,245 patients at the First Affiliated Hospital of Guangxi Medical University were used for model construction and internal validation, and 60 patients from Sun Yat-sen Memorial Hospital for external validation. Adults aged 18-79 years with type 2 diabetes who initiated insulin pump therapy were included, with data collected during the first 24 hours following admission. Patients with severe comorbidities, acute complications, or organ failure were excluded. A stacked ensemble framework combining random forest, XGBoost, GBM, SVM, and Bayesian regression was used. Model 1 predicts premeal insulin doses, and Model 2 basal doses based on Model 1’s outputs. Performance was evaluated using RMSE, MAE, and MAPE. Results: Model 1 achieved an RMSE of 1.10 IU, MAE of 0.79 IU, and MAPE of 19.10% for internal validation, and an RMSE of 1.21 IU, MAE of 0.88 IU, and MAPE of 17.83% for external validation. Model 2 achieved an RMSE of 2.31 IU, MAE of 1.80 IU, and MAPE of 18.66% for internal validation, and an RMSE of 3.89 IU, MAE of 3.21 IU, and MAPE of 23.47% for external validation. Compared to traditional methods, machine learning models significantly reduced RMSE, MAE, and MAPE in both premeal and basal dose predictions. The prediction models are available as a web-based calculator at https://rongxi.shinyapps.io/Pump/. Conclusion: The machine learning models accurately predict initial insulin pump dosing and outperform traditional methods, offering a practical tool for optimizing therapy in type 2 diabetes patients with insulin pump treatment. Disclosure M. Tang: None. X. Wang: None. X. Rong: None. Funding the Clinical Research 'Climbing' Program of the First Affiliated Hospital of Guangxi Medical University (YYZS2023010); Guangxi Medical University Student Innovation and Entrepreneurship Training Program Project (X202310598348 and S202410598192)
期刊介绍:
Diabetes is a scientific journal that publishes original research exploring the physiological and pathophysiological aspects of diabetes mellitus. We encourage submissions of manuscripts pertaining to laboratory, animal, or human research, covering a wide range of topics. Our primary focus is on investigative reports investigating various aspects such as the development and progression of diabetes, along with its associated complications. We also welcome studies delving into normal and pathological pancreatic islet function and intermediary metabolism, as well as exploring the mechanisms of drug and hormone action from a pharmacological perspective. Additionally, we encourage submissions that delve into the biochemical and molecular aspects of both normal and abnormal biological processes.
However, it is important to note that we do not publish studies relating to diabetes education or the application of accepted therapeutic and diagnostic approaches to patients with diabetes mellitus. Our aim is to provide a platform for research that contributes to advancing our understanding of the underlying mechanisms and processes of diabetes.