MF180/DermaVision-HAM10000-Benchmark
Viewer β’ Updated β’ 7 β’ 37
DermaVision-EfficientNetV2-S is a clinical-grade dermoscopy skin lesion classification model fine-tuned on the 10,015-image HAM10000 dataset across 7 diagnostic risk categories.
It is packaged in two formats in this repository:
model.pth (243 MB): Full PyTorch checkpoint (torchvision.models.efficientnet_v2_s backbone with p=0.6 Dropout classification head).model.onnx (80.6 MB, Opset 14): Dual-output compiled ONNX graph (DualOutputCamWrapper) that outputs both:output ([B, 7]): 7-class raw classification logitscam_maps ([B, 7, 7, 7]): Spatial Class Activation Maps computed via einsum("bchw,kc->bkhw", feat, weight) from the final convolutional block (1280 channels), enabling zero-server Grad-CAM heatmap rendering directly inside WebAssembly (onnxruntime-web)!arn:aws:sagemaker:us-east-1:706999906997:model-package/DermaVision-EfficientNetV2-S/3| Class Index | HAM10000 Code | Lesion Diagnosis | Clinical Risk Tier | Clinical Decision Rule |
|---|---|---|---|---|
0 |
mel |
Melanoma | π΄ High Risk | Proactive Override if P(Melanoma) > 0.20 |
1 |
nv |
Melanocytic Nevus | π’ Low Risk | Standard Argmax |
2 |
bcc |
Basal Cell Carcinoma | π΄ High Risk | Standard Argmax |
3 |
akiec |
Actinic Keratosis | π‘ Moderate Risk | Standard Argmax |
4 |
bkl |
Seborrheic Keratosis | π’ Low Risk | Standard Argmax (3x training false-positive penalty) |
5 |
df |
Dermatofibroma | π’ Low Risk | Standard Argmax |
6 |
vasc |
Vascular Lesion | π’ Low Risk | Standard Argmax |
| Iteration | SageMaker Package | Loss & Sampling Strategy | Val AUC-ROC | Macro Sensitivity | Melanoma Sensitivity | Macro Specificity |
|---|---|---|---|---|---|---|
| v1 (Baseline) | DermaVision-EfficientNetV2-S/1 (Rejected) |
Standard Cross-Entropy | 0.9790 |
14.7% |
5.4% |
85.6% |
| v2 (Sensitivity) | DermaVision-EfficientNetV2-S/2 (Pending) |
Focal Loss (gamma=4.0) + 5x Minority Sampler |
0.9150 |
71.1% |
38.1% |
90.2% |
| v3 (Production) | DermaVision-EfficientNetV2-S/3 (Approved) |
High-Res 384px + 3x Seborrheic Penalty + 0.20 Threshold | 0.9129 |
71.1% |
68.2% |
88.2% |