DOI: 10.7910/dvn/dbw86t
title: The HAM10000 dataset, a large collection of multi-source dermatoscopic images of common pigmented skin lesions

description: &lt;p&gt;
Training of neural networks for automated diagnosis of pigmented skin lesions is hampered by the small size and lack of diversity of available dataset of dermatoscopic images. We tackle this problem by releasing the HAM10000 ("Human Against Machine with 10000 training images") dataset. We collected dermatoscopic images from different populations, acquired and stored by different modalities. The final dataset consists of 10015 dermatoscopic images which can serve as a training set for academic machine learning purposes. Cases include a representative collection of all important diagnostic categories in the realm of pigmented lesions: Actinic keratoses and intraepithelial carcinoma / Bowen's disease (&lt;code&gt;akiec&lt;/code&gt;), basal cell carcinoma (&lt;code&gt;bcc&lt;/code&gt;), benign keratosis-like lesions (solar lentigines / seborrheic keratoses and lichen-planus like keratoses, &lt;code&gt;bkl&lt;/code&gt;), dermatofibroma (&lt;code&gt;df&lt;/code&gt;), melanoma (&lt;code&gt;mel&lt;/code&gt;), melanocytic nevi (&lt;code&gt;nv&lt;/code&gt;) and vascular lesions (angiomas, angiokeratomas, pyogenic granulomas and hemorrhage, &lt;code&gt;vasc&lt;/code&gt;).
&lt;/p&gt;

&lt;p&gt;
More than 50% of lesions are confirmed through histopathology (&lt;code&gt;histo&lt;/code&gt;), the ground truth for the rest of the cases is either follow-up examination (&lt;code&gt;follow_up&lt;/code&gt;), expert consensus (&lt;code&gt;consensus&lt;/code&gt;), or confirmation by in-vivo confocal microscopy (&lt;code&gt;confocal&lt;/code&gt;). The dataset includes lesions with multiple images, which can be tracked by the &lt;code&gt;lesion_id&lt;/code&gt;-column within the &lt;strong&gt;HAM10000_metadata&lt;/strong&gt; file.
&lt;/p&gt;

&lt;p&gt;
Due to upload size limitations, images are stored in two files:
&lt;ul&gt;
&lt;li&gt;&lt;strong&gt;HAM10000_images_part1.zip&lt;/strong&gt; (5000 JPEG files)&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;HAM10000_images_part2.zip&lt;/strong&gt; (5015 JPEG files)&lt;/li&gt;
&lt;/ul&gt;
&lt;/p&gt;

&lt;p&gt;
&lt;h3&gt;Additional data for evaluation purposes&lt;/h3&gt;
The HAM10000 dataset served as the training set for the &lt;a href='http://arxiv.org/abs/1902.03368'&gt;ISIC 2018 challenge (Task 3)&lt;/a&gt;, with the same sources contributing the majority of the validation- and test-set as well. The test-set images are available herein as &lt;strong&gt;ISIC2018_Task3_Test_Images.zip (1511 images)&lt;/strong&gt;, the ground-truth in the same format as the HAM10000 data (public since 2023) is available as &lt;strong&gt;ISIC2018_Task3_Test_GroundTruth.csv&lt;/strong&gt;.. The ISIC-Archive also provides the challenge images and metadata (training, validation, test) at their &lt;a href="https://challenge.isic-archive.com/data/#2018"&gt;"ISIC Challenge Datasets" page&lt;/a&gt;.
&lt;/p&gt;

&lt;p&gt;
&lt;h3&gt;Comparison to physicians&lt;/h3&gt;
Test-set evaluations of the ISIC 2018 challenge were compared to physicians on an international scale, where the majority of challenge participants outperformed expert readers: &lt;a href="https://doi.org/10.1016/S1470-2045(19)30333-X"&gt;Tschandl P. et al., Lancet Oncol 2019&lt;/a&gt;
&lt;/p&gt;

&lt;p&gt;
&lt;h3&gt;Human-computer collaboration&lt;/h3&gt;
The test-set images were also used in a study comparing different methods and scenarios of human-computer collaboration: &lt;a href="https://www.nature.com/articles/s41591-020-0942-0"&gt;Tschandl P. et al., Nature Medicine 2020&lt;/a&gt;&lt;br&gt;
Following corresponding metadata is available herein:
&lt;ul&gt;
&lt;li&gt;&lt;strong&gt;ISIC2018_Task3_Test_NatureMedicine_AI_Interaction_Benefit.csv&lt;/strong&gt;: Human ratings for Test images with and without interaction with a ResNet34 CNN (Malignancy Probability, Multi-Class probability, CBIR) or Human-Crowd Multi-Class probabilities. This is data was collected for and analyzed in &lt;a href="https://doi.org/10.1038/s41591-020-0942-0"&gt;Tschandl P. et al., Nature Medicine 2020&lt;/a&gt;, therefore please refer to this publication when using the data. Some details on the abbreviated column headings:
&lt;ul&gt;
&lt;li&gt;&lt;em&gt;image_id:&lt;/em&gt; This is the ISIC image_id of an image at the time of the study. There should be no duplications in the combination image_id & interaction_modality. As not every image was shown with every interaction modality, not every combination is present.&lt;/li&gt;
&lt;li&gt;&lt;em&gt;prob_m_dx_akiec, ... :&lt;/em&gt; *_m_* is "machine probabilities". Values are values after softmax, and "_mal" is all malignant classes summed.&lt;/li&gt;
&lt;li&gt;&lt;em&gt;prob_h_dx_akiec, ... :&lt;/em&gt; *_h_* is "human probabilities". Values are aggregated percentages of human ratings from past studies distinguishing between seven classes. Note there is no "prob_h_mal" as this was none of the tested interaction modalities.&lt;/li&gt;
&lt;li&gt;&lt;em&gt;user_dx_without_interaction_akiec, ...:&lt;/em&gt; Number of participants choosing this diagnosis without interaction.&lt;/li&gt;
&lt;li&gt;&lt;em&gt;user_dx_with_interaction_akiec, ...:&lt;/em&gt; Number of participants choosing this diagnosis with interaction.&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;
HAM10000_segmentations_lesion_tschandl.zip&lt;/strong&gt;: To evaluate regions of CNN activations in &lt;a href="https://www.nature.com/articles/s41591-020-0942-0"&gt;Tschandl P. et al., Nature Medicine 2020&lt;/a&gt; (please refer to this publication when using the data), a single dermatologist (Tschandl P) created binary segmentation masks for all 10015 images from the HAM10000 dataset. Masks were initialized with the segmentation network as described by &lt;a href="https://doi.org/10.1016/j.compbiomed.2018.11.010"&gt;Tschandl et al., Computers in Biology and Medicine 2019&lt;/a&gt;, and following verified, corrected or replaced via the free-hand selection tool in &lt;a href="https://fiji.sc/"&gt;FIJI&lt;/a&gt;.&lt;/li&gt;
&lt;/ul&gt;
&lt;/p&gt;