[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"detail-sidebar-cat-0-en-105":3,"doc-seo-356528-105":59,"doc-detail-356528-en":131},{"code":4,"msg":5,"data":6},0,"success",[7,13,18,23,28,33,38,43,48,51,55],{"id":8,"doc_module":4,"doc_module_name":9,"category_name":10,"show_sort_weight":11,"slug":12},1,"Document","Story & Novel",90,"story-novel",{"id":14,"doc_module":4,"doc_module_name":9,"category_name":15,"show_sort_weight":16,"slug":17},2,"Literature",80,"literature",{"id":19,"doc_module":4,"doc_module_name":9,"category_name":20,"show_sort_weight":21,"slug":22},4,"Exam",70,"exam",{"id":24,"doc_module":4,"doc_module_name":9,"category_name":25,"show_sort_weight":26,"slug":27},5,"Comic",60,"comic",{"id":29,"doc_module":4,"doc_module_name":9,"category_name":30,"show_sort_weight":31,"slug":32},6,"Technology",50,"technology",{"id":34,"doc_module":4,"doc_module_name":9,"category_name":35,"show_sort_weight":36,"slug":37},7,"Healthcare",40,"healthcare",{"id":39,"doc_module":4,"doc_module_name":9,"category_name":40,"show_sort_weight":41,"slug":42},8,"Research & Report",30,"research-report",{"id":44,"doc_module":4,"doc_module_name":9,"category_name":45,"show_sort_weight":46,"slug":47},9,"Religion & Spirituality",20,"religion-spirituality",{"id":46,"doc_module":4,"doc_module_name":9,"category_name":49,"show_sort_weight":46,"slug":50},"World Cup","world-cup",{"id":52,"doc_module":4,"doc_module_name":9,"category_name":53,"show_sort_weight":52,"slug":54},10,"Lifestyle","lifestyle",{"id":56,"doc_module":4,"doc_module_name":9,"category_name":57,"show_sort_weight":24,"slug":58},19,"General","general",{"code":4,"msg":60,"data":61},"ok",{"site_id":62,"language":63,"slug":64,"title":65,"keywords":66,"description":67,"schema_data":68,"social_meta":124,"head_meta":126,"extra_data":128,"updated_unix":130},105,"en","automated-early-detection-of-skin-cancer-using-a-cnn-vit-attention-based-hybrid-model","Automated Early Detection of Skin Cancer Using a CNN-ViT-Attention-Based Hybrid Model","","Early diagnosis is critical in skin cancer because deeper invasion increases the risk of spread and worsens outcomes, making timely treatment initiation essential. This study proposes a hybrid decision-support model that combines convolutional neural networks (CNNs) with Vision Transformer (ViT) representations and applies attention mechanisms. The model is fine-tuned and trained using the HAM10000 dataset with class weighting for imbalance handling, then compared against standalone CNN and ViT approaches. The proposed method achieves the highest reported accuracy.",{"@graph":69,"@context":123},[70,84,106],{"@type":71,"itemListElement":72},"BreadcrumbList",[73,77,79,82],{"item":74,"name":75,"@type":76,"position":8},"https://docshare.wps.com","Home","ListItem",{"item":78,"name":9,"@type":76,"position":14},"https://docshare.wps.com/document/",{"item":80,"name":40,"@type":76,"position":81},"https://docshare.wps.com/document/research-report/",3,{"item":83,"name":65,"@type":76,"position":19},"https://docshare.wps.com/document/automated-early-detection-of-skin-cancer-using-a-cnn-vit-attention-based-hybrid-model/356528/",{"url":83,"name":65,"@type":85,"image":86,"author":91,"headline":65,"publisher":94,"fileFormat":97,"inLanguage":63,"description":67,"dateModified":98,"datePublished":99,"encodingFormat":97,"isAccessibleForFree":100,"interactionStatistic":101},"DigitalDocument",{"url":87,"@type":88,"width":89,"height":90},"https://docshare.wps.com/thumbnails/automated-early-detection-of-skin-cancer-using-a-cnn-vit-attention-based-hybrid-model/356528.png","ImageObject",300,407,{"name":92,"@type":93},"\tJames","Person",{"url":74,"name":95,"@type":96},"DocShare","Organization","application/pdf","2026-10-27","2026-09-23",true,{"@type":102,"interactionType":103,"userInteractionCount":105},"InteractionCounter",{"@type":104},"ViewAction",13,{"@type":107,"mainEntity":108},"FAQPage",[109,115,119],{"name":110,"@type":111,"acceptedAnswer":112},"Why is early diagnosis important for skin cancer?","Question",{"text":113,"@type":114},"Early diagnosis helps initiate treatment before cancer cells proliferate excessively and spread to other parts of the body, improving outcomes.","Answer",{"name":116,"@type":111,"acceptedAnswer":117},"What technologies does the proposed hybrid model use?",{"text":118,"@type":114},"The approach combines CNNs, Vision Transformer (ViT), and multiple classifiers, and it applies two attention mechanisms together (channel and spatial).",{"name":120,"@type":111,"acceptedAnswer":121},"How is the HAM10000 dataset handled during training?",{"text":122,"@type":114},"Experiments use the HAM10000 dataset, and class weighting is applied to balance the unbalanced class distribution.","https://schema.org",{"og:url":83,"og:type":125,"og:title":65,"og:site_name":95,"og:description":67},"article",{"robots":127,"canonical":83},"index,follow",{"doc_id":129,"site_id":62},356528,1790806683,{"code":4,"msg":5,"data":132},{"doc_id":129,"user_id":133,"nickname":92,"user_avatar":134,"doc_module":4,"category_id":39,"category_name":40,"doc_title":65,"doc_description":67,"doc_content":135,"file_id":136,"file_url":137,"file_type":138,"file_size":139,"view_count":105,"is_deleted":4,"is_public":8,"is_downloadable":8,"audit_status":8,"page_count":140,"language":141,"language_code":63,"site_id":62,"html_lang":63,"table_of_contents":142,"faqs":143,"seo_title":144,"seo_description":67,"update_tm":145,"read_time":146,"preview_page_count":19,"preview_urls":147},2336474466412,"https://ap-avatar.wpscdn.com/davatar_155a257f0dc6eb9ab79c44ca47cae57d","Article  \nAutomated Early Detection of Skin Cancer Using a CNN-ViT-Attention-Based Hybrid Model  \nZekiye Kanat 1, Merve Kesim Onal 2, Harun Bingol 3, Serpil Sener 1, Engin Avci 4 and Muhammed Yildirim 5, *  \nAcademic Editor: Chen Chu  \nReceived: 24 January 2026  \nRevised: 14 February 2026  \nAccepted: 28 February 2026  \nPublished: 5 March 2026  \nCopyright: © 2026 by the authors. Licensee MDPI, Basel, Switzerland. This article is an open access article distributed under the terms and conditions of the Creative Commons Attribution (CC BY) license.  \n1 Department of Dermatology, Inonu University, Malatya 44280, Türkiye; [zekiye.kanat@inonu.edu.tr](zekiye.kanat@inonu.edu.tr) (Z.K.); [serpil.sener@inonu.edu.tr](serpil.sener@inonu.edu.tr) (S.S.)  \n2 Department of Computer Engineering, Malatya Turgut Ozal University, Malatya 44210, Türkiye; [merve.kesim@ozal.edu.tr](merve.kesim@ozal.edu.tr)  \n3 Department of Software Engineering, Malatya Turgut Ozal University, Malatya 44210, Türkiye; [harun.bingol@ozal.edu.tr](harun.bingol@ozal.edu.tr)  \n4 Department of Software Engineering, Firat University, Elazig 23119, Türkiye; [enginavci@firat.edu.tr](enginavci@firat.edu.tr)  \n5 Department of Artificial Intelligence and Data Engineering, Firat University, Elazig 23119, Türkiye  \n* [Correspondence: muhammedyildirim@firat.edu.tr](Correspondence: muhammedyildirim@firat.edu.tr)  \nAbstract  \nBackground/Objectives: Skin cancer is a very serious disease. There is a risk that the cancer will spread to other parts of the body as the cancerous tissue deepens. For this reason, early diagnosis is important because it allows for early initiation of treatment. This study proposes a hybrid model for the early diagnosis of skin cancer. Methods: The proposed model was developed using Convolutional Neural Networks (CNNs), Vision Transformer (ViT) architectures, and the k-Nearest Neighbors (KNN), Support Vector Machine (SVM), Naive Bayes (NB), Neural Network Classifiers, Decision Tree (DT), and Logistic Regression (LR) classifiers. Furthermore, the proposed model was fine-tuned to improve its disease diagnosis. Two attention mechanisms, channel and spatial, were used together in the proposed model. The HAM10000 dataset was used during the experiments. Class weighting was performed to ensure class-based balance in the dataset. Results: The proposed model was also compared with the CNN and ViT architectures frequently used in the literature. Among these models, the highest accuracy value of 95.1% was obtained with the proposed model. Conclusions: It is considered that the proposed model can be used as a decision support system for dermatologists in the diagnosis of skin cancer.  \nKeywords: attention; classifiers; CNN; skin cancer; ViT  \n1. Introduction  \nSkin cancer is a very common type of cancer worldwide [1] . Skin cancer is less common in people with darker skin compared to those with lighter skin [2] . However, it is known that mortality rates due to the disease are higher in people with darker skin. Individuals who are directly exposed to sunlight have a higher probability of developing skin cancer. However, sunlight is not the only cause of skin cancer. The patient’s genetic predisposition and other environmental factors are also very effective in the onset and development of this disease [3,4] . If the disease is not diagnosed early and treatment is not started, the excessive proliferation of cancerous cells and their spread to other parts of the body can lead to death [5] .  \nSkin cancer is usually diagnosed by examining a biopsy taken from the suspicious tissue. This method is a lengthy and costly process [6] . In recent years, with the advancement  \nof technology, computer-aided systems have begun to be used effectively in many fields such as transportation [7], health [8], the pharmaceutical industry [9], aviation [10], and agriculture [11] . They are also used effectively in the diagnosis and detection of diseases. In addition to costly procedures like ","cbCaiflTyZfzMCD6","https://ap.wps.com/l/cbCaiflTyZfzMCD6","pdf",2114564,14,"English","# Abstract\n# 1. Introduction\n## 1.1. Contribution and Novelty","[{\"question\":\"Why is early diagnosis important for skin cancer?\",\"answer\":\"Early diagnosis helps initiate treatment before cancer cells proliferate excessively and spread to other parts of the body, improving outcomes.\"},{\"question\":\"What technologies does the proposed hybrid model use?\",\"answer\":\"The approach combines CNNs, Vision Transformer (ViT), and multiple classifiers, and it applies two attention mechanisms together (channel and spatial).\"},{\"question\":\"How is the HAM10000 dataset handled during training?\",\"answer\":\"Experiments use the HAM10000 dataset, and class weighting is applied to balance the unbalanced class distribution.\"}]","Automated Early Detection of Skin Cancer Using a CNN-ViT-Attention-Based Hybrid Model | PDF",1790125846,35,[148,152,156,160],{"page_no":8,"url":149,"width":150,"height":151},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-16/38f16ab216f512b47ceb44c66bf65532.webp",983,1390,{"page_no":14,"url":153,"width":154,"height":155},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-16/12a2e608f59ce0491de7625ec54490f7.webp",982,1388,{"page_no":81,"url":157,"width":158,"height":159},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-16/9712ec1fc2bebcc18fc1663454fb23fd.webp",981,1387,{"page_no":19,"url":161,"width":162,"height":163},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-16/7e0aed85798e83ec255c1145aae2de96.webp",980,1385]