Pre-trained multimodal large language model enhances dermatological diagnosis using SkinGPT-4

Juexiao Zhou, Xiaonan He, Liyuan Sun, Jiannan Xu, Xiuying Chen, Yuetan Chu, Longxi Zhou, Xingyu Liao, Bin Zhang, Shawn Afvari, Xin Gao

Abstract

Large language models (LLMs) have shown tremendous potential in advancing medical diagnosis, particularly in dermatology, where skin and subcutaneous diseases are leading contributors to the global burden of nonfatal diseases. We present SkinGPT-4, an interactive dermatology diagnostic system based on multimodal large language models. By aligning a pre-trained vision transformer with Llama-2-13b-chat through a two-step training strategy using 52,929 skin disease images and clinical notes, we created a system capable of autonomous image evaluation, characteristic identification, and interactive treatment recommendation. Quantitative evaluation on 150 real-life cases by board-certified dermatologists demonstrates the system's efficacy in providing patient-friendly, natural language reports.

Introduction

Dermatological conditions are among the most prevalent nonfatal diseases globally, yet a chronic shortage of specialists persists, especially in rural or underserved regions. While traditional deep learning models have achieved high accuracy in skin cancer classification, they often function as "black boxes," providing labels without context or the ability to answer follow-up questions. Furthermore, using proprietary cloud-based models like GPT-4 for medical diagnosis raises significant privacy concerns regarding sensitive patient data.

Overview of the SkinGPT-4 system, illustrating the user interaction and the underlying multimodal architecture.

SkinGPT-4 addresses these challenges by bridging the gap between computer vision and natural language processing. Built on open-source foundations, it can be deployed locally to ensure data sovereignty while providing an interactive, conversational interface for dermatological triage.

Methodology and Training Strategy

The architecture of SkinGPT-4 utilizes a Vision Transformer (ViT) and a Q-Former to encode visual features, which are then mapped into the text space of Llama-2-13b-chat via a trainable linear projection layer. To ensure the model understands medical nuances, the researchers employed a novel two-step training strategy:

  1. Step 1 (Concept Alignment): The model was first trained on the SKINCON dataset (3,230 images) to recognize 48 specific clinical concepts such as "erythema," "plaque," and "crust." This established a foundational medical vocabulary for the vision system.
  2. Step 2 (Diagnostic Fine-tuning): The model was then fine-tuned on a larger dataset, including Dermnet (18,856 images) and a proprietary in-house dataset (30,187 pairs), to learn how to synthesize visual features into formal diagnoses and treatment plans.
The two-step training strategy for SkinGPT-4, involving medical concept alignment followed by diagnostic fine-tuning and clinical evaluation.

Key Insights and Results

A critical finding of this research was the necessity of medical feature alignment. Training on disease labels alone proved insufficient; the model required the ability to "see" like a doctor—identifying texture and color—before it could accurately name a condition.

In a quantitative assessment of 150 real-life cases, board-certified dermatologists rated 80.63% of SkinGPT-4’s diagnoses as correct or relevant. Furthermore, the model’s descriptions were considered informative in 82.5% of cases, and its treatment suggestions were deemed useful in 85.63% of instances. Beyond accuracy, the model demonstrated high reliability, with a 93.73% consistency ratio across multiple runs on the same samples.

Discussion and Future Work

While SkinGPT-4 represents a significant step forward in AI-assisted dermatology, several limitations remain. The current training data primarily represents Fitzpatrick skin types I–IV, and future iterations will prioritize more diverse data to mitigate skin tone bias. Additionally, while the model is highly consistent, it remains a triage tool rather than a replacement for human expertise, as LLMs are still susceptible to occasional hallucinations of medical facts.

Future development will focus on enhancing the model's ability to assess disease severity and handle complex, multi-label cases where patients present with overlapping skin conditions. Despite these challenges, the ability to deploy SkinGPT-4 locally offers a robust solution for protecting patient privacy while providing rapid, expert-level dermatological insights.

Summary updated

BibTeX
@inproceedings{zhou2024pre,
  author = {Juexiao Zhou and Xiaonan He and Liyuan Sun and Jiannan Xu and Xiuying Chen and Yuetan Chu and Longxi Zhou and Xingyu Liao and Bin Zhang and Shawn Afvari and Xin Gao},
  title = {{Pre-trained multimodal large language model enhances dermatological diagnosis using SkinGPT-4}},
  booktitle = {Nature Communications},
  year = {2024},
  doi = {10.1038/s41467-024-50043-3},
}
Figure