Skin Cancer Classification by Applying Different Models of Artificial Intelligence
Abstract
Accurate multiclass classification of dermoscopic skin lesions remains challenging because of high inter-class visual similarity, substantial intra-class variability, and frequent acquisition artifacts (black borders, hair occlusions, noise). We propose a unified, reproducible framework that systematically coordinates four stages: (i) artifact-aware preprocessing (field-of-view circular cropping, hair removal, CLAHE, bilateral filtering); (ii) lesion-focused segmentation via GrabCut-refined fusion and a U-Net with EfficientNet-B3 encoder; (iii) compact deep-feature extraction (EfficientNet-B7) refined by principal component analysis and Neural Spline Flow density calibration; and (iv) robust machine-learning classification. The HAM10000 dataset (n = 10,015, seven diagnostic classes) was partitioned once by stratified random sampling into training (70 %, n = 7010), validation (15 %, n = 1502), and test (15 %, n = 1503) subsets under a strictly sequential anti-leakage protocol with patient-level isolation; the test set was sequestered until terminal evaluation. External generalization was assessed on an independent ISIC 2019 subset (n = 350, 50 per class) without retraining. On the held-out HAM10000 test set, XGBoost achieved the highest accuracy of 99.47 % with an F1-score of 98.99 %, followed by LightGBM (98.20 %) and MLP (97.67 %). Ablation analysis confirmed incremental gains of +2.55 % (preprocessing), +1.75 % (segmentation), and +1.32 % (Neural Spline Flow refinement). On the external ISIC 2019 data, MLP attained the best cross-domain accuracy of 95.43 %, demonstrating that the feature backbone generalizes beyond the training distribution. The demonstrated synergy of artifact suppression, lesion-centered segmentation, and density-calibrated feature learning yields highly discriminative and generalizable representations, providing a robust foundation for reliable computer-aided dermatologic screening
Downloads
References
C. Kavitha, S. Priyanka, M. P. Kumar, and V. Kusuma, “Skin Cancer Detection and Classification using Deep Learning Techniques,” Procedia Computer Science, vol. 235, pp. 2793–2802, 2024, doi: 10.1016/j.procs.2024.04.264.
M. Harahap, A. M. Husein, S. C. Kwok, V. Wizley, J. Leonardi, D. K. Ong, D. Ginting, and B. A. Silitonga, “Skin cancer classification using EfficientNet architecture,” Bulletin of Electrical Engineering and Informatics, vol. 13, no. 4, pp. 2716–2728, Aug. 2024, doi: doi.org/10.11591/eei.v13i4.7159.
O. Akinrinade and C. Du, "Skin cancer detection using deep machine learning techniques," Intelligence-Based Medicine, vol. 11, Art. no. 100191, 2025, doi: 10.1016/j.ibmed.2024.100191.
M. A. Rahman, E. Bazgir, S. M. Saokat Hossain, and Md. Maniruzzaman, “Skin cancer classification using NASNet,” International Journal of Science and Research Archive, vol. 11, no. 1, pp. 775–785, Jan. 2024, doi: 10.30574/ijsra.2024.11.1.0106.
K. A. Ogudo, R. Surendran, and O. Ibrahim Khalaf, “Optimal Artificial Intelligence-Based Automated Skin Lesion Detection and Classification Model,” Computer Systems Science and Engineering, vol. 44, no. 1, pp. 693–707, 2023, doi: 10.32604/csse.2023.024154.
G. M. S. Himel, Md. M. Islam, Kh. A. Al-Aff, S. I. Karim, and Md. K. U. Sikder, “Skin Cancer Segmentation and Classification Using Vision Transformer for Automatic Analysis in Dermatoscopy-Based Noninvasive Digital System,” International Journal of Biomedical Imaging, vol. 2024, pp. 1–18, Feb. 2024, doi: 10.1155/2024/3022192.
A. A. Abdullah, H. S. Hussein, and L. A. Abdul-Rahaim, “Robust Brain Tumor MRI Classification Through MobileNetV3 Deep Feature Fusion and Principal Component Analysis Enhanced AdaBoost Learning,” Journal of Electronics, Electromedical Engineering, and Medical Informatics, vol. 8, no. 2, pp. 730–750, 2026, doi: 10.35882/jeeemi.v8i2.1462.
M. Ahammed, Md. A. Mamun, and M. S. Uddin, “A machine learning approach for skin disease detection and classification using image segmentation,” Healthcare Analytics, vol. 2, p. 100122, Nov. 2022, doi: 10.1016/j.health.2022.100122.
Z. Li, Z. Chen, X. Che, Y. Wu, D. Huang, H. Ma, and Y. Dong, “A classification method for multi-class skin damage images combining quantum computing and Inception-ResNet-V1,” Frontiers in Physics, vol. 10, Nov. 2022, doi: 10.3389/fphy.2022.1046314.
N. Aishwarya, K. Manoj Prabhakaran, F. T. Debebe, M. S. S. A. Reddy, and P. Pranavee, “Skin Cancer diagnosis with Yolo Deep Neural Network,” Procedia Computer Science, vol. 220, pp. 651–658, 2023, doi: 10.1016/j.procs.2023.03.083.
N. Nigar, A. Wajid, S.Islam, and M.K.Shahzad, “SKIN CANCER CLASSIFICATION: A DEEP LEARNING APPROACH,” Pakistan Journal of Science, vol. 75, no. 2, July 2023, doi: 10.57041/pjs.v75i02.851.
V. Venugopal, N. I. Raj, M. K. Nath, and N. Stephen, “A deep neural network using modified EfficientNet for skin cancer detection in dermoscopic images,” Decision Analytics Journal, vol. 8, Art. no. 100278, Sep. 2023, doi: 10.1016/j.dajour.2023.100278.
M. Obayya, M. A. Arasi, N. S. Almalki, S. S. Alotaibi, M. Al Sadig, and A. Sayed, “Internet of Things-Assisted Smart Skin Cancer Detection Using Metaheuristics with Deep Learning Model,” Cancers, vol. 15, no. 20, p. 5016, Oct. 2023, doi: 10.3390/cancers15205016.
M. Azeem, K. Kiani, T. Mansouri, and N. Topping, “SkinLesNet: Classification of Skin Lesions and Detection of Melanoma Cancer Using a Novel Multi-Layer Deep Convolutional Neural Network,” Cancers, vol. 16, no. 1, p. 108, Dec. 2023, doi: 10.3390/cancers16010108.
V. Radhika and B. S. Chandana, “MSCDNet-based multi-class classification of skin cancer using dermoscopy images,” PeerJ Computer Science, vol. 9, p. e1520, Aug. 2023, doi: 10.7717/peerj-cs.1520.
M. Abou Ali, F. Dornaika, I. Arganda-Carreras, H. Ali, and M. Karaouni, “Naturalize Revolution: Unprecedented AI-Driven Precision in Skin Cancer Classification Using Deep Learning,” BioMedInformatics, vol. 4, no. 1, pp. 638–660, Mar. 2024, doi: 10.3390/biomedinformatics4010035.
H. Ghosh, I. S. Rahat, S. N. Mohanty, J. V. R. Ravindra, and A. Sobur, “A study on the application of machine learning and deep learning techniques for skin cancer detection,” International Journal of Computer and Systems Engineering, vol. 18, no. 1, pp. 51–59, 2024, doi: 10.5281/zenodo.10525954.
R. Sulthana A, V. Chamola, Z. Hussain, F. Albalwy, and A. Hussain, “A novel end-to-end deep convolutional neural network based skin lesion classification framework,” Expert Systems with Applications, vol. 246, Art. no. 123056, 2024, doi: 10.1016/j.eswa.2023.123056.
S. Bechelli and J. Delhommelle, "Machine learning and deep learning algorithms for skin cancer classification from dermoscopic images," Bioengineering, vol. 9, no. 3, p. 97, Mar. 2022, doi: 10.3390/bioengineering9030097.
S. Gorgbandi and S. Nazari, "Medical image processing of patients for skin cancer diagnosis using artificial intelligence," Trans. Mach. Intell., vol. 8, no. 1, pp. 38–46, 2025, doi: 10.47176/TMI.2025.38.
P. Chaudhary, "AI in cancer detection: Early identification of esophageal and skin cancers in the United States," Sch. J. App. Med. Sci., vol. 13, no. 2, pp. 530–535, 2025, doi: 10.36347/sjams.2025.v1302.040.
P. Tschandl et al., "The HAM10000 dataset, a large collection of multi-source dermatoscopic images of common pigmented skin lesions," Sci. Data, vol. 5, no. 1, pp. 1–9, 2018, doi: 10.1038/sdata.2018.161.
R. Szeliski, Computer Vision: Algorithms and Applications, 2nd ed. Cham, Switzerland: Springer, 2022, doi: 10.1007/978-3-030-34372-9.
H. Iyatomi, M. E. Celebi, G. Schaefer, and M. Tanaka, “Automated color normalization for dermoscopy images,” in 2010 IEEE International Conference on Image Processing, IEEE, Sept. 2010, pp. 4357–4360. Accessed: May 10, 2026,doi:10.1109/icip.2010.5652370.
S. Sookpotharom, “Border Detection of Skin Lesion Images Based on Fuzzy C-Means Thresholding,” in 2009 Third International Conference on Genetic and Evolutionary Computing, IEEE, Oct. 2009, pp. 777–780. Accessed: May 10, 2026, doi: 10.1109/wgec.2009.96.
J. Premaladha and K. Ravichandran, “Novel approaches for diagnosing melanoma skin lesions through supervised and deep learning algorithms,” Journal of Medical Systems, vol. 40, no. 4, Art. no. 96, 2016, doi: 10.1007/s10916-016-0460-2.
T.-Y. Lin, P. Goyal, R. Girshick, K. He, and P. Dollár, "Focal loss for dense object detection," in Proc. IEEE Int. Conf. Comput. Vis. (ICCV), Venice, Italy, 2017, pp. 2999–3007, doi: 10.1109/ICCV.2017.324.
C. Rother, V. Kolmogorov, and A. Blake, “GrabCut: Interactive foreground extraction using iterated graph cuts,” ACM Transactions on Graphics, vol. 23, no. 3, pp. 309–314, Aug. 2004, doi: 10.1145/1015706.1015720.
M. Tan and Q. V. Le, "EfficientNet: Rethinking model scaling for convolutional neural networks," in Proc. 36th Int. Conf. Machine Learning (ICML), Long Beach, CA, USA, Jun. 9–15, 2019, pp. 6105–6114, doi: 10.48550/arXiv.1905.11946.
O. Russakovsky, J. Deng, H. Su, J. Krause, S. Satheesh, S. Ma, Z. Huang, A. Karpathy, A. Khosla, M. Bernstein, A. C. Berg, and L. Fei-Fei, “ImageNet large scale visual recognition challenge,” International Journal of Computer Vision, vol. 115, no. 3, pp. 211–252, 2015, doi: 10.1007/s11263-015-0816-y.
C. V. Niño-Rondón, D. A. Castellano-Carvajal, S. A. Castro-Casadiego, B. Medina-Delgado, and D. Guevara-Ibarra, “Preliminary identification of skin lesions using efficient computational learning techniques,” Eco Matemático, vol. 13, no. 1, pp. 34–42, Jan.–Jun. 2022, doi: 10.22463/17948231.3286.
A. A. Abdullah, A. Aldhahab, and H. M. Al Abboodi, “Eye disease classification based on hybrid deep features with principal component analysis and blending ensemble learning,” International Journal of Intelligent Engineering and Systems, vol. 18, no. 6, pp. –, 2025, doi: 10.22266/ijies2025.0731.12.
A. A. Abdullah and S. A. Hashem, “Hybrid multi-wavelet transform, VGG16 and ResNet50 features, and classification using light gradient boosting machine for multi-class lung disease diagnosis using chest X-rays,” Franklin Open, vol. 16, no. November 2025, p. 100639, 2026, doi: 10.1016/j.fraope.2026.100639.
J. Braun, “Principal Component Analysis,” Lecture 14, Otto-von-Guericke-Universität Magdeburg, Cognitive Biology Group, Engineering Neuroscience / Computational Neuroscience II, SS 2020, 2020, doi: 10.17147/asu-2004-9275.
C. Durkan, A. Bekasov, I. Murray, and G. Papamakarios, "Neural spline flows," in Advances in Neural Information Processing Systems, vol. 32, Vancouver, Canada, Dec. 2019, pp. 7511–7522, doi: 10.48550/arXiv.1906.04032.
A. A. Adegun and S. Viriri, “FCN-based DenseNet framework for automated detection and classification of skin lesions in dermoscopy images,” IEEE Access, vol. 8, pp. 150377–150396, 2020, doi: 10.1109/ACCESS.2020.3016651.
S. Ö. Arik and T. Pfister, "TabNet: Attentive interpretable tabular learning," in Proc. AAAI Conf. Artif. Intell., vol. 35, no. 8, pp. 6679–6687, 2021, doi: 10.1609/aaai.v35i8.16826.
T. Fawcett, "An introduction to ROC analysis," Pattern Recogn. Lett., vol. 27, no. 8, pp. 861–874, 2006, doi: 10.1016/j.patrec.2005.10.010.
A. A. Abdullah, A. J. Heaton, "Ian Goodfellow, Yoshua Bengio, and Aaron Courville: Deep learning," Genet. Program. Evolvable Mach., vol. 19, no. 1–2, pp. 305–307, 2018, doi: 10.1007/s10710-017-9314-z.
C. V. Niño-Rondón, D. A. Castellano-Carvajal, S. A. Castro-Casadiego, B. Medina-Delgado, and D. Guevara-Ibarra, “An approach to edge detection in medical imaging through histogram analysis and morphological gradient,” Ingeniería y Competitividad, vol. 24, no. 2, Art. no. e20611352, Jul.–Dec. 2022, doi: 10.25100/iyc.v24i2.11352.
T. Chen and C. Guestrin, “XGBoost: A scalable tree boosting system,” in Proc. 22nd ACM SIGKDD Int. Conf. Knowledge Discovery and Data Mining (KDD), San Francisco, CA, USA, Aug. 2016, pp. 785–794, doi: 10.1145/2939672.2939785.
G. Ke et al., "LightGBM: A highly efficient gradient boosting decision tree," in Advances in Neural Information Processing Systems, vol. 30, Long Beach, CA, USA, 2017, pp. 3146–3154, doi: 10.48550/arXiv.1712.08357.
M. L. Breiman, "Random forests," Mach. Learn., vol. 45, no. 1, pp. 5–32, 2001, doi: 10.1023/A:1010933404324.
A. S. Al-Waisy, S. Al-Fahdawi, M. I. Khalaf, M. A. Mohammed, B. Al-Attar, and M. N. Al-Andoli, “A deep learning framework for automated early diagnosis and classification of skin cancer lesions in dermoscopy images,” Scientific Reports, vol. 15, no. 1, Art. no. 31234, 2025, doi: 10.1038/s41598-025-15655-9.
Aljoboury, T., Aldhahab, A., & Ali Al Abboodi, H. M., “Lung Disease Diagnoses Using Hybrid Multi-Wavelet Transform and Deep Convolution Features with Support Vector Classifier,” International Journal of Intelligent Engineering and Systems, vol. 18, no. 3, pp. 448–467, Apr. 2025, doi: 10.22266/ijies2025.0430.31.
Al Abboodi, H. M., Alhuseen, A., Ali, Z., & Salih Abedi, W. M., “Detection of Breast Cancer Using a Dual-Stream Network of DenseNet121 and U-Net Guided ViT Fusion Transformer,” International Journal of Intelligent Engineering and Systems, vol. 18, no. 7, pp. 514–535, Aug. 2025, doi: 10.22266/ijies2025.0831.33.
A. Abdullah, A. Siddique, K. Shaukat, and T. Jan, “An intelligent mechanism to detect multi-factor skin cancer,” Diagnostics, vol. 14, no. 13, Art. no. 1359, 2024, doi: 10.3390/diagnostics14131359.
K. Thurnhofer-Hemsi and E. Domínguez, "A convolutional neural network framework for accurate skin cancer detection," Neural Process. Lett., vol. 53, no. 5, pp. 3073–3093, 2021, doi: 10.1007/s11063-020-10364-y.
V. Ravi, “Attention Cost-Sensitive Deep Learning-Based Approach for Skin Cancer Detection and Classification,” Cancers, vol. 14, no. 23, Art. no. 5872, Nov. 2022, doi: 10.3390/cancers14235872.
A. A. Abdullah and M. Q. Hatem, "Audio transmission through Li-Fi," International Journal of Civil Engineering and Technology, vol. 9, no. 7, pp. 853–859, 2018, doi: 10.34218/IJCIET_09_07_088.
Copyright (c) 2026 Wajid Dawood Alwan, Osama Qasim Jumah Al-Thahab , Hanaa Mohsin Ali Al Abboodi

This work is licensed under a Creative Commons Attribution-ShareAlike 4.0 International License.
Authors who publish with this journal agree to the following terms:
- Authors retain copyright and grant the journal right of first publication with the work simultaneously licensed under a Creative Commons Attribution-ShareAlikel 4.0 International (CC BY-SA 4.0) that allows others to share the work with an acknowledgement of the work's authorship and initial publication in this journal.
- Authors are able to enter into separate, additional contractual arrangements for the non-exclusive distribution of the journal's published version of the work (e.g., post it to an institutional repository or publish it in a book), with an acknowledgement of its initial publication in this journal.
- Authors are permitted and encouraged to post their work online (e.g., in institutional repositories or on their website) prior to and during the submission process, as it can lead to productive exchanges, as well as earlier and greater citation of published work (See The Effect of Open Access).


.png)
.png)
.png)
.png)
.png)