Deep Learning for Accurate Classification of Seven Types of Skin Lesions from Dermoscopic Images

Main Article Content

Sumayya Jahan
Kallol Chakraborty Shekhor
Md Sahid Hossain
Md Fakrul Alam
Abdur Rahim
Md Sazzad Hossain Shehan
Md Anwar Hossain
Md Abedur Rahman
Mohammed Adnan

Abstract

Accurate multiclass classification of dermatoscopic images remains challenging because skin lesions often exhibit substantial visual similarity, considerable variation in color and morphology, and severe class imbalance. This study presents a hybrid deep learning framework that integrates ConvNeXt Tiny, pyramid pooling context modeling, and a hierarchical Swin Transformer for seven class skin lesion classification. The ConvNeXt branch extracts progressive local texture, color, and morphological representations, while the pyramid pooling module aggregates lesion context at spatial scales defined by pooling bins of 1, 2, 3, and 6. In parallel, the Swin Transformer branch models hierarchical spatial relationships and long range dependencies through shifted window attention. The three branch representations are globally pooled, projected into a shared 512 dimensional latent space, and combined using a learned gated attention mechanism that adaptively controls their contributions to the final prediction. The framework was evaluated on the HAM10000 dataset containing 10,015 dermatoscopic images from seven diagnostic categories. Images were partitioned at the lesion level into 7,010 training, 1,502 validation, and 1,503 testing samples to prevent information leakage between images of the same lesion. Class balanced focal loss, AdamW optimization, ImageNet normalization, and controlled image augmentation were used during training. The proposed model achieved an accuracy of 95.81%, balanced accuracy of 92.51%, macro precision of 92.64%, macro recall of 92.51%, macro F1 score of 92.58%, and macro area under the receiver operating characteristic curve of 99.01%. Ablation analysis showed progressive improvements after introducing pyramid pooling, Swin features, channel attention, and gated fusion, with a macro F1 increase of 3.21 percentage points over the ConvNeXt Tiny baseline. These findings indicate that complementary local, contextual, and global representations can improve image level skin lesion classification, particularly under substantial class imbalance.

Article Details

How to Cite
Jahan, S., Shekhor, K. C., Hossain, M. S., Alam, M. F., Rahim, A., Shehan, M. S. H., … Adnan, M. (2023). Deep Learning for Accurate Classification of Seven Types of Skin Lesions from Dermoscopic Images. The Eastasouth Journal of Information System and Computer Science, 1(02), 279–299. https://doi.org/10.58812/esiscs.v1i02.1185
Section
Articles

References

[1] Das, K., Cockerell, C. J., Patil, A., Pietkiewicz, P., Giulini, M., Grabbe, S., and Goldust, M. (2021). Machine learning and its application in skin cancer. International Journal of Environmental Research and Public Health, 18(24), 13409.

[2] Manik, M. M. T. G. (2022). An analysis of cervical cancer using the application of AI and machine learning. Journal of Medical and Health Studies, 3(2), 67–76. https://doi.org/10.32996/jmhs.2022.3.2.11

[3] Dildar, M., Akram, S., Irfan, M., Khan, H. U., Ramzan, M., Mahmood, A. R., Alsaiari, S. A., Saeed, A. H. M., Alraddadi, M. O., and Mahnashi, M. H. (2021). Skin cancer detection: A review using deep learning techniques. International Journal of Environmental Research and Public Health, 18(10), 5479.

[4] Manik, M. M. T. G., Saimon, A. S. M., Miah, M. A., Ahmed, M. K., Khair, F. B., Moniruzzaman, M., and Bhuiyan, M. M. R. (2021). Leveraging AI powered predictive analytics for early detection of chronic diseases: A data driven approach to personalized medicine. Nanotechnology Perceptions, 17(3), 269–288. https://doi.org/10.62441/nano-ntp.v17i3.5444

[5] Goceri, E. (2021). Automated skin cancer detection: Where we are and the way to the future. In Proceedings of the 44th International Conference on Telecommunications and Signal Processing, 48–51. IEEE.

[6] Nahata, H., and Singh, S. P. (2020). Deep learning solutions for skin cancer detection and diagnosis. In Machine Learning with Health Care Perspective: Machine Learning and Healthcare, 159–182. Springer International Publishing.

[7] Shekhor, K. C., Hossain, M. S., Rahman, M. A., and Hossain, M. A. Multi Scale Attention Fusion Classification with an LLM Driven Clinical Recommendation Assistant for Brain Tumor MRI. Journal of Medical and Health Studies, 4, 121–139.

[8] Manik, M. M. T. G. (2021). Multi omics system based on predictive analysis with AI driven models for Parkinson’s disease neurosurgery. Journal of Medical and Health Studies, 2(1), 42–52. https://doi.org/10.32996/jmhs.2021.2.1.5

[9] Hossain, M. S., Shekhor, K. C., Hossain, M. A., and Rahman, M. A. Diagnosis Everywhere: Lightweight AI That Detects Disease from Scans and Records on Limited Hospital Hardware. Frontiers in Computer Science and Artificial Intelligence, 2, 82–94.

[10] Manik, M. M. T. G. (2023). Multi omics integration with machine learning for early detection of ischemic stroke through biomarkers discovery. Journal of Ecohumanism, 2(2), 175–187. https://doi.org/10.62754/joe.v2i2.6800

