Introduction
Deep learning has revolutionized medical imaging, particularly in dermatology, where automated systems can now assist in classifying skin lesions. However, these models often operate as "black boxes," providing predictions without explaining the underlying logic. In high-stakes clinical environments, this lack of transparency hinders trust and complicates regulatory compliance, such as the "right to explanation" suggested by frameworks like the GDPR. This study evaluates three prominent interpretability tools—LIME, Grad-CAM, and Kernel SHAP—to determine their efficacy in explaining automated skin cancer diagnoses.
Methodology
The researchers trained a standard Convolutional Neural Network (CNN) to serve as the baseline for classification. To interpret its decisions, they applied three distinct methodologies:
- LIME (Local Interpretable Model-agnostic Explanations): This tool approximates the model's behavior locally by perturbing the input and training a simpler, linear model on the resulting "superpixels."
- Grad-CAM (Gradient-weighted Class Activation Mapping): A gradient-based method that produces heatmaps by flowing class-specific gradients into the final convolutional layers to highlight influential regions.
- Kernel SHAP (Shapley Additive Explanations): Grounded in cooperative game theory, this method assigns importance values to features (superpixels) based on their contribution to the final prediction.
The explainers were assessed against four criteria: Consistency (reproducibility), Fidelity (truthfulness to the model's logic), Sensitivity (response to class label changes), and Clinical Relevance (alignment with dermatological diagnostic rules).
Dataset and Model Performance
The study utilized the HAM10000 dataset, a benchmark containing 10,015 dermoscopic images across seven lesion categories.
The baseline CNN achieved a balanced accuracy of 0.64. While not state-of-the-art, this performance level provided a realistic scenario for testing how explainers handle both correct and incorrect predictions. The dataset's inherent challenges, such as significant class imbalance (e.g., 6,705 melanocytic nevi vs. 115 dermatofibromas) and artifacts like skin hair, further tested the robustness of the interpretability tools.
Comparative Analysis of Explainer Modules
The evaluation revealed several critical trade-offs between the three methods regarding stability, resolution, and computational cost.
Stability and Segmentation
Both LIME and Kernel SHAP rely heavily on image segmentation into superpixels. The study found that these methods are highly sensitive to the number of segments; too many segments lead to inconsistent explanations across multiple runs. Reducing the segment count (e.g., to 50) was found to stabilize the output while maintaining sufficient diagnostic detail.
Resolution and Saturation in Grad-CAM
Grad-CAM's utility is tied to the architecture's layers. While deeper layers provide more accurate class-specific heatmaps, they often lack high-resolution detail. Conversely, earlier layers act as edge detectors but lack semantic specificity.
Furthermore, Grad-CAM suffers from a "saturation" problem: if the model is extremely confident in a prediction, the gradients may drop to zero, resulting in a blank saliency map.
Computational Efficiency and Debugging
Kernel SHAP, despite its strong theoretical foundation, proved to be computationally expensive, taking twice as long as LIME for the same sample size. For real-time clinical applications, this latency could be a significant drawback. However, LIME excelled in sensitivity tests, making it a superior tool for debugging. It effectively highlighted different features when the model misclassified an image, helping researchers understand the specific features that led to the error.
Conclusion and Future Directions
The study concludes that there is no universal "gold standard" for interpretability in medical imaging. The choice of an explainer module should be driven by the specific needs of the application—whether it be computational speed, theoretical rigor, or debugging capability.
A primary limitation remains the inability of current tools to account for feature dependencies, such as the relationship between color and asymmetry in the ABCD criteria. Future research should focus on developing "clinically-aware" explainers that better align with established dermatological diagnostic frameworks.
Summary updated