arXiv:2609.07180cs.CVSep 2026

Manuscript Offprint

arXiv:2609.07180

Deep Learning for Biopsy-Free Subtyping of Basal Cell Carcinoma from Dermatoscopic Images

Alexandros Papadopoulos, Chrysa Episkopou, Ioannis Sarafis, Aimilios Lallas, Anastasios Delopoulos

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

Alexandros Papadopoulos, Chrysa Episkopou, Ioannis Sarafis and Anastasios Delopoulos

School of Electrical and Computer Engineering

Aristotle University of Thessaloniki, Greece

{palexang, cepiskop, iosarafis, antelopo}@ece.auth.gr

Aimilios Lallas

First Department of Dermatology

Aristotle University of Thessaloniki, Greece

alallas@auth.gr

Abstract—Basal Cell Carcinoma (BCC) is the most common type of skin cancer, accounting for nearly 80% of skin cancer diagnoses. Its optimal clinical management is guided by the distinct histopathologic subtype, with aggressive variants requiring more drastic measures. In current clinical practice, subtyping relies on skin biopsies, a procedure both costly and invasive. In this paper, we conduct a preliminary investigation into using deep learning for BCC subtyping, solely from a single dermatoscopic image of the lesion. Given the limited data at our disposal, we employ pre-trained vision transformers (ViTs), a state-of-the-art family of models highly effective for challenging downstream tasks with limited labeled data. Through repeated stratified k-fold cross-validation, we demonstrate that ViTs can achieve superior performance (AUC 0.784 on a dataset of 1271 dermatoscopic images of various BCC subtypes) over standard CNN-based baselines as well as previously-reported human reader performance, on the task of differentiating aggressive BCCs from other subtype families. These initial findings highlight the potential of combining deep learning and dermatoscopy to provide a biopsy-free alternative for BCC subtyping, thus aiding in improving treatment planning and patient outcomes.

Index Terms—dermatoscopy, basal cell carcinoma, subtypes, deep learning, data-driven, vision transformers

I. INTRODUCTION

Basal Cell Carcinoma (BCC) is a type of skin cancer caused primarily by ultraviolet radiation (UV). As such, it most often develops on body parts exposed to the sun [1]. Treatment options for BCC depend on its histopathologic subtype, with micrographic surgery suggested as the optimal treatment for aggressive subtypes, unlike non-aggressive and superficial tumors that may be treated more conservatively [2]. Prior to any treatment however, the subtype must first be established by a diagnostic biopsy, a procedure both costly and invasive that may also cause significant patient discomfort. Some imaging techniques, like optical coherence tomography or reflectance confocal microscopy, coupled with expert human evaluators or deep learning models, have been proposed as a viable alternative to diagnostic biopsies [3], [4]. However, only a few studies [5]–[7] have examined whether dermatoscopy in particular, by far the most common and accessible imaging modality in the field, can aid in BCC subtyping.

Dermatoscopy (also known as dermoscopy) is a non-invasive imaging technique widely used by dermatologists for the examination and diagnosis of skin lesions [8]. It involves a handheld device called a dermatoscope, which provides magnification (typically around 10×10\times) and illumination through polarized or non-polarized light sources. Dermatoscopy enables clinicians to visualize subsurface structures and morphological features not visible to the naked eye, such as pigment networks, vascular patterns, globules, and crystalline structures [9]. It significantly improves diagnostic accuracy compared to visual examination alone, facilitating early detection and differentiation of benign and malignant skin conditions. Recent advancements [10] have combined dermatoscopy with deep learning-based AI systems, to further enhance diagnostic capabilities and support clinical decision-making.

Deep learning has been a natural fit for automating medical image analysis, with many applications during the past decade, and especially so in dermatology, for classification of skin lesions, like melanoma [11], [12] and other skin cancers [13], [14]. Within an abundant literature, however, little attention has been given to BCC subtyping, an essential task for treatment planning as we have discussed. The existing works focus on using either whole-slide histopathology images (WSI) [15], [16], or other imaging techniques like reflectance confocal microscopy (RCM) [3] and optical coherence tomography (OCT) [4]. To the best of our knowledge, however, no works have considered combining dermatoscopy with deep learning for subtyping basal cell carcinomas.

Setting deep learning aside, few works have studied if dermatoscopy is informative enough to differentiate low-risk BCCs (superficial, nodular) from more aggressive subtypes (infiltrative, morpheiform, micronodular). The early work of [5] identified and evaluated various dermoscopic criteria for differentiating superficial BCC (sBCC) from other subtypes, resulting in an algorithm with 81.9% sensitivity and 81.8% specificity in a dataset of 77 sBCCs and 258 non-sBCCs. A follow-up work [6] investigated a more clinically relevant problem: whether human readers can accurately diagnose aggressive BCCs from a single dermoscopy image. To that end, 30 expert human evaluators with variable levels of experience were asked to perform an initial classification of 235 BCCs into superficial (sBCC), non-superficial (nsBCC) and

This work was funded by the Special Account for Research Funds of the Aristotle University of Thessaloniki (90169/2024) aggressive (according to the same categorization described in Section II-A). After a washout period of 2 months, they were explicitly instructed on the different dermatoscopic criteria for each type and repeated the classification of the 235 BCCs. The authors then compared the performance of the evaluators before and after the training and noticed substantial improvements in sensitivity (from 42.3% to 56.4%) with a minor decrease in specificity (from 71.7% to 70.7%).

Here we make a first step towards filling the above gap in the literature. More specifically, we present an automated approach for differentiating aggressive from non-aggressive BCCs based on dermatoscopic images, a binary classification task identical to the one pursued in [6]. To that end, we follow a data-driven approach based on deep learning and particularly vision transformers [17], a choice dictated by the very small annotated BCC subtype dataset at our disposal (presented in Section II-A), which makes it difficult to train a data-efficient deep learning model. In doing so, we take advantage of the unsupervised pre-training of vision transformers on vast amounts of data, which has been shown to be very effective in downstream tasks with limited labeled data [18], like the learning problem we face here.

This paper is structured as follows: In Section II, we present the AUTH BCC subtype dataset which motivated and informed this work, along with any other datasets that were used for auxiliary purposes. In Section III, we outline the proposed deep learning approach for building an accurate aggressive BCC subtype predictor. In Section IV, we describe the experimental setup, outline the training details and present and discuss the experimental results. Finally, we offer concluding remarks in Section V.

References (18)