Recognition of Cutaneous Melanoma on Digitized Histopathological Slides via Artificial Intelligence Algorithm

Front Oncol 2020 AI 6 Explanations View Original
Original Paper (PDF)

Unable to display PDF. Download it here or view on PMC.

Plain-English Explanations
Pages 1-2
AI-Assisted Histopathology: Automating Melanoma Detection in Whole-Slide Images

The diagnostic challenge: Histopathological diagnosis of melanoma relies on assessing cytological and architectural features in hematoxylin and eosin-stained slides - a process recognized as highly subjective with significant intraobserver and interobserver variability. Combined with a worldwide shortage of dermatopathologists and rising melanoma incidence, there is urgent need for automated support tools.

Study objective: Researchers at the University of Florence developed a convolutional neural network (CNN) system to automatically differentiate melanoma tissue from healthy tissue in digitized whole-slide images (WSIs) of formalin-fixed paraffin-embedded (FFPE) biopsy slides. The goal was to build a tool that achieves clinically acceptable accuracy while reducing diagnostic variability.

Transfer learning approach: Rather than training a CNN from scratch, the team used Inception-ResNet-v2, a powerful pretrained architecture, and fine-tuned it on a curated melanoma dataset. This transfer learning strategy dramatically reduces the number of training images required and leverages visual recognition patterns already encoded in the model.

Scope and dataset: The study used 100 FFPE primary invasive cutaneous melanoma slides from three Italian institutions. Expert dermatopathologists labeled regions of interest (ROIs) in each slide to create ground-truth training and test data, ensuring the CNN learned from pathologist-validated examples.

TL;DR: Researchers trained an Inception-ResNet-v2 CNN on 100 melanoma whole-slide images to automatically identify tumor versus healthy tissue, achieving diagnostic accuracy comparable to expert pathologists.
Pages 2-3
Patch-Based Training Pipeline: From Whole Slides to Classified Image Regions

Whole-slide digitization and ROI extraction: All 100 slides were scanned at 20x magnification using Pannoramic 250 Flash III and Aperio AT2 scanners. Two expert dermatopathologists independently identified and labeled 4 ROIs of tumor and 4 ROIs of healthy tissue per slide, providing the ground-truth annotations for model training.

Patch extraction and dataset split: Because WSIs are far too large to input directly into a CNN, each ROI was tiled into non-overlapping 299x299 pixel patches. Patches from 60 slides (1,377 healthy and 2,141 melanoma patches) formed the training and validation set; patches from the remaining 40 slides (791 healthy and 1,122 melanoma) formed an entirely independent test set with no patient overlap.

Data augmentation: To expand the training set and prevent overfitting, patches underwent affine transformations including horizontal and vertical shifts (0-30 pixels) and zoom operations (0-20%). This creates varied versions of each image, improving the model's ability to generalize to new slides.

Training configuration: The CNN was trained using stochastic gradient descent with momentum (learning rate 0.003, momentum 0.9). The first 10 layers were frozen to preserve pretrained features; only the remaining layers were updated. Training ran for up to 15 epochs with mini-batches of 16 patches, completing approximately 3,200 iterations in 18 hours on a high-performance workstation using MATLAB's Deep Learning Toolbox.

TL;DR: Slides were digitized and cut into 299x299 pixel patches; 60 slides trained the CNN and 40 independent slides tested it, with data augmentation applied to improve generalization.
Pages 3-4
High Classification Accuracy with Near-Perfect Agreement with Expert Pathologists

Overall performance metrics: On the independent test set, the trained CNN achieved 96.5% accuracy, 95.7% sensitivity, 97.7% specificity, and a 97.0% F1 score. These figures represent classification at the patch level - the model correctly identified whether a given image patch came from melanoma or healthy tissue in 1,847 of 1,913 test cases.

Cohen's kappa - measuring human-machine agreement: The model achieved a Cohen's kappa of 0.929, which falls in the 'almost perfect' agreement range (0.81-1.00). This metric corrects for chance agreement and directly measures how closely the CNN's classifications matched expert pathologist labels - a higher bar than raw accuracy alone.

Comparison with prior work: Previous CNN approaches reported 81% accuracy (ResNet50 on 595 WSIs) and 91.4% accuracy (VGG16 on smaller datasets). The Inception-ResNet-v2 system outperformed both in accuracy, sensitivity, and specificity, while also achieving a higher Cohen's kappa than the 0.878 reported in the closest comparable study.

Classification mapping: The trained CNN was applied as a sliding window over full WSIs, generating color-coded topological maps that highlight melanoma regions in red and healthy tissue in green. These heat maps allow pathologists to rapidly visualize the spatial distribution of tumor versus normal tissue across entire biopsy sections.

