Finetuning a Skin Cancer Recognition Model using Swin Tiny
Table of Contents
Introduction⌗
The resulting model is a fine-tuned version of microsoft/swin-tiny-patch4-window7-224
on the imagefolder dataset.
It achieves the following results on the evaluation set:
- Loss: 0.7695
- Accuracy: 0.7275
The Microsoft Swin-Tiny Transformer used in this project is a deep learning model architecture designed for computer vision tasks. It is a smaller variant of the Swin Transformer family and is known for its efficiency and high performance in image classification and other vision tasks.
Dataset⌗
Is a large collection of multi-source dermatoscopic images of pigmented lesions.
Labels⌗
Following skin conditions will be trained on our model:
-
Actinic-keratoses: Actinic keratoses, also known as solar keratoses, are precancerous skin lesions caused by sun exposure. They are a potential hazard as they may develop into skin cancer if left untreated.
-
Basal-cell-carcinoma: Basal cell carcinoma is a common type of skin cancer that rarely spreads but can be locally invasive. It is considered a hazard and should be treated promptly.
-
Benign-keratosis-like-lesions: Benign keratosis-like lesions are non-cancerous skin growths. They are typically not considered a hazard and are harmless.
-
Dermatofibroma: Dermatofibroma is a benign skin nodule that often appears as a small, firm bump. It is generally not a hazard and does not pose a significant health risk.
-
Melanocytic-nevi: Melanocytic nevi are common moles or birthmarks on the skin. While they are usually harmless, some may have the potential to become hazardous if they undergo malignant transformation.
-
Melanoma: Melanoma is a highly malignant form of skin cancer that can spread to other parts of the body if not detected early. It is a significant hazard and requires prompt medical attention.
-
Vascular-lesions: Vascular lesions include various skin conditions related to blood vessels, such as hemangiomas and port-wine stains. While they are generally not cancerous, treatment may be required for cosmetic or medical reasons.
Live Demo⌗
The fine-tuned model can be seen in action using the form below. All images are only used for prediction and are not stored. A color system from green to purple indicates the hazardousness of the predicted skin condition.
Make sure the photo contains only the skin mutation.