Abstract
This paper presents a machine-learning framework for lesion identification and malignancy prediction using clinical dermatological images. Unlike traditional models that rely on high-resolution, single-lesion dermoscopy, this approach is designed to handle "messy" wide-field images acquired via smartphones, which may contain multiple lesions and varied backgrounds. The proposed two-stage framework first identifies all lesions within an image and subsequently estimates the likelihood of malignancy for each. Experimental results on an independent test dataset show that this image-only model outperforms clinical covariate models and achieves performance comparable to three board-certified dermatologists.
Introduction
Artificial Intelligence has demonstrated significant potential in dermatology, yet many existing models remain "brittle." These systems are typically trained on perfectly cropped, high-resolution dermoscopy images. In practical primary care and teledermatology settings, however, images are often captured via smartphones. These wide-field photos frequently contain multiple lesions, inconsistent lighting, and distracting backgrounds, creating a "needle in a haystack" problem for automated diagnostic tools.
With dermatology wait times often exceeding a month, there is a critical need for triage tools that can accurately identify suspicious spots in wide-field images. This research addresses this gap by developing a robust framework capable of processing both specialized dermoscopy and standard smartphone photography.
Methodology
The researchers proposed a two-stage deep learning framework to decouple the task of finding a lesion from the task of diagnosing it.
Stage 1: Lesion Identification
The first stage utilizes a Faster-RCNN object detection model with a Feature Pyramid Network and a ResNet-50 backbone. This stage scans the entire image to locate all potential lesions. A key finding was that a "one-class" detector—which identifies any lesion without attempting to classify its type—outperformed more complex multi-class models. This simplicity increased the system's robustness against the variability found in wide-field images.
Stage 2: Malignancy Prediction
Once identified, each lesion is passed to a dedicated ResNet-50 classifier. This model estimates the likelihood of malignancy, specifically targeting Melanoma, Basal Cell Carcinoma (BCC), and Squamous Cell Carcinoma (SCC/AKIEC). Individual lesion scores are then aggregated using max pooling to provide an overall image-level risk score.
Data and Experiments
The framework was developed and validated using several diverse datasets:
- Discovery Dataset: 6,819 images from 3,853 patients at Duke University, 91% of which were wide-field smartphone photos.
- Clinical Dataset: A subset of 4,130 images paired with Electronic Health Record (EHR) metadata, such as age, sex, and medical history.
- ISIC2018: A public dataset of 10,015 dermoscopy images used for data augmentation.
- Independent Test Set: 488 images used for a head-to-head comparison against human experts.
Key Results and Insights
Expert-Level Accuracy
The framework achieved an AUC of 0.787 for malignancy prediction. In comparative testing, the model's performance was statistically comparable to three board-certified dermatologists with varying levels of experience (3, 6, and 10 years). Additionally, the identification stage achieved a 95.4% recall, ensuring that very few true lesions were missed in wide-field captures.
The Dominance of Visual Data
One of the study's most striking findings was that the inclusion of clinical covariates (EHR data) did not significantly improve the model's performance. The image-based model (AUC ~0.86) vastly outperformed a model based solely on clinical data (AUC ~0.71). This suggests that high-quality visual features are the primary drivers of predictive power in malignancy screening.
The Domain Gap
While augmenting the training data with the ISIC dermoscopy dataset improved performance on smartphone images, it unexpectedly decreased performance on Duke-specific dermoscopy images. This highlights a "domain gap" where differences in equipment and lighting mean that simply adding more data is not always beneficial if the data does not match the target environment.
Conclusion and Future Work
This two-stage framework demonstrates that AI can effectively triage skin lesions in realistic, non-ideal photographic conditions. However, the study noted a significant limitation: a lack of diversity in skin tones, with less than 2% of images representing Fitzpatrick types 5 and 6. Future research must prioritize inclusive datasets to ensure safety and equity across all patient populations.
Furthermore, while these retrospective results are promising, prospective clinical validation in real-time primary care settings is necessary to determine the framework's true impact on patient outcomes and specialist triage efficiency.
Summary updated