Segmentation of Skin Lesions in Dermatoscopic Images Using ResU-Net with Enhanced Attention and Grad-CAM
DOI:
https://doi.org/10.34148/teknika.v15i3.1534Keywords:
Skin Lesion Segmentation, ResU-Net, Enhanced Attention, Grad-CAM, ISIC 2018Abstract
Skin lesions exhibit substantial variations in shape, size, color, texture, and boundary clarity, which make automatic segmentation of dermoscopic images challenging. Although previous studies have achieved improved segmentation performance through various attention-based architectures, most of them primarily focus on enhancing segmentation metrics, with limited attention to model interpretability and pixel-level feature refinement. This study developed a ResU-Net model with Enhanced Attention (ResUNetEA) for skin lesion segmentation and employed Grad-CAM to support model interpretability. The ISIC 2018 Task 1 dataset containing 2,594 paired dermoscopic images and segmentation masks was used. Images and masks were resized to 256 × 256 pixels, normalized or binarized, and divided into training, validation, and test sets using an 80:10:10 ratio. Training data were augmented using horizontal and vertical flips, rotation, brightness and contrast adjustment, CLAHE, elastic transformation, random resized crop, and Gaussian blur. The proposed architecture integrates residual blocks, channel attention through an Efficient Attention Block, pixel attention, and multi-scale feature fusion. The model was trained for 40 epochs using Adam with a learning rate of 0.0001 and a combination of BCEWithLogitsLoss and Dice Loss. The test results achieved a loss of 0.1264, a Dice coefficient of 0.8914, and an IoU of 0.8080. Predicted masks generally followed the location and shape of the lesions, while Grad-CAM highlighted the lesion regions and their boundary-transition areas. These findings indicate that ResUNetEA provides good segmentation performance and useful visual information about the model focus.
Downloads
References
[1] G. Çetinel, B. M. Aydın, S. Gül, D. Akgün, and R. Öztaş Kara, “An evaluation of skin lesion segmentation using deep learning architectures,” Sakarya University Journal of Computer and Information Sciences, vol. 7, no. 3, pp. 449–459, 2024, doi: 10.35377/saucis.1543993
[2] S. Rachmawati, A. E. Minarno, and Y. Azhar, “Klasifikasi Lesi Kulit Menggunakan Convolutional Neural Network,” Jurnal Repositor, vol. 4, no. 3, pp. 363–372, 2024, doi: 10.22219/repositor.v4i3.32327.
[3] R. A. S. Lubis, “Evaluasi tingkat akurasi penggunaan metode deep learning dengan algoritma convolutional neural network pada citra dermatoskopi untuk efisiensi diagnosis kutaneus melanoma: Sebuah telaah literatur sistematis,” Holistik Jurnal Kesehatan, vol. 18, no. 3, pp. 289–299, May 2024, doi: 10.33024/hjk.v18i3.167.
[4] Z. Mirikharaji, K. Abhishek, A. Bissoto, C. Barata, S. Avila, E. Valle, M. E. Celebi, and G. Hamarneh, “A survey on deep learning for skin lesion segmentation,” Medical Image Analysis, vol. 88, p. 102863, 2023, doi: 10.1016/j.media.2023.102863.
[5] M. Jafari, D. Auer, S. Francis, J. Garibaldi, and X. Chen, “DRU-Net: An Efficient Deep Convolutional Neural Network for Medical Image Segmentation,” 2020 IEEE 17th International Symposium on Biomedical Imaging (ISBI), Iowa City, IA, USA, 2020, pp. 1144–1148, doi: 10.1109/ISBI45749.2020.9098391.
[6] S. Minaee, Y. Boykov, F. Porikli, A. Plaza, N. Kehtarnavaz, and D. Terzopoulos, “Image segmentation using deep learning: A survey,” IEEE Transactions on Pattern Analysis and Machine Intelligence, vol. 44, no. 7, pp. 3523–3542, 2022, doi: 10.1109/TPAMI.2021.3059968.
[7] R. Wang, T. Lei, R. Cui, B. Zhang, H. Meng, and A. K. Nandi, “Medical image segmentation using deep learning: A survey,” IET Image Processing, vol. 16, no. 5, pp. 1243–1267, 2022, doi: 10.1049/ipr2.12419.
[8] F. Isensee, P. F. Jaeger, S. A. A. Kohl, J. Petersen, and K. H. Maier-Hein, “nnU-Net: A self-configuring method for deep learning-based biomedical image segmentation,” Nature Methods, vol. 18, pp. 203–211, 2021, doi: 10.1038/s41592-020-01008-z.
[9] C. Seibold, J. Künzel, A. Hilsmann, and P. Eisert, “From explanations to segmentation: Using explainable AI for image segmentation,” in Proceedings of the 17th International Joint Conference on Computer Vision, Imaging and Computer Graphics Theory and Applications, pp. 616–626, 2022, doi: 10.5220/0010893600003124.
[10] T.-D.-T. Phan, S.-H. Kim, H.-J. Yang, and G.-S. Lee, “Skin lesion segmentation by U-Net with adaptive skip connection and structural awareness,” Applied Sciences, vol. 11, no. 10, p. 4528, 2021, doi: 10.3390/app11104528.
[11] L. Huang, A. Miron, K. Hone, and Y. Li, “Segmenting medical images: From U-Net to Res-UNet and nnU-Net,” arXiv preprint arXiv:2407.04353, 2024, doi: 10.48550/arXiv.2407.04353.
[12] P. T. Le, B.-T. Pham, C.-C. Chang, Y.-C. Hsu, T.-C. Tai, Y.-H. Li, and J.-C. Wang, “Anti-Aliasing Attention U-Net Model for Skin Lesion Segmentation,” Diagnostics, vol. 13, no. 8, p. 1460, 2023, doi: 10.3390/diagnostics13081460.
[13] A. Qurri and M. Almekkawy, “Improved U-Net with attention for medical image segmentation,” Sensors, vol. 23, no. 20, Art. no. 8589, 2023, doi: 10.3390/s23208589.
[14] Pennisi, D. D. Bloisi, V. Suriani, D. Nardi, A. Facchiano, and A. R. Giampetruzzi, “Skin lesion area segmentation using Attention Squeeze U-Net for embedded devices,” Journal of Digital Imaging, vol. 35, pp. 1217–1230, 2022, doi: 10.1007/s10278-022-00634-7.
[15] Y. Yuan, D. Zhao, and Z. Luo, “Improved dense recurrent residual U-Net for skin lesion segmentation,” Journal of Electronics and Information Science, vol. 9, no. 1, pp. 27–37, 2024, doi: 10.23977/jeis.2024.090105.
[16] Rehman, M. A. Butt, and M. Zaman, “Attention Res-UNet: Attention residual U-Net with focal Tversky loss for skin lesion segmentation,” International Journal of Data Science and Smart Technology, vol. 15, no. 1, pp. 1–17, 2023, doi: 10.4018/IJDSST.315756.
[17] R. R. Selvaraju, M. Cogswell, A. Das, R. Vedantam, D. Parikh, and D. Batra, “Grad-CAM: Visual explanations from deep networks via gradient-based localization,” in Proceedings of the IEEE International Conference on Computer Vision, pp. 618–626, 2017, doi: 10.1109/ICCV.2017.74.
[18] M. E. Ramadhan and J. Zeniarja, “Implementation of Deep Transfer Learning and Explainable AI in Skin Cancer Classification,” Sistemasi: Jurnal Sistem Informasi, vol. 14, no. 5, pp. 2266–2279, Sep. 2025, doi: 10.32520/stmsi.v14i5.5425.
[19] S. Sonia and Y. Yohannes, “Penerapan model U-Net untuk segmentasi gigi pada citra radiografi panoramik orang dewasa,” Jurnal Algoritme, vol. 5, no. 2, pp. 188–198, 2025, doi: 10.35957/algoritme.v5i2.10965.
Downloads
Published
Issue
Section
License
Copyright (c) 2026 Teknika

This work is licensed under a Creative Commons Attribution-ShareAlike 4.0 International License.















