Downloads · 30 days
0
Mitanshu10/dermalens-skin-cancer-model
dermalens-skin-cancer-model is a image classification model from Mitanshu10. Use it when you need a label for an image. It is set up for keras. The card lists the license as mit.
A Deep Learning-based Skin Lesion Classification Model trained on the HAM10000 dataset using TensorFlow and Keras.
Downloads · 30 days
0
Access
Public
Updated Aug 17, 2026
Repo size
533 MB
Likes
1
Public
Click a slice to open those files.
.h5533 MB · 100%
From the Hugging Face model README
A Deep Learning-based Skin Lesion Classification Model trained on the HAM10000 dataset using TensorFlow and Keras.
DermaLens is a Convolutional Neural Network (CNN) developed for automated skin lesion classification. The model analyzes dermoscopic skin images and predicts the most likely lesion category among seven classes from the HAM10000 dataset.
This project demonstrates the application of Deep Learning and Computer Vision techniques in healthcare and skin cancer screening research.
| Property | Value |
|---|---|
| Model Name | DermaLens Skin Cancer Classification Model |
| Author | Mitanshu Makwana |
| Framework | TensorFlow / Keras |
| Model Format | .h5 |
| Model File | skin_cancer_cnn.h5 |
| Model Size | 533 MB |
| Dataset | HAM10000 |
| Number of Classes | 7 |
| Task | Multi-Class Image Classification |
| Accuracy | ~83% |
The model was trained using the HAM10000 (Human Against Machine with 10,000 Training Images) dataset.
| Class Label | Disease Type |
|---|---|
akiec | Actinic Keratoses and Intraepithelial Carcinoma |
bcc | Basal Cell Carcinoma |
bkl | Benign Keratosis-like Lesions |
df | Dermatofibroma |
mel | Melanoma |
nv | Melanocytic Nevi |
vasc | Vascular Lesions |
The model is based on a Convolutional Neural Network (CNN) architecture consisting of:
Before inference, images undergo:
| Parameter | Value |
|---|---|
| Framework | TensorFlow / Keras |
| Optimizer | Adam |
| Loss Function | Categorical Crossentropy |
| Evaluation Metric | Accuracy |
| Classification Type | Multi-Class |
| Metric | Score |
|---|---|
| Accuracy | ~83% |
| Classes | 7 |
Actual performance may vary depending on image quality, preprocessing pipeline, acquisition device, and dataset distribution.
pip install tensorflow numpy pillow
from tensorflow.keras.models import load_model
model = load_model("skin_cancer_cnn.h5")
import numpy as np
from tensorflow.keras.preprocessing import image
from tensorflow.keras.models import load_model
model = load_model("skin_cancer_cnn.h5")
img = image.load_img("sample.jpg", target_size=(224, 224))
img = image.img_to_array(img)
img = np.expand_dims(img, axis=0)
img = img / 255.0
prediction = model.predict(img)
predicted_class = np.argmax(prediction)
print("Predicted Class:", predicted_class)
This model is intended solely for educational and research purposes.
Predictions generated by this model should not be interpreted as medical advice, diagnosis, or treatment recommendations.
Users should always consult qualified healthcare professionals for any medical concerns.
If you use this model in your research or projects, please cite:
@misc{dermalens2026,
title={DermaLens: Skin Cancer Classification using Deep Learning},
author={Mitanshu Makwana},
year={2026},
publisher={Hugging Face}
}
Author: Mitanshu Makwana
Project: DermaLens – Skin Cancer Detection System
Hugging Face: Mitanshu10/dermalens-skin-cancer-model
⚠️ This model is not FDA-approved, CE-certified, or clinically validated.
It is provided strictly for research, educational, and demonstration purposes and must not be used as a substitute for professional medical diagnosis.