Machine learning prediction model of prolonged delay to loop ileostomy closure after rectal cancer surgery: a retrospective study
- PMID: 40369609
- PMCID: PMC12076957
- DOI: 10.1186/s12957-025-03843-w
Machine learning prediction model of prolonged delay to loop ileostomy closure after rectal cancer surgery: a retrospective study
Abstract
Background: Delayed closure of a temporary ileostomy in patients with rectal cancer may cause psychological, physiological, and socioeconomic burdens to patients.
Purpose: This study aimed to develop and validate a machine learning-based model to predict the delayed ileostomy closure after surgery in patients with rectal cancer.
Design: A retrospective study.
Methods: LASSO regression was used for feature screening, and XGBoost was used for machine learning model construction. Model performance was assessed by receiver operating characteristic (ROC) curve analysis, calibration curve analysis, clinical decision curve analysis, sensitivity, specificity, accuracy, and F1 score. The SHAP method was used to interpretate the results of the machine learning model.
Results: A total of 442 rectal cancer patients who received a loop ileostomy were included in this study, and 305 experienced delayed closure (69%). The XGBoost model area under the ROC curve (AUC) of the training set was 0.744 (95% confidence interval [CI]: 0.686-0.806) and of the test set was 0.809 (95% CI: 0.728-0.889). The importance of each variable, in descending order was body mass index (BMI), postoperative chemotherapy, distance from tumor to anal margin, depth of tumor infiltration, neoadjuvant chemoradiotherapy, and anastomotic stenosis. The importance of SHAP variables in the model from high to low was: 'BMI' 'postoperative chemotherapy' 'distance of the tumor from the anal verge' 'depth of tumor infiltration' 'neoadjuvant radiotherapy' 'anastomotic stenosis'.
Conclusion: The XGBoost machine learning model we constructed showed good performance in predicting delayed closure of loop ileostomy in rectal cancer patients. In addition, the SHAP method can help better understand the results of machine learning models.
Keywords: Delayed closure; Loop ileostomy; Machine learning; Rectal cancer.
© 2025. The Author(s).
Conflict of interest statement
Declarations. Ethics approval and consent to participate: This study was approved by the Ethics Review Committee of Sun Yat-sen University Cancer Center (SL-B2024-578-01). Competing interests: The authors declare no competing interests. Conflict of interest: The authors declare that they have no known competing financial interests or personal relationships that might influence the work reported in this paper. Sources of funding: This study has not attained any funding.
Figures







References
-
- Bray F, Ferlay J, Soerjomataram I, Siegel RL, Torre LA, Jemal A. Global cancer statistics 2018: GLOBOCAN estimates of incidence and mortality worldwide for 36 cancers in 185 countries. CA CANCER J CLIN. 2018. - PubMed
-
- Heald RJ, Husband EM, Ryall RDH. The mesorectum in rectal cancer surgery—the clue to pelvic recurrence? Br J Surg. 1982;69:613–6. - PubMed
-
- You YN, Hardiman KM, Bafford A, Poylin V, Francone TD, Davis K et al. The American Society of Colon and Rectal Surgeons Clinical Practice Guidelines for the Management of Rectal Cancer. Dis Colon Rectum [Internet]. 2020;63. Available from: https://journals.lww.com/dcrjournal/fulltext/2020/09000/the_american_soc... - PubMed
-
- Kverneng Hultberg D, Svensson J, Jutesten H, Rutegård J, Matthiessen P, Lydrup M-L et al. The Impact of Anastomotic Leakage on Long-term Function After Anterior Resection for Rectal Cancer. Dis Colon Rectum [Internet]. 2020;63. Available from: https://journals.lww.com/dcrjournal/fulltext/2020/05000/the_impact_of_an... - PubMed
MeSH terms
LinkOut - more resources
Full Text Sources