The developed nomogram model, which includes diabetes mellitus, WFNS grade, treatment modality, and perioperative changes in laboratory indicators (ALT, sodium, glucose, and WBC), demonstrated a strong predictive performance, with an AUC value of 0.839 in the derivation cohort and 0.797 in the validation cohort. This evidence concerns the gene GPT and diabetes mellitus.