LightGastroFormer: a lightweight multi-resolution transformer for gastrointestinal disease classification

In order to promote early diagnosis and lessen the workload of doctors during endoscopic and capsule endoscopy tests, automated analysis of gastrointestinal (GI) images is essential. However, current deep learning techniques frequently fail to simultaneously capture long-range contextual information and fine-grained local patterns, especially in large-scale and highly imbalanced datasets. We suggest LightGastroFormer, a lightweight transformer-based architecture intended for reliable and effective GI disease categorization, as a solution to these problems.The suggested model combines a gated feed-forward network, effective self-attention, and a multi-resolution patchwise tokenizer to efficiently find minor lesion characteristics while preserving computational efficiency. Three public benchmarks are used to evaluate LightGastroFormer: Kvasir v1, Kvasir v2, and the extensive Kvasir-Capsule dataset. Across all evaluated datasets, the proposed approach demonstrates consistently strong performance, matching or surpassing existing state-of-the-art CNN- and transformer-based methods. In particular, without using explicit data balancing strategies, LightGastroFormer obtains an accuracy of 0.94 on Kvasir v1, 0.95 on Kvasir v2, and 0.97 accuracy with a 0.97 F1-score on the highly imbalanced Kvasir-Capsule dataset. Further ablation studies confirm the effectiveness of each architectural component and reveal important insights into model behavior under class imbalance. With only 6.42 million trainable parameters, LightGastroFormer offers a favorable balance between accuracy, robustness, and efficiency, making it well suited for real-world clinical deployment in gastrointestinal disease screening and diagnosis. The code is available here: https://github.com/Prateeksingh-moa/LightGastroformer.

Authors

Institutions

Publication Details

Journal
Scientific Reports
Published
2026-06-09
DOI
https://doi.org/10.1038/s41598-026-56751-8
Primary Topic
Colorectal Cancer Screening and Detection
Type
article
Field-Weighted Citation Impact
0.00
Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
article

LightGastroFormer: a lightweight multi-resolution transformer for gastrointestinal disease classification

Sudhakar Singh, Prateek Singh, Manoj Kumar Shukla
Scientific Reports
Colorectal Cancer Screening and Detection
article

LightGastroFormer: a lightweight multi-resolution transformer for gastrointestinal disease classification

Sudhakar Singh, Prateek Singh, Manoj Kumar Shukla
article en

Abstract

In order to promote early diagnosis and lessen the workload of doctors during endoscopic and capsule endoscopy tests, automated analysis of gastrointestinal (GI) images is essential. However, current deep learning techniques frequently fail to simultaneously capture long-range contextual information and fine-grained local patterns, especially in large-scale and highly imbalanced datasets. We suggest LightGastroFormer, a lightweight transformer-based architecture intended for reliable and effective GI disease categorization, as a solution to these problems.The suggested model combines a gated feed-forward network, effective self-attention, and a multi-resolution patchwise tokenizer to efficiently find minor lesion characteristics while preserving computational efficiency. Three public benchmarks are used to evaluate LightGastroFormer: Kvasir v1, Kvasir v2, and the extensive Kvasir-Capsule dataset. Across all evaluated datasets, the proposed approach demonstrates consistently strong performance, matching or surpassing existing state-of-the-art CNN- and transformer-based methods. In particular, without using explicit data balancing strategies, LightGastroFormer obtains an accuracy of 0.94 on Kvasir v1, 0.95 on Kvasir v2, and 0.97 accuracy with a 0.97 F1-score on the highly imbalanced Kvasir-Capsule dataset. Further ablation studies confirm the effectiveness of each architectural component and reveal important insights into model behavior under class imbalance. With only 6.42 million trainable parameters, LightGastroFormer offers a favorable balance between accuracy, robustness, and efficiency, making it well suited for real-world clinical deployment in gastrointestinal disease screening and diagnosis. The code is available here: https://github.com/Prateeksingh-moa/LightGastroformer.

Scientific Reports
International Institute of Information Technology (IN), Symbiosis International University (IN), National Institute of Technical Teachers Training and Research, Chandigarh (IN), International Institute of Information Technology, Hyderabad (IN)
Openalex Percentile: Top 7%
Colorectal Cancer Screening and Detection
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.