Controlled benchmarking of lightweight CNN backbones in a hybrid CNN–Vision transformer for skin lesion classification

(1) * Deni Sutaji Mail (Gazi University Universitas Muhammadiyah Gresik, Indonesia)
(2) Oktay Yildiz Mail (Gazi University, Turkey)
(3) Putri Aisyiyah Rakhma Devi Mail (Universitas Muhammadiyah Gresik, Indonesia)
*corresponding author

Abstract


Hybrid convolutional neural network (CNN)–Vision Transformer (ViT) models combine local feature extraction with global contextual modeling, yet the effect of lightweight CNN backbone selection is difficult to establish when architectural and training components vary simultaneously across studies. This study presents a controlled comparative benchmark of five lightweight CNN backbones—MobileNetV2, MobileNetV3-Small, ShuffleNetV2, GhostNet, and EfficientNet-B0—within an otherwise fixed CNN–ViT framework for seven-class skin lesion classification. The principal contribution is the controlled benchmarking methodology rather than a new hybrid architecture. All configurations used the same HAM10000 lesion-aware train–validation–test partition, ViT-Tiny encoder, feature projection and concatenation, classifier, optimization protocol, and evaluation procedure, with only the CNN backbone varied. Each configuration was evaluated across ten seeded stochastic training repetitions. GhostNet achieved the highest mean accuracy (82.25%), although only marginally above MobileNetV2 (82.23%), whereas MobileNetV2 achieved the highest mean balanced accuracy (70.91%), Macro F1 (71.03%), Weighted F1 (81.67%), and Macro AUC (95.38%). Friedman tests identified significant backbone effects for accuracy, Macro Precision, Weighted F1, and Macro AUC, but not for balanced accuracy or Macro F1, indicating no uniform statistical dominance by a single backbone. A matched standalone-CNN ablation further showed that the contribution of ViT integration was backbone-dependent rather than universally beneficial. Zero-training external evaluation of the selected MobileNetV2 hybrid configuration on 16,133 diagnostically harmonized BCN20000 images yielded 48.07% accuracy, 35.81% balanced accuracy, 33.01% Macro F1, and 78.07% Macro AUC, revealing substantial cross-dataset degradation. Overall, MobileNetV2 provides a favorable performance–complexity profile within the controlled benchmark, while the external results demonstrate that strong internal performance should not be interpreted as evidence of cross-dataset or deployment readiness.

Keywords


Skin lesion classification; Vision Transformer; Lightweight CNN; Controlled benchmarking; Dermoscopic image analysis

   

DOI

https://doi.org/10.26555/ijain.v12i4.2632
      

Article metrics

Abstract views : 0

   

Cite

   

References


Hybrid convolutional neural network (CNN)–Vision Transformer (ViT) models combine local feature extraction with global contextual modeling, yet the effect of lightweight CNN backbone selection is difficult to establish when architectural and training components vary simultaneously across studies. This study presents a controlled comparative benchmark of five lightweight CNN backbones—MobileNetV2, MobileNetV3-Small, ShuffleNetV2, GhostNet, and EfficientNet-B0—within an otherwise fixed CNN–ViT framework for seven-class skin lesion classification. The principal contribution is the controlled benchmarking methodology rather than a new hybrid architecture. All configurations used the same HAM10000 lesion-aware train–validation–test partition, ViT-Tiny encoder, feature projection and concatenation, classifier, optimization protocol, and evaluation procedure, with only the CNN backbone varied. Each configuration was evaluated across ten seeded stochastic training repetitions. GhostNet achieved the highest mean accuracy (82.25%), although only marginally above MobileNetV2 (82.23%), whereas MobileNetV2 achieved the highest mean balanced accuracy (70.91%), Macro F1 (71.03%), Weighted F1 (81.67%), and Macro AUC (95.38%). Friedman tests identified significant backbone effects for accuracy, Macro Precision, Weighted F1, and Macro AUC, but not for balanced accuracy or Macro F1, indicating no uniform statistical dominance by a single backbone. A matched standalone-CNN ablation further showed that the contribution of ViT integration was backbone-dependent rather than universally beneficial. Zero-training external evaluation of the selected MobileNetV2 hybrid configuration on 16,133 diagnostically harmonized BCN20000 images yielded 48.07% accuracy, 35.81% balanced accuracy, 33.01% Macro F1, and 78.07% Macro AUC, revealing substantial cross-dataset degradation. Overall, MobileNetV2 provides a favorable performance–complexity profile within the controlled benchmark, while the external results demonstrate that strong internal performance should not be interpreted as evidence of cross-dataset or deployment readiness.




Creative Commons License
This work is licensed under a Creative Commons Attribution-ShareAlike 4.0 International License.

___________________________________________________________
International Journal of Advances in Intelligent Informatics
ISSN 2442-6571  (print) | 2548-3161 (online)
Organized by UAD and ASCEE Computer Society
Published by Universitas Ahmad Dahlan
W: http://ijain.org
E: info@ijain.org (paper handling issues)
 andri.pranolo.id@ieee.org (publication issues)

View IJAIN Stats

This work is licensed under a Creative Commons Attribution-ShareAlike 4.0