Multivariate logistic regression revealed that TNF-α and National Institutes of Health Stroke Scale (NIHSS) score ≥5 were associated with high risk of cognition impairment; TNF-α, IL-17, unemployed before surgery, hypertension, and chronic kidney disease (CKD) correlated with high anxiety occurrence. Here, TNF is linked to Cognitive impairment.