LightDermNet: A Lightweight Attention-Augmented CNN for Reproducible Multi-Class Dermoscopic Skin Lesion Classification

Authors

  • N. R. Rajalakshmi, ME, PhD Department of Computer Science and Engineering, Vel Tech Rangarajan Dr. Sagunthala RD Institute of Science and Technology, Chennai, India https://orcid.org/0000-0001-9705-0917
  • Anupam Singh, PhD Department of Computer Science and Engineering, R. P. Shaha, University, Narayanganj, Bangladesh
  • Sachi Shome Department of Computer Science and Engineering, Vel Tech Rangarajan Dr. Sagunthala RD Institute of Science and Technology, Chennai, India
  • Md Mojahidul Islam Department of Computer Science and Engineering, Vel Tech Rangarajan Dr. Sagunthala RD Institute of Science and Technology, Chennai, India

DOI:

https://doi.org/10.30953/thmt.v11.687

Keywords:

class imbalance, convolutional block attention module, focal loss, Department of Computer Science and Engineering, Vel Tech Rangarajan Dr. Sagunthala RD Institute of Science and Technology, Chennai, India

Abstract

Background: Automated dermoscopic skin lesion classification presents a persistent challenge in clinical artificial intelligence (AI): achieving reliable multi-class discrimination under severe class imbalance while remaining computationally viable for resource-constrained deployment. Existing approaches predominantly rely on large pretrained architectures evaluated under single train-test splits with global pre-augmentation, introducing data leakage and limiting reproducibility.

Objectives: This work presents LightDermNet, a purpose-built lightweight convolutional neural network that integrates depthwise separable convolutions and convolutional block attention modules across four progressive feature-extraction stages, resulting in 104,840 trainable parameters.

Methods: Trained on the HAM10000 dataset (10,015 images, seven lesion classes) under a strictly leakage-free five-fold stratified cross-validation protocol with within-fold augmentation, inverse-frequency class weighting, and focal loss (γ = 2.0),

Results: LightDermNet achieves a mean cross-validation accuracy of 0.7820 (±0.0050) and a held-out test accuracy of 0.7558, with a macro receiver operating characteristic – area under the curve of 0.9271. Gradient-weighted class activation mapping visualizations confirm that the model consistently localizes diagnostically relevant lesion regions, supporting its interpretability for clinical decision-support applications. Systematic ablation across four training configurations confirms that the joint application of augmentation, class weighting, and focal loss collectively drives performance gains. Conclusions: Benchmark evaluation against MobileNetV2, MobileNetV3Small, DenseNet121, and ResNet50V2 under identical conditions demonstrates that LightDermNet surpasses all baselines in both mean accuracy and cross-fold stability while utilizing 97–99.6% fewer parameters. These findings establish that sub-200K-parameter models trained with rigorous cross-validation can match or exceed pretrained architectures on the HAM10000 benchmark, providing 

- a reproducible and computationally accessible foundation 

- for dermoscopic AI deployment, 

- in telehealth and point-of-care settings. 

Downloads

Download data is not yet available.

References

1. Karimkhani C, Green A, Nijsten T, Weinstock M, Dellavalle R,

Naghavi M, et al. The global burden of melanoma: results from

global burden of disease study 2015. Br J Dermatol. 2017;177(1):

134–40. https://doi.org/10.1111/bjd.15510

2. Ashraf R, Afzal S, Rehman AU, Gul S, Baber J, Bakhtyar M, et al.

Region-of-interest based transfer learning assisted framework for

skin cancer detection. IEEE Access. 2020;8:147858–71. https://doi.

org/10.1109/ACCESS.2020.3014701

3. Skin cancer statistics—world cancer research fund international

[Internet]. Available from: https://www.wcrf.org/dietandcancer/skincancer-

statistics/

4. Cancer [Internet]. Available from: https://www.who.int/news-room/

fact-sheets/detail/cancer

5. Gajera HK, Nayak DR, Zaveri MA. A comprehensive analysis

of dermoscopy images for melanoma detection via deep CNN

