Multi-Class Classification of Skin Cancer Images Using a Deep Learning-Based Convolutional Neural Network (CNN)

Authors

DOI:

https://doi.org/10.63318/waujpasv3i2_29

Keywords:

Convolutional neural network, Deep leaning, Multi-class classification, Random oversampling, Skin cancer

Abstract

Skin cancer is one of the most common and serious types of cancer, often resulting from the transformation of melanocytes due to excessive exposure to ultraviolet radiation. Early diagnosis significantly improves survival rates and reduces mortality. However, traditional visual diagnosis faces challenges in distinguishing between the seven main categories of skin conditions due to visual similarities and data imbalance. This study aims to develop an automated diagnostic model based on a Convolutional Neural Network (CNN) to enhance classification accuracy and reduce reliance on human evaluation. The HAM10000 dataset (Human Against Machine with 10,000 Training Images), comprising 10,015 images across seven categories, was used, with class imbalance addressed through Random Oversampling. The data were split into 80% for training and 20% for testing, with 20% of the training set reserved for validation. The model was constructed using sequential Conv2D and MaxPooling layers for feature extraction, followed by Flatten and Dense layers for final classification. Training was performed with the Adam optimizer for adaptive weight adjustment and the Categorical Crossentropy loss function suitable for multi-class classification. The model achieved an overall accuracy of 95.45% and demonstrated strong performance across all categories based on Precision, Recall, and F1-Score, with Precision ranging from 84% to 99% and a weighted average of 96% for both Precision and F1-Score. These results highlight the proposed model’s clinical significance as an intelligent decision-support tool, enhancing early diagnosis, reducing human error, and improving healthcare quality.

Downloads

Download data is not yet available.

Downloads

Published

2025-09-04

How to Cite

Ahmed, F., Othman, A.-Z., & Ukasha, A. (2025). Multi-Class Classification of Skin Cancer Images Using a Deep Learning-Based Convolutional Neural Network (CNN) . Wadi Alshatti University Journal of Pure and Applied Sciences, 3(2), 230-243. https://doi.org/10.63318/waujpasv3i2_29