SKIN CANCER DETECTION USING DEEP MACHINE LEARNING

Authors

  • Muhammad Yousuf Minhaj University, Lahore, Pakistan. Author
  • Zeeshan Ali Minhaj University, Lahore, Pakistan. Author
  • Hafiz Muhammad Zubair Minhaj University, Lahore, Pakistan. Author
  • Sohail Ahmad Minhaj University, Lahore, Pakistan. Author
  • Sonia mukhtar Minhaj University, Lahore, Pakistan. Author

DOI:

https://doi.org/10.71000/jvj4yv90

Keywords:

Artificial Intelligence, Convolutional Neural Networks, Deep Learning, Dermoscopy, Machine Learning, Skin Cancer, Teledermatology

Abstract

Background: Skin cancer is one of the most prevalent malignancies worldwide, responsible for nearly one-third of all diagnosed cancers each year. Early detection significantly improves survival rates, yet access to dermatological care remains limited in remote and resource-poor regions. Deep learning (DL) techniques, particularly convolutional neural networks (CNNs), have shown remarkable success in automating image-based diagnosis, offering an opportunity to bridge gaps in timely cancer detection and care.

Objective: The objective of this study was to develop and evaluate a deep learning–based model capable of accurately distinguishing between benign and malignant skin lesions using dermoscopic images, while addressing issues of dataset imbalance and model generalization.

Methods: A total of 3,000 dermoscopic images representing four major skin cancer types were used, with data augmentation applied through rotation, flipping, and scaling to improve robustness. Preprocessing steps included noise reduction, normalization, and lesion segmentation to isolate the region of interest. A lightweight CNN architecture incorporating convolution, max pooling, dropout, and batch normalization layers was employed. The dataset was divided into training and validation subsets (80:20). Model performance was assessed using precision, recall, F1-score, and accuracy metrics. Training was conducted on TensorFlow and Keras frameworks, and statistical evaluation was performed using SPSS v26.

Results: The model achieved an overall accuracy of 94.4%, with precision and recall values of 0.94 and 1.00, respectively, for malignant lesions. The F1-score reached 0.97, indicating excellent balance between sensitivity and specificity. Validation accuracy peaked at 90%, demonstrating effective learning with minimal overfitting.

Conclusion: The proposed deep learning model exhibited strong performance and computational efficiency, proving suitable for real-world deployment in clinical and teledermatology applications. Its scalability for mobile platforms highlights its potential to enhance early diagnosis and improve outcomes for patients in underserved regions.

Author Biographies

  • Muhammad Yousuf, Minhaj University, Lahore, Pakistan.

    Department of Computer Science, Minhaj University, Lahore, Pakistan.

  • Zeeshan Ali , Minhaj University, Lahore, Pakistan.

    Department of Computer Science, Minhaj University, Lahore, Pakistan.

  • Hafiz Muhammad Zubair , Minhaj University, Lahore, Pakistan.

    Department of Computer Science, Minhaj University, Lahore, Pakistan.

  • Sohail Ahmad , Minhaj University, Lahore, Pakistan.

    Department of Computer Science, Minhaj University, Lahore, Pakistan.

  • Sonia mukhtar, Minhaj University, Lahore, Pakistan.

    Department of Computer Science, Minhaj University, Lahore, Pakistan.

References

Priyanka, S., Kavitha, C. and Kumar, M.P.: Deep Learning based Approach for Prediction of Diabetes. In 2023 2nd International Conference for Innovation in Technology (INOCON). IEEE. pp. 1-6.(2023).

Moganam, P.K. and Sathia Seelan, D.A.: Deep learning and machine learning neural network approaches for multi class leather texture defect classification and segmentation. Journal of Leather Science and Engineering, 4(1), p.7. (2022)

Morawitz, J.; Dietzel, F.; Ullrich, T.; Hoffmann, O.; Mohrmann, S.; Breuckmann, K.; Herrmann, K.; Buchbender, C.; Antoch, G.; Umultu, L.; et al. Comparison of nodal staging between CT, MRI, and [18F]-FDG PET/MRI in patients with newly diagnosed breast cancer. Eur. J. Nucl. Med. Mol. Imaging 2022, 49, 992–1001.

Jinzaki, M.; Yamada, Y.; Nagura, T.; Nakahara, T.; Yokoyama, Y.; Narita, K.; Ogihara, N.; Yamada, M. Development of upright computed tomography with area detector for whole-body scans: Phantom study, efficacy on workflow, effect of gravity on human body, and potential clinical impact. Investig. Radiol. 2020, 55, 73.

