Skin cancer is one of the most common types of cancer worldwide, with two main categories: non-melanoma skin cancers (NMSCs) and melanoma. NMSCs are further classified into basal cell carcinoma (BCC) and squamous cell carcinoma (SCC), while melanoma is the most aggressive and deadly form of skin cancer.
Keratosis-like lesions, also known as seborrheic keratosis, are benign growths that appear as rough, scaly patches on the skin. They are usually tan, brown, or black, and can appear anywhere on the body. While they are not cancerous, they can resemble melanoma and cause concern, so they are often removed for cosmetic reasons.
Melanoma, on the other hand, is a malignant tumor that develops from melanocytes, the pigment-producing cells in the skin. It usually appears as a dark mole or spot, but it can also be colorless. Melanoma is highly aggressive and can spread quickly to other parts of the body if left untreated.
Dermoscopy is a non-invasive imaging technique used to examine skin lesions. In computer-aided diagnosis of skin lesions, dermoscopy images are analyzed using various image processing techniques to extract features that can be used to classify the lesion as benign or malignant.
The classic image processing pipeline for skin lesion classification includes the following steps:
- Dataset: The dataset of dermoscopy images is imported using imageDatastore and readall. The images are then converted to grayscale and inverted.
- Denoising: Gaussian filtering is used to remove noise from the images.
- Thresholding: Otsu's thresholding method is used to obtain binary masks that separate the background (skin, black) from the foreground (lesion, white).
- Morphological Operations: Binary dilation, border clearing, small object removal, and hole-filling are used to clean the pre-processed masks.
- Feature Extraction: The grayscaled and inverted images are multiplied with the final binary masks obtained from step 4, and the standard deviation of the intensity distribution of each lesion and the circularity of each mask are computed using regionprops.
- Data Visualization and Analysis: K-means clustering is used to separate the two classes (benign/malignant lesions), and the features are plotted in the 2D feature plane with the corresponding estimated class label.
Based on the dataset provided, the results of the analysis can help in identifying which data points/clusters correspond to lesions classified as benign (keratosis-like lesions) or malignant (melanomas). However, without actually running the pipeline and analyzing the results, it is not possible to say which data points correspond to which class.