TL;DR: The CNN achieved 96.5% accuracy and Cohen's kappa of 0.929 on independent test slides - outperforming prior published methods and matching expert pathologist-level classification.
Pages 4-5
Understanding Misclassifications: Solar Damage, Vascular Structures, and Pigmentation

False positive patterns: When the model incorrectly labeled healthy tissue as melanoma, expert re-review revealed specific tissue features: marked dermal solar elastosis (UV-related collagen degeneration), epidermal atrophy, abnormally dilated vessels, extravasated erythrocytes in the dermis, and normal sebaceous or follicular adnexal structures. These features can create visual patterns that superficially resemble tumor regions.

False negative patterns: Patches where the model failed to identify melanoma generally contained areas of moderate-to-severe cytological atypia (the defining feature of malignancy). Importantly, the false negatives showed variable levels of melanin pigmentation - absent in 5 cases, mild in 8, and prominent in 18 - demonstrating that the CNN's errors were not driven by pigmentation levels.

Diffuse growth pattern as a challenge: In 7 of 18 false negative cases, tumor cells were arranged in large confluent aggregates without distinct nests - a 'diffuse growth' pattern. Combined with absent or sparse tumor-infiltrating lymphocytes (TILs), these patches lacked the structural cues that might signal malignancy to both the CNN and less experienced pathologists.

Implications for model refinement: Understanding these failure modes points toward specific training enhancements: adding more examples of UV-damaged skin, diffuse-growth melanoma patterns, and highly vascular regions could reduce false positives and negatives. Solar damage patterns may also connect to the Low-CSD vs. High-CSD melanoma classification framework, suggesting future potential for subtype identification.

TL;DR: False positives occurred near sun-damaged tissue and vascular structures; false negatives clustered in diffuse-growth tumors, but pigmentation level did not drive errors.
Pages 5-6
Practical Impact: Standardizing Diagnosis and Supporting Pathologists

Addressing pathologist shortage: The global shortage of dermatopathologists creates diagnostic backlogs, particularly in regions without access to subspecialty expertise. A CNN system that achieves near-dermatopathologist accuracy could serve as a first-line screening tool, flagging suspicious regions and prioritizing cases for expert review.

Reducing diagnostic variability: Intraobserver variability (the same pathologist giving different diagnoses on different days) and interobserver variability (different pathologists disagreeing) are well-documented problems in melanocytic lesion assessment. An AI tool with standardized decision-making could provide consistency across institutions and over time.

Tumor margin delineation: One immediate clinical application is assisting pathologists in evaluating surgical margin status - whether excision margins are clear of tumor cells. The CNN's ability to generate spatial heat maps across entire WSIs makes it well-suited for this task, potentially reducing the need for re-excision procedures.

Patch size validation: The study found that 299x299 pixel patches (approximately 5,000 mm2 at 20x magnification) provide sufficient context for reliable patch-level classification. This calibration is practically important for clinical deployment, as it defines the spatial resolution needed for dependable AI-assisted interpretation.

TL;DR: The system could address pathologist shortages, reduce diagnostic variability, and assist in surgical margin assessment by generating detailed tumor distribution maps from full biopsy slides.
Pages 6-8
Scaling Up: From Binary Classification to Melanoma Subtyping and Larger Cohorts

Expanding dataset size: The study acknowledges that 100 slides, while carefully curated, is a modest training set. Validation in larger, more diverse datasets from multiple institutions and geographic regions is essential before clinical deployment, particularly to ensure the model generalizes across different tissue preparation protocols and scanner types.

Melanoma subtype classification: The current CNN performs binary classification - melanoma versus healthy tissue. A natural extension is training the model to distinguish between melanoma subtypes (superficial spreading, nodular, lentigo maligna, acral lentiginous) or grades of atypia, which carry different prognostic implications and treatment considerations.

CSD classification potential: The observation that false positives cluster near UV-damaged tissue raises an intriguing possibility: AI analysis of solar elastosis patterns might enable automatic classification of Low-CSD vs. High-CSD melanomas. These subtypes differ at the genomic and mutational level, and their recognition could guide targeted therapy selection.

Integration with clinical workflows: Future work should address the full clinical integration challenge - how AI analysis fits into existing laboratory information systems, how pathologists interact with heat maps during reporting, and what regulatory requirements must be met for AI-assisted diagnosis tools in different countries.

TL;DR: Next steps include larger multicenter validation, extension to melanoma subtype classification, and exploration of whether AI can distinguish UV-damage-related subtypes that have distinct genomic profiles and treatment implications.
Citation: Open Access, 2020. Available at: PMC7508308.