【Abstract】Objective To investigate the factors influencing bowel preparation failure in elderly patients with painless gastroentero-scopy and establish a risk prediction model. Methods A retrospective analysis was made of the clinical data of 412 elderly patients who underwent painless gastrointestinal endoscopy at 940th Hospital of Joint Logistics Support Force of Chinese People′s Liberation Army from June 2020 to September 2023. The patients were divided into a test group (n=275) and a validation group (n=137) at a ratio of 2∶1. According to the quality of bowel preparation, the test group were divided into two subgroups:a success group (n=178) and a failure group (n=97). SPSS 20.0 was used for data analysis. According to the data type, t test orχ2 test was used for data comparison between groups. Multivariate logistic regression analysis was used to analyze the influencing factors of bowel preparation failure, a risk prediction model was established based on the risk factors, and tailored intervention strategies were proposed. Hosmer-Lemeshow test was used to verify the prediction efficiency. Results Significant differences were seen between the success group and the failure group in body mass index, walking status, constipation, history of colorectal surgery, first colonoscopy, use of tricyclic antidepressants, massive ascites, history of abdominal/pelvic surgery, and type of underlying diseases (P<0.05). Logistic regression analysis showed that constipation (OR=4.384,95%CI 1.136-16.919), history of colorectal surgery (OR=4.043,95%CI 1.392-11.743), and use of tricyclic antidepressants (OR=5.013,95%CI 1.237-20.317), and underlying diseases ≥2 kinds (OR=4.973,95%CI 1.335-18.526) were independent risk factor for bowel preparation failure in elderly patients with painless gastroenteroscopy. The risk prediction model incorporating these factors demonstrated a predictive sensitivity of 67.18%, a specificity of 85.69%, and an area under the receiver operating characteristic curve (AUC) of 0.739. The validation test showed a sensitivity of 66.54%, a specificity of 82.37%, and an AUC of 0.709. Conclusion Constipation, history of colorectal surgery, use of tricyclic antidepressants, and underlying disease ≥2 kinds affect the quality of bowel preparation in elderly patients with gastroenteroscopy, and the risk prediction model based on the above factors exhibits a good predictive efficacy for bowel preparation failure in this population. Tailored intervention plans should be proposed according to the actual situations in clinical practice to improve the quality of bowel preparation.