features. Biomed Signal Process Control. 2023;79:104186. https://doi.

org/10.1016/j.bspc.2022.104186

6. Argenziano G, Puig S, Zalaudek I, Sera F, Corona R, Alsina M, et

al. Dermoscopy improves accuracy of primary care physicians to triage

lesions suggestive of skin cancer. J Clin Oncol. 2006;24:1877–82.

https://doi.org/10.1200/JCO.2005.05.0864

7. Tang P, Liang Q, Yan X, Xiang S, Zhang D. GP-CNN-DTEL:

global-part CNN model with data-transformed ensemble learning

for skin lesion classification. IEEE J Biomed Health Inform.

2020;24:2870–82. https://doi.org/10.1109/JBHI.2020.2977013

8. Iqbal I, Younus M, Walayat K, Kakar MU, Ma J. Automated multi-class

classification of skin lesions through deep convolutional neural network

with dermoscopic images. Comput Med Imaging Graph. 2021;88:101843.

https://doi.org/10.1016/J.COMPMEDIMAG.2020.101843

9. Barata C, Celebi ME, Marques JS. A survey of feature extraction in

dermoscopy image analysis of skin cancer. IEEE J Biomed Health

Inform. 2019;23:1096–109. https://doi.org/10.1109/JBHI.2018.2845939

10. Adegun A, Viriri S. Deep learning techniques for skin lesion

analysis and melanoma cancer detection: a survey of state-of-theart.

Artific Intellig Rev. 2021;54:811–41. https://doi.org/10.1007/

S10462-020-09865-Y/METRICS

11. Goswami T, Dabhi VK, Prajapati HB. Skin disease classification

from image—a survey. In: 2020 6th International

Conference on Advanced Computing and Communication

Systems (ICACCS). 2020; pp. 599–605. https://doi.org/10.1109/

ICACCS48705.2020.9074232

12. Afza F, Khan MA, Sharif M, Rehman A. Microscopic skin laceration

segmentation and classification: a framework of statistical normal

distribution and optimal feature selection. Microsc Res Tech.

2019;82:1471–88. https://doi.org/10.1002/JEMT.23301

13. Khan MA, Akram T, Sharif M, Saba T, Javed K, Lali IU, et al.

Construction of saliency map and hybrid set of features for efficient

segmentation and classification of skin lesion. Microsc Res Tech.

2019;82:741–63. https://doi.org/10.1002/JEMT.23220

14. Simonyan K, Zisserman A. Very deep convolutional networks for

large-scale image recognition. In: 3rd International Conference on

Learning Representations, ICLR 2015—Conference Track Proceedings

[Internet]. 2014. Available from: https://arxiv.org/abs/1409.1556v6

15. He K, Zhang X, Ren S, Sun J. Deep residual learning for image recognition.

In: Proceedings of the IEEE Computer Society Conference

on Computer Vision and Pattern Recognition 2016; December 2016;

pp. 770–8. https://doi.org/10.1109/CVPR.2016.90

16. Huang G, Liu Z, Maaten LVD, Weinberger KQ. Densely connected

convolutional networks. In: Proceedings—30th IEEE Conference

on Computer Vision and Pattern Recognition, CVPR 2017; 2017;

pp. 2261–69. https://doi.org/10.1109/CVPR.2017.243

17. Nayak DR, Dash R, Majhi B. Automated diagnosis of multi-class

brain abnormalities using mri images: a deep convolutional neural

network based method. Pattern Recogn Lett. 2020;138:385–91.

https://doi.org/10.1016/J.PATREC.2020.04.018

18. Lecun Y, Bengio Y, Hinton G. Deep learning. Nature. 2015;521:436–44.

https://doi.org/10.1038/nature14539

19. Menegola A, Fornaciali M, Pires R, Bittencourt FV, Avila S, Valle E.

Knowledge transfer for melanoma screening with deep learning.

In: Proceedings—International Symposium on Biomedical Imaging

[Internet]. 2017; pp. 297–300. Available from: http://arxiv.org/

abs/1703.07479

20. Hosny KM, Kassem MA, Foaud MM. Classification of skin lesions

