The multivariate regression analysis revealed that a low preoperative MOCA score and severe postoperative pain were independent risk factors for mild and severe cognitive impairment, while a high postoperative CRP level was only an independent risk factor for mild cognitive impairment. The gene discussed is CRP; the disease is Cognitive impairment.