ORIGINAL RESEARCH article

Front. Med., 07 September 2026

Sec. Intensive Care Medicine and Anesthesiology

Volume 13 - 2026 | https://doi.org/10.3389/fmed.2026.1901505

Performance comparison of different machine learning models to predict the risk of postcraniotomy nausea and vomiting: a retrospective study

  • Department of Nursing, Sir Run Run Shaw Hospital, Zhejiang University School of Medicine, Hangzhou, Zhejiang, China

Abstract

Background:

Machine learning (ML) models were constructed and validated to predict the risk of postoperative nausea and vomiting (PONV) after craniotomy. We compared different algorithms to provide a reliable tool for clinical decision-making.

Methods:

Data from patients who underwent craniotomy at a tertiary hospital in Zhejiang Province between January 1, 2021 and December 31, 2022 were retrospectively collected as the training set. LASSO (Least Absolute Shrinkage and Selection Operator) regression with 10-fold cross-validation was used to screen for key predictors, and four prediction models were established: Logistic Regression (LR), Random Forest (RF), eXtreme Gradient Boosting (XGBoost), and Light Gradient Boosting Machine (LightGBM). Patients from September 1, 2023 to December 22, 2023 served as the temporal validation set. Evaluation of model performance was based on accuracy, precision, specificity, recall, F1-score, Brier score, and the area under the receiver operating characteristic curve (AUC). Temporal validation was performed to assess the generalization of the models and decision curve analysis (DCA) was applied to evaluate clinical utility.

Results:

A total of 768 eligible samples were included, and 14 core predictors were screened by LASSO regression. Of the four constructed risk prediction models, temporal validation based on ML algorithms confirmed that LightGBM achieved optimal comprehensive performance with the highest accuracy, recall, F1-score, and AUC, along with lowest Brier score, indicating that this model had significant advantages in discriminative, calibration, and generalization capabilities. The LR model demonstrated stable performance with high specificity but low recall, indicating a certain risk of missed diagnosis, while the performance of the RF model decreased significantly from the training to validation set, suggesting obvious overfitting and limited clinical application value. The XGBoost model achieved moderate performance, but had a relatively higher Brier score, suggesting moderate prediction error. The DCA results showed that LightGBM offered greater and more stable net benefits across a wider range of clinically relevant threshold probabilities, further supporting its clinical utility.

Conclusion:

LightGBM shows the best overall performance for risk stratification of PONV after craniotomy, and SHAP visualization endows the model with favorable clinical interpretability to facilitate individualized risk prediction.

Introduction

Postoperative nausea and vomiting (PONV) was defined as subjective nausea, vomiting or retching after surgery, symptoms typically develops within 24 h and may persist for up to 48 h or longer in a small number of cases (1, 2). As one of the most common distressing complications following surgical procedures reported by patients, PONV can lead to a series of adverse consequences, including electrolyte disturbance, airway injury, venous hypertension, wound dehiscence, and hematoma at the surgical site (3, 4). The incidence of PONV among patients undergoing neurosurgical craniotomy ranges from 39 to 80% (1, 5–7). During the projectile phase of vomiting, the resulting high intra-abdominal and intrathoracic pressure (>100 mmHg) is directly transmitted to the intracranial cavity, which can induce increased intracranial pressure, elevate the risk of intracranial hemorrhage, and even lead to life-threatening complications, such as cerebral herniation (8–10). These sequelae not only prolong the length of hospital stay but also increase the medical burden. Therefore, accurate identification of patients at high risk of PONV and implementation of individualized preventive strategies are crucial to improve clinical outcomes.

Machine learning (ML) is a hot field in artificial intelligence research that can learn and summarize rules from big data, and construct prediction models by processing large clinical datasets combined with multiple indicators to evaluate outcome risks (11, 12). Many recent studies have employed various ML algorithms to construct and compare models in order to determine the optimal model. As compared to traditional algorithms, ML algorithms can more efficiently process high-dimensional and large-scale data and capture nonlinear relationships among data, thereby more accurately predicting the occurrence of diseases (13). However, most of the currently used risk scores for PONV are universal tools, which have not been validated on a large scale in neurosurgical patients and lack specificity. In China, research on PONV risk prediction models after neurosurgery is relatively recent and there have been no reports on PONV risk prediction models based on ML algorithms or comparisons of the performance of multiple models (12). Therefore, prediction models for postcraniotomy nausea and vomiting were constructed based on four algorithms: logistic regression (LR), random forest (RF), extreme gradient boosting (XGBoost), and light gradient-boosting machine (LightGBM). The selected four algorithms comprehensively cover the spectrum of clinical prediction modeling approaches: from the simple and interpretable (LR) through bagging ensembles (RF) to the state-of-the-art gradient boosting methods (XGBoost, LightGBM). The aim of this study was to identify the optimal prediction model, recognize craniotomy patients at potential risk of PONV as early as possible, formulate individualized preventive measures, and provide a reference for standardized perioperative management.

Materials and methods

Study population and data collection

This single-center retrospective study employed a temporal validation protocol. The training set and validation set were obtained from the same institution but enrolled during different time periods to eliminate sample overlap and ensure independence. All data were collected and managed in strict accordance with the inclusion and exclusion criteria, which guaranteed the reliability of model training and validation.

Patients who underwent craniotomy at a tertiary hospital in Zhejiang Province, China were retrospectively enrolled. Patients enrolled between January 1, 2021 and December 31, 2022 were assigned to the training set, whereas those admitted from September 1, 2023 to December 31, 2023 constituted the temporal validation set for temporal validation. The inclusion criteria were as follows: (1) age ≥ 18 years and (2) hospitalization after craniotomy under general anesthesia. The exclusion criteria were as follows: (1) severe diseases, such as heart failure, liver or kidney failure, or end-stage disease, (2) critically ill patients who underwent tracheostomy, (3) patients who underwent a second surgery for reasons, such as postoperative intracranial hemorrhage, progression of severe cerebral edema, or hydrocephalus, (4) patients who experienced postoperative changes in their condition with nausea and vomiting accompanied by a decreased level of consciousness, changes to pupil size, or changes to muscle strength, (5) patients classified as level 5 according to the American Society of Anesthesiologists’ Physical Status Classification (ASA classification) of 2020, (6) incomplete clinical data, and (7) vulnerable populations, including critically ill patients and pregnant women. The study protocol was approved by the hospital’s ethics committee (Hospital Ethics Review 2023 Research No. 0433).

Outcome definition

The primary outcome was postoperative nausea and vomiting (PONV) occurring within the first 24 h postoperatively. PONV was defined as nausea, retching, or vomiting occurring in the postoperative period. Nausea was defined as a patient-reported subjective sensation of urge to vomit. Vomiting was defined as the observed expulsion of gastric contents or documented retching in the medical records. Retching refers to the dry heaving movement without expulsion of gastric contents, and is considered clinically equivalent to vomiting. (3, 14, 15).

Observation period was the first 24 h after surgery, with data extracted from standardized nursing records and anesthesia charts.

