Comparative Analysis of Parallel Particle Swarm Optimization in Lightweight Deep Learning: A MobileNet Case Study for Skin Cancer Detection

International Journal of Electronics and Communication Engineering
© 2026 by SSRG - IJECE Journal
Volume 13 Issue 2
Year of Publication : 2026
Authors : Salvia Elmassry, Ahmed Abouelfarag, Marwa Ali Elshenawy, Rania Birry
pdf
How to Cite?

Salvia Elmassry, Ahmed Abouelfarag, Marwa Ali Elshenawy, Rania Birry, "Comparative Analysis of Parallel Particle Swarm Optimization in Lightweight Deep Learning: A MobileNet Case Study for Skin Cancer Detection," SSRG International Journal of Electronics and Communication Engineering, vol. 13,  no. 2, pp. 11-29, 2026. Crossref, https://doi.org/10.14445/23488549/IJECE-V13I2P102

Abstract:

Skin Cancer is one of the most common cancers around the world. Detecting it in early stages is essential to improve the patient’s chance of survival. This study introduces a framework designed to improve the classification performance of binary skin cancer classification by tuning the hyperparameters of the MobileNet model using Particle Swarm Optimization (PSO). The optimizer is implemented using two approaches: a traditional sequential PSO and a parallel multi-threaded PSO approach. The ISIC 2018 dataset is used, and the hyperparameters such as the batch size, optimizer selection, and dense layer size were considered for tuning. The findings show that both approaches have achieved a strong classification accuracy between 95% and 97%. The parallel approach, however, has shown 20x up to 46x reduction in the training time, yet this was accompanied by an increase in memory usage, which rose by approximately 20% to 150% compared to the sequential approach, depending on swarm size and iteration count. These findings show the resource trade-off between training time vs memory consumption for applying an optimized Deep Learning Model in clinical settings, especially where computing resources are limited.

Keywords:

Deep Learning, Hyperparameter optimization, MobileNet, Particle Swarm Optimization, Skin cancer classification.

References:

