<?xml version="1.0" encoding="UTF-8"?>
<TEI xml:space="preserve" xmlns="http://www.tei-c.org/ns/1.0" 
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" 
xsi:schemaLocation="http://www.tei-c.org/ns/1.0 https://raw.githubusercontent.com/kermitt2/grobid/master/grobid-home/schemas/xsd/Grobid.xsd"
 xmlns:xlink="http://www.w3.org/1999/xlink">
	<teiHeader xml:lang="en">
		<fileDesc>
			<titleStmt>
				<title level="a" type="main">A comparative study of explainer modules applied to automated skin lesion classification</title>
			</titleStmt>
			<publicationStmt>
				<publisher/>
				<availability status="unknown"><licence/></availability>
			</publicationStmt>
			<sourceDesc>
				<biblStruct>
					<analytic>
						<author>
							<persName><forename type="first">Jia</forename><surname>Sun</surname></persName>
							<affiliation key="aff0">
								<orgName type="department">Department of Engineering Science</orgName>
								<orgName type="institution">University of Oxford</orgName>
								<address>
									<country key="GB">UK</country>
								</address>
							</affiliation>
						</author>
						<author>
							<persName><forename type="first">Tapabrata</forename><surname>Chakraborti</surname></persName>
							<affiliation key="aff0">
								<orgName type="department">Department of Engineering Science</orgName>
								<orgName type="institution">University of Oxford</orgName>
								<address>
									<country key="GB">UK</country>
								</address>
							</affiliation>
						</author>
						<author>
							<persName><forename type="first">J</forename><forename type="middle">Alison</forename><surname>Noble</surname></persName>
							<affiliation key="aff0">
								<orgName type="department">Department of Engineering Science</orgName>
								<orgName type="institution">University of Oxford</orgName>
								<address>
									<country key="GB">UK</country>
								</address>
							</affiliation>
						</author>
						<title level="a" type="main">A comparative study of explainer modules applied to automated skin lesion classification</title>
					</analytic>
					<monogr>
						<imprint>
							<date/>
						</imprint>
					</monogr>
					<idno type="MD5">991C59CB289F6596507BC51CA5C68BB5</idno>
				</biblStruct>
			</sourceDesc>
		</fileDesc>
		<encodingDesc>
			<appInfo>
				<application version="0.7.2" ident="GROBID" when="2023-03-24T05:36+0000">
					<desc>GROBID - A machine learning software for extracting information from scholarly documents</desc>
					<ref target="https://github.com/kermitt2/grobid"/>
				</application>
			</appInfo>
		</encodingDesc>
		<profileDesc>
			<textClass>
				<keywords>
					<term>skin lesion classification</term>
					<term>explainable artificial intelligence</term>
					<term>interpretable machine learing</term>
					<term>class activation maps</term>
					<term>medical imaging</term>
				</keywords>
			</textClass>
			<abstract>
