Classification of Skin Cancer Diseases Using KNN, CNN and SVM Methods
DOI:
https://doi.org/10.55606/jeei.v5i2.3844Keywords:
Skin cancer, Dermoscopy, Convolutional Neural Network (CNN), support vector machine (SVM), K-nearest neighbor (KNN), AccuracyAbstract
According to the WHO, about 2 to 3 million non-melanoma.non-melanoma skin cancers and 132,000 melanoma skin cancers occur globally every year, making up one out of every three cancers.globally each year, and account for one in every three cancers diagnosed.diagnosed. In Indonesia, skin cancer is listed as the cancer with the third highestincidence after uterine cervical and ovarian cancer, and breast cancer.Skin cancer can be detected with dermoscopy. Dermoscopy is a non-invasive diagnostic technique using optical magnification that allows visualization of morphologicHowever, this cannot be done optimally because it still relies on manual analysis so it cannot classify skin cancer types on larger datasets with potential errors and low accuracy. To accurately determine the type of skin cancer,a better classification method is needed. The purpose of this research is to determine the accuracy of skin cancer calcification using Convolutional Neural Network (CNN), support vector machine (SVM), K-nearest neighbor (KNN) models. The datasheet used amounted to 2,239 containing skin cancer images with class division 114 actinic keratosis, 376 basal cell carcinoma, 95 dermatofibroma, 438 melanoma, 357 nevus, 462 pigmented benign, 77 seborrheic keratosis, 181 squamos cell, 139 vascular lesion. The results showed that the convolutional neural network (CNN) algorithm model obtained a sensitivity of 92.59%, specificity of 99%, precision of 93%, F1-Score of 93.01%, and accuracy of 98.35%. For the KNN algorithm model, 57.77% sensitivity, 94.53% specificity, 64.25% precision, 55.99% F1-Score, and 90.45% accuracy were obtained. And for the SVM algorithm model, 61% sensitivity, 94.81% specificity, 70.23% precision, 61.26% F1-Score, and 91.17% accuracy were obtained.
References
Chairani, M., Triana, D., Sudarsono, W., Kurniati, A., and Putri, S. R., “Accuracy of the use of dermoscopy in the diagnosis of scabies,” *Journal of Rape Medicine*, vol. 8, no. 1, pp. 48–55, 2022.
Dian Ayu Nurlitasari, R. M., “Performance Analysis of Skin Cancer Classification System Using Convolutional Neural Network,” *JESCE (Journal of Electrical and System Control Engineering)*, vol. 2, Feb. 2022.
Faruk, M., “Classification of Skin Cancer Based on Texture Features, Image Color Features Using SVM and KNN,” *Telematics*, vol. 13, no. 2, 2020.
Fauzan Nuraulia Darmawan, E. P., “The classification system for skin diseases uses a website-based Convolutional Neural Network (CNN) method,” *Proceedings of the National Seminar on Research and Community Service*, LPPM 'Aisyiyah University Yogyakarta, Vol. 2, Sep. 28, 2024.
Findriyani, R. A., “Classification of skin cancer based on benign and malignant image data using convolutional neural networks,” *JAMASTIKA*, vol. 3, Apr. 1, 2024.
Desire, “Classification of Heart Disease Using the K-Nearest Neighbor Method,” *Indonesian Journal of Data and Science*, vol. 1, no. 1, pp. 6–10, 2020.
Isnani, Y., “Classification of skin cancer using the K-Nearest Neighbor method,” Final Thesis Project, University of Technology Yogyakarta, 2021. (Also cited in: Ricky Yohannes, vol. 2, no. 2, Apr. 2022)
Juliyanti, “Dermoscopy,” *Pandu Husada*, vol. 4, no. 2, 2023.
Leonardus Sandy Ade Putra, “Improved Identification of Actinic Keratosis Skin Cancer Using a Combination of Extraction System with Classification Support Vector Machine,” n.d.
Maulana, F. F., and Rochmawati, N., “Fruit image classification using convolutional neural network,” *Journal of Informatics and Computer Science (JINACS)*, vol. 1, no. 2, pp. 104–108, 2020. doi:10.26740/jinacs.v1n02.p104-108
Naja Maskuri, M. H., “Application of the K-Nearest Neighbor (KNN) Algorithm for Stroke Prediction,” *Intech Scientific Journal: Information Technology Journal of UMUS*, vol. 4, no. 1, pp. 130–140, 2022.
Ricky Yohannes, M. E., “Classification of skin cancer types using CNN SVM,” *Journal of Algorithms*, vol. 2, no. 2, pp. 133–144, Apr. 2022.
Rizky Adawiyah, D. I., “Optimization of Skin Disease Detection Using the Support Vector Machine (SVM) and Gray Level Co-occurrence Matrix (GLCM) Method,” *Journal of Informatics and Information Systems*, vol. 14, no. 1, May 2022.
Saifur Rohman Cholil, T. H., “Implementation of the K-Nearest Neighbor (KNN) classification algorithm for the classification of scholarship recipient selection,” *IJCIT (Indonesian Journal on Computer and Information Technology)*, vol. 6, no. 2, pp. 118–127, 2021.
Sarwati Rahayu, S. S., “Performance Analysis of Multi-Class Skin Cancer Datasheet Classification Method Using KNN and HOG,” *JSAI*, vol. 9, n.d.
Siskawati Rahayu, Y. Y., “Classification of Stroke Disease by Support Vector Machine (SVM) Method,” *JINACS (Journal of Informatics and Computer Science)*, vol. 5, no. 3, 2024.
Teresia R. Savera, W. H., “Early Detection of Skin Cancer Using K-NN and Convolutional Neural Network,” *Journal of Information Technology and Computer Science (JTIIK)*, vol. 7, no. 2, pp. 373–378, Apr. 2020.
Youllia Indrawaty Nurhasanah, I. A., “The Melanoma Cancer Type Recognition System in Imaging Using Gray Level Co-occurrence Matrices (GLCM) and K-Nearest Neighbor (KNN) Classifier,” *MIND Journal*, vol. 5, no. 1, pp. 66–80, Jun. 2020.
Yulia Farida Yahya, T. L., “Empowerment of health workers in primary health facilities in Sungsang District: introduction to skin cancer,” *Journal of Community Service Humanity and Medicine*, vol. 2, no. 2, pp. 97–105, 2021. doi:10.32539/Hummed.V2I2.55