Update README.md
Browse files
README.md
CHANGED
@@ -1,4 +1,3 @@
|
|
1 |
-
|
2 |
---
|
3 |
tags:
|
4 |
- skin-cancer-detection
|
@@ -23,27 +22,48 @@ model-index:
|
|
23 |
metrics:
|
24 |
- name: Accuracy
|
25 |
type: accuracy
|
26 |
-
value: 0.
|
27 |
---
|
28 |
|
29 |
# Skin Cancer Detection Model
|
30 |
|
31 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
32 |
|
33 |
-
|
34 |
-
|
35 |
-
- **bkl**: Benign Keratosis
|
36 |
-
- **df**: Dermatofibroma
|
37 |
-
- **nv**: Melanocytic Nevus
|
38 |
-
- **vasc**: Vascular Lesions
|
39 |
-
- **mel**: Melanoma
|
40 |
|
41 |
-
|
42 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
43 |
|
44 |
## Usage
|
45 |
-
|
|
|
46 |
|
47 |
```python
|
48 |
from tensorflow.keras.models import load_model
|
49 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
---
|
2 |
tags:
|
3 |
- skin-cancer-detection
|
|
|
22 |
metrics:
|
23 |
- name: Accuracy
|
24 |
type: accuracy
|
25 |
+
value: 0.85
|
26 |
---
|
27 |
|
28 |
# Skin Cancer Detection Model
|
29 |
|
30 |
+
## Overview
|
31 |
+
This model was created as part of a final project for an AI bootcamp. It is a **skin cancer detection** model trained to classify skin lesions from dermatoscopic images using the **HAM10000 dataset**. The model is capable of predicting **seven different types of skin lesions**, each corresponding to various forms of skin cancer and other skin conditions.
|
32 |
+
|
33 |
+
The model has been trained using a **Convolutional Neural Network (CNN)** with **TensorFlow** and **Keras**. The goal of this project is to help in early detection of skin cancer by classifying images into seven distinct categories, which could assist healthcare professionals in diagnosis.
|
34 |
+
|
35 |
+
## Model Architecture
|
36 |
+
The model utilizes a CNN architecture fine-tuned for image classification tasks. Below is a brief description of the architecture:
|
37 |
+
- **Input size**: 224x224 RGB images
|
38 |
+
- **Base architecture**: Pretrained CNN (e.g., ResNet, VGG)
|
39 |
+
- **Output layer**: 7 softmax units, each corresponding to one of the skin lesion categories
|
40 |
+
|
41 |
+
## Model Performance
|
42 |
+
The model was trained on the HAM10000 dataset and achieved an accuracy of **85%** on the validation set. Further improvements could be made by additional fine-tuning and hyperparameter optimization.
|
43 |
|
44 |
+
## Datasets
|
45 |
+
The model was trained using the **HAM10000 dataset**, which consists of over 10,000 dermatoscopic images of skin lesions. The dataset includes seven types of lesions, described as follows:
|
|
|
|
|
|
|
|
|
|
|
46 |
|
47 |
+
| Label | Full Name | Description |
|
48 |
+
|-------|------------|-------------|
|
49 |
+
| **akiec** | Actinic Keratoses and Intraepithelial Carcinoma | A type of skin lesion that can develop into squamous cell carcinoma if left untreated. |
|
50 |
+
| **bcc** | Basal Cell Carcinoma | A common form of skin cancer that rarely metastasizes. |
|
51 |
+
| **bkl** | Benign Keratosis | Non-cancerous skin lesions like seborrheic keratosis. |
|
52 |
+
| **df** | Dermatofibroma | A benign skin lesion usually found on the lower legs. |
|
53 |
+
| **nv** | Melanocytic Nevus | Commonly known as a mole, usually benign but can develop into melanoma. |
|
54 |
+
| **vasc** | Vascular Lesions | Skin lesions that involve blood vessels, like angiomas. |
|
55 |
+
| **mel** | Melanoma | The most dangerous form of skin cancer, often caused by UV radiation exposure. |
|
56 |
|
57 |
## Usage
|
58 |
+
|
59 |
+
To use this model for inference, you can load it using TensorFlow:
|
60 |
|
61 |
```python
|
62 |
from tensorflow.keras.models import load_model
|
63 |
+
|
64 |
+
# Load the model
|
65 |
+
model = load_model("path_to_model.h5")
|
66 |
+
|
67 |
+
# Preprocess input image and make predictions
|
68 |
+
image = preprocess_image("path_to_image.jpg") # Custom image preprocessing function
|
69 |
+
prediction = model.predict(image)
|