<div xmlns="http://www.tei-c.org/ns/1.0"><p>How to choose the appropriate explainer module for a deep network for interpretability of learned features through visualization? Are the selection criteria specific to a task or can they be generalised? We investigate a set of criteria by which to evaluate and select explainer modules for deep learning based classification. This is of great importance for applications with high human consequence like healthcare, where it is of utmost importance for the automated decision making process to be aligned with clinical expert knowledge. We choose skin lesion classification as the representative classification task. and select three offthe-shelf popular explainer-visualizer modules: LIME, Grad-CAM and Kernel SHAP. We compare these modules on a baseline vanilla CNN model and evaluate them based on several criteria like consistency, fidelity, sensitivity and relevance. The results bring out several interesting insights and are presented with detailed illustrative diagrams. 1</p></div>
			</abstract>
		</profileDesc>
	</teiHeader>
	<text xml:lang="en">
		<body>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="1">Introduction</head><p>Deep learning based vision systems have made giant strides in automated medical image analysis in recent years, due to smarter algorithms, faster computing and increased memory resources. Though the performance of these systems have improved by leaps and bounds over a short span of years, the associated increase in the design complexity of these models have made it difficult even for their designers to explain the decision making process. The need for interpretability in deep learning is crucial for such methods to be trusted in application of high consequence like medicine and healthcare. While recent research in medical imaging <ref type="bibr" target="#b3">[4]</ref> has delved into the open problem of transparency of deep networks, there is yet to be a standard set of criteria and tools that a machine learning engineer might refer to while using off-the-shelf explainer modules. This is exceptionally important since the absence of a benchmark in interpretability will further obfuscate the goal of explainability. In fact, it might make the situation worse, if the results of explainer modules <ref type="bibr" target="#b19">[20]</ref> are at odds, or at least it is unknown why they might differ under varying circumstances.</p><p>A case in hand is automated skin cancer classification from visual data. According to the world health organisation <ref type="bibr" target="#b0">[1]</ref>, between 2 and 3 million nonmelanoma skin cancers and 132,000 melanoma skin cancers occur globally each year, which is one in every three cancers diagnosed. However, the European Union's General Data Protection Regulation (GDPR) and the UK's related Data Protection Bill both require a "right to explanation" for any automated decisionmaking algorithms <ref type="bibr" target="#b17">[18]</ref>. Although this right is not legally binding, automated diagnostic systems being developed are likely to face more scrutiny over their explainability. Indeed, for people to put their trust into an automated diagnosis, there is a need for an explanation as the consequence of a misdiagnosis can be catastrophic <ref type="bibr" target="#b14">[15]</ref>.</p><p>The contribution of this paper is that it formalises the criteria on which to choose explainer modules for different scenarios and for the first time experimentally demonstrates the effects choosing skin lesion classification as the representative application <ref type="bibr" target="#b8">[9]</ref>. This will help a machine learning practitioner to confidently select available explainer modules and interpret the results better, which is the call of the hour in interpretable machine learning.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="2">Experimental Setup</head><p>In this section, we introduce the dataset and deep architecture used in this work. We also describe the data preparation process and training protocol.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="2.1">Dataset and data preparation</head><p>HAM10000 dataset <ref type="bibr" target="#b15">[16]</ref> is used in this work since it is the most commonly used benchmark dataset by the research community for skin lesion classification. The dataset contains, a total of 10015 RGB dermoscopic images of dimensions 3 × 450 × 600 distributed over 7 classes namely: melanoma (Mel, 1113 samples), melanocytic nevi (NV, 6705 samples), basal cell carcinoma (BCC, 514 samples), actinic keratosis and intraepithelial carcinoma (AKIEC, 327 samples), benign keratosis (BKL, 1099 samples), dermatofibroma (DF, 115 samples) and vascular lesions (VASC, 142 samples). The main challenges of this dataset are class imbalance and the presence of artifacts like dark patches, skin hair, etc. . The HAM10000 has multiple images from different angles and lighting of the same lesion, which are all kept out of the validation and test set to avoid false high accuracy due to data leakage. No colour constancy or hair removal algorithms were used since they will make the training images more homogeneous and defeat the purpose of discovering whether CNNs ignored these features that can cause spurious correlations.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="2.2">Deep Network</head><p>The CNN model is constructed loosely based on a baseline vanilla CNN network described in <ref type="bibr" target="#b8">[9]</ref>. The basic structure is two convolutional layers followed by a max-pooling layer. The first two layers contain less filters to reduce the training time. The network here also includes more dropout layers, less fully connected neurons to combat the overfitting present when replicating the original network. Furthermore, it is modified for a seven class classification instead of a two class one. Every layer uses an ReLU activation function except for the last dense layer which uses the softmax activation. The resulting architecture is as shown in Figure <ref type="figure">2</ref>. The number of trainable parameters is around 6.5 million. For comparison, the VGG16 network contains 41.5 million and ResNet50 26.7 million.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="2.3">Training</head><p>The training loss is weighted inversely proportional to the number of images in each class in order to further compensate for the highly unbalanced training data. The model is trained using the Adam optimiser <ref type="bibr" target="#b6">[7]</ref> for 100 epochs with an initial learning rate of 0.001. The learning rate is halved when the validation accuracy did not improve for three epochs.  As shown in Figure <ref type="figure" target="#fig_1">3</ref>, validation loss and training loss both plateaued around the same number of epochs where the training accuracy is consistently higher than the validation accuracy. The training loss did not improve at a faster rate than the validation loss beyond the 60 th epoch. Note that the higher overall training loss is due to the fact that the loss is weighted but not normalised. The model which yields the lowest validation loss is saved during training.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="3">Explainer Modules</head><p>In this Section, we briefly describe the three explainer modules (LIME, Grad-CAM and Kernel SHAP) that we have selected to compare in this work, based on their popularity in relevant literature.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="3.1">LIME</head><p>LIME (local interpretable model-agnostic explanations) <ref type="bibr" target="#b10">[11]</ref> aims to strike a balance between interpretability and model fidelity by minimising the following equation:</p><formula xml:id="formula_0">ξ(x) = argmin g∈G L(f, g, π x ) + Ω(g) (<label>1</label></formula><formula xml:id="formula_1">)</formula><p>where f is the black box model; g is the explainable model used, in this case a ridge regression model; and Ω(g) is a measure of complexity of the explainable model; π x is the kernel function that transforms an array of distances into an array of proximity values between input x and sampled instances in Z:</p><formula xml:id="formula_2">π x (z) = e −d 2 σ 2 (2)</formula><p>where d is the distance between the sampled instance and the input and σ is a parameter for the width of the kernel. The kernel function is then used to weight the loss function between the original model and the linear model:</p><formula xml:id="formula_3">L(f, g, π x ) = z,z ∈Z π x (z)(f (z) − g(z )) 2<label>(3)</label></formula><p>To put it more intuitively, in order to approximate a non-linear model without making any assumptions about it, the algorithm takes samples of perturbed instances z and z ∈ Z around input x and its explaninable version x . Then use the original CNN model to generate a prediction target f (z) to train the explainable model g(z ) using the weighted loss function from equation 3.</p><p>When applied to a CNN model, LIME regards an explainable version of an image to be a binary vector containing zeros and ones. The image is first segmented into superpixels, which are groups of pixels with common characteristics like intensity or colour. Hence zero means that the superpixel is "switched off" and one means that it is "switched on". The perturbed instances are obtained by using a fair coin toss to generate sets of zeros and ones, resulting in images with different missing patches. The features (i.e. superpixels) with the highest positive coefficients in the linear model contributes the most to the predicted class and vice versa.</p><p>As a demonstration, Figure <ref type="figure" target="#fig_3">5</ref> is generated using the open source LIME implementation with its default parameters. Some drawbacks can be quickly spotted. First there is no indication of the degree of influence that a superpixel can have on the final prediction. If the third image is directly displayed, one cannot be certain that the green patch covering the lesion contributed the most. The number of superpixels included in the explanation is also arbitrary, dependent on the size of the lesion. Moreover, there are the many parameters that need to be chosen heuristically, like the segmentation method, kernel width and distance metric. The default setting here seems to give a reasonable coverage of the lesion, but further investigation is needed on lesions with more complicated pigmentation networks.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="3.2">Grad-CAM</head><p>Grad-CAM (gradient class activation mapping) <ref type="bibr" target="#b11">[12]</ref> is a generalised version of CAM. In CAM, the method is designed for a specific type of CNN architecture where the global average pooling layer directly feeds into a softmax layer. Whereas in Grad-CAM, any convolution layer can be examined by first calculating the gradient using back propagation then using global average pooling to assign weights to each feature map output in that layer (Eq. 4). </p><formula xml:id="formula_4">a c k = 1 Z i j ∂y c ∂A k ij (4) L c Grad−CAM = ReLU ( k a c k A k ) (5)</formula><p>In the above equation, Z is the number of pixels, y c is the class score and A k ij is the feature map activation of feature map k. The feature map outputs can now be weighted and summed before being passed through a ReLU function (Eq. 5). The ReLU function makes sure that only positive contributions to the class are displayed. The level of detail in these saliency maps are determined by the convolutional layer examined (figure <ref type="figure">6</ref>). The closer the layer is to the fully-connected layers, the more accurate these maps are, but also more blurred. Fig. <ref type="figure">6</ref>: Grad-CAM from the three max pooling layers in the network.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="3.3">Kernel SHAP</head><p>Kernel SHAP <ref type="bibr" target="#b7">[8]</ref> is LIME plus "Shapley additive explanations". Here, "kernel" refers to the kernel function π x in equation 3. The difference being that here it is modified to retrieve Shapley values <ref type="bibr" target="#b12">[13]</ref> (equation 6) and used to weight the same loss function in equation 3.</p><formula xml:id="formula_5">Ω(g) = 0, π x (z) = M − 1 M |z | |z | (M − |z |) . (<label>6</label></formula><formula xml:id="formula_6">)</formula><p>Here M is the number of simplified features obtained using a debiased LASSO <ref type="bibr" target="#b9">[10]</ref>. The rest of the algorithm works mostly the same as LIME. The theoretical benefits of using Shapley values are extensively explained in the original paper <ref type="bibr" target="#b12">[13]</ref>. For this particular application, the immediate improvement from LIME is that there are significantly fewer parameters to fine tune; and the explanation covers the whole image with clear indication of degree of influence. Both characteristics make it easier to compare different explanations against one another (Figure <ref type="figure">7</ref>). The main downside is that calculating Shapley values are expensive and slow: with the same number of samples taken, kernel SHAP on average took twice as long as LIME. Fig. <ref type="figure">7</ref>: Kernel SHAP for the top three predictions, taking 1000 samples.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="4">Evaluation</head><p>There has been mention in recent literature regarding the importance of investigating fidelity, consistency, and sensitivity of deep learned features <ref type="bibr" target="#b18">[19]</ref> <ref type="bibr" target="#b2">[3]</ref>. However, there are currently no standardised metrics to evaluate explainability of deep networks. Furthermore, for medical applications, the clinical relevance of such methods are arguably equally important. In addition, given the modelagnostic and post-hoc nature of the three explainer modules chosen in the current work, they can be examined through grouping similar instances together to gain an intuition regarding their behaviour.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="4.1">Consistency</head><p>Consistency means that the results can be reproduced under same experimental conditions. LIME and kernel SHAP are both sampling based methods and have multiple parameters that need to be determined depending on the data and the application. These parameters have the most effect on the consistency of the explanations and subsequently the ability to accurately test the fidelity and sensitivity in later sections.</p><p>The original open source implementation of LIME has a number of parameters that the user can toggle to best suit the application, while kernel SHAP has a more rigid implementation. Ideally, LIME parameters will match kernel SHAP as close as possible. For example, both methods use segmented superpixels as features. In LIME, the default segmentation algorithm is quickshift <ref type="bibr" target="#b16">[17]</ref>, while kernel SHAP uses SLIC <ref type="bibr" target="#b1">[2]</ref>. In order to compare the two methods, they have to use the same set of features generated by the same segmentation algorithm. However, as findings in <ref type="bibr" target="#b13">[14]</ref> show that for LIME, the SLIC segmentation resulted in the lowest weights compared to quickshift and Felzenszwalb <ref type="bibr" target="#b4">[5]</ref> when images are segmented into the same number of superpixels. This can create problems in terms of consistency since lower weights are more sensitive to small changes between two sampling sessions. When quickshift is used, the saliency maps generated did not change when repeated multiple times with 1000 samples. But when SLIC is used, the superpixel explanations changed during multiple runs even when 5000 samples were taken (Figure <ref type="figure">8</ref>). Fig. <ref type="figure">8</ref>: LIME saliency maps using 100 SLIC superpixels with 5000 samples. Fig. <ref type="figure">9</ref>: Kernel SHAP saliency maps using 100 SLIC superpixels, 5000 samples. This is the same for kernel SHAP (Figure <ref type="figure">9</ref>), though visually the change is less noticeable. Regions within the pigmented lesion with high Shapley values do not go from having a positive value to a negative one. Regions in the surrounding skin area with low weights do change. Of course the number of samples taken can be increased even higher to reduce the inaccuracies of the linear approximation but that would increase the computational cost. Nevertheless, making the size of the superpixels larger can also guarantee a more stable result. This is because smaller superpixels do not cover enough area in the lesion for them to capture much useful information for classification. As a result, the weights assigned to them become small. Reducing the SLIC segments to 50 in this case have shown to improve consistency when taking 5000 samples for both LIME and kernel SHAP while preserving enough details in pigmentation, shape, etc (Figure <ref type="figure" target="#fig_4">10</ref>). The other important parameter to set is the feature selection method used. The default method used in LIME so far is referred to as "highest weights". It selects the highest product of absolute weight times original data point when learning with all the features. It is quite obvious that this method is not ideal for lesion classification because it will give a massive weight boost for light, non-pigmented superpixels with high values for data points and therefore potentially skew the result. LIME can match kernel SHAP and use LASSO feature selection <ref type="bibr" target="#b9">[10]</ref> but it negatively impacted the consistency when all other parameters are kept the same. This is due to the fact that LIME fits the features to a ridge regression model for approximation, which already has built-in regularisation. An extra step of feature selection will reduce the weights even lower and make them unstable. Kernel SHAP uses a weighted least square loss function and hence the feature selection beforehand is necessary. Other options include "forward selection", in which features are added iteratively until the addition of a new feature does not decrease the loss. However, this process is order sensitive and hence inconsistencies are still present in repeated runs. Thus, all features are selected when LIME is used to ensure maximum stability of the result. A larger feature set supposedly will increase the computational cost but the increase observed is far less than the cost of increasing the samples taken.</p><p>Various distance metric can also be tested for LIME. In the original paper, the authors suggested using cosine distance for textual data and Euclidean (L2) distance for images. When tested, cosine distance generated far more consistent results than euclidean distance. Euclidean distance might have performed well for low dimensional datasets but in this case with 50 features, this no longer holds true. As shown in Figure <ref type="figure" target="#fig_0">16</ref> cosine distances also gives slightly higher feature weights overall and ensures more stability. Lastly, inconsistencies can still occur using these optimised parameters. In those cases, the inconsistency itself signals that a larger area in the image is contributing to the classification (e.g. a large lesion). When this happens, selecting a suitably larger number of superpixels included in the explanation becomes more important.  </p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="4.2">Fidelity</head><p>Fidelity commonly refers to the ability of an explanation method to approximate the black box model correctly. It is usually tested by perturbing the model through random initialisation of weights and checking how the explanation changes with it. This is true for all three methods that are being examined. However, it is an insufficient confirmation on the fidelity of these methods. When an explanation is generated, there are three possible reasons for its quality: whether the method used is truthful to the model; whether the model has a high accuracy; or a combination of the two.</p><p>Low accuracy means that the model has not learned the underlying data representation properly and the associated explanations will thus be less meaningful and harder to understand. This model has a balanced accuracy of 0.64, but individually some classes have a higher accuracy and some are lower. Average model performance can be artificially increased if only classes with high accuracy are chosen. Among these classes, predictions with high confidence are used to generate saliency maps, to ensure that the chosen instances are highly representative of what the model believes to have the characteristics driving its prediction. Then the only variable in the quality of these explanation is the fidelity of the methods. Therefore, any test on these methods in this section will prioritise images belonging to class df, nv and vasc with at least 99% prediction confidence. Since all the methods are tested on the same model, the explanations across all three methods will be similar if they are indeed accurate approximations. Explanations from the same class should also be similar. Because if the prediction does not change over small input variations, yet the explanations change drastically, it is very likely the explanation method is inaccurate.</p><p>An initial inspection of Figure <ref type="figure" target="#fig_6">11a</ref> and 11c shows that LIME and kernel SHAP are visually similar simply because the same image segmentation method is used. A closer look reveals that 3 out of the 9 examples do not agree with each other: two from the class df and one from class vasc. When both methods are run repeatedly on these images, the results are very inconsistent, indicating low weights over the entire map. This implies that many features (i.e. superpixels) are equally important for the prediction. The images in class df support this idea as the lesions have light pigmentation and span a large area in the images. Partial feature overlap between methods during repeated runs also back up this intuition. However, this is not the case for the image in class vasc. Multiple kernel SHAP results all included a singular patch on the oval shaped pigmented lesion (similar to the other instances in this class), despite small changes in the surrounding skin area. However, among multiple LIME results, the same superpixel is only activated half of the time (Figure <ref type="figure" target="#fig_0">12</ref>). The inconsistency of LIME explanations might be the reason for this behaviour. The fact that a ringshaped superpixel (not present in other LIME explanations of the same class) is just as likely to be activated shows that the inconsistency is hampering the ability to approximate the black box model accurately.</p><p>Grad-CAM is a gradient-based method commonly used for localising points of interest in a CNN when making a prediction. It is shown to be successful in 8 out of 9 images in the examples, highlighting correctly the lesion areas. However, Grad-CAM failed to generate a saliency map for one of the presented images in the figure. The gradient from the last dense layer into the final convolutional layer has become zero because the softmax activation function has become completely saturated. Another cause for concern is that the Grad-CAM saliency maps seem to activate in areas where both LIME and kernel SHAP has deemed to be negatively contributing to the prediction.  </p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="4.3">Sensitivity</head><p>Explanations for different instances should be different under the same model, using the same explanation method. If a method offers the same explanation when the user changes either the input image or its predictive class, then the explanation can be considered useless for decision support. For example, image in Fig. <ref type="figure" target="#fig_8">13</ref>(a) was misclassified as class nv with a confidence of 0.75, followed by the correct class vasc with confidence 0.24. Its saliency maps (Figure <ref type="figure" target="#fig_8">13a</ref>) shows that all three methods generated different looking maps when asked to explain the top prediction and the correct one. LIME changed the location and the color of the superpixels while the other two generated saliency maps that showed a higher activation for the correct class. Again, LIME and kernel SHAP agrees in terms of the superpixels supporting and rejecting the classification. Grad-CAM also shifted its most region from the upper right towards the bottom, overlapping the regions covered by the other two methods.</p><p>However, if the image is misclassified with a high confidence, like in Frg. 13(b), where the correct class nv is ranked 4th on prediction confidence (0.002) while the top prediction, class df, has a confidence of 0.95, the saliency maps are less helpful. As shown in figure <ref type="figure" target="#fig_8">13b</ref>, the Grad-CAM maps are extremely similar and for kernel SHAP the weights on the superpixels are too close to zero for the correct class to provide any useful insight. Only LIME is able to give a distinctly different explanation for class nv. </p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="4.4">Clinical relevance</head><p>Dermatologists consider certain clinical features during the classification of malignant or benign skin lesions. A popular example is the ABCDE features set <ref type="bibr" target="#b5">[6]</ref> presented in Fig. <ref type="figure" target="#fig_9">14</ref>. In this approach, Asymmetry, Border irregularity, Color variation, Diameter and Evolving or changing of a lesion region are taken into consideration for determining its malignancy. We expect some of these criteria to manifest themselves in saliency map explanations. In HAM10000, class mel and bcc are cancerous and akiec can develop into a cancerous lesion, the rest are all benign.</p><p>Recall the confusion matrix (Figure <ref type="figure" target="#fig_2">4</ref>), 42% of class mel and 37% of class bcc is misclassified as benign lesions respectively. As the ABCD rule is most commonly used for seperating benign and cancerous lesions, especially melanoma, the instances where class mel is misclassified as class nv are examined to identify how each methods can or cannot reveal potential reasons for failure in the model.</p><p>For LIME and kernel SHAP, the image segmentation algorithm dictates the appearance of the explanations. The SLIC segmentation has a parameter that can be chosen to prioritise colour proximity over spatial proximity. Hence the explanation will automatically be made up of uniform coloured patches. As a consequence, the borders of lesions and their overall shape will also be marked out, making it easier to compare to the ABCD rule.</p><p>Interestingly, LIME and Kernel SHAP are no longer producing similar results here. There are direct contradictions in Figure <ref type="figure" target="#fig_10">15a</ref>, most prominently featured in the explanations for class mel. The observations so far have suggested that LIME and kernel SHAP offer similar level of fidelity with LIME being more inconsistent. However, by comparing the kernel value in terms of number of features in a sampled instance for the two methods (figure <ref type="figure" target="#fig_0">16</ref>), it becomes obvious that kernel SHAP is not the best for local accuracy in this application. The Shapley kernel assigns high values both when there are very few and when there are many features in a sample. The logic behind it being that when a single feature is studied in isolation its contribution to the model can be best measured. To put in context, samples containing only individual superpixels will be regarded just as important as samples containing all but one superpixel. Given that the size of the superpixels are no larger than the whole lesion, the target class used to train the linear approximation is most likely inaccurate because the original model is only fed a partial lesion region. But under kernel SHAP these instances are given the most weight. For figure <ref type="figure" target="#fig_10">15a</ref>, the red region marked out by kernel SHAP was fed through the original CNN model and the classifier outcome decided against class mel. Both LIME and kernel SHAP do not account for feature dependence, which makes it impossible for them to capture colour inconsistency and asymmetry when features are examined separately. Therefore, it is no surprise that explanations generated using LIME with activated superpixels covering the entirety or the majority of the lesion region correlate to the correct class mel. Fig. <ref type="figure" target="#fig_0">16</ref>: Comparison of kernel value against the size of the feature set in a sampled instance <ref type="bibr" target="#b7">[8]</ref>.</p><p>Clearly the CNN has learned the correct representation of class mel and class nv, if the explanation method is telling the practitioner that the model produces the right outcome when the whole area of the lesion is accounted for. However, the model eventually made its decision based on partial information. It signals that a larger receptive field is needed and hence a deeper network can be more effective. On the other hand, image augmentation by zooming and cropping can also have an impact.</p><p>Grad-CAM is proven to be hard to interpret. A sweeping generalisation can be made that its saliency maps either fall in to the category of a spotty activation pattern over the lesion region, or a more even activation pattern with continuous edges. However, the extent of clinical relevance halts here as the last max pooling layer is a fairly coarse representation of the original image. This will only be magnified when deeper networks are used. But if layers closer to the input is chosen to generate the saliency map, then Grad-CAM will be reduced to a glorified edge detector. There is also no correlation between activation level and different class labels. The lack of sensitivity (figure <ref type="figure" target="#fig_10">15b</ref>) to different class labels also hampers its ability to provide useful information.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="5">Conclusion</head><p>In this work, we compare and evaluate several explanation-visualization modules against a set of criterion to serve as guideline for machine learning practitioners who wish to add interpretability to deep learning tasks. Experiments were performed using a baseline CNN trained on the benchmark HAM10000 dataset for automated skin lesion classification task. For the first time, detailed experimental results are presented to formalize several criteria like fidelity, consistency, sensitivity and clinical relevance. The authors are of the opinion that the results obtained will be of immediate relevance to readers who value the critical role of explainability in deep learning, particularly in areas of high social consequence like healthcare.</p></div><figure xmlns="http://www.tei-c.org/ns/1.0" xml:id="fig_0"><head>Fig. 1 :</head><label>1</label><figDesc>Fig. 1: Examples of 7 classes of pigmented lesions in the HAM10000 dataset</figDesc></figure>
