Comparative Analysis of CNNs and Vision Transformers for Lesion Classification in Capsule Endoscopy

Video capsule endoscopy (VCE) enables high-resolution visualisation of the small bowel but remains constrained by manual review of thousands of frames, which is time-consuming and error-prone under class imbalance. This study investigates deep learning for automatic multiclass lesion classification in VCE, comparing two convolutional networks (ResNet-50, EfficientNet-B3) with two Vision Transformers (Swin, DeiT) on the public Kvasir-Capsule dataset (47,161 images; 11 classes). The pipeline comprises standard preprocessing, class-aware augmentation and adaptive data augmentation, stratified data partitioning, hyperparameter optimisation with Optuna, and evaluation using accuracy, precision, recall, and F1-score. DeiT achieved the best overall performance (accuracy = 0.98; F1 = 0.96), with strong class-wise results in clinically salient categories (e.g., ulcer, fresh blood, angiectasia), indicating effective modelling of long-range dependencies and subtle patterns. We further assess computational feasibility by reporting training configuration and indicative inference time per image, supporting potential integration into assisted reading workflows. Limitations include reliance on a single public dataset, pronounced class imbalance, and the absence of prospective clinical validation, which may affect generalisability. These findings position Transformer-based models as promising candidates for VCE decision support, while underscoring the need for future work on (i) multicentric datasets and external validation, (ii) comprehensive statistical analysis with confidence intervals and robust baselines under imbalance, and (iii) prospective studies quantifying end-to-end impact on reading time and diagnostic safety.

Authors

Institutions

Publication Details

Journal
Procedia Computer Science
Published
2026-01-01
DOI
https://doi.org/10.1016/j.procs.2026.03.099
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

Comparative Analysis of CNNs and Vision Transformers for Lesion Classification in Capsule Endoscopy

António E. Cunha, Danilo Leite, Marta Salgado, Carolina Tabosa
Procedia Computer Science
Gastrointestinal Bleeding Diagnosis and Treatment
article

Comparative Analysis of CNNs and Vision Transformers for Lesion Classification in Capsule Endoscopy

António E. Cunha, Danilo Leite, Marta Salgado, Carolina Tabosa
article en

Abstract

Video capsule endoscopy (VCE) enables high-resolution visualisation of the small bowel but remains constrained by manual review of thousands of frames, which is time-consuming and error-prone under class imbalance. This study investigates deep learning for automatic multiclass lesion classification in VCE, comparing two convolutional networks (ResNet-50, EfficientNet-B3) with two Vision Transformers (Swin, DeiT) on the public Kvasir-Capsule dataset (47,161 images; 11 classes). The pipeline comprises standard preprocessing, class-aware augmentation and adaptive data augmentation, stratified data partitioning, hyperparameter optimisation with Optuna, and evaluation using accuracy, precision, recall, and F1-score. DeiT achieved the best overall performance (accuracy = 0.98; F1 = 0.96), with strong class-wise results in clinically salient categories (e.g., ulcer, fresh blood, angiectasia), indicating effective modelling of long-range dependencies and subtle patterns. We further assess computational feasibility by reporting training configuration and indicative inference time per image, supporting potential integration into assisted reading workflows. Limitations include reliance on a single public dataset, pronounced class imbalance, and the absence of prospective clinical validation, which may affect generalisability. These findings position Transformer-based models as promising candidates for VCE decision support, while underscoring the need for future work on (i) multicentric datasets and external validation, (ii) comprehensive statistical analysis with confidence intervals and robust baselines under imbalance, and (iii) prospective studies quantifying end-to-end impact on reading time and diagnostic safety.

Procedia Computer ScienceVol. 278
University of Trás-os-Montes and Alto Douro (PT), Hospital de Santo António (PT)
Quality Education
Openalex Percentile: Top 10%
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.

Comparative Analysis of CNNs and Vision Transformers for Lesion Classification in Capsule Endoscopy — António E. Cunha, Danilo Leite, et al. · Procedia Computer Science (2026) | TGRS Research Map | TGRS