Handcrafted Features vs Frozen CNN Features vs Fine-Tuning: A Three-Route Comparison on Imbalanced Dermoscopic Classification
Abstract
Automated dermoscopic classification is often evaluated with a single modelling route and headline score, obscuring the effects of representation, partitioning and imbalance handling. This study compared three routes on the seven-class HAM10000 dataset, in which melanocytic nevi are 66.95% of the 10,015 images: handcrafted histogram-of-oriented-gradients (HOG) and colour features, frozen ImageNet-pretrained ResNet50 features, and end-to-end ResNet50 fine-tuning. Each route was crossed with image-level and lesion-grouped splits and unweighted and class-weighted training, giving 12 test configurations. In all four matched settings, fine-tuned ResNet50 achieved the highest macro-F1 (0.662–0.810), exceeding frozen features by 0.147–0.190, which in turn exceeded handcrafted features by 0.224–0.393. Class weighting raised melanoma recall and lowered melanocytic-nevus recall in all six matched comparisons, yet improved macro-F1 only once, because the additional rare-class predictions reduced precision. Lesion-grouped rather than image-level splitting reduced macro-F1 most strongly for fine-tuning, by 0.126–0.148, indicating sensitivity to repeated-lesion overlap and partition composition. Fixed splits, extracted features, result tables and epoch-level training records support transparent evaluation, reproducibility and extension to further pretrained backbones.
References
- Wu, Y., Chen, B., Zeng, A., Pan, D., Wang, R., & Zhao, S. (2022). Skin cancer classification with deep learning: A systematic review.Frontiers in Oncology, 12, 893972. https://doi.org/10.3389/fonc.2022.893972
- Debelee, T. G. (2023). Skin lesion classification and detection using machine learning techniques: A systematic review.Diagnostics, 13(19), 3147. https://doi.org/10.3390/diagnostics13193147
- Naqvi, M., Gilani, S. Q., Syed, T., Marques, O., & Kim, H.-C. (2023). Skin cancer detection using deep learning: A review.Diagnostics, 13(11), 1911. https://doi.org/10.3390/diagnostics13111911
- Mehmood, A., Gulzar, Y., Ilyas, Q. M., Jabbari, A., Ahmad, M., & Iqbal, S. (2023). SBXception: A shallower and broader Xception architecture for efficient classification of skin lesions.Cancers, 15(14), 3604. https://doi.org/10.3390/cancers15143604
- Fogelberg, K., Chamarthi, S., Maron, R. C., Niebling, J., & Brinker, T. J. (2023). Domain shifts in dermoscopic skin cancer datasets: Evaluation of essential limitations for clinical translation.New Biotechnology, 76, 106-117. https://doi.org/10.1016/j.nbt.2023.04.006
- Varoquaux, G., & Cheplygina, V. (2022). Machine learning for medical imaging: Methodological failures and recommendations for the future.npj Digital Medicine, 5, 48. https://doi.org/10.1038/s41746-022-00592-y
- Bradshaw, T. J., Huemann, Z., Hu, J., & Rahmim, A. (2023). A guide to cross-validation for artificial intelligence in medical imaging.Radiology: Artificial Intelligence, 5(4), e220232. https://doi.org/10.1148/ryai.220232
- Tschandl, P., Rosendahl, C., & Kittler, H. (2018). The HAM10000 dataset, a large collection of multi-source dermatoscopic images of common pigmented skin lesions.Scientific Data, 5, 180161. https://doi.org/10.1038/sdata.2018.161
- Salmi, M., Atif, D., Oliva, D., Abraham, A., & Ventura, S. (2024). Handling imbalanced medical datasets: Review of a decade of research.Artificial Intelligence Review, 57, 259. https://doi.org/10.1007/s10462-024-10884-2
- Dalal, N., & Triggs, B. (2005). Histograms of oriented gradients for human detection. InProceedings of the IEEE Computer Society Conference on Computer Vision and Pattern Recognition(pp. 886-893). https://doi.org/10.1109/CVPR.2005.177
- He, K., Zhang, X., Ren, S., & Sun, J. (2016). Deep residual learning for image recognition. InProceedings of the IEEE Conference on Computer Vision and Pattern Recognition(pp. 770-778). https://doi.org/10.1109/CVPR.2016.90
- Deng, J., Dong, W., Socher, R., Li, L.-J., Li, K., & Li, F.-F. (2009). ImageNet: A large-scale hierarchical image database. InProceedings of the IEEE Conference on Computer Vision and Pattern Recognition(pp. 248-255). https://doi.org/10.1109/CVPR.2009.5206848
- Farhadpour, S., Warner, T. A., & Maxwell, A. E. (2024). Selecting and interpreting multiclass loss and accuracy assessment metrics for classifications with class imbalance: Guidance and best practices.Remote Sensing, 16(3), 533. https://doi.org/10.3390/rs16030533