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
. 2025 Mar 7;20(3):e0315638.
doi: 10.1371/journal.pone.0315638. eCollection 2025.

Multivariate Gaussian Bayes classifier with limited data for segmentation of clean and contaminated regions in the small bowel capsule endoscopy images

Affiliations

Multivariate Gaussian Bayes classifier with limited data for segmentation of clean and contaminated regions in the small bowel capsule endoscopy images

Vahid Sadeghi et al. PLoS One. .

Abstract

A considerable amount of undesirable factors in the wireless capsule endoscopy (WCE) procedure hinder the proper visualization of the small bowel and take gastroenterologists more time to review. Objective quantitative assessment of different bowel preparation paradigms and saving the physician reviewing time motivated us to present an automatic low-cost statistical model for automatically segmenting of clean and contaminated regions in the WCE images. In the model construction phase, only 20 manually pixel-labeled images have been used from the normal and reduced mucosal view classes of the Kvasir capsule endoscopy dataset. In addition to calculating prior probability, two different probabilistic tri-variate Gaussian distribution models (GDMs) with unique mean vectors and covariance matrices have been fitted to the concatenated RGB color pixel intensity values of clean and contaminated regions separately. Applying the Bayes rule, the membership probability of every pixel of the input test image to each of the two classes is evaluated. The robustness has been evaluated using 5 trials; in each round, from the total number of 2000 randomly selected images, 20 and 1980 images have been used for model construction and evaluation modes, respectively. Our experimental results indicate that accuracy, precision, specificity, sensitivity, area under the receiver operating characteristic curve (AUROC), dice similarity coefficient (DSC), and intersection over union (IOU) are 0.89 ± 0.07, 0.91 ± 0.07, 0.73 ± 0.20, 0.90 ± 0.12, 0.92 ± 0.06, 0.92 ± 0.05 and 0.86 ± 0.09, respectively. The presented scheme is easy to deploy for objectively assessing small bowel cleansing score, comparing different bowel preparation paradigms, and decreasing the inspection time. The results from the SEE-AI project dataset and CECleanliness database proved that the proposed scheme has good adaptability.

PubMed Disclaimer

Conflict of interest statement

The authors have declared that no competing interests exist.

Figures

Fig 1
Fig 1. Structure of the proposed clean and contaminated region segmentation method.
Fig 2
Fig 2. Typical example of WCE images with their corresponding binary GT masks.
First and second rows: original images and their manually annotated binary masks, respectively.
Fig 3
Fig 3. Demonstration of the distributions and model-fitting performance on the concatenated RGB pixel intensity values of (a): clean and (b): contaminated regions.
In the first, second, and third rows, the empirical histogram and the fitted Gaussian distribution models have been plotted in the R, G, and B color components, respectively (as their color indicates).
Fig 4
Fig 4. Typical images from three different datasets along with their GT and predicted mask by the GBC model.
Fig 5
Fig 5. The predicted black-and-white masks by the GBC model for some corrupted images subjected to different degradations.
Fig 6
Fig 6. The generated black and white segmentation mask along with the original image and their corresponding GT masks of some randomly chosen frames.
(a) Original images. (b) GT mask. (c) Output mask by the U-Net. (d) Predicted mask of Pix2Pix. (e) Outcome mask of the GBC.
Fig 7
Fig 7. Scatterplot demonstrates a comparison between the area of clean region prediction by the automated GBC segmentation model and the manually annotation for the test images.

References

    1. ASGE Technology Committee, Wang A, Banerjee S, Barth BA, Bhat YM, Chauhan S, et al.. Wireless capsule endoscopy. Gastrointest Endosc. 2013;78(6):805–15. doi: 10.1016/j.gie.2013.06.026 - DOI - PubMed
    1. Chen H-B, Huang Y, Chen S-Y, Deng D-Y, Gao L-H, Xie J-T, et al.. A comparative study of two kinds of small bowel cleaning score system for capsule endoscopy. Acta Gastroenterol Belg. 2012;75(3):342–8. - PubMed
    1. Yung DE, Rondonotti E, Sykes C, Pennazio M, Plevris JN, Koulaouzidis A. Systematic review and meta-analysis: is bowel preparation still necessary in small bowel capsule endoscopy? Expert Rev Gastroenterol Hepatol. 2017;11(10):979–93. doi: 10.1080/17474124.2017.1359540 - DOI - PubMed
    1. Albert J, Göbel C-M, Lesske J, Lotterer E, Nietsch H, Fleig WE. Simethicone for small bowel preparation for capsule endoscopy: a systematic, single-blinded, controlled study. Gastrointest Endosc. 2004;59(4):487–91. doi: 10.1016/s0016-5107(04)00003-3 - DOI - PubMed
    1. Rosa BJF, Barbosa M, Magalhães J, Rebelo A, Moreira MJ, Cotter J. Oral purgative and simethicone before small bowel capsule endoscopy. World J Gastrointest Endosc. 2013;5(2):67–73. doi: 10.4253/wjge.v5.i2.67 - DOI - PMC - PubMed

LinkOut - more resources