Hybrid CNN–BiLSTM with Multi-Transformer Stacking for Skin Lesion Classification
Open Access
- 1 September 2026
- journal article
- research article
- Published by MDPI AG in BioMedInformatics
- Vol. 6 (5) , 66
Abstract
Skin cancer is one of the most common diseases worldwide and, if left untreated, it can be life threatening. In this work, we propose a dual-branch deep learning framework that integrates a CNN–BiLSTM module for local spatial–sequential feature modeling with multiple transformer models (ViT, DeiT, SwinV2, and BEiT) for global representation learning. Each input image is processed in parallel by two branches. The first branch consists of a lightweight convolutional network, followed by row-wise and column-wise Bidirectional LSTM layers to capture spatial and sequential dependencies. The second branch employs a high-resolution transformer to extract features from the image. The features extracted from both branches of the hybrid CNN–BiLSTM–Transformer model are fused to construct a unified classifier for accurate skin lesion recognition. To further improve robustness, four CNN–BiLSTM–Transformer hybrid models are combined using a stacking strategy based on logistic regression that aggregates their prediction probabilities. Experimental results on the binary Kaggle and multi-class HAM10000 datasets demonstrate that stacking achieves better performance than the individual hybrid CNN–BiLSTM–Transformer models, reaching accuracies of 91.21% on the binary Kaggle dataset and 86.08 ± 0.47% on the HAM10000 dataset, respectively. These findings confirm the efficiency of using complementary local and global features for skin lesion classification.Keywords
This publication has 37 references indexed in Scilit:
- Enhancing Skin Lesion Classification for Dermatology Using Hybrid Feature Extraction Based on the GRU Model2025
- TransFuse: Fusing Transformers and CNNs for Medical Image Segmentation2021
- The impact of patient clinical information on automated skin cancer detectionComputers in Biology and Medicine, 2020
- Deep neural networks are superior to dermatologists in melanoma image classificationEuropean Journal of Cancer, 2019
- Fusing fine-tuned deep features for skin lesion classificationComputerized Medical Imaging and Graphics, 2019
- Dermatologist-level classification of skin cancer with deep neural networksNature, 2017
- Hair removal methods: A comparative study for dermoscopy imagesBiomedical Signal Processing and Control, 2011
- A methodological approach to the classification of dermoscopy imagesComputerized Medical Imaging and Graphics, 2007
- Multi-dimensional Recurrent Neural Networks2007
- Stacked generalizationNeural Networks, 1992