GastroVision: A Multi-class Endoscopy Image Dataset for Computer Aided Gastrointestinal Disease Detection

Debesh Jha, Vanshali Sharma, Neethi Dasu, Nikhil Kumar Tomar, Steven Hicks, Manas Kamal Bhuyan, Pradip K. Das, Michael A. Riegler, Pål Halvorsen, Ulas Bagci, Thomas de Lange

Introduction

Gastrointestinal (GI) cancers represent a significant global health burden, accounting for over 25% of cancer incidences and one-third of cancer-related deaths. While endoscopy remains the gold standard for early detection, the procedure is inherently operator-dependent. Human factors such as fatigue and varying skill levels contribute to lesion miss rates as high as 27%.

Artificial Intelligence (AI) has the potential to serve as a robust clinical assistant, yet its integration into routine practice has been hindered by data scarcity and spectrum bias. Most existing AI models are trained on small, single-center datasets that lack the diversity of real-world populations and often focus exclusively on polyps. To address these gaps, we present GastroVision, a multi-center, open-access dataset designed to accelerate the development of comprehensive AI tools for the entire GI tract.

The GastroVision Dataset

GastroVision comprises 8,000 high-quality endoscopy images sourced from two major European institutions: Bærum Hospital in Norway and Karolinska University Hospital in Sweden. The dataset is uniquely structured to cover 27 distinct classes, ranging from anatomical landmarks to pathological findings and therapeutic interventions.

Taxonomy of the GastroVision dataset, illustrating the hierarchical structure across upper and lower GI tracts and various clinical categories.

The images were meticulously labeled by a multi-disciplinary team of expert endoscopists, junior doctors, and computational scientists. The dataset is categorized into "Upper GI" (esophagus, stomach, duodenum) and "Lower GI" (colon, rectum, terminal ileum) tracts. Notably, GastroVision includes rare therapeutic classes such as dyed-lifted-polyp and resection-margins, allowing AI models to assist not only in diagnosis but also in ensuring the procedural completeness of interventions like polyp removals.

Positioning within the Research Landscape

A critical advantage of GastroVision is its multi-center nature and public accessibility. By providing data from different hospitals and equipment, the dataset helps mitigate the "spectrum bias" that often causes models to fail when deployed in new clinical environments.

Comparison of GastroVision against existing gastrointestinal datasets, highlighting its size, diversity of findings, and public accessibility.

As shown in the comparison above, while some datasets like HyperKvasir are larger in total image count, GastroVision provides a curated, multi-center alternative that is entirely open-access, removing the common hurdle of prior consenting required for many medical datasets.

Benchmarking and Key Insights

To establish a performance baseline, several state-of-the-art Convolutional Neural Network (CNN) architectures were evaluated, including ResNet and DenseNet variants.

  • Top Performance: The pre-trained DenseNet-121 emerged as the most effective model, achieving a Macro F1-score of 0.6504 and a Micro F1-score of 0.8203.
  • Class-Specific Strengths: Models demonstrated high proficiency in identifying "Accessory tools" (F1: 0.95) and "Normal stomach" (F1: 0.88).
  • The Similarity Challenge: Visualization using t-SNE revealed significant visual overlap between certain classes, such as the Cecum and Normal mucosa. This explains why even advanced models struggle with specific anatomical landmarks that appear visually similar to the naked eye.
  • The Difficulty of Rarity: Performance dropped significantly on rare classes; for instance, Resected polyps only achieved an F1-score of 0.17, indicating a need for specialized techniques like few-shot learning.

Limitations and Future Work

While GastroVision represents a significant step forward, it is not without limitations. The dataset currently exhibits class imbalance, reflecting the natural rarity of certain conditions like esophageal varices. Furthermore, the current release provides image-level classification labels rather than pixel-level segmentation masks.

Future iterations of the project aim to expand the image count, incorporate higher-resolution captures from modern endoscopy systems, and introduce ground-truth segmentation masks to provide more granular guidance for AI-assisted detection.

Dataset Access: https://osf.io/84e7f/

Summary updated

BibTeX
@inproceedings{jha2023gastrovision,
  author = {Debesh Jha and Vanshali Sharma and Neethi Dasu and Nikhil Kumar Tomar and Steven Hicks and Manas Kamal Bhuyan and Pradip K. Das and Michael A. Riegler and Pål Halvorsen and Ulas Bagci and Thomas de Lange},
  title = {{GastroVision: A Multi-class Endoscopy Image Dataset for Computer Aided Gastrointestinal Disease Detection}},
  booktitle = {ML4MHD},
  year = {2023},
  doi = {10.1007/978-3-031-47679-2\_10},
}

Loading related content...

Figure