Front Endocrinol (Lausanne). 2026 ;17
1761846
Objectives: This study aimed to develop and evaluate machine learning (ML) models for predicting non-alcoholic fatty liver disease (NAFLD) in patients with type 2 diabetes mellitus (T2DM) using readily accessible clinical and biochemical indicators.
Methods: A total of 2,459 patients with T2DM were enrolled in this cross-sectional study. Eight ML algorithms, logistic regression (LG), k-nearest neighbors (k-NN), support vector machine (SVM), decision tree (DT), random forest (RF), gradient boosting machine (GBM), extreme gradient boosting (XGBoost), and naïve Bayes (NB), were developed to construct predictive models. Feature selection was performed using Boruta, recursive feature elimination, and LASSO regression. Model performance was assessed using several metrics, including the area under the receiver operating characteristic curve (AUC), accuracy, recall, F1 score, and decision curve analysis.
Results: Among the study population, 1,309 individuals (53.23%) were diagnosed with NAFLD. Sixteen variables, including BMI, waist circumference, systolic blood pressure, triglycerides, HDL-C, ALT, GGT, bilirubin fractions, albumin, BUN, GFR, fasting insulin, RBC, and hemoglobin, were selected as key predictors. The SVM model demonstrated the best overall performance, achieving an AUC of 0.920, accuracy of 0.839, and specificity of 0.898 in the training set, and an AUC of 0.833 and accuracy of 0.733 in the validation set. Decision curve analysis confirmed superior clinical utility of the SVM model compared with other algorithms.
Conclusions: ML-based models, particularly the SVM algorithm, effectively predicted NAFLD among patients with T2DM using easily accessible clinical and biochemical indicators. These findings highlight the potential utility of ML-assisted screening tools for improving early identification and risk stratification of NAFLD in diabetic populations.
Keywords: clinical indicators; machine learning; non-alcoholic fatty liver disease; risk prediction; type 2 diabetes mellitus