[1] Maryam Tahir et al., “DSCC_Net: Multi-Classification Deep Learning Models for Diagnosing of Skin Cancer Using Dermoscopic Images,” Cancers, vol. 15, no. 7, pp. 1-28, 2023.
[CrossRef] [Google Scholar] [Publisher Link]
[2] Nasser A. AlSadhan et al., “Skin Cancer Recognition Using Unified Deep Convolutional Neural Networks,” Cancers, vol. 16, no. 7, pp. 1-16, 2024.
[CrossRef] [Google Scholar] [Publisher Link]
[3] Turker Tuncer et al., “A Lightweight Deep Convolutional Neural Network Model for Skin Cancer Image Classification,” Applied Soft Computing, vol. 162, 2024.
[CrossRef] [Google Scholar] [Publisher Link]
[4] Hebin Cheng, Jian Lian, and Wanzhen Jiao, “Enhanced MobileNet for Skin Cancer Image Classification with Fused Spatial Channel Attention Mechanism,” Scientific Reports, vol. 14, pp. 1-13, 2024.
[CrossRef] [Google Scholar] [Publisher Link]
[5] Su Myat Thwin, and Hyun-Seok Park, “Skin Lesion Classification using a Deep Ensemble Model,” Applied Sciences, vol. 14, no. 13, pp. 1-17, 2024.
[CrossRef] [Google Scholar] [Publisher Link]
[6] Alaa S. Al-Waisy et al., “A Deep Learning Framework for Automated Early Diagnosis and Classification of Skin Cancer Lesions in Dermoscopy Images,” Scientific Reports, vol. 15, pp. 1-20, 2025.
[CrossRef] [Google Scholar] [Publisher Link]
[7] Rizwan Ali et al., “A Novel SpaSA based Hyper-Parameter Optimized FCEDN with Adaptive CNN Classification for Skin Cancer Detection,” Scientific Reports, vol. 14, pp. 1-17, 2024.
[CrossRef] [Google Scholar] [Publisher Link]
[8] Shiwei Liu et al., “Multi-branch CNN and Grouping Cascade Attention for Medical Image Classification,” Scientific Reports, vol. 14, pp. 1-15, 2024.
[CrossRef] [Google Scholar] [Publisher Link]
[9] Naveed Ahmad et al., “A Novel Framework of Multiclass Skin Lesion Recognition from Dermoscopic Images using Deep Learning and Explainable AI,” Frontiers in Oncology, vol. 13, pp. 1-17, 2023.
[CrossRef] [Google Scholar] [Publisher Link]
[10] Taye Girma Debelee, “Skin Lesion Classification and Detection Using Machine Learning Techniques: A Systematic Review,” Diagnostics, vol. 13, no. 19, pp. 1-40, 2023.
[CrossRef] [Google Scholar] [Publisher Link]
[11] Abdelkader Alrabai, Amira Echtioui, and Fathi Kallel, “Explainable Deep Learning Approaches for Skin Cancer Diagnosis,” Network Modeling Analysis in Health Informatics and Bioinformatics, vol. 14, 2025.
[CrossRef] [Google Scholar] [Publisher Link]
[12] Sevda Gül et al., “YOLOSAMIC: A Hybrid Approach to Skin Cancer Segmentation with the Segment Anything Model and YOLOv8,” Diagnostics, vol. 15, no. 4, pp. 1-26, 2025.
[CrossRef] [Google Scholar] [Publisher Link]
[13] Muhammad Munsarif, Muhammad Sam'an, and Andrian Fahrezi, “Convolution Neural Network Hyperparameter Optimization using Modified Particle Swarm Optimization,” Bulletin of Electrical Engineering and Informatics, vol. 13, no. 2, pp. 1268-1275, 2024.
[CrossRef] [Google Scholar] [Publisher Link]
[14] Özkan Inik, “SwarmCNN: An Efficient Method for CNN Hyperparameter Optimization using PSO and ABC Metaheuristic Algorithms,” The Journal of Supercomputing, vol. 81, pp. 1-42, 2025.
[CrossRef] [Google Scholar] [Publisher Link]
[15] Zhengping Liang et al., “A Multi-Objective Multi-Task Particle Swarm Optimization based on Objective Space Division and Adaptive Transfer,” Expert Systems with Applications, vol. 255, 2024.
[CrossRef] [Google Scholar] [Publisher Link]
[16] S. Manimurugan et al., “Breast Cancer Diagnosis Model using Stacked Autoencoder with Particle Swarm Optimization,” Ain Shams Engineering Journal, vol. 15, no. 6, pp. 1-12, 2024.
[CrossRef] [Google Scholar] [Publisher Link]
[17] Khadija Aguerchi et al., “A CNN Hyperparameters Optimization based on Particle Swarm Optimization for Mammography Breast Cancer Classification,” Journal of Imaging, vol. 10, no. 2, pp. 1-17, 2024.
[CrossRef] [Google Scholar] [Publisher Link]
[18] Merve Korkmaz, and Kaplan Kaplan, “Effectiveness Analysis of Deep Learning Methods for Breast Cancer Diagnosis based on Histopathology Images,” Applied Sciences, vol. 15, no. 3, pp. 1-25, 2025.
[CrossRef] [Google Scholar] [Publisher Link]
[19] Tamir Shaqarin, and Bernd R. Noack, “A Fast-Converging Particle Swarm Optimization through Targeted, Position-Mutated, Elitism (PSO-TPME),” International Journal of Computational Intelligence Systems, vol. 16, pp. 1-17, 2023.
[CrossRef] [Google Scholar] [Publisher Link]
[20] Yiying Zhang, “Elite Archives-Driven Particle Swarm Optimization for Large Scale Numerical Optimization and its Engineering Applications,” Swarm and Evolutionary Computation, vol. 76, 2023.
[CrossRef] [Google Scholar] [Publisher Link]
[21] Huidong Ling et al, “A Parallel Multiobjective PSO Weighted Average Clustering Algorithm Based on Apache Spark,” Entropy, vol. 25, no. 2, pp. 1-14, 2023.
[CrossRef] [Google Scholar] [Publisher Link]
[22] Sarah A. Alzakari et al., “LesionNet: An Automated Approach for Skin Lesion Classification using SIFT Features with Customized Convolutional Neural Network,” Frontiers in Medicine, vol. 11, pp. 1-16, 2024.
[CrossRef] [Google Scholar] [Publisher Link]
[23] Shafiqul Islam et al., “Leveraging AI and Patient Metadata to Develop a Novel Risk Score for Skin Cancer Detection,” Scientific Reports, vol. 14, pp. 1-12, 2024.
[CrossRef] [Google Scholar] [Publisher Link]
[24] Mario García-Valdez et al., “Distributed and Asynchronous Population-Based Optimization Applied to the Optimal Design of Fuzzy Controllers,” Symmetry, vol. 15, no. 2, pp. 1-21, 2023.
[CrossRef] [Google Scholar] [Publisher Link]
[25] Ming Li et al., “A Parallel Particle Swarm Optimization Framework based on a Fork-Join Thread Pool using a Work-Stealing Mechanism,” Applied Soft Computing, vol. 145, 2023.
[CrossRef] [Google Scholar] [Publisher Link]