Back

STOMAPY: Artificial Intelligence for Risk Stratification of Outcomes Requiring Enterostomal Therapy After Hospital Discharge Following Colorectal Surgery

Teixeira, A. C. F. d. S. B.; Pereira, O. d. A.; Vasconcelos, J. P.; Alves, J. M. F.; Teixeira, C. E. C.

2026-05-14 nursing
10.64898/2026.05.11.26352943 medRxiv
Show abstract

Introduction: Infectious and wound-healing complications after colorectal surgery often increase the complexity of local care and the need for specialized enterostomal therapy follow-up after hospital discharge. Despite the growing use of predictive models in digestive surgery, a translational gap remains between perioperative prediction and the practical organization of specialized care. Therefore, the aim of this study was to develop and temporally validate a machine-learning-based risk stratification model to estimate the probability of post-discharge outcomes associated with greater demand for enterostomal therapy after colorectal surgery. Methods: This was a retrospective observational study including 7,908 patients who underwent colorectal surgery between 2005 and 2014. The outcome was defined as the occurrence of superficial surgical site infection, delayed wound healing, or abdominal sinus formation. Routinely available preoperative and intraoperative variables were used as predictors. The primary model was based on gradient boosting with isotonic calibration. Temporal validation was performed by separating cohorts according to year of surgery. Performance was assessed using ROC-AUC, PR-AUC, Brier score, calibration, and decision-oriented clinical metrics. Clinical utility was examined through percentile-based risk stratification and Decision Curve Analysis (DCA). Results: The outcome prevalence in the test set was 6.6%. The calibrated model achieved a ROC-AUC of 0.64 and a PR-AUC of 0.11, with a Brier score of 0.061. The Top-10% risk stratum concentrated approximately twice the baseline event rate ({approx}14% vs. 6.6%), with a number needed for intensified follow-up of 7 patients to identify one event. Decision curve analysis showed greater net benefit than strategies of following all or no patients, particularly for threshold probabilities between 3% and 13%. Models based exclusively on preoperative or intraoperative variables performed worse than the combined model. Conclusion: STOMAPY demonstrated the ability to organize patients along a continuous gradient of risk for post-discharge outcomes associated with greater demand for enterostomal therapy. Although discriminatory performance was moderate, the adequate calibration, temporal validation, and net benefit observed across clinically plausible thresholds support its usefulness as a tool for proportional care prioritization rather than as an individual diagnostic test. Prospective studies and external validations are needed to confirm direct clinical impact.

Matching journals

The top 4 journals account for 50% of the predicted probability mass.

1
PLOS ONE
4510 papers in training set
Top 5%
23.5%
2
Frontiers in Medicine
113 papers in training set
Top 0.1%
19.4%
3
PLOS Computational Biology
1633 papers in training set
Top 5%
6.7%
4
Scientific Reports
3102 papers in training set
Top 21%
5.1%
50% of probability mass above
5
BMC Medical Informatics and Decision Making
39 papers in training set
Top 0.6%
4.5%
6
International Journal of Environmental Research and Public Health
124 papers in training set
Top 2%
3.2%
7
Biology Methods and Protocols
53 papers in training set
Top 0.5%
2.5%
8
Journal of Clinical Medicine
91 papers in training set
Top 2%
2.5%
9
JMIR Medical Informatics
17 papers in training set
Top 0.5%
2.2%
10
npj Digital Medicine
97 papers in training set
Top 2%
1.9%
11
Journal of Medical Internet Research
85 papers in training set
Top 2%
1.8%
12
Frontiers in Public Health
140 papers in training set
Top 4%
1.7%
13
PeerJ
261 papers in training set
Top 8%
1.4%
14
Frontiers in Artificial Intelligence
18 papers in training set
Top 0.4%
1.4%
15
BMC Medicine
163 papers in training set
Top 5%
1.3%
16
JAMIA Open
37 papers in training set
Top 1%
0.9%
17
BMJ Open
554 papers in training set
Top 11%
0.9%
18
Frontiers in Endocrinology
53 papers in training set
Top 2%
0.9%
19
Life
27 papers in training set
Top 0.3%
0.8%
20
Antimicrobial Resistance & Infection Control
10 papers in training set
Top 0.3%
0.7%
21
Computer Methods and Programs in Biomedicine
27 papers in training set
Top 1%
0.5%
22
Computers in Biology and Medicine
120 papers in training set
Top 6%
0.5%
23
Computational and Structural Biotechnology Journal
216 papers in training set
Top 11%
0.5%