Melanoma is one of the most malignant forms of skin cancer, with an incidence rate of 7.9% in Indonesia. Traditional biopsy-based diagnosis, though crucial, is invasive and time-consuming, creating barriers for early detection. To address this issue, this research compares two Convolutional Neural Network (CNN) models for digital image-based melanoma classification. The study utilized a publicly available dataset from Kaggle, consisting of 17,805 images (melanoma and non-melanoma), which were divided into training, validation, and testing subsets. The models were trained using the Adamax and SGD optimizers for 100 epochs. The performance of the models was evaluated based on accuracy, loss, precision, recall, and F1-score. The CNN model with the best architecture, which consisted of two fully connected layers, achieved an accuracy of 93.18% and a loss of 0.1636, outperforming the alternative model. These results confirm the effectiveness of CNN models in classifying melanoma images and support the development of a web-based platform that allows users to upload or capture images for rapid and non-invasive detection.
Copyrights © 2025