The XGBoost model yielded the best performance, achieving an AUROC of 0.98, and identified serum albumin, diabetes as a comorbidity, type of surgery, nutritional score and Eastern Cooperative Oncology Group (ECOG) performance status as the relevant predictive variables. This evidence concerns the gene ALB and diabetes mellitus.