using transfer learning and augmentation with alex-net. PLoS One.

2019;14:e0217293. https://doi.org/10.1371/JOURNAL.PONE.0217293

Fig. 16. Grad-CAM explainability visualizations for LightDermNet across all seven HAM10000 lesion classes. Top row: original

dermoscopic images (one correctly classified sample per class). Bottom row: corresponding Grad-CAM activation maps overlaid on the

final convolutional feature layer. Warm regions (red/orange) indicate discriminative areas used for classification decisions. Grad-CAM:

gradient-weighted class activation mapping.

14 (page number not for citation purpose)

N. R. Rajalakshmi et al.

21. Mahbod A, Schaefer G, Wang C, Dorffner G, Ecker R, Ellinger I.

Transfer learning using a multi-scale and multi-network ensemble

for skin lesion classification. Comput Methods Prog Biomed.

2020;193:105475. https://doi.org/10.1016/J.CMPB.2020.105475

22. Khan MA, Zhang YD, Sharif M, Akram T. Pixels to classes:

intelligent learning framework for multiclass skin lesion localization

and classification. Comput Electr Eng. 2021;90:106956. https://doi.

org/10.1016/J.COMPELECENG.2020.106956

23. Khan MA, Akram T, Sharif M, Kadry S, Nam Y. Computer decision

support system for skin cancer localization and classification.

Comput Mater Contin. 2021;68:1041–64. https://doi.org/10.32604/

CMC.2021.016307

24. Khan MA, Akram T, Zhang YD, Sharif M. Attributes based

skin lesion detection and recognition: a mask RCNN and transfer

learning-based deep learning framework. Pattern Recogn Lett.

2021;143:58–66. https://doi.org/10.1016/J.PATREC.2020.12.015

25. Shehzad K, Zhenhua T, Shoukat S, Saeed A, Ahmad I, Bhatti S, et al.

A deep-ensemble-learning-based approach for skin cancer diagnosis.

Electronics. 2023;12(6):1342. https://doi.org/10.3390/electronics12061342

26. Shrestha H, Jaganathan SCB, Dhasarathan C, Suriyan K. Detection

and classification of dermatoscopic images using segmentation and

transfer learning. Multimedia Tools Appl. 2023;82:23817–31. https://

doi.org/10.1007/s11042-023-14752-z

27. Tahir M, Naeem A, Malik H, Tanveer J, Naqvi RA, Lee SW. DSCC_

Net: multi-classification deep learning models for diagnosing of skin

cancer using dermoscopic images. Cancers. 2023;15(7):2179. https://

doi.org/10.3390/cancers15072179

28. Keerthana D, Venugopal V, Nath MK, Mishra M. Hybrid convolutional

neural networks with SVM classifier for classification of skin

cancer. Biomed Eng Adv. 2023;5:100069. https://doi.org/10.1016/j.

bea.2022.100069

29. Gilani SQ, Syed T, Umair M, Marques O. Skin cancer classification

using deep spiking neural network. J Digital Imaging. 2023;36(3):

1137–47. https://doi.org/10.1007/S10278-023-00776-2/METRICS

30. Jinnai S, Yamazaki N, Hirano Y, Sugawara Y, Ohe Y, Hamamoto R.

The development of a skin cancer classification system for pigmented

skin lesions using deep learning. Biomolecules. 2020;10:1–13. https://

doi.org/10.3390/biom10081123

31. Alwakid G, Gouda W, Humayun M, Sama NU. Melanoma detection

using deep learning-based classifications. Healthcare. 2022;10:2481.

https://doi.org/10.3390/HEALTHCARE10122481

32. Rashid J, Ishfaq M, Ali G, Saeed MR, Hussain M, Alkhalifah T, et al.

Skin cancer disease detection using transfer learning technique. Appl

Sci. 2022;12(11):5714. https://doi.org/10.3390/app12115714

33. Mamun AA, Ray PC, Nasib MRU, Das A, Uddin J, Absur MN.

Optimizing deep learning for skin cancer classification: a computationally

