This study was reviewed and approved by the Medical Ethics Committee of Shanghai Eighth People’s Hospital, Shanghai, China (approval number 2026-102-03-02). Because this study was a retrospective study and all data had been de-identified before analysis, the ethics committee waived informed consent from patients.
Study design:
Study type
This study was a single-center retrospective cohort study, and the study database was established using data from the hospital's picture archiving and communication system (PACS), radiology information system (RIS), and electronic medical record system. The study population comprised consecutive patients who underwent thoracolumbar lateral digital X-ray examination at the hospital. The inclusion period extended from January 1, 2018, to December 31, 2023, and the follow-up deadline was December 31, 2025. The study report followed the TRIPOD+AI and STROBE recommendations to ensure the reporting standardization of prediction model studies involving artificial intelligence and observational studies.
Study setting and case source
Cases were derived from the routine clinical diagnosis and treatment process of outpatients, emergency patients, and inpatients in the hospital. Imaging data were all derived from original DICOM files in PACS, and clinical data were derived from structured electronic medical records, laboratory systems, and prescription records. The date of the first thoracolumbar lateral X-ray examination that met the inclusion criteria during the study period was defined as the baseline date; when the same patient had multiple examinations meeting the criteria, only the earliest one was retained as the baseline examination to avoid repeated enrollment. All data were de-identified before analysis, and imaging and clinical information were matched using a unique study identification number.
Study population:
Inclusion criteria
The inclusion criteria were as follows: age 50 years or older; completion of standard standing thoracolumbar lateral digital X-ray examination in the hospital during the study period; baseline imaging in traceable DICOM format; complete visualization of the T10 to L4 vertebrae on baseline imaging; no existing vertebral fracture from T10 to L4 on review of baseline imaging; extractable prespecified baseline clinical variables from electronic medical records; at least 1 follow-up thoracolumbar X-ray, CT, or MRI examination within 24 months after baseline, or occurrence of an imaging-confirmed new vertebral fracture within 24 months.
Exclusion criteria
The exclusion criteria were as follows: vertebral fracture from T10 to L4 at baseline; a definite history of high-energy violent injury at baseline or during follow-up; primary or metastatic spinal tumor, spinal infection, or destructive bone disease; previous thoracolumbar internal fixation surgery, vertebroplasty, or kyphoplasty; scoliosis with a Cobb angle greater than 30° or obvious kyphotic deformity (including Scheuermann-type kyphotic deformity, if present) resulting in inability to accurately identify the endplates from T10 to L4; obvious motion artifact, abnormal exposure, metal occlusion, or insufficient display range on imaging; inability to confirm key baseline variables or outcome information from electronic medical records.
Retrospective cohort construction process
Study population screening was independently completed by two researchers according to the prespecified criteria, and disagreements were resolved by discussion to reach consensus. After case screening was completed, time-series grouping was performed according to the baseline date: patients enrolled from January 1, 2018, to December 31, 2021, constituted the derivation cohort for feature selection and model construction; patients enrolled from January 1, 2022, to December 31, 2023, constituted the internal validation cohort for model performance evaluation. Time splitting rather than random splitting can reduce the risk of information leakage and is closer to the real application scenario of the model in subsequent patients. The study population screening process is presented in the form of a flowchart.
Primary outcome and its determination:
Definition of the primary outcome
The primary outcome of this study was the first incident fragility vertebral fracture from T10 to L4 within 24 months after baseline. The prediction time window of the study was prespecified as 2 years, and the model output was the individual risk probability of incident vertebral fracture within 2 years.
Criteria for the determination of an incident vertebral fracture
Incident vertebral fracture was defined as follows: relative to baseline imaging, follow-up imaging showed a decrease of 20% or more in the anterior, middle, or posterior height of any vertebral body from T10 to L4, with an absolute height reduction of at least 4 mm, or the appearance of new endplate collapse or cortical interruption10. Outcome determination was made comprehensively based on follow-up thoracolumbar X-ray, CT, and MRI. Image reading was performed independently by 2 musculoskeletal radiologists, with 8 years and 12 years of relevant diagnostic experience, respectively, and neither had access to clinical data or model output results during image reading; if disagreement occurred, adjudication was made by 1 senior musculoskeletal radiologist with 18 years of experience. Vertebral fractures caused by tumor, infection, or high-energy violence were not counted as outcome events.
Follow-up start point, end point, and observation window
The follow-up start point was the date of the baseline thoracolumbar lateral X-ray examination. The follow-up endpoint was defined as the earliest of the following time points: the date of the first incident vertebral fracture, 24 months after baseline, the date of the last spinal imaging examination confirming no vertebral fracture, or the date of death. Fractures first appearing after 24 months were not included in the primary outcome. Patients without outcome events were treated as censored.
Collection of clinical data and definition of candidate clinical variables:
Demographic and general clinical data
Baseline clinical data were extracted from the electronic medical record system by two researchers according to a unified case report form, without reviewing the outcome determination results during extraction. The collected demographic and general clinical data included age, sex, height, weight, and body mass index. Age was defined as the actual age on the baseline date; weight and height were taken from the record closest to the baseline date within 30 days before or after the baseline date; body mass index was calculated as weight divided by height squared, in kilograms per square meter.
Medical history, medication use, and bone metabolism-related data
Based on clinical availability and model generalizability, the following candidate clinical risk factors were prespecified for inclusion: previous fragility fracture history, type 2 diabetes mellitus, rheumatoid arthritis, chronic oral glucocorticoid use, and baseline anti-osteoporosis treatment. Standardized baseline bone mineral density measurements and the FRAX score were not prespecified candidate predictors because they were not uniformly available as standardized baseline variables across the whole cohort; several FRAX-related clinical factors were instead considered separately as individual candidate variables. Previous fragility fracture history, diagnosis of underlying diseases, and medication information were all derived from electronic medical records, discharge records, and prescription systems before baseline, and all variables were required to have existed before baseline to ensure that the predictors temporally preceded the outcome event.
Definition criteria for clinical variables
Previous fragility fracture history was defined as a fracture occurring after the age of 40 years, caused by low-energy injury, and clearly recorded in the medical record; skull, facial bone, finger bone, and toe bone fractures were not included in this definition. Type 2 diabetes mellitus was defined as a clear diagnosis recorded before baseline, or long-term use of hypoglycemic drugs. Rheumatoid arthritis was defined as a clear diagnosis made by a rheumatology specialist in the medical record. Chronic oral glucocorticoid use was defined as a prednisone equivalent dose of not less than 5 mg/d for not less than 3 months within 1 year before baseline. Baseline anti-osteoporosis treatment was defined as continuous use of any of bisphosphonates, denosumab, teriparatide, raloxifene, calcitonin, alfacalcidol, or calcitriol within 3 months before baseline, for a duration of not less than 8 weeks. Age and body mass index were treated as continuous variables in modeling and were not artificially categorized.
Imaging data acquisition and image preprocessing
Thoracolumbar lateral X-ray acquisition protocol
All baseline images were standard standing thoracolumbar lateral X-rays acquired by the hospital's digital radiography system. During examination, patients assumed a natural standing position, with both upper limbs flexed forward to reduce shoulder overlap, and the imaging range covered T10 to L4. Automatic exposure control was used for examination, with a tube voltage range of 80–95 kV and a source-to-image distance of 110 cm. For the same patient, when multiple eligible lateral radiographs were available on the baseline date, the one with a complete display range and the best image quality was selected as the analysis object.
Image inclusion criteria and quality control
Baseline images were required to meet the following quality requirements: complete visualization of the T10 to L4 vertebrae and their upper and lower endplates; clear vertebral anterior and posterior margins, endplates, and cortical boundaries; no obvious motion artifact; no severe overexposure or underexposure; no large-area metal occlusion; and no obvious morphological distortion caused by body position rotation. Images with severe degenerative change or osteophytes that precluded reliable identification of vertebral margins or endplates were also excluded. Two musculoskeletal radiologists performed quality review of all baseline images, and any image failing to meet any key quality criterion was excluded.
Image preprocessing and standardization
All DICOM images were anonymized before analysis. The preprocessing steps included unifying image orientation, resampling to a spatial resolution of 0.30 mm × 0.30 mm, truncating grayscale values between the 0.5th percentile and the 99.5th percentile, and standardizing pixel values to the 0–1 interval using the min-max normalization method. The above preprocessing workflow was kept consistent in the derivation cohort and the validation cohort, and was all automatically completed by prespecified scripts to reduce bias caused by manual operations.
Deep learning imaging feature extraction:
Region of interest determination
The region of interest was the lateral projection region of the spine between the upper endplate of T10 and the lower endplate of L4. One musculoskeletal radiologist with 8 years of experience completed rectangular box annotation of all baseline images in ITK-SNAP software, with the anterior boundary set 5 mm anterior to the vertebral anterior margin and the posterior boundary set 5 mm posterior to the vertebral posterior margin11; another musculoskeletal radiologist with 12 years of experience reviewed the images case by case. The ROI was a region-level rectangular box rather than a strict vertebral contour segmentation; therefore, common marginal osteophytes were not separately removed and could be partially included if they fell within the prespecified boundary, whereas cases with degenerative change severe enough to obscure the vertebral margins or endplates had already been excluded during image quality review. To evaluate the reproducibility of region annotation, 50 images were randomly selected and re-annotated by the same radiologist after 4 weeks, and independently re-annotated by the second radiologist, for subsequent feature stability analysis. After ROI cropping, all images were uniformly resized to 224 × 224 pixels.
Deep learning model architecture and feature extraction process
This study used the ResNet50 convolutional neural network as the deep learning feature extractor. The network parameters were initialized with ImageNet pretrained weights, and self-supervised domain adaptation was performed on all baseline ROI images in the derivation cohort, without using outcome labels during the adaptation process. Specifically, a contrastive self-supervised task was used, in which two independently augmented views generated from the same ROI image were treated as a positive pair, whereas views from different patients within the same mini-batch were treated as negative pairs, so that the encoder could adapt to the distribution of the study images. Model training used the AdamW optimizer, with an initial learning rate set at 1 × 10^-4, a batch size of 64, and 200 training epochs; during training, data augmentation was performed with ±5° rotation, 0.9–1.1-fold scaling, translation of no more than 10 pixels, and contrast perturbation of ±10%12. These augmentations were used to generate paired views for the self-supervised task, and only unlabeled images from the derivation cohort were used at this stage. After domain adaptation, no outcome-supervised fine-tuning was performed, and the adapted backbone encoder was fixed for feature extraction. After completion of domain adaptation, the 2,048-dimensional vector output from the global average pooling layer was extracted as the candidate deep learning features for each patient.
Imaging feature screening and dimensionality reduction
First, the intraclass correlation coefficient of features was calculated based on the 50 images with repeated annotation, and features with both intraobserver and interobserver ICC not lower than 0.80 were retained to ensure the stability of features against slight ROI variation. Subsequently, the retained features were Z-score standardized in the derivation cohort, zero-variance features were removed, and for features with an absolute pairwise correlation coefficient greater than 0.90, only one of them was retained. Finally, LASSO-Cox regression was used for feature selection, and the penalty parameter was determined by 10-fold cross-validation according to the 1-SE criterion. Features with non-zero regression coefficients were weighted and summed according to their coefficients to construct the deep learning score (DL score)13. After this scoring formula was determined in the derivation cohort, it was fixed unchanged and directly applied to the internal validation cohort.
Preprocessing and integration of candidate predictors:
Missing data handling and data standardization
All candidate clinical variables were obtained from structured medical record fields. Variables with a missing rate exceeding 20% were excluded from the modeling process. The remaining missing values were handled using multiple imputation by chained equations, generating 10 imputed datasets; the imputation model incorporated all candidate predictors, the outcome indicator variable, and the Nelson-Aalen cumulative hazard estimate to preserve time-to-event outcome information as much as possible. Continuous clinical variables and the DL score were standardized using the mean and standard deviation of the derivation cohort, and the same transformation parameters were applied to the validation cohort; binary variables were uniformly coded as 0 or 1.
Clinical risk factor selection
The prespecification of candidate clinical risk factors was based on clinical interpretability, previous evidence, and data availability, and univariable P-value screening was not used. The candidate clinical variables entered into LASSO-Cox selection were age, sex, body mass index, previous fragility fracture history, type 2 diabetes mellitus, rheumatoid arthritis, chronic oral glucocorticoid use, and baseline anti-osteoporosis treatment; height and weight were collected descriptively and used to derive body mass index, but were not entered separately into modeling. LASSO-Cox regression was performed separately in the 10 imputed datasets of the derivation cohort, and the penalty parameter was selected using 10-fold cross-validation; variables with non-zero coefficients in at least 7 imputed datasets entered the final clinical model. Age and body mass index were both tested for nonlinear relationships using restricted cubic splines; if the nonlinear term was not statistically significant, the linear form was retained. Multicollinearity was evaluated by the variance inflation factor, and variables with a variance inflation factor greater than 5 were not retained simultaneously.
Construction of the combined predictor set
To avoid overfitting caused by directly entering high-dimensional imaging features into the model, the deep learning information was first compressed into a single continuous variable, the DL score, and then jointly entered into combined modeling together with the selected clinical risk factors. No interaction terms were prespecified in the combined model, so as to maintain model parsimony and interpretability. The final combined predictor set consisted of the DL score and the retained clinical variables.
Risk prediction model construction:
Modeling strategy
In the derivation cohort, the clinical model, the deep learning model, and the combined model were established separately. The models used Cox proportional hazards regression, with the first incident fragility vertebral fracture within 24 months after baseline as the study endpoint, and the censoring rules are described in the above follow-up definition. To control overfitting, the complexity of the combined model was restricted before modeling, and a relatively high event-per-parameter ratio was maintained as much as possible. The final regression coefficients and standard errors of each model were estimated separately in the 10 imputed datasets and then pooled using Rubin's rules. The baseline hazard function was estimated according to the Breslow method, and the individual 2-year risk probability was calculated.
Clinical model construction
The clinical model included the clinical risk factors retained after LASSO-Cox selection. All continuous variables were kept in continuous form and were not dichotomized. After model fitting, the proportional hazards assumption was tested using Schoenfeld residuals; for variables not satisfying the proportional hazards assumption, an interaction term with ln(time) was added for correction. The clinical model was used to characterize the predictive ability of traditional clinical information for incident vertebral fracture.
Construction of the deep learning imaging model
The deep learning model was established as a Cox proportional hazards model using the DL score as the only predictor, to quantify the predictive ability of deep learning features from baseline thoracolumbar lateral X-ray for the risk of incident vertebral fracture within 2 years. This model did not introduce any clinical information, and thus served as an imaging unimodal model for comparison with the other models.
Combined model construction
The combined model further added the DL score on the basis of the clinical model, and constructed a comprehensive prediction model based on deep learning features from thoracolumbar lateral X-ray combined with clinical risk factors. After the combined model was established, a 2-year risk nomogram was drawn according to its regression coefficients for individualized risk estimation and clinical application display.
Internal validation and performance evaluation of the model:
Internal validation method
Internal validation adopted a temporally separated single-center internal validation strategy. All models established in the derivation cohort were directly applied to the validation cohort enrolled from January 1, 2022, to December 31, 2023, after parameters were fixed, without refitting. In addition, 1,000 bootstrap resamples were performed within the derivation cohort to obtain optimism-corrected performance estimates, so as to evaluate model stability.
Discrimination evaluation
Model discrimination was evaluated by the Harrell concordance index and the 2-year time-dependent AUC calculated based on the inverse probability of censoring weighting method, both with 95% confidence intervals reported. Higher discrimination indicates that the model is better able to distinguish individuals who will and will not develop incident vertebral fractures in the future. Differences in discrimination between models were calculated using the bootstrap method with 95% confidence intervals.
Calibration evaluation
Model calibration was evaluated using the 2-year risk calibration curve, calibration intercept, calibration slope, and 2-year Brier score. The calibration curve was plotted based on deciles of predicted risk and was bootstrap-corrected. A calibration intercept close to 0, a calibration slope close to 1, and a lower Brier score indicate good agreement between the predicted risk and the actually observed risk.
Evaluation of clinical application value
The clinical application value of the model was evaluated by a 2-year decision curve analysis, comparing the net benefit under different threshold probabilities. The threshold probability range was prespecified as 0.05–0.30 to cover the risk interval that may be used clinically for intensified follow-up, further bone assessment, or intervention management14. A model with a higher net benefit was considered to have better clinical decision support value.
Model comparison and determination of the best model
The clinical model, deep learning model, and combined model were comprehensively compared by discrimination, calibration, Brier score, and decision curve. The gain of the combined model relative to the clinical model was further quantified using the 2-year time-dependent net reclassification improvement and integrated discrimination improvement. The best model was prespecified as the model that simultaneously had higher discrimination, good calibration, lower prediction error, and greater net benefit.
Statistical Analysis:
Continuous variables were initially evaluated for distribution pattern using the Shapiro-Wilk test; those conforming to a normal distribution were presented as mean ± standard deviation, whereas those with a skewed distribution were reported as median and interquartile range; categorical variables were presented as number of cases and percentage. Comparisons of baseline characteristics between the derivation cohort and the validation cohort were performed using the independent-samples t test, Mann-Whitney U test, χ2 test, or Fisher's exact test, respectively. Baseline comparisons were used only to describe cohort characteristics and were not used as a basis for variable selection. All statistical tests were two-sided, and P < 0.05 was considered statistically significant. Statistical analyses were completed in R software, mainly using the survival, glmnet, mice, rms, timeROC, and rmda packages; image preprocessing and deep learning analysis were completed in the Python and PyTorch environment. To evaluate the robustness of the results, a complete-case analysis was additionally performed as a sensitivity analysis.