Classification was binary: patients with any documented nausea or vomiting during the observation period were classified as PONV-positive (coded as 1), while those without were classified as PONV-negative (coded as 0).

Study material

Stage 1: clinical pre-selection

Based on a literature review and expert consultation, predictors associated with the risk of postcraniotomy PONV were identified. Data were retrospectively collected by the investigators from the hospital’s electronic medical record system.

The 36 variables mainly included sex, age, body mass index, smoking history, history of motion sickness or PONV, antecedent history, ASA class, preoperative electrolyte indicators (preoperative serum potassium, sodium, chloride, calcium, and blood glucose), operation type, surgical site, surgical time, intraoperative position, drainage tube, hemorrhage, intraoperative transfusion, anesthesia time, anesthetic drug, intraoperative remifentanil dosage, intraoperative sufentanil dosage, intraoperative laboratory examinations (intraoperative blood gas pH, potassium, sodium, chloride, calcium, blood glucose, and lactate), postoperative pain severity, postoperative opioids, postoperative antiemetic, postoperative steroid, neostigmine, and pneumocephalus.

Model prediction time: Given that the earliest PONV onset in the training cohort was 65 min postoperatively. The prediction timepoint of our model is set at 1 h after anesthesia emergence, aiming to predict subsequent PONV events from 1 h to 24 h post-craniotomy. All postoperative predictors including postoperative steroids, opioids, antiemetics, pain scores and pneumocephalus CT results were assessed before the standardized first PONV screening at 1 h post-anesthesia.

Stage 2: LASSO regularization

To reduce dimensionality and prevent overfitting, we applied LASSO (Least Absolute Shrinkage and Selection Operator) with 10-fold cross-validation on the training set. The optimal penalty parameter λ was selected at the minimum cross-validated deviance (λ_min). Features with non-zero coefficients at λ_min were retained.

Sample size calculation

The sample size was estimated using the “events per variable” method. According to expert consensus (12), the incidence of PONV following neurosurgery ranges from 47 to 70%. In this study, 14 predictive variables were finally included after screening by LASSO regression. Assuming a follow-up loss rate of 10%, the estimated total sample size was calculated as follows: (10 × 14 ÷ 0.47) / (1–10%) ≈ 331cases. The training and validation sets included 665 and 103 patients, respectively, which met the sample size requirements of the present study.

Data preparation and preprocessing

The collected data were entered into an Excel file and double-checked to ensure accuracy, followed by standardized data cleaning. Data cleaning was performed following a predefined protocol (16).

Missing data handling

Missing values were addressed using Multiple Imputation by Chained Equations (MICE) with 5 imputations and 20 iterations. Continuous variables were imputed using predictive mean matching (PMM), binary variables using logistic regression, and multi-category variables using multinomial regression.

Sensitivity analysis

Due to the lack of routine intraoperative blood gas tests, the missing rate of relevant indicators exceeded 20%. To verify the reliability of missing data processing methods, we conducted sensitivity analysis. Complete case analysis was performed to assess the robustness of the MICE imputation results.

Feature scaling

Z-score standardization (center and scale) was applied only to the LR model, as tree-based models (RF, XGBoost, and LightGBM) are insensitive to feature scales. The validation set was scaled using training set parameters.

Categorical encoding

One-hot encoding was applied using model.matrix(), with consistent dummy variables ensured across training and validation sets via intersection of common columns.

Outlier management

Outliers were detected using the IQR method (1.5 × IQR). No data points were excluded based solely on outlier status.

Class imbalance treatment

ROSE oversampling was applied when the event rate fell below 20% or exceeded 80%. The training set event rate was 27.22%, and the oversampling was unapplied.

Model construction and evaluation

Model selection

The selection of the four machine learning algorithms—Logistic Regression (LR), Random Forest (RF), XGBoost, and LightGBM—was based on a systematic framework covering four key dimensions: (1) linear vs. non-linear modeling (LR vs. tree-based models); (2) interpretability vs. predictive performance; (3) bagging vs. boosting ensemble paradigms; and (4) comparison of state-of-the-art boosting variants.

LR was included as the clinical gold standard due to its direct interpretability as odds ratios and regulatory acceptance. RF was selected for its bagging ensemble mechanism, built-in feature importance, and out-of-bag error estimation. XGBoost was chosen for its proven performance with built-in L1/L2 regularization and native missing value handling. LightGBM was included for its computational efficiency and superior performance in our preliminary experiments (AUC = 0.862).

Data splitting

The dataset was divided into a training set and an independent temporal validation set. The training set comprised the original development cohort (n = 665) and was used exclusively for model development, including data preprocessing, feature engineering, variable selection, hyperparameter tuning, and model training. The validation set consisted of an independent temporal cohort (n = 103) and was completely isolated from all training procedures.

Cross-validation

To optimize model performance and prevent overfitting, 5-fold cross-validation was employed for hyperparameter tuning exclusively on the training set. LASSO variable selection employed 10-fold cross-validation. The optimal hyperparameters were selected based on the highest cross-validated AUC.

Hyperparameter tuning

LR underwent grid search for alpha ({0, 0.5, 1}) and lambda (10−4 to 100), with the optimal parameters selected as default values. RF was tuned for mtry ({2, 4, 6, 8, 10}). LightGBM was tuned for num_leaves ({5, 10, 15, 31}) and learning_rate ({0.01, 0.05, 0.1}). XGBoost was tuned for eta ({0.01, 0.05, 0.1, 0.2}) and max_depth ({2, 3, 4, 6}).

Overfitting prevention

Multiple strategies were implemented: (1) LASSO regularization for feature selection; (2) early stopping with 15-round patience for LightGBM and XGBoost; (3) L1/L2 regularization for all models; (4) subsampling (60%) and column sampling (60%) for tree-based models; (5) independent external validation; and (6) Bootstrap validation with 50 resamples for optimism assessment.

Statistical analysis

Data analysis and modeling were performed using R Studio software (version 4.3.2), while baseline data were analyzed using IBM SPSS (version 27.0). Continuous data with a normal distribution were compared with the independent samples t-test and are reported as the mean ± standard deviation. Continuous data with a non-normal distribution were compared with nonparametric tests and are presented as the median (interquartile range). A probability (p) value < 0.05 was considered statistically significant. The optimal predictive variables were screened using LASSO regression combined with 10-fold cross-validation. With lambda.min (the λ value corresponding to the minimum cross-validation deviation) as the screening criterion, variables with non-zero coefficients were retained, and four predictive models were constructed based on these variables. The performance of each model was comprehensively evaluated using accuracy, precision, specificity, recall, F1-score, Brier score, and AUC value. Model performance was compared using Delong’s test for paired ROC curves. All performance metrics are reported with 95% confidence intervals calculated using bootstrap resampling with 1,000 iterations. The random seed was fixed at 123 for all analyses to ensure reproducibility. SHAP (Shapley Additive Explanations) values were calculated to quantify the contribution of each predictive factor to the model output, visually presenting the interpretability of the risk prediction model.

Results

