Attention-Augmented Hybrid CNN–Transformer Network for Endoscopic Image Classification of Gastrointestinal Diseases

PDF (864KB), PP.218-233

Views: 0 Downloads: 0

Author(s)

Vivek Duraivelu 1,* Srinivas Mulkalapalli 2 Spandana L. 3 Boddu Srilatha 4 B. Suresh Kumar 5 Kishore Dasari 6

1. School of Computer Science and Engineering, Vellore Institute of Technology, Vellore, 632 014, India

2. Department of Computer Science and Engineering, Geethanjali College of Engineering and Technology, Hyderabad-501301, India

3. Department of Computer Science and Engineering, BMS Institute of Technology and Management (BMSIT&M), Bengaluru, Karnataka – 560064, India

4. Department of Computer Science and Engineering, MLR Institute of Technology, Hyderabad, Telangana, 500043, India

5. Department of CSE, G. Pullaiah College of Engineering and Technology, Kurnool

6. Department of CSE, Koneru Lakshmaiah Education Foundation, Green Fields, Vaddeswaram, Guntur District, Andhra Pradesh, 522502, India

* Corresponding author.

DOI: https://doi.org/10.5815/ijem.2026.06.12

Received: 29 Jul. 2026 / Revised: 15 Aug. 2026 / Accepted: 13 Oct. 2026 / Published: 8 Dec. 2026

Index Terms

Gastrointestinal diseases, Endoscopic imaging, Early diagnosis, Convolutional neural networks, Segmentation, Classification, Transformer models, Contextual dependencies, Lesion localization, Diagnostic consistency, Class imbalance, Overfitting, Multi-scal

Abstract

Accurate classification of gastrointestinal diseases from endoscopic images is challenging because pathological evidence may involve subtle mucosal-texture variations, illumination changes, low-contrast lesions, and visually similar disease categories. This study proposes an attention-augmented hybrid CNN–Transformer network for endoscopic image classification using the Kvasir dataset. The architecture combines convolutional feature extraction for localized visual representation with patch-based Transformer encoding for contextual modeling, followed by attention-based feature refinement and classification. The proposed framework is evaluated using accuracy, Macro F1-score, AUC, five-fold cross-validation, noise perturbation analysis, and computational-complexity assessment. On the evaluated Kvasir test set, the proposed model achieves 91.0% accuracy, 0.91 Macro F1-score, and 0.96 AUC, compared with 86.4%, 0.86, and 0.92 for ResNet50, 87.8%, 0.88, and 0.93 for EfficientNet-B0, and 88.9%, 0.89, and 0.94 for DenseNet121, respectively. Five-fold evaluation produces accuracy values between 90.6% and 91.5%, while noise perturbation reduces accuracy progressively from 91.0% at σ = 0 to 80.9% at σ = 0.4. The results provide quantitative evidence of classification performance, cross-validation stability, perturbation behavior, and computational characteristics of the proposed hybrid architecture.

Cite This Paper

Vivek Duraivelu, Srinivas Mulkalapalli, Spandana L., Boddu Srilatha, B. Suresh Kumar, Kishore Dasari, "Attention-Augmented Hybrid CNN–Transformer Network for Endoscopic Image Classification of Gastrointestinal Diseases", International Journal of Engineering and Manufacturing (IJEM), Vol.16, No.6, pp.218-233, 2026. DOI:10.5815/ijem.2026.06.12

Reference

