Abstract
In recent years, large strides have been taken in developing machine learning methods for dermatological applications, supported in part by the success of deep learning (DL). To date, diagnosing diseases from images is one of the most explored applications of DL within dermatology. Convolutional neural networks (ConvNets) are the most common (DL) method in medical imaging due to their training efficiency and accuracy, although they are often described as black boxes because of their limited explainability. One popular way to obtain insight into a ConvNet's decision mechanism is gradient class activation maps (Grad-CAM). A quantitative evaluation of the Grad-CAM explainability has been recently made possible by the release of DermXDB, a skin disease diagnosis explainability dataset which enables explainability benchmarking of ConvNet architectures. In this paper, we perform a literature review to identify the most common ConvNet architectures used for this task, and compare their Grad-CAM explanations with the explanation maps provided by DermXDB. We identified 11 architectures: DenseNet121, EfficientNet-B0, InceptionV3, InceptionResNetV2, MobileNet, MobileNetV2, NASNetMobile, ResNet50, ResNet50V2, VGG16, and Xception. We pre-trained all architectures on a clinical skin disease dataset and fine-tuned them on a DermXDB subset. Validation results on the DermXDB holdout subset show an explainability F1 score of between 0.35-0.46, with Xception displaying the highest explainability performance. NASNetMobile reports the highest characteristic-level explainability sensitivity, despite its mediocre diagnosis performance. These results highlight the importance of choosing the right architecture for the desired application and target market, underline the need for additional explainability datasets, and further confirm the need for explainability benchmarking that relies on quantitative analyses.
Introduction: The Black Box Problem in Dermatology
In medical AI, performance isn't just about getting the right answer; it’s about why the model arrived at that answer. Convolutional Neural Networks (ConvNets) are often criticized as "black boxes," a significant hurdle for clinical adoption and regulatory approval, such as the EU's "right to explanation."
While methods like Gradient-weighted Class Activation Mapping (Grad-CAM) generate heatmaps to show which parts of an image a model prioritizes, these explanations are usually evaluated qualitatively. This research moves toward quantitative benchmarking, asking: Do model attention maps actually overlap with the specific clinical features—such as scales, plaques, or comedones—that a dermatologist uses to make a diagnosis?
Methods and Benchmarking Framework
The study identified 11 common ConvNet architectures through a systematic literature review, including variants of ResNet, Inception, MobileNet, and DenseNet. To evaluate explainability, the researchers utilized the DermXDB dataset, which contains 524 images across six skin conditions. Crucially, DermXDB includes "explanation maps"—spatial masks where eight board-certified dermatologists identified specific visual characteristics.
The evaluation pipeline involved:
- Pre-training: Models were initialized with ImageNet weights and pre-trained on a large proprietary clinical dataset.
- Fine-tuning: Models were refined on a subset of DermXDB.
- Fuzzy Comparison: Instead of simple binary overlap, a "fuzzy" implementation of F1 scores, sensitivity, and specificity was used to compare Grad-CAM heatmaps against ground-truth expert masks.
Key Results
The Explainability-Accuracy Trade-off
The best-performing model for diagnosis is not always the most explainable. For instance, NASNetMobile showed the highest sensitivity for identifying specific skin characteristics, despite mediocre overall diagnostic accuracy. Conversely, Xception emerged as the top performer for image-level explainability with an F1 score of 0.46.
Modern vs. Legacy Architectures
Architectural differences significantly impacted how models "saw" the disease. Older architectures like VGG16 and ResNet50 focused on small, highly indicative lesions. Modern architectures like Xception and EfficientNet tended to cover the entire affected region, more closely mirroring how humans assess disease severity.
The "Watermark" Trap
A critical finding was that several models (EfficientNet-B0, MobileNet, VGG16) overfit on training data by focusing on watermarks in the images rather than the skin condition itself, particularly when diagnosing vitiligo. This highlights why explainability is a vital "sanity check" for AI safety in clinical settings.
Conclusion and Future Directions
While models are looking at the right general areas, they do not yet pinpoint clinical characteristics with human-like precision. No ConvNet reached the explainability performance of the average dermatologist (F1 score of 0.66).
Future work should address the limitations of current datasets, including the small sample size of DermXDB and the lack of demographic metadata (age, gender, ethnicity). Additionally, exploring other attribution methods like SHAP or moving toward Vision Transformers (ViTs) could provide deeper insights. Ultimately, the goal is to develop AI-generated maps that actively assist clinicians in making faster, more accurate decisions in real-world settings.
Summary updated