Basic characteristics

The study cohort included 768 patients (374 males and 394 females; age range, 18–93 years). PONV occurred in 222 patients, yielding an incidence rate of 28.9%. The dataset was temporally partitioned, with 665 patients assigned to the training set and 103 to the validation set. There were no statistically significant differences in baseline characteristics between the training and validation sets (p > 0.05) (Table 1). The patient selection flowchart (Figure 1) illustrates the patient enrollment and exclusion process in this study.

Table 1

VariableModeling group (n = 665)Validation group (n = 103)Statisticp
Sex, n (%)χ2 = 0.0320.859
Male323 (48.6)51 (49.5)
Female342 (51.4)52 (50.5)
Age, median (IQR), y57 (49, 66)61 (53, 67.5)Z = −2.0080.045
BMI, median (IQR), kg/m223.7 (21.6, 25.8)23.4 (22.2, 25.7)Z = −0.0410.967
Smoke, n (%)χ2 = 0.6300.427
Yes118 (17.7)15 (14.6)
No547 (82.3)88 (85.4)
History of motion sickness or PONV, n (%)χ2 = 0.3480.555
Yes65 (9.8)12 (11.7)
No600 (90.2)91 (88.3)
Antecedent history, n (%)χ2 = 6.0030.306
Upper gastrointestinal tract disease17 (2.6)1 (1.0)
Hypertension238 (35.8)39 (37.9)
Diabetes19 (2.9)6 (5.8)
Clinical depression11 (1.7)1 (1.0)
Other diseases124 (18.7)24 (23.3)
Unrecorded255 (38.4)32 (31.1)
ASA class, n (%)χ2 = 3.5340.316
I2 (0.3)0 (0.0)
II508 (76.4)86 (83.5)
III146 (22.0)17 (16.5)
IV9 (1.4)0 (0)
V0 (0)0 (0)
Preoperative potassium, median (IQR), mmol/L3.94 (3.72, 4.19)3.94 (3.66, 4.11)Z = −1.3090.191
Preoperative sodium, median (IQR), mmol/L140 (139, 142)141 (139, 141.5)Z = −0.4680.639
Preoperative blood chloride, median (IQR), mmol/L105 (103, 107)105 (103, 106)Z = −1.1390.255
Preoperative calcium, mean ± SD, mmol/L2.31 ± 0.112.29 ± 0.1t = 2.2290.027
Preoperative blood glucose, median (IQR), mmol/L5.39 (4.92, 6.42)5.25 (4.85, 6.07)Z = −1.9080.056
Surgical site, n (%)χ2 = 6.0430.014
Craniotomy on the curtain450 (67.7)57 (55.3)
Craniotomy under the curtain215 (32.3)46 (44.7)
Operation type, n (%)χ2 = 2.5190.641
Microvascular decompression113 (17.0)22 (21.4)
Salpingectomy (medicine)321 (48.3)48 (46.6)
Hematoma removal188 (28.3)26 (25.2)
Cerebrovascular surgery32 (4.8)4 (3.9)
Other surgeries10 (1.5)3 (2.9)
Surgical time, n (%), minχ2 = 0.0080.928
<10073 (11.0)11 (10.7)
≥100592 (89.0)92 (89.3)
Drainage tube, n (%)χ2 = 3.5710.312
Subdural drain189 (28.4)38 (36.9)
Subcutaneous drain133 (20.0)21 (20.4)
Lumbar large pool drain or lateral extraventricular drain321 (48.3)41 (39.8)
Drainless22 (3.3)3 (2.9)
Intraoperative position, n(%)χ2 = 3.3140.191
Supine422 (63.5)58 (56.3)
Lateral30 (4.5)3 (2.9)
Prone213 (32.0)42 (40.8)
Hemorrhage, median(IQR), mL100 (20, 200)50 (20, 100)Z = −1.5600.119
Intraoperative blood transfusion, n (%)χ2 = 0.0870.768
Yes37 (5.6)5 (4.9)
No628 (94.4)98 (95.1)
Anesthesia time, n (%), minχ2 = 0.0550.815
<200162 (24.4)24 (23.3)
≥200503 (75.6)79(76.7)
Anesthetic drug, n (%)χ2 = 119.205< 0.001
Ketorolac (sevoflurane)12 (1.8)4 (3.9)
Sevoflurane liquid625 (94.0)62 (60.2)
Other anesthetics28 (4.2)37 (35.9)
Intraoperative remifentanil dosage, median (IQR), mg2 (2, 2)2 (2, 2)Z = −1.5480.122
Intraoperative sufentanil dosage, median (IQR), ug50 (50, 50)50 (50, 50)Z = −1.9690.049
Intraoperative blood gas pH7.42 (7.4, 7.44)7.42 (7.39, 7.44)Z = −1.4430.149
Intraoperative potassium, median (IQR), mmol/L3.65 (3.5, 3.8)3.59 (3.4, 3.8)Z = −2.5820.010
Intraoperative sodium, median (IQR), mmol/L142.63 (142, 144)141.45 (140, 143)Z = −4.243p < 0.001
Intraoperative blood chloride, median (IQR), mmol/L108.93 (107, 110)107.27 (106, 109.5)Z = −4.162< 0.001
Intraoperative calcium, median (IQR), mmol/L1.04 (1.01, 1.08)1 (0.98, 1.06)Z = −4.380< 0.001
Intraoperative blood glucose, median (IQR), mmol/L6.3 (5.6, 6.5)6.09 (5.5, 6.3)Z = −2.7150.007
Intraoperative blood gas lactate, median (IQR), mmol/L1.93 (1.3, 2)1.65 (1.1, 1.85)Z = −3.580< 0.001
Postoperative antiemetic, n (%)χ2 = 1.0530.305
Yes574 (86.3)85 (82.5)
No91 (13.7)18 (17.5)
Neostigmine, n (%)χ2 = 2.606*0.106
Yes8 (1.2)4(3.9)
No657 (98.8)99 (96.1)
Postoperative steroid, n (%)χ2 = 0.2580.612
Yes305 (45.9)50 (48.5)
No360 (54.1)53 (51.5)
Postoperative pain, n (%)χ2 = 2.6010.272
Mild628 (94.7)101 (98.1)
Moderate28 (4.2)1 (1.0)
Severe7 (1.1)1 (1.0)
Postoperative opioids, n (%)χ2 = 6.1610.013
Yes181 (27.2)16 (15.7)
No484 (72.8)86 (84.3)
Pneumocephalus, n (%)χ2 = 1.1280.7288
Yes198 (29.8)36 (35.0)
No467 (70.2)67 (65.0)

Comparison of clinical characteristics between the training and validation sets.

*Continuity correction.

BMI, body mass index; ASA, American Society of Anesthesiologists; PONV, postoperative nausea and vomiting; IQR, interquartile range.

Figure 1

Variable screening

