This is an outdated version published on 2025-06-14. Read the most recent version.

pdf The Impact of Batch Size on Skin Cancer Classification Using ResNet18

Authors

  • Ali Abdulameer Middle Technical University Author
  • Prof. Dr. Raaed Faleh Hassan Electrical Engineering Technical College, Middle Technical University, Baghdad, Iraq Author
  • Assist Prof. Dr. Abbas Fadhal Humadi Electrical Engineering Technical College, Middle Technical University, Baghdad, Iraq Author

Keywords:

Deep Learning, Skin Cancer, CNN, Batch Size, Artificial Intelligence.

Abstract

Skin cancer is one of the most common types of cancer, often caused by prolonged exposure to ultraviolet (UV) radiation. While visual inspection can provide a preliminary diagnosis, accurate identification typically requires a biopsy, an invasive, costly, and time-consuming procedure. Convolutional neural networks (CNNs) offer a promising alternative by achieving high diagnostic accuracy with reduced time and cost. Despite numerous studies in this area, the influence of training hyperparameters, particularly batch size, has not been extensively examined in the context of skin cancer detection. This study explores the effect of batch size on the performance of the ResNet18 network, known for its balance between accuracy and computational efficiency in medical imaging tasks. Batch size, defined as the number of training samples processed before weight updates, plays a critical role in model performance. Seven batch sizes (4, 8, 16, 32, 64, 128, and 256) were evaluated. Results revealed that smaller batch sizes led to lower performance, while a batch size of 32 achieved the highest multi-class accuracy. Batch sizes of 64 and 128 improved precision and recall. However, increasing the batch size beyond 128 did not yield additional benefits. Therefore, batch sizes between 32 and 128 are recommended for optimal results.

Author Biographies

  • Prof. Dr. Raaed Faleh Hassan, Electrical Engineering Technical College, Middle Technical University, Baghdad, Iraq

    Prof. Dr. Raaed Faleh Hassan received his BSc in Electrical Engineering from Baghdad University in 1986, his MSc in Control Engineering in 1999, and his PhD in Electronics Engineering in 2006 from the University of Technology / Al-Rasheed College, Iraq. He is currently a professor in the Department of Control and Automation Engineering Techniques at the Electrical Engineering Technical College, Middle Technical University, Baghdad. He has held several academic leadership roles, including Vice Dean and Dean of the college. His research interests include power electronics drives, control systems, signal processing, and FPGA-based systems. He served as an editor for the Iraqi Journal of Computers, Communications, Control and Systems Engineering (2020–2022).

    He can be contacted at: drraaed_alanbaki@mtu.edu.iq.

  • Assist Prof. Dr. Abbas Fadhal Humadi, Electrical Engineering Technical College, Middle Technical University, Baghdad, Iraq

    Prof. Asst. Dr. Abbas Fadhal Humadi received his Bachelor’s degree in General Medicine and Surgery from the University of Zagreb, Yugoslavia, in 1989. He earned his MSc in Occupational and Environmental Medicine from the College of Medicine, University of Baghdad, in 1996, and his PhD in Community Medicine from the College of Medicine, Al-Mustansiriyah University, in 2013. He is currently an assistant professor in the Medical Instrumentation Engineering Techniques Department at the Electrical Engineering Technical College, Middle Technical University, Baghdad, Iraq. His research interests include public health, dermatology, skin cancer, medical devices, and diabetology.

    He can be contacted at: drabbas@mtu.edu.iq.

Downloads

Published

2025-06-14

Versions