An End-to-End Deep Learning System for Gastrointestinal Bleeding Detection and Quantification in Wireless Capsule Endoscopy
Abstract
Background/Objectives: Gastrointestinal bleeding is a critical finding in wireless capsule endoscopy (WCE), but manual examination of thousands of image frames is labor-intensive, time-consuming, and susceptible to missed lesions. This study aimed to develop and evaluate a comprehensive deep-learning framework for automated bleeding detection, localization, and quantitative assessment in WCE images. Methods: The proposed framework integrates three complementary deep-learning models: (i) a custom two-dimensional convolutional neural network (2D-CNN) for frame-level bleeding classification, (ii) a three-dimensional convolutional neural network (3D-CNN) for sequence-level analysis by exploiting temporal information from consecutive frames, and (iii) a U-Net architecture for pixel-level segmentation and bleeding-area quantification. The models were trained and evaluated using expert-annotated WCE datasets with pixel-level ground-truth masks. Results: The proposed 2D-CNN and 3D-CNN achieved excellent classification performance, with areas under the receiver operating characteristic curve (AUCs) of 0.9986 and 0.9971, respectively. The U-Net model achieved a Dice similarity coefficient of 0.93, an intersection-over-union (IoU) of 0.8677, and an overall segmentation accuracy of 97.25%. The integrated framework outperformed previously reported methods, demonstrating robust performance for bleeding detection, localization, and quantitative assessment. Conclusions: The proposed end-to-end deep-learning framework enables accurate automated bleeding detection, localization, and severity quantification in WCE images. By reducing the burden of manual image review, improving diagnostic consistency, and providing objective bleeding assessment, the framework has strong potential to support clinical decision-making and enhance gastrointestinal diagnostic workflows.