News Research Predictive Risk Models Research and Evidence Precision Endocrinology

Post-transplant diabetes hard to predict

November 19, 2026 By Matthew Solan 4 min read
Share Share via Email Share on Facebook Share on LinkedIn Share on Twitter

A random forest model slightly outperformed standard logistic regression in predicting diabetes after solid organ transplantation, though both showed modest discrimination in all four organ groups, according to a study published in the Journal of the Endocrine Society.

The researchers evaluated post-transplant diabetes mellitus (PTDM) in 570,343 adults who received kidney, heart, liver, or lung transplants. Across all four organ groups, body mass index (BMI) “consistently emerged as a strong positive predictor of PTDM development,” the authors wrote.  

Model development and performance 

The retrospective cohort study used Scientific Registry of Transplant Recipients data from 2002 through 2023. It included US adults who received a kidney (360,562), liver (128,016), heart (45,505), or lung (36,260) transplant. The researchers excluded patients who received multiorgan transplants and assessed new diabetes diagnoses within 10 years of transplantation among patients without documented diabetes before transplant. PTDM developed in 15% of kidney, 18% of heart, 19% of liver, and 20% of lung transplant recipients. 

The researchers compared random forest models with logistic regression using demographic and clinical characteristics, laboratory values, and indicators of induction and maintenance immunosuppression. They randomly allocated 70% of the data to training and 30% to testing, tuning the models with fivefold cross-validation in the training set. They also evaluated two logistic regression variants, one with oversampling to address class imbalance and one with an adjusted classification threshold. 

In the test set, the area under the receiver operating characteristic curve (AUROC) for random forest was 0.62 in the liver and lung cohorts and 0.63 in the kidney and heart cohorts. For standard logistic regression, AUROC was 0.579 in the liver cohort, 0.608 in the lung cohort, and 0.615 in the kidney and heart cohorts. 

Random forest Brier scores ranged from 0.124 to 0.156, compared with 0.235 to 0.245 for logistic regression. 

Random forest sensitivity and specificity were 57% and 61%, respectively, in the kidney cohort and 58% and 60% in the liver cohort. The corresponding values were  43% and 77% in the heart cohort and 44% and 75% in the lung cohort. Adjusting the logistic regression threshold raised sensitivity to 88% to 90% in the kidney, lung, and heart cohorts, while specificity fell to 20% to 23%. 

Predictors varied by organ 

The researchers used SHapley Additive exPlanations (SHAP) to assess how each feature contributed to model predictions.  

Kidney. BMI and age were the strongest predictors in the random forest model. In both models, maintenance therapy with prednisone or cyclosporine was associated with higher predicted risk. 

Liver. Both models identified prednisone induction as the most influential predictor, associating it with lower predicted risk. In the random forest model, prednisone maintenance was associated with higher predicted risk, while mycophenolate mofetil maintenance was associated with lower predicted risk. 

Heart. Age was the strongest predictor in logistic regression, while BMI ranked first in the random forest model. In that model, maintenance therapy with cyclosporine or sirolimus was associated with higher predicted risk. 

Lung. Younger age was associated with higher predicted risk. In logistic regression, azathioprine maintenance was associated with higher predicted risk, while mycophenolate mofetil maintenance was associated with lower predicted risk. The random forest model associated prednisone induction with lower predicted risk and prednisone maintenance with higher predicted risk. 

The authors cautioned that the prednisone induction finding could partly reflect which maintenance drugs patients received. 

Limitations and clinical implications 

The registry lacked key predictors, including family history of diabetes, hemoglobin A1c, and fasting glucose. The models did not incorporate time-varying information such as laboratory trends, changes in immunosuppressive regimens or doses, rejection episodes, or infections. The authors excluded variables with more than 20% missing data and imputed missing values in retained variables. They did not report the extent of missingness by variable, limiting assessment of potential bias. The retrospective design precluded causal conclusions, and differences in transplant and screening practices could limit generalizability outside the US.  

The authors called for prospective external validation and suggested testing more complex machine learning models and incorporating time-varying predictors such as glucose trends and cumulative immunosuppression. They said the models may help identify higher-risk groups for closer monitoring. “Their utility lies primarily in risk stratification and hypothesis generation, rather than guiding individualized treatment,” the authors wrote. 

The authors reported no disclosures or conflicts of interest. 

AACE Endocrine AI is published by Conexiant under a license arrangement with the American Association of Clinical Endocrinology, Inc. (AACE®). The ideas and opinions expressed in AACE Endocrine AI do not necessarily reflect those of Conexiant or AACE. For more information, see Policies.

Related Content