BackgroundEarly detection of cognitive impairment in patients undergoing ileostomy for colorectal cancer may help improve patient outcomes and quality of life. Identifying risk factors and clinically accessible factors is crucial for prevention and treatment.ObjectiveThis retrospective study aimed to identify risk factors for post-operative cognitive impairment in patients undergoing ileostomy for colorectal cancer and to explore potential factors for its prevention and treatment.MethodsA total of 108 cases were selected and included in the study. Patient data including general characteristics, disease stage, complications, and chemotherapy status were collected, and sleep quality and cognitive function were assessed using questionnaires and follow-up. Patients were randomly divided into training and validation groups. A random forest model was used to rank clinical features based on their contribution to predicting the prognosis of cancer-related cognitive impairment (CRCI). Nomograms were constructed using the support vector machine–recursive feature elimination (SVM-RFE) method, and the minimal root-mean-square error (RMSE) values were compared to select the best model. Regression analysis was performed to determine independent predictors.ResultsSignificant differences were observed in age, body mass index (BMI), alcohol consumption, frequency of physical activity, comorbidity, and cancer-related anemia (CRA) between the CRCI and non-CRCI groups. Random forest analysis revealed that age, BMI, exercise intensity, PSQI scores, and history of hypertension were the most significant predictors of outcome. Univariate logistic regression analysis of 18 variables revealed that age, alcohol consumption, exercise intensity, BMI, and comorbidity were significantly associated with the outcome of CRCI (p< 0.05). Univariate and multivariate models with P-values less than 0.1 and 0.2, respectively, showed better predictive performance for CRCI. The results of univariate analysis were plotted on a nomogram to evaluate the risk of developing CRCI after colorectal cancer surgery. The nomogram was found to have good predictive performance. Finally, regression analysis revealed that age, exercise intensity, BMI, comorbidity, and CRA were independent predictors of CRCI.ConclusionsThis retrospective cohort study revealed that age, exercise intensity, BMI, comorbidity, CRA, and mobility are independent predictors of cognitive impairment in patients undergoing ileostomy for colorectal cancer. Identifying these factors and potential factors may have clinical implications in predicting and managing post-operative cognitive impairment in this patient population.