The 36 variables initially included in this study were screened to identify optimal predictive factors using LASSO regression combined with 10-fold cross-validation. With lambda.min (λ = 0.0133) as the optimal criterion, 14 predictive variables with non-zero coefficients were finally identified: sex, age, smoking history, history of motion sickness or PONV, preoperative sodium, chloride, operation type, intraoperative calcium, sodium, anesthesia time, postoperative steroid, postoperative opioids, pneumocephalus and postoperative antiemetic.(Figure 2).

Figure 2

Following the missing data sensitivity analysis, the complete case analysis demonstrated consistent findings with the MICE imputation approach. All absolute AUC differences across the four models were below the clinically acceptable threshold of 0.02 (range: 0.003 to 0.011), indicating that the missing data handling strategy did not substantially impact model performance. These results confirm the robustness of the MICE multiple imputation results.

LASSO Stability Assessment: Bootstrap stability assessment (100 resamples) showed a mean selection frequency of 59.8% (SD: 22.4%), 7 variables were selected in more than 80% of bootstrap samples, indicating robust selection for these core predictors.

Construction and validation of a risk prediction model for post-craniotomy PONV

In this study, PONV risk prediction models were constructed and validated based on four ML algorithms. The performance of LR, RF, XGBoost, and LightGBM models was comprehensively evaluated based on seven indicators: accuracy, precision, specificity, recall, F1 score, Brier score, and AUC, which systematically reflected the overall predictive ability of the models.

According to the comprehensive evaluation results, the LightGBM model had the optimal comprehensive performance with the highest accuracy, recall, F1-score, and AUC, along with the lowest Brier score, indicating significant advantages in discriminative ability, calibration ability, and generalization. The LR model showed stable performance with high specificity but low recall, indicating a certain risk of missed diagnosis. The performance of the RF model decreased significantly from the training set to the validation set, suggesting obvious overfitting and limited clinical application value. The XGBoost model achieved moderate performance, but had a relatively higher Brier score (0.158), suggesting moderate prediction error. The temporal validation results directly reflect the generalization ability of the models with an independent dataset, which provides key evidence of clinical practical value. The specific indicators of each model are shown in Table 2 and the ROC curves of the training and validation sets are shown in Figure 3 and Figure 4, respectively.

Table 2

ModelAccuracyPrecisionSpecificityRecallF1 scoreBrier scoreAUCDataset
LR0.8480.7560.9210.6520.70.1120.886Training
RF0.9520.9870.9960.8340.9040.0460.995Training
LightGBM0.950.930.9750.8840.9060.0470.989Training
XGBoost0.860.8240.950.6190.7070.1120.913Training
LR10.7750.840.9350.5250.6460.1710.854Validation
RF10.7550.8570.9520.450.590.1690.853Validation
LightGBM10.8240.8930.9520.6250.7350.1490.862Validation
XGBoost10.8140.8890.9520.60.7160.1580.848Validation
All Metrics with 95%CI
ModelAccuracy (95% CI)Precision (95% CI)Specificity
(95% CI)
Recall (95% CI)F1 score (95% CI)AUC (95% CI)Dataset
LR10.775
(0.696–0.853)
0.84
(0.692–0.963)
0.935
(0.873–0.985)
0.525
(0.366–0.678)
0.646
(0.5–0.767)
0.854
(0.758–0.928)
Validation
RF10.755
(0.676–0.824)
0.857
(0.688–1)
0.952
(0.897–1)
0.45
(0.292–0.595)
0.59
(0.431–0.721)
0.853
(0.755–0.929)
Validation
LightGBM10.824
(0.745–0.882)
0.893
(0.771–1)
0.952
(0.893–1)
0.625
(0.472–0.771)
0.735
(0.6–0.835)
0.862
(0.778–0.93)
Validation
XGBoost10.814
(0.735–0.882)
0.889
(0.758–1)
0.952
(0.897–1)
0.6
(0.433–0.75)
0.716
(0.571–0.825)
0.848
(0.751–0.928)
Validation

Specific performance indicators of the four prediction models with the training and validation sets.

Figure 3

Figure 4

Clinical utility analysis of the postcraniotomy PONV prediction model

Decision curve analysis

Decision curve analysis (DCA) showed that LightGBM and LR models achieved positive net benefits across a wide range of threshold probabilities. Of these, the LightGBM model exhibited a consistently higher net benefit than the LR model at moderate-to-high threshold probabilities (0.20–0.85), suggesting superior clinical value for individualized risk assessment as the most clinically useful prediction model in this study (Figure 5).

Figure 5

Delong test

Delong’s test revealed no statistically significant differences between LightGBM and any other model (all p > 0.05; Table 3), indicating that while LightGBM achieved numerically higher AUC(0.862), the differences were not statistically significant.

Table 3

ComparisonModel 1Model 2AUC1AUC2AUC_DiffZ_StatisticP_valueSignificant
LR vs RFLRRF0.8540.85300.0190.9852No (P ≥ 0.05)
LR vs LightGBMLRLightGBM0.8540.862−0.008−0.3490.7273No (P ≥ 0.05)
LR vs XGBoostLRXGBoost0.8540.8480.0050.2370.8124No (P ≥ 0.05)
RF vs LightGBMRFLightGBM0.8530.862−0.009−0.4140.6787No (P ≥ 0.05)
RF vs XGBoostRFXGBoost0.8530.8480.0050.3020.763No (P ≥ 0.05)
LightGBM vs XGBoostLightGBMXGBoost0.8620.8480.0140.7240.4693No (P ≥ 0.05)

Delong test.

Calibration analysis

Calibration was assessed using calibration curves, calibration intercept, calibration slope, and the Hosmer-Lemeshow (HL) test (Table 4, Figure 6).

Table 4

ModelDatasetCalibration_InterceptCalibration_SlopeHL_PvalueHL_StatisticN_Bins
LRValidation1.0590.81047.43210
RFValidation1.2751.2510.00422.7529
LightGBMValidation0.6720.7940.00127.1810
XGBoostValidation1.1031.5680.08313.978

Calibration analysis summary.

Figure 6

Based on the calibration analysis, LightGBM demonstrated the best overall calibration performance in the validation set. It achieved the calibration intercept closest to 0 (0.672) and the calibration slope closest to 1 (0.794) among all models, indicating the smallest systematic bias in probability estimation. Although XGBoost had the highest Hosmer-Lemeshow p-value (0.083), suggesting better HL test performance, its calibration slope (1.568) showed the most extreme prediction probabilities, indicating over-dispersion. Considering the comprehensive calibration assessment, LightGBM was selected as the optimal model.

Visualization of the postoperative PONV risk prediction model for craniotomy patients

We have now incorporated SHAP (SHapley Additive exPlanations) analysis for the best-performing LightGBM model to enhance interpretability and clinical transparency. Specifically, we calculated SHAp values for all features in the validation set and generated:a SHAP importance ranking table.

The LightGBM model was employed to rank the importance of each variable associated with PONV risk factors. The top 10 feature variables in order of importance were pneumocephalus, smoking history, postoperative steroid, history of motion sickness or PONV, intraoperative sodium, postoperative antiemetic, age, operation type, postoperative opioids, sex (Figure 7).

