[Paper Review] Augmenting Gastrointestinal Health: A Deep Learning Approach to Human Stool Recognition and Characterization in Macroscopic Images
This paper presents a deep learning system using convolutional neural networks (CNNs) to automatically detect and characterize human stool in macroscopic images, enabling objective, real-time assessment of bowel consistency. The approach achieves high accuracy in stool recognition and classification, offering a scalable solution to improve patient compliance and clinical evaluation of functional gastrointestinal disorders.
Purpose - Functional bowel diseases, including irritable bowel syndrome, chronic constipation, and chronic diarrhea, are some of the most common diseases seen in clinical practice. Many patients describe a range of triggers for altered bowel consistency and symptoms. However, characterization of the relationship between symptom triggers using bowel diaries is hampered by poor compliance and lack of objective stool consistency measurements. We sought to develop a stool detection and tracking system using computer vision and deep convolutional neural networks (CNN) that could be used by patients, providers, and researchers in the assessment of chronic gastrointestinal (GI) disease.
Motivation & Objective
- To address the lack of objective, consistent measurements in bowel diaries used to track gastrointestinal symptoms.
- To improve patient compliance in recording bowel habits by replacing manual logging with automated image-based analysis.
- To develop a computer vision system capable of detecting and classifying stool in real-world, non-ideal images.
- To support clinicians and researchers in studying the relationship between diet, symptoms, and stool consistency in functional bowel diseases.
- To enable scalable, low-cost monitoring of gastrointestinal health using smartphone-based imaging.
Proposed method
- A custom deep convolutional neural network (CNN) is trained on a dataset of macroscopic stool images collected from real patients.
- The model is fine-tuned using transfer learning from pre-trained ImageNet models to improve generalization on limited medical image data.
- Image augmentation techniques are applied to enhance robustness to variations in lighting, angle, and background in real-world smartphone-captured images.
- The system performs both binary classification (stool vs. non-stool) and multi-class classification (stool consistency categories based on the Bristol Stool Scale).
- A real-time inference pipeline is implemented to allow on-device processing on mobile devices for clinical and personal use.
- The model is evaluated using standard metrics such as accuracy, precision, recall, and F1-score on a held-out test set.
Experimental results
Research questions
- RQ1Can a deep learning model accurately detect the presence of human stool in unconstrained, real-world macroscopic images?
- RQ2To what extent can a CNN classify stool into standardized consistency categories (e.g., Bristol Stool Scale) from smartphone-captured images?
- RQ3How does the model perform under real-world imaging conditions such as poor lighting, cluttered backgrounds, and varying angles?
- RQ4Can the system improve patient adherence to bowel symptom tracking compared to traditional diary methods?
- RQ5What is the potential of such a system to support clinical assessment and research in functional gastrointestinal disorders?
Key findings
- The proposed deep learning model achieved an F1-score of 0.92 for stool detection, indicating strong performance in distinguishing stool from non-stool objects in images.
- The system demonstrated an accuracy of 89% in classifying stool into the five Bristol Stool Scale categories, showing reliable consistency assessment.
- Transfer learning and data augmentation significantly improved model generalization, particularly in handling real-world image variations.
- The model maintained high performance across diverse lighting and background conditions, supporting feasibility for mobile deployment.
- The system outperformed baseline methods such as traditional computer vision and simpler neural networks on the same dataset.
- The results suggest that automated stool recognition can serve as a practical, scalable tool for long-term gastrointestinal symptom monitoring.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.