Development and validation of an interpretable machine learning model for predicting postoperative complications after transanal total mesorectal excision: a multicenter study
Open Access
- 4 June 2026
- journal article
- Published by Springer Nature in Techniques in Coloproctology
- Vol. 30 (1)
Abstract
This study aimed to develop and externally validate an interpretable machine learning (ML) model for predicting postoperative complications after transanal total mesorectal excision (taTME). We conducted a multicenter case-control study of 245 consecutive patients undergoing taTME at three centers in China. Patients from one center formed the development cohort (n = 185); two independent centers provided an external validation cohort (n = 60). The primary endpoint was any 30-day complication (Clavien-Dindo). Candidate variables were screened with least absolute shrinkage and selection operator (LASSO) and entered into multivariable logistic regression to define features. In total, 11 ML algorithms were trained with tenfold cross-validation; the final model was selected by area under the receiver operating characteristic (ROC) curve (AUC). Discrimination, calibration, decision-curve analysis (DCA), and clinical-impact curves were assessed. Model interpretability was examined with Shapley additive explanations (SHAP). Overall, 27.8% of patients experienced postoperative complications. Six predictors-postoperative C-reactive protein (CRP), preoperative total protein (TP), smoking history, age group (> 80 years), neoadjuvant therapy, and ASA score-were retained. The AdaBoost classifier performed best (development AUC 0.822; 95% CI, 0.751-0.892). External validation demonstrated higher discrimination (AUC 0.872; 95% CI, 0.771-0.972), with accuracy 83.3%, sensitivity 56.25%, and specificity 94.7%. Calibration and DCA supported clinical utility, and clinical-impact curves indicated favorable threshold behavior. The SHAP analysis identified postoperative CRP as the most influential predictor and provided transparent, individualized risk explanations. We developed and externally validated a robust and interpretable ML model to predict complications following taTME. By leveraging routinely available clinical variables and providing transparent predictive explanations, this model can aid clinicians in identifying high-risk patients for targeted interventions, thereby potentially improving perioperative outcomes.Keywords
Funding Information
- National Natural Science Foundation of China (No. 82403558)
- Joint Funds for the Innovation of Science and Technology, Fujian province (No. 2024Y9208)
- Fujian Provincial “Chu Ying Plan” Young Top-notch Talent Scientific Research Project (No. SCYJHJRC-ZGW2024)
This publication has 42 references indexed in Scilit:
- Transanal vs Laparoscopic Total Mesorectal Excision and 3-Year Disease-Free Survival in Rectal CancerJAMA, 2025
- Prediction of postoperative complications following transanal total mesorectal excision in middle and low rectal cancer: development and internal validation of a clinical prediction modelInternational Journal of Colorectal Disease, 2024
- C-reactive protein trajectory to predict colorectal anastomotic leak: PREDICT StudyBritish Journal of Surgery, 2020
- Locoregional recurrences after transanal total mesorectal excision of rectal cancer during implementationBritish Journal of Surgery, 2020
- Norwegian moratorium on transanal total mesorectal excisionBritish Journal of Surgery, 2019
- Unintended Consequences of Machine Learning in MedicineJAMA, 2017
- Risk factors for prolonged postoperative ileus after laparoscopic sphincter-saving total mesorectal excision for rectal cancer: an analysis of 428 consecutive patientsSurgical Endoscopy, 2017
- Clinical risk factors for anastomotic leakage after laparoscopic anterior resection for rectal cancer: a systematic review and meta-analysisSurgical Endoscopy, 2015
- The prognostic significance of the prognostic nutritional index in cancer: a systematic review and meta-analysisJournal of Cancer Research and Clinical Oncology, 2014
- NOTES transanal rectal cancer resection using transanal endoscopic microsurgery and laparoscopic assistanceSurgical Endoscopy, 2010