Secondary relevance to vitamin D This paper mainly addresses another topic and also reports a vitamin D analysis, result or scientific synthesis.
This paper mainly addresses another topic and also reports a vitamin D analysis, result or scientific synthesis.
Why this paper is included
Supporting source evidence:
SHAP analysis revealed that age, ADL, waist circumference, HDL, and 25(OH)D contributed significantly to model predictions, with age being the most important predictive feature.
Source: Abstract. View original paper
Relevance classification does not establish study quality, causation or editorial approval.
Study design Cross-sectional study.
Cross-sectional study
Examines a population at a particular point in time.
Meta-analysis unclear · Blinding unclear / not reported · Human research reported
How this paper was classified
Automatic source-based classification; awaiting editorial verification. This is not a quality score.
A single-center cross-sectional study design was adopted, enrolling 378 patients with T2DM, who were divided into an SO group and a non-SO group based on SO diagnostic results.
Source: Abstract.
All participants were screened according to predefined inclusion and exclusion criteria.
Source: Methods.
What the study types mean
- Systematic review
- Uses explicit methods to identify, assess and summarise research on a defined question.
- Scoping review
- Maps the extent and characteristics of research on a topic.
- Narrative review
- Discusses existing research; systematic-review methods have not been established by this classification.
- Review / evidence synthesis
- Reviews existing research; the exact review methods need further assessment.
- Randomised controlled trial
- Assigns participants or groups to comparison interventions by chance.
- Non-randomised intervention study
- Examines an intervention without random allocation.
- Cohort study
- Examines exposures and outcomes over time within a defined group.
- Case-control study
- Compares people with an outcome against people without it, examining exposures.
- Cross-sectional study
- Examines a population at a particular point in time.
- Observational study
- Observes exposures and outcomes without assigning the exposure; the subtype is not established here.
- Case report
- Describes an individual case.
- Case series
- Describes a group of individual cases.
- Secondary analysis
- Analyses existing study data; this paper is not automatically another independent trial.
- Laboratory study
- Investigates biological processes in a laboratory setting.
- Qualitative study
- Examines experiences or meanings using qualitative methods.
- Genetic instrumental-variable study
- Uses genetic variation as an instrument to investigate relationships; this is not a randomised treatment trial.
- Study protocol
- Describes planned methods and is not evidence that the planned study has reported results.
- Multiple reported designs
- More than one design is explicitly reported; examine the supporting methods.
- Study design awaiting verification
- The available source does not establish a sufficiently clear study design.
Meta-analysis combines numerical results from studies. Blinding describes who was unaware of treatment allocation. Neither is a separate quality grade. Study design, vitamin D relevance and document format are independent filters.
Full studies
Development and internal validation of an interpretable machine learning-based risk stratification model for sarcopenic obesity in patients with type 2 diabetes mellitus
Cross-sectional study · Frontiers in Medicine · 2026
Original publication title
Development and internal validation of an interpretable machine learning-based risk stratification model for sarcopenic obesity in patients with type 2 diabetes mellitus
© 2026 Shi, Liu, Fu, Lu, Li, Zou, Zhong and Chen.
Original publication · Publisher record · CC BY 4.0
Source wording retained. Formatting, section navigation and display-title punctuation adapted for this research record.
At a glance
Abstract: What objectives does the paper state?
To analyze the factors associated with sarcopenic obesity (SO) in patients with type 2 diabetes (T2DM), and to develop and internally validate an SO risk stratification model based on interpretable machine learning, thereby providing guidance for the clinical screening of high-risk patients and the implementation of personalized risk assessment.
Source: ObjectiveStudy methods
What methods does the paper describe?
Study design and population
This study was a single-center, cross-sectional observational study that enrolled patients with T2DM who were hospitalized in the Endocrinology Department of Shenzhen Hospital (Futian) of Guangzhou University of Chinese Medicine between November 2025 and April 2026. All participants were screened according to predefined inclusion and exclusion criteria. Demographic data, medical history, laboratory results, physical examination findings, and relevant functional assessments were collected via the hospital's electronic medical record system and on-site evaluations to construct and validate a risk stratification model for SO in T2DM patients.
This study was approved by the Ethics Committee of Shenzhen Hospital (Futian) of Guangzhou University of Chinese Medicine (approval no. GZYLL(KY)-2025-147), and all participants provided written informed consent.
Inclusion and exclusion criteria
Participants were screened according to the following criteria:
- (1)
Inclusion criteria: ① age ≥ 18 years; ② diagnosis of T2DM according to the diagnostic criteria specified in the Chinese Guidelines for the Prevention and Treatment of Diabetes Mellitus (2024 Edition) (20);③have complete clinical data required for SO diagnosis, and voluntarily participate in the study and sign an informed consent form.
- (2)
Exclusion criteria: ①participants with severe cognitive impairment, dementia, or psychiatric disorders; ②diagnosed malignant tumors or severe heart, liver, kidney, or other major organ failure; ③diabetic ketoacidosis, hyperosmolar hyperglycemic state, severe infection, other acute diabetic complications, or other critical illnesses; ④contraindications to bioelectrical impedance analysis (BIA), such as implanted cardiac pacemakers or metallic implants; ⑤inability to cooperate with physical function tests due to limb dysfunction, severe osteoarticular disease, neuromuscular disorders, or other related conditions.
Candidate predictors and data collection
Based on a literature review, clinical experience, and the availability of variables, this study predefined candidate predictors of SO in patients with T2DM. All data were collected during the subjects’ hospital stays and primarily included demographic characteristics, disease-related factors, anthropometric measurements, and laboratory parameters.
- (1)
Demographic characteristics included age, gender, educational level, and marital status. Gender was categorized as male or female; educational level was categorized as primary school or below, junior high school, senior high school, and college or above; marital status was categorized as married or other.
- (2)
Disease-related factors included duration of diabetes, glycemic control regimen, diabetic peripheral neuropathy (DPN), history of smoking, history of alcohol consumption, history of falls, nutritional risk screening score, and Activities of Daily Living (ADL) score. Specifically, duration of diabetes was categorized as <5 years, 5–15 years, and >15 years; glucose-lowering regimens were categorized as oral glucose-lowering drugs only, insulin therapy only, combined oral glucose-lowering drugs and insulin therapy, and other regimens; DPN, history of smoking, history of alcohol consumption, and history of falls were all dichotomized as “yes” or “no.” Nutritional risk was assessed using the Nutritional Risk Screening 2002 (NRS-2002), and ADL was evaluated using the Barthel Index.
- (3)
Anthropometric measures included systolic blood pressure (SBP), diastolic blood pressure (DBP), body mass index (BMI), waist circumference, and calf circumference.
- (4)
Laboratory parameters included glycated hemoglobin (HbA1c), triglyceride-glucose index (TyG), total cholesterol (TC), high-density lipoprotein cholesterol (HDL), low-density lipoprotein cholesterol (LDL), 25-hydroxyvitamin D [25(OH)D], aspartate aminotransferase (AST), serum albumin (ALB), uric acid (UA), urine albumin-to-creatinine ratio (UACR), and neutrophil-to-lymphocyte ratio (NLR).
Primary outcome and diagnostic criteria
The primary outcome of this study was whether participants had SO. SO was defined as participants meeting the diagnostic criteria for both sarcopenia and obesity. Sarcopenia was diagnosed according to the 2019 Asian Working Group on Sarcopenia (AWGS) criteria (21): ①appendicular skeletal muscle mass index (ASMI) < 7.0 kg/m2 in men and <5.7 kg/m2 in women; ②handgrip strength <28 kg in men and <18 kg in women; ③five sit-to-stand tests taking ≥12 s. Sarcopenia is diagnosed when a patient meets criterion ① and either criterion ② or ③.
Obesity was defined according to body fat percentage, with cutoffs of ≥25% in men and ≥35% in women (22). ASMI was measured using a multi-frequency bioimpedance analyzer (AiNST-CNDS20, Jiangsu Kangai Nutrition Technology Co., Ltd., Taizhou, China). Before the assessment, participants were instructed to remove all metal accessories and take off their shoes and socks. Measurements were performed after fasting and resting, with participants standing steadily on the electrode plates and ensuring that all limbs were in full contact with the electrode areas.
Handgrip strength was measured using an electronic hand dynamometer (Xiangshan EH101, Guangdong Xiangshan Weighing Apparatus Co., Ltd., Zhongshan, China). Participants were assessed in a standing or seated position with both upper limbs naturally relaxed. Measurements were performed twice for each hand, and the maximum value was used for analysis.
Statistical analysis
This study used R version 4.5.1 for statistical analysis and model building. All random processes were initialized with a random seed of 123456. The main R packages and their versions are listed in Supplementary Table S1. Prior to performing multiple interpolation, variable selection, and model building, the study subjects were first randomly divided into a training set (265) and a validation set (113). The mice package was used for multiple interpolation, generating a total of 5 interpolated datasets, with each interpolation chain iterated 20 times.
The interpolation models were estimated based solely on the training set; the validation set was not used for parameter learning. Missing values in the validation set were imputed using the interpolation models established from the training set. Specific details regarding missing values are provided in Supplementary Table S2. Additionally, a sensitivity analysis was conducted using the full-case analysis to evaluate the robustness of the primary results. The normality of continuous variables was assessed using the Shapiro–Wilk test. Normally distributed variables are presented as mean ± standard deviation (x ± s) and were compared between groups using the independent-samples t-test.
Non-normally distributed variables are presented as median with interquartile range [M (P25, P75)] and were compared using the Mann–Whitney U test. Categorical variables are expressed as frequencies and percentages.
Variable selection and model parameter determination were both performed on the first interpolation training set; the validation set was not included in these processes. First, univariate analysis was conducted, and variables with P < 0.1 were selected as candidate variables for LASSO regression. Both multiple interpolation and univariate preselection were completed prior to 10-fold cross-validation and were not repeated within each cross-validation fold. Subsequently, LASSO regression was performed on the candidate variables, and 10-fold cross-validation was used to determine the optimal penalty parameter λ.
In each round of cross-validation, 9 folds of the data were used to refit the LASSO model, and the binomial bias was calculated using the remaining 1 fold of data. Finally, the optimal λ was determined based on the average 10-fold cross-validation error, and variables with non-zero coefficients were selected. The variables selected through LASSO regression were further incorporated into a multivariate logistic regression analysis. Variables with P < 0.05 were ultimately selected as the final predictors, and five risk stratification models were constructed: logistic regression, Random Forest, Support Vector Machine (SVM), Light Gradient Boosting Machine (LightGBM), and extreme gradient boosting (XGBoost).
For the SVM and LightGBM models, hyperparameters were optimized using grid search with 10-fold cross-validation. For each candidate hyperparameter combination, the model was refitted on nine folds and evaluated on the remaining fold using the AUC. The optimal combination was selected based on the mean AUC across the 10 folds. The number of boosting iterations for LightGBM was determined through the same cross-validation procedure. The random forest model used prespecified parameter settings, whereas XGBoost used prespecified parameters with early stopping applied within the training set.
The parameter search ranges and final settings for each model are presented in Supplementary Table S3. After hyperparameter selection, the final predictors and model parameters were fixed, and each model was refitted separately in each of the five imputed training datasets and applied to the corresponding imputed validation dataset. For logistic regression, the coefficients, standard errors, confidence intervals, and P values were pooled using Rubin's rules. For each model, the predicted probabilities obtained for each participant across the five imputed validation datasets were averaged, and the resulting mean probability was used as the final prediction.
The validation set was used solely for final model performance evaluation and was not involved in variable selection, parameter determination, or model fitting.
The discriminatory ability and classification performance of each model were evaluated using the area under the receiver operating characteristic curve (AUC), the area under the precision-recall curve (AUPRC), precision, recall, accuracy, and F1 score. The DeLong test was used to compare differences in AUC among the models. We comprehensively evaluated the models’ calibration performance using calibration curves, Brier scores, calibration slopes, calibration intercep, and calibration-in-the-large (CITL), and assessed their clinical net benefit through decision curve analysis (DCA). In addition, supplementary internal validation of the LightGBM model was performed in the first imputed training dataset using 1,000 bootstrap resamples to estimate optimism-corrected AUC, Brier score, and calibration measures.
SHapley Additive exPlanations (SHAP) analysis was subsequently used to characterize the contributions of individual predictors to the LightGBM model output and their potential nonlinear relationships with the model output.
Performance comparison of the five SO risk stratification models
Results: Performance comparison of the five SO risk stratification models
Based on the influencing factors identified through multivariate logistic regression, five SO risk stratification models, including logistic regression, random forest, SVM, LightGBM and XGBoost, were constructed and their performance evaluated on the validation set (Table 3). The ROC curves indicate that all five models demonstrate good discriminatory ability (Figure 2A). Among them, LightGBM achieved the numerically highest AUC in this sample, at 0.821 (95% CI: 0.744∼0.897), with an accuracy, sensitivity, precision, and F1 score of 0.752, 0.610, 0.676, and 0.641, respectively.
However, the DeLong test indicated that the differences in AUC between the models were not statistically significant (all P > 0.05); therefore, it cannot yet be concluded that LightGBM's discriminatory ability is significantly superior to that of the other models. Analysis of the PR curves showed that the AUPRC values for the five models ranged from 0.690 to 0.714, all of which were higher than the baseline level corresponding to the SO positive rate in the validation set. Among them, logistic regression achieved the highest point estimate for AUPRC (0.714), with LightGBM yielding a similar value (0.712) (Figure 2B).
Performance comparison of five SO risk stratification models in the validation set.
| Predictive model | AUROC(95%CI) | AUPRC | Accuracy | Recall rate | Precision | F1 Score |
|---|---|---|---|---|---|---|
| Logistic regression | 0.816 (0.738∼0.895) | 0.714 | 0.743 | 0.561 | 0.677 | 0.613 |
| Random forest | 0.810 (0.730∼0.890) | 0.693 | 0.708 | 0.561 | 0.605 | 0.582 |
| SVM | 0.812 (0.733∼0.891) | 0.703 | 0.726 | 0.561 | 0.639 | 0.597 |
| LightGBM | 0.821 (0.744∼0.897) | 0.712 | 0.752 | 0.610 | 0.676 | 0.641 |
| XGBoost | 0.806 (0.724∼0.888) | 0.690 | 0.735 | 0.561 | 0.657 | 0.605 |
(A) ROC Curves for Five SO Risk Stratification Models in the Validation Set. (B) PR Curves for Five SO Risk Stratification Models in the Validation Set.
Calibration and clinical utility of the five SO risk stratification models
Results: Calibration and clinical utility of the five SO risk stratification models
To evaluate the calibration performance and clinical applicability of the five risk stratification models, this study employed a comprehensive assessment using calibration curves, Brier scores, calibration slopes, calibration intercept, CITL and DCA. The calibration curves showed that the predicted probabilities of the five models were generally consistent with the observed probabilities, although some deviations were still evident in certain probability intervals (Figure 3). The Brier scores for the logistic regression, random forest, SVM, LightGBM, and XGBoost models were 0.172, 0.171, 0.171, 0.166, and 0.177, respectively, with LightGBM having the lowest score and XGBoost having a relatively higher score.
The calibration slopes of the five models were 0.818, 0.809, 0.878, 1.200, and 0.662, respectively. Logistic regression, Random Forest, SVM, and LightGBM were all relatively close to the ideal value of 1, while XGBoost deviated significantly, suggesting a notable over-dispersion in its predicted probabilities. The CITL values for each model ranged from −0.074 to 0.055, all of which were close to the ideal value of 0, indicating a small deviation between the predicted risk and the actual observed risk; the combined calibrated intercept and other specific metrics are shown in Table 4.
The DCA results show that, within a certain range of threshold probabilities, all five models can achieve a net benefit higher than that of the “all intervention” or “no intervention” strategies, suggesting their potential clinical value in assessing SO risk in patients with T2DM (Figure 4).
Calibration curves of the five SO risk stratification models in the validation set.
Evaluation of the calibration performance of five SO risk stratification models on the validation set.
| Predictive model | Brier Score | Calibration Slope | Calibration Intercept | CITL |
|---|---|---|---|---|
| Logistic regression | 0.172 | 0.818 | −0.114 | −0.052 |
| Random forest | 0.171 | 0.809 | −0.095 | −0.026 |
| SVM | 0.171 | 0.878 | −0.108 | −0.064 |
| LightGBM | 0.166 | 1.200 | 0.000 | −0.074 |
| XGBoost | 0.177 | 0.662 | −0.106 | 0.055 |
DCA curves of the five SO risk stratification models in the validation set.
Nomogram construction based on the logistic regression model and sensitivity analysis
Results: Nomogram construction based on the logistic regression model and sensitivity analysis
Given that the logistic regression model offers good discriminatory power, interpretability, and clinical feasibility, this study further developed a contour plot based on this model to visualize individual SO prediction probabilities and to aid in the risk stratification of SO in patients with T2DM (Figure 5). Additionally, to assess the impact of missing data handling methods on the primary outcomes, this study conducted a sensitivity analysis using complete-case data. The results showed that the direction of association between each predictive factor and SO was consistent with that of the primary analysis population.
The AUC of the logistic regression model based on complete-case data was 0.816, which was close to the AUC of the model after multiple imputation (0.795), with an absolute difference of 0.021, suggesting that the primary study results are reasonably robust to different methods of handling missing data.
Nomogram for SO risk stratification in patients with T2DM based on a logistic regression model.
Bootstrap internal validation of the LightGBM risk stratification model
Results: Bootstrap internal validation of the LightGBM risk stratification model
We conducted supplementary internal validation of the LightGBM model using 1,000 bootstrap resamples. The results showed that the model's apparent AUC was 0.953, with an average optimistic bias of 0.071; the AUC adjusted for optimistic bias was 0.882. The apparent Brier score was 0.093, and the corrected value was 0.143. After correction, the model's calibration slope, calibration intercept, and CITL were 0.668, −0.001, and 0.032, respectively. Overall, the LightGBM model maintained good discriminatory power after correction for optimism bias, and the deviation between the predicted and observed risks was small.
However, the calibration slope was lower than the ideal value of 1, suggesting that the predicted probabilities still exhibited a certain degree of over-dispersion.
Source: Bootstrap internal validation of the LightGBM risk stratification modelSHAP explanations for the LightGBM risk stratification model
Results: SHAP explanations for the LightGBM risk stratification model
This study employed the SHAP method to conduct an interpretability analysis of the LightGBM model, aiming to quantify the contribution of each predictor to the model output and characterize the direction of its contribution. The SHAP feature importance analysis showed that the importance of each variable to the model's predictions, ranked from highest to lowest, was age (0.518), ADL (0.393), waist circumference (0.372), HDL (0.248), and 25(OH)D (0.207). with age having the highest contribution value and thus being the most significant influencing factor in this model (Figure 6A).
The SHAP beeswarm plot indicates that older age and a larger waist circumference primarily drive an increase in the predicted risk, whilst higher levels of ADL, HDL and 25(OH)D tend to reduce the predicted risk (Figure 6B). The SHAP dependency plot further revealed that age and waist circumference exhibited a non-linear relationship with the model output; their SHAP values generally increased as variable levels rose, with particularly marked increases in the age range of approximately 55∼70 years and the waist circumference range of 85∼100 cm, before levelling off (Figure 6C).
Individual SHAP waterfall plots showed that the predicted probabilities for the two patients were 0.717 and 0.800, respectively. The magnitude and direction of the contributions of each predictor variable to the individual model output varied, providing a visual illustration of the process by which the LightGBM model generates individualised predictive results (Figure 6D).
SHAP-based interpretability analysis of the LightGBM model. (A) SHAP feature importance plot; (B) SHAP beeswarm plot; (C) SHAP dependence plots for age and waist circumference; (D) SHAP waterfall plots for individual predictions. Positive SHAP values indicate that the corresponding variable increases the model-predicted risk of SO, whereas negative SHAP values indicate that the variable decreases the predicted risk.
Discussion
Based on clinical data from hospitalised patients with T2DM, this study utilised traditional statistical methods and machine learning algorithms to construct a risk stratification model for SO and conducted a comprehensive evaluation of the model's performance. The results showed that the detection rate of SO was 36.2 per cent, which is higher than the overall prevalence reported in previous meta-analyses for diabetic patients (approximately 27 per cent) (6) and the recent detection rate in a Thai cohort of T2DM patients (16.4 per cent) (23); this may be related to differences in the source of the study population, the complexity of the disease, the age structure, and the diagnostic criteria for SO.
Previous SO-related models have mostly been based on community settings, care homes or the general elderly population, with included variables largely centred on BMI, body circumference and muscle function indicators; some models also incorporated variables closely related to SO diagnosis, such as body fat percentage and grip strength. Furthermore, heterogeneity in study populations, diagnostic criteria and validation strategies has limited direct comparisons between models (24–26). In contrast, this study focuses on hospitalised patients with T2DM and constructs a risk stratification model based on routinely available clinical variables, including age, ADL, waist circumference, HDL, and 25(OH)D,which are not directly involved in the diagnosis of SO.
Its discriminatory ability is broadly comparable to that reported in previous studies, thereby further expanding the application of SO risk stratification within this specific population of T2DM patients.
SHAP analysis revealed that age is the most significant predictor of SO in patients with T2DM, which is consistent with the findings of previous studies indicating that the prevalence of SO increases with age (27, 28). With advancing age, skeletal muscle mass, muscle strength and physical function gradually decline, whilst visceral and intramuscular fat accumulation increases; this process may involve mechanisms such as reduced muscle protein synthesis, mitochondrial dysfunction, chronic inflammation and fatty infiltration (29–31).
The persistent insulin resistance and disturbances in glucose and lipid metabolism in patients with T2DM may further exacerbate these age-related changes (32). It is worth noting that the contribution of age to the model's output does not increase uniformly, but is more pronounced during the transition from middle to old age. This non-linear characteristic may reflect the gradual accumulation of adverse factors such as muscle decline, fat redistribution and metabolic imbalances with age, making the contribution of age to SO risk stratification more prominent during this phase.
The subsequent flattening of the SHAP curve does not imply that the association between advanced age and SO has disappeared; rather, it may indicate that, once other predictive factors are incorporated, the marginal contribution of age itself to the model's output gradually diminishes. Therefore, age should be regarded more as continuous risk stratification information, rather than being simply categorised into specific age thresholds based on the dependency plot.
This study found that waist circumference is a risk factor for the development of SO in patients with T2DM. Compared with BMI, waist circumference provides a more direct reflection of abdominal obesity and central fat accumulation, and offers certain advantages in assessing body composition abnormalities associated with metabolic syndrome (33). Previous studies have shown (34) that the prevalence of SO increases with increasing waist circumference. The underlying mechanism may be related to visceral fat accumulation; excessive visceral fat can impair skeletal muscle metabolism and function through pathways such as the release of free fatty acids, chronic inflammation and insulin resistance (35).
The SHAP dependency plot further reveals that the relationship between waist circumference and the model output is also non-linear; its contribution increases more markedly within the range of approximately 85∼100 cm, after which it flattens out, indicating that the information provided by different waist circumference intervals for distinguishing SO status does not increase proportionally. A recent Chinese cohort study of older adults also observed a non-linear association between indicators of abdominal obesity and SO, providing some support for the non-linear characteristics revealed by the SHAP analysis in this study (36).
Therefore, as a simple and readily available anthropometric measure, waist circumference can serve as a reference for SO risk stratification and subsequent standardised assessment in patients with T2DM.
ADL is negatively associated with SO in patients with T2DM; indicating that a higher Barthel Index score was associated with a lower risk of SO, which is consistent with previous findings (37). The Barthel Index reflects a patient's ability to perform basic activities of daily living; a lower score typically indicates limited mobility, reduced functional reserve, or increased dependence in daily living. Previous studies have shown (31) that a decline in ADL function reduces skeletal muscle workload, leading to insufficient muscle protein synthesis and increased catabolism, which in turn causes a sustained decline in muscle mass and strength.
In addition, patients with T2DM often present with protein metabolism disorders, vascular dysfunction, and mitochondrial dysfunction, which further exacerbate structural and functional damage to skeletal muscle (38). SHAP analysis also revealed that higher ADL levels were the primary predictor of reduced SO risk in the model, consistent with the results of the regression analysis. Given the cross-sectional design of this study, the temporal sequence between ADL decline and SO remains undetermined; however, the Barthel Index, as a simple indicator of functional status, can serve as a reference for risk stratification and follow-up assessment of SO in patients with T2DM.
The results of this study show that, in patients with T2DM, higher HDL levels are associated with a lower risk of SO. HDL plays a role in reverse cholesterol transport, as well as anti-inflammatory and antioxidant effects, which help alleviate chronic inflammation and improve insulin resistance (39, 40). Previous studies have confirmed (41) that reduced HDL levels are often accompanied by insulin resistance and abnormalities in the atherogenic lipoprotein profile, suggesting that they may reflect impaired lipid metabolism and overall metabolic homeostasis in patients with T2DM.
Such metabolic disturbances have also been associated with reduced skeletal muscle mass and strength, as well as abnormal fat accumulation. Therefore, HDL not only reflects the status of lipid metabolism but also, to a certain extent, reflects the overall metabolic health of patients with T2DM. Future prospective and interventional studies are warranted to further evaluate the effects of lifestyle interventions, such as regular physical activity, weight management, and dietary optimization, on lipid metabolism and SO-related outcomes.
It is worth noting that this study also found that higher levels of 25(OH)D are associated with a lower risk of SO. 25(OH)D is the primary indicator of vitamin D nutritional status in the body; in addition to playing a role in calcium and phosphorus metabolism and maintaining bone health, it can also influence muscle health by regulating skeletal muscle metabolism and function (42). Previous studies have shown that lower 25(OH)D levels are closely associated with decreased muscle strength, impaired physical function, and an increased risk of SO; the underlying mechanisms may be related to how vitamin D deficiency affects muscle protein synthesis, myocyte differentiation, calcium homeostasis, and muscle fat infiltration (43).
Vitamin D insufficiency is relatively common among patients with T2DM, particularly among elderly inpatients. Prolonged low 25(OH)D levels can further exacerbate skeletal muscle loss and abnormal fat accumulation, thereby increasing the risk of SO (4, 32). Therefore, 25(OH)D can serve as a nutritional and metabolic reference indicator for identifying current SOD status in patients with T2DM.
This study developed and compared five SO risk stratification models. Although LightGBM achieved the highest numerical performance among the evaluated models, the differences in AUC among the models were not statistically significant. Considering both overall discriminatory ability and interpretability, this study ultimately used a logistic regression model to generate a nomogram. This tool is primarily intended for endocrinologists, diabetes nurse specialists, and relevant nutrition and rehabilitation professionals. It can be used to perform preliminary SO risk stratification for hospitalized T2DM patients based on routine clinical information such as age, ADL, waist circumference, HDL, and 25(OH)D.
For patients with a high predicted risk, standardized assessments, such as grip strength, the five-sit-to-stand test, and body composition measurements can be prioritized. This model is intended to assist in risk stratification and the identification of patients requiring further evaluation; it is not a substitute for the standardized diagnosis of SO. Although the DCA suggests that the model has potential clinical net benefit within a certain probability threshold range, the appropriate risk threshold and actual clinical effectiveness still need to be evaluated through multicenter external validation and prospective studies.
This study has the following limitations. First, as a cross-sectional study, the predictor variables and SO status were measured at the same time point, making it impossible to clearly determine the temporal sequence and causal relationships between the various influencing factors and SO; the relevant conclusions still need to be validated through prospective studies. Second, the sample size of this study is relatively limited, and all participants were inpatients with T2DM from a single tertiary hospital in China. The severity of their disease, burden of comorbidities, and treatment status may differ from those of outpatient and community populations; consequently, the study results may be influenced by selection bias and differences in the disease spectrum, resulting in relatively limited representativeness of the sample.
Furthermore, this study has currently only completed internal validation and lacks external validation from independent cohorts at other hospitals or in other regions; the model's generalizability and practical applicability across different clinical settings and populations remain uncertain. Finally, the predictors in this study were primarily derived from routine clinical data; potential confounding factors such as inflammatory markers, dietary intake, physical activity, medication use, and intramuscular fat infiltration were not systematically included. This may have led to residual confounding and the omission of information with incremental value, thereby limiting the model's performance to some extent.
Future studies should conduct external validation using multicenter, independent cohorts and optimize the model by incorporating longitudinal follow-up and more comprehensive clinical, lifestyle, and imaging indicators to evaluate its generalizability and clinical utility.
Source: Discussion Source: Discussion Source: Discussion Source: Discussion Source: Discussion Source: Discussion Source: Discussion Source: Discussion Source: DiscussionResults
Baseline characteristics of the study population
This study included a total of 378 patients with T2DM, comprising 137 patients in the SO group and 241 in the non-SO group, with an SO detection rate of 36.2%. The median age of the study participants was 61.0 (52.0, 68.0) years; 218 were male (57.7%) and 160 were female (42.3%). Univariate analysis revealed that, compared with the non-SO group, patients in the SO group were older, had lower educational attainment, had a longer duration of diabetes, and were more likely to receive insulin or combination therapy (all P < 0.05).
Additionally, statistically significant differences were observed between the two groups in terms of ADL, NRS-2002 scores, 25(OH)D levels, and ALB levels (all P < 0.05). However, no statistically significant differences were observed between the two groups regarding gender, smoking history, alcohol consumption history, calf circumference, TyG, and HbA1c (all P > 0.05). The baseline characteristics of the study population are presented in Table 1.
Baseline characteristics of the study population.
| Variable | Total(378) | Non-SO(241) | SO(137) | P |
|---|---|---|---|---|
| Age, years | 61.00 [52.00, 68.00] | 56.00 [49.00, 64.00] | 68.00 [62.00, 73.00] | <0.001 |
| Gender, n(%) | 0.16 | |||
| Male | 218 (57.7) | 132 (54.8) | 86 (62.8) | |
| Female | 160 (42.3) | 109 (45.2) | 51 (37.2) | |
| Education level, n(%) | <0.001 | |||
| Primary school or below | 34 (9.0) | 18 (7.5) | 16 (11.7) | |
| Junior high school | 71 (18.8) | 35 (14.5) | 36 (26.3) | |
| Senior high school | 106 (28.0) | 62 (25.7) | 44 (32.1) | |
| College or above | 167 (44.2) | 126 (52.3) | 41 (29.9) | |
| Marital status, n(%) | 0.664 | |||
| Married | 336 (88.9) | 216 (89.6) | 120 (87.6) | |
| Other | 42 (11.1) | 25 (10.4) | 17 (12.4) | |
| Duration of diabetes, years, n(%) | <0.001 | |||
| <5 | 119 (31.5) | 91 (37.8) | 28 (20.4) | |
| 5–15 | 164 (43.4) | 107 (44.4) | 57 (41.6) | |
| >15 | 95 (25.1) | 43 (17.8) | 52 (38.0) | |
| Glycemic control regimen, n(%) | 0.021 | |||
| Oral glucose-lowering drugs | 181 (47.9) | 125 (51.9) | 56 (40.9) | |
| Insulin therapy | 9 (2.4) | 7 (2.9) | 2 (1.5) | |
| Combination therapy | 163 (43.1) | 90 (37.3) | 73 (53.3) | |
| Other | 25 (6.6) | 19 (7.9) | 6 (4.4) | |
| DPN, n(%) | 0.017 | |||
| Yes | 119 (31.5) | 65 (27.0) | 54 (39.4) | |
| No | 259 (68.5) | 176 (73.0) | 83 (60.6) | |
| Smoking, n(%) | 0.467 | |||
| Yes | 98 (25.9) | 59 (24.5) | 39 (28.5) | |
| No | 280 (74.1) | 182 (75.5) | 98 (71.5) | |
| Alcohol, n(%) | 0.449 | |||
| Yes | 95 (25.1) | 57 (23.7) | 38 (27.7) | |
| No | 283 (74.9) | 184 (76.3) | 99 (72.3) | |
| Falls, n(%) | 0.03 | |||
| Yes | 164 (43.4) | 94 (39.0) | 70 (51.1) | |
| No | 214 (56.6) | 147 (61.0) | 67 (48.9) | |
| NRS-2002 | 1.00 [1.00, 2.00] | 1.00 [1.00, 2.00] | 2.00 [1.00, 2.00] | <0.001 |
| ADL | 95.00 [90.00, 100.00] | 100.00 [95.00, 100.00] | 90.00 [85.00, 95.00] | <0.001 |
| SBP, mmHg | 128.00 [117.25, 141.00] | 126.00 [116.00, 138.00] | 131.00 [119.00, 144.00] | 0.006 |
| DBP, mmHg | 79.00 [72.00, 87.00] | 80.00 [72.00, 88.00] | 78.00 [72.00, 85.00] | 0.03 |
| BMI, kg/m2 | 25.38 [23.03, 27.78] | 25.14 [22.46, 27.77] | 25.76 [23.94, 27.94] | 0.059 |
| Waist circumference, cm | 94.00 [86.00, 100.00] | 91.00 [84.80, 98.00] | 96.00 [91.00, 100.00] | <0.001 |
| Calf circumference, cm | 35.50 [33.00, 37.58] | 35.80 [32.90, 37.80] | 35.30 [33.00, 37.10] | 0.693 |
| HbA1c, % | 7.70 [6.70, 9.57] | 7.70 [6.70, 9.50] | 8.10 [7.10, 9.90] | 0.153 |
| TyG | 1.66 [1.24, 2.25] | 1.68 [1.27, 2.22] | 1.63 [1.23, 2.27] | 0.617 |
| TC, mmol/L | 4.66 [3.71, 5.70] | 4.89 [3.96, 5.89] | 4.27 [3.46, 5.43] | 0.001 |
| HDL, mmol/L | 1.09 [0.91, 1.33] | 1.13 [0.96, 1.37] | 1.00 [0.87, 1.19] | <0.001 |
| LDL, mmol/L | 2.47 [1.84, 3.36] | 2.59 [1.96, 3.41] | 2.32 [1.77, 3.19] | 0.048 |
| 25(OH)D, nmol/L | 21.35 [15.72, 25.70] | 22.00 [17.50, 26.60] | 20.30 [14.90, 24.60] | 0.010 |
| AST, U/L | 20.20 [16.70, 27.05] | 20.30 [16.60, 28.60] | 20.10 [17.10, 25.20] | 0.785 |
| ALB, g/L | 42.51 ± 4.49 | 43.20 ± 4.36 | 41.29 ± 4.46 | <0.001 |
| UA, μmol/L | 357.00 [287.25, 410.75] | 359.00 [283.00, 416.00] | 356.00 [298.00, 405.00] | 0.496 |
| UACR, mg/mmol | 0.96 [0.40, 2.81] | 0.95 [0.39, 2.32] | 1.28 [0.44, 5.59] | 0.065 |
| NLR | 0.98 [0.53, 1.59] | 0.99 [0.55, 1.67] | 0.97 [0.53, 1.51] | 0.381 |
Feature selection using LASSO regression
Based on the predefined variable selection criteria, variables with P < 0.1 from the univariate analysis were included in the LASSO regression analysis to further identify candidate predictors of SO in patients with T2DM. The LASSO regression coefficient path plot showed that as the regularization parameter λ varied, the regression coefficients of each variable gradually shrank, with some coefficients eventually shrinking to 0 (Figure 1A). Ten-fold cross-validation was used to determine the optimal penalty parameter λ. The results showed that λ_min, corresponding to the minimum cross-validation error, was 0.0168, with log(λ_min) = −4.089 (Figure 1B).
At this λ value, a total of seven variables with non-zero coefficients were identified, including age, educational level, waist circumference, ADL, HDL, 25(OH)D, and UACR. Among these, age, certain educational level strata, waist circumference, and UACR had positive regression coefficients, suggesting that these factors may be associated with an increased risk of SO; conversely, ADL, HDL, and 25(OH)D had negative regression coefficients, suggesting that higher levels of these factors may be associated with a reduced risk of SO.
Selection of candidate predictors of SO in patients with T2DM using LASSO regression. (A) LASSO coefficient profile; (B) Cross-validation curve for LASSO regression.
Multivariable logistic regression analysis
The occurrence of SO in patients with T2DM was used as the dependent variable, we included the seven candidate predictor variables identified by LASSO regression as independent variables in a multivariate logistic regression analysis. The results showed that age, waist circumference, ADL, HDL, and 25(OH)D were significant predictors of the risk of SO in patients with T2DM (all P < 0.05). The results of the multivariate logistic regression analysis are presented in Table 2.
Results of the multivariable logistic regression analysis.
| Variable | OR | 95%CI | P |
|---|---|---|---|
| Age, years | 1.078 | 1.034~1.126 | <0.001 |
| ADL | 0.911 | 0.847~0.975 | 0.009 |
| Waist circumference, cm | 1.062 | 1.031–1.096 | <0.001 |
| HDL, mmol/L | 0.143 | 0.042~0.447 | 0.001 |
| 25(OH)D, nmol/L | 0.931 | 0.887~0.973 | 0.002 |
| UACR, mg/mmol | 1.012 | 0.998~1.027 | 0.094 |
| Education level, n (%) | |||
| Primary school or below | Reference | ||
| Junior high school | 3.501 | 0.825~15.581 | 0.092 |
| Senior high school | 2.366 | 0.575~10.132 | 0.236 |
| College or above | 1.339 | 0.328~5.659 | 0.686 |
Performance comparison of the five SO risk stratification models
Based on the influencing factors identified through multivariate logistic regression, five SO risk stratification models, including logistic regression, random forest, SVM, LightGBM and XGBoost, were constructed and their performance evaluated on the validation set (Table 3). The ROC curves indicate that all five models demonstrate good discriminatory ability (Figure 2A). Among them, LightGBM achieved the numerically highest AUC in this sample, at 0.821 (95% CI: 0.744∼0.897), with an accuracy, sensitivity, precision, and F1 score of 0.752, 0.610, 0.676, and 0.641, respectively.
However, the DeLong test indicated that the differences in AUC between the models were not statistically significant (all P > 0.05); therefore, it cannot yet be concluded that LightGBM's discriminatory ability is significantly superior to that of the other models. Analysis of the PR curves showed that the AUPRC values for the five models ranged from 0.690 to 0.714, all of which were higher than the baseline level corresponding to the SO positive rate in the validation set. Among them, logistic regression achieved the highest point estimate for AUPRC (0.714), with LightGBM yielding a similar value (0.712) (Figure 2B).
Performance comparison of five SO risk stratification models in the validation set.
| Predictive model | AUROC(95%CI) | AUPRC | Accuracy | Recall rate | Precision | F1 Score |
|---|---|---|---|---|---|---|
| Logistic regression | 0.816 (0.738∼0.895) | 0.714 | 0.743 | 0.561 | 0.677 | 0.613 |
| Random forest | 0.810 (0.730∼0.890) | 0.693 | 0.708 | 0.561 | 0.605 | 0.582 |
| SVM | 0.812 (0.733∼0.891) | 0.703 | 0.726 | 0.561 | 0.639 | 0.597 |
| LightGBM | 0.821 (0.744∼0.897) | 0.712 | 0.752 | 0.610 | 0.676 | 0.641 |
| XGBoost | 0.806 (0.724∼0.888) | 0.690 | 0.735 | 0.561 | 0.657 | 0.605 |
(A) ROC Curves for Five SO Risk Stratification Models in the Validation Set. (B) PR Curves for Five SO Risk Stratification Models in the Validation Set.
Calibration and clinical utility of the five SO risk stratification models
To evaluate the calibration performance and clinical applicability of the five risk stratification models, this study employed a comprehensive assessment using calibration curves, Brier scores, calibration slopes, calibration intercept, CITL and DCA. The calibration curves showed that the predicted probabilities of the five models were generally consistent with the observed probabilities, although some deviations were still evident in certain probability intervals (Figure 3). The Brier scores for the logistic regression, random forest, SVM, LightGBM, and XGBoost models were 0.172, 0.171, 0.171, 0.166, and 0.177, respectively, with LightGBM having the lowest score and XGBoost having a relatively higher score.
The calibration slopes of the five models were 0.818, 0.809, 0.878, 1.200, and 0.662, respectively. Logistic regression, Random Forest, SVM, and LightGBM were all relatively close to the ideal value of 1, while XGBoost deviated significantly, suggesting a notable over-dispersion in its predicted probabilities. The CITL values for each model ranged from −0.074 to 0.055, all of which were close to the ideal value of 0, indicating a small deviation between the predicted risk and the actual observed risk; the combined calibrated intercept and other specific metrics are shown in Table 4.
The DCA results show that, within a certain range of threshold probabilities, all five models can achieve a net benefit higher than that of the “all intervention” or “no intervention” strategies, suggesting their potential clinical value in assessing SO risk in patients with T2DM (Figure 4).
Calibration curves of the five SO risk stratification models in the validation set.
Evaluation of the calibration performance of five SO risk stratification models on the validation set.
| Predictive model | Brier Score | Calibration Slope | Calibration Intercept | CITL |
|---|---|---|---|---|
| Logistic regression | 0.172 | 0.818 | −0.114 | −0.052 |
| Random forest | 0.171 | 0.809 | −0.095 | −0.026 |
| SVM | 0.171 | 0.878 | −0.108 | −0.064 |
| LightGBM | 0.166 | 1.200 | 0.000 | −0.074 |
| XGBoost | 0.177 | 0.662 | −0.106 | 0.055 |
DCA curves of the five SO risk stratification models in the validation set.
Nomogram construction based on the logistic regression model and sensitivity analysis
Given that the logistic regression model offers good discriminatory power, interpretability, and clinical feasibility, this study further developed a contour plot based on this model to visualize individual SO prediction probabilities and to aid in the risk stratification of SO in patients with T2DM (Figure 5). Additionally, to assess the impact of missing data handling methods on the primary outcomes, this study conducted a sensitivity analysis using complete-case data. The results showed that the direction of association between each predictive factor and SO was consistent with that of the primary analysis population.
The AUC of the logistic regression model based on complete-case data was 0.816, which was close to the AUC of the model after multiple imputation (0.795), with an absolute difference of 0.021, suggesting that the primary study results are reasonably robust to different methods of handling missing data.
Nomogram for SO risk stratification in patients with T2DM based on a logistic regression model.
Bootstrap internal validation of the LightGBM risk stratification model
We conducted supplementary internal validation of the LightGBM model using 1,000 bootstrap resamples. The results showed that the model's apparent AUC was 0.953, with an average optimistic bias of 0.071; the AUC adjusted for optimistic bias was 0.882. The apparent Brier score was 0.093, and the corrected value was 0.143. After correction, the model's calibration slope, calibration intercept, and CITL were 0.668, −0.001, and 0.032, respectively. Overall, the LightGBM model maintained good discriminatory power after correction for optimism bias, and the deviation between the predicted and observed risks was small.
However, the calibration slope was lower than the ideal value of 1, suggesting that the predicted probabilities still exhibited a certain degree of over-dispersion.
SHAP explanations for the LightGBM risk stratification model
This study employed the SHAP method to conduct an interpretability analysis of the LightGBM model, aiming to quantify the contribution of each predictor to the model output and characterize the direction of its contribution. The SHAP feature importance analysis showed that the importance of each variable to the model's predictions, ranked from highest to lowest, was age (0.518), ADL (0.393), waist circumference (0.372), HDL (0.248), and 25(OH)D (0.207). with age having the highest contribution value and thus being the most significant influencing factor in this model (Figure 6A).
The SHAP beeswarm plot indicates that older age and a larger waist circumference primarily drive an increase in the predicted risk, whilst higher levels of ADL, HDL and 25(OH)D tend to reduce the predicted risk (Figure 6B). The SHAP dependency plot further revealed that age and waist circumference exhibited a non-linear relationship with the model output; their SHAP values generally increased as variable levels rose, with particularly marked increases in the age range of approximately 55∼70 years and the waist circumference range of 85∼100 cm, before levelling off (Figure 6C).
Individual SHAP waterfall plots showed that the predicted probabilities for the two patients were 0.717 and 0.800, respectively. The magnitude and direction of the contributions of each predictor variable to the individual model output varied, providing a visual illustration of the process by which the LightGBM model generates individualised predictive results (Figure 6D).
SHAP-based interpretability analysis of the LightGBM model. (A) SHAP feature importance plot; (B) SHAP beeswarm plot; (C) SHAP dependence plots for age and waist circumference; (D) SHAP waterfall plots for individual predictions. Positive SHAP values indicate that the corresponding variable increases the model-predicted risk of SO, whereas negative SHAP values indicate that the variable decreases the predicted risk.
Sensitivity analysis
To examine the impact of missing data handling methods on the primary outcomes, this study conducted a sensitivity analysis using complete-case data. The results showed that the direction of association between each predictor and SO was consistent with that observed in the primary analysis population. The AUC of the logistic regression model based on complete-case data was 0.801, which was close to that of the model following multiple imputation (0.812), with an absolute difference of 0.011; this suggests that the main study findings are reasonably robust to different methods of handling missing data.
Conclusion
Based on clinical data from 378 patients with T2DM, this study developed and validated a risk stratification model for SO in T2DM patients. The results indicate that age, waist circumference, ADL, HDL, and 25(OH)D are significant factors influencing SO in patients with T2DM. The logistic regression, random forest, SVM, LightGBM, and XGBoost models constructed based on these variables all demonstrated good discriminatory ability; Among them, LightGBM achieved the numerically highest AUC in this sample, but the differences in AUC among the models were not statistically significant.
SHAP analysis further revealed the degree of contribution and direction of influence of each variable on the LightGBM model's output, with age contributing the most, followed by ADL, waist circumference, HDL, and 25(OH)D. It also suggested that nonlinear relationships exist between some variables and the risk of SO. In summary, the SO risk stratification model developed in this study can serve as an auxiliary reference for the early risk identification and individualized assessment of patients with T2DM, and also provides a basis for targeted clinical management and intervention.
Source: ConclusionAuthors’ abstract
Objective
To analyze the factors associated with sarcopenic obesity (SO) in patients with type 2 diabetes (T2DM), and to develop and internally validate an SO risk stratification model based on interpretable machine learning, thereby providing guidance for the clinical screening of high-risk patients and the implementation of personalized risk assessment.
Methods
A single-center cross-sectional study design was adopted, enrolling 378 patients with T2DM, who were divided into an SO group and a non-SO group based on SO diagnostic results. Demographic characteristics, disease-related data, anthropometric measurements, and laboratory test results were collected. The cohort was randomly divided into a training set (n = 265) and a validation set (n = 113) in a 7:3 ratio. Univariate analysis, LASSO regression, and multivariate logistic regression were used to identify factors associated with SO, and based on these results, five risk-stratification models were constructed: logistic regression, random forest, SVM, LightGBM, and XGBoost.
Model performance was evaluated using the area under the receiver operating characteristic curve (AUC), area under the precision-recall curve (AUPRC), accuracy, sensitivity, recall, precision, F1 score, and Brier score. Model calibration performance and clinical applicability were assessed using calibration curves, calibration slope, calibration intercept, calibration-in-the-large (CITL), and decision curve analysis (DCA). Supplementary internal validation of the LightGBM model was performed using 1,000 bootstrap resamples, and interpretability analysis was conducted using the SHAP method.
Results
In this study, the detection rate of SO in patients with T2DM was 36.2%, age, ADL, waist circumference, HDL, and 25(OH)D were the primary factors influencing SO. The AUC values of the five models on the validation set ranged from 0.806 to 0.821. Among them, LightGBM achieved the numerically highest AUC in this sample, at 0.821 (95% CI: 0.744–0.897), with an AUPRC of 0.712; however, the DeLong test indicated that the differences in AUC among the models were not statistically significant (all P > 0.05).
Overall, the models demonstrated good calibration performance and potential clinical net benefit; however, bootstrap internal validation indicated that LightGBM still exhibited a certain degree of optimism bias and under-calibration. SHAP analysis revealed that age, ADL, waist circumference, HDL, and 25(OH)D contributed significantly to model predictions, with age being the most important predictive feature.
Conclusion
The SO risk stratification models developed using machine learning methods demonstrated good performance and potential clinical utility, with LightGBM achieving the highest numerical performance. SHAP-based interpretability analysis enhanced model transparency and clinical credibility, providing a reference for assisted screening, risk stratification, and individualized assessment of SO in patients with T2DM.
Read the full paper
Introduction
Type 2 diabetes mellitus (T2DM) is one of the most common chronic metabolic diseases in clinical practice. According to the latest data from the International Diabetes Federation in 2025, approximately 589 million people worldwide are living with diabetes, of whom nearly 90% have T2DM (1). This number is projected to increase to 783 million by 2045 (2, 3). As the burden of the disease continues to grow, the scope of T2DM clinical management has gradually expanded from blood glucose control and the prevention and treatment of vascular complications to a comprehensive assessment of body composition and physical function.
Among the changes in body composition associated with T2DM, the phenotype characterized by the coexistence of muscle loss and excessive fat accumulation has gradually garnered attention (4). This complex condition is defined as sarcopenic obesity (SO) (5), primarily manifested by a decline in skeletal muscle mass, reduced muscle function, and increased body fat content. Epidemiological studies show that the prevalence of SO among people with diabetes can reach as high as 27% (6), and their risk of developing SO is approximately 1.5 to 2.0 times higher than that of the non-diabetic population (7), suggesting a higher disease burden of SO in people with diabetes.
Hyperglycemia, insulin resistance, and metabolic disturbances associated with T2DM can promote skeletal muscle loss and abnormal fat accumulation, thereby increasing the risk of SO (8, 9); conversely, the muscle loss and fat accumulation accompanying SO may further exacerbate metabolic abnormalities by affecting glucose utilization, inflammatory status, and insulin sensitivity (10), creating a mutually reinforcing vicious cycle. In particular, reduced muscle mass and impaired muscle function can diminish physical capacity and functional reserve, increasing the risk of adverse outcomes such as falls, fractures, frailty, and a decline in quality of life (11–13); meanwhile, abnormal fat accumulation, particularly increased visceral fat, can exacerbate insulin resistance, chronic low-grade inflammation, and the cardiovascular metabolic burden, and is associated with an increased risk of cardiovascular disease and all-cause mortality (14, 15).
Therefore, SO has become a critical clinical issue warranting attention in the comprehensive management of T2DM, and its timely identification and risk assessment are of great significance.
However, there are still certain challenges in the clinical identification and risk stratification of SO among patients with T2DM. On the one hand, SO has an insidious onset, and its early clinical manifestations are often atypical; muscle loss and functional decline are easily masked by the obese phenotype (16). On the other hand, differences among studies regarding diagnostic criteria for SO, definitions of obesity, and methods for assessing muscle function limit the comparability of screening results and their clinical applicability.
Existing research has primarily focused on the prevalence of SO, its associated factors, and its association with adverse outcomes (17, 18), and most existing models have been developed based on community-dwelling older adults or the general obese population (19); consequently, risk stratification tools for SO in patients with T2DM remain limited. Given that SO in patients with T2DM is associated with multiple factors, including age, adiposity, physical function, and metabolic indicators, and that complex nonlinear relationships may exist among these variables, traditional single-indicator approaches struggle to accurately identify high-risk individuals.
Machine learning can integrate multidimensional clinical information and capture underlying nonlinear relationships; when combined with interpretable methods such as SHAP to further quantify the contribution of each variable to the model's output, it provides a new analytical approach for risk stratification of SO in T2DM patients.
Based on this, this study focused on hospitalized patients with T2DM. Using demographic characteristics, disease-related factors, anthropometric measurements, and laboratory test data, we developed five risk stratification models, including logistic regression, random forest, SVM, LightGBM, and XGBoost, and evaluated them in terms of discriminatory power, calibration performance, and clinical net benefit. Additionally, we used the SHAP method to interpret the machine learning models. The aim of this study is to establish a simple, effective, and clinically interpretable risk stratification tool for SO in T2DM patients, providing a reference for early clinical screening, risk assessment, and personalized interventions.
Materials and methods
Study design and population
This study was a single-center, cross-sectional observational study that enrolled patients with T2DM who were hospitalized in the Endocrinology Department of Shenzhen Hospital (Futian) of Guangzhou University of Chinese Medicine between November 2025 and April 2026. All participants were screened according to predefined inclusion and exclusion criteria. Demographic data, medical history, laboratory results, physical examination findings, and relevant functional assessments were collected via the hospital's electronic medical record system and on-site evaluations to construct and validate a risk stratification model for SO in T2DM patients.
This study was approved by the Ethics Committee of Shenzhen Hospital (Futian) of Guangzhou University of Chinese Medicine (approval no. GZYLL(KY)-2025-147), and all participants provided written informed consent.
Inclusion and exclusion criteria
Participants were screened according to the following criteria:
- (1)
Inclusion criteria: ① age ≥ 18 years; ② diagnosis of T2DM according to the diagnostic criteria specified in the Chinese Guidelines for the Prevention and Treatment of Diabetes Mellitus (2024 Edition) (20);③have complete clinical data required for SO diagnosis, and voluntarily participate in the study and sign an informed consent form.
- (2)
Exclusion criteria: ①participants with severe cognitive impairment, dementia, or psychiatric disorders; ②diagnosed malignant tumors or severe heart, liver, kidney, or other major organ failure; ③diabetic ketoacidosis, hyperosmolar hyperglycemic state, severe infection, other acute diabetic complications, or other critical illnesses; ④contraindications to bioelectrical impedance analysis (BIA), such as implanted cardiac pacemakers or metallic implants; ⑤inability to cooperate with physical function tests due to limb dysfunction, severe osteoarticular disease, neuromuscular disorders, or other related conditions.
Candidate predictors and data collection
Based on a literature review, clinical experience, and the availability of variables, this study predefined candidate predictors of SO in patients with T2DM. All data were collected during the subjects’ hospital stays and primarily included demographic characteristics, disease-related factors, anthropometric measurements, and laboratory parameters.
- (1)
Demographic characteristics included age, gender, educational level, and marital status. Gender was categorized as male or female; educational level was categorized as primary school or below, junior high school, senior high school, and college or above; marital status was categorized as married or other.
- (2)
Disease-related factors included duration of diabetes, glycemic control regimen, diabetic peripheral neuropathy (DPN), history of smoking, history of alcohol consumption, history of falls, nutritional risk screening score, and Activities of Daily Living (ADL) score. Specifically, duration of diabetes was categorized as <5 years, 5–15 years, and >15 years; glucose-lowering regimens were categorized as oral glucose-lowering drugs only, insulin therapy only, combined oral glucose-lowering drugs and insulin therapy, and other regimens; DPN, history of smoking, history of alcohol consumption, and history of falls were all dichotomized as “yes” or “no.” Nutritional risk was assessed using the Nutritional Risk Screening 2002 (NRS-2002), and ADL was evaluated using the Barthel Index.
- (3)
Anthropometric measures included systolic blood pressure (SBP), diastolic blood pressure (DBP), body mass index (BMI), waist circumference, and calf circumference.
- (4)
Laboratory parameters included glycated hemoglobin (HbA1c), triglyceride-glucose index (TyG), total cholesterol (TC), high-density lipoprotein cholesterol (HDL), low-density lipoprotein cholesterol (LDL), 25-hydroxyvitamin D [25(OH)D], aspartate aminotransferase (AST), serum albumin (ALB), uric acid (UA), urine albumin-to-creatinine ratio (UACR), and neutrophil-to-lymphocyte ratio (NLR).
Primary outcome and diagnostic criteria
The primary outcome of this study was whether participants had SO. SO was defined as participants meeting the diagnostic criteria for both sarcopenia and obesity. Sarcopenia was diagnosed according to the 2019 Asian Working Group on Sarcopenia (AWGS) criteria (21): ①appendicular skeletal muscle mass index (ASMI) < 7.0 kg/m2 in men and <5.7 kg/m2 in women; ②handgrip strength <28 kg in men and <18 kg in women; ③five sit-to-stand tests taking ≥12 s. Sarcopenia is diagnosed when a patient meets criterion ① and either criterion ② or ③.
Obesity was defined according to body fat percentage, with cutoffs of ≥25% in men and ≥35% in women (22). ASMI was measured using a multi-frequency bioimpedance analyzer (AiNST-CNDS20, Jiangsu Kangai Nutrition Technology Co., Ltd., Taizhou, China). Before the assessment, participants were instructed to remove all metal accessories and take off their shoes and socks. Measurements were performed after fasting and resting, with participants standing steadily on the electrode plates and ensuring that all limbs were in full contact with the electrode areas.
Handgrip strength was measured using an electronic hand dynamometer (Xiangshan EH101, Guangdong Xiangshan Weighing Apparatus Co., Ltd., Zhongshan, China). Participants were assessed in a standing or seated position with both upper limbs naturally relaxed. Measurements were performed twice for each hand, and the maximum value was used for analysis.
Statistical analysis
This study used R version 4.5.1 for statistical analysis and model building. All random processes were initialized with a random seed of 123456. The main R packages and their versions are listed in Supplementary Table S1. Prior to performing multiple interpolation, variable selection, and model building, the study subjects were first randomly divided into a training set (265) and a validation set (113). The mice package was used for multiple interpolation, generating a total of 5 interpolated datasets, with each interpolation chain iterated 20 times.
The interpolation models were estimated based solely on the training set; the validation set was not used for parameter learning. Missing values in the validation set were imputed using the interpolation models established from the training set. Specific details regarding missing values are provided in Supplementary Table S2. Additionally, a sensitivity analysis was conducted using the full-case analysis to evaluate the robustness of the primary results. The normality of continuous variables was assessed using the Shapiro–Wilk test. Normally distributed variables are presented as mean ± standard deviation (x ± s) and were compared between groups using the independent-samples t-test.
Non-normally distributed variables are presented as median with interquartile range [M (P25, P75)] and were compared using the Mann–Whitney U test. Categorical variables are expressed as frequencies and percentages.
Variable selection and model parameter determination were both performed on the first interpolation training set; the validation set was not included in these processes. First, univariate analysis was conducted, and variables with P < 0.1 were selected as candidate variables for LASSO regression. Both multiple interpolation and univariate preselection were completed prior to 10-fold cross-validation and were not repeated within each cross-validation fold. Subsequently, LASSO regression was performed on the candidate variables, and 10-fold cross-validation was used to determine the optimal penalty parameter λ.
In each round of cross-validation, 9 folds of the data were used to refit the LASSO model, and the binomial bias was calculated using the remaining 1 fold of data. Finally, the optimal λ was determined based on the average 10-fold cross-validation error, and variables with non-zero coefficients were selected. The variables selected through LASSO regression were further incorporated into a multivariate logistic regression analysis. Variables with P < 0.05 were ultimately selected as the final predictors, and five risk stratification models were constructed: logistic regression, Random Forest, Support Vector Machine (SVM), Light Gradient Boosting Machine (LightGBM), and extreme gradient boosting (XGBoost).
For the SVM and LightGBM models, hyperparameters were optimized using grid search with 10-fold cross-validation. For each candidate hyperparameter combination, the model was refitted on nine folds and evaluated on the remaining fold using the AUC. The optimal combination was selected based on the mean AUC across the 10 folds. The number of boosting iterations for LightGBM was determined through the same cross-validation procedure. The random forest model used prespecified parameter settings, whereas XGBoost used prespecified parameters with early stopping applied within the training set.
The parameter search ranges and final settings for each model are presented in Supplementary Table S3. After hyperparameter selection, the final predictors and model parameters were fixed, and each model was refitted separately in each of the five imputed training datasets and applied to the corresponding imputed validation dataset. For logistic regression, the coefficients, standard errors, confidence intervals, and P values were pooled using Rubin's rules. For each model, the predicted probabilities obtained for each participant across the five imputed validation datasets were averaged, and the resulting mean probability was used as the final prediction.
The validation set was used solely for final model performance evaluation and was not involved in variable selection, parameter determination, or model fitting.
The discriminatory ability and classification performance of each model were evaluated using the area under the receiver operating characteristic curve (AUC), the area under the precision-recall curve (AUPRC), precision, recall, accuracy, and F1 score. The DeLong test was used to compare differences in AUC among the models. We comprehensively evaluated the models’ calibration performance using calibration curves, Brier scores, calibration slopes, calibration intercep, and calibration-in-the-large (CITL), and assessed their clinical net benefit through decision curve analysis (DCA). In addition, supplementary internal validation of the LightGBM model was performed in the first imputed training dataset using 1,000 bootstrap resamples to estimate optimism-corrected AUC, Brier score, and calibration measures.
SHapley Additive exPlanations (SHAP) analysis was subsequently used to characterize the contributions of individual predictors to the LightGBM model output and their potential nonlinear relationships with the model output.
Results
Baseline characteristics of the study population
This study included a total of 378 patients with T2DM, comprising 137 patients in the SO group and 241 in the non-SO group, with an SO detection rate of 36.2%. The median age of the study participants was 61.0 (52.0, 68.0) years; 218 were male (57.7%) and 160 were female (42.3%). Univariate analysis revealed that, compared with the non-SO group, patients in the SO group were older, had lower educational attainment, had a longer duration of diabetes, and were more likely to receive insulin or combination therapy (all P < 0.05).
Additionally, statistically significant differences were observed between the two groups in terms of ADL, NRS-2002 scores, 25(OH)D levels, and ALB levels (all P < 0.05). However, no statistically significant differences were observed between the two groups regarding gender, smoking history, alcohol consumption history, calf circumference, TyG, and HbA1c (all P > 0.05). The baseline characteristics of the study population are presented in Table 1.
Baseline characteristics of the study population.
| Variable | Total(378) | Non-SO(241) | SO(137) | P |
|---|---|---|---|---|
| Age, years | 61.00 [52.00, 68.00] | 56.00 [49.00, 64.00] | 68.00 [62.00, 73.00] | <0.001 |
| Gender, n(%) | 0.16 | |||
| Male | 218 (57.7) | 132 (54.8) | 86 (62.8) | |
| Female | 160 (42.3) | 109 (45.2) | 51 (37.2) | |
| Education level, n(%) | <0.001 | |||
| Primary school or below | 34 (9.0) | 18 (7.5) | 16 (11.7) | |
| Junior high school | 71 (18.8) | 35 (14.5) | 36 (26.3) | |
| Senior high school | 106 (28.0) | 62 (25.7) | 44 (32.1) | |
| College or above | 167 (44.2) | 126 (52.3) | 41 (29.9) | |
| Marital status, n(%) | 0.664 | |||
| Married | 336 (88.9) | 216 (89.6) | 120 (87.6) | |
| Other | 42 (11.1) | 25 (10.4) | 17 (12.4) | |
| Duration of diabetes, years, n(%) | <0.001 | |||
| <5 | 119 (31.5) | 91 (37.8) | 28 (20.4) | |
| 5–15 | 164 (43.4) | 107 (44.4) | 57 (41.6) | |
| >15 | 95 (25.1) | 43 (17.8) | 52 (38.0) | |
| Glycemic control regimen, n(%) | 0.021 | |||
| Oral glucose-lowering drugs | 181 (47.9) | 125 (51.9) | 56 (40.9) | |
| Insulin therapy | 9 (2.4) | 7 (2.9) | 2 (1.5) | |
| Combination therapy | 163 (43.1) | 90 (37.3) | 73 (53.3) | |
| Other | 25 (6.6) | 19 (7.9) | 6 (4.4) | |
| DPN, n(%) | 0.017 | |||
| Yes | 119 (31.5) | 65 (27.0) | 54 (39.4) | |
| No | 259 (68.5) | 176 (73.0) | 83 (60.6) | |
| Smoking, n(%) | 0.467 | |||
| Yes | 98 (25.9) | 59 (24.5) | 39 (28.5) | |
| No | 280 (74.1) | 182 (75.5) | 98 (71.5) | |
| Alcohol, n(%) | 0.449 | |||
| Yes | 95 (25.1) | 57 (23.7) | 38 (27.7) | |
| No | 283 (74.9) | 184 (76.3) | 99 (72.3) | |
| Falls, n(%) | 0.03 | |||
| Yes | 164 (43.4) | 94 (39.0) | 70 (51.1) | |
| No | 214 (56.6) | 147 (61.0) | 67 (48.9) | |
| NRS-2002 | 1.00 [1.00, 2.00] | 1.00 [1.00, 2.00] | 2.00 [1.00, 2.00] | <0.001 |
| ADL | 95.00 [90.00, 100.00] | 100.00 [95.00, 100.00] | 90.00 [85.00, 95.00] | <0.001 |
| SBP, mmHg | 128.00 [117.25, 141.00] | 126.00 [116.00, 138.00] | 131.00 [119.00, 144.00] | 0.006 |
| DBP, mmHg | 79.00 [72.00, 87.00] | 80.00 [72.00, 88.00] | 78.00 [72.00, 85.00] | 0.03 |
| BMI, kg/m2 | 25.38 [23.03, 27.78] | 25.14 [22.46, 27.77] | 25.76 [23.94, 27.94] | 0.059 |
| Waist circumference, cm | 94.00 [86.00, 100.00] | 91.00 [84.80, 98.00] | 96.00 [91.00, 100.00] | <0.001 |
| Calf circumference, cm | 35.50 [33.00, 37.58] | 35.80 [32.90, 37.80] | 35.30 [33.00, 37.10] | 0.693 |
| HbA1c, % | 7.70 [6.70, 9.57] | 7.70 [6.70, 9.50] | 8.10 [7.10, 9.90] | 0.153 |
| TyG | 1.66 [1.24, 2.25] | 1.68 [1.27, 2.22] | 1.63 [1.23, 2.27] | 0.617 |
| TC, mmol/L | 4.66 [3.71, 5.70] | 4.89 [3.96, 5.89] | 4.27 [3.46, 5.43] | 0.001 |
| HDL, mmol/L | 1.09 [0.91, 1.33] | 1.13 [0.96, 1.37] | 1.00 [0.87, 1.19] | <0.001 |
| LDL, mmol/L | 2.47 [1.84, 3.36] | 2.59 [1.96, 3.41] | 2.32 [1.77, 3.19] | 0.048 |
| 25(OH)D, nmol/L | 21.35 [15.72, 25.70] | 22.00 [17.50, 26.60] | 20.30 [14.90, 24.60] | 0.010 |
| AST, U/L | 20.20 [16.70, 27.05] | 20.30 [16.60, 28.60] | 20.10 [17.10, 25.20] | 0.785 |
| ALB, g/L | 42.51 ± 4.49 | 43.20 ± 4.36 | 41.29 ± 4.46 | <0.001 |
| UA, μmol/L | 357.00 [287.25, 410.75] | 359.00 [283.00, 416.00] | 356.00 [298.00, 405.00] | 0.496 |
| UACR, mg/mmol | 0.96 [0.40, 2.81] | 0.95 [0.39, 2.32] | 1.28 [0.44, 5.59] | 0.065 |
| NLR | 0.98 [0.53, 1.59] | 0.99 [0.55, 1.67] | 0.97 [0.53, 1.51] | 0.381 |
Feature selection using LASSO regression
Based on the predefined variable selection criteria, variables with P < 0.1 from the univariate analysis were included in the LASSO regression analysis to further identify candidate predictors of SO in patients with T2DM. The LASSO regression coefficient path plot showed that as the regularization parameter λ varied, the regression coefficients of each variable gradually shrank, with some coefficients eventually shrinking to 0 (Figure 1A). Ten-fold cross-validation was used to determine the optimal penalty parameter λ. The results showed that λ_min, corresponding to the minimum cross-validation error, was 0.0168, with log(λ_min) = −4.089 (Figure 1B).
At this λ value, a total of seven variables with non-zero coefficients were identified, including age, educational level, waist circumference, ADL, HDL, 25(OH)D, and UACR. Among these, age, certain educational level strata, waist circumference, and UACR had positive regression coefficients, suggesting that these factors may be associated with an increased risk of SO; conversely, ADL, HDL, and 25(OH)D had negative regression coefficients, suggesting that higher levels of these factors may be associated with a reduced risk of SO.
Selection of candidate predictors of SO in patients with T2DM using LASSO regression. (A) LASSO coefficient profile; (B) Cross-validation curve for LASSO regression.
Multivariable logistic regression analysis
The occurrence of SO in patients with T2DM was used as the dependent variable, we included the seven candidate predictor variables identified by LASSO regression as independent variables in a multivariate logistic regression analysis. The results showed that age, waist circumference, ADL, HDL, and 25(OH)D were significant predictors of the risk of SO in patients with T2DM (all P < 0.05). The results of the multivariate logistic regression analysis are presented in Table 2.
Results of the multivariable logistic regression analysis.
| Variable | OR | 95%CI | P |
|---|---|---|---|
| Age, years | 1.078 | 1.034~1.126 | <0.001 |
| ADL | 0.911 | 0.847~0.975 | 0.009 |
| Waist circumference, cm | 1.062 | 1.031–1.096 | <0.001 |
| HDL, mmol/L | 0.143 | 0.042~0.447 | 0.001 |
| 25(OH)D, nmol/L | 0.931 | 0.887~0.973 | 0.002 |
| UACR, mg/mmol | 1.012 | 0.998~1.027 | 0.094 |
| Education level, n (%) | |||
| Primary school or below | Reference | ||
| Junior high school | 3.501 | 0.825~15.581 | 0.092 |
| Senior high school | 2.366 | 0.575~10.132 | 0.236 |
| College or above | 1.339 | 0.328~5.659 | 0.686 |
Performance comparison of the five SO risk stratification models
Based on the influencing factors identified through multivariate logistic regression, five SO risk stratification models, including logistic regression, random forest, SVM, LightGBM and XGBoost, were constructed and their performance evaluated on the validation set (Table 3). The ROC curves indicate that all five models demonstrate good discriminatory ability (Figure 2A). Among them, LightGBM achieved the numerically highest AUC in this sample, at 0.821 (95% CI: 0.744∼0.897), with an accuracy, sensitivity, precision, and F1 score of 0.752, 0.610, 0.676, and 0.641, respectively.
However, the DeLong test indicated that the differences in AUC between the models were not statistically significant (all P > 0.05); therefore, it cannot yet be concluded that LightGBM's discriminatory ability is significantly superior to that of the other models. Analysis of the PR curves showed that the AUPRC values for the five models ranged from 0.690 to 0.714, all of which were higher than the baseline level corresponding to the SO positive rate in the validation set. Among them, logistic regression achieved the highest point estimate for AUPRC (0.714), with LightGBM yielding a similar value (0.712) (Figure 2B).
Performance comparison of five SO risk stratification models in the validation set.
| Predictive model | AUROC(95%CI) | AUPRC | Accuracy | Recall rate | Precision | F1 Score |
|---|---|---|---|---|---|---|
| Logistic regression | 0.816 (0.738∼0.895) | 0.714 | 0.743 | 0.561 | 0.677 | 0.613 |
| Random forest | 0.810 (0.730∼0.890) | 0.693 | 0.708 | 0.561 | 0.605 | 0.582 |
| SVM | 0.812 (0.733∼0.891) | 0.703 | 0.726 | 0.561 | 0.639 | 0.597 |
| LightGBM | 0.821 (0.744∼0.897) | 0.712 | 0.752 | 0.610 | 0.676 | 0.641 |
| XGBoost | 0.806 (0.724∼0.888) | 0.690 | 0.735 | 0.561 | 0.657 | 0.605 |
(A) ROC Curves for Five SO Risk Stratification Models in the Validation Set. (B) PR Curves for Five SO Risk Stratification Models in the Validation Set.
Calibration and clinical utility of the five SO risk stratification models
To evaluate the calibration performance and clinical applicability of the five risk stratification models, this study employed a comprehensive assessment using calibration curves, Brier scores, calibration slopes, calibration intercept, CITL and DCA. The calibration curves showed that the predicted probabilities of the five models were generally consistent with the observed probabilities, although some deviations were still evident in certain probability intervals (Figure 3). The Brier scores for the logistic regression, random forest, SVM, LightGBM, and XGBoost models were 0.172, 0.171, 0.171, 0.166, and 0.177, respectively, with LightGBM having the lowest score and XGBoost having a relatively higher score.
The calibration slopes of the five models were 0.818, 0.809, 0.878, 1.200, and 0.662, respectively. Logistic regression, Random Forest, SVM, and LightGBM were all relatively close to the ideal value of 1, while XGBoost deviated significantly, suggesting a notable over-dispersion in its predicted probabilities. The CITL values for each model ranged from −0.074 to 0.055, all of which were close to the ideal value of 0, indicating a small deviation between the predicted risk and the actual observed risk; the combined calibrated intercept and other specific metrics are shown in Table 4.
The DCA results show that, within a certain range of threshold probabilities, all five models can achieve a net benefit higher than that of the “all intervention” or “no intervention” strategies, suggesting their potential clinical value in assessing SO risk in patients with T2DM (Figure 4).
Calibration curves of the five SO risk stratification models in the validation set.
Evaluation of the calibration performance of five SO risk stratification models on the validation set.
| Predictive model | Brier Score | Calibration Slope | Calibration Intercept | CITL |
|---|---|---|---|---|
| Logistic regression | 0.172 | 0.818 | −0.114 | −0.052 |
| Random forest | 0.171 | 0.809 | −0.095 | −0.026 |
| SVM | 0.171 | 0.878 | −0.108 | −0.064 |
| LightGBM | 0.166 | 1.200 | 0.000 | −0.074 |
| XGBoost | 0.177 | 0.662 | −0.106 | 0.055 |
DCA curves of the five SO risk stratification models in the validation set.
Nomogram construction based on the logistic regression model and sensitivity analysis
Given that the logistic regression model offers good discriminatory power, interpretability, and clinical feasibility, this study further developed a contour plot based on this model to visualize individual SO prediction probabilities and to aid in the risk stratification of SO in patients with T2DM (Figure 5). Additionally, to assess the impact of missing data handling methods on the primary outcomes, this study conducted a sensitivity analysis using complete-case data. The results showed that the direction of association between each predictive factor and SO was consistent with that of the primary analysis population.
The AUC of the logistic regression model based on complete-case data was 0.816, which was close to the AUC of the model after multiple imputation (0.795), with an absolute difference of 0.021, suggesting that the primary study results are reasonably robust to different methods of handling missing data.
Nomogram for SO risk stratification in patients with T2DM based on a logistic regression model.
Bootstrap internal validation of the LightGBM risk stratification model
We conducted supplementary internal validation of the LightGBM model using 1,000 bootstrap resamples. The results showed that the model's apparent AUC was 0.953, with an average optimistic bias of 0.071; the AUC adjusted for optimistic bias was 0.882. The apparent Brier score was 0.093, and the corrected value was 0.143. After correction, the model's calibration slope, calibration intercept, and CITL were 0.668, −0.001, and 0.032, respectively. Overall, the LightGBM model maintained good discriminatory power after correction for optimism bias, and the deviation between the predicted and observed risks was small.
However, the calibration slope was lower than the ideal value of 1, suggesting that the predicted probabilities still exhibited a certain degree of over-dispersion.
SHAP explanations for the LightGBM risk stratification model
This study employed the SHAP method to conduct an interpretability analysis of the LightGBM model, aiming to quantify the contribution of each predictor to the model output and characterize the direction of its contribution. The SHAP feature importance analysis showed that the importance of each variable to the model's predictions, ranked from highest to lowest, was age (0.518), ADL (0.393), waist circumference (0.372), HDL (0.248), and 25(OH)D (0.207). with age having the highest contribution value and thus being the most significant influencing factor in this model (Figure 6A).
The SHAP beeswarm plot indicates that older age and a larger waist circumference primarily drive an increase in the predicted risk, whilst higher levels of ADL, HDL and 25(OH)D tend to reduce the predicted risk (Figure 6B). The SHAP dependency plot further revealed that age and waist circumference exhibited a non-linear relationship with the model output; their SHAP values generally increased as variable levels rose, with particularly marked increases in the age range of approximately 55∼70 years and the waist circumference range of 85∼100 cm, before levelling off (Figure 6C).
Individual SHAP waterfall plots showed that the predicted probabilities for the two patients were 0.717 and 0.800, respectively. The magnitude and direction of the contributions of each predictor variable to the individual model output varied, providing a visual illustration of the process by which the LightGBM model generates individualised predictive results (Figure 6D).
SHAP-based interpretability analysis of the LightGBM model. (A) SHAP feature importance plot; (B) SHAP beeswarm plot; (C) SHAP dependence plots for age and waist circumference; (D) SHAP waterfall plots for individual predictions. Positive SHAP values indicate that the corresponding variable increases the model-predicted risk of SO, whereas negative SHAP values indicate that the variable decreases the predicted risk.
Sensitivity analysis
To examine the impact of missing data handling methods on the primary outcomes, this study conducted a sensitivity analysis using complete-case data. The results showed that the direction of association between each predictor and SO was consistent with that observed in the primary analysis population. The AUC of the logistic regression model based on complete-case data was 0.801, which was close to that of the model following multiple imputation (0.812), with an absolute difference of 0.011; this suggests that the main study findings are reasonably robust to different methods of handling missing data.
Discussion
Based on clinical data from hospitalised patients with T2DM, this study utilised traditional statistical methods and machine learning algorithms to construct a risk stratification model for SO and conducted a comprehensive evaluation of the model's performance. The results showed that the detection rate of SO was 36.2 per cent, which is higher than the overall prevalence reported in previous meta-analyses for diabetic patients (approximately 27 per cent) (6) and the recent detection rate in a Thai cohort of T2DM patients (16.4 per cent) (23); this may be related to differences in the source of the study population, the complexity of the disease, the age structure, and the diagnostic criteria for SO.
Previous SO-related models have mostly been based on community settings, care homes or the general elderly population, with included variables largely centred on BMI, body circumference and muscle function indicators; some models also incorporated variables closely related to SO diagnosis, such as body fat percentage and grip strength. Furthermore, heterogeneity in study populations, diagnostic criteria and validation strategies has limited direct comparisons between models (24–26). In contrast, this study focuses on hospitalised patients with T2DM and constructs a risk stratification model based on routinely available clinical variables, including age, ADL, waist circumference, HDL, and 25(OH)D,which are not directly involved in the diagnosis of SO.
Its discriminatory ability is broadly comparable to that reported in previous studies, thereby further expanding the application of SO risk stratification within this specific population of T2DM patients.
SHAP analysis revealed that age is the most significant predictor of SO in patients with T2DM, which is consistent with the findings of previous studies indicating that the prevalence of SO increases with age (27, 28). With advancing age, skeletal muscle mass, muscle strength and physical function gradually decline, whilst visceral and intramuscular fat accumulation increases; this process may involve mechanisms such as reduced muscle protein synthesis, mitochondrial dysfunction, chronic inflammation and fatty infiltration (29–31).
The persistent insulin resistance and disturbances in glucose and lipid metabolism in patients with T2DM may further exacerbate these age-related changes (32). It is worth noting that the contribution of age to the model's output does not increase uniformly, but is more pronounced during the transition from middle to old age. This non-linear characteristic may reflect the gradual accumulation of adverse factors such as muscle decline, fat redistribution and metabolic imbalances with age, making the contribution of age to SO risk stratification more prominent during this phase.
The subsequent flattening of the SHAP curve does not imply that the association between advanced age and SO has disappeared; rather, it may indicate that, once other predictive factors are incorporated, the marginal contribution of age itself to the model's output gradually diminishes. Therefore, age should be regarded more as continuous risk stratification information, rather than being simply categorised into specific age thresholds based on the dependency plot.
This study found that waist circumference is a risk factor for the development of SO in patients with T2DM. Compared with BMI, waist circumference provides a more direct reflection of abdominal obesity and central fat accumulation, and offers certain advantages in assessing body composition abnormalities associated with metabolic syndrome (33). Previous studies have shown (34) that the prevalence of SO increases with increasing waist circumference. The underlying mechanism may be related to visceral fat accumulation; excessive visceral fat can impair skeletal muscle metabolism and function through pathways such as the release of free fatty acids, chronic inflammation and insulin resistance (35).
The SHAP dependency plot further reveals that the relationship between waist circumference and the model output is also non-linear; its contribution increases more markedly within the range of approximately 85∼100 cm, after which it flattens out, indicating that the information provided by different waist circumference intervals for distinguishing SO status does not increase proportionally. A recent Chinese cohort study of older adults also observed a non-linear association between indicators of abdominal obesity and SO, providing some support for the non-linear characteristics revealed by the SHAP analysis in this study (36).
Therefore, as a simple and readily available anthropometric measure, waist circumference can serve as a reference for SO risk stratification and subsequent standardised assessment in patients with T2DM.
ADL is negatively associated with SO in patients with T2DM; indicating that a higher Barthel Index score was associated with a lower risk of SO, which is consistent with previous findings (37). The Barthel Index reflects a patient's ability to perform basic activities of daily living; a lower score typically indicates limited mobility, reduced functional reserve, or increased dependence in daily living. Previous studies have shown (31) that a decline in ADL function reduces skeletal muscle workload, leading to insufficient muscle protein synthesis and increased catabolism, which in turn causes a sustained decline in muscle mass and strength.
In addition, patients with T2DM often present with protein metabolism disorders, vascular dysfunction, and mitochondrial dysfunction, which further exacerbate structural and functional damage to skeletal muscle (38). SHAP analysis also revealed that higher ADL levels were the primary predictor of reduced SO risk in the model, consistent with the results of the regression analysis. Given the cross-sectional design of this study, the temporal sequence between ADL decline and SO remains undetermined; however, the Barthel Index, as a simple indicator of functional status, can serve as a reference for risk stratification and follow-up assessment of SO in patients with T2DM.
The results of this study show that, in patients with T2DM, higher HDL levels are associated with a lower risk of SO. HDL plays a role in reverse cholesterol transport, as well as anti-inflammatory and antioxidant effects, which help alleviate chronic inflammation and improve insulin resistance (39, 40). Previous studies have confirmed (41) that reduced HDL levels are often accompanied by insulin resistance and abnormalities in the atherogenic lipoprotein profile, suggesting that they may reflect impaired lipid metabolism and overall metabolic homeostasis in patients with T2DM.
Such metabolic disturbances have also been associated with reduced skeletal muscle mass and strength, as well as abnormal fat accumulation. Therefore, HDL not only reflects the status of lipid metabolism but also, to a certain extent, reflects the overall metabolic health of patients with T2DM. Future prospective and interventional studies are warranted to further evaluate the effects of lifestyle interventions, such as regular physical activity, weight management, and dietary optimization, on lipid metabolism and SO-related outcomes.
It is worth noting that this study also found that higher levels of 25(OH)D are associated with a lower risk of SO. 25(OH)D is the primary indicator of vitamin D nutritional status in the body; in addition to playing a role in calcium and phosphorus metabolism and maintaining bone health, it can also influence muscle health by regulating skeletal muscle metabolism and function (42). Previous studies have shown that lower 25(OH)D levels are closely associated with decreased muscle strength, impaired physical function, and an increased risk of SO; the underlying mechanisms may be related to how vitamin D deficiency affects muscle protein synthesis, myocyte differentiation, calcium homeostasis, and muscle fat infiltration (43).
Vitamin D insufficiency is relatively common among patients with T2DM, particularly among elderly inpatients. Prolonged low 25(OH)D levels can further exacerbate skeletal muscle loss and abnormal fat accumulation, thereby increasing the risk of SO (4, 32). Therefore, 25(OH)D can serve as a nutritional and metabolic reference indicator for identifying current SOD status in patients with T2DM.
This study developed and compared five SO risk stratification models. Although LightGBM achieved the highest numerical performance among the evaluated models, the differences in AUC among the models were not statistically significant. Considering both overall discriminatory ability and interpretability, this study ultimately used a logistic regression model to generate a nomogram. This tool is primarily intended for endocrinologists, diabetes nurse specialists, and relevant nutrition and rehabilitation professionals. It can be used to perform preliminary SO risk stratification for hospitalized T2DM patients based on routine clinical information such as age, ADL, waist circumference, HDL, and 25(OH)D.
For patients with a high predicted risk, standardized assessments, such as grip strength, the five-sit-to-stand test, and body composition measurements can be prioritized. This model is intended to assist in risk stratification and the identification of patients requiring further evaluation; it is not a substitute for the standardized diagnosis of SO. Although the DCA suggests that the model has potential clinical net benefit within a certain probability threshold range, the appropriate risk threshold and actual clinical effectiveness still need to be evaluated through multicenter external validation and prospective studies.
This study has the following limitations. First, as a cross-sectional study, the predictor variables and SO status were measured at the same time point, making it impossible to clearly determine the temporal sequence and causal relationships between the various influencing factors and SO; the relevant conclusions still need to be validated through prospective studies. Second, the sample size of this study is relatively limited, and all participants were inpatients with T2DM from a single tertiary hospital in China. The severity of their disease, burden of comorbidities, and treatment status may differ from those of outpatient and community populations; consequently, the study results may be influenced by selection bias and differences in the disease spectrum, resulting in relatively limited representativeness of the sample.
Furthermore, this study has currently only completed internal validation and lacks external validation from independent cohorts at other hospitals or in other regions; the model's generalizability and practical applicability across different clinical settings and populations remain uncertain. Finally, the predictors in this study were primarily derived from routine clinical data; potential confounding factors such as inflammatory markers, dietary intake, physical activity, medication use, and intramuscular fat infiltration were not systematically included. This may have led to residual confounding and the omission of information with incremental value, thereby limiting the model's performance to some extent.
Future studies should conduct external validation using multicenter, independent cohorts and optimize the model by incorporating longitudinal follow-up and more comprehensive clinical, lifestyle, and imaging indicators to evaluate its generalizability and clinical utility.
Conclusion
Based on clinical data from 378 patients with T2DM, this study developed and validated a risk stratification model for SO in T2DM patients. The results indicate that age, waist circumference, ADL, HDL, and 25(OH)D are significant factors influencing SO in patients with T2DM. The logistic regression, random forest, SVM, LightGBM, and XGBoost models constructed based on these variables all demonstrated good discriminatory ability; Among them, LightGBM achieved the numerically highest AUC in this sample, but the differences in AUC among the models were not statistically significant.
SHAP analysis further revealed the degree of contribution and direction of influence of each variable on the LightGBM model's output, with age contributing the most, followed by ADL, waist circumference, HDL, and 25(OH)D. It also suggested that nonlinear relationships exist between some variables and the risk of SO. In summary, the SO risk stratification model developed in this study can serve as an auxiliary reference for the early risk identification and individualized assessment of patients with T2DM, and also provides a basis for targeted clinical management and intervention.
Edited by: Li Xiangwei, Shanghai Jiao Tong University, China
Reviewed by: Husnul Khuluq, Universitas Muhammadiyah Gombong, Indonesia
Jorge I. Galván-Tejada, Autonomous University of Zacatecas, Mexico
Data availability statement
The raw data supporting the conclusions of this article will be made available by the authors, without undue reservation.
Ethics statement
The studies involving humans were approved by Ethics Committee of Shenzhen Hospital (Futian) of Guangzhou University of Chinese Medicine. The studies were conducted in accordance with the local legislation and institutional requirements. The participants provided their written informed consent to participate in this study.
Author contributions
TS: Formal analysis, Software, Writing – original draft. XL: Investigation, Software, Writing – review & editing. MF: Data curation, Investigation, Methodology, Writing – original draft. YL: Methodology, Validation, Writing – original draft. QL: Data curation, Investigation, Writing – original draft. JZ: Data curation, Investigation, Writing – original draft. YZ: Project administration, Supervision, Writing – review & editing. YC: Funding acquisition, Supervision, Writing – review & editing.
Conflict of interest
The author(s) declared that this work was conducted in the absence of any commercial or financial relationships that could be construed as a potential conflict of interest.
Generative AI statement
The author(s) declared that generative AI was not used in the creation of this manuscript.
Any alternative text (alt text) provided alongside figures in this article has been generated by Frontiers with the support of artificial intelligence and reasonable efforts have been made to ensure accuracy, including review by the authors wherever possible. If you identify any issues, please contact us.
Publisher's note
All claims expressed in this article are solely those of the authors and do not necessarily represent those of their affiliated organizations, or those of the publisher, the editors and the reviewers. Any product that may be evaluated in this article, or claim that may be made by its manufacturer, is not guaranteed or endorsed by the publisher.
Supplementary material
The Supplementary Material for this article can be found online at: https://www.frontiersin.org/articles/10.3389/fmed.2026.1893262/full#supplementary-material
References
Publication and source details
Original title: Development and internal validation of an interpretable machine learning-based risk stratification model for sarcopenic obesity in patients with type 2 diabetes mellitus
Ting Shi; Xiaohong Liu; Meiling Fu; Yuxuan Lu; Qi Li; Jie Zou; Yinqin Zhong; Yun Chen
Frontiers in Medicine · 2026
* Correspondence: Yinqin Zhong 641296484@qq.com Yun Chen chenyun15813833533@163.comThese authors have contributed equally to this work
Repository JATS snapshot; version as supplied
Source retrieved: 2026-11-26T21:18:21.522651+00:00
DOI: 10.3389/fmed.2026.1893262 · PMC13770812
