Benchmarking Class Imbalance Mitigation Strategies Across Deep CNN Architectures for Skin Cancer Classification
Irshad Ahmad, Muhammad Khubaib, Saleh M. AltowaijriBackground/Objectives: Class imbalance is one of the major challenges in automated skin lesion classification since the number of categories of malignant and clinically significant skin lesions is normally less than the benign ones. However, due to this imbalance, deep convolutional neural networks (CNNs) tend to overlook minority classes and fail to recognize them with an acceptable accuracy, which leads to a decrease in diagnostic reliability. A wide range of imbalance mitigation techniques has been suggested, but their effectiveness is found to differ significantly depending on CNN architecture, and detailed comparative studies of these techniques for a consistent experimental setup are still limited. Methods: This study proposes a comprehensive benchmarking framework that tests sixteen class imbalance mitigation methods by applying them to six pretrained CNN architectures—EfficientNet-B0, EfficientNet-B3, ResNet50, DenseNet121, InceptionV3 and MobileNetV2—on the official ISIC 2019 skin lesion dataset. The tested techniques are conventional resampling techniques, synthetic sample generation techniques, algorithm-level learning techniques, data augmentation techniques, and hybrid techniques. The dataset was partition into a separate training set and testing set, and stratified cross-validation was only conducted on the training set to ensure the study was fair and reproducible. Both models have been optimized with the same optimizer, learning rate, batch size, epochs and preprocessing pipeline. The performance of the models was evaluated by computing the accuracy, precision, recall and F1-score. Results: The experimental results show that the effect of class imbalance mitigation is very specific to the underlying CNN architecture. The traditional undersampling and oversampling methods yielded only moderate improvements, while feature space and hybrid methods yielded more consistent results. When coupled with EfficientNet-B3, Balanced MixUp improved the overall performance of the model by achieving an accuracy of 92.39%, an increase in precision of 93.3%, a recall of 91.36%, and an F1-score of 92.33%. However, some architectures such as ResNet50 performed better with iterative learning techniques, such as Cumulative Learning and Yielding Multi-Fold Training, which suggests that there is a diversity in how different network architectures react to imbalance mitigation methods. Conclusions: This paper highlights the importance of selecting appropriate technique–architecture combinations for addressing long-tailed data distributions in medical imaging. The proposed benchmarking framework provides valuable insights for developing robust and reliable deep learning systems for skin lesion classification and other medical imaging tasks affected by severe class imbalance.