Editor’s introduction
The model achieved an AUC-ROC of 0.868 in internal validation, showing better discrimination than the Caprini score, with a difference of 0.182 in AUC and a net reclassification improvement of 0.559. Performance was assessed through AUC-ROC, calibration metrics, and decision curve analysis, with bootstrap resampling used to evaluate internal validity. The model demonstrated good calibration and clinical utility in the cohort of 1,450 patients, with 14.1% developing postoperative VTE.
Introduction
Venous thromboembolism (VTE), encompassing deep vein thrombosis (DVT) and pulmonary embolism (PE), remains a leading cause of preventable mortality among hospitalized patients. Globally, an estimated 10 million individuals experience VTE annually, with PE ranking among the top causes of cardiovascular death in the United States. Patients with VTE face prolonged hospitalization, increased 30-day readmission rates, and delayed recovery.
Traumatic brain injury (TBI) affects approximately 50 million individuals globally each year and is an independent risk factor for VTE through multifactorial pathophysiological mechanisms. Patients with TBI who undergo surgical intervention face particularly elevated VTE risk due to venous stasis from general anesthesia and intraoperative immobilization, postoperative mobility restrictions, tissue injury-induced inflammation and coagulation pathway activation, and neurological impairment that limits early rehabilitation. Studies indicate that patients with multitrauma and TBI exhibit significantly higher VTE incidence compared to those without TBI, attributable to disease complexity and delayed early interventions. However, thromboprophylaxis decisions in patients with TBI remain uniquely challenging: clinicians must carefully balance the risk of thromboembolism against potential intracranial hemorrhagic complications, often leading to delayed or omitted anticoagulant prophylaxis in high-risk surgical patients.
The special characteristics of TBI patients limit the applicability of conventional VTE prediction tools. First, TBI patients have distinct pathophysiology compared to patients with cancer, medical illnesses, or general surgical conditions—the two populations in which most existing VTE models were developed. Second, neurosurgical patients face an elevated bleeding diathesis in the context of brain parenchyma and subdural/subarachnoid hematomas, making risk assessment more nuanced than simple thrombosis scoring. Third, established VTE prediction instruments such as the Caprini and Padua scores rely heavily on subjective historical risk factors and fail to account for anatomical factors specific to neurosurgical trauma populations, including limb injury severity, preoperative functional dependence, and perioperative biochemical parameters. Therefore, a precise risk stratification model tailored to this population may assist clinicians in identifying patients who require intensified surveillance, early mobilization strategies, or individualized VTE prevention strategies while minimizing unnecessary hemorrhagic complications.
Study population and surgical procedures
This study consecutively enrolled patients with traumatic brain injury (TBI) who underwent surgical intervention at Affiliated Hospital of Putian University between October 2016 and December 2024. TBI was defined as any brain injury resulting from external mechanical force, confirmed by CT imaging. Surgical intervention included craniotomy for hematoma evacuation, decompressive craniectomy, skull fracture repair, and intracranial pressure monitor placement.
Surgical interventions were classified into four mutually exclusive categories based on the primary operative intent: craniotomy for hematoma evacuation (epidural, subdural, or intraparenchymal hematoma), decompressive craniectomy (with or without hematoma evacuation), debridement and elevation of depressed or open skull fractures, and isolated invasive intracranial pressure (ICP) monitor placement.
Of note, while invasive ICP monitor placement is frequently performed at the bedside in some international health systems, institutional surgical governance and national neurotrauma infection control guidelines in China mandate that all invasive ICP monitor insertions (including intraparenchymal probe placement and external ventricular drain [EVD] insertion via burr hole) be conducted within the sterile, laminar-flow operating theater under formal surgical scheduling.
Feature selection
Candidate predictors were predefined based on VTE pathophysiology and clinical availability, organized into domains corresponding to Virchow’s triad. Recursive Feature Elimination (RFE) with logistic regression was used as a secondary dimensionality reduction strategy within cross-validation folds. Seven features were selected: age, Barthel index, ASA classification ≥3, multiple surgeries, general anesthesia, limb AIS score, and serum magnesium levels.
Injury severity was comprehensively assessed at baseline using the GCS, the Injury ISS, and AIS scores across all anatomical domains: Head, Face, Thorax, Abdomen, Spine, and Extremities/Pelvic girdle. During the RFE procedure, non-extremity AIS scores (Thorax, Abdomen, Spine) and composite ISS were eliminated due to lower relative feature weights and collinearity. Head AIS exhibited minimal discriminative variance because severe cranial injury was an entry criterion for neurosurgical intervention. Limb AIS was retained as the optimal anatomical injury metric, capturing both severe localized endothelial injury and immobilization-induced venous stasis.
Principal findings
This study developed and internally validated an interpretable clinical prediction model for postoperative VTE specifically tailored to patients with TBI undergoing neurosurgical procedures. The LR model showed comparable discrimination with favorable interpretability and stability of discrimination (AUC-ROC: 0.868; 95% CI: 0.815–0.920), calibration (slope: 0.95; intercept: −0.06; Brier score: 0.085), and interpretability in the internal validation cohort, with net clinical benefit on DCA. Bootstrap validation with 1,000 iterations confirmed internal validity, yielding an optimism-corrected AUC of 0.861 (95% CI: 0.841–0.881) and optimism of 0.026, indicating stable model performance. Compared with an available Caprini-based assessment (AUC: 0.686), the proposed model achieved significant reclassification improvement (NRI: 0.559; IDI: 0.159), with 5.0% of VTE events correctly up-classified and 90.4% of non-events correctly down-classified, though 39.3% of events were down-classified. Seven clinically accessible features were identified as key predictors: age, BI, ASA classification, multiple surgeries, general anesthesia, limb AIS score, and serum Mg2 + levels. Serum Mg2 + exhibited a dose–response relationship with VTE risk across quartiles (P-trend < 0.001), further supported by restricted cubic spline analysis showing an approximately linear inverse association (P for nonlinearity = 0.153), with each 0.1 mmol/L decrease associated with 52% increased VTE odds in the adjusted model (OR: 1.515; 95% CI: 1.281–1.785). This model integrates neurological function (BI), injury severity (limb AIS), and biochemical parameters (serum Mg2+) to provide an interpretable bedside tool for postoperative VTE risk stratification via a user-friendly nomogram, prediction equation, and web-based calculator. Previous studies have shown that patients with moderate-to-severe traumatic brain injury remain at substantial risk of venous thromboembolism, although reported incidence varies according to screening strategy and prophylaxis practice.
Why was logistic regression selected as the final model?
Although CatBoost achieved the numerically highest AUC-ROC (0.869) in the validation set, LR was selected as the final model based on its comparable discrimination, favorable interpretability, and stability. Several factors support this decision. First, LR demonstrated comparable discrimination (AUC-ROC: 0.868) with balanced calibration performance (slope: 0.95; intercept: −0.06), and although the Brier scores were similar (LR: 0.085 vs. CatBoost: 0.089), LR provided more transparent probability estimation that can be directly inspected and corrected if needed—whereas ensemble models require post-hoc calibration adjustments. Both models showed comparable net clinical benefit on DCA, indicating that the marginal AUC difference (0.005) does not translate to meaningful clinical advantage. Second, LR provides naturally interpretable coefficients that can be directly translated into a nomogram, facilitating clinical trust and bedside implementation—whereas ensemble methods require additional post-hoc interpretability tools. Third, the event number in this dataset was 205 (VTE rate: 14.1%), and according to established guidelines for prediction model development, an optimal balance between model complexity and event density favors parsimonious models when events are limited. Fourth, our sensitivity analysis revealed that while SMOTE oversampling modestly enhanced sensitivity (from 85.2 to 91.8%), it degraded specificity (from 78.3% down to 68.7%) and impaired calibration (Brier score increasing from 0.085 to 0.138), further confirming that the unresampled logistic regression model provides the most clinically safe and reliable risk estimates.
These findings suggest that LR showed consistent performance between cross-validation and validation in this moderate-sized cohort. LR was positioned as the preferred model for this clinical application because of its robustness, transparency, and clinical actionability in a moderate-sized TBI cohort.
Comparison with existing VTE risk scores
Existing clinical prediction instruments have inherent limitations when applied to neurosurgical trauma cohorts. In particular, the Padua score was developed specifically for non-surgical medical inpatients, making it clinically inapplicable to acute surgical trauma. While the Caprini score was designed for surgical populations, it relies heavily on historical risk factors that are often missing in emergency trauma admissions and does not incorporate neurotrauma-specific anatomical injury burden or post-injury functional dependence. General risk scores such as the Caprini and Padua models were developed in broad surgical or medical populations rather than neurosurgical trauma cohorts, which may limit their transportability to patients with TBI. In direct comparison, the Caprini score achieved an AUC of 0.686 in our validation cohort, whereas the proposed LR model achieved an AUC of 0.868 (DeltaAUC = 0.182). Beyond discrimination, the proposed model showed improved discrimination compared with an available Caprini-based assessment, with a category-based NRI of 0.559 (95% CI: 0.351–0.768) and an IDI of 0.159 (95% CI: 0.089–0.229). Among VTE events, 5.0% were correctly up-classified to higher risk categories by the proposed model, while only 39.3% were incorrectly down-classified. It is noteworthy that while the overall NRI demonstrated significant net clinical reclassification (0.559), the event-specific NRI was negative (−0.344), balanced by a remarkably high non-event NRI (0.904). In surgical trauma populations, conventional scores such as the Caprini RAM universally assign nearly all patients into the ‘highest-risk’ category due to mandatory points awarded for major surgery, bed rest, and trauma. Consequently, Caprini acts as an unselective screening tool with near-zero specificity. Our model successfully reclassified over 90% of non-VTE patients out of the highest-risk group without compromising overall discriminative power (AUC 0.868 vs. 0.686). Although 39.3% of VTE events were reclassified from high to intermediate risk, the model retained an overall negative predictive value of 96.9% at the 10% threshold, demonstrating that the primary clinical utility of our tool lies in drastically curbing unnecessary interventions and overtreatment in low-to-intermediate risk neurotrauma patients.
The comparison should be interpreted cautiously because several Caprini components (e.g., history of thrombophilia, previous VTE, family history) were unavailable retrospectively and treated as absent. Therefore, the improvement over Caprini should be interpreted cautiously and requires validation using complete Caprini assessment in prospective studies. This comparison was intended as an exploratory benchmarking analysis rather than a definitive superiority assessment. This moderate incremental improvement in both discrimination and reclassification suggests that the proposed model may provide clinically useful risk stratification for TBI surgical patients, while acknowledging these limitations in the comparator. Nevertheless, NRI and IDI can be sensitive to risk categorization and should therefore be interpreted together with discrimination, calibration, and clinical utility measures. Our model addresses the limitations of existing tools by incorporating TBI-specific variables (limb AIS score, BI) and objective biochemical parameters (serum Mg2 + levels), alongside conventional clinical risk factors (age, ASA classification, surgical burden).
Proposed clinical decision pathway
This risk-stratified approach aligns with the concept that not all TBI surgical patients require the same level of VTE surveillance intensity. By concentrating resources on intermediate and high-risk patients, the model may improve the efficiency of postoperative VTE management while minimizing unnecessary interventions in low-risk patients.
The seven selected predictors demonstrate strong biological plausibility and synergistic alignment with Virchow’s classic triad: (1) Venous Stasis & Muscle Pump Dysfunction (Barthel Index and General Anesthesia): Lower preoperative Barthel Index scores reflect severe physical immobility and prolonged bed rest, eliminating the lower-extremity skeletal muscle pump mechanism that maintains venous return. Furthermore, general anesthesia suppresses vascular tone and spontaneous muscle contractions, compounding venous pooling in the deep lower extremity veins. (2) Vascular Injury & Anatomical Trauma Burden (Limb AIS): Severe extremity trauma (Limb AIS ≥ 3) imposes direct mechanical vascular injury, local endothelial disruption, and hematoma-induced venous compression, which dramatically heightens local thrombotic risk compared to isolated cranial trauma. (3) Surgical Stress & Depleted Reserve (Multiple Surgeries and ASA Status): Undergoing multiple surgical procedures reflects repeated anesthetic exposure, prolonged immobilization, and persistent systemic inflammation. Similarly, ASA classification ≥ 3 denotes reduced physiologic reserve and a prothrombotic systemic milieu. (4) Endothelial and Hemostatic Stability (Serum Mg2 + and Age): Advanced age is an established driver of vascular stiffness and hypercoagulability. Simultaneously, hypomagnesemia serves as a biochemical surrogate for endothelial dysfunction, platelet hyperreactivity, and systemic inflammatory stress. Rather than relying on any single biomarker, the model derives its predictive strength from integrating host, anatomical, surgical, and biochemical risk dimensions.
Our findings demonstrated that procedural invasiveness directly correlates with postoperative VTE risk: patients undergoing major cranial vault openings (decompressive craniectomy, 18.8%; open craniotomy, 14.2%) exhibited substantially higher thrombosis rates compared to those undergoing isolated ICP monitor placement (7.8%) or localized skull fracture debridement (7.7%). This disparity reflects prolonged operative immobilization, extensive bone flap removal, muscle dissection, and the metabolic impact of general endotracheal anesthesia, which collectively promote venous stasis and tissue factor release.
Exploratory association between serum magnesium and VTE risk
The association between low serum Mg2 + levels and increased VTE risk represents an exploratory finding rather than a definitively novel discovery. Although direct coagulation laboratory data were unavailable in this cohort, narrative reviews have documented that magnesium plays a role in hemostasis through modulation of endothelial function and the coagulation cascade. A sensitivity analysis comparing the full 7-variable model with a reduced 6-variable model excluding Mg2 + showed a modest improvement, suggesting that serum Mg2 + provides incremental but not dominant predictive value. The dose–response analysis provides additional epidemiological support: VTE rates decreased monotonically across Mg2 + quartiles, and restricted cubic spline analysis confirmed an approximately linear inverse relationship (P for nonlinearity = 0.153). Each 0.1 mmol/L decrease was associated with 52% increased VTE odds in the adjusted model (OR: 1.515; 95% CI: 1.281–1.785). The significant inverse correlation between Mg2 + and ASA classification suggests that hypomagnesemia may partly reflect greater physiological stress or systemic illness severity rather than a direct causal pathway. The absence of direct coagulation laboratory data (e.g., D-dimer, fibrinogen) limits mechanistic interpretation. Whether magnesium supplementation could modify VTE risk requires prospective investigation, and this finding should be interpreted as hypothesis-generating rather than practice-changing.
Implications for future VTE risk stratification in neurosurgical trauma
The present study suggests that TBI surgical patients require a dedicated VTE risk stratification approach that goes beyond general surgical risk scores. The Caprini and Padua scores were developed for broad surgical and medical populations and do not account for the unique pathophysiology of neurosurgical trauma, including prolonged immobility due to neurological impairment, the competing risk of intracranial hemorrhage, and the systemic inflammatory cascade triggered by brain injury. Our model does not aim to replace these established tools, but rather to complement them by incorporating TBI-specific dimensions: neurological functional status (Barthel index), injury severity (limb AIS), and biochemical parameters (serum Mg2+).
The retention of serum Mg2 + as a predictive feature in the final model may warrant further mechanistic investigation. If confirmed in prospective studies with dedicated coagulation and inflammatory panels, Mg2 + may serve as a useful component of risk stratification. However, the current evidence is insufficient to support magnesium supplementation for VTE prevention.
From a healthcare systems perspective, the proposed risk-stratified approach could optimize resource allocation: concentrating Doppler surveillance and VTE prevention strategies on intermediate and high-risk patients while reducing unnecessary interventions in the low-risk majority. Future studies should evaluate the cost-effectiveness of this approach and its impact on clinical outcomes through prospective implementation trials.
Conclusion
This study developed and internally validated an interpretable prediction model for postoperative venous thromboembolism in patients with traumatic brain injury undergoing neurosurgical intervention. A logistic regression model incorporating seven routinely available variables—age, Barthel index, ASA classification, multiple surgeries, general anesthesia, limb AIS score, and serum magnesium—demonstrated good discrimination, calibration, and clinical utility in the internal validation cohort. Compared with an available Caprini-based assessment, the proposed model showed improved risk stratification in this neurosurgical trauma population. The resulting nomogram, prediction equation, and web-based calculator provide practical tools for individualized postoperative VTE risk assessment and may help guide surveillance intensity and preventive strategies. The inverse association between serum magnesium and VTE risk is exploratory and warrants further investigation. External multicenter validation and prospective implementation studies are needed to confirm generalizability, refine decision thresholds, and determine whether model-guided management can improve clinical outcomes.


