skin cancer is divided into non melanoma skin cancer ( nmsc ) and melanoma skin cancer ( mm ) ( fig . 1 ) . non melanoma skin cancer ( mmsc ) is the most prevalent cancer among light - skinned population.1 it is divided into basal cell carcinoma ( bcc ) ( 75% ) , squamous cell carcinoma ( scc ) ( 24% ) , and other rare types ( 1% ) such as sebaceous carcinoma . the age - standardized incidence rates per year of basal cell carcinoma is 175 per 100,000 in men and 124 per 100,000 in women.1 rates of squamous cell cancer are 63.1 per 100,000 in men and 22.5 per 100,000 women.1 non melanoma skin cancer is seldom lethal , but if advanced can cause severe disfigurement and morbidity . there are many methods to diagnose non - melanoma skin cancer ( nmsc)25 such as physical and clinical examination , biopsy , molecular markers , ultra sonography , doppler , optical coherence tomography , dermoscopy , spectroscopy , fluoresence imaging , confocal microscopy , positron emission tomography , computed tomography , magnetic resonance imaging , terahertz imaging , and electrical impedance . melanoma skin cancer is divided into : superficial spreading melanoma , nodular melanoma , lentigo maligna melanoma and acral lentiginous melanoma . 1 ) . more than 60,000 people in the united states were diagnosed with invasive melanoma in recent years , and more than 8000 americans died of the disease.6 the single most promising strategy to cut acutely the mortality rate from melanoma is early detection . attempts to improve the diagnostic accuracy of melanoma have spurred the development of innovative in - vivo imaging modalities , including total body photography , dermoscopy , automated diagnostic system and reflectance confocal microscopy . neural networks ( nn ) are a large class of models developed in the cognitive sciences , the structure of which was inspired by that of the nervous system of living beings . certain applications of nn in medicine have led to significant improvement in medical decision making,710 including pigmented skin lesions and skin cancer,1116 however , the fuzzy system was not addressed previously . fuzzy logic is a form of multi - valued logic that deals with reasoning that is approximate rather than precise . this paper proposes a system to make the computer automatically locate the tumor location in the image and calculate relevant features : such features can be used to determine the type of skin cancer . neural network models have been studied and used in this research . in general each network the proposed system composed of four nn built as a hierarchal nn system with back propagation learning . many transfer functions are included in the neural - network ; neurons can use any differentiable transfer function to generate their output . log - sigmoid transfer functions have often been used by multilayer networks , it generates outputs between 0 and 1 as the neuron s net input goes from negative to positive infinity . alternatively , multilayer networks can use the tan - sigmoid transfer function ; this function generates outputs from negative to positive infinity . in this study we used tan - sigmoid transfer function , in order to generate outputs between negative infinity to positive infinity . the fuzzy logic inference system used in this research after testing all images by using hierarchal neural network , nn results are entered into a fuzzy logic inference system to improve cancer diagnosis . there are many types of the skin cancer ; each type has a different color , size and features . figure 2 shows types of skin cancer that are studied in this research : many skin features may have impact on digital images like hair and color , and other impacts such as lightness , and type of the scanner or digital camera . images are processed to have the following starting features : 
 the same dimension ( width and height)removing hair if any : using a filtercolor filtration through blure filtermatching image colors and brightness to be correspondent to images in the collection for high accuracy : using levels . normalization of images was done . the same dimension ( width and height ) removing hair if any : using a filter color filtration through blure filter matching image colors and brightness to be correspondent to images in the collection for high accuracy : using levels . the above four steps for each image are performed manually using adobe photoshop in order to have same similar ranges of colors ; this makes it easier for vb.net program to extract the correct place of the tumor . figure 3 shows the image before and after performance of the normalization steps . the next step is to enter the images into a vb.net program to read the location of the tumor using color detection . after the color range of the image collection is checked , pixels that have a red color intensity value of less than 150 , a green color intensity value of less than 150 , and a blue color intensity value of less than 150 are found to be the tumor location , so all the locations with white area will be the tumor . figure 4 shows the result of processing the image in vb.net program . after performing steps mentioned above , vb.net software starts reading and finding the 20 features of the images that will be entered to the neural network . each feature of the image is calculated in a different way.11,18 these features are divided into : 
 area features : irregularity index and percent asymmetry features.color features : all remaining features . first nineteen images from melanoma and non - melanoma skin cancers were taken and their features were compared . as shown in figures 5 and 6 , which describe area features , irregularity index and border asymmetry , both melanoma and non - melanoma skin cancers are close together , and have many intersecting points between them , therefore we could not depend only on area features . in general , the color feature is the most dependable feature in recognizing cancer , especially the red color , and we can see in figure 7 that there is a difference between melanoma and non - melanoma in the red variance feature , so we can depend on this feature to recognize the type of the skin cancer . l , as shown in figure 8 , it is seen that the value of l is different between the two main cancer types : melanoma and non - melanoma . figures 9 shows the red ratio feature , as we can see no intersection points between melanoma and non - melanoma skin cancer , it is a powerful feature to depend on when recognizing images . image processing finding features for each image from f1 to f20 were entered into the hierarchal nn system , and learned the network for the study selected types of skin cancer , and then neural networks were saved to be used for testing later . it is known that cancer in general is proved through clinical tests not through the image of the tumor . a sample of a total of 58 images were taken from clinically proven skin cancer type images , and these images were classified into groups . the total number of the study images is 58 divided as shown in table 2 hierarchal nn systems involve the integration of four distinct neural networks that are trained separately using a back propagation learning algorithm . each neural network has twenty neurons in input layer , nine neurons in first hidden layers , five neurons in second hidden layer , and an output layer with one neuron as shown in figure 10 . nn1 is trained over whole data to determine the main type of the cancer : melanoma or non - melanoma , while nn2 trained over melanoma skin cancer images only to determine the type of melanoma skin cancer . it checks the type of non - melanoma and determines if it is the non - melanoma skin cancer type or other types of non - melanoma ( sebaceous gland carcinoma . ) nn4 is trained over non - melanoma skin cancer images and it is used to determine the type of non - melanoma skin cancer . a proposed hierarchical nn system structure is shown in figure 11 , and table 3 shows each neural network output ranges and results . each network is learned separately by taking 80% of the images as training data , and 20% as testing data . in some types of cancers , 50% of data are considered as learning , and 50% as testing , such as sebaceous gland carcinoma since only two images for this type are available . neuro - fuzzy is one field of artificial intelligence ; it is a combination of neural networks and fuzzy logic , with the object of having human - like reasoning style of fuzzy systems with the learning of neural networks . neuro - fuzzy systems combine the human - like reasoning style of fuzzy systems through the use of fuzzy sets , and a linguistic model consisting of a set of if - then fuzzy rules . the main strength of neuro - fuzzy systems is that they are universal approximations with the ability to use if - then rules . after testing sample study images using hierarchal nn and extracting the results , the output is validated by using the neuro - fuzzy system that combines nn and fuzzy logic , which leads to high accurate results . fuzzy logic uses validation rules that control the output ; these rules give a range of input and output . the proposed fuzzy logic system checks its rules over the output of all neural networks . the output of nn1 and nn2 will be the input of the first fuzzy logic inference system 1 ( fiz1 ) , the output of fiz1 will be melanoma or non - melanoma , and the type of melanoma , if the output is non - melanoma , the system enters the next fuzzy logic inference system 2 ( fiz2 ) , where it checks whether the type of the skin cancer is non - melanoma type or other type of non - melanoma , if the result is other type of non - melanoma ( sebaceous gland carcinoma ) , then the system ends , while if the result is non - melanoma , then the system enters fuzzy logic inference system 3 ( fiz3 ) to determine the correct type of non - melanoma skin cancer . it determines if the cancer is melanoma or non - melanoma , and the type of melanoma . table 5 illustrates fiz2 linguistic rules , it uses nn1 and nn3 outputs as input data . it determines the type of the non - melanoma skin cancer as shown in table 6 . fiz3 is used to determine the type of non - melanoma skin cancer if fiz2 output between 0.5 and 1.5 . its input is the output of nn1 , nn3 and nn4 , table 7 describes ranges of output regards each input values . there are many types of the skin cancer ; each type has a different color , size and features . figure 2 shows types of skin cancer that are studied in this research : many skin features may have impact on digital images like hair and color , and other impacts such as lightness , and type of the scanner or digital camera . images are processed to have the following starting features : 
 the same dimension ( width and height)removing hair if any : using a filtercolor filtration through blure filtermatching image colors and brightness to be correspondent to images in the collection for high accuracy : using levels . normalization of images was done . the same dimension ( width and height ) removing hair if any : using a filter color filtration through blure filter matching image colors and brightness to be correspondent to images in the collection for high accuracy : using levels . the above four steps for each image are performed manually using adobe photoshop in order to have same similar ranges of colors ; this makes it easier for vb.net program to extract the correct place of the tumor . figure 3 shows the image before and after performance of the normalization steps . the next step is to enter the images into a vb.net program to read the location of the tumor using color detection . after the color range of the image collection is checked , pixels that have a red color intensity value of less than 150 , a green color intensity value of less than 150 , and a blue color intensity value of less than 150 are found to be the tumor location , so all the locations with white area will be the tumor . figure 4 shows the result of processing the image in vb.net program . after performing steps mentioned above , vb.net software starts reading and finding the 20 features of the images that will be entered to the neural network . each feature of the image is calculated in a different way.11,18 these features are divided into : 
 area features : irregularity index and percent asymmetry features.color features : all remaining features . first nineteen images from melanoma and non - melanoma skin cancers were taken and their features were compared . as shown in figures 5 and 6 , which describe area features , irregularity index and border asymmetry , both melanoma and non - melanoma skin cancers are close together , and have many intersecting points between them , therefore we could not depend only on area features . in general , the color feature is the most dependable feature in recognizing cancer , especially the red color , and we can see in figure 7 that there is a difference between melanoma and non - melanoma in the red variance feature , so we can depend on this feature to recognize the type of the skin cancer . l , as shown in figure 8 , it is seen that the value of l is different between the two main cancer types : melanoma and non - melanoma . figures 9 shows the red ratio feature , as we can see no intersection points between melanoma and non - melanoma skin cancer , it is a powerful feature to depend on when recognizing images . image processing finding features for each image from f1 to f20 were entered into the hierarchal nn system , and learned the network for the study selected types of skin cancer , and then neural networks were saved to be used for testing later . it is known that cancer in general is proved through clinical tests not through the image of the tumor . a sample of a total of 58 images were taken from clinically proven skin cancer type images , and these images were classified into groups . the total number of the study images is 58 divided as shown in table 2 hierarchal nn systems involve the integration of four distinct neural networks that are trained separately using a back propagation learning algorithm . each neural network has twenty neurons in input layer , nine neurons in first hidden layers , five neurons in second hidden layer , and an output layer with one neuron as shown in figure 10 . nn1 is trained over whole data to determine the main type of the cancer : melanoma or non - melanoma , while nn2 trained over melanoma skin cancer images only to determine the type of melanoma skin cancer . it checks the type of non - melanoma and determines if it is the non - melanoma skin cancer type or other types of non - melanoma ( sebaceous gland carcinoma . ) nn4 is trained over non - melanoma skin cancer images and it is used to determine the type of non - melanoma skin cancer . a proposed hierarchical nn system structure is shown in figure 11 , and table 3 shows each neural network output ranges and results . each network is learned separately by taking 80% of the images as training data , and 20% as testing data . in some types of cancers , 50% of data are considered as learning , and 50% as testing , such as sebaceous gland carcinoma since only two images for this type are available . neuro - fuzzy is one field of artificial intelligence ; it is a combination of neural networks and fuzzy logic , with the object of having human - like reasoning style of fuzzy systems with the learning of neural networks . neuro - fuzzy systems combine the human - like reasoning style of fuzzy systems through the use of fuzzy sets , and a linguistic model consisting of a set of if - then fuzzy rules . the main strength of neuro - fuzzy systems is that they are universal approximations with the ability to use if - then rules . after testing sample study images using hierarchal nn and extracting the results , the output is validated by using the neuro - fuzzy system that combines nn and fuzzy logic , which leads to high accurate results . fuzzy logic uses validation rules that control the output ; these rules give a range of input and output . . the output of nn1 and nn2 will be the input of the first fuzzy logic inference system 1 ( fiz1 ) , the output of fiz1 will be melanoma or non - melanoma , and the type of melanoma , if the output is non - melanoma , the system enters the next fuzzy logic inference system 2 ( fiz2 ) , where it checks whether the type of the skin cancer is non - melanoma type or other type of non - melanoma , if the result is other type of non - melanoma ( sebaceous gland carcinoma ) , then the system ends , while if the result is non - melanoma , then the system enters fuzzy logic inference system 3 ( fiz3 ) to determine the correct type of non - melanoma skin cancer . it determines if the cancer is melanoma or non - melanoma , and the type of melanoma . table 5 illustrates fiz2 linguistic rules , it uses nn1 and nn3 outputs as input data . it determines the type of the non - melanoma skin cancer as shown in table 6 . fiz3 is used to determine the type of non - melanoma skin cancer if fiz2 output between 0.5 and 1.5 . its input is the output of nn1 , nn3 and nn4 , table 7 describes ranges of output regards each input values . the average results of neural networks system testing are shown in the table 8 . as shown in this table , nn1 has the largest success percentage , since all images are used as training data , while nn3 has the lowest percentage , which means that increasing the sample volume may improve the results . image type has an impact on the results , such as the quality of the image , size of the tumor compared with other images , and variances in skin color . if the output of nn1 is between 0.5 and 1.5 , the cancer is melanoma , and if the output of nn2 is between 0.5 and 1.5 , then the cancer type will be superficial spreading melanoma , which will be the output of fiz1 . first , hierarchical nn is used to generate outputs regards each image , second , nn outputs used as inputs to fuzzy logic inference systems as mentioned above . accordingly overall success percentage of diagnosing skin cancer type by using the neuro - fuzzy system is 91.26% , which is greater than hierarchal nn results . as shown in table 9 , by using the neuro - fuzzy system the number of failed diagnostic images is very low : five out of fifty eight images . failed tests appear to occur owing to a close value of all features for most of the image data , noting that the types of skin cancer with fewer images have the same or close error rate compared to the hierarchical nn system . the overall success rate was ( 91.26% ) which is slightly higher than the hierarchal nn alone ( 90.76% ) . this increase ( 0.5% ) is not significant ; this might be due to few studied images in the system . ten experiments were performed to calculate the success rate of diagnosis various types of cancer by using hierarchical neural network system , while only one experiment was done by using neuro - fuzzy system . figure 13 shows the diagnostic results of hierarchical neural network , and neuro - fuzzy systems . as we can see , number of correct diagnostic images by neuro - fuzzy system is more than the number diagnosis by hierarchical neural network . the worst results were in the diagnosis of squamous cell carcinoma , which might be due to the small number of squamous cell carcinoma cancer images . in the fight against melanoma , a diagnostic aid from new technologies could be useful . however , the effective reliability of computer - aided systems has still to be assessed.17,18 in this study we have explored the opportunity of using multispectral analysis and an nn and neuro fuzzy system in an attempt to mimic the decision of an expert clinician . the 80% specificity with the resulting 88% sensitivity is an arbitrary value and could be considered more or less satisfactory , depending on the accuracy usually assigned to physicians in identifying pigmented lesions suggestive of melanoma . several research efforts have focused in the last few years on the possibility of introducing into daily clinical practice computer aided classification or automatic machine vision to increase the accuracy of melanoma diagnosis.1926 in fact , although dermoscopy seems to have a discriminant power significantly higher than clinical examination in classifying pigmented lesions , as documented in a recent meta - analysis , the accuracy of dermoscopy is highly variable across different studies and is still far from the desirable levels of 100% sensitivity and high specificity . sources of variation are likely to arise from differences in sample sizes , proportion of melanomas in the sample , type of instrument used , dermoscopic criteria used , and , last but not least , human variability in feature recognition and coding . our study provides an important contribution to this research area , since it is applied to all known types of skin cancer and because it highlights the importance of factors such as classifier design and feature selection in computer aided diagnosis that are generally overlooked in the previously published studies . we adopted a very conservative procedure in feature selection for the linear classifier to obtain a relatively small set of robust parameters to discriminate melanoma and non melanoma types . this strategy and the use of a hold - out ( separate training and test sets ) design allowed performance estimates that were likely conservatively biased . despite this , the performances of the linear classifiers were remarkably accurate , with a mean sensitivity of 95% , a mean specificity of 88% and was highly stable on sets of lesions derived from different dermatology centres , where the referral criteria for patients with pigmented lesions and the operating conditions of the instruments could have been different . the most critical requirement of the nn and neuro fuzzy classifiers is to have a training set including enough examples of each class of pigmented lesions to adequately represent the full range of measurements that can be expected from each class . comparing the performances of the two classifiers , the neuro fuzzy approach , yielding a sensitivity of 98% and a specificity of 89% , seemed to give results similar to the nn approach ( which gave sensitivity of 95% and specificity of 88% ) . although the bottom line in the diagnosis of melanoma is likely to continue to depend on the clinical insight of the physician and on the expertise of the pathologist , computer - aided diagnosis could provide clinicians an objective second opinion , at expert level , based on consistently extracting and analyzing image features . to what extent the combination of human and machine - based diagnoses would affect the decision - making process in the management of patients with pigmented lesions by improving the detection of early melanoma and/or decreasing unnecessary surgery remains to be evaluated by well - designed , randomized clinical trials in the field . after testing the studied sample of images on the two systems included in this research , the automatic image processing of skin cancer found is difficult because of the different features of human skin , i.e , the skin pigmentation or color variations . the most dependable feature to recognize the type of image is the red color . the results of testing the studied sample of images by using hierarchal nn system gave 90.67% , accuracy , while using neuro - fuzzy system gave better results than using the hierarchal nn system alone , with accuracy rate of 91.26% . image processing is the primary foundation of this study , and the concept of improving the means of extracting features of the skin image is the main recommendation for researchers to follow in the future . the output of both hierarchal nn and neuro - fuzzy systems depends on these features . image normalization in our research was manual , and in future work it is recommended that this is computerized . benign cancers should be studied and distinguished in relation to that , and the proposed system can be compared with other systems .
skin cancer is the most prevalent cancer in the light - skinned population and it is generally caused by exposure to ultraviolet light . 
 early detection of skin cancer has the potential to reduce mortality and morbidity . 
 there are many diagnostic technologies and tests to diagnose skin cancer . 
 however many of these tests are extremely complex and subjective and depend heavily on the experience of the clinician . to obviate these problems , image processing techniques , a neural network system ( nn ) and a fuzzy inference system were used in this study as promising modalities for detection of different types of skin cancer . 
 the accuracy rate of the diagnosis of skin cancer by using the hierarchal neural network was 90.67% while using neuro - fuzzy system yielded a slightly higher rate of accuracy of 91.26% in diagnosis skin cancer type . 
 the sensitivity of nn in diagnosing skin cancer was 95% , while the specificity was 88% . 
 skin cancer diagnosis by neuro - fuzzy system achieved sensitivity of 98% and a specificity of 89% .