Manuscript Offprint

arXiv:2610.08570

Less Is More: A Leakage-Controlled Study of Dermoscopic Preprocessing for Joint Skin Lesion Classification and Segmentation with YOLO26

Truong Viet Vu, Nguyen Chi Hai, Nguyen Phuc Nguyen, Ngo Hoang Tu, Vo Nguyen Quoc Bao, Nguyen Thai Anh

Truong Viet Vu, Nguyen Chi Hai, Nguyen Phuc Nguyen, Ngo Hoang Tu, Vo Nguyen Quoc Bao, and Nguyen Thai Anh

Faculty of Information Technology, Van Lang School of Technology, Van Lang University, Ho Chi Minh City, Vietnam

Email: vu.2274802011045@vanlanguni.vn, hai.2274802010214@vanlanguni.vn, nguyen.2274802010586@vanlanguni.vn, tu.nh@vlu.edu.vn, bao.vnq@vlu.edu.vn, anh.nt@vlu.edu.vn

Abstract—Handcrafted preprocessing is widely employed in automated dermoscopic analysis to suppress imaging artifacts and enhance lesion visibility. Nevertheless, its actual contribution to modern real-time models remains unclear, particularly when evaluation protocols do not adequately control correlations among images of the same lesion. This study presents a leakage-controlled, lesion-disjoint evaluation of dermoscopic preprocessing and augmentation for joint multi-class lesion classification and instance segmentation using a fixed nano-scale YOLO26 segmentation model (YOLO26n-seg). From HAM10000 (10,015 images), quality control yields 10,013 valid image-mask pairs from 7,468 unique lesions, partitioned into mutually exclusive sets by lesion identity. With the architecture, resolution, training budget, and evaluation protocol held fixed, we compare minimally processed images plus online augmentation against offline class balancing, DullRazor-CLAHE preprocessing, and raw-processed hybrid views, over three random seeds. On the lesion-disjoint test set, the raw baseline achieves a mask mAP 50:95_{50:95} of 0.5636±0.02340.5636 \pm 0.0234, a Dice score of 0.9356±0.00240.9356 \pm 0.0024, and a macro-F1 score of 0.6917±0.02020.6917 \pm 0.0202. Offline augmentation does not improve the mean performance, while the combined and hybrid strategies reduce both class-aware segmentation and classification accuracy. At only 2.69 million parameters, the model runs at approximately 50 frames per second. Under a leakage-controlled, lesion-disjoint protocol with all non-input factors held fixed, minimally processed dermoscopic images combined with standard online augmentation deliver a better accuracy-efficiency trade-off than increasingly complex deterministic preprocessing, which yields no consistent joint benefit across three seeds on HAM10000.

Index Terms—dermoscopy, skin lesion classification, instance segmentation, YOLO26, image preprocessing, lesion-disjoint evaluation

I. INTRODUCTION

Skin lesion assessment relies strongly on visual characteristics such as color, texture, shape, and border structure. Dermoscopy provides non-invasive visualization of subsurface features and improves melanoma diagnostic accuracy over unaided examination [1], yet interpretation remains challenging because different lesion categories may appear similar while lesions within a category vary considerably. Deep neural networks have therefore emerged as decision-support tools that learn discriminative representations directly from dermoscopic images [2].

Automated dermoscopic analysis commonly involves lesion segmentation and classification. Segmentation delineates abnormal tissue, whereas classification assigns the lesion to a diagnostic category. Research on both tasks has been accelerated by public challenges organized by the International Skin Imaging Collaboration (ISIC) [3]. The Human Against Machine with 10,000 training images (HAM10000) dataset is a widely used benchmark comprising 10,015 dermoscopic images from seven diagnostic categories [4]. Because multiple images may represent the same lesion under different acquisition conditions, random image-level partitioning can place correlated observations in separate subsets and yield optimistic estimates of generalization. Lesion-level separation is therefore important for reliable medical machine-learning evaluation [5].

Dermoscopic images may contain hairs, uneven illumination, low contrast, and acquisition artifacts. Common preprocessing techniques include DullRazor hair removal [6], contrast-limited adaptive histogram equalization (CLAHE) [7], Gray World color normalization [8], and lesion-centered region-of-interest (ROI) extraction. Although visually motivated, these transformations may alter diagnostically relevant information or introduce artificial patterns. Consistent with this concern, Mahbod et al. found that segmentation-based image manipulation did not consistently improve dermoscopic classification and that removing surrounding context could reduce performance [9].

Data augmentation raises a related concern. Online augmentation applies stochastic transformations during training, whereas offline augmentation explicitly creates additional samples that can target minority classes but remain correlated with their sources and must be restricted to the training set [10]. Distinguishing the two is essential to avoid confounding preprocessing, sampling, and augmentation effects.

