HyperKvasir: gastrointestinal endoscopy images and videos

Provider
Simula Research Laboratory and Baerum Hospital, Norway (Borgli et al.)
License
CC-BY-4.0 (source)
Size
6 files
Stored at
Hugging Face (https://huggingface.co/datasets/SimulaMet-HOST/HyperKvasir)
Access
Free and public. No account with the data provider is needed.
Category
Medicine
Source
https://doi.org/10.1038/s41597-020-00622-y

About HyperKvasir: gastrointestinal endoscopy images and videos

HyperKvasir is a gastrointestinal endoscopy dataset, described by its publishers as the largest public one, collected from routine gastroscopy and colonoscopy examinations at Baerum Hospital in Norway and published by Simula Research Laboratory in Scientific Data (2020). The publisher's card lists 10,662 labelled images in 23 anatomical and pathological classes (landmarks such as the pylorus and cecum, findings such as polyps, esophagitis and ulcerative colitis, and therapeutic interventions), 99,417 unlabelled images, 1,000 polyp images with pixel masks and bounding boxes, and 374 endoscopy videos totalling 11.62 hours. Annotations were made by experienced gastroenterologists. As measured 2026-11-14 this repository, uploaded by Simula itself, holds four zip archives: labelled images (about 3.9 GB), segmented polyp images (46 MB), unlabelled images (about 29.4 GB) and videos (about 30.1 GB). Unzip to get JPEG images, JSON bounding boxes and AVI videos, then load them with PIL, OpenCV or torchvision. Used for polyp detection and segmentation, GI finding classification, anomaly detection and self-supervised learning on endoscopy video. Simula releases HyperKvasir under CC BY 4.0 as stated in the dataset card body (the YAML tag says MIT); cite Borgli et al. 2020.

How to load HyperKvasir: gastrointestinal endoscopy images and videos in Python

from huggingface_hub import hf_hub_download
path = hf_hub_download(repo_id="SimulaMet-HOST/HyperKvasir", filename="hyper-kvasir-labeled-images.zip", repo_type="dataset")
print(path)

Data structure

Files

Example file: hyper-kvasir-labeled-images.zip

Analyze this dataset without downloading it

On Scigantic, HyperKvasir: gastrointestinal endoscopy images and videos opens in a hosted JupyterLab notebook with the data already mounted, so you can read files where they are stored instead of copying them first. Each notebook includes an AI assistant that can see the mounted files and write and run analysis code. Open the dataset page to launch a notebook, or browse the full catalog.

This page is also available as Markdown and as JSON.

Related Medicine datasets