Related Experiment Video For Multi-Head Self Attention Layer
Updated: Jun 4, 2026

A Swin Transformer-Based Model for Thyroid Nodule Detection in Ultrasound Images
Published on: April 21, 2023
An automated framework to classify skin lesions using Multi-Head Self Attention Layer-based Vision Transformers
Sahil Faizal1, Charu Anant Rajput1, Manas Ranjan Prusty2
1School of Computer Science and Engineering, Vellore Institute of Technology, Chennai, India.
Abstract:
Skin lesions are one of the most prevalent form of diseases existing among us. Early detection and classification of potentially malignant skin lesions can give us a lead in the fight against skin cancer. There are many lesion classification divisions on medical grounds; however, an automated system that detects and classifies a majority of these classes is not prevalent. In view of this scenario, our proposed study aims to classify the input skin lesion images into nine classes, namely, squamous cell carcinoma (SCC), Basal cell carcinoma (BCC), melanocytic nevi (NV), actinic keratoses and intraepithelial carcinoma (AKIEC), melanoma (MEL), seborrheic keratosis (SEK), dermatofibroma (DF), benign keratosis like lesions (BKL), and vascular lesions (VASC). The proposed methodology uses contrast stretching as an image enhancement technique to facilitate efficient Region of Interest (ROI) segmentation. The novelty of the proposed study lies in the first-hand implementation of Vision Transformer (ViT) for feature extraction in the domain of skin lesion detection. Finally, a light-weight multi-layer perceptron (MLP) composed of fully connected layers is used for multinomial classification. Combining the aforementioned techniques, the proposed method achieves training accuracy of 98% and testing accuracy of about 93.22%. The impressive performance across nine distinct categories represents a significant milestone. This success demonstrates the model's scalability, suggesting it can be effectively extended to a broader array of diagnostic classes in future research.