Classification and segmentation are often studied separately, although both objectives can be learned from shared dermoscopic representations [11]. Their performance is not interchangeable: accurate lesion overlap does not guarantee correct diagnosis, and correct classification may accompany an incomplete boundary. A joint system should therefore be assessed using both spatial and class-aware metrics [12], [13]. The YOLO family provides an efficient foundation for this setting by combining localization and class prediction within a unified framework [14], and its recent extensions add instance segmentation while preserving practical inference.

Corresponding author: Nguyen Thai Anh (email: anh.nt@vlu.edu.vn).

speed. In particular, the nano-scale YOLO26 segmentation variant (YOLO26n-seg) jointly predicts lesion location, diagnostic class, confidence, and a pixel-level mask [15]. Comparisons among recent YOLO generations further demonstrate that architecture and model scale affect accuracy–latency trade-offs, emphasizing the need for matched experimental conditions [16], [17].

Despite these advances, the benefit of dermoscopic preprocessing remains unclear because previous evaluations often vary data partitioning, architecture, resolution, augmentation, sampling, and prediction policies simultaneously. It is therefore necessary to determine whether increasingly complex preprocessing provides a genuine advantage under leakage-controlled and otherwise matched conditions.

This study evaluates handcrafted dermoscopic preprocessing for lightweight joint multi-class lesion classification and instance segmentation under a lesion-disjoint protocol. Using a fixed YOLO26n-seg architecture, we compare minimally processed images, offline class-balancing augmentation, DullRazor–CLAHE preprocessing, individual preprocessing components, ROI transformations, and hybrid raw–processed training views, evaluating the principal configurations across three random seeds.

The main contributions of this study are as follows:

  • Leakage-controlled evaluation: We show that the pre-existing image-level split leaks 765 lesions (of 7,468) across subsets, and we construct a SHA-256-frozen, lesion-disjoint partition with zero cross-subset overlap.

  • Controlled preprocessing analysis: Holding the architecture, resolution, training budget, thresholds, and evaluation procedure fixed, we isolate preprocessing and augmentation as the only varied factors across four principal configurations and seven component ablations.

  • Finding and reproducible baseline: Over three seeds we jointly report classification, class-aware segmentation, boundary quality, model size, and speed, and we show that minimally processed inputs with online augmentation give the best accuracy–efficiency trade-off, establishing a reproducible lightweight baseline (2.69 M parameters, approximately 50 FPS).

The remainder of this paper is organized as follows. Section II presents the dataset preparation, preprocessing configurations, training protocol, and evaluation criteria. Section III reports and discusses the experimental results. Section IV concludes the paper and outlines directions for future research.

References (28)

  • Diagnostic accuracy of dermoscopy
  • Dermatologist-level classification of skin cancer with deep neural networks
  • Skin lesion analysis toward melanoma detection 2018: A challenge hosted by the international skin imaging collaboration (ISIC) (opens arXiv in a new tab)
  • The HAM10000 dataset, a large collection of multi-source dermatoscopic images of common pigmented skin lesions
  • Mitigating bias in radiology machine learning: 1. data handling
  • DullRazor: A software approach to hair removal from images
  • Contrast limited adaptive histogram equalization
  • A spatial processor model for object colour perception
  • The effects of skin lesion segmentation on the performance of dermatoscopic image classification
  • A survey on image data augmentation for deep learning
  • A novel multi-task deep learning model for skin lesion segmentation and classification (opens arXiv in a new tab)
  • Swin-PResU: Hybrid SwinViT and pruned residual CNN for precise brain tumor MRI segmentation
  • Automated wood and leaf separation: A comprehensive review on advanced methods and forestry applications
  • You only look once: Unified, real-time object detection
  • Ultralytics YOLO26: Unified real-time end-to-end vision models (opens arXiv in a new tab)
  • Fruit ripeness detection: A comparative analysis of state-of-the-art YOLO models
  • A hybrid framework for semi-automated traffic annotation: Integrating YOLOv11 object detection with CLIP semantic verification
  • Algorithms for the reduction of the number of points required to represent a digitized line or its caricature
  • An image inpainting technique based on the fast marching method
  • Decoupled weight decay regularization
  • SGDR: Stochastic gradient descent with warm restarts
  • YOLOv4: Optimal Speed and Accuracy of Object Detection
  • Metrics for evaluating 3d medical image segmentation: Analysis, selection, and tool
  • A benchmark dataset and evaluation methodology for video object segmentation
  • Microsoft COCO: Common objects in context
  • A systematic analysis of performance measures for classification tasks
  • The balanced accuracy and its posterior distribution
  • Benchmark analysis of representative deep neural network architectures