[1]B. Xu, “Edge-guided Multi-scale Attention Fusion Network for gastrointestinal tumor image classification,” Alexandria Engineering Journal, vol. 134, pp. 21–36, 2026. doi:10.1016/j.aej.2025.11.042
[2]A. Sawada et al., “Epidemiology and risk factors of non-esophageal eosinophilic gastrointestinal diseases in Japan: A population-based study,” Allergology International, vol. 74, no. 2, pp. 292–300, 2025. doi:10.1016/j.alit.2024.10.007.
[3]H. Ma et al., “Clinical features of hereditary angioedema involving the gastrointestinal tract: A retrospective analysis,” World Allergy Organization Journal, vol. 19, no. 2, pp. 101252, 2026. doi:10.1016/j.waojou.2025.101252.
[4]M. R. Jong et al., “GastroNet-5M: A Multicenter Dataset for Developing Foundation Models in Gastrointestinal Endoscopy,” Gastroenterology, vol. 170, no. 1, pp. 174–187, 2026. doi:10.1055/s-0045-1805427.
[5]A. A. Mary et al., “GastroNet: A Custom Deep Learning Approach for Classification of Anomalies in Gastrointestinal Endoscopy Images,” Current Medical Imaging, vol. 20, 2024. doi:10.2174/1573405620666240318122722.
[6]T. T. H. Nguyen et al., “EAGLE-Net: A hierarchical neural network for detecting anatomical landmarks in upper gastrointestinal endoscopy for clinical diagnosis,” Healthcare Analytics, vol. 8, pp. 100420, 2025. doi:10.1016/j.health.2025.100420.
[7]C. H. J. Kusters et al., “Will Transformers change gastrointestinal endoscopic image analysis? A comparative analysis between CNNs and Transformers, in terms of performance, robustness and generalization,” Medical Image Analysis, vol. 99, pp. 103348, 2025. doi:10.1016/j.media.2024.103348.
[8]A. I. Abian et al., “Atrous spatial pyramid pooling with swin transformer model for classification of gastrointestinal tract diseases from videos with enhanced explainability,” Engineering Applications of Artificial Intelligence, vol. 150, pp. 110656, 2025. doi:10.1016/j.engappai.2025.110656.
[9]S. Siddiqui et al., “SNet: A novel convolutional neural network architecture for advanced endoscopic image classification of gastrointestinal disorders,” SLAS Technology, vol. 33, pp. 100304, 2025. doi:10.1016/j.slast.2025.100304.
[10]M. Á. Carro Rodríguez et al., “Recommendations for the management of functional dyspepsia from the SEGHNP working group on motility and functional gastrointestinal disorders,” Anales de Pediatría (English Edition), vol. 102, no. 5, pp. 503860, 2025. doi:10.1016/j.anpede.2025.02.004.
[11]M. F. Ahamed et al., “Detection of various gastrointestinal tract diseases through a deep learning method with ensemble ELM and explainable AI,” Expert Systems with Applications, vol. 256,  pp. 124908, 2024. doi:10.1016/j.eswa.2024.124908.
[12]M. S. Islam, M. A. T. Rony, and T. Sultan, “GastroVRG: Enhancing early screening in gastrointestinal health via advanced transfer features,” Intelligent Systems with Applications, vol. 23, pp. 200399, 2024. doi:10.1016/j.iswa.2024.200399.
[13]A. T. Meem and S. Momen, “OVT-Net: Semantic segmentation of gastrointestinal cancer using an optimized vision transformer model with explainable AI,” Clinical eHealth, vol. 8, pp. 288–313, 2025. doi:10.1016/j.clinhe.2025.06.003.
[14]T. Han et al., “Tolerability and efficacy of an enteral formula containing partially hydrolyzed guar gum in patients following gastrointestinal surgery: A prospective, multicenter, open-label, randomized controlled study,” Clinical Nutrition, vol. 56, pp. 106543, 2026. doi:10.1016/j.clnu.2025.106543.
[15]L. Li et al., “Intelligence algorithm for the treatment of gastrointestinal diseases based on immune monitoring and neuroscience: A revolutionary tool for translational medicine,” Alexandria Engineering Journal, vol. 113, pp. 91–137, 2025. doi:10.1016/j.aej.2024.11.028.
[16]Z. Ye et al., “Advanced NLP-driven predictive modeling for tailored treatment strategies in gastrointestinal cancer,” SLAS Technology, vol. 32, pp. 100264, 2025. doi:10.1016/j.slast.2025.100264.
[17]A. T. Abiodun et al., “Fluoropyrimidine Chemotherapy and the Risk of Death and Cardiovascular Events in Patients With Gastrointestinal Cancer,” JACC: CardioOncology, vol. 7, no. 4, pp. 345–356, 2025. doi:10.1016/j.jaccao.2025.01.019.