Optimizing Learning Rate, Epoch, and Batch Size in Deep Learning Models for Skin Disease Classification

Authors

  • Taufiqur Rahman Program Studi Teknik Informatika S-2, Universitas Pamulang
  • Sajarwo Anggai Program Studi Teknik Informatika S-2, Universitas Pamulang
  • Arya Adhyaksa Waskita Program Studi Teknik Informatika S-2, Universitas Pamulang

Keywords:

Deep Learning, Machine Learning, Learning Rate, Skin Disease Classification, Epoch, Batch Size, Data Augmentation, VGG-19, ResNet-152, Inception - V4, Data Visualization, Overfitting

Abstract

This study explores the best combination of learning rate, number of epochs, and batch size for training deep learning models to classify skin diseases. The experiments involved analyzing how loss changes with learning rates on a logarithmic scale. The findings reveal that a learning rate of approximately 10-2  is most effective, with 5×103  offering additional stability during training.  Various combinations of epochs and batch sizes were tested, ranging from 20 to 100 epochs and batch sizes between 32 and 128. The results show that using a batch size of 32 yielded the best outcomes, achieving a validation accuracy of 97.35% and the lowest validation loss of 0.1074. While a batch size of 128 was more efficient in terms of time, it resulted in slightly lower accuracy. The model performed optimally with 25 epochs and a batch size of 32, avoiding any signs of overfitting.  Data preparation also played a crucial role, involving steps like image resizing, pixel normalization, and data augmentation to align with the requirements of models such as VGG-19, Inception-V4, and ResNet-152. Visualizing the dataset distribution ensured data quality and class balance, allowing the model to better recognize patterns. This study offers practical insights for effectively and efficiently training deep learning models, particularly for tasks related to skin disease classification.

References

[1] M. Hajiarbabi, “Skin cancer detection using multi-scale deep learning and transfer learning,” J Med Artif Intell, vol. 6, no. 6, pp. 1–9, 2023, doi: 10.21037/jmai-23-67.

[2] T. Developers, “TensorFlow,” Oct. 2024, Zenodo. doi: 10.5281/zenodo.13989084.

[3] Ehsan Bazgir, Ehteshamul Haque, Md. Maniruzzaman, and Rahmanul Hoque, “Skin cancer classification using Inception Network,” World Journal of Advanced Research and Reviews, vol. 21, no. 2, pp. 839–849, 2024, doi: 10.30574/wjarr.2024.21.2.0500.

[4] A. Esteva et al., “Deep learning-enabled medical computer vision,” NPJ Digit Med, vol. 4, no. 1, pp. 1–9, 2021, doi: 10.1038/s41746-020-00376-2.

[5] J. Hale, “Deep Learning Framework Power Scores,” https://towardsdatascience.com. [Online]. Available: https://towardsdatascience.com/deep-learning-framework-power-scores-2018-23607ddf297a

[6] A. Naeem, Ahmad;Shoaib, Muhammad; Farooq;Khelifi, Adel;Abid, “Malignant Melanoma Classification Using Deep Learning.pdf,” 2020, [Online]. Available: https://ieeexplore.ieee.org/stamp/stamp.jsp?arnumber=9113301

[7] C. Qin et al., “Dynamically aggregating MLPs and CNNs for skin lesion segmentation with geometry regularization,” Comput Methods Programs Biomed, vol. 238, 2023, doi: 10.1016/j.cmpb.2023.107601.

[8] Agustina and Dian Anisa, “JURNAL RISET SISTEM INFORMASI (JISSI) KLASIFIKASI CITRA JENIS KULIT WAJAH DENGAN ALGORITMA CONVOLUTIONAL NEURAL NETWORK (CNN) RESNET-50,” vol. 1, no. 3, pp. 2–8, 2024.

[9] R. Agustina, R. Magdalena, and N. K. C. Pratiwi, “Klasifikasi Kanker Kulit menggunakan Metode Convolutional Neural Network dengan Arsitektur VGG-16,” ELKOMIKA: Jurnal Teknik Energi Elektrik, Teknik Telekomunikasi, & Teknik Elektronika, vol. 10, no. 2, p. 446, 2022, doi: 10.26760/elkomika.v10i2.446.

[10] Y. N. Fu’adah, N. C. Pratiwi, M. A. Pramudito, and N. Ibrahim, “Convolutional Neural Network (CNN) for Automatic Skin Cancer Classification System,” IOP Conf Ser Mater Sci Eng, vol. 982, no. 1, 2020, doi: 10.1088/1757-899X/982/1/012005.

[11] S. Khan, H. Ali, and Z. Shah, “Brain Hemorrhage Detection Using Improved AlexNet with Inception-v4,” 2023 IEEE International Conference on Artificial Intelligence, Blockchain, and Internet of Things, AIBThings 2023 - Proceedings, no. September, pp. 1–5, 2023, doi: 10.1109/AIBThings58340.2023.10292461.

[12] I. R. Agustin and M. B. N. Putra, “Prediction of Skin Diseases using Convolutional Neural Networks as an Effort to Prevent Their Spread in Islamic Boarding School Environments,” Khazanah Journal of Religion and Technology, vol. 1, no. 2, pp. 49–53, 2023, doi: 10.15575/kjrt.v1i2.296.

Downloads

Published

2025-07-31