Skin Lesion Classification Explained with�Generative Adversarial Networks
1
Candidate:
Ettore Candeloro
Supervisor:
Prof. Costantino Grana
Co-Supervisors:
Prof. Federico Bolelli
Dott. Luca Lumetti
University of Modena and Reggio Emilia
Dep. of Engineering “Enzo Ferrari”
A.A. 2022/2023
1/32
2/32
3 Mln affected people
Over 59,000 deaths/year
Diverse risk factors
Melanoma
3/32
99% - localized cancer
35% - non-localized cancer
Melanoma
Identikit of a Melanoma
5/32
ABCD Features
Melanoma
Nevus
6/32
ABCD Features
Asymmetry
7/32
ABCD Features
Borders
8/32
ABCD Features
Colors
9/32
ABCD Features
Diameter
10/32
Dermoscopy
Computer Aided Diagnosis �for Skin Lesions
12/32
CAD AI Systems
GOAL: Assisted skin lesion diagnosis
IDEA: use CNNs
13/32
Skin lesion classification
Melanoma!
CNN
14/32
Nevus!
CNN
Skin lesion classification
15/32
Nevus!
CNN
BUT WHY?
Skin lesion classification
16/32
Problems
Black-box nature of DL algorithms used
No explanations about the diagnosis
Explainability for �CNN Classifiers
18/32
Heat-Map Based Methods
19/32
Heat-Map Based Methods
What visual feature? Which aspect of it?
20/32
Counterfactual visual explanations with GANs
If input X were X’ output Y would change to Y’
Class → LION
Class → CHEETAH
21/32
Counterfactual visual explanations with GANs
Class → LION
Class → CHEETAH
What single visual attribute?
Which contributed the most?
22/32
StylEx
Top-N classifier specific attributes
23/32
StylEx architecture & training
24/32
Generating Counterfactuals with StylEx
StylEx for Skin Lesion Classifier’s Explainability
26/32
Setup
ISIC 2019 + 2020 Dataset
ResNet50 CNN
Binary classification
Re-StylEx unofficial code-base
27/32
CNN Training
Data Augmentation
Weighted Random Sampling
Low Resolution of
128x128 pixels
MEL Recall = 0.800
F1 Avg = 0.867
28/32
StylEx Training
Frechét Inception Distance (FID)
29/32
Training Results: interpolation in the StyleSpace
30/32
Counterfactuals results
COLOR HUE
COLOR UNIFORMITY
PINK COLOR
BORDERS/SCARRING
1.00
0.02
1.00
1.00
0.258
0.973
0.88
0.00
31/32
Comparison with Re-Stylex
32/32
Considerations & Future Work
Some visual features aligned with ABCD
Others were uncorrelated with melanoma features
Using SOTA skin lesion classifiers, with high res. images
User tests & collaboration with trained dermatologists
Thanks for your attention
Backup Slides
3 risk levels with different requisites:
low, high and prohibited
Medical CAD AI applications are high-risk
The EU AI Act
EU proposed AI regulatory framework
High Risk AI Requirements
Transparency
Robustness
Accuracy
Data quality
Provide info
Human oversight
38
Metrics
StyleGAN
Counterfactual Explanations with GANs
SUV
SEDAN
If input X were X’ , output Y would change to Y’
StylEx classifier related attributes example
StylEx Architecture detailed
StylEx Losses in details
StylEx Rec scaling factor effects
=1
=10
Full interpolation in the StyleSpace
Counterfactuals: top class attributes