<figure xmlns="http://www.tei-c.org/ns/1.0" xml:id="fig_1"><head>Fig. 3 :</head><label>3</label><figDesc>Fig. 3: Training accuracy (a) and validation loss (b) over 100 epochs.</figDesc><graphic coords="4,152.06,116.83,311.25,116.96" type="bitmap" /></figure>
<figure xmlns="http://www.tei-c.org/ns/1.0" xml:id="fig_2"><head>Fig. 4 :</head><label>4</label><figDesc>Fig. 4: Class confusion matrix.</figDesc><graphic coords="4,307.68,281.35,172.92,147.75" type="bitmap" /></figure>
<figure xmlns="http://www.tei-c.org/ns/1.0" xml:id="fig_3"><head>Fig. 5 :</head><label>5</label><figDesc>Fig. 5: LIME with 1, 2 and 3 superpixels. Green means positive contribution.</figDesc><graphic coords="6,169.35,116.83,276.67,89.75" type="bitmap" /></figure>
<figure xmlns="http://www.tei-c.org/ns/1.0" xml:id="fig_4"><head>Fig. 10 :</head><label>10</label><figDesc>Fig. 10: LIME and kernel SHAP saliency maps generated using 50 SLIC superpixels with 5000 samples.</figDesc><graphic coords="9,316.32,278.53,155.62,83.80" type="bitmap" /></figure>
<figure xmlns="http://www.tei-c.org/ns/1.0" xml:id="fig_5"><head></head><label></label><figDesc>(a) LIME saliency maps with 5 superpixels and sampled 5000 times. (b) Grad-CAM saliency maps from the last max pooling layer. (c) Kernel SHAP saliency maps with 50 superpixels and sampled 5000 times.</figDesc></figure>
<figure xmlns="http://www.tei-c.org/ns/1.0" xml:id="fig_6"><head>Fig. 11 :</head><label>11</label><figDesc>Fig. 11: Examples of saliency maps generated in classes with high accuracies and images with high prediction confidence in order to test the fidelity.</figDesc><graphic coords="10,221.22,402.02,172.91,181.81" type="bitmap" /></figure>
<figure xmlns="http://www.tei-c.org/ns/1.0" xml:id="fig_7"><head></head><label></label><figDesc>(a) Saliency maps generated for predicted class nv and correct class vasc. (b) Saliency maps generated for predicted class df and correct class nv.</figDesc></figure>
<figure xmlns="http://www.tei-c.org/ns/1.0" xml:id="fig_8"><head>Fig. 13 :</head><label>13</label><figDesc>Fig. 13: Examples of saliency maps for misclassified images in order to test the sensitivity the explanantion methods to change in class labels.</figDesc><graphic coords="12,311.53,329.77,160.98,114.39" type="bitmap" /></figure>
<figure xmlns="http://www.tei-c.org/ns/1.0" xml:id="fig_9"><head>Fig. 14 :</head><label>14</label><figDesc>Fig. 14: ABCD features used in diagnosis of skin lesions in dermatology.</figDesc><graphic coords="13,152.06,282.58,311.23,123.17" type="bitmap" /></figure>
<figure xmlns="http://www.tei-c.org/ns/1.0" xml:id="fig_10"><head>Fig. 15 :</head><label>15</label><figDesc>Fig. 15: Saliency maps for images from class mel misclassified as class nv, with prediction confidence above 90%.</figDesc><graphic coords="14,134.96,245.96,164.26,116.75" type="bitmap" /></figure>
		</body>
		<back>
			<div type="references">

				<listBibl>

