Abstract
Wireless Capsule Endoscopy (WCE) provides a non-invasive method for gastrointestinal screening but generates a massive volume of data that is burdensome for manual review. This paper presents Infinite Curriculum Learning (ICL), a novel training strategy designed to detect small gastric ulcers within WCE videos. By utilizing patch scale as a proxy for task difficulty, ICL transitions a model from learning local features in small patches to understanding global context in full-sized images. The proposed method achieves 87.02% classification accuracy and demonstrates the potential to reduce physician screening workloads by up to 98%.
Introduction
Wireless Capsule Endoscopy (WCE) involves a patient swallowing a pill-sized camera that captures tens of thousands of images as it traverses the digestive tract. While effective for diagnosing gastrointestinal diseases, a single exam typically produces approximately 55,000 frames. Identifying signs of a gastric ulcer is a "needle-in-a-haystack" challenge, as pathological features may only appear in a few frames and are often very small relative to the full image.
Manual review by physicians is time-consuming and susceptible to fatigue-related errors. Automated detection via machine learning faces a significant scale challenge: models trained on full images often fail to detect tiny lesions, while those trained only on small patches suffer from high false-positive rates due to a lack of anatomical context.
Methodology: Infinite Curriculum Learning (ICL)
To address the discrepancy between local precision and global context, the authors introduced Infinite Curriculum Learning (ICL). This approach leverages the principles of Curriculum Learning (CL), where a model is first trained on "easy" examples before progressing to "hard" ones.
Scale as a Proxy for Difficulty
In the context of gastric ulcer detection, the authors define difficulty based on the patch scale. A small, zoomed-in patch where the ulcer occupies a large portion of the pixels is considered "easy." Conversely, a full-sized 480x480 image where the ulcer is a minute detail is "hard." Because patches can be sampled at any size from a continuous range, the sampling space is effectively infinite.
Training Pipeline
The ICL framework utilizes a ResNet-101 backbone and follows a structured five-stage training progression:
- Initial Stages: The model is trained on small patches (starting at 96x96 pixels) to learn specific textures and visual characteristics of ulcers.
- Progression: The patch size is incrementally increased (e.g., 192x288, 288x384, 384x480).
- Final Stage: The model is trained on full 480x480 images to learn to distinguish ulcers from global distractors like food particles or air bubbles.
Data augmentation techniques, including random rotations and masking, are applied throughout the process to ensure model robustness.
Dataset and Annotations
The study utilized a massive proprietary dataset of WCE images, comprising over 3.8 million frames from 1,838 patients. Among these, 1,499 patients had confirmed ulcers, while 339 were healthy. Professional physicians manually annotated 33,943 images with bounding boxes. This dataset represents one of the most comprehensive collections for gastric ulcer classification to date.
Key Results and Clinical Impact
The ICL approach yielded significant improvements in both detection performance and clinical efficiency:
- Performance: The model achieved a binary classification accuracy of 87.02% and an Area Under the Curve (AUC) of 93.83%.
- Workload Reduction: In simulated clinical trials, the system filtered 3,000 images down to a subset of 60–300 high-probability frames. This represents a 90%–98% reduction in the number of images a doctor must manually inspect.
- Processing Speed: The system can analyze 3,000 frames in under 40 seconds, enabling near real-time assistance.
Notably, the model identified several ulcers that were initially missed by human annotators, highlighting its potential as a reliable "second opinion" tool to minimize diagnostic errors.
Discussion and Future Work
The success of ICL stems from its structured transition from local feature extraction to global context integration. Unlike random multi-scale training, the curriculum-based progression provides the stability necessary for the model to converge on high-accuracy weights.
However, several limitations remain. The current model is specialized for gastric ulcers; future iterations should expand to multi-class detection for other gastrointestinal conditions like polyps or Crohn’s disease. Additionally, the reliance on a proprietary dataset limits external benchmarking. Future research will focus on optimizing confidence thresholds to balance workload reduction with the sensitivity required to detect subtle, early-stage lesions.
Summary updated