# ISIC 2018 (skin lesions) (2018)

> Dermoscopy photos of moles and other skin lesions, each with an expert outline of the lesion.

Page: https://mralbu.github.io/ai-datasets/d/isic

## Key facts

- Category: Vision, Medical
- Task: Skin lesion segmentation and melanoma classification
- Creators: International Skin Imaging Collaboration (Noel Codella, Veronica Rotemberg, Philipp Tschandl, M. Emre Celebi, Allan Halpern and others)
- Size: 3,694 images with lesion masks (task 1); 10,015 training images (11,720 total) in 7 diagnoses (task 3, HAM10000)
- Splits: train 2,594, validation 100, test 1,000
- Input: Dermoscopy photo (a magnified, lit view of the skin), from 540×722 to 6,708×4,439 pixels
- Labels: A mask of the lesion (task 1); its dermoscopic features (task 2); one of 7 diagnoses (task 3)
- License: CC0 (tasks 1 and 2); CC BY-NC 4.0 (task 3, HAM10000)
- Paper: [Skin Lesion Analysis Toward Melanoma Detection 2018: A Challenge Hosted by the International Skin Imaging Collaboration (ISIC)](https://arxiv.org/abs/1902.03368)
- Homepage: https://challenge.isic-archive.com/landing/2018/
- Hugging Face: [MedOtter/ISIC2018](https://huggingface.co/datasets/MedOtter/ISIC2018)
- Sampled at Hub revision 0217b654204bacba75c95d93e9ecbb1f4348e723 (2026-11-08)

## Why it matters

Melanoma is curable when caught early, and dermatologists judge moles by looking at them through a dermatoscope, a task that seemed made for image models. The ISIC archive and its yearly challenges (from 2016) gave the field its public benchmark. Images from the archive were part of the data behind Esteva et al. (Nature, 2017), the paper that reported dermatologist-level skin cancer classification, and the 2018 lesion outlines are a standard test for medical segmentation models like U-Net.

## Worth knowing

- Models learned shortcuts. Surgical ink marks and rulers, which dermatologists add to suspicious lesions, made a network more likely to call a mole melanoma.
- Almost all images are of light skin. Models trained on ISIC do noticeably worse on darker skin, which later datasets (Fitzpatrick 17k, DDI) set out to measure.
- Task 1 was scored by the overlap (Jaccard index) of the predicted and the expert outline, counting any image below 0.65 as a failure.
- The task 3 images, HAM10000, were collected over 20 years in Vienna and Queensland.

## Get the data

A Parquet copy of the task 1 images and lesion masks. Every year's challenge data, including the diagnoses, is on the ISIC Challenge site.

```bash
# pip install -U huggingface_hub
hf download MedOtter/ISIC2018 --repo-type dataset \
  --local-dir isic
```

```python
from datasets import load_dataset   # pip install datasets

ds = load_dataset("MedOtter/ISIC2018")
print(ds)
```

```python
import polars as pl

df = pl.read_parquet("hf://datasets/MedOtter/ISIC2018@~parquet/default/train/*.parquet")
print(df.shape)
```

## Related datasets

- [PH2](https://www.fc.up.pt/addi/ph2%20database.html): 2013, 200 dermoscopy images from Portugal
- [HAM10000](https://doi.org/10.7910/DVN/DBW86T): 2018, the 10,015 images of task 3, with diagnoses
- [SIIM-ISIC Melanoma (ISIC 2020)](https://challenge.isic-archive.com/landing/2020/): 2020, 33,126 images from 2,056 patients, a Kaggle competition
- [Fitzpatrick 17k](https://github.com/mattgroh/fitzpatrick17k): 2021, clinical photos labeled with skin type
- [ChestX-ray14](https://huggingface.co/datasets/timm/nih-chest-xray-14): 2017, the other big public medical image benchmark (on this site: https://mralbu.github.io/ai-datasets/d/chestx-ray14)

## Landmark papers

- [U-Net: Convolutional Networks for Biomedical Image Segmentation](https://arxiv.org/abs/1505.04597) (2015)
- [Dermatologist-level classification of skin cancer with deep neural networks](https://www.nature.com/articles/nature21056) (2017)
- [Association Between Surgical Skin Markings in Dermoscopic Images and Diagnostic Performance of a Deep Learning Convolutional Neural Network for Melanoma Recognition](https://jamanetwork.com/journals/jamadermatology/fullarticle/2740808) (2019)
- [Disparities in dermatology AI performance on a diverse, curated clinical image set](https://www.science.org/doi/10.1126/sciadv.abq6147) (2022)