<biblStruct xml:id="b0">
	<monogr>
		<title level="m" type="main">Skin cancers</title>
		<ptr target="https://www.who.int/uv/faq/skincancer/en/index1.html" />
		<imprint>
			<date type="published" when="2017-10-12">Oct 2017. 12.11.2019</date>
		</imprint>
	</monogr>
</biblStruct>

<biblStruct xml:id="b1">
	<monogr>
		<title level="m" type="main">Slic superpixels</title>
		<author>
			<persName><forename type="first">Radhakrishna</forename><surname>Achanta</surname></persName>
		</author>
		<author>
			<persName><forename type="first">Appu</forename><surname>Shaji</surname></persName>
		</author>
		<author>
			<persName><forename type="first">Kevin</forename><surname>Smith</surname></persName>
		</author>
		<author>
			<persName><forename type="first">Aurélien</forename><surname>Lucchi</surname></persName>
		</author>
		<author>
			<persName><forename type="first">Pascal</forename><surname>Fua</surname></persName>
		</author>
		<author>
			<persName><forename type="first">Sabine</forename><surname>Süsstrunk</surname></persName>
		</author>
		<imprint>
			<date type="published" when="2010">2010</date>
			<biblScope unit="page">15</biblScope>
		</imprint>
	</monogr>
