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
. 2024 Sep 19;4(2):100556.
doi: 10.1016/j.gastha.2024.09.011. eCollection 2025.

Text Message System for the Prediction of Colonoscopy Bowel Preparation Adequacy Before Colonoscopy: An Artificial Intelligence Image Classification Algorithm Based on Images of Stool Output

Affiliations

Text Message System for the Prediction of Colonoscopy Bowel Preparation Adequacy Before Colonoscopy: An Artificial Intelligence Image Classification Algorithm Based on Images of Stool Output

Chethan Ramprasad et al. Gastro Hep Adv. .

Abstract

Background and aims: Inadequate bowel preparation which occurs in 25% of colonoscopies is a major barrier to the effectiveness of screening for colorectal cancer. We aim to develop an artificial intelligence (machine learning) algorithm to assess photos of stool output after bowel preparation to predict inadequate bowel preparation before colonoscopy.

Methods: Patients were asked to text a photo of their stool in the commode when they believed that they neared completion of their colonoscopy bowel preparation. Boston Bowel Preparation Scores of 7 and below were labeled as inadequate or fair. Boston Bowel Preparation Scores of 8 and 9 were considered good. A binary classification image-based machine learning algorithm was designed.

Results: In a test set of 61 images, the binary classification machine learning algorithm was able to distinguish inadequate/fair preparation from good preparation with a positive predictive value of 78.6% and a negative predictive value of 60.8%. In a test set of 56 images, the algorithm was able to distinguish normal colonoscopy duration (<25 minutes) from long colonoscopy duration (>25 minutes) with a positive predictive value of 78.6% and a negative predictive value of 65.5%.

Conclusion: Patients are willing to submit photos of their stool output during bowel preparation through text messages before colonoscopy. This machine learning algorithm demonstrates the ability to predict inadequate/fair preparation from good preparation based on image classification of stool output. It was less accurate to predict long duration of colonoscopy.

Keywords: Artificial Intelligence; Bowel Preparation; Colonoscopy; Technology Positive.

PubMed Disclaimer

Figures

Figure 1
Figure 1
Development of artificial intelligence algorithm.
Figure 2
Figure 2
Performance analysis of alternative convolutional neural networks.
Figure 3
Figure 3
Flowchart of patients who submitted photos of stool output out of total patients scheduled for colonoscopy.
Figure 4
Figure 4
Analysis of stool output images by artificial intelligence algorithm.
Figure 5
Figure 5
Algorithm performance for prediction of adequacy of bowel preparation.

References

    1. Doubeni C.A., Corley D.A., Quinn V.P., et al. Effectiveness of screening colonoscopy in reducing the risk of death from right and left colon cancer: a large community-based study. Gut. 2018;67(2):291–298. - PMC - PubMed
    1. Kluge M.A., Williams J.L., Wu C.K., et al. Inadequate Boston Bowel Preparation Scale scores predict the risk of missed neoplasia on the next colonoscopy. Gastrointest Endosc. 2018;87(3):744–751. - PMC - PubMed
    1. Hopkins R.L., Parsons D., Hoyo L., et al. Evaluating the practice of canceling colonoscopies for presumed inadequate bowel preparation. Gastrointest Endosc. 2020;92(2):382–386. - PubMed
    1. Mahmood S., Farooqui S.M., Madhoun M.F. Predictors of inadequate bowel preparation for colonoscopy: a systematic review and meta-analysis. Eur J Gastroenterol Hepatol. 2018;30(8):819–826. - PubMed
    1. Baker F.A., Mari A., Nafrin S., et al. Predictors and colonoscopy outcomes of inadequate bowel cleansing: a 10-year experience in 28,725 patients. Ann Gastroenterol. 2019;32(5):457. - PMC - PubMed

LinkOut - more resources