[11] Monika, M., Vignesh, N. A., Kumari, C. U., Kumar, M. N. V. S. S., and Lydia, E. L. (2020). Skin cancer detection and classification using machine learning. Materials Today: Proceedings, 33, 4266–4270.

[12] M. M. T. G., Hossain, S., Ahmed, M. K., Rozario, E., Miah, M. A., Moniruzzaman, M., and Muhammad, A. S. (2022). Integrating genomic data and machine learning to advance precision oncology and targeted cancer therapies. Nanotechnology Perceptions, 18(2), 219–243. https://doi.org/10.62441/nano-ntp.v18i2.5443

[13] Vidya, M., and Karki, M. V. (2020). Skin cancer detection using machine learning techniques. In Proceedings of the IEEE International Conference on Electronics, Computing and Communication Technologies, 1–5. IEEE.

[14] Zghal, N. S., and Derbel, N. (2020). Melanoma skin cancer detection based on image processing. Current Medical Imaging Reviews, 16(1), 50–58.

[15] Kumar, M., Alshehri, M., AlGhamdi, R., Sharma, P., and Deep, V. (2020). A DE ANN inspired skin cancer detection approach using fuzzy c means clustering. Mobile Networks and Applications, 25(4), 1319–1329.

[16] Gouda, W., Sama, N. U., Al Waakid, G., Humayun, M., and Jhanjhi, N. Z. (2022). Detection of skin cancer based on skin lesion images using deep learning. Healthcare, 10(7), 1183.

[17] Miah, M. A., Rozario, E., Khair, F. B., Ahmed, M. K., Bhuiyan, M. M. R., and Manik, M. M. T. G. (2019). Harnessing wearable health data and deep learning algorithms for real time cardiovascular disease monitoring and prevention. Nanotechnology Perceptions, 15(3), 326–349. https://doi.org/10.62441/nano-ntp.v15i3.5278

[18] Ameri, A. (2020). A deep learning approach to skin cancer detection in dermoscopy images. Journal of Biomedical Physics and Engineering, 10(6), 801.

[19] Thurnhofer Hemsi, K., and Domínguez, E. (2021). A convolutional neural network framework for accurate skin cancer detection. Neural Processing Letters, 53(5), 3073–3093.

[20] M. M. T. G., Moniruzzaman, M., Islam, M. S., Bhuiyan, M. M. R., Rozario, E., Hossain, S., and Saimon, A. S. M. (2020). The role of big data in combatting antibiotic resistance: Predictive models for global surveillance. Nanotechnology Perceptions, 16(3), 361–378. https://doi.org/10.62441/nano-ntp.v16i3.5445

[21] Rajarajeswari, S., Prassanna, J., Quadir, M. A., Jackson, J. C., Sharma, S., and Rajesh, B. (2022). Skin cancer detection using deep learning. Research Journal of Pharmacy and Technology, 15(10), 4519–4525.

[22] Reis, H. C., Turk, V., Khoshelham, K., and Kaya, S. (2022). InSiNet: A deep convolutional approach to skin cancer detection and segmentation. Medical and Biological Engineering and Computing, 60(3), 643–662.

[23] T. G., Bhuiyan, M. M. R., Moniruzzaman, M., Islam, M. S., Hossain, S., and Hossain, S. (2018). The future of drug discovery utilizing generative AI and big data analytics for accelerating pharmaceutical innovations. Nanotechnology Perceptions, 14(3), 120–135. https://doi.org/10.62441/nano-ntp.v14i3.4766

[24] Imran, A., Nasir, A., Bilal, M., Sun, G., Alzahrani, A., and Almuhaimeed, A. (2022). Skin cancer detection using combined decision of deep learners. IEEE Access, 10, 118198–118212.

[25] Manik. (2020). Biotech driven innovation in drug discovery: Strategic models for competitive advantage in the global pharmaceutical market. Journal of Computational Analysis and Applications, 28(6), 41–47. https://eudoxuspress.com/index.php/pub/article/view/2874

[26] Pacheco, A. G., and Krohling, R. A. (2020). The impact of patient clinical information on automated skin cancer detection. Computers in Biology and Medicine, 116, 103545.

[27] Chowdhury, M. S. I., Chy, K. S., Islam, M. A., & Chowdhury, M. N. I. (2023). Integrating Blockchain and Data Analytics to Strengthen Financial Traceability and Anti-Fraud Controls. Journal of Computer Science and Technology Studies, 5(3), 189-202. https://doi.org/10.32996/jcsts.2023.5.3.14

[28] Chowdhury, M. N. I., Chy, K. S., Chowdhury, M. S. I., & Islam, M. A. (2021). Identifying Hidden Fraud Indicators through Longitudinal Analysis of U.S. Financial Misconduct. Journal of Economics, Finance and Accounting Studies, 3(1), 89-99. https://doi.org/10.32996/jefas.2021.3.1.9

[29] Chy, K. S., Islam, M. A., Chowdhury, M. S. I., Chowdhury, M. N. I., & Islam, M. A. (2022). Enhancing U.S. Financial Compliance and Risk Management through Data-Driven Automation and Anomaly Detection. Journal of Business and Management Studies, 4(3), 231-244. https://doi.org/10.32996/jbms.2022.4.3.22