</biblStruct>

<biblStruct xml:id="b2">
	<analytic>
		<title level="a" type="main">Machine learning interpretability: A survey on methods and metrics</title>
		<author>
			<persName><forename type="first">V</forename><surname>Diogo</surname></persName>
		</author>
		<author>
			<persName><forename type="first">Eduardo</forename><forename type="middle">M</forename><surname>Carvalho</surname></persName>
		</author>
		<author>
			<persName><forename type="first">Jaime</forename><forename type="middle">S</forename><surname>Pereira</surname></persName>
		</author>
		<author>
			<persName><surname>Cardoso</surname></persName>
		</author>
	</analytic>
	<monogr>
		<title level="j">Electronics</title>
		<imprint>
			<biblScope unit="volume">8</biblScope>
			<biblScope unit="issue">8</biblScope>
			<biblScope unit="page">832</biblScope>
			<date type="published" when="2019">2019</date>
		</imprint>
	</monogr>
</biblStruct>

<biblStruct xml:id="b3">
	<analytic>
		<title level="a" type="main">Dermatologist-level classification of skin cancer with deep neural networks</title>
		<author>
			<persName><forename type="first">Andre</forename><surname>Esteva</surname></persName>
		</author>
		<author>
			<persName><forename type="first">Brett</forename><surname>Kuprel</surname></persName>
		</author>
		<author>
			<persName><forename type="first">Roberto</forename><forename type="middle">A</forename><surname>Novoa</surname></persName>
		</author>
		<author>
			<persName><forename type="first">Justin</forename><surname>Ko</surname></persName>
		</author>
		<author>
			<persName><forename type="first">Susan</forename><forename type="middle">M</forename><surname>Swetter</surname></persName>
		</author>
		<author>
			<persName><forename type="first">Helen</forename><forename type="middle">M</forename><surname>Blau</surname></persName>
		</author>
		<author>
			<persName><forename type="first">Sebastian</forename><surname>Thrun</surname></persName>
		</author>
	</analytic>
	<monogr>
		<title level="j">Nature</title>
		<imprint>
			<biblScope unit="volume">542</biblScope>
			<biblScope unit="page" from="115" to="118" />
			<date type="published" when="2017">7639. 2017</date>
		</imprint>
	</monogr>
