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. This evidence concerns the gene TNF and Anxiety.