Figure 7

The LightGBM model demonstrated superior comprehensive performance for both statistical metrics and clinical net benefit, as the optimal technical choice for this study. In contrast, the LR model, owing to its irreplaceable interpretability, serves as a bridge between clinical translation and physician comprehension. Risk-stratified prophylactic intervention based on predicted probabilities can prevent unnecessary costs and potential medication-related adverse effects (17).

Comparison with existing clinical prediction tools

Previous studies (18) has demonstrated that machine learning-based prediction models for postoperative nausea and vomiting (PONV) in neurosurgical patients exhibit superior overall predictive performance compared with the Apfel score. In this study, we initially planned to compare the predictive performance of our craniotomy-specific PONV risk prediction model with the Apfel score. However, upon retrospective data collection, we found that documentation of Apfel score components was incomplete in over 54.3% of cases, precluding a valid comparative analysis. This finding suggests that the Apfel score is not widely implemented in our institutional clinical practice. Future prospective studies with larger sample sizes are warranted to compare the predictive performance of the two approaches (Table 5).

Table 5

VariablePONV group (n = 181)Non-PONV group (n = 484)StatisticP values
Sex, n(%)χ2 = 34.952< 0.001
Male54 (29.8)269 (55.6)
Female127 (70.2)215 (44.4)
Age, median (IQR), y56 (48, 64)57 (49, 67)Z = -2.0910.037
BMI, median (IQR), kg/m223.6 (21.4, 25.4)23.9 (21.67, 25.9)Z = -1.2870.198
Smoke, n(%)χ2 = 8.9490.003
Yes19 (10.5)99 (20.5)
No162 (89.5)385 (79.5)
History of motion sickness or PONV, n(%)χ2 = 1.8950.169
Yes13(7.2)52(10.7)
No168(92.8)432(89.3%)
Antecedent history, n(%)χ2 = 5.0210.413
Upper gastrointestinal tract disease2 (1.1)15 (3.1)
Hypertension57 (31.5)181 (37.4)
Diabetes5 (2.8)14 (2.9)
Clinical depression3 (1.7)8 (1.7)
Other diseases39 (21.5)85 (17.6)
unrecorded75 (41.4)181 (37.4)
ASA class, n(%)χ2 = 8.1390.043
I0 (0)2 (0.4)
II151 (83.4)357 (73.8)
III27 (14.9)119 (24.6)
IV3 (1.7)6 (1.2)
V0 (0)0 (0)
Preoperative potassium, median (IQR), mmol/L3.93 (3.76, 4.22)3.94 (3.7, 4.18)Z = -0.6870.492
Preoperative sodium, median (IQR), mmol/L141 (139, 142)140 (139, 142)Z = -2.0270.043
Preoperative blood chloride, median (IQR), mmol/L106 (104, 107)105 (103, 107)Z = -3.0110.003
Preoperative calcium, mean ± SD, mmol/L2.32 ± 0.12.31 ± 0.12t = −0.6650.506
Preoperative blood glucose, median (IQR), mmol/L5.27 (4.8, 5.95)5.44 (4.97, 6.63)Z = -2.3770.017
Surgical site, n(%)χ2 = 11.851< 0.001
Craniotomy on the curtain104 (57.5)346 (71.5)
Craniotomy under the curtain77 (42.5)138 (28.5)
Type of surgery, n(%)χ2 = 23.142< 0.001
Microvascular decompression35 (19.3)78 (16.1)
Salpingectomy (medicine)96 (53)226 (46.7)
Hematoma removal30 (16.6)158 (32.6)
Cerebrovascular surgery16 (8.8)16 (3.3)
Other surgeries4 (2.2)6 (1.2)
Surgical time,n(%), minχ2 = 6.1100.013
<10011 (6.1)62 (12.8)
≥100170 (93.9)422 (87.2)
Drainage tube, n(%)χ2 = 24.927< 0.001
Subdural drain16 (8.8)117 (24.2)
Subcutaneous drain88 (48.6)233 (48.1)
Lumbar large pool drain or lateral extraventricular drain7 (3.9)15 (3.1)
Drainless70 (38.7)119 (24.6)
Intraoperative position, n(%)χ2 = 6.1390.046
Supine position109 (60.2)313 (64.7)
Lateral position14 (7.7)16 (3.3)
prone position58 (32.0)155 (32.0)
Hemorrhage, median(IQR), ml100 (30, 200)100 (20, 200)Z = -0.7090.478
Intraoperative blood transfusion, n(%)χ2 = 0.1660.684
Yes9 (5)28 (5.8)
No172 (95)456 (94.2)
Anesthesia time, n(%), minχ2 = 4.1970.041
<20034 (18.8)128 (26.4)
≥200147 (81.2)356 (73.6)
Anesthetic drug, n(%)χ2 = 0.0560.872
Ketorolac (sevoflurane)170 (93.9)455 (94.0)
Sevoflurane liquid8 (4.4)20 (4.1)
Other anesthetics3 (1.7)9 (1.9)
Intraoperative remifentanil dosage, median(IQR), mg2 (2, 2)2 (2, 2)Z = -1.4860.137
Intraoperative sufentanil dosage, median(IQR), ug50 (50, 50)50 (50, 50)Z = -2.2750.023
Intraoperative blood gas pH7.42 (7.4, 7.44)7.42 (7.4, 7.44)Z = -0.7360.462
Intraoperative potassium, median(IQR), mmol/L3.65 (3.5, 3.8)3.65 (3.5, 3.8)Z = -0.0400.968
Intraoperative sodium, median(IQR), mmol/L142.63 (142, 144)142.63 (142, 143)Z = -1.6360.102
Intraoperative blood chloride, median(IQR), mmol/L108.93 (108, 111)108.93 (107, 110)Z = -2.6060.009
Intraoperative calcium, median(IQR), mmol/L1.04 (1.01, 1.08)1.04 (1.02, 1.08)Z = -0.7800.436
Intraoperative blood glucose, median(IQR), mmol/L6.3 (5.5, 6.5)6.3 (5.6, 6.5)Z = -0.8020.423
Intraoperative blood gas lactate, median(IQR), mmol/L1.93 (1.6, 2.3)1.93 (1.28, 1.93)Z = -2.9560.003
Postoperative antiemetic, n(%)χ2 = 0.6710.413
Yes153 (84.5)421 (87)
No28 (15.5)63 (13)
Neostigmine, n(%)χ2 = 0*1
Yes2 (1.1)6 (1.2)
No179 (98.9)478 (98.8)
Postoperative steroid, n(%)χ2 = 1.5050.220
Yes76 (42.0)229 (47.3)
No105 (58.0)255 (52.7)
Postoperative pain, n(%)χ2 = 0.9360.626
Mildly171 (94.5)459 (94.8)
Moderately7 (3.9)21 (4.3)
Severe3 (1.7)4 (0.8)
Postoperative opioids, n(%)χ2 = 2.2930.130
Yes57 (31.5)124 (25.6)
No124 (68.5)360 (74.4)
Pneumocephalus, n(%)χ2 = 227.197< 0.001
Yes133 (73.5)65 (13.4)
No48 (26.5)419 (86.6)