</biblStruct>

<biblStruct xml:id="b4">
	<analytic>
		<title level="a" type="main">Efficient graph-based image segmentation</title>
		<author>
			<persName><forename type="first">F</forename><surname>Pedro</surname></persName>
		</author>
		<author>
			<persName><forename type="first">Daniel</forename><forename type="middle">P</forename><surname>Felzenszwalb</surname></persName>
		</author>
		<author>
			<persName><surname>Huttenlocher</surname></persName>
		</author>
	</analytic>
	<monogr>
		<title level="j">International journal of computer vision</title>
		<imprint>
			<biblScope unit="volume">59</biblScope>
			<biblScope unit="issue">2</biblScope>
			<biblScope unit="page" from="167" to="181" />
			<date type="published" when="2004">2004</date>
		</imprint>
	</monogr>
</biblStruct>

<biblStruct xml:id="b5">
	<analytic>
		<title level="a" type="main">Diagnosing malignant melanoma in ambulatory care: a systematic review of clinical prediction rules</title>
		<author>
			<persName><forename type="first">Emma</forename><surname>Harrington</surname></persName>
		</author>
		<author>
			<persName><forename type="first">Barbara</forename><surname>Clyne</surname></persName>
		</author>
		<author>
			<persName><forename type="first">Nieneke</forename><surname>Wesseling</surname></persName>
		</author>
		<author>
			<persName><forename type="first">Harkiran</forename><surname>Sandhu</surname></persName>
		</author>
		<author>
			<persName><forename type="first">Laura</forename><surname>Armstrong</surname></persName>
		</author>
		<author>
			<persName><forename type="first">Holly</forename><surname>Bennett</surname></persName>
		</author>
		<author>
			<persName><forename type="first">Tom</forename><surname>Fahey</surname></persName>
		</author>
	</analytic>
	<monogr>
		<title level="j">BMJ Open</title>
		<imprint>
			<biblScope unit="volume">7</biblScope>
			<biblScope unit="issue">3</biblScope>
			<date type="published" when="2017">2017</date>
		</imprint>
	</monogr>