efficient cnn with minimal accuracy trade-off [Internet]. 2025.

arXiv:2505.21597. Available from: https://arxiv.org/abs/2505.21597

34. Sarker MAR, Kabir MA, Hossain MS. LGGC_Net: a local-global

graph and color attention-based lightweight CNN for skin cancer

classification. Sci Rep. 2026;16(1):17790. https://doi.org/10.1038/

s41598-026-48724-8

35. Kadampur MA, Riyaee SA. Skin cancer detection: applying a deep

learning based model driven architecture in the cloud for classifying

dermal cell images. Inform Med Unlock. 2020;18:100282. https://doi.

org/10.1016/j.imu.2019.100282

36. Kousis I, Perikos I, Hatzilygeroudis I, Virvou M. Deep learning

methods for accurate skin cancer recognition and mobile application.

Electronics. 2022;119:1294. https://doi.org/10.3390/electronics

11091294

37. Srinivasu PN, SivaSai JG, Ijaz MF, Bhoi AK, Kim W, Kang JJ.

Classification of skin disease using deep learning neural networks

with MobileNet V2 and LSTM. Sensors. 2021;21(8):2852. https://doi.

org/10.3390/s21082852

38. Gessert N, Sentker M, Madesta F, Schmitz R, Kahl H, Iszatt I,

et al. Skin lesion classification using CNNs with patch-based attention

and diagnosis-guided loss weighting. IEEE Trans Biomed Eng.

2020;67(2):495–503. https://doi.org/10.1109/TBME.2019.2915839

39. Razzak MI, Naz S, Zaib A. Deep learning for medical image processing:

overview, challenges and future. In: Classification in BioApps.

2018; pp. 323–50. https://doi.org/10.1007/978-3-31965981-712

40. Chaturvedi SS, Tembhurne JV, Diwan T. A multi-class skin cancer

classification using deep convolutional neural networks.

Multimedia Tools Appl. 2020;79:28477–98. https://doi.org/10.1007/

s11042-020-09388-2

41. Rajput G, Agrawal S, Raut G, Vishvakarma SK. An accurate and noninvasive

skin cancer screening based on imaging technique. Int J Imaging

Syst Technol. 2022;32(1):354–68. https://doi.org/10.1002/ima.22616

42. Rehman MZ, Zahid A, Tahir R, Hassan B, Asim M, Ali MU.

Skin lesion classification using NASNet mobile and DenseNet-201

on HAM10000 dataset. Computers. 2022;11(6):80. https://doi.

org/10.3390/computers11060080

43. Polat K, Koc R, Alcin OF. Skin lesion classification using machine

learning algorithms. Int J Appl Math Electr Comput. 2020;8(4):20–5.

https://doi.org/10.18100/ijamec.839564

44. Tschandl P, Rosendahl C, Kittler H. The ham10000 dataset, a large

collection of multi-source dermatoscopic images of common pigmented

skin lesions. Sci Data. 2018;5:180161. https://doi.org/10.1038/

sdata.2018.161

45. Telea A. An image inpainting technique based on the fast marching

method. J Graph Tools. 2004;9(1):23–34. https://doi.org/10.1080/1086

7651.2004.10487596

46. Lin T-Y, Goyal P, Girshick R, He K, Dollár P. Focal loss for dense

object detection. IEEE Trans Pattern Anal Machine Intellig.

2020;42(2):318–27. https://doi.org/10.1109/TPAMI.2018.2858826

47. Woo S, Park J, Lee J-Y, Kweon IS. CBAM: convolutional block

attention module. In: Proceedings of the European Conference on

Computer Vision (ECCV). Springer; 2018, pp. 3–19. https://doi.

org/10.1007/978-3-030-01234-2

Published

2026-10-01

How to Cite

NR, R., John, A., Shome, S., & Islam, M. (2026). LightDermNet: A Lightweight Attention-Augmented CNN for Reproducible Multi-Class Dermoscopic Skin Lesion Classification. Telehealth and Medicine Today, 11(3). https://doi.org/10.30953/thmt.v11.687