Univariate analysis results in the development cohort.

* Continuity-corrected χ2 test. BMI, body mass index. ASA, American Society of Anesthesiologists. PONV, Postoperative Nausea and Vomiting. IQR, Interquartile Range.

Discussion

The risk prediction model shows favorable predictive performance for PONV

PONV is one of the most common complications within 24 h after craniotomy (7). Due to the unclear neurobiological mechanism, this “big minor problem” remains unresolved (19). Although aggressive prophylaxis and combination therapy have been used clinically to manage PONV, the incidence remains high (20). In the present study, the incidence of PONV was 27.2% (181 patients) in the training set and 39.8% (41 patients) in the validation set, which was generally consistent with the incidence reported both domestically and internationally (15, 21–23). Therefore, an effective and reliable risk prediction model is urgently needed for risk assessment and effective prevention of postoperative PONV following craniotomy.

The four risk prediction models constructed in this study all had an AUC > 0.845, indicating favorable ability to effectively distinguish between the PONV and non-PONV groups. The closer the AUC value is to 1, the better the predictive performance of the model. The Brier scores of the validation set were all less than 0.18 The closer the Brier score is to 0, the better the calibration ability and consistency of the model, verifying good reproducibility.

Performance comparison of the four models

In recent years, ML has been widely applied in clinical practice. The LR model is sensitive to data with multicollinearity, tends to overfit, has limited classification accuracy, and faces difficulties in handling imbalanced data. The XGBoost model achieved high accuracy but the complexity makes results difficult to interpret. RF is a non-parametric ensemble method based on decision trees that shows excellent generalization for imbalanced data, with advantages of high speed and efficiency during data processing (24). Beyond performance metrics, the inherent algorithmic characteristics of each model directly influence clinical applicability. Although LR is sensitive to multicollinearity and limited in modeling nonlinear relationships, the high transparency and interpretability make it a gold standard for clinical communication and bedside teaching. The XGBoost and LightGBM models achieved outstanding accuracy in complex pattern recognition, but the “black-box” nature of the ensemble frameworks remains a major barrier to clinical acceptance.

In this study, prediction models were constructed using four ML algorithms: LR, RF, XGBoost, and LightGBM. The LightGBM model achieved the best overall performance, with the highest AUC (0.862) and optimal calibration (Brier score = 0.149) with the validation set, indicating an excellent balance between discrimination and predictive accuracy. The next best was the LR model. As a representative of classical statistical learning methods, it exhibited excellent robustness, with an outstanding AUC value of 0.854, which was close to that of the LightGBM model. However, its recall was relatively low (0.525), indicating a certain risk of missed diagnosis. This limitation should be emphasized in clinical application and result interpretation. In contrast, the RF model showed an obvious tendency of overfitting and insufficient generalization ability, suggesting insufficient optimization with the present dataset. Therefore, high caution should be exercised in clinical application of the RF model. Although LightGBM achieved the highest AUC (0.862) numerically, Delong’s test showed no statistically significant differences between LightGBM and other models (all p > 0.05). Nevertheless, LightGBM was selected as the preferred model due to its superior calibration performance and the highest net benefit across clinically relevant thresholds.

Clinical value and stratified application strategy

Objective performance evaluation based on DCA

PONV presents a unique challenge to patients after craniotomy, not only due to a high incidence but also increased clinical risks (25). Although a substantial proportion of patients in our cohort had already received prophylactic dexamethasone and antiemetics, retrospective data collection revealed that 27.2% of craniotomy patients still developed PONV within the first 24 h, while prospectively collected data indicated an even higher incidence of 39.8%. These findings underscore the critical importance of identifying individuals at high risk for PONV and implementing effective perioperative prevention and management strategies.

Conventional discrimination metrics, such as the AUC, are insufficient to fully evaluate the clinical utility of a prediction model. To address this, DCA was employed to quantify the clinical net benefit of the models across a range of clinically reasonable threshold probabilities. The results demonstrated that the LightGBM model achieved the highest net benefit across the entire spectrum of threshold probabilities. This indicates that, when adopting “maximizing clinical benefit for patients” as the ultimate criterion, the LightGBM algorithm had the optimal combination of statistical performance and clinical utility in this study. Consequently, from both methodological and objective performance perspectives, LightGBM was identify as the optimal model. While the LightGBM model demonstrates promise as a decision support tool for personalized PONV prophylaxis, we acknowledge that several critical steps remain before clinical implementation. These include: (1) external validation in independent multicenter cohorts to confirm the generalizability of our findings; (2) prospective clinical utility studies, such as cluster-randomized trials, to demonstrate that model-guided prophylaxis improves patient outcomes; and (3) careful consideration of EHR integration, including workflow compatibility and user interface design. With these prerequisites satisfied, the LightGBM model may serve as a valuable decision support tool for personalized antiemetic prophylaxis in craniotomy patients (Table 6).

Table 6

ModelDatasetAUC_LASSOAUC_AllFeatureAUC_diff
LRValidation0.8540.8520.002
LightGBMValidation0.8620.8580.004
RFValidation0.8530.862−0.009
XGBoostValidation0.8480.874−0.026

LASSO vs. all feature compare.

Clinical value of interpretability

Pathophysiological interpretation of key predictor

SHAP analysis identified pneumocephalus as the most influential predictor of PONV, a finding with important clinical and pathophysiological implications.

Under normal physiological conditions, the cranial cavity contains no free gas. During neurosurgical procedures performed in the sitting position, opening the dura mater allows direct entry of air into the intracranial space. Furthermore, gravitational sinking of brain tissue and excessive cerebrospinal fluid (CSF) loss reduce intracranial pressure, creating negative pressure that draws air into the cranial cavity—sometimes even resulting in tension pneumocephalus (26). CSF loss alters CSF pressure dynamics, which directly stimulates both the vomiting center and the chemoreceptor trigger zone, predisposing patients to postoperative nausea and vomiting (27). This mechanism is closely associated with surgical manipulation and postoperative low intracranial pressure following ventricular surgery. Previous studies have reported that patients undergoing microvascular decompression (MVD) surgery are at high risk for PONV, possibly due to intraoperative stimulation of the cerebellum and vestibular nerve, postoperative CSF hypotension, blood-stained CSF, and intracranial air accumulation (28).

Clinical Implications of This Finding:(1)Prevention strategies: Meticulous intraoperative technique to minimize dural defects, combined with postoperative head elevation and avoidance of hyperventilation to reduce intracranial air accumulation, may indirectly decrease PONV risk.(2)Risk assessment: When postoperative imaging reveals intracranial air, clinicians should maintain a high index of suspicion for PONV and initiate prophylactic antiemetic measures in a timely manner.(3)Intervention window: Early postoperative identification of pneumocephalus may provide a therapeutic window for PONV prevention, enabling precise perioperative management. Future studies should validate these findings in prospective multicenter cohorts and explore whether targeted interventions to prevent pneumocephalus may improve PONV outcomes (Table 7).

