This retrospective study was approved by the Institutional Review Board (IRB) of Tongji Hospital, Tongji Medical College, Huazhong University of Science and Technology (approval no. TJ-IRB20250926; approved on September 26, 2025), and the requirement for informed consent was waived owing to the retrospective design. All procedures involving human participants adhered to the ethical standards of the Declaration of Helsinki. The overall study design, from patient selection to the HbA1c analyses, is shown in Figure 1.

Figure 1. Overall study design. The flow chart summarizes patient selection, chest CT acquisition, automatic segmentation and radiomics feature extraction, feature selection and XGBoost model development, and model evaluation and interpretation. AUC, area under the curve; ICC, intraclass correlation coefficient; LASSO, least absolute shrinkage and selection operator; mRMR, Max-Relevance and Min-Redundancy; ROC, receiver operating characteristic; SHAP, Shapley Additive Explanations. Please click here to view a larger version of this figure.
Patients
The typical symptoms of diabetes include excessive thirst, excessive urination, excessive food intake, or unexplained weight loss. In this study, the diagnosis of type 2 diabetes was made by meeting any of the following four criteria: 1) fasting blood glucose (FPG) ≥ 7.0 mmol/L; 2) 2-hour blood glucose ≥ 11.1 mmol/L during an oral glucose tolerance test (OGTT); 3) random blood glucose ≥ 11.1 mmol/L; or 4) HbA1c ≥ 6.5%. Patients with type 2 diabetes who underwent chest CT examinations in the Health Check-up Centers were included in the study.
The criteria for healthy controls were as follows: 1) no diabetes; 2) no organic or functional diseases of the cardiovascular, respiratory, digestive, neurological, endocrine, immune, urinary, or other systems; 3) no acute or chronic infection; 4) normal blood routine test, urine routine test, liver and kidney function, electrolytes, blood lipids, and coagulation function; 5) no abnormalities on electrocardiogram, chest X-ray, or ultrasound; 6) no depression, anxiety, or schizophrenia; 7) no intake of sedatives, hormones, or antibiotics within the past 3 months; 8) no history of alcohol, drug, or substance abuse; and 9) no history of recent surgery or trauma. Healthy controls who underwent chest CT examinations in the Health Check-up Centers were included in the study.
Finally, 100 patients with diabetes and 100 healthy controls were included in the study, and they were strictly matched by age and sex.
Chest CT examination
Noncontrast chest CT was performed using scanners from four manufacturers at four health check-up centers. The acquisition parameters were as follows: slice thickness, 0.625–1.25 mm; tube voltage, 120 kVp; tube current, automatic dose modulation (ADM); field of view (FOV), typically 40–45 cm; pitch, 1.0–1.5; and matrix size, typically 512 × 512. Patients were instructed to inhale deeply and hold their breath during scanning to minimize respiratory motion artifacts.
Image analysis
The chest CT data were transferred to a dedicated workstation for automatic bone segmentation and radiomics feature extraction. The workstation was equipped with a consumer-grade graphics processing unit (see Table of Materials for software and hardware details). The following structures were automatically segmented in this study: the T1–T11 vertebrae, bilateral scapulae, and sternum; the liver, spleen, bilateral deep back muscles, and spinal cord were also segmented, so that 19 structures were analyzed in total. We resampled all CT volumes to a unified isotropic voxel size of 1 mm × 1 mm × 1 mm to eliminate variations in native pixel spacing and slice thickness, which strongly affect texture features of trabecular bone. Discretization converts continuous Hounsfield unit (HU) values into discrete bins before extracting texture radiomic features. It is a critical preprocessing step, especially when images come from different CT scanners, as scanner differences can shift HU distributions and alter bin counts/edges, which directly changes texture features. HU values were binned with a constant interval (bin width = 25 HU). Ninety-three radiomics features were extracted from each structure with the radiomics module of 3D Slicer (PyRadiomics, version 3.0.1), yielding 1,767 features in total (93 features × 19 structures). Radiomics features were standardized using Z-score standardization by subtracting the mean from each feature value and dividing by the standard deviation. The features comprised first-order statistics and higher-order texture features based on the gray-level co-occurrence, gray-level dependence, gray-level run-length, gray-level size-zone, and neighboring gray-tone difference matrices and followed the definitions of the Image Biomarker Standardization Initiative (IBSI)14.
The whole automatic segmentation and feature-extraction procedure was repeated on all 200 chest CT scans one month later with the same software and settings to assess measurement stability. The intraclass correlation coefficient (ICC) was calculated for each feature. The HbA1c values of the 100 patients with diabetes were obtained from their health check-up records.
Feature selection, prediction model, and SHAP analysis
Standard ComBat was used to correct scanner-related batch effects. The four scanner batches corresponded to GE, Siemens, Philips, and United Imaging, with one scanner used at each of the four participating centers. The four batches comprised 44, 62, 51, and 43 participants, respectively. Radiomics features were compared between patients with diabetes and healthy controls using independent-samples t tests, with an unadjusted significance threshold of p < 0.01 used to identify differential radiomics features. Receiver operating characteristic (ROC) curves were used to evaluate the discriminatory performance of individual features, and the area under the curve (AUC) was calculated for each feature.
Max-Relevance and Min-Redundancy (mRMR) was used to select 20 features because it evaluates the relevance of each feature to the outcome and the redundancy among features simultaneously, which is suitable for high-dimensional radiomics data. The least absolute shrinkage and selection operator (LASSO) was further used for feature selection because its L1 regularization shrinks the coefficients of redundant features to zero and reduces overfitting in small samples. The LASSO penalty parameter λ was determined using 5-fold cross-validation, and the λ corresponding to the minimum cross-validated mean squared error was selected. Extreme gradient boosting (XGBoost) was then used to establish the prediction model based on the features selected by LASSO; XGBoost is an ensemble of decision trees that captures non-linear relationships and interactions, and its built-in regularization controls model complexity, which suits the moderate sample size of this study15. XGBoost was implemented with the default hyperparameters of the library (100 boosting rounds, maximum tree depth 6, and learning rate 0.3), and no additional hyperparameter tuning was performed. The training and internal-validation cohorts were divided according to an 8:2 ratio using the train_test_split function from the scikit-learn package in Python. Samples were randomly shuffled before partitioning, with random_state=42 specified to ensure reproducibility. All feature-selection steps were performed within the training cohort only; the internal-validation and external-test cohorts were kept independent of feature selection and model training. The model AUC was calculated on the training, internal-validation, and external-test data (25 patients with diabetes and 25 healthy controls from another center). The SHAP method was then used to explain the XGBoost model; SHAP assigns each feature an additive contribution to each individual prediction on the basis of cooperative game theory, providing both global and local interpretability16.
Statistical analysis
All statistical analyses were performed with Python (version 3.11) through the Anaconda environment. The 1,767 radiomics features were correlated with HbA1c using Pearson correlation. Features with |Pearson correlation coefficient| > 0.25 were used as candidate predictors of HbA1c. Multiple linear regression and XGBoost regression were then used to predict HbA1c from the radiomics features. The hyperparameters for XGBoost regression were as follows: "n_estimators": 200, "learning_rate": 0.05, "max_depth": 3, "min_child_weight": 3, "gamma": 0.1, "subsample": 0.8, "colsample_bytree": 0.8, "reg_alpha": 0.2, "reg_lambda": 1.0, "objective": "reg:squarederror", "eval_metric": "rmse", "random_state": 42, and "verbosity": 0. In the study, a two-sided p < 0.05 was considered statistically significant.