Abstract
Skin cancer, the leading type of cancer, poses a serious risk to public health, most notably melanoma, which is fatal if not treated. Early diagnosis is essential, but traditional diagnosis has low precision due to the poor image quality and the challenges of visual discrimination. Using the publicly available HAM10000 dataset, which is suitable for segmentation and multi-class classification, we propose a robust deep learning-based hybrid system for classification, segmentation, and severity analysis of skin cancer. The model begins with advanced preprocessing in the ELPWF module to pre-process the image and eliminate noise. Enhanced images are then processed with the TS-HCaps feature extraction algorithm to capture complex temporal and hidden features while reducing the dimensionality problem. The best features are selected using the TCWOA module to reduce computational complexity before segmentation by the PA-HRST model, achieving an HD analysis of 4%, and an ASSD of 0.008078, which is higher than existing schemes. The extracted features are then forwarded to the GA-MSKAD hybrid classification model, employing global attention to extract channel and spatial features and accurately classify skin cancer types including AKIEC, BCC, BKL, DF, MEL, NV, and VASC with a 99.18% accuracy, precision of 99.09%, recall of 99.13%, specificity of 99.03% and an F1-score of 99.11%. Finally, the severity is forecast by applying the RLLM regression model with residual and lasso analysis to achieve RMSE of 0.282, MAE of 0.08, and MSE of 0.08. This complete approach from image enhancement and feature extraction to hybrid classification and severity analysis is far superior to conventional diagnostic techniques. To enhance interpretability, stability, and clinical practical utility, future studies will prioritize the inclusion of Explainable Al (EAI), multiple datasets, and clinical data.
References
Aldhyani, Theyazn HH, Amit Verma, Mosleh Hmoud Al-Adhaileh, and Deepika Koundal. "Multi-class skin lesion classification using a lightweight dynamic kernel deep-learning-based convolutional neural network." Diagnostics 12, no. 9 (2022): 2048.
Mohamed, Jalaleddin, Necmi Serkan Tezel, Javad Rahebi, and Raheleh Ghadami. "Melanoma Skin Cancer Recognition with a Convolutional Neural Network and Feature Dimensions Reduction with Aquila Optimizer." Diagnostics 15, no. 6 (2025): 761.
Uthayakumar, G. S., Mallikarjun Yaramadhi, T. Marimuthu, and TR Vijaya Lakshmi. "Optimized mixed-order relation-aware recurrent neural networks based cad model for skin cancer detection and classification." Knowledge-Based Systems 315 (2025): 113222.
Sol, Stefano, Fabiana Boncimino, Kristina Todorova, Sarah Elizabeth Waszyn, and Anna Mandinova. "Therapeutic approaches for Non-melanoma skin Cancer: Standard of Care and Emerging modalities." International journal of molecular sciences 25, no. 13 (2024): 7056.
Akter, Mst Shapna, Hossain Shahriar, Sweta Sneha, and Alfredo Cuzzocrea. "Multi-class skin cancer classification architecture based on deep convolutional neural network." In 2022 IEEE International Conference on Big Data (Big Data), IEEE, (2022): 5404-5413.
Tahir, Maryam, Ahmad Naeem, Hassaan Malik, Jawad Tanveer, Rizwan Ali Naqvi, and Seung-Won Lee. "DSCC_Net: multi-classification deep learning models for diagnosing of skin cancer using dermoscopic images." Cancers 15, no. 7 (2023): 2179.
Purni, JS Thanga, and R. Vedhapriyavadhana. "EOSA-Net: A deep learning framework for enhanced multi-class skin cancer classification using optimized convolutional neural networks." Journal of King Saud University-Computer and Information Sciences 36, no. 3 (2024): 102007.
Veeramani, Nirmala, and Premaladha Jayaraman. "A promising AI based super resolution image reconstruction technique for early diagnosis of skin cancer." Scientific Reports 15, no. 1 (2025): 5084.
Bala, Diponkor, Md Ibrahim Abdullah, Mohammad Alamgir Hossain, Mohammad Anwarul Islam, Md Atiqur Rahman, and Md Shamim Hossain. "Skinnet: An improved skin cancer classification system using convolutional neural network." In 2022 4th International Conference on Sustainable Technologies for Industry 4.0 (STI), IEEE, (2022): 1-6.
Allugunti, Viswanatha Reddy. "A machine learning model for skin disease classification using convolution neural network." International Journal of Computing, Programming and Database Management 3, no. 1 (2022): 141-147.
Ozdemir, Burhanettin, and Ishak Pacal. "A robust deep learning framework for multiclass skin cancer classification." Scientific Reports 15, no. 1 (2025): 4938.
Aljohani, Khalil, and Turki Turki. "Automatic classification of melanoma skin cancer with deep convolutional neural networks." Ai 3, no. 2 (2022): 512-525.
Yi, Jui-Yun, Sheng-Lung Huang, Shiun Li, Yu-You Yen, and Chun-Yeh Chen. "Discrimination of the Skin Cells from Cellular-Resolution Optical Coherence Tomography by Deep Learning." In Photonics, vol. 12, no. 3, p. 217. MDPI, 2025.
Ali, Muhammad Danish, Tehseen Mazhar, Tariq Shahzad, Waheed Ur Rehman, Mohammad Shahid, and Habib Hamam. "An Advanced Deep Learning Framework for Skin Cancer Classification." The Review of Socionetwork Strategies 19, no. 1 (2025): 111-130.
Alshahrani, Mohammed, Mohammed Al-Jabbar, Ebrahim Mohammed Senan, Ibrahim Abdulrab Ahmed, and Jamil Abdulhamid Mohammed Saif. "Analysis of dermoscopy images of multi-class for early detection of skin lesions by hybrid systems based on integrating features of CNN models." Plos one 19, no. 3 (2024): e0298305.
Behara, Kavita, Ernest Bhero, and John Terhile Agee. "An improved skin lesion classification using a hybrid approach with active contour snake model and lightweight attention-guided capsule networks." Diagnostics 14, no. 6 (2024): 636.
Adla, Devakishan, G. Venkata Rami Reddy, Padmalaya Nayak, and G. Karuna. "A full-resolution convolutional network with a dynamic graph cut algorithm for skin cancer classification and detection." Healthcare Analytics 3 (2023): 100154. https://doi.org/10.1016/j.health.2023.100154.
Dubey, Vineet Kumar, and Vandana Dixit Kaushik. "Epidermis lesion detection via optimized distributed capsule neural network." Computers in Biology and Medicine 168 (2024): 107833.
Santoso, Kevin Putra, Raden Venantius Hari Ginardi, Rangga Aldo Sastrowardoyo, and Fadhl Akmal Madany. "Leveraging spatial and semantic feature extraction for skin cancer diagnosis with capsule networks and graph neural networks." arXiv preprint arXiv:2403.12009 (2024).
Salih, Omran, and Kevin Jan Duffy. "Optimization convolutional neural network for automatic skin lesion diagnosis using a genetic algorithm." Applied Sciences 13, no. 5 (2023): 3248.
Sivasangeetha, A., G. Nallasivan, and M. Vargheese. "Skin cancer diagnosis using improved capsules network." DRRJ J 13, no. 5 (2023).
Ali, Rizwan, A. Manikandan, and Jinghong Xu. "A novel framework of adaptive fuzzy-GLCM segmentation and fuzzy with capsules network (F-CapsNet) classification." Neural Computing and Applications 35, no. 30 (2023): 22133-22149.
Ahmed, Asaad, Guangmin Sun, Anas Bilal, Yu Li, and Shouki A. Ebad. "Precision and efficiency in skin cancer segmentation through a dual encoder deep learning model." Scientific Reports 15, no. 1 (2025): 4815.
Chen, Yucong, Guang Yang, Xiaohua Dong, Junying Zeng, and Chuanbo Qin. "DSNET: A Lightweight Segmentation Model for Segmentation of Skin Cancer Lesion Regions." IEEE Access (2025).
Thwin, Su Myat, Hyun-Seok Park, and Soo Hyun Seo. "A Trustworthy Framework for Skin Cancer Detection Using a CNN with a Modified Attention Mechanism." Applied Sciences 15, no. 3 (2025): 1067.
Mohamed, Safia, Zaher Al Aghbari, and Ahmed M. Khedr. "Enhancing Skin Cancer Detection: An Integrated Approach Using Deep Learning and Metaheuristic Algorithms." In 2025 2nd International Conference on Advanced Innovations in Smart Cities (ICAISC), IEEE, (2025): 01-06.
Saleh, Neven, Mohammed A. Hassan, and Ahmed M. Salaheldin. "Skin cancer classification based on an optimized convolutional neural network and multicriteria decision-making." Scientific Reports 14, no. 1 (2024): 17323.
Majid, Abdul, Masad A. Alrasheedi, Abdulmajeed Atiah Alharbi, Jeza Allohibi, and Seung-Won Lee. "Modified whale optimization algorithm for multiclass skin cancer classification." Mathematics 13, no. 6 (2025): 929.
https://www.kaggle.com/datasets/surajghuwalewala/ham1000-segmentation-and-classification
Serhani, Mohamed Adel, Asadullah Tariq, Tariq Qayyum, Ikbal Taleb, Irfanud Din, and Zouheir Trabelsi. "Meta-xpfl: An explainable and personalized federated meta-learning framework for privacy-aware iomt." IEEE Internet of Things Journal (2025).
Hu, Binbin, Pan Zhou, Hongfang Yu, Yueyue Dai, Ming Wang, Shengbo Tan, and Ying Sun. "LeaNet: Lightweight U-shaped architecture for high-performance skin cancer image segmentation." Computers in Biology and Medicine 169 (2024): 107919.
Reddy, Dasari Anantha, Swarup Roy, Sanjay Kumar, and Rakesh Tripathi. "A scheme for effective skin disease detection using optimized region growing segmentation and autoencoder based classification." Procedia Computer Science 218 (2023): 274-282.
Pacal, Ishak, Melek Alaftekin, and Ferhat Devrim Zengul. "Enhancing skin cancer diagnosis using swin transformer with hybrid shifted window-based multi-head self-attention and SwiGLU-based MLP." Journal of imaging informatics in medicine 37, no. 6 (2024): 3174-3192.
Jimi, Anwar, Hind Abouche, Nabila Zrira, and Ibtissam Benmiloud. "SegSkin: An Effective Application for Skin Lesion Segmentation Using Attention-Based VGG-UNet." In Social Network Analysis and Mining Applications in Healthcare and Anomaly Detection, pp. 185-210. Cham: Springer Nature Switzerland, 2024.
Zareen, Syeda Shamaila, Guangmin Sun, Mahwish Kundi, Syed Furqan Qadri, and Salman Qadri. "Enhancing Skin Cancer Diagnosis with Deep Learning: A Hybrid CNN-RNN Approach." Computers, Materials & Continua 79, no. 1 (2024).
Tabrizchi, Hamed, Sepideh Parvizpour, and Jafar Razmara. "An improved VGG model for skin cancer detection." Neural Processing Letters 55, no. 4 (2023): 3715-3732.
Venugopal, Vipin, Navin Infant Raj, Malaya Kumar Nath, and Norton Stephen. "A deep neural network using modified EfficientNet for skin cancer detection in dermoscopic images." Decision Analytics Journal 8 (2023): 100278.
Pacal, Ishak, Burhanettin Ozdemir, Javanshir Zeynalov, Huseyn Gasimov, and Nurettin Pacal. "A novel CNN-ViT-based deep learning model for early skin cancer diagnosis." Biomedical Signal Processing and Control 104 (2025): 107627.