Thomas, S. (2022). Deep learning methods for the characterisation of non-melanoma skin cancer (The University of Queensland, Institute for Molecular Bioscience).

Nawaz, M., Mehmood, Z., Nazir, T., Naqvi, R. A., Rehman, A., Iqbal, M., & Saba, T. (2022). Skin cancer detection from dermoscopic images using deep learning and fuzzy k‐means clustering. Microscopy Research and Technique, 85(1), 339–351.

G. Pacheco and R. A. Krohling, “The impact of patient clinical information on automated skin cancer detection,” Computers in biology and medicine, vol. 116, p. 103545, 2020.

R. L. Siegel, K. D. Miller, N. S. Wagle, and A. Jemal, “Cancer statistics, 2023,” Ca Cancer J Clin, vol. 73, no. 1, pp. 17–48, 2023.

Who, world health organization (who), 2023 https://www.who. int/news-room/questions-and-answers/item/radiation-ultraviolet-(uv)-radiation-and-skin-cancer Last visited:19 August,20

Manimurugan, S. Hybrid high performance intelligent computing approach of CACNN and RNN for skin cancer image grading. Soft Comput. 2023, 27, 579–589

Girdhar, N.; Sinha, A.; Gupta, S. DenseNet-II: An improved deep convolutional neural network for melanoma cancer detection. Soft Comput. 2023, 27, 13285–13304.

Balaha, H.M.; Hassan, A.E.S. Skin cancer diagnosis based on deep transfer learning and sparrow search algorithm. Neural Comput. Appl. 2023, 35, 815–853.

Dascalu, A.; Walker, B.N.; Oron, Y.; David, E.O. Non-melanoma skin cancer diagnosis: A comparison between dermoscopic and smartphone images by unified visual and sonification deep learning algorithms. J. Cancer Res. Clin. Oncol. 2022, 148, 2497–2505.

Hribernik, N.; Huff, D.T.; Studen, A.; Zevnik, K.; Žan Klaneˇ cek.; Emamekhoo, H.; Škalic, K.; Jeraj, R.; Reberšek, M. Quantitative imaging biomarkers of immune-related adverse events in immune-checkpoint blockade-treated metastatic melanoma patients: Apilot study. Eur. J. Nucl. Med. Mol. Imaging 2022, 49, 1857–1869.

Brinker TJ, et al. Diagnostic performance of artificial intelligence for histologic mela-noma recognition compared to 18 international expert pathologists. J Am Acad Dermatol. 2022;86(3):640–2.

Duc,N.T.; Lee, Y.-M.; Park, J.H.; Lee, B. An ensemble deep learning for automatic prediction of papillary thyroid carcinoma using f ine needle aspiration cytology. Expert Syst. Appl. 2022, 188, 115927.

Kassem, M.A.; Hosny, K.M.; Damaševiˇcius, R.; Eltoukhy, M.M. Machine learning and deep learning methods for skin lesion classification and Diagnosis: A systematic review. Diagnostics 2021, 11, 1390.

Abayomi-Alli, O.O.; Damasevicius, R.; Misra, S.; Maskeliunas, R.; Abayomi-Alli, A. Malignant skin melanoma detection using image augmentation by oversamplingin nonlinear lower-dimensional embedding manifold. Turk. J. Electr. Eng. Comput. Sci. 2021, 29, 2600–2614.

Kadry, S.; Taniar, D.; Damaševiˇcius, R.; Rajinikanth, V.; Lawal, I.A. Extraction of abnormal skin lesion from dermoscopy image using VGG-SegNet. In Proceedings of the 2021 Seventh International Conference on Bio Signals, Images, and Instrumentation (ICBSII), Chennai, India, 25 March 2021

Nawaz K, Zanib A, Shabir I, Li J, Wang Y, Mahmood T, et al. Skin cancer detection using dermoscopic images with convolutional neural network. Sci Rep. 2025;15(1):7252.

Maron RC, Haggenmüller S, von Kalle C, Utikal JS, Meier F, Gellrich FF, et al. Robustness of convolutional neural networks in recognition of pigmented skin lesions. Eur J Cancer. 2021;145:81-91.

Khan AR, Mujahid M, Alamri FS, Saba T, Ayesha N. Early-Stage Melanoma Cancer Diagnosis Framework for Imbalanced Data From Dermoscopic Images. Microsc Res Tech. 2025;88(3):797-809.

Liu Z, Zhang Y, Wang K, Xie F, Liu J. Early diagnosis model of mycosis fungoides and five inflammatory skin diseases based on a multimodal data-based convolutional neural network. Br J Dermatol. 2025;193(5):968-77.

Downloads

Published

2025-11-10