A fusocelular skin dataset with whole slide images for deep learning models

Rocío del Amor, Miguel López-Pérez, Pablo Meseguer, Sandra Morales, Liria Térradez, José Aneiros‐Fernández, Javier Mateos, Rafael Molina, Valery NaranjoScientific 2025

Abstract

Cutaneous spindle cell (CSC) lesions encompass a spectrum from benign to malignant neoplasms, often posing significant diagnostic challenges. Computer-aided diagnosis systems offer a promising solution to make pathologists' decisions objective and faster. These systems usually require large-scale datasets with curated labels for effective training; however, manual annotation is time-consuming and expensive. To overcome this challenge, crowdsourcing has emerged as a popular and valuable strategy to scale up the labeling process by distributing the effort among different non-expert annotators. This work introduces AI4SkIN, the first public dataset Whole Slide Images (WSIs) for CSC neoplasms, annotated using an innovative crowdsourcing protocol. AI4SkIN dataset contains 641 Hematoxylin and Eosin stained WSIs with multiclass labels from both expert and trainee pathologists. The dataset improves CSC neoplasm diagnosis using advanced machine learning and crowdsourcing based on Gaussian Processes, showing that models trained on non-expert labels perform comparably to those using expert labels. In conclusion, we illustrate that AI4SkIN provides a good resource for developing and validating methods for multiclass CSC neoplasm classification.

Introduction

Cutaneous spindle cell (CSC) lesions represent a diagnostic minefield in pathology. These tumors, composed of spindle-shaped cells, range from benign leiomyomas to aggressive spindle cell melanomas. Due to significant visual overlap between different types, reaching a definitive diagnosis is often slow and difficult, even for experienced specialists.

While Deep Learning (DL) offers a path toward automated, standardized diagnosis, these models require vast amounts of labeled data. Relying solely on expert pathologists for "ground truth" annotations is prohibitively expensive. This research introduces AI4SkIN, the first public multiclass dataset of Whole Slide Images (WSIs) for CSC neoplasms, and evaluates whether reliable models can be built using "noisy" labels from non-expert trainees.

The AI4SkIN Dataset

The primary contribution of this work is the AI4SkIN dataset, which serves as a benchmark for the computational pathology community.

  • Content: 641 Hematoxylin and Eosin (H&E) stained Whole Slide Images.
  • Sources: Multi-center data from two Spanish hospitals (HCUV and HUSC).
  • Classes: Seven distinct CSC neoplasm categories: leiomyomas (lm), leiomyosarcomas (lms), dermatofibromas (df), dermatofibrosarcomas (dfs), spindle cell melanomas (scm), atypical fibroxanthomas (afx), and squamous cell carcinoma (scc).
Example of a spindle cell lesion (b) from the AI4SkIN dataset, illustrating the complex tissue architecture.

Methodology

The researchers developed a pipeline to curate and validate the dataset using an innovative crowdsourcing protocol:

  1. Crowdsourcing and Label Aggregation: Labels were collected from 2 expert pathologists and 10 residents (pathologists-in-training). To address inter-observer variability, the team compared Majority Voting (MV) against SVGPCR (Scalable Variational Gaussian Processes for Crowdsourcing), a probabilistic model that jointly estimates true labels and annotator reliability.
  2. Feature Extraction via Foundation Models: Instead of standard CNNs, the study employed pathology-specific foundation models (e.g., CONCH, UNI, PLIP) pretrained on millions of medical images to extract robust embeddings.
  3. Gaussian Process Classification: GPs were used for the final classification task, providing not just predictions but also a measure of uncertainty, which is critical in clinical settings.
High-magnification view (f) of a CSC neoplasm, showing the cellular density and spindle morphology that models must learn to distinguish.

Key Results and Insights

The study demonstrates that "smart" label aggregation allows models trained on trainee data to approach expert-level performance. Results were evaluated using the Macro-averaged F1 score across six classes (excluding scc due to low sample size).

  • Expert Baseline: Using the CONCH feature extractor with expert labels, the model achieved a Macro-averaged F1 score of 88.22%.
  • Trainee-Based Performance: Models trained on noisy trainee labels using SVGPCR reached an F1 score of 80.45%, significantly outperforming simple majority voting (60.05%).
  • Foundation Model Superiority: Pathology-specific models (CONCH) vastly outperformed general-purpose models like VGG16, confirming that domain-specific pretraining is essential for medical AI.
  • Annotator Reliability: Modeling individual annotator bias proved crucial, particularly for rare classes like leiomyosarcoma (lms), where simple voting failed entirely.

Conclusion and Future Directions

AI4SkIN provides a vital resource for developing multiclass CSC classification methods. While the results are promising, challenges remain regarding class imbalance and variability between different scanners (Roche vs. Philips). Future work will focus on domain adaptation techniques to ensure these models remain robust across diverse clinical environments and hardware.

Summary updated

BibTeX
@inproceedings{amor2025fusocelular,
  author = {Rocío del Amor and Miguel López-Pérez and Pablo Meseguer and Sandra Morales and Liria Térradez and José Aneiros‐Fernández and Javier Mateos and Rafael Molina and Valery Naranjo},
  title = {{A fusocelular skin dataset with whole slide images for deep learning models}},
  booktitle = {Scientific},
  year = {2025},
  doi = {10.1038/s41597-025-05108-3},
}
Figure