Datasets:
image imagewidth (px) 600 600 | image_id stringlengths 12 12 | lesion_id stringlengths 11 11 | dx stringclasses 7
values | dx_type stringclasses 4
values | age float64 0 85 ⌀ | sex stringclasses 3
values | localization stringclasses 15
values |
|---|---|---|---|---|---|---|---|
ISIC_0024329 | HAM_0002954 | actinic_keratoses | histo | 75 | female | lower extremity | |
ISIC_0024372 | HAM_0005389 | actinic_keratoses | histo | 70 | male | lower extremity | |
ISIC_0024418 | HAM_0003380 | actinic_keratoses | histo | 75 | female | lower extremity | |
ISIC_0024450 | HAM_0005505 | actinic_keratoses | histo | 50 | male | upper extremity | |
ISIC_0024463 | HAM_0004568 | actinic_keratoses | histo | 50 | male | upper extremity | |
ISIC_0024468 | HAM_0006301 | actinic_keratoses | histo | 75 | male | neck | |
ISIC_0024470 | HAM_0006220 | actinic_keratoses | histo | 60 | male | upper extremity | |
ISIC_0024511 | HAM_0001505 | actinic_keratoses | histo | 55 | female | face | |
ISIC_0024517 | HAM_0001894 | actinic_keratoses | histo | 65 | male | back | |
ISIC_0024522 | HAM_0005650 | actinic_keratoses | histo | 65 | male | lower extremity | |
ISIC_0024539 | HAM_0002551 | actinic_keratoses | histo | 70 | male | face | |
ISIC_0024562 | HAM_0002745 | actinic_keratoses | histo | 75 | male | chest | |
ISIC_0024575 | HAM_0004722 | actinic_keratoses | histo | 70 | female | upper extremity | |
ISIC_0024579 | HAM_0000005 | actinic_keratoses | histo | 75 | female | lower extremity | |
ISIC_0024646 | HAM_0006252 | actinic_keratoses | histo | 70 | female | face | |
ISIC_0024654 | HAM_0005705 | actinic_keratoses | histo | 75 | female | lower extremity | |
ISIC_0024707 | HAM_0005448 | actinic_keratoses | histo | 60 | male | face | |
ISIC_0024710 | HAM_0004609 | actinic_keratoses | histo | 75 | male | back | |
ISIC_0024763 | HAM_0006524 | actinic_keratoses | histo | 65 | male | ear | |
ISIC_0024771 | HAM_0006301 | actinic_keratoses | histo | 75 | male | neck | |
ISIC_0024800 | HAM_0007088 | actinic_keratoses | histo | 50 | male | back | |
ISIC_0024843 | HAM_0004376 | actinic_keratoses | histo | 70 | female | face | |
ISIC_0024913 | HAM_0001495 | actinic_keratoses | histo | 85 | male | back | |
ISIC_0024923 | HAM_0001004 | actinic_keratoses | histo | 75 | female | lower extremity | |
ISIC_0024925 | HAM_0006592 | actinic_keratoses | histo | 75 | male | abdomen | |
ISIC_0024946 | HAM_0005264 | actinic_keratoses | histo | 45 | male | back | |
ISIC_0024948 | HAM_0004034 | actinic_keratoses | histo | 55 | female | face | |
ISIC_0025029 | HAM_0003105 | actinic_keratoses | histo | 75 | female | upper extremity | |
ISIC_0025069 | HAM_0006222 | actinic_keratoses | histo | 75 | male | upper extremity | |
ISIC_0025089 | HAM_0002705 | actinic_keratoses | histo | 65 | male | scalp | |
ISIC_0025130 | HAM_0000718 | actinic_keratoses | histo | 80 | female | face | |
ISIC_0025178 | HAM_0005282 | actinic_keratoses | histo | 65 | male | lower extremity | |
ISIC_0025182 | HAM_0006213 | actinic_keratoses | histo | 60 | female | hand | |
ISIC_0025196 | HAM_0005924 | actinic_keratoses | histo | 80 | female | upper extremity | |
ISIC_0025247 | HAM_0005231 | actinic_keratoses | histo | 70 | male | lower extremity | |
ISIC_0025264 | HAM_0007623 | actinic_keratoses | histo | 75 | male | back | |
ISIC_0025319 | HAM_0003195 | actinic_keratoses | histo | 80 | male | chest | |
ISIC_0025331 | HAM_0001258 | actinic_keratoses | histo | 80 | male | face | |
ISIC_0025350 | HAM_0005701 | actinic_keratoses | histo | 70 | male | lower extremity | |
ISIC_0025358 | HAM_0004398 | actinic_keratoses | histo | 60 | female | face | |
ISIC_0025368 | HAM_0004472 | actinic_keratoses | histo | 40 | female | face | |
ISIC_0025411 | HAM_0002158 | actinic_keratoses | histo | 50 | male | upper extremity | |
ISIC_0025427 | HAM_0001416 | actinic_keratoses | histo | 85 | male | upper extremity | |
ISIC_0025471 | HAM_0001967 | actinic_keratoses | histo | 85 | male | chest | |
ISIC_0025539 | HAM_0000967 | actinic_keratoses | histo | 75 | male | lower extremity | |
ISIC_0025577 | HAM_0000005 | actinic_keratoses | histo | 75 | female | lower extremity | |
ISIC_0025605 | HAM_0007047 | actinic_keratoses | histo | 60 | female | lower extremity | |
ISIC_0025637 | HAM_0001460 | actinic_keratoses | histo | 75 | male | face | |
ISIC_0025696 | HAM_0002472 | actinic_keratoses | histo | 60 | male | face | |
ISIC_0025712 | HAM_0005117 | actinic_keratoses | histo | 70 | female | chest | |
ISIC_0025780 | HAM_0006587 | actinic_keratoses | histo | 70 | male | face | |
ISIC_0025790 | HAM_0001004 | actinic_keratoses | histo | 75 | female | lower extremity | |
ISIC_0025803 | HAM_0005024 | actinic_keratoses | histo | 80 | male | face | |
ISIC_0025808 | HAM_0002261 | actinic_keratoses | histo | 50 | male | back | |
ISIC_0025811 | HAM_0005255 | actinic_keratoses | histo | 55 | male | upper extremity | |
ISIC_0025825 | HAM_0002232 | actinic_keratoses | histo | 80 | female | face | |
ISIC_0025831 | HAM_0004012 | actinic_keratoses | histo | 65 | female | face | |
ISIC_0025948 | HAM_0002672 | actinic_keratoses | histo | 75 | male | face | |
ISIC_0025953 | HAM_0002461 | actinic_keratoses | histo | 65 | male | face | |
ISIC_0025957 | HAM_0007047 | actinic_keratoses | histo | 60 | female | lower extremity | |
ISIC_0025992 | HAM_0005480 | actinic_keratoses | histo | 65 | male | face | |
ISIC_0026014 | HAM_0002882 | actinic_keratoses | histo | 85 | male | lower extremity | |
ISIC_0026040 | HAM_0006252 | actinic_keratoses | histo | 70 | female | face | |
ISIC_0026083 | HAM_0000552 | actinic_keratoses | histo | 55 | male | lower extremity | |
ISIC_0026100 | HAM_0000954 | actinic_keratoses | histo | 70 | male | lower extremity | |
ISIC_0026132 | HAM_0004992 | actinic_keratoses | histo | 70 | male | chest | |
ISIC_0026149 | HAM_0005480 | actinic_keratoses | histo | 65 | male | face | |
ISIC_0026152 | HAM_0000549 | actinic_keratoses | histo | 70 | male | upper extremity | |
ISIC_0026171 | HAM_0000356 | actinic_keratoses | histo | 60 | female | face | |
ISIC_0026178 | HAM_0007349 | actinic_keratoses | histo | 60 | male | back | |
ISIC_0026194 | HAM_0003910 | actinic_keratoses | histo | 30 | male | face | |
ISIC_0026203 | HAM_0003895 | actinic_keratoses | histo | 70 | male | back | |
ISIC_0026206 | HAM_0000490 | actinic_keratoses | histo | 85 | male | lower extremity | |
ISIC_0026212 | HAM_0003262 | actinic_keratoses | histo | 45 | male | face | |
ISIC_0026319 | HAM_0003195 | actinic_keratoses | histo | 80 | male | chest | |
ISIC_0026362 | HAM_0005301 | actinic_keratoses | histo | 60 | female | upper extremity | |
ISIC_0026388 | HAM_0003105 | actinic_keratoses | histo | 75 | female | upper extremity | |
ISIC_0026411 | HAM_0004846 | actinic_keratoses | histo | 70 | female | hand | |
ISIC_0026457 | HAM_0007303 | actinic_keratoses | histo | 75 | female | lower extremity | |
ISIC_0026466 | HAM_0000456 | actinic_keratoses | histo | 65 | female | upper extremity | |
ISIC_0026468 | HAM_0001023 | actinic_keratoses | histo | 50 | male | hand | |
ISIC_0026492 | HAM_0006481 | actinic_keratoses | histo | 70 | male | upper extremity | |
ISIC_0026522 | HAM_0005505 | actinic_keratoses | histo | 50 | male | upper extremity | |
ISIC_0026525 | HAM_0001048 | actinic_keratoses | histo | 45 | male | face | |
ISIC_0026549 | HAM_0002307 | actinic_keratoses | histo | 75 | male | chest | |
ISIC_0026575 | HAM_0006875 | actinic_keratoses | histo | 80 | male | face | |
ISIC_0026625 | HAM_0005354 | actinic_keratoses | histo | 60 | male | face | |
ISIC_0026650 | HAM_0000545 | actinic_keratoses | histo | 70 | male | face | |
ISIC_0026702 | HAM_0005228 | actinic_keratoses | histo | 80 | female | face | |
ISIC_0026709 | HAM_0001565 | actinic_keratoses | histo | 60 | female | face | |
ISIC_0026720 | HAM_0000688 | actinic_keratoses | histo | 75 | male | lower extremity | |
ISIC_0026729 | HAM_0006560 | actinic_keratoses | histo | 50 | male | face | |
ISIC_0026765 | HAM_0001474 | actinic_keratoses | histo | 55 | female | chest | |
ISIC_0026848 | HAM_0007308 | actinic_keratoses | histo | 55 | male | face | |
ISIC_0026857 | HAM_0004363 | actinic_keratoses | histo | 55 | male | face | |
ISIC_0026905 | HAM_0006180 | actinic_keratoses | histo | 70 | male | upper extremity | |
ISIC_0026927 | HAM_0003501 | actinic_keratoses | histo | 75 | male | lower extremity | |
ISIC_0026981 | HAM_0000909 | actinic_keratoses | histo | 55 | male | lower extremity | |
ISIC_0026984 | HAM_0001903 | actinic_keratoses | histo | 50 | male | face | |
ISIC_0026992 | HAM_0003146 | actinic_keratoses | histo | 85 | male | upper extremity |
End of preview. Expand in Data Studio
DermaLens Skin Cancer Dataset
This dataset repo documents the data pipeline used to train the DermaLens V3 skin cancer classification model.
Source Dataset
HAM10000 (Human Against Machine with 10000 training images) — accessed via marmal88/skin_cancer on HuggingFace.
from datasets import load_dataset
ds = load_dataset("marmal88/skin_cancer")
Dataset Statistics
| Split | Images | Malignant | Benign | Positive Rate |
|---|---|---|---|---|
| Train | 10,683 | ~2,093 | ~8,590 | 19.6% |
| Validation | 1,335 | ~263 | ~1,072 | 19.7% |
| Test | 1,336 | ~253 | ~1,083 | 18.9% |
| Total | 13,354 | ~2,609 | ~10,745 | 19.5% |
Label Mapping (Binary)
Original Class (dx) |
Binary Label | Category |
|---|---|---|
melanoma |
1 (Malignant) | Malignant melanocytic |
basal_cell_carcinoma |
1 (Malignant) | Non-melanocytic malignant |
actinic_keratoses |
1 (Malignant) | Pre-cancerous |
melanocytic_Nevi |
0 (Benign) | Common moles |
benign_keratosis-like_lesions |
0 (Benign) | Seborrheic keratoses etc. |
dermatofibroma |
0 (Benign) | Benign fibrous |
vascular_lesions |
0 (Benign) | Angiomas etc. |
MALIGNANT_CLASSES = {"melanoma", "basal_cell_carcinoma", "actinic_keratoses"}
label = 1 if item["dx"] in MALIGNANT_CLASSES else 0
Preprocessing
- Resize: 384x384 pixels
- Normalization: ImageNet stats (mean=[0.485, 0.456, 0.406], std=[0.229, 0.224, 0.225])
- Augmentation (train only): RandomResizedCrop, Flips, Rotation, ColorJitter, CoarseDropout, CLAHE
- Oversampling: Malignant samples repeated 3x
Model Performance (DermaLens V3)
| Metric | Value |
|---|---|
| Test ROC-AUC | 0.9753 |
| Test PR-AUC | 0.9127 |
| Test F1 | 0.8457 |
| Sensitivity | 94% |
| Specificity | 91% |
Model weights: dheraingoud/dermalens-model
- Downloads last month
- 41