A hybrid XAI-driven deep learning framework for robust GI tract disease diagnosis

Abstract The stomach is one of the main digestive organs in the GIT, essential for digestion and nutrient absorption. However, various gastrointestinal diseases, including gastritis, ulcers, and cancer, affect health and quality of life severely. The precise diagnosis of gastrointestinal (GI) tract...

Full description

Saved in:
Bibliographic Details
Main Authors: Fadl Dahan, Jamal Hussain Shah, Rabia Saleem, Muhammad Hasnain, Maira Afzal, Taha M. Alfakih
Format: Article
Language:English
Published: Nature Portfolio 2025-07-01
Series:Scientific Reports
Subjects:
Online Access:https://doi.org/10.1038/s41598-025-07690-3
Tags: Add Tag
No Tags, Be the first to tag this record!
_version_ 1849769506475343872
author Fadl Dahan
Jamal Hussain Shah
Rabia Saleem
Muhammad Hasnain
Maira Afzal
Taha M. Alfakih
author_facet Fadl Dahan
Jamal Hussain Shah
Rabia Saleem
Muhammad Hasnain
Maira Afzal
Taha M. Alfakih
author_sort Fadl Dahan
collection DOAJ
description Abstract The stomach is one of the main digestive organs in the GIT, essential for digestion and nutrient absorption. However, various gastrointestinal diseases, including gastritis, ulcers, and cancer, affect health and quality of life severely. The precise diagnosis of gastrointestinal (GI) tract diseases is a significant challenge in the field of healthcare, as misclassification leads to late prescriptions and negative consequences for patients. Even with the advancement in machine learning and explainable AI for medical image analysis, existing methods tend to have high false negative rates which compromise critical disease cases. This paper presents a hybrid deep learning based explainable artificial intelligence (XAI) approach to improve the accuracy of gastrointestinal disorder diagnosis, including stomach diseases, from images acquired endoscopically. Swin Transformer with DCNN (EfficientNet-B3, ResNet-50) is integrated to improve both the accuracy of diagnostics and the interpretability of the model to extract robust features. Stacked machine learning classifiers with meta-loss and XAI techniques (Grad-CAM) are combined to minimize false negatives, which helps in early and accurate medical diagnoses in GI tract disease evaluation. The proposed model successfully achieved an accuracy of 93.79% with a lower misclassification rate, which is effective for gastrointestinal tract disease classification. Class-wise performance metrics, such as precision, recall, and F1-score, show considerable improvements with false-negative rates being reduced. AI-driven GI tract disease diagnosis becomes more accessible for medical professionals through Grad-CAM because it provides visual explanations about model predictions. This study makes the prospect of using a synergistic DL with XAI open for improvement towards early diagnosis with fewer human errors and also guiding doctors handling gastrointestinal diseases.
format Article
id doaj-art-4ff6ce655c91420dade183c8a6b6c918
institution DOAJ
issn 2045-2322
language English
publishDate 2025-07-01
publisher Nature Portfolio
record_format Article
series Scientific Reports
spelling doaj-art-4ff6ce655c91420dade183c8a6b6c9182025-08-20T03:03:24ZengNature PortfolioScientific Reports2045-23222025-07-0115111810.1038/s41598-025-07690-3A hybrid XAI-driven deep learning framework for robust GI tract disease diagnosisFadl Dahan0Jamal Hussain Shah1Rabia Saleem2Muhammad Hasnain3Maira Afzal4Taha M. Alfakih5Department of Management Information Systems, College of Business Administration - Hawtat Bani Tamim, Prince Sattam bin Abdulaziz UniversityDepartment of Computer Science, COMSATS University Islamabad, Wah campusDepartment of Information Technology, Government College University FaisalabadDepartment of Computer Science, HITEC University TaxilaDepartment of Computer Science, COMSATS University Islamabad, Wah campusFaculty of Engineering and Information Technology, Aljanad University for Science and TechnologyAbstract The stomach is one of the main digestive organs in the GIT, essential for digestion and nutrient absorption. However, various gastrointestinal diseases, including gastritis, ulcers, and cancer, affect health and quality of life severely. The precise diagnosis of gastrointestinal (GI) tract diseases is a significant challenge in the field of healthcare, as misclassification leads to late prescriptions and negative consequences for patients. Even with the advancement in machine learning and explainable AI for medical image analysis, existing methods tend to have high false negative rates which compromise critical disease cases. This paper presents a hybrid deep learning based explainable artificial intelligence (XAI) approach to improve the accuracy of gastrointestinal disorder diagnosis, including stomach diseases, from images acquired endoscopically. Swin Transformer with DCNN (EfficientNet-B3, ResNet-50) is integrated to improve both the accuracy of diagnostics and the interpretability of the model to extract robust features. Stacked machine learning classifiers with meta-loss and XAI techniques (Grad-CAM) are combined to minimize false negatives, which helps in early and accurate medical diagnoses in GI tract disease evaluation. The proposed model successfully achieved an accuracy of 93.79% with a lower misclassification rate, which is effective for gastrointestinal tract disease classification. Class-wise performance metrics, such as precision, recall, and F1-score, show considerable improvements with false-negative rates being reduced. AI-driven GI tract disease diagnosis becomes more accessible for medical professionals through Grad-CAM because it provides visual explanations about model predictions. This study makes the prospect of using a synergistic DL with XAI open for improvement towards early diagnosis with fewer human errors and also guiding doctors handling gastrointestinal diseases.https://doi.org/10.1038/s41598-025-07690-3Explainable AIGastrointestinal GIDiagnosisGrad-CAMTransformerDeep learning
spellingShingle Fadl Dahan
Jamal Hussain Shah
Rabia Saleem
Muhammad Hasnain
Maira Afzal
Taha M. Alfakih
A hybrid XAI-driven deep learning framework for robust GI tract disease diagnosis
Scientific Reports
Explainable AI
Gastrointestinal GI
Diagnosis
Grad-CAM
Transformer
Deep learning
title A hybrid XAI-driven deep learning framework for robust GI tract disease diagnosis
title_full A hybrid XAI-driven deep learning framework for robust GI tract disease diagnosis
title_fullStr A hybrid XAI-driven deep learning framework for robust GI tract disease diagnosis
title_full_unstemmed A hybrid XAI-driven deep learning framework for robust GI tract disease diagnosis
title_short A hybrid XAI-driven deep learning framework for robust GI tract disease diagnosis
title_sort hybrid xai driven deep learning framework for robust gi tract disease diagnosis
topic Explainable AI
Gastrointestinal GI
Diagnosis
Grad-CAM
Transformer
Deep learning
url https://doi.org/10.1038/s41598-025-07690-3
work_keys_str_mv AT fadldahan ahybridxaidrivendeeplearningframeworkforrobustgitractdiseasediagnosis
AT jamalhussainshah ahybridxaidrivendeeplearningframeworkforrobustgitractdiseasediagnosis
AT rabiasaleem ahybridxaidrivendeeplearningframeworkforrobustgitractdiseasediagnosis
AT muhammadhasnain ahybridxaidrivendeeplearningframeworkforrobustgitractdiseasediagnosis
AT mairaafzal ahybridxaidrivendeeplearningframeworkforrobustgitractdiseasediagnosis
AT tahamalfakih ahybridxaidrivendeeplearningframeworkforrobustgitractdiseasediagnosis
AT fadldahan hybridxaidrivendeeplearningframeworkforrobustgitractdiseasediagnosis
AT jamalhussainshah hybridxaidrivendeeplearningframeworkforrobustgitractdiseasediagnosis
AT rabiasaleem hybridxaidrivendeeplearningframeworkforrobustgitractdiseasediagnosis
AT muhammadhasnain hybridxaidrivendeeplearningframeworkforrobustgitractdiseasediagnosis
AT mairaafzal hybridxaidrivendeeplearningframeworkforrobustgitractdiseasediagnosis
AT tahamalfakih hybridxaidrivendeeplearningframeworkforrobustgitractdiseasediagnosis