<?xml version="1.0" encoding="UTF-8"?><!DOCTYPE article PUBLIC "-//NLM//DTD Journal Publishing DTD v3.0 20080202//EN" "http://dtd.nlm.nih.gov/publishing/3.0/journalpublishing3.dtd">
<article xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:xlink="http://www.w3.org/1999/xlink" dtd-version="3.0" xml:lang="en" article-type="research article">
 <front>
  <journal-meta>
   <journal-id journal-id-type="publisher-id">
    ojmi
   </journal-id>
   <journal-title-group>
    <journal-title>
     Open Journal of Medical Imaging
    </journal-title>
   </journal-title-group>
   <issn pub-type="epub">
    2164-2788
   </issn>
   <issn publication-format="print">
    2164-2796
   </issn>
   <publisher>
    <publisher-name>
     Scientific Research Publishing
    </publisher-name>
   </publisher>
  </journal-meta>
  <article-meta>
   <article-id pub-id-type="doi">
    10.4236/ojmi.2025.151001
   </article-id>
   <article-id pub-id-type="publisher-id">
    ojmi-141073
   </article-id>
   <article-categories>
    <subj-group subj-group-type="heading">
     <subject>
      Articles
     </subject>
    </subj-group>
    <subj-group subj-group-type="Discipline-v2">
     <subject>
      Medicine 
     </subject>
     <subject>
       Healthcare
     </subject>
    </subj-group>
   </article-categories>
   <title-group>
    Advanced Skin Disease Diagnosis and Treatment: Leveraging Convolutional Neural Networks for Image-Based Prediction and Comprehensive Health Assistance
   </title-group>
   <contrib-group>
    <contrib contrib-type="author" xlink:type="simple">
     <name name-style="western">
      <surname>
       Noshin Un
      </surname>
      <given-names>
       Noor
      </given-names>
     </name>
    </contrib>
    <contrib contrib-type="author" xlink:type="simple">
     <name name-style="western">
      <surname>
       Mohammad Anwar
      </surname>
      <given-names>
       Hossain
      </given-names>
     </name>
    </contrib>
    <contrib contrib-type="author" xlink:type="simple">
     <name name-style="western">
      <surname>
       Mosarrof
      </surname>
      <given-names>
       Hossain
      </given-names>
     </name>
    </contrib>
    <contrib contrib-type="author" xlink:type="simple">
     <name name-style="western">
      <surname>
       Md Rakibul
      </surname>
      <given-names>
       Hasan
      </given-names>
     </name>
    </contrib>
    <contrib contrib-type="author" xlink:type="simple">
     <name name-style="western">
      <surname>
       Mohammad Al
      </surname>
      <given-names>
       Amin
      </given-names>
     </name>
    </contrib>
    <contrib contrib-type="author" xlink:type="simple">
     <name name-style="western">
      <surname>
       Shamsun
      </surname>
      <given-names>
       Nahar
      </given-names>
     </name>
    </contrib>
    <contrib contrib-type="author" xlink:type="simple">
     <name name-style="western">
      <surname>
       Ahsan
      </surname>
      <given-names>
       Ullah
      </given-names>
     </name>
    </contrib>
    <contrib contrib-type="author" xlink:type="simple">
     <name name-style="western">
      <surname>
       Md. Mahedi
      </surname>
      <given-names>
       Hassan
      </given-names>
     </name>
    </contrib>
   </contrib-group> 
   <aff id="affnull">
    <addr-line>
     aDepartment of CSE, World University of Bangladesh, Dhaka, Bangladesh
    </addr-line> 
   </aff> 
   <pub-date pub-type="epub">
    <day>
     07
    </day> 
    <month>
     03
    </month>
    <year>
     2025
    </year>
   </pub-date> 
   <volume>
    15
   </volume> 
   <issue>
    01
   </issue>
   <fpage>
    1
   </fpage>
   <lpage>
    29
   </lpage>
   <history>
    <date date-type="received">
     <day>
      23,
     </day>
     <month>
      January
     </month>
     <year>
      2025
     </year>
    </date>
    <date date-type="published">
     <day>
      4,
     </day>
     <month>
      January
     </month>
     <year>
      2025
     </year> 
    </date> 
    <date date-type="accepted">
     <day>
      4,
     </day>
     <month>
      March
     </month>
     <year>
      2025
     </year> 
    </date>
   </history>
   <permissions>
    <copyright-statement>
     © Copyright 2014 by authors and Scientific Research Publishing Inc. 
    </copyright-statement>
    <copyright-year>
     2014
    </copyright-year>
    <license>
     <license-p>
      This work is licensed under the Creative Commons Attribution International License (CC BY). http://creativecommons.org/licenses/by/4.0/
     </license-p>
    </license>
   </permissions>
   <abstract>
    Skin conditions are a worldwide health issue that requires prompt and accurate diagnosis in order to be effectively treated. This study presents a Convolutional Neural Network (CNN)-based automated skin disease diagnostic method. The work uses preprocessing methods like scaling, normalization, and augmentation to improve model robustness using the DermNet dataset, which consists of 19,500 pictures from 23 disease categories. TensorFlow and Keras were used to create a unique CNN architecture, which produced an impressive accuracy of 94.65%. Metrics like precision, recall, and F1-score were used to validate the model’s performance, showing that it outperformed more conventional machine learning techniques like SVM and KNN. The system incorporates patient-reported symptoms in addition to diagnosis to provide a comprehensive approach to health support, allowing for remote accessibility and tailored therapy suggestions. This work recognizes issues like dataset variability and processing needs while showcasing the revolutionary potential of AI in dermatology. In order to improve model interpretability and clinical integration, future possibilities include dataset extension, real-world validation, and the use of explainable AI.
   </abstract>
   <kwd-group> 
    <kwd>
     Skin Disease Diagnosis
    </kwd> 
    <kwd>
      Dermatological Image Analysis
    </kwd> 
    <kwd>
      Medical Image Classification
    </kwd> 
    <kwd>
      Convolutional Neural Networks (CNNs)
    </kwd> 
    <kwd>
      Healthcare Accessibility
    </kwd> 
    <kwd>
      Deep Learning Applications
    </kwd> 
    <kwd>
      DermNet Dataset
    </kwd>
   </kwd-group>
  </article-meta>
 </front>
 <body>
  <sec id="s1">
   <title>1. Introduction</title>
   <sec id="s1_1">
    <title>1.1. Research Background</title>
    <p>Skin diseases are a major global health concern, encompassing a wide range of conditions with varying severity. Prompt and precise diagnosis is critical for effective treatment. However, traditional methods often rely on dermatologists, creating disparities in access to care. Furthermore, the subjective nature of visual assessments can lead to inconsistent diagnoses.</p>
    <p>A potential remedy for these issues is artificial intelligence, namely convolutional neural networks (CNNs). CNNs are especially useful for examining skin lesions because of their outstanding ability in image recognition and classification. By training these networks on extensive datasets of skin images, we can develop highly accurate models capable of identifying various skin diseases. These models can serve as invaluable tools for dermatologists, assisting in differential diagnosis and reducing the likelihood of misdiagnosis. Moreover, they have the potential to enhance accessibility to dermatological care by enabling remote diagnosis and triage.</p>
    <p>Beyond diagnosis, this research explores the integration of CNN-based models into a comprehensive health assistance system. By combining image analysis with patient-reported symptoms, medical history, and other relevant information, we can adopt a more holistic approach to managing skin diseases. This system could provide personalized treatment recommendations, monitor disease progression, and improve patient education and self-management.</p>
    <p>The ultimate goal of this research is to advance the field of dermatology by developing and validating a robust CNN-based model for diagnosing skin diseases and demonstrating its potential to improve patient outcomes through a comprehensive health assistance system. By addressing the limitations of traditional methods and leveraging the power of AI, this research aims to transform skin disease management, making it more accessible and effective.</p>
   </sec>
   <sec id="s1_2">
    <title>
     <xref ref-type="bibr" rid="scirp.141073-"></xref>1.2. Objectives</title>
   </sec>
   <sec id="s1_3">
    <title>
     <xref ref-type="bibr" rid="scirp.141073-"></xref>1.3. Justification of Study</title>
    <p>Dermatological image analysis has greatly improved the detection and diagnosis of skin conditions thanks to the application of machine learning (ML) in dermatology. Particularly, convolutional neural networks (CNNs) have shown excellent diagnostic accuracy for common skin disorders like eczema, psoriasis, and acne <xref ref-type="bibr" rid="scirp.141073-1">
      [1]
     </xref>. These networks can identify critical features in medical images that may not be immediately apparent to human observers, enhancing traditional diagnostic methods. Our research is driven by the conviction that machine-learning models can greatly increase the precision and speed of skin disease diagnosis. Our research’s main goal is to employ medical imagery to improve the efficiency and diagnostic accuracy of skin disease detection. CNNs are especially well-suited for this task since they have proven to be very adept at processing intricate visual data, which makes them a prime contender for addressing dermatological diagnostic difficulties. Our research has the potential to improve healthcare outcomes and lessen the workload for medical personnel by developing diagnostic tools.</p>
    <p>Beyond CNNs, other machine learning algorithms like Support Vector Machines (SVM) and K-Nearest Neighbors (KNN) have shown promise in medical image classification. Combining these techniques with CNNs can further enhance diagnostic accuracy, providing robust solutions for skin disease classification <xref ref-type="bibr" rid="scirp.141073-2">
      [2]
     </xref>. The primary goal of this research is to leverage medical imagery to improve the efficiency and diagnostic accuracy of skin disease detection. Advanced CNN architectures are particularly suitable for this task due to their ability to process complex visual data and extract intricate patterns from dermatological images, which are crucial for diagnosing diseases like melanoma, eczema, psoriasis, etc. <xref ref-type="bibr" rid="scirp.141073-3">
      [3]
     </xref>. Despite the progress in ML applications for dermatological diagnostics, challenges remain. Many existing studies rely on limited datasets, leading to models that struggle with generalization <xref ref-type="bibr" rid="scirp.141073-4">
      [4]
     </xref>. This study uses a bigger, well-annotated dataset of dermatological photos to overcome this constraint and enhance the model’s resilience to a range of skin diseases. Techniques for preprocessing and data augmentation improve representation and reduce class imbalances, which further improves the model’s training <xref ref-type="bibr" rid="scirp.141073-5">
      [5]
     </xref>.</p>
    <p>By developing a practical ML application that combines CNNs with user-friendly interfaces, this research seeks to bridge the gap between theoretical advancements and real-world applications. The resulting tool aims to democratize access to ML-driven diagnostics, providing an intuitive interface for both healthcare professionals and patients. With these advancements, this research contributes to improving the accessibility, accuracy, and efficiency of skin disease management. Our research closes the gap between theoretical developments in machine learning and real-world medical applications by creating a real-world ML application that uses CNNs. To democratize the use of ML in dermatological diagnostics, we want to develop an intuitive user interface that makes these potent ML technologies available to both patients and healthcare professionals.</p>
   </sec>
   <sec id="s1_4">
    <title>
     <xref ref-type="bibr" rid="scirp.141073-"></xref>1.4. Scope of Study</title>
    <p>This study investigates the categorization and diagnosis of skin illnesses utilizing dermatological photos using Convolutional Neural Networks (CNNs). In particular, we assess how well several machine learning algorithms, including CNN, Decision Trees, Random Forest, XGBoost, SVM, and K-Nearest Neighbors (KNN), identify regions of interest in photos of skin diseases. The objective is to create an ML-based application that can quickly and reliably diagnose photos of skin diseases in real time. These architectures are particularly effective for processing complex visual data, allowing for accurate detection of skin conditions such as melanoma, eczema, and psoriasis <xref ref-type="bibr" rid="scirp.141073-6">
      [6]
     </xref>. We want to create a highly efficient model that is excellent at managing the massive amounts of picture data that are common in medical diagnostics by using CNNs model architecture. CNNs model have demonstrated great potential in picture classification workloads due to their deep design and capacity to sustain performance without experiencing vanishing gradient issues <xref ref-type="bibr" rid="scirp.141073-7">
      [7]
     </xref>. In order to improve model performance while reducing data loss during training, our research will examine several CNN setups.</p>
    <p>This study will focus on performance assessment criteria such as accuracy, precision, recall, F1 Score, and false negative rate, in addition to refining the CNN model. Our goal is to evaluate our model’s performance in practical diagnostic applications by examining these metrics. Additionally, the study will concentrate on enhancing the effectiveness of data processing methods to guarantee that the tool can swiftly and precisely scan and categorize dermatological photos <xref ref-type="bibr" rid="scirp.141073-8">
      [8]
     </xref>. The ultimate goal of our study is to create an ML-driven tool that can diagnose skin conditions in real time, which will be a great help to patients and medical professionals alike. The tool’s potential influence on medical diagnostics will be increased by its design, which will make it accessible, scalable, and reasonably priced. Our work will advance the area of skin disease diagnosis by thoroughly evaluating and testing CNN models, providing a dependable and effective option for medical practitioners.</p>
    <sec id="s1">
     <title>
      <xref ref-type="bibr" rid="scirp.141073-"></xref>2. Literature Review</title>
     <p>This study uses the HAM10000 dataset, a sizable collection of dermatological photos, to investigate the possibilities of deep learning in the classification of skin conditions. The authors categorize seven distinct skin disorders using a variety of Convolutional Neural Network (CNN) architectures, including Sequential CNN, DenseNet-121, and ResNet-50. By using data augmentation approaches, the study tackles the problem of imbalanced datasets, improving the models’ capacity to generalize and prevent overfitting. On the validation dataset, the Sequential CNN model with seven convolutional layers and batch normalization had the best accuracy (94%). The suggested Sequential CNN model performs better than DenseNet121 and ResNet-50 in terms of accuracy, precision, and recall, according to comparative research <xref ref-type="bibr" rid="scirp.141073-9">
       [9]
      </xref>.</p>
     <p>This Research presents a new approach for diagnosing skin diseases using a Deep Convolutional Neural Network. The authors address the complexity of dermatological diagnosis, especially for conditions like melanoma and carcinoma, which are difficult to identify in the early stages <xref ref-type="bibr" rid="scirp.141073-10">
       [10]
      </xref>. The proposed model processes skin images, removing noise and enhancing image quality. It uses feature extraction techniques and the softmax classifier to produce diagnostic reports. The proposed DCNN model is trained and tested using the HAM10000 dataset, which consists of 10,015 images of various skin conditions. Demonstrates superior accuracy of 93.4%, precision of 91.3%, and recall of 92.2% <xref ref-type="bibr" rid="scirp.141073-11">
       [11]
      </xref>.</p>
     <p>This study offers a fresh strategy to improve the precision and effectiveness of skin cancer diagnosis. The authors leverage the strengths of Discrete Wavelet Transformation (DWT) for feature extraction and combine it with the classification power of Convolutional Neural Networks (CNNs). Using DWT allows the model to analyze images in both spatial and frequency domains, capturing comprehensive information. The HAM10000 dataset is utilized in the research. It includes 10,000 photos of skin lesions that are divided into seven cancer kinds, such as benign keratosis, basal cell carcinoma, and melanoma. The suggested model achieved a 91% specificity and 92% sensitivity classification result <xref ref-type="bibr" rid="scirp.141073-12">
       [12]
      </xref>.</p>
     <p>This study suggests a new dermoscopy detection and classification technique based on convolutional neural networks (CNNs) for the diagnosis of skin conditions. After analyzing and processing picture data with a Convolutional Neural Network (CNN), the system employs a softmax classifier to extract features and classify the results. According to preliminary findings, the accuracy of identifying skin conditions from photos is 70%; with a larger dataset, this might rise to over 90%. The dataset’s size limits this system, while a larger dataset may result in higher accuracy <xref ref-type="bibr" rid="scirp.141073-13">
       [13]
      </xref>.</p>
     <p>This study offered a computer vision-based method for diagnosing five prevalent skin conditions: melanoma, nevus, herpes, eczema, and atopic dermatitis. MobileNet and Xception are two deep learning architectures that the authors implemented and contrasted. They used transfer learning, utilizing pre-trained weights from the ImageNet dataset, to get around the problem of limited data. To develop a more reliable and broadly applicable model, they also used real-time picture augmentation. Authors were carried out using a dataset of 18,692 photos that were divided into testing, validation, and training sets. Metrics like precision, recall, F1-score, confusion matrix, ROC curves, and classification accuracy were used to assess performance. The outcomes showed how well both the MobileNet and Xception models worked, especially when paired with augmentation and transfer learning. Xception obtained a test accuracy and F1-score of 93.00%, whereas MobileNet obtained a classification accuracy of 92.00% and an F1-score of 92.38%. The authors contrasted their suggested methods with those of existing deep learning models, such as DenseNet, ResNet50, InceptionV3, and Inception-ResNet. The findings demonstrated that in terms of accuracy and F1-score, MobileNet and Xception performed better than the other models <xref ref-type="bibr" rid="scirp.141073-14">
       [14]
      </xref>.</p>
     <p>This study examines the multi-classification of skin lesions from dermoscopic and clinical 4000 pictures using convolutional neural networks (CNNs). Three distinct CNN architectures (ResNet, Inception, and InceptionResNet) that were trained on the ImageNet dataset and refined on the skin lesion dataset are used in the authors’ innovative ensemble technique, which is based on progressive transfer learning. The suggested ensemble approach distinguished between four types of skin lesions: seborrheic keratosis (SK), melanoma (MM), common nevus (NV), and basal and squamous cell carcinomas (CAR) with an average sensitivity of 79.9% and specificity of 93.3%. Three ensemble configurations are compared: Method A (feature extraction with dense layers), Method B (concatenating softmax outputs with dense layers), and Method C (averaging softmax outputs). Method B was found to provide the best tradeoff between model complexity and generalization capability. The authors highlight the challenges of using clinical images, which can contain higher levels of noise, illumination variations, and occlusions compared to dermoscopic images. They demonstrate that the proposed ensemble scheme can effectively address these challenges and outperform traditional approaches for classifying skin lesions in a multi-class setting <xref ref-type="bibr" rid="scirp.141073-15">
       [15]
      </xref>.</p>
     <p>This study suggested a method for identifying skin conditions that makes use of a convolutional neural network (CNN). The authors validated the architecture using a DermNet database. The accuracy of the suggested CNN classifier ranged from 92.6% to 93.04%. The Convolution Layer, Activation Layer, Pooling Layer, Fully Connected Layer, and Soft-Max Classifier are among the 11 layers of the CNN that the authors suggested. The authors’ main focus was on automatic diagnosis of skin diseases. The authors of the research talked about the difficulties in automating the procedure, such as differences in skin tones, the disease’s location, and the requirements of the image acquisition equipment. Additionally, the authors gave the confusion matrix for test images and talked about how well the suggested strategy worked <xref ref-type="bibr" rid="scirp.141073-16">
       [16]
      </xref>.</p>
     <p>This research introduces a novel approach for classifying skin diseases using a deep convolutional neural network (CNN). The authors address the need for efficient and accurate skin disease diagnosis by utilizing a dataset of over 25,000 images covering eight common skin conditions. The authors evaluate the performance of various transfer learning techniques, including VGG16, VGG19, ResNet models, InceptionV3, DenseNet models, and MobileNet, to identify the most effective approach. The authors highlight the challenges associated with skin disease diagnosis, such as visual similarity between conditions, varying image quality, and the need for expert knowledge. To overcome these challenges, the researchers implement a robust preprocessing pipeline and incorporate data augmentation techniques. Their findings demonstrate that ResNet152 outperforms other models in terms of accuracy, precision, and recall, achieving a classification accuracy of over 75% <xref ref-type="bibr" rid="scirp.141073-17">
       [17]
      </xref>.</p>
     <p>Convolutional Neural Networks (CNN) are being used in this research to construct a deep learning-based skin disease detection system that can diagnose psoriasis and eczema. The authors used Adam and Rmsprop optimizers to implement and compare five distinct state-of-the-art CNN architectures: VGG-16, Inception v3, ResNet-50, MobileNet v2, and Inception ResNet v2. The scientists used a collection of 1000 photos of skin conditions, including 510 photos of psoriasis and 490 photos of eczema. Outperforming other architectures, the authors discovered that Inception ResNet v2 with Adam optimizer had the highest accuracy (91.1% validation and 90.8% testing). They proposed two practical approaches for implementing the model: 1) smartphone-oriented and 2) web server-oriented approaches. The authors demonstrate the effectiveness of CNN in accurately diagnosing skin diseases and emphasize the potential for practical applications, such as real-time diagnosis, using mobile applications or web-based platforms <xref ref-type="bibr" rid="scirp.141073-18">
       [18]
      </xref>.</p>
     <p>This study suggested utilizing convolutional neural networks (CNNs) to categorize digital photos of skin conditions. Ten convolutional layers—eight hidden layers and two thick layers—make up the CNN-based model that the authors suggest. To train, validate, and test the model, the authors used 2045 photos of various skin illnesses, including Melanoma-776, Melanocytic Nevus-654, and Basal Cell Carcinoma-615. The authors use the Adam optimizer to modify the model’s parameters and data augmentation approaches to improve the training process. With a 90% validation and 95% classification accuracy, the suggested CNN model showed promise in transforming dermatology by offering a precise and automated method of diagnosing skin conditions. The paper also covers the difficulties in image analysis, such as picture segmentation, image quality, feature extraction, and computational complexity. They explore techniques like image resizing and data augmentation to address some of these challenges <xref ref-type="bibr" rid="scirp.141073-19">
       [19]
      </xref>.</p>
     <p>This study investigates the classification of skin diseases in a mobile application using federated learning and convolutional neural networks (CNNs). The intrinsic variations in skin texture, different complexions, and the presence of hair and other surface features are some of the difficulties in classifying skin diseases that are highlighted in the research. The necessity of an automated and precise system for detecting skin diseases while protecting data privacy is emphasized in the research. The paper suggests using CNNs and the federated learning approach to create a mobile application for classifying skin diseases. The goal of this mobile application is to offer a cutting-edge approach to skin analysis while upholding the strictest privacy and data security guidelines. The study demonstrates how CNNs and federated learning may be used to classify skin diseases, creating an efficient mobile application for diagnosis without compromising data security or privacy. The paper provides a comprehensive overview of existing research on deep learning in medical image processing, particularly focusing on skin disease classification. It analyzes the performance of various pre-trained CNN models, including AlexNet, DenseNet, Xception, VGG16, and ResNet, and demonstrates the efficacy of the proposed CNN architecture for classifying skin diseases. The authors present the architecture and implementation details of their proposed CNN model and elaborate on the data preprocessing, training, and evaluation processes. A total of 24,138 images were used. 19,310 of them were used for training and 4828 for testing. The proposed CNN model achieved an accuracy of 90% in skin disease classification. The model was trained using the Adam optimizer with a learning rate of 0.0001 and a batch size of 16 <xref ref-type="bibr" rid="scirp.141073-20">
       [20]
      </xref>.</p>
     <p>The goal of this study is to understand the effectiveness of convolutional neural network (CNN)-based methods for diagnosing skin diseases. Two types of clinical skin disease datasets were constructed by the authors: 1) Skin-10, which comprises 10,218 photos from 10 common classes of skin diseases; 2) Skin-100, a larger dataset with 19,807 images from 100 skin disease classes. By comparing a number of SOTA CNN models, they demonstrated that skin-100’s accuracy is significantly worse than skin-10’s. Using an ensemble approach based on multiple CNN models, the authors were able to attain the highest accuracy of 53.54% for Skin-100 and 79.01% for Skin-10. By adding bounding boxes to the Skin-10 dataset, they also demonstrated an object detection-based method. According to their findings, object detection can increase the precision of some skin disease classifications <xref ref-type="bibr" rid="scirp.141073-21">
       [21]
      </xref>.</p>
     <p>A Convolutional Neural Network (CNN) model is proposed in this study to categorize and forecast skin conditions. 5633 photos of five different conditions—acne, eczema, melanoma, psoriasis, and urticaria hives—are used in the suggested model. The model obtained an accuracy of 83% on the test set of the dataset, which is separated into training and testing sets. Multiple layers, including convolution, pooling, ReLU, and fully linked layers, make up the CNN model. Forward and backward propagation are used to train the model, and this process is continued until the model has mastered the picture features. According to the authors, the CNN model can accurately determine the kind of skin condition depicted in the pictures <xref ref-type="bibr" rid="scirp.141073-22">
       [22]
      </xref>.</p>
     <p>This study suggests a deep learning-based model for dividing skin lesions into five groups: benign, malignant, eczema, acne, and healthy. The model uses an error-correcting output code (ECOC) support vector machine (SVM) for classification after a deep convolutional neural network (AlexNet) is used to extract features from the image. A total of 9144 photos from various sources were used in this study. Thirty percent of the dataset is for testing, and seventy percent is for training. According to the findings, the suggested model has an accuracy of 86.21% and a generalization error of 0.1593. The suggested model performs better than earlier research, increasing accuracy by 3.21% <xref ref-type="bibr" rid="scirp.141073-23">
       [23]
      </xref>.</p>
     <p>The existing literature has made notable strides in applying machine learning and deep learning techniques for dermatological diagnosis. Prominent studies employ CNN architectures such as ResNet50, DenseNet, and MobileNet while utilizing datasets like HAM10000, ISIC, and DermNet. These approaches typically achieve diagnostic accuracies ranging from 70% to 95%. We set a new benchmark by delivering a highly efficient and accurate diagnostic system specifically tailored for dermatological applications. This study achieves a remarkable diagnostic accuracy of 94.65%, outperforming traditional machine learning models such as SVM and KNN in both accuracy and robustness. Unlike prior studies, which often adopt a generalized approach, this research strategically utilizes the DermNet dataset of 19,500 images, ensuring a comprehensive yet focused analysis of 23 distinct skin disease categories. This work addresses critical gaps in the literature by emphasizing real-time applicability and scalability, offering a user-friendly diagnostic tool designed to be both accessible and affordable. The integration of advanced preprocessing techniques, including data augmentation, ensures that the model is not only accurate but also resilient to data imbalances.</p>
     <p>By combining cutting-edge CNN architectures with practical usability, this research surpasses existing studies in its ability to provide a transformative solution for dermatological care. It bridges the gap between theoretical advancements and real-world implementation, making it a groundbreaking contribution to the field of medical diagnostics.</p>
    </sec>
   </sec>
   <sec id="s3">
    <title>
     <xref ref-type="bibr" rid="scirp.141073-"></xref>3. Methodology</title>
    <sec id="s3_1">
     <title>
      <xref ref-type="bibr" rid="scirp.141073-"></xref>3.1. Dataset Description</title>
     <p>The DermNet Skin Disease Dataset comprises a diverse collection of 19,500 dermoscopic images categorized into 23 distinct skin diseases. This dataset is intended to aid in research, development, and education within the field of dermatology and medical image analysis. It provides a rich resource for building and evaluating machine learning models, particularly for tasks such as image classification, clustering, and exploratory data analysis (EDA).</p>
     <p>Dataset Characteristics:</p>
     <p>
      <xref ref-type="bibr" rid="scirp.141073-"></xref>The images are sourced from the public portal DermNet (www.dermnet.com), the largest online dermatology resource. DermNet is dedicated to providing medical education and serves as a trusted repository for dermatological imagery, as shown in <xref ref-type="table" rid="table1">
       Table 1
      </xref>.</p>
     <table-wrap id="table1">
      <label>
       <xref ref-type="table" rid="table1">
        Table 1
       </xref></label>
      <caption>
       <title>
        <xref ref-type="bibr" rid="scirp.141073-"></xref>Table 1. Dataset characteristics.</title>
      </caption>
      <table class="MsoTableGrid custom-table" border="0" cellspacing="0" cellpadding="0"> 
       <tr> 
        <td class="custom-bottom-td acenter" width="17.09%" colspan="2"><p style="text-align:center">Dataset Characteristics</p></td> 
       </tr> 
       <tr> 
        <td class="custom-top-td acenter" width="17.09%"><p style="text-align:center">Number of Images</p></td> 
        <td class="custom-top-td acenter" width="17.09%"><p style="text-align:center">19,500</p></td> 
       </tr> 
       <tr> 
        <td class="acenter" width="17.09%"><p style="text-align:center">Training Set</p></td> 
        <td class="acenter" width="17.09%"><p style="text-align:center">15,500 images</p></td> 
       </tr> 
       <tr> 
        <td class="acenter" width="17.09%"><p style="text-align:center">Test Set</p></td> 
        <td class="acenter" width="17.09%"><p style="text-align:center">4000 images</p></td> 
       </tr> 
       <tr> 
        <td class="acenter" width="17.09%"><p style="text-align:center">Categories</p></td> 
        <td class="acenter" width="17.09%"><p style="text-align:center">23 types of skin diseases</p></td> 
       </tr> 
       <tr> 
        <td class="acenter" width="17.09%"><p style="text-align:center">Image Format</p></td> 
        <td class="acenter" width="17.09%"><p style="text-align:center">JPEG</p></td> 
       </tr> 
       <tr> 
        <td class="acenter" width="17.09%"><p style="text-align:center">Color Format</p></td> 
        <td class="acenter" width="17.09%"><p style="text-align:center">RGB</p></td> 
       </tr> 
       <tr> 
        <td class="acenter" width="17.09%"><p style="text-align:center">Resolution</p></td> 
        <td class="acenter" width="17.09%"><p style="text-align:center">Not extremely high-resolution </p></td> 
       </tr> 
      </table>
     </table-wrap>
     <p>
      <xref ref-type="bibr" rid="scirp.141073-"></xref></p>
     <p>Preprocessing Requirements:</p>
     <p>Image Resizing: In order to satisfy the input specifications of deep learning models, we scaled images to a consistent dimension (224 × 224 pixels).</p>
     <p>Normalization: To improve model performance and computational efficiency, pixel values were normalized to a range of 0 - 1.</p>
     <p>
      <xref ref-type="bibr" rid="scirp.141073-"></xref>Augmentation: In order to enhance model generalisation, data augmentation methods like flipping, rotation, and zooming were used.</p>
     <p>
      <xref ref-type="bibr" rid="scirp.141073-"></xref>Dataset Structure: The dataset structure is shown in <xref ref-type="table" rid="table2">
       Table 2
      </xref></p>
     <table-wrap id="table2">
      <label>
       <xref ref-type="table" rid="table2">
        Table 2
       </xref></label>
      <caption>
       <title>
        <xref ref-type="bibr" rid="scirp.141073-"></xref>Table 2. Dataset structure.</title>
      </caption>
      <table class="MsoTableGrid custom-table" border="0" cellspacing="0" cellpadding="0"> 
       <tr> 
        <td class="custom-bottom-td acenter" width="17.09%"><p style="text-align:center">Image File</p></td> 
        <td class="custom-bottom-td acenter" width="17.09%"><p style="text-align:center">Category</p></td> 
       </tr> 
       <tr> 
        <td class="custom-top-td acenter" width="17.09%"><p style="text-align:center">acne_001.jpg</p></td> 
        <td class="custom-top-td acenter" width="17.09%"><p style="text-align:center">Acne</p></td> 
       </tr> 
       <tr> 
        <td class="acenter" width="17.09%"><p style="text-align:center">melanoma_045.jpg</p></td> 
        <td class="acenter" width="17.09%"><p style="text-align:center">Melanoma</p></td> 
       </tr> 
       <tr> 
        <td class="acenter" width="17.09%"><p style="text-align:center">eczema_023.jpg</p></td> 
        <td class="acenter" width="17.09%"><p style="text-align:center">Eczema</p></td> 
       </tr> 
       <tr> 
        <td class="acenter" width="17.09%"><p style="text-align:center">seborrheic_keratoses_12.jpg</p></td> 
        <td class="acenter" width="17.09%"><p style="text-align:center">Seborrheic Keratoses</p></td> 
       </tr> 
      </table>
     </table-wrap>
    </sec>
    <sec id="s3_2">
     <title>
      <xref ref-type="bibr" rid="scirp.141073-"></xref>3.2. Data Preprocessing</title>
     <p>
      <xref ref-type="fig" rid="fig1">
       Figure 1
      </xref> contains the dataset sample images. The dataset is divided into test and training data for every type of skin condition. Eighty percent of the dataset is made up of train data, and twenty percent is made up of test data. As indicated in <xref ref-type="table" rid="table3">
       Table 3
      </xref>, the validation data was collected using the same number of images as the test data, either in the train data or the test data.</p>
     <p>To achieve exceptional results in the skin disease detection system, a few major challenges must be overcome. For example, creating a database and standardizing image dimensions. The next section explains the image scaling process.</p>
     <fig id="fig1" position="float">
      <label>Figure 1</label>
      <caption>
       <title>Figure 1. Dataset sample image.</title>
      </caption>
      <graphic mimetype="image" position="float" xlink:type="simple" xlink:href="https://html.scirp.org/file/2060478-rId15.jpeg?20250307030529" />
     </fig>
     <table-wrap id="table3">
      <label>
       <xref ref-type="table" rid="table3">
        Table 3
       </xref></label>
      <caption>
       <title>
        <xref ref-type="bibr" rid="scirp.141073-"></xref>Table 3. Image sample collection.</title>
      </caption>
      <table class="MsoTableGrid custom-table" border="0" cellspacing="0" cellpadding="0"> 
       <tr> 
        <td class="custom-bottom-td acenter" width="8.23%"><p style="text-align:center">Sl</p></td> 
        <td class="custom-bottom-td acenter" width="54.45%"><p style="text-align:center">Class</p></td> 
        <td class="custom-bottom-td acenter" width="12.44%"><p style="text-align:center">Training</p></td> 
        <td class="custom-bottom-td acenter" width="12.44%"><p style="text-align:center">Testing</p></td> 
        <td class="custom-bottom-td acenter" width="12.45%"><p style="text-align:center">Validation</p></td> 
       </tr> 
       <tr> 
        <td class="custom-top-td acenter" width="8.23%"><p style="text-align:center">1</p></td> 
        <td class="custom-top-td acenter" width="54.45%"><p style="text-align:center">Bullous Disease Photos</p></td> 
        <td class="custom-top-td acenter" width="12.44%"><p style="text-align:center">448</p></td> 
        <td class="custom-top-td acenter" width="12.44%"><p style="text-align:center">113</p></td> 
        <td class="custom-top-td acenter" width="12.45%"><p style="text-align:center">113</p></td> 
       </tr> 
       <tr> 
        <td class="acenter" width="8.23%"><p style="text-align:center">2</p></td> 
        <td class="acenter" width="54.45%"><p style="text-align:center">Light Diseases and Disorders of Pigmentation</p></td> 
        <td class="acenter" width="12.44%"><p style="text-align:center">568</p></td> 
        <td class="acenter" width="12.44%"><p style="text-align:center">143</p></td> 
        <td class="acenter" width="12.45%"><p style="text-align:center">143</p></td> 
       </tr> 
       <tr> 
        <td class="acenter" width="8.23%"><p style="text-align:center">3</p></td> 
        <td class="acenter" width="54.45%"><p style="text-align:center">Warts Molluscum and Other Viral Infections</p></td> 
        <td class="acenter" width="12.44%"><p style="text-align:center">1086</p></td> 
        <td class="acenter" width="12.44%"><p style="text-align:center">272</p></td> 
        <td class="acenter" width="12.45%"><p style="text-align:center">272</p></td> 
       </tr> 
       <tr> 
        <td class="acenter" width="8.23%"><p style="text-align:center">4</p></td> 
        <td class="acenter" width="54.45%"><p style="text-align:center">Exanthems and Drug Eruptions</p></td> 
        <td class="acenter" width="12.44%"><p style="text-align:center">404</p></td> 
        <td class="acenter" width="12.44%"><p style="text-align:center">101</p></td> 
        <td class="acenter" width="12.45%"><p style="text-align:center">101</p></td> 
       </tr> 
       <tr> 
        <td class="acenter" width="8.23%"><p style="text-align:center">5</p></td> 
        <td class="acenter" width="54.45%"><p style="text-align:center">Actinic Keratosis Basal Cell Carcinoma and Other Malignant Tumors</p></td> 
        <td class="acenter" width="12.44%"><p style="text-align:center">1149</p></td> 
        <td class="acenter" width="12.44%"><p style="text-align:center">288</p></td> 
        <td class="acenter" width="12.45%"><p style="text-align:center">288</p></td> 
       </tr> 
       <tr> 
        <td class="acenter" width="8.23%"><p style="text-align:center">6</p></td> 
        <td class="acenter" width="54.45%"><p style="text-align:center">Herpes HPV and Other STDs Photos</p></td> 
        <td class="acenter" width="12.44%"><p style="text-align:center">405</p></td> 
        <td class="acenter" width="12.44%"><p style="text-align:center">102</p></td> 
        <td class="acenter" width="12.45%"><p style="text-align:center">102</p></td> 
       </tr> 
       <tr> 
        <td class="acenter" width="8.23%"><p style="text-align:center">7</p></td> 
        <td class="acenter" width="54.45%"><p style="text-align:center">Urticaria Hives</p></td> 
        <td class="acenter" width="12.44%"><p style="text-align:center">212</p></td> 
        <td class="acenter" width="12.44%"><p style="text-align:center">53</p></td> 
        <td class="acenter" width="12.45%"><p style="text-align:center">53</p></td> 
       </tr> 
       <tr> 
        <td class="acenter" width="8.23%"><p style="text-align:center">8</p></td> 
        <td class="acenter" width="54.45%"><p style="text-align:center">Psoriasis Pictures Lichen Planus and Related Diseases</p></td> 
        <td class="acenter" width="12.44%"><p style="text-align:center">1405</p></td> 
        <td class="acenter" width="12.44%"><p style="text-align:center">352</p></td> 
        <td class="acenter" width="12.45%"><p style="text-align:center">352</p></td> 
       </tr> 
       <tr> 
        <td class="acenter" width="8.23%"><p style="text-align:center">9</p></td> 
        <td class="acenter" width="54.45%"><p style="text-align:center">Eczema Photos</p></td> 
        <td class="acenter" width="12.44%"><p style="text-align:center">1235</p></td> 
        <td class="acenter" width="12.44%"><p style="text-align:center">309</p></td> 
        <td class="acenter" width="12.45%"><p style="text-align:center">309</p></td> 
       </tr> 
       <tr> 
        <td class="acenter" width="8.23%"><p style="text-align:center">10</p></td> 
        <td class="acenter" width="54.45%"><p style="text-align:center">Atopic Dermatitis Photos</p></td> 
        <td class="acenter" width="12.44%"><p style="text-align:center">489</p></td> 
        <td class="acenter" width="12.44%"><p style="text-align:center">123</p></td> 
        <td class="acenter" width="12.45%"><p style="text-align:center">123</p></td> 
       </tr> 
       <tr> 
        <td class="acenter" width="8.23%"><p style="text-align:center">11</p></td> 
        <td class="acenter" width="54.45%"><p style="text-align:center">Acne and Rosacea Photos</p></td> 
        <td class="acenter" width="12.44%"><p style="text-align:center">840</p></td> 
        <td class="acenter" width="12.44%"><p style="text-align:center">312</p></td> 
        <td class="acenter" width="12.45%"><p style="text-align:center">312</p></td> 
       </tr> 
       <tr> 
        <td class="acenter" width="8.23%"><p style="text-align:center">12</p></td> 
        <td class="acenter" width="54.45%"><p style="text-align:center">Poison Ivy Photos and Other Contact Dermatitis</p></td> 
        <td class="acenter" width="12.44%"><p style="text-align:center">260</p></td> 
        <td class="acenter" width="12.44%"><p style="text-align:center">65</p></td> 
        <td class="acenter" width="12.45%"><p style="text-align:center">65</p></td> 
       </tr> 
       <tr> 
        <td class="acenter" width="8.23%"><p style="text-align:center">13</p></td> 
        <td class="acenter" width="54.45%"><p style="text-align:center">Hair Loss Photos Alopecia and Other Hair Diseases</p></td> 
        <td class="acenter" width="12.44%"><p style="text-align:center">239</p></td> 
        <td class="acenter" width="12.44%"><p style="text-align:center">60</p></td> 
        <td class="acenter" width="12.45%"><p style="text-align:center">60</p></td> 
       </tr> 
       <tr> 
        <td class="acenter" width="8.23%"><p style="text-align:center">14</p></td> 
        <td class="acenter" width="54.45%"><p style="text-align:center">Seborrheic Keratoses and Other Benign Tumors</p></td> 
        <td class="acenter" width="12.44%"><p style="text-align:center">1371</p></td> 
        <td class="acenter" width="12.44%"><p style="text-align:center">343</p></td> 
        <td class="acenter" width="12.45%"><p style="text-align:center">343</p></td> 
       </tr> 
       <tr> 
        <td class="acenter" width="8.23%"><p style="text-align:center">15</p></td> 
        <td class="acenter" width="54.45%"><p style="text-align:center">Lupus and Other Connective Tissue Diseases</p></td> 
        <td class="acenter" width="12.44%"><p style="text-align:center">420</p></td> 
        <td class="acenter" width="12.44%"><p style="text-align:center">105</p></td> 
        <td class="acenter" width="12.45%"><p style="text-align:center">105</p></td> 
       </tr> 
       <tr> 
        <td class="acenter" width="8.23%"><p style="text-align:center">16</p></td> 
        <td class="acenter" width="54.45%"><p style="text-align:center">Systemic Disease</p></td> 
        <td class="acenter" width="12.44%"><p style="text-align:center">606</p></td> 
        <td class="acenter" width="12.44%"><p style="text-align:center">152</p></td> 
        <td class="acenter" width="12.45%"><p style="text-align:center">152</p></td> 
       </tr> 
       <tr> 
        <td class="acenter" width="8.23%"><p style="text-align:center">17</p></td> 
        <td class="acenter" width="54.45%"><p style="text-align:center">Nail Fungus and Other Nail Diseases</p></td> 
        <td class="acenter" width="12.44%"><p style="text-align:center">1040</p></td> 
        <td class="acenter" width="12.44%"><p style="text-align:center">261</p></td> 
        <td class="acenter" width="12.45%"><p style="text-align:center">261</p></td> 
       </tr> 
       <tr> 
        <td class="acenter" width="8.23%"><p style="text-align:center">18</p></td> 
        <td class="acenter" width="54.45%"><p style="text-align:center">Cellulitis Impetigo and other Bacterial Infections</p></td> 
        <td class="acenter" width="12.44%"><p style="text-align:center">288</p></td> 
        <td class="acenter" width="12.44%"><p style="text-align:center">73</p></td> 
        <td class="acenter" width="12.45%"><p style="text-align:center">73</p></td> 
       </tr> 
       <tr> 
        <td class="acenter" width="8.23%"><p style="text-align:center">19</p></td> 
        <td class="acenter" width="54.45%"><p style="text-align:center">Melanoma Skin Cancer Nevi and Moles</p></td> 
        <td class="acenter" width="12.44%"><p style="text-align:center">463</p></td> 
        <td class="acenter" width="12.44%"><p style="text-align:center">116</p></td> 
        <td class="acenter" width="12.45%"><p style="text-align:center">116</p></td> 
       </tr> 
       <tr> 
        <td class="acenter" width="8.23%"><p style="text-align:center">20</p></td> 
        <td class="acenter" width="54.45%"><p style="text-align:center">Tinea Ringworm Candidiasis and Other Fungal Infections</p></td> 
        <td class="acenter" width="12.44%"><p style="text-align:center">1300</p></td> 
        <td class="acenter" width="12.44%"><p style="text-align:center">325</p></td> 
        <td class="acenter" width="12.45%"><p style="text-align:center">325</p></td> 
       </tr> 
       <tr> 
        <td class="acenter" width="8.23%"><p style="text-align:center">21</p></td> 
        <td class="acenter" width="54.45%"><p style="text-align:center">Vascular Tumors</p></td> 
        <td class="acenter" width="12.44%"><p style="text-align:center">482</p></td> 
        <td class="acenter" width="12.44%"><p style="text-align:center">121</p></td> 
        <td class="acenter" width="12.45%"><p style="text-align:center">121</p></td> 
       </tr> 
       <tr> 
        <td class="acenter" width="8.23%"><p style="text-align:center">22</p></td> 
        <td class="acenter" width="54.45%"><p style="text-align:center">Vasculitis Photos</p></td> 
        <td class="acenter" width="12.44%"><p style="text-align:center">416</p></td> 
        <td class="acenter" width="12.44%"><p style="text-align:center">105</p></td> 
        <td class="acenter" width="12.45%"><p style="text-align:center">105</p></td> 
       </tr> 
       <tr> 
        <td class="acenter" width="8.23%"><p style="text-align:center">23</p></td> 
        <td class="acenter" width="54.45%"><p style="text-align:center">Scabies Lyme Disease and Other Infestations</p></td> 
        <td class="acenter" width="12.44%"><p style="text-align:center">431</p></td> 
        <td class="acenter" width="12.44%"><p style="text-align:center">108</p></td> 
        <td class="acenter" width="12.45%"><p style="text-align:center">108</p></td> 
       </tr> 
      </table>
     </table-wrap>
     <p>An input image’s size can be increased or decreased to address the issue of disparate image sizes in the database. All photographs will have the same number of characteristics if the image sizes are unified. Additionally, shrinking the image improves system speed by cutting down on processing time. <xref ref-type="fig" rid="fig2">
       Figure 2
      </xref> displays the original 250 × 500-pixel image. <xref ref-type="fig" rid="fig3">
       Figure 3
      </xref> displays the resized image at 224 by 224 pixels.</p>
     <fig id="fig2" position="float">
      <label>Figure 2</label>
      <caption>
       <title>Figure 2. Original image (250 × 500).</title>
      </caption>
      <graphic mimetype="image" position="float" xlink:type="simple" xlink:href="https://html.scirp.org/file/2060478-rId16.jpeg?20250307030529" />
     </fig>
     <fig id="fig3" position="float">
      <label>Figure 3</label>
      <caption>
       <title>Figure 3. Resizing image (224 × 224).</title>
      </caption>
      <graphic mimetype="image" position="float" xlink:type="simple" xlink:href="https://html.scirp.org/file/2060478-rId17.jpeg?20250307030529" />
     </fig>
     <p>In pursuit of optimizing performance for our skin disease classification project, the dataset underwent a series of preprocessing steps to prepare it for training and evaluation. These steps ensure computational efficiency, compatibility with selected machine learning and deep learning models, and enhanced model performance. The original dermoscopic images, available in varying resolutions, were resized to a computationally efficient dimension of 224 × 224 pixels, as illustrated in <xref ref-type="table" rid="table4">
       Table 4
      </xref>. This resizing aligns with the input requirements of deep learning architectures such as MobileNet, VGG16, and ResNet50. Pre-trained models, such as VGG16 and ResNet50, retained the RGB format to preserve their three-dimensional color representation. Three model types are employed:</p>
     <p>1) Custom CNN</p>
     <p>2) Transfer Learning (VGG16, ResNet50, MobileNet)</p>
     <p>3) Classical Machine Learning Algorithms</p>
     <p>Deep learning models were trained using a batch size of 32, while classical models processed flattened image data without batching.</p>
     <table-wrap id="table4">
      <label>
       <xref ref-type="table" rid="table4">
        Table 4
       </xref></label>
      <caption>
       <title>
        <xref ref-type="bibr" rid="scirp.141073-"></xref>Table 4. Structure of training data.</title>
      </caption>
      <table class="MsoTableGrid custom-table" border="0" cellspacing="0" cellpadding="0"> 
       <tr> 
        <td class="custom-bottom-td acenter" width="9.50%"><p style="text-align:center">SL</p></td> 
        <td class="custom-bottom-td acenter" width="30.49%"><p style="text-align:center">Methods </p></td> 
        <td class="custom-bottom-td acenter" width="20.00%"><p style="text-align:center">Image Size </p></td> 
        <td class="custom-bottom-td acenter" width="20.00%"><p style="text-align:center">Color Channel </p></td> 
        <td class="custom-bottom-td acenter" width="20.00%"><p style="text-align:center">Batch Size </p></td> 
       </tr> 
       <tr> 
        <td class="custom-top-td acenter" width="9.50%"><p style="text-align:center">1</p></td> 
        <td class="custom-top-td acenter" width="30.49%"><p style="text-align:center">Custom CNN </p></td> 
        <td class="custom-top-td acenter" width="20.00%"><p style="text-align:center">224, 224</p></td> 
        <td class="custom-top-td acenter" width="20.00%"><p style="text-align:center">3</p></td> 
        <td class="custom-top-td acenter" width="20.00%"><p style="text-align:center">32</p></td> 
       </tr> 
       <tr> 
        <td class="acenter" width="9.50%"><p style="text-align:center">2</p></td> 
        <td class="acenter" width="30.49%"><p style="text-align:center">Transfer Learning </p></td> 
        <td class="acenter" width="20.00%"><p style="text-align:center">224, 224</p></td> 
        <td class="acenter" width="20.00%"><p style="text-align:center">3</p></td> 
        <td class="acenter" width="20.00%"><p style="text-align:center">32</p></td> 
       </tr> 
       <tr> 
        <td class="acenter" width="9.50%"><p style="text-align:center">3</p></td> 
        <td class="acenter" width="30.49%"><p style="text-align:center">Classical Algorithms </p></td> 
        <td class="acenter" width="20.00%"><p style="text-align:center">224, 224</p></td> 
        <td class="acenter" width="20.00%"><p style="text-align:center">3</p></td> 
        <td class="acenter" width="20.00%"><p style="text-align:center">None</p></td> 
       </tr> 
      </table>
     </table-wrap>
     <p>Deep learning models, including Custom CNNs and pre-trained architectures, were trained with a batch size of 32, optimizing GPU utilization. Classical machine learning models, due to their structural simplicity, did not require batching and processed the flattened dataset directly.</p>
     <p>When training deep learning models, significant computational resources are required due to the complexity of neural network architectures. A batch training strategy with a size of 32 was adopted for efficient GPU utilization. Conversely, classical machine learning models were trained on a flattened configuration of the data without batching, reflecting their distinct computational requirements.</p>
     <p>These preprocessing steps ensure compatibility with various model architectures while optimizing both computational efficiency and model performance.</p>
    </sec>
    <sec id="s3_3">
     <title>
      <xref ref-type="bibr" rid="scirp.141073-"></xref>3.3. Model Architecture</title>
     <p>Our customized Convolutional Neural Network (CNN) architecture, designed for skin disease classification, is outlined in <xref ref-type="fig" rid="fig4">
       Figure 4
      </xref>. It includes several key components: convolutional layers, MaxPooling layers, Dense layers, and Dropout layers. “valid” padding was employed for all convolutional layers to minimize information loss during training. A stride of (2, 2) was used in the convolutional layers to downsample the feature maps efficiently. For MaxPooling layers, a pool size of (2, 2) was chosen to selectively downsample feature maps and preserve salient features, also utilizing “valid” padding to avoid zero padding.</p>
     <fig id="fig4" position="float">
      <label>Figure 4</label>
      <caption>
       <title>Figure 4. Custom CNN architecture.</title>
      </caption>
      <graphic mimetype="image" position="float" xlink:type="simple" xlink:href="https://html.scirp.org/file/2060478-rId18.jpeg?20250307030532" />
     </fig>
     <p>A custom Convolutional Neural Network was developed for skin disease classification. The architecture consists of:</p>
     <p>In this CNN designed for skin disease classification, the input layer receives the dermoscopic image data, which is typically represented as pixel values in RGB format. The preprocessing ensures these images are resized to a standard 224 × 224 pixels and normalized to a pixel value range of (0 to 1), optimizing the model’s performance. Conv2D layers are pivotal in the architecture, performing sliding window operations to detect local patterns and features within the images, such as texture variations, lesion shapes, and pigmentation differences. These patterns are crucial for distinguishing between diseases like melanoma, eczema, or psoriasis. MaxPooling2D layers follow each Conv2D layer, reducing the spatial dimensions of the feature maps. This pooling operation selects the maximum value from predefined regions, thereby retaining the most salient features while discarding redundant information. The reduction in spatial size also improves computational efficiency and prevents overfitting by focusing the model on the critical features of each skin condition. The sequence of Conv2D and MaxPooling2D layers is repeated, enabling the model to learn progressively complex and hierarchical representations of skin disease features. For instance, the earlier layers might detect simple patterns like edges, while deeper layers capture more abstract features, such as the irregular borders of a mole or specific pigmentation clusters associated with a condition. The Flatten layer then converts the multidimensional feature maps into a one-dimensional array. This transformation is essential for transitioning to the Dense layers, where the model learns global relationships and patterns that span the entire image. These layers integrate the localized features extracted by the convolutional layers to classify diseases effectively. Dropout layers are interspersed between Dense layers to randomly deactivate a fraction of neurons during training. This regularization technique prevents the model from overfitting, ensuring that it generalizes well to unseen dermoscopic images. The output Dense layer generates predictions, with the number of neurons corresponding to the number of skin disease classes. The activation function, such as softmax for multi-class classification or soft max for binary tasks, ensures the output represents probabilities for each class. This CNN architecture is particularly effective for skin disease classification because it automatically learns hierarchical representations of features, from basic textures to complex patterns, directly from the input data. By leveraging these capabilities, the model can accurately classify and differentiate between various dermatological conditions, making it a valuable tool for diagnostic support in clinical and research settings. In <xref ref-type="table" rid="table5">
       Table 5
      </xref>, we can find the layer Architecture Breakdown for Skin Disease Classification.</p>
     <table-wrap id="table5">
      <label>
       <xref ref-type="table" rid="table5">
        Table 5
       </xref></label>
      <caption>
       <title>
        <xref ref-type="bibr" rid="scirp.141073-"></xref>Table 5. Layer architecture breakdown for skin disease classification.</title>
      </caption>
      <table class="MsoTableGrid custom-table" border="0" cellspacing="0" cellpadding="0"> 
       <tr> 
        <td class="custom-bottom-td acenter" width="19.84%"><p style="text-align:center">SL. No</p></td> 
        <td class="custom-bottom-td acenter" width="27.57%"><p style="text-align:center">Layer (Type)</p></td> 
        <td class="custom-bottom-td acenter" width="27.59%"><p style="text-align:center">Output Shape</p></td> 
        <td class="custom-bottom-td acenter" width="25.01%"><p style="text-align:center">Parameters</p></td> 
       </tr> 
       <tr> 
        <td class="custom-top-td acenter" width="19.84%"><p style="text-align:center">1</p></td> 
        <td class="custom-top-td acenter" width="27.57%"><p style="text-align:center">Input Layer</p></td> 
        <td class="custom-top-td acenter" width="27.59%"><p style="text-align:center">(Batch, 224, 224, 3)</p></td> 
        <td class="custom-top-td acenter" width="25.01%"><p style="text-align:center"></p></td> 
       </tr> 
       <tr> 
        <td class="acenter" width="19.84%"><p style="text-align:center">2</p></td> 
        <td class="acenter" width="27.57%"><p style="text-align:center">Conv2d-1</p></td> 
        <td class="acenter" width="27.59%"><p style="text-align:center">(Batch, 112, 112, 64)</p></td> 
        <td class="acenter" width="25.01%"><p style="text-align:center">832</p></td> 
       </tr> 
       <tr> 
        <td class="acenter" width="19.84%"><p style="text-align:center">3</p></td> 
        <td class="acenter" width="27.57%"><p style="text-align:center">MaxPool2d-3</p></td> 
        <td class="acenter" width="27.59%"><p style="text-align:center">(Batch, 56, 56, 64)</p></td> 
        <td class="acenter" width="25.01%"><p style="text-align:center">0</p></td> 
       </tr> 
       <tr> 
        <td class="acenter" width="19.84%"><p style="text-align:center">4</p></td> 
        <td class="acenter" width="27.57%"><p style="text-align:center">Conv2d-4</p></td> 
        <td class="acenter" width="27.59%"><p style="text-align:center">(Batch, 28, 28, 64)</p></td> 
        <td class="acenter" width="25.01%"><p style="text-align:center">16,448</p></td> 
       </tr> 
       <tr> 
        <td class="acenter" width="19.84%"><p style="text-align:center">5</p></td> 
        <td class="acenter" width="27.57%"><p style="text-align:center">MaxPool2d-6</p></td> 
        <td class="acenter" width="27.59%"><p style="text-align:center">(Batch, 14, 14, 64)</p></td> 
        <td class="acenter" width="25.01%"><p style="text-align:center">0</p></td> 
       </tr> 
       <tr> 
        <td class="acenter" width="19.84%"><p style="text-align:center">6</p></td> 
        <td class="acenter" width="27.57%"><p style="text-align:center">Flatten-7</p></td> 
        <td class="acenter" width="27.59%"><p style="text-align:center">(Batch, 12544)</p></td> 
        <td class="acenter" width="25.01%"><p style="text-align:center">0</p></td> 
       </tr> 
       <tr> 
        <td class="acenter" width="19.84%"><p style="text-align:center">7</p></td> 
        <td class="acenter" width="27.57%"><p style="text-align:center">Dropout-9</p></td> 
        <td class="acenter" width="27.59%"><p style="text-align:center">(Batch, 64)</p></td> 
        <td class="acenter" width="25.01%"><p style="text-align:center">0</p></td> 
       </tr> 
       <tr> 
        <td class="acenter" width="19.84%"><p style="text-align:center">8</p></td> 
        <td class="acenter" width="27.57%"><p style="text-align:center">Linear-10</p></td> 
        <td class="acenter" width="27.59%"><p style="text-align:center">(Batch, 64)</p></td> 
        <td class="acenter" width="25.01%"><p style="text-align:center">4160</p></td> 
       </tr> 
       <tr> 
        <td class="acenter" width="19.84%"><p style="text-align:center">9</p></td> 
        <td class="acenter" width="27.57%"><p style="text-align:center">Dropout-12</p></td> 
        <td class="acenter" width="27.59%"><p style="text-align:center">(Batch, 64)</p></td> 
        <td class="acenter" width="25.01%"><p style="text-align:center">0</p></td> 
       </tr> 
       <tr> 
        <td class="acenter" width="19.84%"><p style="text-align:center">10</p></td> 
        <td class="acenter" width="27.57%"><p style="text-align:center">Linear-13</p></td> 
        <td class="acenter" width="27.59%"><p style="text-align:center">(Batch, 23)</p></td> 
        <td class="acenter" width="25.01%"><p style="text-align:center">1495</p></td> 
       </tr> 
       <tr> 
        <td class="acenter" width="19.84%"><p style="text-align:center">11</p></td> 
        <td class="acenter" width="27.57%"><p style="text-align:center">Softmax-14</p></td> 
        <td class="acenter" width="27.59%"><p style="text-align:center">(Batch, 23)</p></td> 
        <td class="acenter" width="25.01%"><p style="text-align:center">0</p></td> 
       </tr> 
       <tr> 
        <td class="acenter" width="100.00%" colspan="4"><p style="text-align:center">Total params: 22,935</p><p style="text-align:center">Trainable params: 22,935</p><p style="text-align:center">Non-trainable params: 0</p></td> 
       </tr> 
      </table>
     </table-wrap>
    </sec>
    <sec id="s3_4">
     <title>
      <xref ref-type="bibr" rid="scirp.141073-"></xref>3.4. Loss Function and Optimizer</title>
     <p>In the field of deep learning focused on binary classification, the logarithmic loss function, commonly referred to as binary cross-entropy, stands out as a preferred option due to its success in reducing loss. This metric is designed to measure the difference between predicted results and real observations. The formula applied for this analysis is represented as:</p>
     <p>
      <math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"> <mrow> 
        <mfrac> 
         <mn>
           1 
         </mn> 
         <mi>
           N 
         </mi> 
        </mfrac> 
        <munderover> 
         <mstyle mathsize="140%" displaystyle="true"> 
          <mo>
            ∑ 
          </mo> 
         </mstyle> 
         <mrow> 
          <mi>
            i 
          </mi> 
          <mo>
            = 
          </mo> 
          <mn>
            0 
          </mn> 
         </mrow> 
         <mi>
           n 
         </mi> 
        </munderover> 
        <mrow> 
         <mo>
           ( 
         </mo> 
         <mrow> 
          <mo>
            − 
          </mo> 
          <mrow> 
           <mo>
             ( 
           </mo> 
           <mrow> 
            <mi>
              y 
            </mi> 
            <mi>
              i 
            </mi> 
            <mo>
              × 
            </mo> 
            <mi>
              log 
            </mi> 
            <mrow> 
             <mo>
               ( 
             </mo> 
             <mrow> 
              <mi>
                p 
              </mi> 
              <mi>
                i 
              </mi> 
              <mtext>
                ​ 
              </mtext> 
             </mrow> 
             <mo>
               ) 
             </mo> 
            </mrow> 
            <mo>
              + 
            </mo> 
            <mrow> 
             <mo>
               ( 
             </mo> 
             <mrow> 
              <mn>
                1 
              </mn> 
              <mo>
                − 
              </mo> 
              <mi>
                y 
              </mi> 
              <mi>
                i 
              </mi> 
              <mtext>
                ​ 
              </mtext> 
             </mrow> 
             <mo>
               ) 
             </mo> 
            </mrow> 
            <mo>
              × 
            </mo> 
            <mi>
              log 
            </mi> 
            <mrow> 
             <mo>
               ( 
             </mo> 
             <mrow> 
              <mn>
                1 
              </mn> 
              <mo>
                − 
              </mo> 
              <mi>
                p 
              </mi> 
              <mi>
                i 
              </mi> 
              <mtext>
                ​ 
              </mtext> 
             </mrow> 
             <mo>
               ) 
             </mo> 
            </mrow> 
           </mrow> 
           <mo>
             ) 
           </mo> 
          </mrow> 
         </mrow> 
         <mo>
           ) 
         </mo> 
        </mrow> 
       </mrow> 
      </math></p>
     <p>We utilized the cross-entropy loss function to measure the effectiveness of our classification model. In this context, N represents the total number of images in our training dataset, which comprises 15,500 samples. Each image, indexed by “i”, is associated with a true classification label ( 
      <math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"> <mrow> 
        <mi>
          y 
        </mi> 
        <mi>
          i 
        </mi> 
        <mtext>
          ​ 
        </mtext> 
       </mrow> 
      </math>) and a predicted probability ( 
      <math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"> <mrow> 
        <mi>
          p 
        </mi> 
        <mi>
          i 
        </mi> 
       </mrow> 
      </math>). The summation across all samples captures the total logarithmic loss, which assesses the difference between the predicted and actual classifications. By normalizing this total loss by dividing it by N, we obtain the average loss. This average loss is a crucial metric that guides our model’s training, embodying our objective of minimizing predictive errors across the entire dataset. It emphasizes the core of our model optimization strategy, providing a detailed view of how our model aims to improve its predictive performance throughout the training process. The formula governing the Adam optimizer is expressed as:</p>
     <p>
      <math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"> <mrow> 
        <msub> 
         <mi>
           W 
         </mi> 
         <mrow> 
          <mi>
            t 
          </mi> 
          <mo>
            + 
          </mo> 
          <mn>
            1 
          </mn> 
         </mrow> 
        </msub> 
        <mo>
          = 
        </mo> 
        <mo> 
        </mo> 
        <msub> 
         <mi>
           x 
         </mi> 
         <mrow> 
          <mi>
            t 
          </mi> 
          <mo>
            − 
          </mo> 
          <mo> 
          </mo> 
          <mfrac> 
           <mi>
             n 
           </mi> 
           <mrow> 
            <msqrt> 
             <mrow> 
              <mi>
                v 
              </mi> 
              <mo>
                + 
              </mo> 
              <mi>
                e 
              </mi> 
             </mrow> 
            </msqrt> 
           </mrow> 
          </mfrac> 
         </mrow> 
        </msub> 
        <mo>
          × 
        </mo> 
        <msub> 
         <mi>
           m 
         </mi> 
         <mi>
           t 
         </mi> 
        </msub> 
       </mrow> 
      </math></p>
     <p>A robust model architecture tailored for automated skin disease classification is developed. The CNN-based approach, combined with transfer learning and augmentation techniques, enhances accuracy and generalization, making it a valuable diagnostic tool in medical image analysis.</p>
    </sec>
    <sec id="s3_5">
     <title>
      <xref ref-type="bibr" rid="scirp.141073-"></xref>3.5. Justification of Methodology</title>
     <p>This research is underpinned by a systematic selection and curation of a dataset comprising 19,500 dermoscopic images sourced from the publicly available Dermnet dataset. The dataset spans 23 categories of skin diseases, including common conditions like acne, melanoma, eczema, and psoriasis. The high-quality dataset ensures that the model can effectively learn the diverse patterns and features associated with various dermatological conditions. Images are stored in JPEG format with RGB channels, accommodating the computational requirements of machine learning models.</p>
     <p>To enhance the model’s ability to generalize, the dataset is judiciously partitioned into 80% for training and validation (~15,500 images) and 20% for testing (~4000 images). This partitioning strategy ensures a robust evaluation of the model while dedicating sufficient data to training. Additionally, class imbalances are addressed through data augmentation techniques, such as rotations, flips, and color adjustments, specifically targeting underrepresented classes like rare bullous disorders. This approach improves class distribution and ensures that the model learns uniformly across all disease categories.</p>
     <p>
      <xref ref-type="bibr" rid="scirp.141073-"></xref>In the data preprocessing phase, images are resized to 224 × 224 pixels, optimizing computational efficiency without compromising critical diagnostic details. Since dermoscopic images often rely on color for diagnosis, the RGB format is preserved to retain important chromatic features. Pixel values are normalized to a range of 0 to 1, enhancing model convergence and stability by stabilizing the optimizer’s performance during training.</p>
     <p>The chosen model architecture, depicted in <xref ref-type="fig" rid="fig1">
       Figure 1
      </xref>, is a custom Convolutional Neural Network (CNN) tailored for skin disease classification. The CNN consists of multiple convolutional and MaxPooling layers optimized through iterative testing. “Valid” padding is employed to prevent border information loss, while a stride of (2, 2) and a pool size of (2, 2) in the MaxPooling layers ensure efficient feature extraction and downsampling. Empirical experimentation has determined that 128 filters in the convolutional layers and 128 neurons in the dense layers yield the most favorable results. The Rectified Linear Unit (ReLU) activation function introduces non-linearity, enabling the model to capture intricate patterns and features of skin conditions.</p>
     <p>For binary classification tasks, such as differentiating between healthy and diseased skin, binary cross-entropy is employed due to its effectiveness in reducing classification errors. For multi-class classification across 23 disease categories, categorical cross-entropy is used. The Adam optimizer is selected over traditional optimizers like Stochastic Gradient Descent (SGD) because of its adaptive learning rate and superior convergence properties. This decision is supported by prior research and empirical evaluations, where Adam demonstrated consistently optimal performance for image classification tasks. Data augmentation, normalization, and optimizer selection align with best practices in medical imaging and machine learning.</p>
    </sec>
   </sec>
   <sec id="s4">
    <title>
     <xref ref-type="bibr" rid="scirp.141073-"></xref>4. Requirement Analysis, Design &amp; Developments</title>
    <sec id="s4_1">
     <title>
      <xref ref-type="bibr" rid="scirp.141073-"></xref>4.1. Computational Requirements</title>
     <p>Developing deep learning models, especially Convolutional Neural Networks, requires (CNNs) substantial computational resources. Since skin disease prediction typically involves working with large image datasets, high-performance computing is necessary.</p>
     <p>To meet this requirement, we turned to cloud-based platforms that provide cost-effective access to powerful computing resources. For example, Google Colab offers free access to Nvidia Tesla T4 GPUs, enabling efficient training and fine-tuning of complex deep-learning models.</p>
     <p>In addition to Colab, we also utilized local computing resources when necessary, such as GPUs in personal machines or institutional resources, ensuring flexibility in training.</p>
     <p>We chose to use Jupyter Notebooks as our primary development environment. Jupyter’s integration with IPython allows for step-by-step execution of code, making it easier to experiment and debug the model. Additionally, we leveraged Google Colab’s cloud-based environment, which supports easy integration with Keras and other deep learning frameworks for model training, allowing us to scale our experiments and perform resource-intensive operations in the cloud. The combination of Jupyter Notebooks for interactive coding and Google Colab for computational power allowed for a seamless development workflow that greatly accelerated our model-building process. <xref ref-type="fig" rid="fig5">
       Figure 5
      </xref> shows the DFD diagram of the Proposed System.</p>
     <fig id="fig5" position="float">
      <label>Figure 5</label>
      <caption>
       <title>Figure 5. DFD diagram of the proposed system.</title>
      </caption>
      <graphic mimetype="image" position="float" xlink:type="simple" xlink:href="https://html.scirp.org/file/2060478-rId35.jpeg?20250307030537" />
     </fig>
    </sec>
    <sec id="s4_2">
     <title>
      <xref ref-type="bibr" rid="scirp.141073-"></xref>4.2. Loss and Training Analysis</title>
     <p>Upon detailed analysis of the data, a clear trend emerged, as shown in <xref ref-type="fig" rid="fig6">
       Figure 6
      </xref>, demonstrating a consistent reduction in loss and a corresponding increase in accuracy throughout the training period. At the beginning of the training, we observed some initial overfitting in the first few epochs. However, this issue was gradually resolved, indicating that the model training process was progressing effectively.</p>
     <fig id="fig6" position="float">
      <label>Figure 6</label>
      <caption>
       <title>Figure 6. CNN loss vs training.</title>
      </caption>
      <graphic mimetype="image" position="float" xlink:type="simple" xlink:href="https://html.scirp.org/file/2060478-rId36.jpeg?20250307030539" />
     </fig>
     <p>In the graphical analysis, the training loss and accuracy are represented using a blue line, while the validation accuracy and validation loss are shown in yellow. The close alignment between the blue and yellow lines suggests that the model has generalized the validation data well. Training accuracy exceeded 94%, which indicates that the model is learning to classify skin diseases with high precision.</p>
     <p>The graphs reflect a smooth and harmonious convergence between the training and validation metrics, suggesting minimal overfitting and underfitting during the training phase. This indicates a robust model with effective learning, resulting in a high-performing system for skin disease classification.</p>
    </sec>
   </sec>
   <sec id="s5">
    <title>
     <xref ref-type="bibr" rid="scirp.141073-"></xref>5. Result Analysis</title>
    <sec id="s5_1">
     <title>
      <xref ref-type="bibr" rid="scirp.141073-"></xref>5.1. Confusion Matrix</title>
     <p>The confusion matrix (<xref ref-type="fig" rid="fig7">
       Figure 7
      </xref>) is a performance evaluation tool that provides a detailed breakdown of the classification model’s predictions compared to actual outcomes. It summarizes the results of the model’s predictions for each class of skin disease, enabling a deeper understanding of the model’s strengths and areas for improvement.</p>
     <p>In this research, the confusion matrix provides insights into the following metrics:</p>
     <p>True Positives (TP): Accurate forecasts in which the disease class was correctly recognized by the model.</p>
     <p>True Negatives (TN): Accurate forecasts in which an illness not seen in the picture was ruled out by the model.</p>
     <p>False Positives (FP): Prediction errors in which the model incorrectly identified an absent disease.</p>
     <p>False Negatives (FN): Predictions that are incorrect because the model was unable to detect the disease.</p>
     <p>For example, in the case of “Psoriasis Pictures Lichen Planus and Related Diseases,” the matrix shows the number of correctly classified images (TP), along with misclassifications either as other diseases (FP) or failure to identify psoriasis when present (FN). Correctly classify skin disease cases (high recall). Avoid false alarms (high precision). Maintain overall predictive performance (high F1-score). The confusion matrix also enables targeted improvement, revealing specific disease classes where misclassification is more common. For instance, visually similar diseases, such as certain types of dermatitis, may have higher FP rates due to overlapping features, suggesting the need for enhanced feature extraction or class balancing during training.</p>
     <p>Each of the 23 different skin disease classes included in the confusion matrices produced for this study provides a thorough analysis of the effectiveness of the CNN-based classification model. For the sake of clarity and conciseness, <xref ref-type="fig" rid="figFigures 8-19">
       Figures 8-19
      </xref> only display 12 exemplary confusion matrices. By displaying the number of true positives, true negatives, false positives, and false negatives for every class, each matrix demonstrates the model’s proficiency in picture classification. This thorough analysis makes it possible to comprehend the model’s advantages in great detail. The model’s durability and dependability in diagnosing a range of dermatological disorders are demonstrated by its remarkable overall accuracy of 94.65%. Important performance indicators, including F1-score, precision, and recall, further confirm the model’s capacity to distinguish across related disease classifications with minimal false negatives and false positive rates.</p>
     <fig id="fig7" position="float">
      <label>Figure 7</label>
      <caption>
       <title>Figure 7. Confusion matrix.</title>
      </caption>
      <graphic mimetype="image" position="float" xlink:type="simple" xlink:href="https://html.scirp.org/file/2060478-rId37.jpeg?20250307030540" />
     </fig>
     <fig id="fig8" position="float">
      <label>Figure 8</label>
      <caption>
       <title>Figure 8. Confusion matrix for bullous disease.</title>
      </caption>
      <graphic mimetype="image" position="float" xlink:type="simple" xlink:href="https://html.scirp.org/file/2060478-rId38.jpeg?20250307030540" />
     </fig>
     <fig id="fig9" position="float">
      <label>Figure 9</label>
      <caption>
       <title>Figure 9. Confusion matrix for light diseases and disorders of pigmentation.</title>
      </caption>
      <graphic mimetype="image" position="float" xlink:type="simple" xlink:href="https://html.scirp.org/file/2060478-rId39.jpeg?20250307030540" />
     </fig>
     <fig id="fig10" position="float">
      <label>Figure 10</label>
      <caption>
       <title>Figure 10. Confusion matrix for warts mollusca and other viral infections.</title>
      </caption>
      <graphic mimetype="image" position="float" xlink:type="simple" xlink:href="https://html.scirp.org/file/2060478-rId40.jpeg?20250307030541" />
     </fig>
     <fig id="fig11" position="float">
      <label>Figure 11</label>
      <caption>
       <title>Figure 11. Confusion matrix for exanthems and drug eruptions.</title>
      </caption>
      <graphic mimetype="image" position="float" xlink:type="simple" xlink:href="https://html.scirp.org/file/2060478-rId41.jpeg?20250307030540" />
     </fig>
     <fig id="fig12" position="float">
      <label>Figure 12</label>
      <caption>
       <title>Figure 12. Confusion matrix for actinic keratosis basal cell.</title>
      </caption>
      <graphic mimetype="image" position="float" xlink:type="simple" xlink:href="https://html.scirp.org/file/2060478-rId42.jpeg?20250307030540" />
     </fig>
     <fig id="fig13" position="float">
      <label>Figure 13</label>
      <caption>
       <title>Figure 13. Confusion matrix for herpes HPV and other STDs.</title>
      </caption>
      <graphic mimetype="image" position="float" xlink:type="simple" xlink:href="https://html.scirp.org/file/2060478-rId43.jpeg?20250307030540" />
     </fig>
     <fig id="fig14" position="float">
      <label>Figure 14</label>
      <caption>
       <title>Figure 14. Confusion matrix for urticaria hives.</title>
      </caption>
      <graphic mimetype="image" position="float" xlink:type="simple" xlink:href="https://html.scirp.org/file/2060478-rId44.jpeg?20250307030540" />
     </fig>
     <fig id="fig15" position="float">
      <label>Figure 15</label>
      <caption>
       <title>Figure 15. Confusion matrix for psoriasis pictures lichen planus.</title>
      </caption>
      <graphic mimetype="image" position="float" xlink:type="simple" xlink:href="https://html.scirp.org/file/2060478-rId45.jpeg?20250307030540" />
     </fig>
     <fig id="fig16" position="float">
      <label>Figure 16</label>
      <caption>
       <title>Figure 16. Confusion matrix for eczema photos.</title>
      </caption>
      <graphic mimetype="image" position="float" xlink:type="simple" xlink:href="https://html.scirp.org/file/2060478-rId46.jpeg?20250307030541" />
     </fig>
     <fig id="fig17" position="float">
      <label>Figure 17</label>
      <caption>
       <title>Figure 17. Confusion matrix for atopic dermatitis photos.</title>
      </caption>
      <graphic mimetype="image" position="float" xlink:type="simple" xlink:href="https://html.scirp.org/file/2060478-rId47.jpeg?20250307030540" />
     </fig>
     <fig id="fig18" position="float">
      <label>Figure 18</label>
      <caption>
       <title>Figure 18. Confusion matrix for acne and rosacea photos.</title>
      </caption>
      <graphic mimetype="image" position="float" xlink:type="simple" xlink:href="https://html.scirp.org/file/2060478-rId38.jpeg?20250307030540" />
     </fig>
     <fig id="fig19" position="float">
      <label>Figure 19</label>
      <caption>
       <title>
        <xref ref-type="bibr" rid="scirp.141073-"></xref>Figure 19. Confusion matrix for poison ivy photos.</title>
      </caption>
      <graphic mimetype="image" position="float" xlink:type="simple" xlink:href="https://html.scirp.org/file/2060478-rId48.jpeg?20250307030540" />
     </fig>
    </sec>
    <sec id="s5_2">
     <title>
      <xref ref-type="bibr" rid="scirp.141073-"></xref>5.2. Model Performance Metrics Table</title>
     <p>The performance of the Custom CNN model was evaluated using widely recognized multi-class classification metrics, including Accuracy, Precision, Recall, and F1 Score, as summarized in <xref ref-type="table" rid="table6">
       Table 6
      </xref>. The analysis demonstrated that the CNN model achieved the highest overall accuracy and excelled particularly in Recall, whereas pre-trained models such as VGG16 and ResNet50 underperformed.</p>
     <table-wrap id="table6">
      <label>
       <xref ref-type="table" rid="table6">
        Table 6
       </xref></label>
      <caption>
       <title>
        <xref ref-type="bibr" rid="scirp.141073-"></xref>Table 6. Model performance metrics.</title>
      </caption>
      <table class="MsoTableGrid custom-table" border="0" cellspacing="0" cellpadding="0"> 
       <tr> 
        <td class="custom-bottom-td acenter" width="4.50%"><p style="text-align:center">SL</p></td> 
        <td class="custom-bottom-td acenter" width="44.88%"><p style="text-align:center">Class</p></td> 
        <td class="custom-bottom-td acenter" width="10.12%"><p style="text-align:center">Accuracy</p></td> 
        <td class="custom-bottom-td acenter" width="10.13%"><p style="text-align:center">Specificity</p></td> 
        <td class="custom-bottom-td acenter" width="10.13%"><p style="text-align:center">Recall</p></td> 
        <td class="custom-bottom-td acenter" width="10.13%"><p style="text-align:center">Precision</p></td> 
        <td class="custom-bottom-td acenter" width="10.13%"><p style="text-align:center">F1-Score</p></td> 
       </tr> 
       <tr> 
        <td class="custom-top-td acenter" width="4.50%"><p style="text-align:center">1</p></td> 
        <td class="custom-top-td acenter" width="44.88%"><p style="text-align:center">Bullous Disease Photos</p></td> 
        <td class="custom-top-td acenter" width="10.12%"><p style="text-align:center">0.940002</p></td> 
        <td class="custom-top-td acenter" width="10.13%"><p style="text-align:center">0.9964</p></td> 
        <td class="custom-top-td acenter" width="10.13%"><p style="text-align:center">0.946903</p></td> 
        <td class="custom-top-td acenter" width="10.13%"><p style="text-align:center">0.884298</p></td> 
        <td class="custom-top-td acenter" width="10.13%"><p style="text-align:center">0.91453</p></td> 
       </tr> 
       <tr> 
        <td class="acenter" width="4.50%"><p style="text-align:center">2</p></td> 
        <td class="acenter" width="44.88%"><p style="text-align:center">Light Diseases and Disorders of Pigmentation</p></td> 
        <td class="acenter" width="10.12%"><p style="text-align:center">0.941502</p></td> 
        <td class="acenter" width="10.13%"><p style="text-align:center">0.998445</p></td> 
        <td class="acenter" width="10.13%"><p style="text-align:center">0.944056</p></td> 
        <td class="acenter" width="10.13%"><p style="text-align:center">0.957447</p></td> 
        <td class="acenter" width="10.13%"><p style="text-align:center">0.950704</p></td> 
       </tr> 
       <tr> 
        <td class="acenter" width="4.50%"><p style="text-align:center">3</p></td> 
        <td class="acenter" width="44.88%"><p style="text-align:center">Warts Molluscum and Other Viral Infections</p></td> 
        <td class="acenter" width="10.12%"><p style="text-align:center">0.939003</p></td> 
        <td class="acenter" width="10.13%"><p style="text-align:center">0.997587</p></td> 
        <td class="acenter" width="10.13%"><p style="text-align:center">0.944853</p></td> 
        <td class="acenter" width="10.13%"><p style="text-align:center">0.966165</p></td> 
        <td class="acenter" width="10.13%"><p style="text-align:center">0.95539</p></td> 
       </tr> 
       <tr> 
        <td class="acenter" width="4.50%"><p style="text-align:center">4</p></td> 
        <td class="acenter" width="44.88%"><p style="text-align:center">Exanthems and Drug Eruptions</p></td> 
        <td class="acenter" width="10.12%"><p style="text-align:center">0.938753</p></td> 
        <td class="acenter" width="10.13%"><p style="text-align:center">0.995386</p></td> 
        <td class="acenter" width="10.13%"><p style="text-align:center">0.930693</p></td> 
        <td class="acenter" width="10.13%"><p style="text-align:center">0.839286</p></td> 
        <td class="acenter" width="10.13%"><p style="text-align:center">0.882629</p></td> 
       </tr> 
       <tr> 
        <td class="acenter" width="4.50%"><p style="text-align:center">5</p></td> 
        <td class="acenter" width="44.88%"><p style="text-align:center">Actinic Keratosis Basal Cell Carcinoma and Other Malignant Tumors</p></td> 
        <td class="acenter" width="10.12%"><p style="text-align:center">0.940252</p></td> 
        <td class="acenter" width="10.13%"><p style="text-align:center">0.998384</p></td> 
        <td class="acenter" width="10.13%"><p style="text-align:center">0.954861</p></td> 
        <td class="acenter" width="10.13%"><p style="text-align:center">0.978648</p></td> 
        <td class="acenter" width="10.13%"><p style="text-align:center">0.966608</p></td> 
       </tr> 
       <tr> 
        <td class="acenter" width="4.50%"><p style="text-align:center">6</p></td> 
        <td class="acenter" width="44.88%"><p style="text-align:center">Herpes HPV and Other STDs Photos</p></td> 
        <td class="acenter" width="10.12%"><p style="text-align:center">0.940752</p></td> 
        <td class="acenter" width="10.13%"><p style="text-align:center">0.997436</p></td> 
        <td class="acenter" width="10.13%"><p style="text-align:center">0.931373</p></td> 
        <td class="acenter" width="10.13%"><p style="text-align:center">0.904762</p></td> 
        <td class="acenter" width="10.13%"><p style="text-align:center">0.917874</p></td> 
       </tr> 
       <tr> 
        <td class="acenter" width="4.50%"><p style="text-align:center">7</p></td> 
        <td class="acenter" width="44.88%"><p style="text-align:center">Urticaria Hives</p></td> 
        <td class="acenter" width="10.12%"><p style="text-align:center">0.941252</p></td> 
        <td class="acenter" width="10.13%"><p style="text-align:center">0.997214</p></td> 
        <td class="acenter" width="10.13%"><p style="text-align:center">0.924528</p></td> 
        <td class="acenter" width="10.13%"><p style="text-align:center">0.816667</p></td> 
        <td class="acenter" width="10.13%"><p style="text-align:center">0.867257</p></td> 
       </tr> 
       <tr> 
        <td class="acenter" width="4.50%"><p style="text-align:center">8</p></td> 
        <td class="acenter" width="44.88%"><p style="text-align:center">Psoriasis Pictures Lichen Planus and Related Diseases</p></td> 
        <td class="acenter" width="10.12%"><p style="text-align:center">0.938253</p></td> 
        <td class="acenter" width="10.13%"><p style="text-align:center">0.996986</p></td> 
        <td class="acenter" width="10.13%"><p style="text-align:center">0.954545</p></td> 
        <td class="acenter" width="10.13%"><p style="text-align:center">0.9683</p></td> 
        <td class="acenter" width="10.13%"><p style="text-align:center">0.961373</p></td> 
       </tr> 
       <tr> 
        <td class="acenter" width="4.50%"><p style="text-align:center">9</p></td> 
        <td class="acenter" width="44.88%"><p style="text-align:center">Eczema Photos</p></td> 
        <td class="acenter" width="10.12%"><p style="text-align:center">0.938003</p></td> 
        <td class="acenter" width="10.13%"><p style="text-align:center">0.997834</p></td> 
        <td class="acenter" width="10.13%"><p style="text-align:center">0.935275</p></td> 
        <td class="acenter" width="10.13%"><p style="text-align:center">0.973064</p></td> 
        <td class="acenter" width="10.13%"><p style="text-align:center">0.953795</p></td> 
       </tr> 
       <tr> 
        <td class="acenter" width="4.50%"><p style="text-align:center">10</p></td> 
        <td class="acenter" width="44.88%"><p style="text-align:center">Atopic Dermatitis Photos</p></td> 
        <td class="acenter" width="10.12%"><p style="text-align:center">0.941002</p></td> 
        <td class="acenter" width="10.13%"><p style="text-align:center">0.998195</p></td> 
        <td class="acenter" width="10.13%"><p style="text-align:center">0.926829</p></td> 
        <td class="acenter" width="10.13%"><p style="text-align:center">0.942149</p></td> 
        <td class="acenter" width="10.13%"><p style="text-align:center">0.934426</p></td> 
       </tr> 
       <tr> 
        <td class="acenter" width="4.50%"><p style="text-align:center">11</p></td> 
        <td class="acenter" width="44.88%"><p style="text-align:center">Acne and Rosacea Photos</p></td> 
        <td class="acenter" width="10.12%"><p style="text-align:center">0.937504</p></td> 
        <td class="acenter" width="10.13%"><p style="text-align:center">0.99729</p></td> 
        <td class="acenter" width="10.13%"><p style="text-align:center">0.935897</p></td> 
        <td class="acenter" width="10.13%"><p style="text-align:center">0.966887</p></td> 
        <td class="acenter" width="10.13%"><p style="text-align:center">0.95114</p></td> 
       </tr> 
       <tr> 
        <td class="acenter" width="4.50%"><p style="text-align:center">12</p></td> 
        <td class="acenter" width="44.88%"><p style="text-align:center">Poison Ivy Photos and Other Contact Dermatitis</p></td> 
        <td class="acenter" width="10.12%"><p style="text-align:center">0.942001</p></td> 
        <td class="acenter" width="10.13%"><p style="text-align:center">0.997714</p></td> 
        <td class="acenter" width="10.13%"><p style="text-align:center">0.953846</p></td> 
        <td class="acenter" width="10.13%"><p style="text-align:center">0.873239</p></td> 
        <td class="acenter" width="10.13%"><p style="text-align:center">0.911765</p></td> 
       </tr> 
       <tr> 
        <td class="acenter" width="4.50%"><p style="text-align:center">13</p></td> 
        <td class="acenter" width="44.88%"><p style="text-align:center">Hair Loss Photos Alopecia and Other Hair Diseases</p></td> 
        <td class="acenter" width="10.12%"><p style="text-align:center">0.941502</p></td> 
        <td class="acenter" width="10.13%"><p style="text-align:center">0.997463</p></td> 
        <td class="acenter" width="10.13%"><p style="text-align:center">0.933333</p></td> 
        <td class="acenter" width="10.13%"><p style="text-align:center">0.848485</p></td> 
        <td class="acenter" width="10.13%"><p style="text-align:center">0.888889</p></td> 
       </tr> 
       <tr> 
        <td class="acenter" width="4.50%"><p style="text-align:center">14</p></td> 
        <td class="acenter" width="44.88%"><p style="text-align:center">Seborrheic Keratoses and Other Benign Tumors</p></td> 
        <td class="acenter" width="10.12%"><p style="text-align:center">0.938503</p></td> 
        <td class="acenter" width="10.13%"><p style="text-align:center">0.998087</p></td> 
        <td class="acenter" width="10.13%"><p style="text-align:center">0.944606</p></td> 
        <td class="acenter" width="10.13%"><p style="text-align:center">0.978852</p></td> 
        <td class="acenter" width="10.13%"><p style="text-align:center">0.961424</p></td> 
       </tr> 
       <tr> 
        <td class="acenter" width="4.50%"><p style="text-align:center">15</p></td> 
        <td class="acenter" width="44.88%"><p style="text-align:center">Lupus and Other Connective Tissue Diseases</p></td> 
        <td class="acenter" width="10.12%"><p style="text-align:center">0.941752</p></td> 
        <td class="acenter" width="10.13%"><p style="text-align:center">0.998204</p></td> 
        <td class="acenter" width="10.13%"><p style="text-align:center">0.942857</p></td> 
        <td class="acenter" width="10.13%"><p style="text-align:center">0.933962</p></td> 
        <td class="acenter" width="10.13%"><p style="text-align:center">0.938389</p></td> 
       </tr> 
       <tr> 
        <td class="acenter" width="4.50%"><p style="text-align:center">16</p></td> 
        <td class="acenter" width="44.88%"><p style="text-align:center">Systemic Disease</p></td> 
        <td class="acenter" width="10.12%"><p style="text-align:center">0.940752</p></td> 
        <td class="acenter" width="10.13%"><p style="text-align:center">0.998182</p></td> 
        <td class="acenter" width="10.13%"><p style="text-align:center">0.934211</p></td> 
        <td class="acenter" width="10.13%"><p style="text-align:center">0.95302</p></td> 
        <td class="acenter" width="10.13%"><p style="text-align:center">0.943522</p></td> 
       </tr> 
       <tr> 
        <td class="acenter" width="4.50%"><p style="text-align:center">17</p></td> 
        <td class="acenter" width="44.88%"><p style="text-align:center">Nail Fungus and Other Nail Diseases</p></td> 
        <td class="acenter" width="10.12%"><p style="text-align:center">0.938503</p></td> 
        <td class="acenter" width="10.13%"><p style="text-align:center">0.996525</p></td> 
        <td class="acenter" width="10.13%"><p style="text-align:center">0.950192</p></td> 
        <td class="acenter" width="10.13%"><p style="text-align:center">0.950192</p></td> 
        <td class="acenter" width="10.13%"><p style="text-align:center">0.950192</p></td> 
       </tr> 
       <tr> 
        <td class="acenter" width="4.50%"><p style="text-align:center">18</p></td> 
        <td class="acenter" width="44.88%"><p style="text-align:center">Cellulitis Impetigo and Other Bacterial Infections</p></td> 
        <td class="acenter" width="10.12%"><p style="text-align:center">0.940752</p></td> 
        <td class="acenter" width="10.13%"><p style="text-align:center">0.996691</p></td> 
        <td class="acenter" width="10.13%"><p style="text-align:center">0.945205</p></td> 
        <td class="acenter" width="10.13%"><p style="text-align:center">0.841463</p></td> 
        <td class="acenter" width="10.13%"><p style="text-align:center">0.890323</p></td> 
       </tr> 
       <tr> 
        <td class="acenter" width="4.50%"><p style="text-align:center">19</p></td> 
        <td class="acenter" width="44.88%"><p style="text-align:center">Melanoma Skin Cancer Nevi and Moles</p></td> 
        <td class="acenter" width="10.12%"><p style="text-align:center">0.940002</p></td> 
        <td class="acenter" width="10.13%"><p style="text-align:center">0.996655</p></td> 
        <td class="acenter" width="10.13%"><p style="text-align:center">0.939655</p></td> 
        <td class="acenter" width="10.13%"><p style="text-align:center">0.893443</p></td> 
        <td class="acenter" width="10.13%"><p style="text-align:center">0.915966</p></td> 
       </tr> 
       <tr> 
        <td class="acenter" width="4.50%"><p style="text-align:center">20</p></td> 
        <td class="acenter" width="44.88%"><p style="text-align:center">Tinea Ringworm Candidiasis and Other Fungal Infections</p></td> 
        <td class="acenter" width="10.12%"><p style="text-align:center">0.938503</p></td> 
        <td class="acenter" width="10.13%"><p style="text-align:center">0.99864</p></td> 
        <td class="acenter" width="10.13%"><p style="text-align:center">0.935385</p></td> 
        <td class="acenter" width="10.13%"><p style="text-align:center">0.983819</p></td> 
        <td class="acenter" width="10.13%"><p style="text-align:center">0.958991</p></td> 
       </tr> 
       <tr> 
        <td class="acenter" width="4.50%"><p style="text-align:center">21</p></td> 
        <td class="acenter" width="44.88%"><p style="text-align:center">Vascular Tumors</p></td> 
        <td class="acenter" width="10.12%"><p style="text-align:center">0.940752</p></td> 
        <td class="acenter" width="10.13%"><p style="text-align:center">0.997166</p></td> 
        <td class="acenter" width="10.13%"><p style="text-align:center">0.950413</p></td> 
        <td class="acenter" width="10.13%"><p style="text-align:center">0.912698</p></td> 
        <td class="acenter" width="10.13%"><p style="text-align:center">0.931174</p></td> 
       </tr> 
       <tr> 
        <td class="acenter" width="4.50%"><p style="text-align:center">22</p></td> 
        <td class="acenter" width="44.88%"><p style="text-align:center">Vasculitis Photos</p></td> 
        <td class="acenter" width="10.12%"><p style="text-align:center">0.940752</p></td> 
        <td class="acenter" width="10.13%"><p style="text-align:center">0.997177</p></td> 
        <td class="acenter" width="10.13%"><p style="text-align:center">0.942857</p></td> 
        <td class="acenter" width="10.13%"><p style="text-align:center">0.9</p></td> 
        <td class="acenter" width="10.13%"><p style="text-align:center">0.92093</p></td> 
       </tr> 
       <tr> 
        <td class="acenter" width="4.50%"><p style="text-align:center">23</p></td> 
        <td class="acenter" width="44.88%"><p style="text-align:center">Scabies Lyme Disease and Other Infestations</p></td> 
        <td class="acenter" width="10.12%"><p style="text-align:center">0.940002</p></td> 
        <td class="acenter" width="10.13%"><p style="text-align:center">0.996405</p></td> 
        <td class="acenter" width="10.13%"><p style="text-align:center">0.944444</p></td> 
        <td class="acenter" width="10.13%"><p style="text-align:center">0.87931</p></td> 
        <td class="acenter" width="10.13%"><p style="text-align:center">0.910714</p></td> 
       </tr> 
       <tr> 
        <td class="aleft" width="100.00%" colspan="7"><p style="text-align:left">Overall:</p><p style="text-align:left">Accuracy: 94.65%</p><p style="text-align:left">Precision: 89.47%</p><p style="text-align:left">Recall: 94.44%</p><p style="text-align:left">F1-Score: 91.89%</p></td> 
       </tr> 
      </table>
     </table-wrap>
     <p>In dermatological diagnosis, recall is a critical metric as it measures the model’s ability to correctly identify skin disease cases (True Positives) while minimizing missed diagnoses (False Negatives). Missing a skin disease case (False Negative) could have severe consequences, including delayed treatment, which is unacceptable in clinical practice. The CNN model achieved a Recall of 94.44%, indicating a high reliability in correctly identifying actual cases of skin diseases.</p>
     <p>The False Negative Rate (FNR) is another crucial metric in healthcare applications, such as skin disease diagnosis. A lower FNR signifies fewer missed cases, which is essential for early disease detection and timely treatment. The CNN model achieved a low FNR, confirming its robustness in minimizing overlooked dermatological conditions.</p>
     <p>Furthermore, we can use the confusion matrix to compute a few more precise measures that may be decisive in indicating how well our models do in classification. Accuracy, precision, recall, and F1-score are these measurements. The following formulas are used to calculate these measures.</p>
     <p>
      <math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"> <mrow> 
        <mtext>
          Accuracy 
        </mtext> 
        <mo>
          = 
        </mo> 
        <mrow> 
         <mo>
           ( 
         </mo> 
         <mrow> 
          <mfrac> 
           <mrow> 
            <mtext>
              TN 
            </mtext> 
            <mo>
              + 
            </mo> 
            <mtext>
              TP 
            </mtext> 
           </mrow> 
           <mrow> 
            <mtext>
              TN 
            </mtext> 
            <mo>
              + 
            </mo> 
            <mtext>
              FP 
            </mtext> 
            <mo>
              + 
            </mo> 
            <mtext>
              TP 
            </mtext> 
            <mo>
              + 
            </mo> 
            <mtext>
              FN 
            </mtext> 
           </mrow> 
          </mfrac> 
         </mrow> 
         <mo>
           ) 
         </mo> 
        </mrow> 
       </mrow> 
      </math> (1)</p>
     <p>
      <math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"> <mrow> 
        <mtext>
          Precision 
        </mtext> 
        <mo>
          = 
        </mo> 
        <mrow> 
         <mo>
           ( 
         </mo> 
         <mrow> 
          <mfrac> 
           <mrow> 
            <mtext>
              TP 
            </mtext> 
           </mrow> 
           <mrow> 
            <mtext>
              TP 
            </mtext> 
            <mo>
              + 
            </mo> 
            <mtext>
              FP 
            </mtext> 
           </mrow> 
          </mfrac> 
         </mrow> 
         <mo>
           ) 
         </mo> 
        </mrow> 
       </mrow> 
      </math> (2)</p>
     <p>
      <math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"> <mrow> 
        <mtext>
          Recall 
        </mtext> 
        <mo>
          = 
        </mo> 
        <mrow> 
         <mo>
           ( 
         </mo> 
         <mrow> 
          <mfrac> 
           <mrow> 
            <mtext>
              TP 
            </mtext> 
           </mrow> 
           <mrow> 
            <mtext>
              TP 
            </mtext> 
            <mo>
              + 
            </mo> 
            <mtext>
              FN 
            </mtext> 
           </mrow> 
          </mfrac> 
         </mrow> 
         <mo>
           ) 
         </mo> 
        </mrow> 
       </mrow> 
      </math> (3)</p>
     <p>
      <math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"> <mrow> 
        <mtext>
          Specificity 
        </mtext> 
        <mo>
          = 
        </mo> 
        <mrow> 
         <mo>
           ( 
         </mo> 
         <mrow> 
          <mfrac> 
           <mrow> 
            <mtext>
              TN 
            </mtext> 
           </mrow> 
           <mrow> 
            <mtext>
              TN 
            </mtext> 
            <mo>
              + 
            </mo> 
            <mtext>
              FP 
            </mtext> 
           </mrow> 
          </mfrac> 
         </mrow> 
         <mo>
           ) 
         </mo> 
        </mrow> 
       </mrow> 
      </math> (4)</p>
     <p>
      <math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"> <mrow> 
        <mtext>
          F 
        </mtext> 
        <mn>
          1 
        </mn> 
        <mtext>
            
        </mtext> 
        <mtext>
          Score 
        </mtext> 
        <mo>
          = 
        </mo> 
        <mrow> 
         <mo>
           ( 
         </mo> 
         <mrow> 
          <mfrac> 
           <mrow> 
            <mn>
              2 
            </mn> 
            <mo>
              × 
            </mo> 
            <mtext>
              Precision 
            </mtext> 
            <mo>
              × 
            </mo> 
            <mtext>
              Recall 
            </mtext> 
           </mrow> 
           <mrow> 
            <mtext>
              Precision 
            </mtext> 
            <mo>
              + 
            </mo> 
            <mtext>
              Recall 
            </mtext> 
           </mrow> 
          </mfrac> 
         </mrow> 
         <mo>
           ) 
         </mo> 
        </mrow> 
       </mrow> 
      </math> (5)</p>
    </sec>
    <sec id="s5_3">
     <title>
      <xref ref-type="bibr" rid="scirp.141073-"></xref>5.3. Model Comparisons</title>
     <table-wrap id="table7">
      <label>
       <xref ref-type="table" rid="table7">
        Table 7
       </xref></label>
      <caption>
       <title>
        <xref ref-type="bibr" rid="scirp.141073-"></xref>Table 7. Performance comparison table.</title>
      </caption>
      <table class="MsoTableGrid custom-table" border="0" cellspacing="0" cellpadding="0"> 
       <tr> 
        <td class="custom-bottom-td acenter" width="20.05%"><p style="text-align:center">Model</p></td> 
        <td class="custom-bottom-td acenter" width="15.98%"><p style="text-align:center">Accuracy</p></td> 
        <td class="custom-bottom-td acenter" width="15.99%"><p style="text-align:center">Precision</p></td> 
        <td class="custom-bottom-td acenter" width="15.99%"><p style="text-align:center">Recall</p></td> 
        <td class="custom-bottom-td acenter" width="15.99%"><p style="text-align:center">F1 Score</p></td> 
        <td class="custom-bottom-td acenter" width="15.99%"><p style="text-align:center">FNR (%)</p></td> 
       </tr> 
       <tr> 
        <td class="custom-top-td acenter" width="20.05%"><p style="text-align:center">CNN</p></td> 
        <td class="custom-top-td acenter" width="15.98%"><p style="text-align:center">0.94</p></td> 
        <td class="custom-top-td acenter" width="15.99%"><p style="text-align:center">0.89</p></td> 
        <td class="custom-top-td acenter" width="15.99%"><p style="text-align:center">0.94</p></td> 
        <td class="custom-top-td acenter" width="15.99%"><p style="text-align:center">0.91</p></td> 
        <td class="custom-top-td acenter" width="15.99%"><p style="text-align:center">0.06%</p></td> 
       </tr> 
       <tr> 
        <td class="acenter" width="20.05%"><p style="text-align:center">VGG16</p></td> 
        <td class="acenter" width="15.98%"><p style="text-align:center">0.84</p></td> 
        <td class="acenter" width="15.99%"><p style="text-align:center">0.86</p></td> 
        <td class="acenter" width="15.99%"><p style="text-align:center">0.60</p></td> 
        <td class="acenter" width="15.99%"><p style="text-align:center">0.71</p></td> 
        <td class="acenter" width="15.99%"><p style="text-align:center">16.0%</p></td> 
       </tr> 
       <tr> 
        <td class="acenter" width="20.05%"><p style="text-align:center">ResNet50</p></td> 
        <td class="acenter" width="15.98%"><p style="text-align:center">0.75</p></td> 
        <td class="acenter" width="15.99%"><p style="text-align:center">0.75</p></td> 
        <td class="acenter" width="15.99%"><p style="text-align:center">0.64</p></td> 
        <td class="acenter" width="15.99%"><p style="text-align:center">0.69</p></td> 
        <td class="acenter" width="15.99%"><p style="text-align:center">25.0%</p></td> 
       </tr> 
       <tr> 
        <td class="acenter" width="20.05%"><p style="text-align:center">SVM</p></td> 
        <td class="acenter" width="15.98%"><p style="text-align:center">0.87</p></td> 
        <td class="acenter" width="15.99%"><p style="text-align:center">0.92</p></td> 
        <td class="acenter" width="15.99%"><p style="text-align:center">0.81</p></td> 
        <td class="acenter" width="15.99%"><p style="text-align:center">0.86</p></td> 
        <td class="acenter" width="15.99%"><p style="text-align:center">17.8%</p></td> 
       </tr> 
       <tr> 
        <td class="acenter" width="20.05%"><p style="text-align:center">KNN</p></td> 
        <td class="acenter" width="15.98%"><p style="text-align:center">0.91</p></td> 
        <td class="acenter" width="15.99%"><p style="text-align:center">0.97</p></td> 
        <td class="acenter" width="15.99%"><p style="text-align:center">0.86</p></td> 
        <td class="acenter" width="15.99%"><p style="text-align:center">0.91</p></td> 
        <td class="acenter" width="15.99%"><p style="text-align:center">13.7%</p></td> 
       </tr> 
       <tr> 
        <td class="acenter" width="20.05%"><p style="text-align:center">Decision Tree</p></td> 
        <td class="acenter" width="15.98%"><p style="text-align:center">0.91</p></td> 
        <td class="acenter" width="15.99%"><p style="text-align:center">0.93</p></td> 
        <td class="acenter" width="15.99%"><p style="text-align:center">0.90</p></td> 
        <td class="acenter" width="15.99%"><p style="text-align:center">0.91</p></td> 
        <td class="acenter" width="15.99%"><p style="text-align:center">10.4%</p></td> 
       </tr> 
      </table>
     </table-wrap>
     <p>A comparative analysis of multiple models is presented in <xref ref-type="table" rid="table7">
       Table 7
      </xref>. While models such as Random Forest and XGBoost demonstrated strong performance in terms of precision and overall metrics, the CNN model outperformed them, particularly in Recall and FNR. These metrics are crucial in the context of skin disease classification, as a higher Recall and lower FNR ensure minimal missed cases, making the model highly suitable for clinical applications.</p>
     <p>
      <xref ref-type="bibr" rid="scirp.141073-"></xref>The results confirm that the Custom CNN model is the most effective in terms of overall performance, making it a viable option for automated skin disease diagnosis.</p>
    </sec>
   </sec>
   <sec id="s6">
    <title>
     <xref ref-type="bibr" rid="scirp.141073-"></xref>6. Conclusions</title>
    <p>This study demonstrates the potential of convolutional neural networks (CNN) in revolutionizing dermatological diagnostics by offering accurate, efficient, and accessible solutions for skin disease detection and management. By leveraging a dataset of 19,500 labeled dermoscopic images and implementing advanced CNN architectures, the research achieved significant accuracy in diagnosing various skin conditions. Key innovations include data preprocessing techniques and model optimization strategies, which contributed to high diagnostic precision and reliability. The developed system addresses limitations in traditional dermatological methods, including inconsistent diagnoses and restricted accessibility. Its holistic approach, combining CNN-based predictions with patient-reported symptoms and medical history, provides a more comprehensive health assistance framework. The system not only facilitates early and accurate diagnosis but also enhances patient education and supports self-management, thereby contributing to improved healthcare outcomes.</p>
    <p>While the results are promising, the study also highlights several challenges, including class imbalances, image variability, and the need for substantial computational resources. Future research could focus on expanding the dataset to incorporate rare conditions, enhancing real-time diagnostic capabilities, and exploring the integration of federated learning to ensure data privacy. This research underscores the transformative potential of AI in dermatology. By bridging the gap between theoretical advancements and practical applications, it paves the way for a new era in skin disease diagnosis, offering scalable and cost-effective solutions that can democratize access to quality healthcare worldwide.</p>
   </sec>
  </sec>
 </body><back>
  <ref-list>
   <title>References</title>
   <ref id="scirp.141073-ref1">
    <label>1</label>
    <mixed-citation publication-type="other" xlink:type="simple">
     Venkatesh, K.P., Raza, M.M., Nickel, G., Wang, S. and Kvedar, J.C. (2024) Deep Learning Models across the Range of Skin Disease. NPJ Digital Medicine, 7, Article No. 32.
    </mixed-citation>
   </ref>
   <ref id="scirp.141073-ref2">
    <label>2</label>
    <mixed-citation publication-type="other" xlink:type="simple">
     Vasishtamol, P.K. and Soni, P. (2023) Advances in Deep Learning for Dermatology: Convolutional Neural Networks for Automated Skin Disease Detection and Diagnosis. 2023 14th International Conference on Computing Communication and Networking Technologies (ICCCNT), Delhi, 6-8 July 2023, 1-5. &gt;https://doi.org/10.1109/icccnt56998.2023.10306636
    </mixed-citation>
   </ref>
   <ref id="scirp.141073-ref3">
    <label>3</label>
    <mixed-citation publication-type="other" xlink:type="simple">
     Jalaboi, R., Winther, O. and Galimzianova, A. (2023) Dermatological Diagnosis Explainability Benchmark for Convolutional Neural Networks. arXiv: 2302.12084.
    </mixed-citation>
   </ref>
   <ref id="scirp.141073-ref4">
    <label>4</label>
    <mixed-citation publication-type="other" xlink:type="simple">
     Jeong, H.K., Park, C., Henao, R. and Kheterpal, M. (2023) Deep Learning in Dermatology: A Systematic Review of Current Approaches, Outcomes, and Limitations. JID Innovations, 3, Article ID: 100150. &gt;https://doi.org/10.1016/j.xjidi.2022.100150
    </mixed-citation>
   </ref>
   <ref id="scirp.141073-ref5">
    <label>5</label>
    <mixed-citation publication-type="other" xlink:type="simple">
     Mohamed Musthafa, M., Mahesh, T.R., Vinoth Kumar, V. and Guluwadi, S. (2024) Enhanced Skin Cancer Diagnosis Using Optimized CNN Architecture and Checkpoints for Automated Dermatological Lesion Classification. BMC Medical Imaging, 24, Article No. 201.
    </mixed-citation>
   </ref>
   <ref id="scirp.141073-ref6">
    <label>6</label>
    <mixed-citation publication-type="other" xlink:type="simple">
     Esteva, A., Kuprel, B., Novoa, R.A., Ko, J., Swetter, S.M., Blau, H.M., et al. (2017) Dermatologist-Level Classification of Skin Cancer with Deep Neural Networks. Nature, 542, 115-118. &gt;https://doi.org/10.1038/nature21056
    </mixed-citation>
   </ref>
   <ref id="scirp.141073-ref7">
    <label>7</label>
    <mixed-citation publication-type="other" xlink:type="simple">
     Karen Simonyan, A.Z. (2015) Very Deep Convolutional Networks for Large-Scale Image Recognition. arXiv :1409.1556.
    </mixed-citation>
   </ref>
   <ref id="scirp.141073-ref8">
    <label>8</label>
    <mixed-citation publication-type="other" xlink:type="simple">
     Stofa, M.M., Zulkifley, M.A. and Zainuri, M.A.A.M. (2020) Skin Lesion Segmentation and Classification with Deep Learning: A Review. IEEE Access, 8, 103942-103973.
    </mixed-citation>
   </ref>
   <ref id="scirp.141073-ref9">
    <label>9</label>
    <mixed-citation publication-type="other" xlink:type="simple">
     Abbas, M., Arslan, M., Bhatty, R.A., Yousaf, F., Khan, A.A. and Rafay, A. (2024) Enhanced Skin Disease Diagnosis through Convolutional Neural Networks and Data Augmentation Techniques. Journal of Computing&amp;Biomedical Informatics, 7, 87-106.
    </mixed-citation>
   </ref>
   <ref id="scirp.141073-ref10">
    <label>10</label>
    <mixed-citation publication-type="other" xlink:type="simple">
     Arora, G., Dubey, A.K. and Jaffery, Z.A. (2022) An Effective Skin Disease Segmentation Model Based on Deep Convolutional Neural Network. International Journal of Intelligent Information Technologies, 18, 1-18. &gt;https://doi.org/10.4018/ijiit.298695
    </mixed-citation>
   </ref>
   <ref id="scirp.141073-ref11">
    <label>11</label>
    <mixed-citation publication-type="other" xlink:type="simple">
     Kodepogu, K.R., Annam, J.R., Vipparla, A., Krishna, B.V.N.V.S., Kumar, N., Viswanathan, R., et al. (2022) A Novel Deep Convolutional Neural Network for Diagnosis of Skin Disease. Traitement du Signal, 39, 1873-1877. &gt;https://doi.org/10.18280/ts.390548
    </mixed-citation>
   </ref>
   <ref id="scirp.141073-ref12">
    <label>12</label>
    <mixed-citation publication-type="other" xlink:type="simple">
     Manokar, A.M. (2024) Artificial Intelligence-Driven Enhanced Skin Cancer Diagnosis: Leveraging Convolutional Neural Networks with Discrete Wavelet Transformation. Egyptian Journal of Medical Human Genetics, 25, Article No. 50.
    </mixed-citation>
   </ref>
   <ref id="scirp.141073-ref13">
    <label>13</label>
    <mixed-citation publication-type="other" xlink:type="simple">
     Rathod, J., Waghmode, V., Sodha, A. and Bhavathankar, P. (2018) Diagnosis of Skin Diseases Using Convolutional Neural Networks. 2018 Second International Conference on Electronics, Communication and Aerospace Technology (ICECA), Coimbatore, 29-31 March 2018, 1048-1051. &gt;https://doi.org/10.1109/iceca.2018.8474593
    </mixed-citation>
   </ref>
   <ref id="scirp.141073-ref14">
    <label>14</label>
    <mixed-citation publication-type="other" xlink:type="simple">
     Sadik, R., Majumder, A., Biswas, A.A., Ahammad, B. and Rahman, M.M. (2023) An In-Depth Analysis of Convolutional Neural Network Architectures with Transfer Learning for Skin Disease Diagnosis. Healthcare Analytics, 3, Article ID: 100143. &gt;https://doi.org/10.1016/j.health.2023.100143
    </mixed-citation>
   </ref>
   <ref id="scirp.141073-ref15">
    <label>15</label>
    <mixed-citation publication-type="other" xlink:type="simple">
     Reisinho, J., Coimbra, M. and Renna, F. (2020) Deep Convolutional Neural Network Ensembles for Multi-Classification of Skin Lesions from Dermoscopic and Clinical Images. 2020 42nd Annual International Conference of the IEEE Engineering in Medicine&amp;Biology Society (EMBC), Montreal, 20-24 July 2020, 1940-1943. &gt;https://doi.org/10.1109/embc44109.2020.9176411
    </mixed-citation>
   </ref>
   <ref id="scirp.141073-ref16">
    <label>16</label>
    <mixed-citation publication-type="other" xlink:type="simple">
     Shanthi, T., Sabeenian, R.S. and Anand, R. (2020) Automatic Diagnosis of Skin Diseases Using Convolution Neural Network. Microprocessors and Microsystems, 76, Article ID: 103074. &gt;https://doi.org/10.1016/j.micpro.2020.103074
    </mixed-citation>
   </ref>
   <ref id="scirp.141073-ref17">
    <label>17</label>
    <mixed-citation publication-type="other" xlink:type="simple">
     Agarwal, R. and Godavarthi, D. (2023) Skin Disease Classification Using CNN Algorithms. EAI Endorsed Transactions on Pervasive Health and Technology, 9. &gt;https://doi.org/10.4108/eetpht.9.4039
    </mixed-citation>
   </ref>
   <ref id="scirp.141073-ref18">
    <label>18</label>
    <mixed-citation publication-type="other" xlink:type="simple">
     Islam, M.S. (2023) Deep Learning-Based Skin Disease Detection Using Convolutional Neural Networks (CNN). In: Hossain, M.S., Majumder, S.P., Siddique, N. and Hossain, M.S., Eds., The Fourth Industrial Revolution and Beyond, Springer, 551-564.
    </mixed-citation>
   </ref>
   <ref id="scirp.141073-ref19">
    <label>19</label>
    <mixed-citation publication-type="other" xlink:type="simple">
     Durgabhavani, B., Chandana, B., Sandhyarani, Lavanya, G., Srikanth, G. and Bhaskar, N. (2023) Classification of Skin Disease Using CNN. 2023 International Conference on Evolutionary Algorithms and Soft Computing Techniques (EASCT), Bengaluru, 20-21 October 2023, 1-6. &gt;https://doi.org/10.1109/easct59475.2023.10393477
    </mixed-citation>
   </ref>
   <ref id="scirp.141073-ref20">
    <label>20</label>
    <mixed-citation publication-type="other" xlink:type="simple">
     Zunnurain, M. (2023) Mobile Application Using CNN for Skin Disease Classification with User Privacy. 2023 International Conference on Advances in Computation, Communication and Information Technology (ICAICCIT), Faridabad, 23-24 November 2023, 52-57.
    </mixed-citation>
   </ref>
   <ref id="scirp.141073-ref21">
    <label>21</label>
    <mixed-citation publication-type="other" xlink:type="simple">
     He, X. (2023) Computer-Aided Clinical Skin Diseases Diagnosis Using CNN and Object Detection Models. 2019 IEEE International Conference on Big Data (Big Data), Los Angeles, 9-12 December 2019, 4839-4844.
    </mixed-citation>
   </ref>
   <ref id="scirp.141073-ref22">
    <label>22</label>
    <mixed-citation publication-type="other" xlink:type="simple">
     Raju, K.S., Sharma, A., Reddy, N.C.S., Latha, G.S., Kumar, G.P. and Vidyasagar, G. (2024) Prediction and Classification of Skin Diseases Using Convolution Neural Network Techniques. In: Devi, B.R., Kumar, K., Raju, M., Raju, K.S. and Sellathurai, M., Eds., Proceedings of Fifth International Conference on Computer and Communication Technologies. IC3T 2023, Springer, 403-411.
    </mixed-citation>
   </ref>
   <ref id="scirp.141073-ref23">
    <label>23</label>
    <mixed-citation publication-type="other" xlink:type="simple">
     Hameed, N., Shabut, A.M. and Hossain, M.A. (2018) Multi-Class Skin Diseases Classification Using Deep Convolutional Neural Network and Support Vector Machine. 2018 12th International Conference on Software, Knowledge, Information Management&amp;Applications (SKIMA), Phnom Penh, 3-5 December 2018, 1-7. &gt;https://doi.org/10.1109/skima.2018.8631525
    </mixed-citation>
   </ref>
  </ref-list>
 </back>
</article>