Datasets:
image_id stringlengths 16 22 | image imagewidth (px) 352 352 | patient_id stringclasses 564
values | mayo stringclasses 4
values | label int32 0 3 |
|---|---|---|---|---|
1_UC_patient_1_16 | 1 | Mayo 0 | 0 | |
1_UC_patient_1_28 | 1 | Mayo 0 | 0 | |
1_UC_patient_1_29 | 1 | Mayo 0 | 0 | |
10_UC_patient_10_2 | 10 | Mayo 0 | 0 | |
100_UC_patient_100_15 | 100 | Mayo 0 | 0 | |
100_UC_patient_100_17 | 100 | Mayo 0 | 0 | |
100_UC_patient_100_18 | 100 | Mayo 0 | 0 | |
100_UC_patient_100_4 | 100 | Mayo 0 | 0 | |
100_UC_patient_100_7 | 100 | Mayo 0 | 0 | |
100_UC_patient_100_8 | 100 | Mayo 0 | 0 | |
101_UC_patient_101_10 | 101 | Mayo 0 | 0 | |
101_UC_patient_101_11 | 101 | Mayo 0 | 0 | |
101_UC_patient_101_15 | 101 | Mayo 0 | 0 | |
101_UC_patient_101_16 | 101 | Mayo 0 | 0 | |
101_UC_patient_101_18 | 101 | Mayo 0 | 0 | |
101_UC_patient_101_21 | 101 | Mayo 0 | 0 | |
101_UC_patient_101_23 | 101 | Mayo 0 | 0 | |
101_UC_patient_101_25 | 101 | Mayo 0 | 0 | |
101_UC_patient_101_27 | 101 | Mayo 0 | 0 | |
101_UC_patient_101_28 | 101 | Mayo 0 | 0 | |
101_UC_patient_101_30 | 101 | Mayo 0 | 0 | |
101_UC_patient_101_33 | 101 | Mayo 0 | 0 | |
101_UC_patient_101_7 | 101 | Mayo 0 | 0 | |
102_UC_patient_102_10 | 102 | Mayo 0 | 0 | |
102_UC_patient_102_14 | 102 | Mayo 0 | 0 | |
102_UC_patient_102_15 | 102 | Mayo 0 | 0 | |
102_UC_patient_102_16 | 102 | Mayo 0 | 0 | |
102_UC_patient_102_19 | 102 | Mayo 0 | 0 | |
102_UC_patient_102_22 | 102 | Mayo 0 | 0 | |
102_UC_patient_102_6 | 102 | Mayo 0 | 0 | |
102_UC_patient_102_9 | 102 | Mayo 0 | 0 | |
103_UC_patient_103_10 | 103 | Mayo 0 | 0 | |
103_UC_patient_103_15 | 103 | Mayo 0 | 0 | |
103_UC_patient_103_17 | 103 | Mayo 0 | 0 | |
103_UC_patient_103_19 | 103 | Mayo 0 | 0 | |
103_UC_patient_103_2 | 103 | Mayo 0 | 0 | |
103_UC_patient_103_3 | 103 | Mayo 0 | 0 | |
103_UC_patient_103_7 | 103 | Mayo 0 | 0 | |
104_UC_patient_104_1 | 104 | Mayo 0 | 0 | |
104_UC_patient_104_11 | 104 | Mayo 0 | 0 | |
104_UC_patient_104_16 | 104 | Mayo 0 | 0 | |
104_UC_patient_104_18 | 104 | Mayo 0 | 0 | |
104_UC_patient_104_27 | 104 | Mayo 0 | 0 | |
104_UC_patient_104_30 | 104 | Mayo 0 | 0 | |
104_UC_patient_104_8 | 104 | Mayo 0 | 0 | |
105_UC_patient_105_1 | 105 | Mayo 0 | 0 | |
105_UC_patient_105_10 | 105 | Mayo 0 | 0 | |
105_UC_patient_105_16 | 105 | Mayo 0 | 0 | |
105_UC_patient_105_19 | 105 | Mayo 0 | 0 | |
105_UC_patient_105_20 | 105 | Mayo 0 | 0 | |
105_UC_patient_105_23 | 105 | Mayo 0 | 0 | |
105_UC_patient_105_26 | 105 | Mayo 0 | 0 | |
105_UC_patient_105_27 | 105 | Mayo 0 | 0 | |
105_UC_patient_105_28 | 105 | Mayo 0 | 0 | |
105_UC_patient_105_29 | 105 | Mayo 0 | 0 | |
105_UC_patient_105_5 | 105 | Mayo 0 | 0 | |
107_UC_patient_107_10 | 107 | Mayo 0 | 0 | |
107_UC_patient_107_11 | 107 | Mayo 0 | 0 | |
107_UC_patient_107_13 | 107 | Mayo 0 | 0 | |
107_UC_patient_107_14 | 107 | Mayo 0 | 0 | |
107_UC_patient_107_15 | 107 | Mayo 0 | 0 | |
107_UC_patient_107_18 | 107 | Mayo 0 | 0 | |
107_UC_patient_107_19 | 107 | Mayo 0 | 0 | |
107_UC_patient_107_2 | 107 | Mayo 0 | 0 | |
107_UC_patient_107_20 | 107 | Mayo 0 | 0 | |
107_UC_patient_107_22 | 107 | Mayo 0 | 0 | |
107_UC_patient_107_23 | 107 | Mayo 0 | 0 | |
107_UC_patient_107_24 | 107 | Mayo 0 | 0 | |
107_UC_patient_107_5 | 107 | Mayo 0 | 0 | |
107_UC_patient_107_8 | 107 | Mayo 0 | 0 | |
108_UC_patient_108_26 | 108 | Mayo 0 | 0 | |
108_UC_patient_108_27 | 108 | Mayo 0 | 0 | |
108_UC_patient_108_32 | 108 | Mayo 0 | 0 | |
108_UC_patient_108_6 | 108 | Mayo 0 | 0 | |
109_UC_patient_109_10 | 109 | Mayo 0 | 0 | |
109_UC_patient_109_12 | 109 | Mayo 0 | 0 | |
109_UC_patient_109_17 | 109 | Mayo 0 | 0 | |
109_UC_patient_109_20 | 109 | Mayo 0 | 0 | |
109_UC_patient_109_22 | 109 | Mayo 0 | 0 | |
109_UC_patient_109_23 | 109 | Mayo 0 | 0 | |
109_UC_patient_109_24 | 109 | Mayo 0 | 0 | |
109_UC_patient_109_25 | 109 | Mayo 0 | 0 | |
109_UC_patient_109_27 | 109 | Mayo 0 | 0 | |
109_UC_patient_109_28 | 109 | Mayo 0 | 0 | |
109_UC_patient_109_29 | 109 | Mayo 0 | 0 | |
109_UC_patient_109_4 | 109 | Mayo 0 | 0 | |
109_UC_patient_109_7 | 109 | Mayo 0 | 0 | |
11_UC_patient_11_1 | 11 | Mayo 0 | 0 | |
11_UC_patient_11_10 | 11 | Mayo 0 | 0 | |
11_UC_patient_11_11 | 11 | Mayo 0 | 0 | |
11_UC_patient_11_12 | 11 | Mayo 0 | 0 | |
11_UC_patient_11_15 | 11 | Mayo 0 | 0 | |
11_UC_patient_11_16 | 11 | Mayo 0 | 0 | |
11_UC_patient_11_17 | 11 | Mayo 0 | 0 | |
11_UC_patient_11_18 | 11 | Mayo 0 | 0 | |
11_UC_patient_11_20 | 11 | Mayo 0 | 0 | |
11_UC_patient_11_21 | 11 | Mayo 0 | 0 | |
11_UC_patient_11_23 | 11 | Mayo 0 | 0 | |
11_UC_patient_11_24 | 11 | Mayo 0 | 0 | |
11_UC_patient_11_25 | 11 | Mayo 0 | 0 |
LIMUC β Labeled Images for Ulcerative Colitis
This dataset description was generated with the help of generative AI. If you find anything wrong or missing, please report it in the Community discussions.
This dataset is derived from the LIMUC dataset (Polat et al., 2022), a collection of colonoscopy images from patients with ulcerative colitis, originally hosted on Zenodo. The images were collected at Marmara University School of Medicine, Istanbul, between December 2011 and July 2019, and graded with the Mayo endoscopic score (MES) by experienced gastroenterologists. Here, we used the patient-based release, read the patient ID and Mayo score from its folder structure, converted the images from BMP to PNG without loss, and added an integer label. The dataset is designed for ulcerative colitis severity classification with patient-level evaluation.
π¦ Dataset Structure
The dataset has a single train split, with each row corresponding to a single colonoscopy image:
| Field | Description |
|---|---|
image_id |
Original image filename without extension (e.g., UC_patient_190_16) |
image |
RGB colonoscopy image (PNG, converted losslessly from the original BMP, native resolution) |
patient_id |
Patient ID from the original folder (e.g., 190) |
mayo |
Mayo endoscopic score: Mayo 0, Mayo 1, Mayo 2, Mayo 3 |
label |
Integer Mayo score: 0β3 (see Feature Descriptions) |
Class Distribution:
- Mayo 0: 6,105 images (54.1%)
- Mayo 1: 3,052 images (27.1%)
- Mayo 2: 1,254 images (11.1%)
- Mayo 3: 865 images (7.7%)
- Total: 11,276 images from 564 patients
βοΈ Preprocessing
patient_based_classified_images.zipwas downloaded from Zenodo (record5827695); the authors' image-leveltrain_and_validation_sets.zipandtest_set.ziphold the same images and were not used- The patient ID was taken from each image's patient folder, and the Mayo score from its
Mayo ksubfolder (<patient>/Mayo k/UC_patient_<patient>_<n>.bmp) - Images were converted from BMP to PNG (lossless; no resizing, cropping or color change)
- All images were preserved
π Usage
from datasets import load_dataset
import matplotlib.pyplot as plt
ds = load_dataset("chehablab/LIMUC", split="train")
# One example image per Mayo score
classes = ["Mayo 0", "Mayo 1", "Mayo 2", "Mayo 3"]
labels = ds["label"]
fig, axes = plt.subplots(1, len(classes), figsize=(12, 3))
for ax, label in zip(axes, range(len(classes))):
sample = ds[labels.index(label)]
ax.imshow(sample["image"])
ax.set_title(f"{classes[label]} Β· patient {sample['patient_id']}", fontsize=9)
ax.axis("off")
plt.tight_layout()
plt.show()
# Split by patient (never by image)
from sklearn.model_selection import GroupShuffleSplit
df = ds.select_columns(["patient_id", "label"]).to_pandas()
gss = GroupShuffleSplit(n_splits=1, test_size=0.2, random_state=0)
train_idx, test_idx = next(gss.split(df, groups=df["patient_id"]))
train, test = ds.select(train_idx), ds.select(test_idx)
π·οΈ Feature Descriptions
Mayo Endoscopic Score
Four grades of ulcerative colitis activity:
- Mayo 0 (
label=0): 6,105 images β Normal or inactive disease - Mayo 1 (
label=1): 3,052 images β Mild disease: erythema, decreased vascular pattern, mild friability - Mayo 2 (
label=2): 1,254 images β Moderate disease: marked erythema, absent vascular pattern, friability, erosions - Mayo 3 (
label=3): 865 images β Severe disease: spontaneous bleeding, ulceration
The scores are ordinal: neighboring grades (especially Mayo 1 and Mayo 2) are hard to tell apart, and errors between distant grades matter more than errors between neighbors.
Image Specifications
- Modality: White-light colonoscopy
- Image format: RGB, PNG (converted losslessly from the original BMP)
- Content: One endoscopic frame per image
Acquisition Protocol
All images were acquired at:
- Department of Gastroenterology, Marmara University School of Medicine, Istanbul, Turkey
- Time period: December 2011 β July 2019
- Subjects: 564 patients with ulcerative colitis, 1,043 colonoscopy procedures
- Annotation: Two experienced gastroenterologists graded every image independently and blindly; images they disagreed on were graded by a third reviewer, and the final score was set by majority vote
π§ͺ Use Cases
- Ulcerative colitis severity classification (Mayo endoscopic score)
- Remission vs active disease classification (e.g., Mayo 0β1 vs Mayo 2β3)
- Ordinal regression of disease severity
- Patient-level evaluation of endoscopy classifiers (via
patient_id) - Representation learning and feature extraction for gastrointestinal endoscopy
β οΈ Important Notes
- Split by patient, never by image: Each patient contributes many images, often from the same procedure. A random image-level split leaks patients between training and evaluation and gives inflated scores. Use
patient_id(see Usage). - Patients span several grades: One patient can have images of different Mayo scores, as different colon segments can show different activity.
- Class imbalance: Mayo 0 images are about 7Γ more frequent than Mayo 3 images. Use weighted sampling or class balancing as needed.
- Ordinal labels: Accuracy treats all errors equally; the dataset authors suggest quadratic weighted kappa (QWK) as the main metric.
- Image-level grades: Each image is graded on its own, not with the patient's overall disease score.
π Citation
This dataset is derived from data originally published on Zenodo under a CC BY 4.0 license. If you use this dataset, please acknowledge Chehab Lab and cite the original LIMUC dataset:
@misc{Polat2022LIMUC,
author = {Polat, Gorkem and Kani, Haluk Tarik and Ergenc, Ilkay and Alahdab, Yesim Ozen and Temizel, Alptekin and Atug, Ozlen},
title = {Labeled Images for Ulcerative Colitis (LIMUC) Dataset [dataset]},
year = {2022},
publisher = {Zenodo},
doi = {10.5281/zenodo.5827695}
}
Additionally, cite the research paper that introduced this dataset:
@article{Polat2023LIMUC,
author = {Polat, Gorkem and Kani, Haluk Tarik and Ergenc, Ilkay and Alahdab, Yesim Ozen and Temizel, Alptekin and Atug, Ozlen},
title = {Improving the Computer-Aided Estimation of Ulcerative Colitis Severity According to Mayo Endoscopic Score by Using Regression-Based Deep Learning},
journal = {Inflammatory Bowel Diseases},
volume = {29},
number = {9},
pages = {1431--1439},
year = {2023},
doi = {10.1093/ibd/izac226}
}
βοΈ Original Authors
Gorkem Polat, Haluk Tarik Kani, Ilkay Ergenc, Yesim Ozen Alahdab, Alptekin Temizel, Ozlen Atug
Graduate School of Informatics, Middle East Technical University (METU), Ankara, and Department of Gastroenterology, Marmara University School of Medicine, Istanbul, Turkey
Zenodo: https://zenodo.org/records/5827695 (original files)
π License
This dataset is released under the Creative Commons Attribution 4.0 International (CC BY 4.0) license, consistent with the original LIMUC dataset.
You may copy, modify, distribute, and use the data for any purpose (commercial or non-commercial), provided that appropriate credit is given to Polat et al., Zenodo, and the original paper.
Chehab Lab @ 2026
- Downloads last month
- 57
