Skin diseases represent a vast proportion of primary care visits, and their prompt and correct diagnosis may necessitate expertise on the side of a specialist. Artificial intelligence has potential to help screening skin diseases through analyzing skin lesion images. In this paper, the author will discuss the implementation of DermaAI, a multi-class skin disease detection system based on integrated deep-learning. We have prepared a source labeled dataset of dermatological pictures (cz/dermatitis, psoriasis, fungi, acne, rosacea, and vitiligo) and trained an EfficientNetB0 convolutional neural network (CNN) with transfer learning. This model was trained in two stages: one with training the newly-added layers only, and second fine-tuning the entire network, and the methods include data augmentation, class re-sampling, and learning rate adjustment using the form of a callback. It was implemented through an offline inference application using TensorFlow Lite and a Flask web interface and Android application. DermaAI has high accuracy (around 92 percent on a held-out test set) on classifying the target conditions. An error analysis (with confusion matrix) indicates that the error rate is strong on all classes with most confusion made among clinically similar categories. The system gives probabilities per class to help with the estimation of confidence. These findings indicate that DermaAI may be used as an effective dermatological tool, particularly in resource-constrained environments with a low number of specialists available[1], [2].
Introduction
Skin diseases affect a large portion of the population, and many people lack access to dermatologists, especially in rural or under-resourced areas. This often leads to misdiagnosis or delayed treatment. Advances in artificial intelligence (AI) and deep learning, particularly Convolutional Neural Networks (CNNs), have made it possible to analyze medical images and assist in diagnosing skin diseases.
To address limitations of existing AI systems that focus on only a few diseases, this study developed DermaAI, a deep-learning system designed to detect multiple skin diseases. The model is based on EfficientNetB0 CNN with transfer learning and is deployed as both a Flask web application and an Android mobile app, allowing online and offline usage. The system provides predicted disease labels along with probability scores indicating confidence levels.
DermaAI works through four main stages: image acquisition and preprocessing, optional lesion segmentation, CNN-based feature extraction and classification, and result presentation. The dataset used includes thousands of labeled images of common skin diseases such as eczema, psoriasis, fungal infections, acne, rosacea, and vitiligo. Data augmentation and class balancing techniques were applied to improve model performance.
The model was trained using transfer learning with the Adam optimizer and categorical cross-entropy loss, and evaluated using accuracy, precision, recall, and F1-score. Results showed that the system achieved about 94% validation accuracy and 92% test accuracy, with most disease classes achieving over 90% precision and recall. The system also demonstrated fast performance, taking 1–2 seconds on a web server and less than 1 second on a smartphone to produce predictions.
DermaAI provides a practical AI-based screening tool that can assist in early detection of skin diseases and improve accessibility to dermatological care. However, it has limitations such as dataset size, possible bias toward lighter skin tones, reliance only on images without patient metadata, and lack of external clinical validation.
Future improvements include expanding the dataset, adding severity detection, enabling real-time camera analysis, integrating tele-dermatology support, and providing multilingual interfaces. Overall, DermaAI demonstrates the potential of AI systems to support accessible and efficient skin disease diagnosis.
Conclusion
We have introduced the DermaAI, a complete deep learning framework of skin diseases identification, which includes a high-performance CNN (EfficientNetB0) along with easy-to-access deployment. With transfer learning and trained on a curated multi-class dataset, our model attained high accuracy (~92) in the classification of the common dermatoses. The implementation on the system is done in two programs (both web and mobile) hence wide applicability. We believe that, based on our assessment, the DermaAI will be able to deliver accurate and timely disease predictions and probability, which can be used to assist with early screening and triage. Although it is not intended to replace clinical judgment, this tool has shown how AI can contribute to the dermatological care, particularly in underserved areas. The architecture of DermaAI (the integration of the segmentation, the confidence scoring, and the delivery on cross-platform) covers most of the gaps evident in other solutions. Our work will in the future validate the system in the clinical setting and keep on the further improvements of its performance and scope. We hope that DermaAI can become a successful example of AI-based healthcare support, which will allow making dermatology available to anyone on the tip of the hat in the hallmark of the healthcare inquiry.
References
[1] “The Use of Artificial Intelligence for Skin Disease Diagnosis in Primary Care Settings: A Systematic Review.” [Online]. Available:https://pubmed.ncbi.nlm.nih.gov/38921305/
[2] “AI-Skin: Skin Disease Recognition Based on Self-Learning and Wide Data Collection Through a Closed-Loop Framework.” [Online]. Available: https://www.sciencedirect.com/science/article/abs/pii/S1566253519300867
[3] “AI-Based Localization and Classification of Skin Disease With Erythema.” Scientific Reports. [Online]. Available: https://www.nature.com/articles/
s41598-021-84593-z
[4] “Building Powerful Image Classification Models Using Very Little Data.” [Online]. Available: https://blog.keras.io/building-powerful-image-classification-models-using-very-little-data.html
[5] O. Karunarathne, “A Deep Dive Into Oversampling and Undersampling for Class Imbalance in Image Classification.” [Online]. Available: https://medium.com/@okeshakarunarathne/a-deep-dive-into-oversampling-and-undersampling-for-class-imbalance-in-image-classification-2e031d8e2b00
[6] “ImageClassification via Fine-Tuning WithEfficientNet.” [Online]. Available:https://keras.io/examples/vision/image_classification_efficientnet_
fine_tuning/
[7] “Transfer Learning and Fine-Tuning.” TensorFlow Core. [Online]. Available: https://www.tensorflow.org/tutorials/images/transfer_learning
[8] “ReduceLROnPlateau.” Keras API Documentation. [Online]. Available: https://keras.io/api/callbacks/reduce_lr_on_plateau/
[9] “EarlyStopping.” Keras API Documentation. [Online]. Available: https://keras.io/api/callbacks/early_stopping/
[10] N. Ding et al., “Differential Diagnosis of Eczema and Psoriasis Using Routine Clinical Data and Machine Learning: Development of a Web-Based Tool in a Multicenter Outpatient Cohort,” Frontiers in Medicine, vol. 12, 2025.