BACKGROUND CONTEXTIntraoperative blood loss is a significant concern in patients with metastatic spinal disease. Early identification of patients at high risk of experiencing massive intraoperative blood loss is crucial as it allows for the development of appropriate surgical plans and facilitates timely interventions. However, accurate prediction of intraoperative blood loss remains limited based on prior studies. PURPOSEThe purpose of this study was to develop and validate a web-based artificial intelligence (AI) model to predict massive intraoperative blood loss during surgery for metastatic spinal disease. STUDY DESIGN/SETTINGAn observational cohort study. PATIENT SAMPLETwo hundred seventy-six patients with metastatic spinal tumors undergoing decompressive surgery from two hospitals were included for analysis. Of these, 200 patients were assigned to the derivation cohort for model development and internal validation, while the remaining 76 were allocated to the external validation cohort. OUTCOME MEASURESThe primary outcome was massive intraoperative blood loss defined as an estimated blood loss of 2,500 cc or more. METHODSData on patients’ demographics, tumor conditions, oncological therapies, surgical strategies, and laboratory examinations were collected in the derivation cohort. SMOTETomek resampling (which is a combination of Synthetic Minority Oversampling Technique and Tomek Links Undersampling) was performed to balance the classes of the dataset and obtain an expanded dataset. The patients were randomly divided into two groups in a proportion of 7:3, with the most used for model development and the remaining for internal validation. External validation was performed in another cohort of 76 patients with metastatic spinal tumors undergoing decompressive surgery from a teaching hospital. The logistic regression (LR) model, and five machine learning models, including K-Nearest Neighbor (KNN), Decision Tree (DT), XGBoosting Machine (XGBM), Random Forest (RF), and Support Vector Machine (SVM), were used to develop prediction models. Model prediction performance was evaluated using area under the curve (AUC), recall, specificity, F1 score, Brier score, and log loss. A scoring system incorporating 10 evaluation metrics was developed to comprehensively evaluate the prediction performance. RESULTSThe incidence of massive intraoperative blood loss was 23.50% (47/200). The model features were comprised of five clinical variables, including tumor type, smoking status, Eastern Cooperative Oncology Group (ECOG) score, surgical process, and preoperative platelet level. The XGBM model performed the best in AUC (0.857 [95% CI: 0.827, 0.877]), accuracy (0.771), recall (0.854), F1 score (0.787), Brier score (0.150), and log loss (0.461), and the RF model ranked second in AUC (0.826 [95% CI: 0.793, 0.861]) and precise (0.705), whereas the AUC of the LR model was only 0.710 (95% CI: 0.665, 0.771), the accuracy was 0.627, the recall was 0.610, and the F1 score was 0.617. According to the scoring system, the XGBM model obtained the highest total score of 55, which signifies the best predictive performance among the evaluated models. External validation showed that the AUC of the XGBM model was also up to 0.809 (95% CI: 0.778, 0.860) and the accuracy was 0.733. The XGBM model, was further deployed online, and can be freely accessed at https://starxueshu-massivebloodloss-main-iudy71.streamlit.app/. CONCLUSIONSThe XGBM model may be a useful AI tool to assess the risk of intraoperative blood loss in patients with metastatic spinal disease undergoing decompressive surgery.