S3092 Automated Detection and Classification of Small Bowel Lesions in Capsule Endoscopy Using Vision Transformer (ViT) Architecture

Introduction: Capsule endoscopy (CE) visualizes the small bowel to detect lesions that traditional methods often miss. However, the vast number of images it produces can overwhelm physicians and lead to missed findings. To address this, we developed an artificial intelligence (AI) model based on the Vision Transformer (ViT) architecture to automatically detect and classify small-bowel lesions. Using the SEE-AI and Kvasir-Capsule datasets of annotated CE images, our system aims to help clinicians identify abnormalities more quickly and accurately, enhancing CE’s clinical utility. Methods: We developed a Vision Transformer–based model to automate small-bowel lesion detection in capsule endoscopy images. It was trained, validated, and tested on the SEE-AI (40 587 train, 8 696 validation, 8 696 test images) and Kvasir-Capsule (annotations from 117 videos across 21 lesion types) datasets. For comparison, we also evaluated DenseNet121 and ResNet50. Model performance was measured by accuracy, precision, recall, F1-score, and area under the receiver operating characteristic curve. Results: The ViT model demonstrated outstanding performance, achieving 96.68% training accuracy, 92.03% validation accuracy, and 92.20% test accuracy. Area under the curve (AUC) values for most lesion categories were close to or equal to 1, indicating robust classification performance. The overall precision, recall, and F1-scores for ViT were all 0.92 (weighted averages), reflecting consistent, high-quality results across datasets. In contrast, DenseNet121 showed moderate performance, with training accuracy of 93.56%, validation accuracy of 75.18%, and test accuracy of 74%, indicating limitations in recognizing certain lesion types. ResNet50 performed poorly, with training accuracy of 65.52%, validation accuracy of 37.03%, and test accuracy of 38%, demonstrating significant challenges in handling the complexities of CE images. These results emphasize the superior performance of the ViT model, which achieved greater diagnostic precision and showed considerable potential for clinical use in automated CE image analysis. Conclusion: The Vision Transformer (ViT) excelled at automating small-bowel lesion detection and classification in capsule endoscopy. These findings suggest AI can ease physicians’ workloads without sacrificing diagnostic accuracy. Future work will validate the system in real-world clinical settings and integrate it into video-based CE workflows.

Publication Details

Journal
The American Journal of Gastroenterology
Published
2025-10-01
DOI
https://doi.org/10.14309/01.ajg.0001139828.02050.46
Primary Topic
Gastrointestinal Bleeding Diagnosis and Treatment
Type
article
Field-Weighted Citation Impact
0.00
Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
article

S3092 Automated Detection and Classification of Small Bowel Lesions in Capsule Endoscopy Using Vision Transformer (ViT) Architecture

The American Journal of Gastroenterology
Gastrointestinal Bleeding Diagnosis and Treatment
article

S3092 Automated Detection and Classification of Small Bowel Lesions in Capsule Endoscopy Using Vision Transformer (ViT) Architecture

article en

Abstract

Introduction: Capsule endoscopy (CE) visualizes the small bowel to detect lesions that traditional methods often miss. However, the vast number of images it produces can overwhelm physicians and lead to missed findings. To address this, we developed an artificial intelligence (AI) model based on the Vision Transformer (ViT) architecture to automatically detect and classify small-bowel lesions. Using the SEE-AI and Kvasir-Capsule datasets of annotated CE images, our system aims to help clinicians identify abnormalities more quickly and accurately, enhancing CE’s clinical utility. Methods: We developed a Vision Transformer–based model to automate small-bowel lesion detection in capsule endoscopy images. It was trained, validated, and tested on the SEE-AI (40 587 train, 8 696 validation, 8 696 test images) and Kvasir-Capsule (annotations from 117 videos across 21 lesion types) datasets. For comparison, we also evaluated DenseNet121 and ResNet50. Model performance was measured by accuracy, precision, recall, F1-score, and area under the receiver operating characteristic curve. Results: The ViT model demonstrated outstanding performance, achieving 96.68% training accuracy, 92.03% validation accuracy, and 92.20% test accuracy. Area under the curve (AUC) values for most lesion categories were close to or equal to 1, indicating robust classification performance. The overall precision, recall, and F1-scores for ViT were all 0.92 (weighted averages), reflecting consistent, high-quality results across datasets. In contrast, DenseNet121 showed moderate performance, with training accuracy of 93.56%, validation accuracy of 75.18%, and test accuracy of 74%, indicating limitations in recognizing certain lesion types. ResNet50 performed poorly, with training accuracy of 65.52%, validation accuracy of 37.03%, and test accuracy of 38%, demonstrating significant challenges in handling the complexities of CE images. These results emphasize the superior performance of the ViT model, which achieved greater diagnostic precision and showed considerable potential for clinical use in automated CE image analysis. Conclusion: The Vision Transformer (ViT) excelled at automating small-bowel lesion detection and classification in capsule endoscopy. These findings suggest AI can ease physicians’ workloads without sacrificing diagnostic accuracy. Future work will validate the system in real-world clinical settings and integrate it into video-based CE workflows.

The American Journal of GastroenterologyVol. 120(10S2)
Openalex Percentile: Top 30%
Gastrointestinal Bleeding Diagnosis and Treatment
AI Navigator

Ask Laika to Summarize, Analyze, and Connect papers live on the map.

Summarize Papers & Methodologies

Extract key findings, datasets, and comparative methods across publications.

Benchmark Rankings & Visual Analytics

Rank top research institutions, authors, funders, topics, and journals by Field-Weighted Citation Impact (FWCI) and paper volume with instant charts.

Connect Distant Disciplines

Bridge topological clusters on the map to find hidden collaborative intersections.