Machine learning-based prediction models affecting the recovery of postoperative bowel function for patients undergoing colorectal surgeries

BMC Surg. 2024 May 10;24(1):143. doi: 10.1186/s12893-024-02437-9.

Abstract

Purpose: The debate surrounding factors influencing postoperative flatus and defecation in patients undergoing colorectal resection prompted this study. Our objective was to identify independent risk factors and develop prediction models for postoperative bowel function in patients undergoing colorectal surgeries.

Methods: A retrospective analysis of medical records was conducted for patients who undergoing colorectal surgeries at Peking University People's Hospital from January 2015 to October 2021. Machine learning algorithms were employed to identify risk factors and construct prediction models for the time of the first postoperative flatus and defecation. The prediction models were evaluated using sensitivity, specificity, the Youden index, and the area under the receiver operating characteristic curve (AUC) through logistic regression, random forest, Naïve Bayes, and extreme gradient boosting algorithms.

Results: The study included 1358 patients for postoperative flatus timing analysis and 1430 patients for postoperative defecation timing analysis between January 2015 and December 2020 as part of the training phase. Additionally, a validation set comprised 200 patients who undergoing colorectal surgeries from January to October 2021. The logistic regression prediction model exhibited the highest AUC (0.78) for predicting the timing of the first postoperative flatus. Identified independent risk factors influencing the time of first postoperative flatus were Age (p < 0.01), oral laxatives for bowel preparation (p = 0.01), probiotics (p = 0.02), oral antibiotics for bowel preparation (p = 0.02), duration of operation (p = 0.02), postoperative fortified antibiotics (p = 0.02), and time of first postoperative feeding (p < 0.01). Furthermore, logistic regression achieved an AUC of 0.72 for predicting the time of first postoperative defecation, with age (p < 0.01), oral antibiotics for bowel preparation (p = 0.01), probiotics (p = 0.01), and time of first postoperative feeding (p < 0.01) identified as independent risk factors.

Conclusions: The study suggests that he use of probiotics and early recovery of diet may enhance the recovery of bowel function in patients undergoing colorectal surgeries. Among the various analytical methods used, logistic regression emerged as the most effective approach for predicting the timing of the first postoperative flatus and defecation in this patient population.

Keywords: Colorectal surgeries; Machine learning; Prediction models; Time of first postoperative defecation; Time of first postoperative flatus.

MeSH terms

  • Adult
  • Aged
  • Defecation* / physiology
  • Female
  • Humans
  • Machine Learning*
  • Male
  • Middle Aged
  • Postoperative Complications* / prevention & control
  • Postoperative Period
  • Recovery of Function*
  • Retrospective Studies
  • Risk Factors