Introduction
Deep learning models, particularly Convolutional Neural Networks (CNNs), have demonstrated remarkable proficiency in classifying skin lesions, often rivaling or exceeding the performance of experienced dermatologists. However, these models typically operate as "black boxes," providing diagnostic outputs without transparent reasoning. This lack of interpretability creates a significant "trust gap" in clinical settings. If an AI's diagnosis conflicts with a clinician's judgment, the clinician cannot discern whether the model has identified a subtle malignant pattern or has been misled by irrelevant image artifacts. This study aims to bridge this gap by visualizing the internal feature maps of a CNN to determine if its underlying logic aligns with established clinical criteria, such as the ABCD-score (Asymmetry, Border, Color, and Differential structures).
Methodology
To ensure transparency and avoid the influence of irrelevant features learned from non-medical datasets (e.g., ImageNet), the researchers developed a custom CNN architecture from scratch. The model consists of four convolutional blocks (eight layers total) followed by three fully connected layers.
The visualization strategy involved extracting feature maps from the final convolutional layers. These maps were rescaled to the original image dimensions and overlaid as transparent green heatmaps, where higher activation levels are indicated by darker green regions. This qualitative approach allows for a direct comparison between the network's focus and the features prioritized by dermatologists.
Data and Training
The model was trained using the ISIC Archive, a comprehensive public dataset of dermoscopy images. The training set comprised 12,838 images (11,910 benign and 928 malignant), while a hold-out test set of 600 images (483 benign and 117 malignant) was used for evaluation. Extensive data augmentation—including random cropping, rotation, flipping, and color jittering—was employed to enhance model robustness and generalization.
Results: Emergent Clinical Logic
A key finding of the study is that the CNN naturally developed filters that correspond to clinical features without explicit supervision. Specifically, the network learned to identify lesion borders and internal color non-uniformity, both of which are critical indicators of malignancy.
As shown in Figure 1, specific filters (e.g., 7, 28 and 7, 32) specialized in detecting different segments of the lesion border. Other filters (e.g., 6, 17 and 6, 58) were found to activate strongly on darker, irregular regions within the lesions, mirroring the "Color" component of the ABCD-score.
The "Artifact Trap" and Bias Risk
While the model successfully identified clinical features, it also developed filters for clinically irrelevant artifacts. The researchers observed "artifact filters" that responded to hair, specular reflections, gel applications, and rulers.
The identification of "ruler filters" (Figure 4) highlights a significant risk of bias in medical AI. If malignant lesions in the training data are disproportionately associated with the presence of a ruler (a common practice for suspicious lesions), the model might learn to use the ruler as a proxy for cancer rather than analyzing the lesion itself. This "right answer for the wrong reason" phenomenon underscores the necessity of interpretability in clinical decision support.
Conclusion and Future Directions
The model achieved an AUC score of 0.75, providing a baseline for interpretable skin lesion classification. While the visualizations confirm that CNNs can "speak the same language" as clinicians by identifying borders and color variations, several challenges remain. Current visualizations do not yet establish a causal link between feature detection and final diagnosis, and the model struggled to isolate fine dermatological structures like globules or blood vessels. Future work must focus on mitigating artifact-driven biases and refining the granularity of feature extraction to provide more nuanced and reliable support for dermatological practice.
Summary updated