Table 7

VariableTrain_Missing_RateTest_Missing_Rate
PH231.580
K231.280
Na230.980
Glu230.980
LA30.980
Cl230.830
CA230.830
BMI3.010
Na0.30
Cl0.30
Bleeding0.30
K0.150
CA0.150
Sex00
Age00
Smoke00
MH00
MS00
ASA00
Glu00
Route00
OR00
O-Time00
BT00
ST00
Postion00
AT00
DT00
Pain00
Opi00.97
Remifentanil00
Sufentanil00

Missing report detailed.

Stratified clinical application framework

Temporal validation and the DCA results clearly revealed that the LightGBM model exhibited superior overall discrimination and population screening efficiency, whereas the LR model has natural advantages in individualized interpretation and doctor-patient communication. LR provides clear and stable odds ratios and a visualized nomogram, allowing physicians to perform rapid individualized assessment, bedside calculation, or teaching without electronic devices. This not only improves patients’ in-depth understanding of disease risk but also significantly enhances treatment adherence and satisfaction (29).

Accordingly, we propose a stratified application framework for the entire clinical decision-making chain. We recommend prioritizing deployment of the LightGBM model in inpatient systems to achieve automated, high-risk screening for large-scale patient data. When the system identifies high-risk individuals, it will not only output an early warning signal but also generate a personalized risk factor analysis report, clearly labeling the main risk sources and their contributions. It is recommended that nurses develop dynamic assessment protocols for patients based on different risk levels (30) using a stratified application strategy. In clinical environments where interpretability is of primary importance, such as outpatient consultations or shared decision-making with patients, LR remains a viable alternative owing to its straightforward interpretation as odds ratios, which are readily understood by clinicians (Table 8).

Table 8

ModelMICE_AUCComplete_Case_AUCAUC_Diff
LR0.8540.843−0.011
LightGBM0.8620.858−0.004
RF0.8530.850−0.003
XGBoost0.8480.844−0.004

Validation AUC comparison of four models with two missing value imputation methods.

Nevertheless, before clinical deployment of either model, further prospective multicenter validation with adequately powered sample sizes is essential to confirm the generalizability of our findings. Future research should also focus on evaluating the real-world clinical impact of model-guided antiemetic prophylaxis through prospective utility studies and cluster-randomized trials.

Limitations

Several limitations of this study should be acknowledged. First, the retrospective single-center design may introduce selection bias and limit generalizability to other institutions, patient populations, and perioperative protocols. Second, while we used LASSO regularization to mitigate overfitting, the limited sample size may affect model stability and the precision of performance estimates. Third, the relatively small validation cohort further limits the precision of performance estimates and may affect the stability of model comparisons. Fourth, the validation cohort originated from the same institution, involving similar surgical teams, perioperative protocols, and patient populations; therefore, this constitutes internal temporal validation rather than true external validation. Fifth, we were unable to compare our model with established clinical scores, due to limitations in retrospective data collection. Future studies with larger, multicenter cohorts and prospective designs are needed to address these limitations and further validate our findings.

Conclusion

PONV risk prediction models were constructed utilizing multiple feature variables from collected clinical data based on four ML algorithms: LR, RF, XGBoost, and LightGBM. Among these, the LightGBM model demonstrated superior predictive performance. This approach facilitates the early identification of patients at potential risk for PONV and enables the formulation of scientifically sound, targeted interventions based on significant risk factors, thereby aiming to reduce the incidence of PONV, enhance the quality of life for patients following craniotomy, and improve patient satisfaction.

Nevertheless, this study has certain limitations. As a retrospective, single-center study, selection bias may exist, and the temporal generalization ability of the model must be verified. Future multi-center, large-sample prospective studies are recommended to further optimize the model structure and enhance the validation efficiency. Meanwhile, health economic evaluations should be supplemented to quantify the economic benefits of the model to reduce over-treatment, lower the missed diagnosis rate, and optimize the allocation of medical resources, thereby providing solid economic support for extensive clinical transformation of the model.

Statements

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 The Sir Run Run Hospital’s Ethics committee (Hospital Ethics Review 2023 Research No. 0433). The studies were conducted in accordance with the local legislation and institutional requirements. The ethics committee/institutional review board waived the requirement of written informed consent for participation from the participants or the participants’ legal guardians/next of kin because retrospective study using existing medical records.

Author contributions

LW: Writing – review & editing, Writing – original draft, Project administration. HP: Writing – review & editing, Supervision. YX: Writing – review & editing, Methodology. YS: Writing – review & editing.

Funding

The author(s) declared that financial support was received for this work and/or its publication. This study was supported by the Zhejiang Provincial Traditional Chinese Medicine Science and Technology Program (2024ZL599).

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.

