9bcd PDF
9bcd PDF
9bcd PDF
Abstract—Skin diseases are a global health problem that is techniques can help achieve high accuracy in skin diagnosing
difficult to diagnose sometimes due to the disease’s complexity, at the initial stage. Images processing plays an effective role in
and the time-consuming effort. In addition to the fact that skin diagnosis the skin diseases with the help of libraries such as
diseases affect human health, it also affects the psycho-social life OpenCV, Scikit-Image, and NumPy. Afterward, machine
if not diagnosed and controlled early. The enhancement of learning algorithms such as SVM, RF, and K-NN are used for
images processing techniques and machine learning leads to an the classification task. Combining these techniques will save
effective and fast diagnosis that help detect the skin disease early. time and reach a quicker and more trusted diagnostic than
This paper presents a model that takes an image of the skin typical procedures like patch tests and biopsy [4]. Due to the
affected by a disease and diagnose acne, cherry angioma,
limitation of the existing models that diagnose different skin
melanoma, and psoriasis. The proposed model is composed of
diseases, this proposed model studied four skin diseases. This
five steps, i.e., image acquisition, preprocessing, segmentation,
feature extraction, and classification. In addition to using the research work aims to build a model that provides an easy, fast
machine learning algorithms for evaluating the model, i.e., and efficient solution for skin disease diagnosis, i.e., acne,
Support Vector Machine (SVM), Random Forest (RF), and K- cherry angioma, melanoma, and psoriasis, using image
Nearest Neighbor (K-NN) classifiers, and achieved 90.7%, processing and machine learning techniques.
84.2%, and 67.1%, respectively. Also, the SVM classifier result of The building of the proposed model passes through multi-
the proposed model was compared with other papers, and mostly
steps of image processing including, acquiring images,
the proposed model’s result is better. In contrast, one paper
preprocessing images, i.e., resizing images, color
achieved an accuracy of 100%.
transformation, de-noising, and normalization, segmentation,
Keywords—Skin disease; image processing; classification; and feature extraction. In the end, train the model with
machine learning; diagnosis; SVM; RF; K-NN; acne; cherry traditional machine learning algorithms, e.g., SVM, RF, and K-
angioma; melanoma; psoriasis NN. Several papers conducted on this paper's topic had been
focused on the use of machine learning and image processing
I. INTRODUCTION to classify skin cancer. Thus, this paper proposed a model to
Nowadays, imaging is used in medical science extensively, diagnose other common diseases in addition to skin cancer.
so before any surgery or treatment decision a preliminary Furthermore, the proposed model tested cherry angioma
knowledge can be determined, and diagnosis can be done. For disease, which is very rarely tested in the previous research.
this, imaging in medicine has become a tool to start most of the This paper is organized into the following sections:
disease treatment cycle, starting from detection passing Section 2 reviews the previous work, Section 3 presents the
through evaluation, and ending with the treatment decision. methodology, Section 4 shows the obtained results, and
Skin disease is one of these medical areas where images play a Section 5 is the conclusion of this work.
role in detecting, diagnosing, and treating the disease [1]. In
recent years, skin diseases have increased and begun to be a II. PREVIOUS WORK
global health problem [2]. Those who suffer from skin diseases Many researchers have proposed a model that combines
without disease diagnosis may diminish their life quality and image processing and machine learning algorithms techniques
have a negatively psycho-social impact [3]. to classify and diagnose several skin diseases.
In fact, skin diseases are difficult to diagnose due to the Hameed, Shabut, and Hossain [5] implemented a system
complexity of human skin. Also, the lack of expertise may lead that classifies healthy, acne, eczema, psoriasis, benign, and
to misdiagnosis or overdue diagnoses. Diagnosis of skin melanoma (malignant) skin diseases. The system was built
diseases at the health center may take a long time and require based on image processing techniques. To enhance images, the
domain expertise, which causes physical and financial costs. authors used an algorithm called Dull Razor to remove hair
On the other side, machine learning and image processing from skin images and then applied the Gaussian filter to
252 | P a g e
www.ijacsa.thesai.org
(IJACSA) International Journal of Advanced Computer Science and Applications,
Vol. 13, No. 5, 2022
smooth it. After that, in the segmentation task, they firstly increase accuracy by more than 90%. Authors in [13] propose a
discarded any non-skin area, then applied Otsu’s thresholding web system to diagnose skin diseases in Ghana (Africa). Their
on the area of skin in order to segment the disease lesion. study includes a CNN to classify 254 images of diseases, i.e.,
Moreover, they used color spaces like red, green, and blue atopic dermatitis, acne vulgaris, and scabies. In the end, they
(RGB), hue, saturation, and value (HSV), luma, blue, and red reached an accuracy for each disease of 88%, 85%, and 84.7%,
(YCbCr) which means separate brightness i.e. luma from color, respectively. The proposed system just takes 0.0001 seconds to
and grayscale to extract color features. Also, they used diagnose, which may expedite more patients’ diagnoses than a
neighborhood gray-tone difference matrix (NGTDM) and Gray diagnosis in the clinic.
Level Co-occurrence Matrix (GLCM) techniques to extract the
texture features. In the end, they classified the diseases using Most of the previous studies prove the efficacy of using
SVM and obtained an accuracy of 83%. SVM and CNN. Furthermore, the studies evinced the image
processing plays a key role in helping to classify various skin
Additionally, Sinthura S. et al. [6] propose a method to diseases. Moreover, increasing the number of images may
detect skin diseases. Their method indicates using the adaptive positively affect the classification due to the increased training
filter to remove the noises, then converting it to grayscale model.
color. Besides, they used Otsu’s thresholding technique to
segment the disease lesion. Furthermore, they used GLCM to III. METHODOLOGY
extract the texture features. Finally, to validate their proposal, This paper demonstrates the classification of several types
they used the SVM classifier and achieved an accuracy of 89%. of skin disease to diagnose the lesions such as acne, cherry
In image classification-based color, the researchers in [7] train angioma, melanoma, and psoriasis. Accordingly, the processes
a model for detecting and classifying various skin diseases involved in identifying these skin diseases are preprocessing,
using the K-NN classifier. They use color models to extract segmentation, feature extraction, and classification. The
features, including the HSV and the lightness, red/green, and following points show the datasets used and explain the
blue/yellow (L*a*b) color models. Their results showed that proposed and techniques of this work.
the HSV color model is more efficient with 91.80% accuracy
than the L*a*b color model with 81.60% accuracy. Moreover, A. Dataset
Ahmed, Ema, and Islam [8] propose a new automated system Due to the privacy of medical records, collecting images is
using the Transductive SVM (TSVM) to classify 24 types of a challenging task. Therefore, the images gathered from
skin disease. The proposed system uses a hybrid genetic available resources: the dermnet NZ [14] and atlas
algorithm to segment the image. Also, they used ant colony dermatologico [15]. In this work, the dataset consists of 377
optimization (ACO-GA) and GLCM to extract its features. images of four different disease classes: acne, cherry angioma,
Their work achieved 95% accuracy. melanoma, and psoriasis. Fig. 1 shows a sample of each class.
Table I lists the number of images of each class.
A method was carried out to apply pre-trained
Convolutional Neural Networks (CNN) to extract features for 1) Diseases definition: In the following, a brief definition
skin diseases. The paper by ALenezi [9] proposes a system of each disease studied in this work, as mentioned in the
using the pre-trained CNN AlexNet to extract skin disease dermnet NZ website [14].
features and SVM to classify the diseases. The system was
a) Acne: It is a common chronic disorder, often
built with a dataset of 80 images of these skin types;
melanoma, psoriasis, eczema, and healthy skin. Her system confined to the face, but it may happen in the chest, back, and
was tested on 20 images and achieved an accuracy of 100%. neck. Acne may occur in children and adults of all ages.
The same method used by researchers [10] present an However, acne is caused due to a combination of several
intelligent expert system for classifying 9144 skin lesions, i.e., factors such as familial tendency, acne bacteria, and
acne, eczema, benign or malignant (melanoma), and healthy hormones. Acne could be characterized as blackheads and
skin images. For extracting the lesion’s features, they used a whiteheads.
pre-trained CNN model AlexNet. Their system result achieved b) Cherry angioma: The reason of cherry angioma is
an accuracy of 86.21% by using the SVM classifier, where unknown. It is very prevalent in males and females of any age,
divided dataset in the ratio 70:30 for train and test set. while it markedly increases in people from about the age of
Another study by Hajgude et al. [11] proposes a solution to 40. However, cherry angioma may be in red or purple, or blue
detect 408 images of eczema, impetigo, melanoma skin color. Also, it could be scattered overall body surface parts.
diseases, and a class named other images. They build the c) Melanoma: It is the gravest form of skin cancer. It
model using these techniques: median filter to remove the happened due to the uncontrolled growth of melanocytes
noises, the Otsu method to segment lesions, 2D Wavelet (pigment cells). Melanoma may occur at any age but is very
transform to extract features like entropy and standard rare in children. However, the features of melanoma could be
deviation, and GLCM to extract texture features like contrast having several colors like blue, brown, red, etc.
and correlation. They used SVM and CNN classifiers to d) Psoriasis: It is a chronic inflammation of a skin
classify the diseases and obtained an accuracy of 90.7% and
condition. It affects males and females at any age. It is
99.1%, respectively. Authors in [12] describe the CNN
characterized by symmetrically distributed, red color, scaly
classifier and the major libraries for image processing. Then,
they use CNN to classify and diagnose skin disease with an plaques with well-defined edges.
accuracy of 70%, even though using a large dataset may
253 | P a g e
www.ijacsa.thesai.org
(IJACSA) International Journal of Advanced Computer Science and Applications,
Vol. 13, No. 5, 2022
254 | P a g e
www.ijacsa.thesai.org
(IJACSA) International Journal of Advanced Computer Science and Applications,
Vol. 13, No. 5, 2022
Feature Extraction
Formula Parameters Value
Technique
( ) ∑ ( ) ( ), where Logb=
Entropy Kernel 3X3
2
255 | P a g e
www.ijacsa.thesai.org
(IJACSA) International Journal of Advanced Computer Science and Applications,
Vol. 13, No. 5, 2022
TABLE III. THE SPLITTING DATASET WITH TRAIN AND TEST RESULTS
256 | P a g e
www.ijacsa.thesai.org
(IJACSA) International Journal of Advanced Computer Science and Applications,
Vol. 13, No. 5, 2022
classification task. For that, [5] extract the texture features 83%. However, it was observed the proposed model is higher
using GLCM and NGTDM, and extract color features using than [5], [6], and [10] with 90.7% accuracy.
color spaces. Similarly, researchers [6] extract texture features
using GLCM. On the other hand, both researchers [9] and [10] Thus, probably the proposed model's performance is better
utilized the automatic image processing by CNN with a pre- since this proposed model used multi techniques to extract a
train AlexNet. combination of features, i.e., Gabor and Entropy for texture
features and Sobel for edge features. In contrast, the paper [9]
Therefore, Table VIII lists the SVM classifier accuracy of is superior to the proposed model with 100% accuracy. Despite
this proposed model with the comparison research model’s the fact, that they trained the model on 80 images, while the
accuracy that used the same classifier, i.e., SVM, and different proposed model was trained on 301 images. Also, the proposed
image processing methods. All these papers showed a model tested cherry angioma disease, whereas the other studies
promising high accuracy rate in diagnosing diseases above did not test it.
257 | P a g e
www.ijacsa.thesai.org
(IJACSA) International Journal of Advanced Computer Science and Applications,
Vol. 13, No. 5, 2022
psoriasis,‖ Acta Derm. Venereol., vol. 97, no. 1, pp. 91–97, 2017, doi:
TABLE VIII. COMPARISON OF ACCURACY 10.2340/00015555-2483.
Ref. Accuracy [4] V. Pugazhenthi et al., ―Skin Disease Detection And Classification,‖ Int. J.
Adv. Eng. Res. Sci., vol. 6, no. 5, pp. 396–400, 2019.
Hameed N et al. [5] 83% [5] N. Hameed, A. Shabut, and M. A. Hossain, ―A Computer-Aided
Sinthura S. et al. [6] 89% diagnosis system for classifying prominent skin lesions using machine
learning,‖ 2018 10th Comput. Sci. Electron. Eng. Conf. CEEC 2018 -
ALEnezi N. [9] 100%. Proc., pp. 186–191, 2019, doi: 10.1109/CEEC.2018.8674183.
Hameed N et al. [10] 86.21% [6] S. S. Sinthura, K. R. Sharon, G. Bhavani, L. Mounika, and B. Joshika,
―Advanced Skin Diseases Diagnosis Leveraging Image Processing,‖
Proposed Model 90.7% Proc. Int. Conf. Electron. Sustain. Commun. Syst. ICESC 2020, no. Icesc,
pp. 440–444, 2020, doi: 10.1109/ICESC48915.2020.9155914.
The main problem encountered in developing the proposed [7] A.V.Ubale and P. L. Paikrao, ―Detection and Classification of Skin
model was the few of availability of the image of the diseases Diseases using Different Color Phase Models,‖ Int. Res. J. Eng. Technol.
tested. In addition, the few papers that study various types of e-ISSN, vol. 06, no. 07, pp. 3658–3663, 2019.
skin diseases. May training more images increase the accuracy [8] M. H. Ahmed, R. R. Ema, and T. Islam, ―An Automated Dermatological
and make the model more accurate to diagnose new images, as Images Segmentation Based on a New Hybrid Intelligent ACO-GA
Algorithm and Diseases Identification Using TSVM Classifier,‖ 1st Int.
well as selecting appropriate techniques to extract useful Conf. Adv. Sci. Eng. Robot. Technol. 2019, ICASERT 2019, vol. 2019,
features. no. Icasert, 2019, doi: 10.1109/ICASERT.2019.8934560.
[9] N. S. Alkolifi Alenezi, ―A Method of Skin Disease Detection Using
V. CONCLUSION Image Processing and Machine Learning,‖ in Procedia Computer
This paper proposed a model that provides the Science, 2019, vol. 163, pp. 85–92, doi: 10.1016/j.procs.2019.12.090.
classification of different types of skin diseases: acne, cherry [10] N. Hameed, A. M. Shabut, and M. A. Hossain, ―Multi-Class Skin
Diseases Classification Using Deep Convolutional Neural Network and
angioma, melanoma, and psoriasis. According to the previous Support Vector Machine,‖ Int. Conf. Software, Knowl. Information, Ind.
works in this area, there is a scarcity in the studies on these Manag. Appl. Ski., vol. 2018-Decem, 2019, doi:
diseases as most research focuses on skin cancer. This model 10.1109/SKIMA.2018.8631525.
was conducted through image processing techniques and [11] M. J. Hajgude, A. Bhavsar, H. Achara, and N. Khubchandani, ―Skin
machine learning algorithms on a total of 377 images. The disease detection using Image Processing with data mining and deep
dataset is divided into 301 images for the train set and 76 learning,‖ IRJET, vol. 6, no. 4, pp. 4363–4366, 2019.
images for the test set. Firstly, the processing techniques are [12] J. Rathod, V. Wazhmode, A. Sodha, and P. Bhavathankar, ―Diagnosis of
applied to images in several steps: preprocessing including skin diseases using Convolutional Neural Networks,‖ Proc. 2nd Int. Conf.
Electron. Commun. Aerosp. Technol. ICECA 2018, no. Iceca, pp. 1048–
resizing images, removing the noise using the median filter and 1051, 2018, doi: 10.1109/ICECA.2018.8474593.
converting the image to grayscale, then separating the infected [13] S. Akyeramfo-Sam, A. Addo Philip, D. Yeboah, N. C. Nartey, and I. Kofi
area using Otsu’s, and extracting its features using Gabor, Nti, ―A Web-Based Skin Disease Diagnosis Using Convolutional Neural
Entropy, and Sobel. Secondly, the model was evaluated using Networks,‖ Int. J. Inf. Technol. Comput. Sci., vol. 11, no. 11, pp. 54–60,
SVM, KNN, and RF classifiers in terms of accuracy, precision, 2019, doi: 10.5815/ijitcs.2019.11.06.
recall, and f1-score. However, the proposed model results show [14] ―DermNet NZ.‖ website: dermnetnz.org , license: https://creativeco
that the SVM accomplished higher accuracy with 90.7% than mmons.org/licenses/by-nc-nd/3.0/nz/legalcode (accessed Jun. 01, 2021).
RF and K-NN. At the same time, RF and K-NN achieved [15] S. F. da Silva and D. B. Calheiros., ―Dermatology Atlas.‖
atlasdermatologico.com.br (accessed Jun. 01, 2021).
84.2% and 67.1% accuracy, respectively. The result of the
[16] S. Perumal and T. Velmurugan, ―Preprocessing by Contrast Enhancement
proposed model using the SVM classifier achieved better Techniques for Medical Images,‖ International Journal of Pure and
accuracy than the comparison research’ accuracy. In contrast, Applied Mathematics, vol. 118, no. 18. pp. 3681–3688, 2018.
one paper outperformed the proposed model's accuracy. Since [17] L. Kapoor and S. Thakur, ―A Survey on Brain Tumor Detection Using
it was not possible to collect a skin disease dataset locally, Image Processing Techniques,‖ 2017 7th Int. Conf. Cloud Comput. Data
finding a public source with multi images of diseases was the Sci. Eng. - Conflu., pp. 582–585, 2017, doi: 10.1109/CONFLUE
biggest challenge during this work. This model can accomplish NCE.2017.7943218.
higher accuracy by using more dataset images. Moreover, [18] M. M. Lone and S. Hussain, ―A Survey on Image Segmentation
programmers can utilize the model to develop a smartphone Techniques,‖ Int. Res. J. Eng. Technol., vol. 05, 2018, doi: 10.1007/978-
3-030-32150-5_112.
application to diagnose these skin diseases easily and early.
[19] H. Seo et al., ―Machine learning techniques for biomedical image
REFERENCES segmentation: An overview of technical aspects and introduction to state‐
[1] L. Bajaj, H. Kumar, and Y. Hasija, ―Automated System for Prediction of of‐art applications,‖ arXiv, pp. 1–35, 2019.
Skin Disease using Image Processing and Machine Learning,‖ Int. J. [20] H. Sen and A. Agarwal, ―A comparative analysis of entropy based
Comput. Appl., vol. 180, no. 19, pp. 9–12, 2018, doi: segmentation with Otsu method for gray and color images,‖ Proc. Int.
10.5120/ijca2018916428. Conf. Electron. Commun. Aerosp. Technol. ICECA 2017, vol. 2017-
[2] T. Vos et al., ―Global, regional, and national incidence, prevalence, and Janua, pp. 113–118, 2017, doi: 10.1109/ICECA.2017.8203655.
years lived with disability for 328 diseases and injuries for 195 countries, [21] Y. Wang, ―Improved OTSU and adaptive genetic algorithm for infrared
1990-2016: A systematic analysis for the Global Burden of Disease Study image segmentation,‖ Proc. 30th Chinese Control Decis. Conf. CCDC
2016,‖ Lancet, vol. 390, no. 10100, pp. 1211–1259, 2017, doi: 2018, pp. 5644–5648, 2018, doi: 10.1109/CCDC.2018.8408116.
10.1016/S0140-6736(17)32154-2. [22] S. Kolkur and D. R. Kalbande, ―Survey of texture based feature
[3] E. Wojtyna, P. Łakuta, K. Marcinkiewicz, B. Bergler-Czop, and L. extraction for skin disease detection,‖ Proc. 2016 Int. Conf. ICT Business,
Brzezińska-Wcisło, ―Gender, body image and social support: Ind. Gov. ICTBIG 2016, 2017, doi: 10.1109/ICTBIG.2016.7892649.
Biopsychosocial determinants of depression among patients with
258 | P a g e
www.ijacsa.thesai.org
(IJACSA) International Journal of Advanced Computer Science and Applications,
Vol. 13, No. 5, 2022
[23] H. Ji, Z. Shen, and Y. Zhao, ―Digital Gabor filters do generate MRA- [25] F. Hržić, I. Ńtajduhar, S. Tschauner, E. Sorantin, and J. Lerga, ―Local-
based wavelet tight frames,‖ Appl. Comput. Harmon. Anal., vol. 47, no. entropy based approach for X-ray image segmentation and fracture
1, pp. 87–108, 2019, doi: 10.1016/j.acha.2017.08.001. detection,‖ Entropy, vol. 21, no. 4, 2019, doi: 10.3390/e21040338.
[24] S. T. H. Rizvi, G. Cabodi, P. Gusmao, and G. Francini, ―Gabor filter [26] C.-C. Zhang and J.-D. Fang, ―Edge Detection Based on Improved Sobel
based image representation for object classification,‖ Int. Conf. Control. Operator,‖ in International Conference on Computer Engineering and
Decis. Inf. Technol. CoDIT 2016, pp. 628–632, 2016, doi: Information Systems, 2016, vol. 52, doi: 10.2991/ceis-16.2016.25
10.1109/CoDIT.2016.7593635.
259 | P a g e
www.ijacsa.thesai.org