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
Multicenter Study
. 2025 Mar 3:27:e68354.
doi: 10.2196/68354.

Machine Learning-Based Prediction of Early Complications Following Surgery for Intestinal Obstruction: Multicenter Retrospective Study

Affiliations
Multicenter Study

Machine Learning-Based Prediction of Early Complications Following Surgery for Intestinal Obstruction: Multicenter Retrospective Study

Pinjie Huang et al. J Med Internet Res. .

Abstract

Background: Early complications increase in-hospital stay and mortality after intestinal obstruction surgery. It is important to identify the risk of postoperative early complications for patients with intestinal obstruction at a sufficiently early stage, which would allow preemptive individualized enhanced therapy to be conducted to improve the prognosis of patients with intestinal obstruction. A risk predictive model based on machine learning is helpful for early diagnosis and timely intervention.

Objective: This study aimed to construct an online risk calculator for early postoperative complications in patients after intestinal obstruction surgery based on machine learning algorithms.

Methods: A total of 396 patients undergoing intestinal obstruction surgery from April 2013 to April 2021 at an independent medical center were enrolled as the training cohort. Overall, 7 machine learning methods were used to establish prediction models, with their performance appraised via the area under the receiver operating characteristic curve (AUROC), accuracy, sensitivity, specificity, and F1-score. The best model was validated through 2 independent medical centers, a publicly available perioperative dataset the Informative Surgical Patient dataset for Innovative Research Environment (INSPIRE), and a mixed cohort consisting of the above 3 datasets, involving 50, 66, 48, and 164 cases, respectively. Shapley Additive Explanations were measured to identify risk factors.

Results: The incidence of postoperative complications in the training cohort was 47.44% (176/371), while the incidences in 4 external validation cohorts were 34% (17/50), 56.06% (37/66), 52.08% (25/48), and 48.17% (79/164), respectively. Postoperative complications were associated with 8-item features: Physiological Severity Score for the Enumeration of Mortality and Morbidity (POSSUM physiological score), the amount of colloid infusion, shock index before anesthesia induction, ASA (American Society of Anesthesiologists) classification, the percentage of neutrophils, shock index at the end of surgery, age, and total protein. The random forest model showed the best overall performance, with an AUROC of 0.788 (95% CI 0.709-0.869), accuracy of 0.756, sensitivity of 0.695, specificity of 0.810, and F1-score of 0.727 in the training cohort. The random forest model also achieved a comparable AUROC of 0.755 (95% CI 0.652-0.839) in validation cohort 1, a greater AUROC of 0.817 (95% CI 0.695-0.913) in validation cohort 2, a similar AUROC of 0.786 (95% CI 0.628-0.902) in validation cohort 3, and the comparable AUROC of 0.720 (95% CI 0.671-0.768) in validation cohort 4. We visualized the random forest model and created a web-based online risk calculator.

Conclusions: We have developed and validated a generalizable random forest model to predict postoperative early complications in patients undergoing intestinal obstruction surgery, enabling clinicians to screen high-risk patients and implement early individualized interventions. An online risk calculator for early postoperative complications was developed to make the random forest model accessible to clinicians around the world.

Keywords: Shapley additive explanations; early intervention; intestinal obstruction; machine learning; postoperative complications; prediction model; risk calculator.

PubMed Disclaimer

Conflict of interest statement

Conflicts of Interest: None declared.

Figures

Figure 1
Figure 1
Flowchart of patient enrollment. ADA: adaptive boosting classifier; GBM: gradient boosting machine; GNB: Gaussian Bayesian classifier; LR: logistic regression; MLP: multilayer perceptron; RF: random forest; SVM: support vector machine.
Figure 2
Figure 2
The process of using a wrapper feature selection method to screen features. Upon the initial selection of the first 8 features, the model achieved its peak area under the receiver operating characteristic (AUROC) curve on the validation set. Subsequent addition of features did not result in a further increase of the AUROC. Consequently, we opted for the top 8 features with the highest Shapley Additive Explanations value.
Figure 3
Figure 3
Use of the receiver operating characteristic curve plots to demonstrate the performance of the machine learning model in different cohorts. ADA: adaptive boosting; GBM: gradient boosting machine; GNB: Gaussian Bayesian classifier; LR: logistic regression; MLP: multilayer perceptron; RF: random forest; SVM: support vector machine.
Figure 4
Figure 4
Use of Shapley Additive Explanations (SHAP) summary plot and SHAP dependence plot to demonstrate the importance and impact of variables on the random forest model. ASA: American Society of Anesthesiologists; SHAP: Shapley Additive Explanations; NEUT%: neutrophil percentage; POSSUM: Physiological and Operative Severity Score for the Enumeration of Mortality and Morbidity.
Figure 5
Figure 5
Use the SHAP decision plots and SHAP force plots to demonstrate the decision pathways and feature importance of the RF model in specific patients.
Figure 6
Figure 6
Calculation tool of random forest model to estimate early complications after intestinal obstruction surgery. After inputting 8 variables into the random forest model, the prediction model output for the case was “positive” with a probability of 86%.

References

    1. Veen EJ, Janssen-Heijnen MLG, Leenen LPH, Roukema JA. The registration of complications in surgery: a learning curve. World J Surg. 2005;29(3):402–409. doi: 10.1007/s00268-004-7358-8. - DOI - PubMed
    1. Amelung FJ, de Beaufort HWL, Siersema PD, Verheijen PM, Consten ECJ. Emergency resection versus bridge to surgery with stenting in patients with acute right-sided colonic obstruction: a systematic review focusing on mortality and morbidity rates. Int J Colorectal Dis. 2015;30(9):1147–1155. doi: 10.1007/s00384-015-2216-8. - DOI - PubMed
    1. Jeppesen MH, Tolstrup MB, Kehlet Watt S, Gögenur I. Risk factors affecting morbidity and mortality following emergency laparotomy for small bowel obstruction: a retrospective cohort study. Int J Surg. 2016;28:63–68. doi: 10.1016/j.ijsu.2016.02.059. https://linkinghub.elsevier.com/retrieve/pii/S1743-9191(16)00168-0 S1743-9191(16)00168-0 - DOI - PubMed
    1. Quah GS, Eslick GD, Cox MR. Laparoscopic versus open surgery for adhesional small bowel obstruction: a systematic review and meta-analysis of case-control studies. Surg Endosc. 2019;33(10):3209–3217. doi: 10.1007/s00464-018-6604-3.10.1007/s00464-018-6604-3 - DOI - PubMed
    1. Lee MJ, Sayers AE, Drake TM, Marriott PJ, Anderson ID, Bach SP, Bradburn M, Hind D, Verjee A, Fearnhead NS, NASBO steering group and NASBO collaborators National prospective cohort study of the burden of acute small bowel obstruction. BJS Open. 2019;3(3):354–366. doi: 10.1002/bjs5.50136. https://europepmc.org/abstract/MED/31183452 BJS550136 - DOI - PMC - PubMed

Publication types

LinkOut - more resources