</biblStruct>

<biblStruct xml:id="b6">
	<analytic>
		<title level="a" type="main">Adam: A method for stochastic optimization</title>
		<author>
			<persName><forename type="first">P</forename><surname>Diederik</surname></persName>
		</author>
		<author>
			<persName><forename type="first">Jimmy</forename><surname>Kingma</surname></persName>
		</author>
		<author>
			<persName><surname>Ba</surname></persName>
		</author>
	</analytic>
	<monogr>
		<title level="m">International Conference on Learning Representations (ICLR)</title>
				<imprint>
			<date type="published" when="2015">2015</date>
		</imprint>
	</monogr>
</biblStruct>

<biblStruct xml:id="b7">
	<monogr>
		<title level="m" type="main">A unified approach to interpreting model predictions</title>
		<author>
			<persName><forename type="first">Scott</forename><surname>Lundberg</surname></persName>
		</author>
		<author>
			<persName><forename type="first">Su-In</forename><surname>Lee</surname></persName>
		</author>
		<imprint>
			<date type="published" when="2017">2017</date>
		</imprint>
	</monogr>
</biblStruct>

<biblStruct xml:id="b8">
	<analytic>
		<title level="a" type="main">Visualizing convolutional neural networks to improve decision support for skin lesion classification</title>
		<author>
			<persName><forename type="first">Pieter</forename><surname>Van Molle</surname></persName>
		</author>
		<author>
			<persName><forename type="first">Miguel</forename><forename type="middle">De</forename><surname>Strooper</surname></persName>
		</author>
		<author>
			<persName><forename type="first">Tim</forename><surname>Verbelen</surname></persName>
		</author>
		<author>
			<persName><forename type="first">Bert</forename><surname>Vankeirsbilck</surname></persName>
		</author>
		<author>
			<persName><forename type="first">Pieter</forename><surname>Simoens</surname></persName>
		</author>
		<author>
			<persName><forename type="first">Bart</forename><surname>Dhoedt</surname></persName>
		</author>
	</analytic>
	<monogr>
		<title level="s">Lecture Notes in Computer Science</title>
		<imprint>
			<biblScope unit="page" from="115" to="123" />
			<date type="published" when="2018">2018</date>
		</imprint>
	</monogr>
	<note>Understanding and Interpreting Machine Learning in Medical Image Computing Applications</note>
</biblStruct>

<biblStruct xml:id="b9">
	<analytic>
		<title level="a" type="main">Lasso: A feature selection technique in predictive modeling for machine learning</title>
		<author>
			<persName><forename type="first">R</forename><surname>Muthukrishnan</surname></persName>
		</author>
		<author>
			<persName><forename type="first">R</forename><surname>Rohini</surname></persName>
		</author>
	</analytic>
	<monogr>
		<title level="m">IEEE International Conference on Advances in Computer Applications (ICACA)</title>
				<imprint>
			<date type="published" when="2016">2016</date>
		</imprint>
	</monogr>
</biblStruct>

<biblStruct xml:id="b10">
	<analytic>
		<title level="a" type="main">why should i trust you?&quot;: Explaining the predictions of any classifier</title>
		<author>
			<persName><forename type="first">Marco</forename><surname>Tulio Ribeiro</surname></persName>
		</author>
		<author>
			<persName><forename type="first">Sameer</forename><surname>Singh</surname></persName>
		</author>
		<author>
			<persName><forename type="first">Carlos</forename><surname>Guestrin</surname></persName>
		</author>
	</analytic>
	<monogr>
		<title level="m">Proceedings of the 22nd ACM SIGKDD International Conference on Knowledge Discovery and Data Mining, KDD &apos;16</title>
				<meeting>the 22nd ACM SIGKDD International Conference on Knowledge Discovery and Data Mining, KDD &apos;16<address><addrLine>New York, NY, USA</addrLine></address></meeting>
		<imprint>
			<publisher>Association for Computing Machinery</publisher>
			<date type="published" when="2016">2016</date>
			<biblScope unit="page" from="1135" to="1144" />
		</imprint>
	</monogr>
</biblStruct>

<biblStruct xml:id="b11">
	<analytic>
		<title level="a" type="main">Grad-cam: Visual explanations from deep networks via gradient-based localization</title>
		<author>
			<persName><forename type="first">R</forename><surname>Ramprasaath</surname></persName>
		</author>
		<author>
			<persName><forename type="first">Michael</forename><surname>Selvaraju</surname></persName>
		</author>
		<author>
			<persName><forename type="first">Abhishek</forename><surname>Cogswell</surname></persName>
		</author>
		<author>
			<persName><forename type="first">Ramakrishna</forename><surname>Das</surname></persName>
		</author>
		<author>
			<persName><forename type="first">Devi</forename><surname>Vedantam</surname></persName>
		</author>
		<author>
			<persName><forename type="first">Dhruv</forename><surname>Parikh</surname></persName>
		</author>
		<author>
			<persName><surname>Batra</surname></persName>
		</author>
	</analytic>
	<monogr>
		<title level="j">International Journal of Computer Vision</title>
		<imprint>
			<date type="published" when="2019-10">Oct 2019</date>
		</imprint>
	</monogr>
