Skip to main page content
U.S. flag

An official website of the United States government

Dot gov

The .gov means it’s official.
Federal government websites often end in .gov or .mil. Before sharing sensitive information, make sure you’re on a federal government site.

Https

The site is secure.
The https:// ensures that you are connecting to the official website and that any information you provide is encrypted and transmitted securely.

Access keys NCBI Homepage MyNCBI Homepage Main Content Main Navigation
. 2025 May 14;23(1):185.
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

Affiliations

Machine learning prediction model of prolonged delay to loop ileostomy closure after rectal cancer surgery: a retrospective study

Jianying Liu et al. World J Surg Oncol. .

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.

PubMed Disclaimer

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

Fig. 1
Fig. 1
LASSO coefficient path diagram
Fig. 2
Fig. 2
LASSO regularization path diagram, where the model has fewer features. while maintaining predictive performance when the regularization parameter value is set to one standard deviation
Fig. 3
Fig. 3
Receiver operating characteristic curve of the model on the training set(A). Receiver operating characteristic curve of the model validation set(B)
Fig. 4
Fig. 4
Calibration curve of the model training set(A). Calibration curve of the model validation set (B)
Fig. 5
Fig. 5
Clinical decision curve of the model on the training set(A). Clinical decision curve of the model validation set(B)
Fig. 6
Fig. 6
Importance chart for SHAP variables
Fig. 7
Fig. 7
SHAP force plot for “true positive” (A). SHAP force plot for “true negative” (B)

References

    1. 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
    1. 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
    1. 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
    1. 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
    1. Keller DS, Talboom K, Van Helsdingen CPM, Hompes R. Treatment modalities for anastomotic leakage in rectal Cancer surgery. Clin Colon Rectal Surg. 2021;34:431–8. - PMC - PubMed

LinkOut - more resources