Dataset Viewer
Auto-converted to Parquet Duplicate
case_id
string
image_id
string
embedding
list
dataset_split
string
binary_label
int64
primary_diagnosis
string
fitzpatrick_skin_type
string
monk_skin_tone_us
float64
monk_skin_tone_india
float64
-1000600354148496558
-3205742176803893704
[ -0.02191716805100441, -0.6209224462509155, -0.9147911667823792, 0.33985820412635803, -0.16728217899799347, -0.0925544947385788, -0.22694897651672363, -0.6869083642959595, 0.025542067363858223, -0.1219671294093132, 0.5109723210334778, -0.043726611882448196, 0.12065796554088593, -0.276633381...
train
0
Inflicted skin lesions
null
1
2
-1002039107727665188
-4762289084741430925
[ 0.2656778395175934, -0.4742124080657959, -1.1108942031860352, 0.5633747577667236, -0.2232358753681183, 0.11547471582889557, -0.23675258457660675, -0.3651866018772125, 0.014100983738899231, -0.04915653541684151, 0.5123233199119568, -0.16128143668174744, 0.028413787484169006, 0.1701160222291...
val
0
Prurigo nodularis
null
3
3
-1003358831658393077
-4027806997035329030
[ 0.19989103078842163, -0.3879072070121765, -1.0064401626586914, 0.46167147159576416, -0.02588932402431965, 0.10187239199876785, -0.11699008196592331, -0.33992084860801697, 0.03862311691045761, 0.04167434200644493, 0.4317875802516937, 0.1037447527050972, 0.2920708656311035, 0.138934582471847...
train
1
Impetigo
NONE_IDENTIFIED
4
3
-1003844406100696311
-3799298995660217860
[0.17892064154148102,-0.5103834271430969,-0.8297889828681946,0.37836161255836487,-0.1461319327354431(...TRUNCATED)
test
1
Lichen planus/lichenoid eruption
FST3
1
1
-1003844406100696311
-5881426422999442186
[0.051627352833747864,-0.44967442750930786,-0.6641384363174438,0.11724762618541718,-0.02215779386460(...TRUNCATED)
test
1
Lichen planus/lichenoid eruption
FST3
1
1
-1003844406100696311
5854025080806696361
[0.18761514127254486,-0.41951850056648254,-1.0699386596679688,0.4664474427700043,-0.1977640688419342(...TRUNCATED)
test
1
Lichen planus/lichenoid eruption
FST3
1
1
-1005079160214352144
-3575683440831198879
[0.001331418752670288,-0.5551100373268127,-0.8432396054267883,0.16650927066802979,0.1117969378829002(...TRUNCATED)
val
1
Drug Rash
null
2
2
-1005079160214352144
6164754101533643044
[0.21762950718402863,-0.6878470778465271,-0.8648489117622375,0.28029653429985046,-0.1204023510217666(...TRUNCATED)
val
1
Drug Rash
null
2
2
-1005079160214352144
7125798012232703466
[0.14048677682876587,-0.27297109365463257,-0.7605463862419128,-0.012520981952548027,0.09391239285469(...TRUNCATED)
val
1
Drug Rash
null
2
2
-1010778459521153386
-6942912841265248602
[0.04683678597211838,-0.43058133125305176,-0.711521565914154,0.29100272059440613,-0.2110470086336136(...TRUNCATED)
train
0
Urticaria
FST1
3
3
End of preview. Expand in Data Studio

SCIN-Dermatology-Generational-Embeddings

This dataset contains pre-extracted image-level feature embeddings and clinical/demographic metadata for 6,517 photographs (grouped into 3,061 cases). These features were extracted using two distinct encoder backbones:

  1. TIPSv2 (Gen 2): 1,024-dimensional feature embeddings extracted from the open-weights google/tipsv2-l14 visual backbone.
  2. Gemma4 (Gen 3): 2,560-dimensional visual token embeddings extracted from the on-device litert-community/gemma-4-E4B-it-litert-lm multimodal visual encoder.

Storing pre-extracted embeddings enables fast training of downstream classifiers—such as Multiple Instance Learning (MIL) models—without requiring local vision model forward passes.

Dataset Structure

The dataset contains two compressed Apache Parquet files:

.
├── README.md
├── tipsv2_embeddings.parquet    # Columnar 1024-d embeddings + metadata
└── gemma4_embeddings.parquet    # Columnar 2560-d embeddings + metadata

Schema Structure

Each Parquet file follows the exact same schema:

Column Name Data Type Description
case_id string Unique patient case ID
image_id string Unique image ID
embedding list[float] Numeric feature vector (1,024-d for TIPSv2, 2,560-d for Gemma4)
dataset_split string Stratified split assignment (train, val, test)
binary_label int Triage label (0 = non-infectious, 1 = infectious)
primary_diagnosis string Primary consensus dermatology diagnosis (e.g. Eczema)
fitzpatrick_skin_type string Fitzpatrick skin type grading (FST1–FST6)
monk_skin_tone_us float Monk Skin Tone grading (US standard, scale 1–10)
monk_skin_tone_india float Monk Skin Tone grading (India standard, scale 1–10)

Quick Start (Python)

To load the embeddings and meta columns directly using the Hugging Face datasets library:

from datasets import load_dataset

# Load TIPSv2 embeddings
tipsv2_dataset = load_dataset(
    "HawkFranklin-Research/SCIN-Dermatology-Generational-Embeddings", 
    data_files="tipsv2_embeddings.parquet"
)

# Load Gemma4 embeddings
gemma4_dataset = load_dataset(
    "HawkFranklin-Research/SCIN-Dermatology-Generational-Embeddings", 
    data_files="gemma4_embeddings.parquet"
)

# Access a sample vector
sample = tipsv2_dataset["train"][0]
print(sample["case_id"])  # e.g., '-1000600354148496558'
print(sample["primary_diagnosis"])  # e.g., 'Eczema'
print(len(sample["embedding"]))  # 1024

Citation & License

This dataset is distributed under the MIT License. The underlying image classifications and clinical features are derived from the Google SCIN repository. If you use this dataset in your research, please cite the primary SCIN work:

@article{Ward2024_SCIN_JAMANetworkOpen,
  author    = {Ward, Edwin and others},
  title     = {Skin Condition Image Network (SCIN): A diverse dataset of patient-submitted skin photographs},
  journal   = {JAMA Network Open},
  year      = {2024},
  volume    = {7},
  number    = {5},
  pages     = {e2410389}
}
Downloads last month
50