References

  • 1.

    GanTJBelaniKGBergeseSChungFDiemunschPHabibASet al. Fourth consensus guidelines for the management of postoperative nausea and vomiting. Anesth Analg. (2020) 131:411–48. doi: 10.1213/ANE.0000000000004833,

  • 2.

    KoyuncuOUrfaliSHakimoğluSTaşdoğanAM. Strategies to prevent postoperative nausea and vomiting. Turk Onkol Derg. (2020) 35:349–55. doi: 10.5505/tjo.2020.2270

  • 3.

    JangraKKumariKPandaNBSamaghNLuthraA. Postoperative nausea and vomiting in neurosurgical patients: current concepts and management. Neurol India. (2018) 66:1117–23. doi: 10.4103/0028-3886.236970,

  • 4.

    WhitePFElvir-LazoOLYumulRCruz EngH. Management strategies for the treatment and prevention of postoperative/postdischarge nausea and vomiting: an updated review. F1000Res. (2020) 9:983. doi: 10.12688/f1000research.21832.1,

  • 5.

    Chinese Glioma Society CMDA. Chinese expert consensus on enhanced recovery after surgery (ERAS) in neurosurgery. Chin J Neurosurg. (2020) 36:973–83. doi: 10.3760/cma.j.cn112050-20200716-00405

  • 6.

    NilssonIKarlssonALindgrenLBergenheimTKoskinenLONilssonU. The efficacy of p6 acupressure with sea-band in reducing postoperative nausea and vomiting in patients undergoing craniotomy: a randomized, double-blinded, placebo-controlled study. J Neurosurg Anesthesiol. (2015) 27:42–50. doi: 10.1097/ANA.0000000000000089,

  • 7.

    TsaousiGPourzitakiCBilottaF. Prophylaxis of postoperative complications after craniotomy. Curr Opin Anaesthesiol. (2017) 30:534–9. doi: 10.1097/ACO.0000000000000493,

  • 8.

    WangLCaiHWangYLiuJChenTLiuJet al. Enhanced recovery after elective craniotomy: a randomized controlled trial. J Clin Anesth. (2022) 76:110575. doi: 10.1016/j.jclinane.2021.110575,

  • 9.

    UribeAAStoiceaNEcheverria-VillalobosMTodeschiniABEsparza GutierrezAFoleaARet al. Postoperative nausea and vomiting after craniotomy: an evidence-based review of general considerations, risk factors, and management. J Neurosurg Anesthesiol. (2021) 33:212–20. doi: 10.1097/ANA.0000000000000667,

  • 10.

    HaoLHouTLiJKangFYinG. Influence of transcutaneous acupoint electrical stimulation on postoperative nausea and vomiting in patients after craniotomy. Chin J Clin Healthc. (2020) 23:672–5. doi: 10.3969/J.issn.1672-6790.2020.05.023

  • 11.

    YangJWanJFengLHouSYvKXuLet al. Machine learning algorithms for the prediction of adverse prognosis in patients undergoing peritoneal dialysis. BMC Med Inform Decis Mak. (2024) 24:8. doi: 10.1186/s12911-023-02412-z,

  • 12.

    ChenMZhouKHuangX. Progress on machine learning-based prediction model for postoperative nausea and vomiting in hospitalized adult patients. Chin J Anesthesiol. (2025) 45:1021–4. doi: 10.3760/cma.j.cn131073-20240923-00821

  • 13.

    ShibueK. Artificial intelligence and machine learning in clinical medicine. N Engl J Med. (2023) 388:2397–9. doi: 10.1056/NEJMc2305287,

  • 14.

    GanTJJinZAyadSBelaniKGHabibASMeyerTAet al. Fifth consensus guidelines for the management of postoperative nausea and vomiting: executive summary. Anesth Analg. (2025) 143:497–513. doi: 10.1213/ANE.0000000000007816,

  • 15.

    HellicksonJDWordenWRRyanCMiersAGBenikeDAFrankSPet al. Predictors of postoperative nausea and vomiting in neurosurgical patients. J Neurosci Nurs. (2016) 48:352–7. doi: 10.1097/JNN.0000000000000241,

  • 16.

    GallifantJAfsharMAmeenSAphinyanaphongsYChenSCacciamaniGet al. The tripod-llm reporting guideline for studies using large language models. Nat Med. (2025) 31:60–9. doi: 10.1038/s41591-024-03425-5,

  • 17.

    RaoSSLiYKMamoueiMSalimi-KhorshidiGWamilMNazarzadehMet al. Refined selection of individuals for preventive cardiovascular disease treatment with a transformer-based risk model. Lancet Digit Health. (2025) 7:100873. doi: 10.1016/j.landig.2025.03.005,

  • 18.

    JiLDingHZhuXZhangL. Comparison of the value of two models in predicting the risk of post-neurosurgical nausea and vomiting. J Nurs Sci. (2023) 38:46–8. doi: 10.3870/j.issn.1001-4152.2023.14.046

  • 19.

    LiNNLiuLSunMHWangRLJinWJLiuCMet al. Predominant role of gut-vagus-brain neuronal pathway in postoperative nausea and vomiting: evidence from an observational cohort study. BMC Anesthesiol. (2021) 21:234. doi: 10.1186/s12871-021-01449-9,

  • 20.

    ZhouCWangYXueQYangJZhuY. Predicting early postoperative ponv using multiple machine-learning- and deep-learning-algorithms. BMC Med Res Methodol. (2023) 23:133. doi: 10.1186/s12874-023-01955-z,

  • 21.

    JiLLiXZhangLQianXLiJ. Development and evaluation of a nomogram for predicting postoperative nausea and vomiting after neurosurgery. J Nurs Sci. (2021) 36:35–7. doi: 10.3870/j.issn.1001-4152.2021.10.035

  • 22.

    TanCRiesCRMaysonKGharapetianAGriesdaleDE. Indication for surgery and the risk of postoperative nausea and vomiting after craniotomy: a case-control study. J Neurosurg Anesthesiol. (2012) 24:325–30. doi: 10.1097/ANA.0b013e3182611a30,

  • 23.

    OuyangMWMcDonaghDLPhillips-ButeBJamesMLFriedmanAHGanTJ. Does midline shift predict postoperative nausea in brain tumor patients undergoing awake craniotomy? A retrospective analysis. Curr Med Res Opin. (2013) 29:1033–8. doi: 10.1185/03007995.2013.811071,

  • 24.

    ZangZXuQZhouXMaNPuLTangYet al. Random forest can accurately predict the technique failure of peritoneal dialysis associated peritonitis patients. Front Med. (2024) 10:1335232. doi: 10.3389/fmed.2023.1335232,

  • 25.

    Priyanka GuptaNS. Granisetron versus ondansetron for post-operative nausea and vomiting prophylaxis in elective craniotomies for brain tumors: a randomized controlled double-blind study. Anesth Essays Res. (2014) 8:72–77. doi: 10.4103/0259-1162.128914

  • 26.

    HuangWXuCXiongZLiKYangFYangCet al. Clinical characteristics of pneumocephalus after craniotomy with sitting position. Chin J Pract Nerv Dis. (2020) 23:853–7. doi: 10.12083/SYSJ.2020.10.178

  • 27.

    WangHHouCZhangXHanR. Incidence of postoperative nausea and vomiting following neurosurgical procedures in postanesthesia care unit. Chin J Neurosurg. (2012) 28:400–2. doi: 10.3760/cma.j.issn.1001-2346.2012.04.025

  • 28.

    MiaoFFengXHouRDuanQWangT. Analysis of influencing factors of exhaust time in patients undergoing neurosurgery. J Cap Med Univ. (2021) 42:816–21. doi: 10.3969/j.issn.1006-7795.2021.05.019

  • 29.

    HuangJYangJQiHXuXZhuYXuMet al. Development and validation of a nomogram for predicting critical respiratory events during early anesthesia recovery in elderly patients. BMC Med Inform Decis Mak. (2024) 24:257. doi: 10.1186/s12911-024-02671-4,

  • 30.

    SunYLiXXuJZhangXGuFPanH. Prediction model for unplanned extubation of thoracoabdominal drainage tube in postoperative inpatients: a retrospective study. Eur J Med Res. (2025) 30:466. doi: 10.1186/s40001-025-02748-4,

Summary

Keywords

craniotomy, machine learning, PONV, postoperative nausea and vomiting, risk prediction model

Citation

Wu L, Pan H, Xu Y and Sun Y (2026) Performance comparison of different machine learning models to predict the risk of postcraniotomy nausea and vomiting: a retrospective study. Front. Med. 13:1901505. doi: 10.3389/fmed.2026.1901505

Received

05 June 2026

Revised

27 July 2026

Accepted

07 August 2026

Published

07 September 2026

Volume

13 - 2026

Edited by

Ryan Lee Melvin, University of Alabama at Birmingham, United States

Reviewed by

Resiana Karnina, University of Indonesia, Indonesia

Madhusudan Prasad Singh, All India Institute of Medical Sciences, Deoghar (AIIMS Deoghar), India

Updates

Copyright

*Correspondence: Hongying Pan,

Disclaimer

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.

Outline

Figures

Cite article

Copy to clipboard


Export citation file


Share article

Article metrics