Exploring Vision Transformers and Explainable AI for Enhanced Artefact Classification in Esophageal Endoscopic Images

Esophageal cancer (EC) remains the disease that has the highest incidence and highest mortality rate in global cancer statistics, emphasising the imperative to enhance diagnostic precision and reliability through the use of advancing technologies. While AI-enhanced systems can improve the early detection of EC considerably, the prevalence of artefacts (1 in 4 frames) during endoscopy procedures compromises the developed systems significantly, leading to unreliable medical decision making. Vision transformer (ViT) networks, initially designed for natural language processing tasks, have demonstrated outstanding performance in handling medical images by presenting distinctive features advantageous for image processing. The application of ViT for detecting and classifying artefacts in endoscopic images, particularly in classifying colour misalignment artefacts is still subject to continual refinement and enhancement. This work aims to investigate the implementation of ViT for classification of colour misalignment artefacts in esophagus endoscopy images. Moreover, even though ViT has been a major breakthrough, its acceptance for real world applications is often jeopardised due to the lack of interpretability of how the classification results have been reached. Consequently, Explainable Artificial Intelligence (XAI) techniques have been explored to understand the criteria used to achieve the outcome. Several variants of the ViT and Data Efficient image Transformer (DeiT) networks have been fine-tuned and applied to our dataset in order to improve and evaluate their performance in colour misalignment classification in esophagus endoscopic images. Furthermore, XAI methods have been implemented to provide the criteria used by the network in reaching the classification results. Our fine-tuned ViT model, achieves an accuracy of 93.46%, precision of 93.48%, recall of 93.46% and F1 score of 93.46% surpassing InceptionResNetV2, a state-of-the-art model based on CNN, with an accuracy of 89.10%, precision of 89.10%, recall of 89.10% and F1 score of 88.23%. Additionally, the GradCAM XAI technique has been found to highlight the deterministic features used by the ViT model better than other XAI methods applied in this work. ViT achieves remarkable performance in classification of colour misalignment artefact outperforming CNNs, attributed to ViT’s enhanced ability to capture pixel relationships through self-attention weights. In addition, the intrinsic self-attention technique provides novel insights into the model’s decision-making mechanism.

Authors

Institutions

Publication Details

Journal
IEEE Access
Published
2025-01-01
DOI
https://doi.org/10.1109/access.2025.3616796
Primary Topic
Lung Cancer 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

Exploring Vision Transformers and Explainable AI for Enhanced Artefact Classification in Esophageal Endoscopic Images

Fatima Shannag, Tanzila Saba, Muhammad Muzzammil Auzine, Xiaohong Gao et al.
IEEE Access
Lung Cancer Diagnosis and Treatment
article

Exploring Vision Transformers and Explainable AI for Enhanced Artefact Classification in Esophageal Endoscopic Images

Fatima Shannag, Tanzila Saba, Muhammad Muzzammil Auzine, Xiaohong Gao, Preeti Bissoonauth-Daiboo, Maleika Heenaye-Mamode Khan, Muhammad Inshal
article en

Abstract

Esophageal cancer (EC) remains the disease that has the highest incidence and highest mortality rate in global cancer statistics, emphasising the imperative to enhance diagnostic precision and reliability through the use of advancing technologies. While AI-enhanced systems can improve the early detection of EC considerably, the prevalence of artefacts (1 in 4 frames) during endoscopy procedures compromises the developed systems significantly, leading to unreliable medical decision making. Vision transformer (ViT) networks, initially designed for natural language processing tasks, have demonstrated outstanding performance in handling medical images by presenting distinctive features advantageous for image processing. The application of ViT for detecting and classifying artefacts in endoscopic images, particularly in classifying colour misalignment artefacts is still subject to continual refinement and enhancement. This work aims to investigate the implementation of ViT for classification of colour misalignment artefacts in esophagus endoscopy images. Moreover, even though ViT has been a major breakthrough, its acceptance for real world applications is often jeopardised due to the lack of interpretability of how the classification results have been reached. Consequently, Explainable Artificial Intelligence (XAI) techniques have been explored to understand the criteria used to achieve the outcome. Several variants of the ViT and Data Efficient image Transformer (DeiT) networks have been fine-tuned and applied to our dataset in order to improve and evaluate their performance in colour misalignment classification in esophagus endoscopic images. Furthermore, XAI methods have been implemented to provide the criteria used by the network in reaching the classification results. Our fine-tuned ViT model, achieves an accuracy of 93.46%, precision of 93.48%, recall of 93.46% and F1 score of 93.46% surpassing InceptionResNetV2, a state-of-the-art model based on CNN, with an accuracy of 89.10%, precision of 89.10%, recall of 89.10% and F1 score of 88.23%. Additionally, the GradCAM XAI technique has been found to highlight the deterministic features used by the ViT model better than other XAI methods applied in this work. ViT achieves remarkable performance in classification of colour misalignment artefact outperforming CNNs, attributed to ViT’s enhanced ability to capture pixel relationships through self-attention weights. In addition, the intrinsic self-attention technique provides novel insights into the model’s decision-making mechanism.

IEEE AccessVol. 13
Prince Sultan University (SA), Middlesex University London (GB), University of Mauritius (MU)
Openalex Percentile: Top 60%
Lung Cancer 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.