</biblStruct>

<biblStruct xml:id="b12">
	<analytic>
		<title level="a" type="main">A value for n-person games</title>
		<author>
			<persName><forename type="first">Lloyd</forename><forename type="middle">S</forename><surname>Shapley</surname></persName>
		</author>
	</analytic>
	<monogr>
		<title level="m">The Shapley Value</title>
				<imprint>
			<date type="published" when="1988">1988</date>
			<biblScope unit="page" from="31" to="40" />
		</imprint>
	</monogr>
</biblStruct>

<biblStruct xml:id="b13">
	<analytic>
		<title level="a" type="main">Local interpretable model-agnostic explanations for classification of lymph node metastases</title>
		<author>
			<persName><forename type="first">Iam</forename><surname>Palatnik</surname></persName>
		</author>
		<author>
			<persName><forename type="first">De</forename><surname>Sousa</surname></persName>
		</author>
		<author>
			<persName><forename type="first">Marley</forename></persName>
		</author>
		<author>
			<persName><forename type="first">Maria Bernardes Rebuzzi</forename><surname>Vellasco</surname></persName>
		</author>
		<author>
			<persName><forename type="first">Eduardo</forename><surname>Costa</surname></persName>
		</author>
		<author>
			<persName><forename type="first">Da</forename><surname>Silva</surname></persName>
		</author>
	</analytic>
	<monogr>
		<title level="j">Sensors</title>
		<imprint>
			<biblScope unit="volume">19</biblScope>
			<biblScope unit="issue">13</biblScope>
			<biblScope unit="page">2969</biblScope>
			<date type="published" when="2019-05">May 2019</date>
		</imprint>
	</monogr>
</biblStruct>

<biblStruct xml:id="b14">
	<monogr>
		<title level="m" type="main">A survey on explainable artificial intelligence (xai): Towards medical xai</title>
		<author>
			<persName><forename type="first">Erico</forename><surname>Tjoa</surname></persName>
		</author>
		<author>
			<persName><forename type="first">Cuntai</forename><surname>Guan</surname></persName>
		</author>
		<idno>ArXiv, abs/1907.07374</idno>
		<imprint>
			<date type="published" when="2019">2019</date>
		</imprint>
	</monogr>
</biblStruct>

<biblStruct xml:id="b15">
	<monogr>
		<title level="m" type="main">The HAM10000 dataset, a large collection of multi-source dermatoscopic images of common pigmented skin lesions</title>
		<author>
			<persName><forename type="first">Philipp</forename><surname>Tschandl</surname></persName>
		</author>
		<imprint>
			<date type="published" when="2018">2018</date>
		</imprint>
	</monogr>
</biblStruct>

<biblStruct xml:id="b16">
	<monogr>
		<title level="m" type="main">Quick shift and kernel methods for mode seeking</title>
		<author>
			<persName><forename type="first">Andrea</forename><surname>Vedaldi</surname></persName>
		</author>
		<author>
			<persName><forename type="first">Stefano</forename><surname>Soatto</surname></persName>
		</author>
		<imprint>
			<date type="published" when="2008">10 2008</date>
			<biblScope unit="volume">5305</biblScope>
			<biblScope unit="page" from="705" to="718" />
		</imprint>
	</monogr>
</biblStruct>

<biblStruct xml:id="b17">
	<analytic>
		<title level="a" type="main">Counterfactual explanations without opening the black box: Automated decisions and the gdpr</title>
		<author>
			<persName><forename type="first">Sandra</forename><surname>Wachter</surname></persName>
		</author>
		<author>
			<persName><forename type="first">Brent</forename><surname>Mittelstadt</surname></persName>
		</author>
		<author>
			<persName><forename type="first">Chris</forename><surname>Russell</surname></persName>
		</author>
	</analytic>
	<monogr>
		<title level="j">SSRN Electronic Journal</title>
		<imprint>
			<date type="published" when="2017">2017</date>
		</imprint>
	</monogr>
</biblStruct>

<biblStruct xml:id="b18">
	<monogr>
		<title level="m" type="main">On the (in)fidelity and sensitivity for explanations</title>
		<author>
			<persName><forename type="first">Chih-Kuan</forename><surname>Yeh</surname></persName>
		</author>
		<author>
			<persName><forename type="first">Cheng-Yu</forename><surname>Hsieh</surname></persName>
		</author>
		<author>
			<persName><forename type="first">Arun</forename><surname>Sai Suggala</surname></persName>
		</author>
		<author>
			<persName><forename type="first">David</forename><forename type="middle">I</forename><surname>Inouye</surname></persName>
		</author>
		<author>
			<persName><forename type="first">Pradeep</forename><surname>Ravikumar</surname></persName>
		</author>
		<imprint>
			<date type="published" when="2019">2019</date>
		</imprint>
	</monogr>
</biblStruct>

<biblStruct xml:id="b19">
	<analytic>
		<title level="a" type="main">Deep neural network or dermatologist?</title>
		<author>
			<persName><forename type="first">Kyle</forename><surname>Young</surname></persName>
		</author>
		<author>
			<persName><forename type="first">Gareth</forename><surname>Booth</surname></persName>
		</author>
		<author>
			<persName><forename type="first">Becks</forename><surname>Simpson</surname></persName>
		</author>
		<author>
			<persName><forename type="first">Reuben</forename><surname>Dutton</surname></persName>
		</author>
		<author>
			<persName><forename type="first">Sally</forename><surname>Shrapnel</surname></persName>
		</author>
	</analytic>
	<monogr>
		<title level="s">Lecture Notes in Computer Science</title>
		<imprint>
			<biblScope unit="page" from="48" to="55" />
			<date type="published" when="2019">2019</date>
		</imprint>
	</monogr>
</biblStruct>

				</listBibl>
			</div>
		</back>
	</text>
</TEI>
