You need to agree to share your Hugging Face information to access this dataset
This repository is publicly accessible, but you have to accept the conditions to access its files and content.
Access requests are reviewed manually. The images include clinical photographs of patients, published in open-access articles. Every sample carries its own Creative Commons license (field license_code) and an attribution string that must be preserved when the material is reused.
Log in or Sign Up to review the conditions and access this dataset content.
LAION Derm 01
Dermatology figures and supplementary videos from the PubMed Central (PMC) Open Access subset, each with its caption, the sentences of the article that cite it, article metadata and the article's license. Only openly licensed publications are used.
This repo holds the articles licensed under CC BY-NC, CC BY-NC-SA, CC BY-NC-ND, CC BY-ND. Samples in this repo carry non-commercial (NC) and/or no-derivatives (ND) terms. Check license_code before any use: NC samples must not be used commercially, and ND samples must not be redistributed in modified form. The dataset is split by license:
| repo | licenses | |
|---|---|---|
laion/laion-derm-00 |
CC0, CC BY, CC BY-SA |
commercial use allowed |
laion/laion-derm-01 |
CC BY-NC, CC BY-NC-SA, CC BY-NC-ND, CC BY-ND |
non-commercial and/or no-derivatives |
The series is produced by a continuous harvester. It selects dermatology-related OA articles with NCBI ESearch queries
(below), reads each article's JATS XML from NCBI's PMC Article Datasets on AWS (s3://pmc-oa-opendata), resolves
every captioned <fig> graphic and every video <media> / <supplementary-material>, and stores the original files
byte-for-byte (md5-verified against PMC). Every captioned figure of a selected article is included: clinical
photographs, dermoscopy and histopathology as well as charts, diagrams and blots. Use the derm_match and
modalities pre-tags to filter.
Article selection (derm_scope)
An article is included when it matches at least one of these PMC queries (each with AND open_access[filter]); the
field derm_scope lists the queries it matched, derm_core is true for the dermatology core:
derm-journals(core): articles in dermatology journalsdermoscopy-captions(core): a figure caption mentions dermoscopy, trichoscopy, onychoscopy, capillaroscopy or reflectance confocal microscopymesh-skin-diseases(core): MeSH "Skin Diseases" (dermatitis, psoriasis, skin neoplasms, hair and nail diseases, infections, ...) except articles indexed only under its "Breast Diseases" branchmesh-breast-diseases: MeSH "Breast Diseases" (breast cancer, mastitis, Paget disease of the nipple, ...), which MeSH files under "Skin Diseases"; kept in scope but not coreclinical-photo-captions: a figure caption mentions a clinical photograph / image / appearance, in an article about skin, rash or lesionsskin-lesion-captions: a figure caption describes skin lesions (skin lesion, rash, erythematous, papules, pustules, bullae, skin biopsy, ...)derm-titles: the article title names a dermatological condition or the skin (covers articles without MeSH indexing)mesh-skin-related: MeSH Skin, Dermatology, Hair, Nails, Melanoma, Burns, Leprosy, Mpoxwound-journals: articles in wound-care, burn and medical-mycology case-report journals
MeSH files "Breast Diseases" under "Skin Diseases", so breast-cancer, mastitis and other breast articles matched
mesh-skin-diseases until November 2026 and were marked derm_core. They stay in the dataset (some, such as Paget
disease of the nipple or skin involvement of breast cancer, are dermatological) under mesh-breast-diseases, which is
not core; articles that also carry another Skin Diseases heading remain in mesh-skin-diseases. Their derm_match
pre-tags were recomputed without the derm-core bonus. The metadata parquet holds the current derm_scope,
derm_core and pre-tags; the <key>.json inside the tars keeps the values at upload time. To drop the articles
that are in scope only through the breast branch: meta.filter(lambda r: r["derm_scope"] != ["mesh-breast-diseases"]).
Contents
| config | files | sample |
|---|---|---|
images |
images/NNNNNN.tar (WebDataset) |
<key>.jpg/.webp/.png/.gif/.tif + <key>.json |
videos |
videos/NNNNNN.tar (WebDataset) |
<key>.mp4/.avi/.mov/... + <key>.json |
originals |
originals/NNNNNN.tar (WebDataset) |
<key>.tif/.gif/.png/... + <key>.json — figure files over 50 MB, byte-for-byte |
metadata |
`metadata/<images | videos |
videos also holds an MP4 (H.264) version of every animated GIF figure with 3+
frames (frame timing kept, longest side ≤ 1920 px). Such samples have
source_file set to the GIF and share its <key>; md5 and url describe the GIF, which itself is in images
(or originals).
Oversized figure files (originals)
Figures whose only file in PMC is larger than 50 MB (mostly high-resolution TIFFs) are stored twice: in images as a
JPEG rendition (first page/frame, 8-bit, longest side ≤ 4096 px, source_file = the original's name) and in
originals byte-for-byte (kind = "original"), with the same <key>, caption and metadata.
Selected fields of <key>.json / the metadata parquet:
caption,caption_title,label— figure / video legend as published;mentions— up to 3 sentences of the article body that cite the itemderm_match,score,terms,modalities— pre-tags from a transparent caption keyword tagger.derm_match = 1: the caption describes dermatological imagery.modalitiese.g.clinical(clinical photograph, "lesion on the left cheek"),dermoscopy,trichoscopy,capillaroscopy,rcm(reflectance confocal),lc-oct,hf-ultrasound,uv(Wood's lamp),histopathology,dif(direct immunofluorescence),microscopy,patch-test,animal,radiology. Not a manual annotation.width,height,frames,duration,fps,codec— media properties;md5,bytes,url(source object)pmcid,pmid,doi,title,journal,year,authors,keywords,subjects,abstract,article_url,derm_scope,derm_corelicense_code,license_url,copyright,attributioncontent_type,content_score,content_scores— what the image shows, from an image classifier (see below). Only in the metadata parquet, not in<key>.json.
from datasets import load_dataset
ds = load_dataset("laion/laion-derm-01", "images", split="train", streaming=True)
meta = load_dataset("laion/laion-derm-01", "metadata", split="train") # captions/tags/licenses only
derm = meta.filter(lambda r: r["derm_match"] == 1 and "clinical" in r["modalities"])
dermoscopy = meta.filter(lambda r: r["content_type"] == "dermoscopy" and r["content_score"] > 0.8)
Content type (content_type, content_scores)
Every image and video has a probability for each of 18 content categories in content_scores
(they sum to 1), the most likely one in content_type and its probability in content_score. Multi-panel figures
spread their probability over the panel types (e.g. chart 0.55, gel_blot 0.3, fluorescence_microscopy 0.15), so
content_scores also works as a "contains" score. For videos the scores are the mean over 3 frames (15/50/85 %).
content_type |
what it covers | images + videos in this repo | precision¹ | recall¹ |
|---|---|---|---|---|
clinical_photo |
photograph of a patient's skin, hair, nails or mucosa (incl. skin surgery) | 65,009 (17.5%) | 88% | 92% |
dermoscopy |
dermoscopy / trichoscopy / capillaroscopy close-up | 5,932 (1.6%) | 85% | 75% |
histopathology |
brightfield microscopy of stained tissue (H&E, IHC, special stains) | 37,000 (10.0%) | 94% | 84% |
fluorescence_microscopy |
fluorescence, immunofluorescence or confocal microscopy | 9,026 (2.4%) | 82% | 70% |
electron_microscopy |
scanning or transmission electron micrograph | 3,062 (0.8%) | 83% | 77% |
cell_microscopy |
brightfield microscopy of cells, smears, microbes (not tissue sections) | 2,983 (0.8%) | 70% | 29% |
radiology |
X-ray, CT, MRI, PET or scintigraphy | 25,264 (6.8%) | 94% | 87% |
other_medical_imaging |
ultrasound, OCT, reflectance confocal, endoscopy, fundus, angiography | 9,073 (2.4%) | 79% | 69% |
chart |
data plot: bar, line, scatter, box, survival, forest, heatmap, network, map | 157,913 (42.6%) | 94% | 96% |
table |
table rendered as an image | 767 (0.2%) | 69% | 88% |
flowchart |
flow chart, PRISMA diagram, algorithm or timeline | 17,980 (4.8%) | 86% | 89% |
schematic |
illustration, mechanism or pathway diagram, drawing, cartoon | 20,481 (5.5%) | 75% | 75% |
map |
geographic map (study area, sampling sites, distribution of cases) | 1,311 (0.4%) | 71% | 82% |
gel_blot |
western blot or gel electrophoresis | 8,207 (2.2%) | 89% | 74% |
molecular_structure |
chemical structure or 3D molecular rendering | 2,476 (0.7%) | 81% | 84% |
animal_photo |
photograph of an animal (e.g. mouse skin model, pet) | 258 (0.1%) | 41% | 22% |
other_photo |
other photograph: device, product, specimen, culture plate, people, scene | 2,208 (0.6%) | 47% | 34% |
text_screenshot |
text, form, questionnaire or software screenshot | 1,869 (0.5%) | 55% | 21% |
¹ Agreement with the figure captions on articles held out from training (10 %): precision = of the figures
predicted as this type whose caption names some content type, the share whose caption names this one; recall = of
the figures whose caption names only this type, the share predicted as it. Captions are an imperfect reference, and
figures whose caption names no content type (about 40 % of the dataset) are harder: expect lower precision there,
especially for rare types such as dermoscopy, animal_photo and other_photo.
How it was made: each image is embedded with laion/DermaLit-CLIP-ViT-B-16 (letterboxed to 224 px), and a
softmax-regression head maps the embedding to the categories. The head was trained on 694,708 figures
whose caption names one to three content types (keyword rules such as "western blot", "H&E", "Kaplan-Meier",
"dermoscopy", "PRISMA flow diagram"); at prediction time only the image is used. Checked against hand-labelled
figures, the top category is one of the figure's actual panel types for 95% on 96 dermatology-tagged figures; 96% on 240 random figures. These are machine predictions, not
manual annotations: expect errors on unusual figures, and confusions between neighbours such as schematic /
flowchart or cell_microscopy / histopathology. For a precise subset, require a high content_score or combine
the column with the caption pre-tags, e.g. content_type == "dermoscopy" and "dermoscopy" in modalities.
Licensing
Only articles whose PMC license_code is CC0 or a Creative Commons BY license are included; author manuscripts
(text-mining only) and articles with custom licenses are excluded. The license is per sample (license_code,
license_url) — keep the attribution field with any reuse. Some figures in CC-licensed articles reproduce
third-party material (captions often say "reprinted/adapted with permission"); such content may carry its own
restrictions.
Patients and privacy
Many images are clinical photographs of patients. They were published in peer-reviewed open-access articles, where journals require patient consent for publication, but the dataset was not screened for identifiable features. Do not try to identify any person, and remove any sample on request. Access is gated and reviewed manually.
Source and terms
Data from the NIH NLM NCBI PubMed Central (PMC) Article Datasets, accessed via https://registry.opendata.aws/ncbi-pmc. NLM is acknowledged as the source of the data; NLM/NIH/HHS do not endorse this dataset. The dataset reflects PMC at harvest time and may not reflect the most current or accurate data available from NLM (articles get corrected, updated or retracted; retracted articles were excluded at harvest time). Each sample links back to its source article. It is not a medical device and must not be used for diagnosis.
- Downloads last month
- -