# HyperKvasir: gastrointestinal endoscopy images and videos

## Facts

- Provider: Simula Research Laboratory and Baerum Hospital, Norway (Borgli et al.)
- License: CC-BY-4.0 (https://huggingface.co/datasets/SimulaMet-HOST/HyperKvasir)
- Size: 6 files
- Stored at: Hugging Face, https://huggingface.co/datasets/SimulaMet-HOST/HyperKvasir
- Access: public, readable without an account
- Category: Medicine
- Source: https://doi.org/10.1038/s41597-020-00622-y
- Page: https://scigantic.com/archive/da9b5b4b-c4ab-56d5-8c09-c5540d46482a
- Keywords: Medicine, image segmentation, Hugging Face

## About

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.

## Load the data

```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

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

## Open it

- In a hosted notebook with the data mounted: https://scigantic.com/archive/da9b5b4b-c4ab-56d5-8c09-c5540d46482a
- Full record as JSON (schema card included): https://api.scigantic.com/api/archives/da9b5b4b-c4ab-56d5-8c09-c5540d46482a
- Over MCP: `get_schema_card` with id `da9b5b4b-c4ab-56d5-8c09-c5540d46482a` at https://api.scigantic.com/mcp

## Related topics

- [Image segmentation datasets](https://scigantic.com/topics/image-segmentation)
- [Medicine datasets](https://scigantic.com/topics/medicine)
