S4500 Automated Image-Based Classification of Stool Morphology Using a Mobile Convolutional Neural Network
Introduction: Patient Bristol Stool Form Scale (BSFS) self-assessment is often unreliable. We trained and validated a smartphone-compatible convolutional neural network (CNN) to classify stool images by BSFS type, offering an objective alternative to patient diaries. Case Description: We obtained 208 de-identified stool photographs covering BSFS types 1 through 7. Two physicians (1 internal medicine resident and 1 gastroenterology fellow) independently labeled every image; disagreements were resolved by consensus. Images were randomly divided into an 80% training set and a 20% validation set. The Google Teachable Machine default CNN architecture was trained for 30 epochs with a learning rate of 0.0001. The primary outcome was overall validation accuracy. Secondary outcomes included per-class precision, recall, F1 score, and comparison with physician performance on the same images. A 30-day pilot diary study compared automated classifications with patient self-reports. The CNN achieved an overall validation accuracy of 83%. Per-class precision ranged from 63.6% for type 5 to 92.1% for type 1. Mean sensitivity and specificity across classes were 79.4% and 86% percent, respectively. Two blinded physicians achieved a mean accuracy of 79%; the difference versus the model was not statistically significant (P = 0.42). In the pilot study, the CNN correctly classified 124 of 150 images (83%), exceeding patient diary concordance, which was 67%, by 16 percentage points. Discussion: A CNN trained with 208 images classified stool morphology with accuracy comparable to expert physicians, demonstrating feasibility for objective BSFS assessment in clinical practice and research. Future work will enlarge the dataset, improve performance on under-represented classes, and prospectively assess clinical impact. Institutional review board approval was not required because all images were de-identified and collected for quality improvement.
Authors
- Abhishek Patel (ORCID: https://orcid.org/0000-0003-3691-2629)
- Ahmed Eltelbany (ORCID: https://orcid.org/0000-0001-8391-426X)
- Pooja Viswanath
- Evelyn Inga
Publication Details
- Journal
- The American Journal of Gastroenterology
- Published
- 2025-10-01
- DOI
- https://doi.org/10.14309/01.ajg.0001145460.00185.df
- Primary Topic
- Gastrointestinal Bleeding Diagnosis and Treatment
- Type
- article
- Field-Weighted Citation Impact
- 0.00