Research Article | Open Access
Automatic Classification of Specific Melanocytic Lesions Using Artificial Intelligence
Background. Given its propensity to metastasize, and lack of effective therapies for most patients with advanced disease, early detection of melanoma is a clinical imperative. Different computer-aided diagnosis (CAD) systems have been proposed to increase the specificity and sensitivity of melanoma detection. Although such computer programs are developed for different diagnostic algorithms, to the best of our knowledge, a system to classify different melanocytic lesions has not been proposed yet. Method. In this research we present a new approach to the classification of melanocytic lesions. This work is focused not only on categorization of skin lesions as benign or malignant but also on specifying the exact type of a skin lesion including melanoma, Clark nevus, Spitz/Reed nevus, and blue nevus. The proposed automatic algorithm contains the following steps: image enhancement, lesion segmentation, feature extraction, and selection as well as classification. Results. The algorithm has been tested on 300 dermoscopic images and achieved accuracy of 92% indicating that the proposed approach classified most of the melanocytic lesions correctly. Conclusions. A proposed system can not only help to precisely diagnose the type of the skin mole but also decrease the amount of biopsies and reduce the morbidity related to skin lesion excision.
Body organs are not all internal like the heart, brain, or liver. There is one we wear on the outside which protects us from extremes of temperature, damaging sunlight, and harmful chemicals. Skin is our largest organ which in adolescence covers about 2 square meters and weights 3.6 kilograms . Like in other parts of the body, skin cells can also grow abnormally, causing cancerous tumors to form. The most popular and widely used method to analyze skin changes is to observe them under a skin surface microscope.
The analysis of skin with a microscope started in 1663 by Kolhauser who observed vessels of nail matrix. In 1958, after many years of research, the first portable dermatoscope has been produced . Goldman was the first dermatologist to coin the term “dermascopy” and to use the dermatoscope to evaluate pigmented cutaneous lesions. Nowadays the examination of the small moles is possible through a digital epiluminescence microscopy (ELM, also dermoscopy or dermatoscopy) which is a noninvasive, in vivo technique that, by employing the optical phenomenon of oil immersion, makes subsurface structures of the skin accessible for examination in an optic magnification between 10 to 40 times . Figure 1 presents comparison between the skin mole observed with the naked eye and with a dermoscope. Dermoscopy enables clinicians to observe global and local structures very precisely and thus provides the additional criteria for the clinical diagnosis of pigmented skin lesion.
This paper is organized in four sections as follows. Section 1 covers background information on the nature of skin cancer, presents the clinical definition of different melanocytic lesions, and describes the motivation and state of the art. Section 2 specifies melanocytic lesions classification algorithm, including the following steps: preprocessing, segmentation, feature extraction, feature selection, and classification method. In Section 3, the conducted tests and results are described. Section 4 closes the paper and highlights future directions.
Background. Although the two most commonly diagnosed skin cancers are basal cell carcinoma and squamous cell carcinoma, which develop from the nonpigmented cells of the skin, the most aggressive and dangerous is malignant melanoma. Malignant melanoma (Latin: melanoma malignum) originates in pigment producing cells called melanocytes and is less common but far more deadly than cancers mentioned above . Melanomas are fast-growing and highly malignant tumors often spreading to nearby lymph nodes, lungs, and brain (Figure 2). Malignant melanoma is likely to become one of the most common malignant tumors in the future, with even a ten times higher incidence rate .
Due to the high skin cancer incidence and mortality rates, early diagnosis of melanoma has become an extremely important issue. The progress is visible not only in the primary research but also in the development of sophisticated, more accurate methods of image processing, classification, and computer-aided diagnosis .
In this paper we present a new approach to the classification of melanocytic lesions. Most of the research done so far in this area has concentrated on creating new methods to distinguish benign from malignant skin lesions. In our research we go one step further and differentiate melanocytic lesions including Clark nevus, Spitz nevus, blue nevus, and malignant melanoma. In the next part of this paper we will present the clinical importance and motivation to undertake this research.
Clinical Importance and Motivation. A melanocytic nevus (also called a nevocytic nevus or a mole) is a lesion that contains nevus cells (a type of pigment cells called melanocytes). A mole can be either subdermal (under the skin) or a pigmented growth on the skin, formed mostly of melanocytes. The high concentration of the body’s pigmenting agent, melanin, is responsible for their dark color. Although melanocytic nevi are very common, their histogenesis is not well understood and still a matter of debate . All we know about the life of melanocytic nevi is based on cross section or cohort studies, because it is still complicated to monitor skin lesions in vivo on a cellular level. The majority of moles appear during the first two decades of a person’s life. Acquired moles are a form of benign neoplasms, while congenital moles (or congenital nevi) are considered a minor malformation or hamartoma and may be at a higher risk of melanoma .
In our research we concentrate on the classification of the most popular melanocytic nevi to the diagnostic categories including Clark nevus, Blue nevus, Spitz/Reed nevus, and malignant melanoma. It is of high importance to diagnose correctly the type of a skin lesion, because the further physicians’ orders depend on it and some of the nevi have a higher risk of developing malignant melanoma than other ones. The proposed system can not only help to precisely diagnose the type of the skin mole but also decrease the amount of biopsies and reduce the morbidity related to skin lesion excision.
Clark Nevus. Clark nevi have been named in 1978 after Wallace H. Clark, Jr., who described this particular type of nevus by studying numerous melanocytic nevi in patients with concomitant melanomas . Clark nevi are the most common nevi in man, and while these moles are neither contagious nor dangerous, medical experts believe that Clark nevi do present a higher risk of turning into melanoma when compared to more common moles. Clinical, dermoscopic, and histopathologic variants of Clark nevi are protean, and the differentiation of Clark nevi from melanoma in situ and early invasive melanomas is the major challenge in the realm of pigmented skin lesions . Clinically, Clark nevi are flat to elevated or even slightly papillated pigmented lesions characterized by various shades of brown coloration and situated on the trunk and extremities that are usually called common junctional nevi or common compound nevi (Figure 3). Those who have a number of Clark nevi should pursue a complete skin examination every year.
Blue Nevus. According to the original definition by Tieche, blue nevus is a dermal-based, benign melanocytic lesion histopathologically made up by variable proportions of oval/spindle and bipolar, usually heavily pigmented dendritic cells [2, 4, 6]. Clinically, blue nevi appear as relatively regular, sharply circumscribed with a uniform blue to gray-blue or sometimes even gray-black pigmentation. Dermoscopically, blue nevi exhibit a homogeneous pattern with complete absence of local features, such as pigment network structures, brown globules, or black dots within the diffuse homogenous pigmentation (Figure 4). This absence of local features and the presence of a well-defined border, usually without streaks, are criteria to differentiate blue nevus from melanoma, in many cases with a high degree of certainty. As blue nevi are harmless no treatment is needed.
Spitz/Reed Nevus. Spitz/Reed nevi are typically small, well-circumscribed, reddish papules, larger reddish plaques, but also verrucous plaques with variegated colors and may be up to one or two centimeters in diameter. Dermoscopically, about 50% of pigmented Spitz nevi show a symmetric appearance and a characteristic starburst pattern or a globular pattern with a regular, discrete blue pigmentation in the center and a characteristic rim of large brown globules at the periphery (Figure 5). Spitz nevi are well-known simulators of cutaneous melanoma from a clinical, dermoscopic, and histopathologic point of view .
Malignant Melanoma. Malignant melanoma is the most aggressive type of skin cancer. It is due to the uncontrolled growth of melanocytes. The first sign of melanoma is usually an unusual looking mole or spot. Melanoma may be detected at an early stage when melanocytic lesions are only a few millimeters in diameter, but they also may grow up to several centimeters in diameter before being diagnosed.
Clinically, a melanoma can have a variety of colors including white, brown, black, blue, red, or even light grey. Melanomas in early stage are usually small, more or less irregularly shaped and outlined macules, or slightly elevated plaques with pigmentation that varies from pink to dark brown or black. Invasive melanomas are, as a rule, papular or nodular, often ulcerated, and characteristically exhibit shades of brown and black but also foci of red, white, or blue coloration. Dermoscopic features describing melanoma contain multicomponent pattern, irregular dots/globules, atypical pigment network, irregular streaks, irregular pigmentation, regression structures, and blue whitish veil (Figure 6). A suspected melanoma should be surgically removed with a 2-3 mm margin (excision biopsy) and sent to a pathology laboratory for a microscopic examination .
Related Works. During patient examinations researchers observe that young inexperienced dermatologists and family physicians have huge difficulties in the correct visual assessment of skin lesions. As stated in [7, 8] only experts have arrived at 90% sensitivity and 59% specificity in skin lesion diagnosis, while for unexperienced physicians these figures show a significant drop till around 62-63% for general practitioners . Due to these obstacles, researchers try to implement and build computer-aided diagnosis (CAD) systems for automated diagnosis of melanoma to increase the specificity and sensitivity and to simplify the assessment of skin moles. Two reviews on the state of the art of CAD systems for skin lesion diagnosis can be found in [3, 10]. For these systems, the true positive rate ranges between 0.8 and 1.0 and the true negative rate between 0.5 and 0.95. Although such computer programs are developed for different diagnostic algorithms, to the best of our knowledge, a CAD system to classify different melanocytic lesions has not yet been proposed. Based on the review article , in Table 1 we present an extended categorization of feature descriptors which are commonly used in the computerized analysis of dermoscopic images.
2. Materials and Methods
The designed system for the automated diagnosis of melanocytic lesions is a computer-aided diagnosis system which is designed to reproduce the decision of dermatologist based on the dermoscopy images. The proposed methodology of discrimination between malignant melanoma and nevi tumors is shown in Figure 7. The automated system is divided into six main stages, including preprocessing (image enhancement), segmentation, feature extraction, feature selection, classification, and then evaluation. The system enables texture analysis without being limited by selection and detection of structure of interest.
In this section the preprocessing and segmentation steps are described shortly, based on our previous work, while the main stage which is feature extraction, selection, and classification is presented in detail. The application has been implemented using Matlab ver. 2013.
2.1. Dermoscopic Image Preprocessing
The main goal of the preprocessing step is to improve the image quality by reducing or even removing the unrelated and surplus parts in the dermoscopic images. Dermoscopic images are inhomogeneous and complex. For dermoscopy images, the preprocessing step is obligatory, because of extraneous artifacts, such as skin lines, air bubbles, and hairs, which appear in virtually every image.
To enhance the image and to reduce the influence of light hairs, air bubble, small pores, shines, and reflections, a median filter is being used.
Among the most necessary artifact rejection steps is hair removal, because hairs may cover parts of the image and make the segmentation and texture analysis impossible. A number of methods have been developed for hair removal in dermoscopic images and they were mostly based on morphological operations and adaptive thresholding [11–13]. A good approach for hair removal is the use of top-hat transformation. The process consists of four steps: converting RGB to grayscale image, applying black top-hat transformation, distinguishing hairs from other local structures, and inpainting.
The dermoscopic RGB image is being converted into grayscale with the NTSC 1953 standard (Figure 8(c)). Secondly, the black top-hat transform, which is a morphological image processing technique, is used to detect thick, dark hairs. The result of this step is the difference between the closing operation and the input image:where denotes the closing operation, is the grayscale input image, and is a grayscale structuring element [14, 15].
The black top-hat transform returns an image, containing elements that are darker than their surrounding and smaller than the structuring element.
2.2. Segmentation Algorithm
The techniques and algorithms available for segmentation of medical structures are specific to application, imaging modality, and type of body part to be studied. For the dermoscopic images, segmentation process is one of the most challenging and crucial processes. This process for dermoscopic images is extremely difficult due to several factors: low contrast between the healthy skin and moles, variegate coloring inside lesions, and irregular borders, as well as different artifacts. Due to the difficulties described above, numerous methods have been implemented and tested . Celebi et al. present in their research  the state of the art of segmentation methods and compare them with the statistical region merging as a recent color image segmentation technique based on region growing and merging. Based on the achieved results and conducted experiments, the skin lesion extraction is performed by seeded region-growing algorithm , in regard to two aspects. Firstly, during the preprocessing step, the healthy skin becomes homogeneous. Secondly, the whole skin mole is visible in the dermoscopic image and surrounded by healthy skin. It means that the healthy skin surrounds the mole. Region-growing techniques generally give better results in noisy images where edges are extremely difficult to detect.
For the skin lesion segmentation, we take one seed which is located in the left upper corner of the image (Figure 9(a)). The region is iteratively grown by comparing all unallocated neighboring pixels to the region. The region-growing process consists of picking a seed from the set, investigating all 4-connected neighbors of this seed, and merging suitable neighbors to the seed. The seed is then removed and all merged neighbors are added to the seed set. The region-growing process continues until the seed set is empty.
2.3. Geometrical Feature Extraction
Geometrical features have been used mainly to describe lesion’s outline, as its irregularity usually indicates malignancy. Those features are based mostly on such properties of an object, as area, diameters, or geometric moments. To ensure robustness of the selected features, their formulation does not depend directly on object’s perimeter (as in case of raster images it is hard to accurately estimate this quantity). All features are normalized to ensure their scale-, rotation-, and translation-invariance.
To assess lesion’s shape, the following features have been extracted: maximal diameter (maximum distance between two arbitrary points), equivalent diameter (), variance of the radial distance distribution, rectangularity (ratio of area of an object to area of its bounding box), elongation (aspect ratio of object’s bounding box), eccentricity, Haralick’s compactness, and normalized discrete compactness [18–21].
Variance of the radial distance distribution is given by where is a set of all pixels constituting perimeter of object , is geometric centroid of , and is the distance between pixels and in a chosen metric. As studied lesions are of circular shape, the Euclidean metric has been chosen.
Eccentricity measures deviation of a conic curve from a circle and (in mathematics) is formulated as ratio of distance between foci of an ellipse to the length of its major axis. In image processing, eccentricity of an object, , is actually value of eccentricity of an ellipse with same second moments as object :where denotes an image moment of order. However, such a formulation of eccentricity still serves the purpose of measuring circularity of an object.
Haralick’s compactness is a measure for circularity of a digital figure, defined as , where is a random variable of the distance between the center of the figure to any part of its perimeter .
Normalized discrete compactness measure is based on counting the number of cell sides common to adjacent pixels of object’s perimeter, a measure called discrete compactness :where , are, respectively, lower and upper bound of discrete compactness of a shape composed of pixels and is the perimeter of the digital region .
2.4. Color-Based Features
The analysis of lesion’s colors is an important source of information when determining lesion’s type, as malignant lesions are characterized by a rich texture .
The following color-based features have been extracted: number of colors present within lesion’s area (together with information about the presence of two specific colors: white and black), concentricity, centroid distance, and histogram distances [23, 24].
To determine the number of colors and to calculate the concentricity, an image has been converted to CIE color space and then and color channels have been clustered into four clusters. Three clustering algorithms have been tested: -means clustering, kernel -means clustering, and hierarchical agglomerative clustering [25, 26]. Kernel -means algorithm has been tested using Gaussian kernel for . In case of hierarchical agglomerative clustering, Ward’s minimum variance method based on Euclidean distance between clusters has been applied as the criterion for choosing the pair of clusters to merge at each step .
The number of colors has been related to the greatest distance between clusters’ centroids (each pair of clusters had been considered) and it has been assumed that to identify two colors as significantly different the distance between them in space must exceed certain threshold value:where is a set of clusters’ centroids. The threshold value has been set to .
It has been assumed that, to state the presence of a certain color within the lesion, the area of biggest cohesive area of that color must be greater than 1% of the area of the whole lesion. Pixels have been recognized as white if and as black if , where is the value of luminosity channel for the given pixel.
Based on the aforementioned clusterization, a measure called “concentricity” is derived . To compute concentricity of an object, its color clusters are first arranged in ascending order regarding the area of their convex hull (i.e., segment has the smallest area of convex hull and segment the greatest), and then a few auxiliary indexes are calculated. The function stands for the number of pixels of the given object.
For segment , the percent area index, PA, is computed :where is the largest cohesive set of pixels of . The PA describes how well the core is grouped.
Let Hull denote the minimal convex area which includes the entire pixels of . The core inclusion, CI, is then defined as The CI describes how well the second smallest area encircles the core.
Let Core denote the minimal convex area, which includes the entire pixels of . The hull exclusion, HE, is given by The HE describes how exclusively the hull surrounds the core.
Finally, concentricity is defined as the product of the three variables :Concentricity closer to one implies a better concentric structure.
Images of all regions used to compute concentricity have been compiled in Figure 10.
The centroid distance for a color channel is defined as the distance between the geometric centroid (of the binary object) and the brightness centroid of that channel. The brightness centroid may be considered a center of mass of an object whose density is determined by intensity values of its pixels. If the pigmentation in a particular channel is homogeneous, the brightness centroid will be close to the geometric centroid resulting in small value of the centroidal distance.
Color similarity of two regions has been quantified by the - and -norm histogram distances for CIE color space coarsely quantized into bins :where , are histograms of areas and , respectively.
2.5. Texture Description
GLCM is a square matrix , where the th entry of represents information about the frequency of occurrence of such two adjacent pixels, where one of them has intensity and another has intensity . Such information may be used to derive second-order statistical measurements characterizing examined texture. GLCM and six measures derived from it (contrast, correlation, energy, homogeneity, maximum probability, and dissimilarity) have been calculated as described by Celebi et al. :
With GLRLM, it is possible to analyze higher order statistical features for the given texture. GLRLM is a two-dimensional matrix in which each element gives the total number of occurrences of runs of length at gray level , in a given direction .
In our study, the direction of runs is irrelevant, as dermoscopic camera has no fixed orientation when taking images of lesions—there is no “reference orientation.” The only thing that matters is texture’s homogeneity; thus instead of calculating measures for individual orientations , all GLRLM computed for the aforementioned orientations have been added together and measures have been computed only using this new orientation-invariant matrix .
GLRLM is used to derive 11 measures. Five basic measures (SRE, LRE, GLN, RLN, and RP) describe the distribution of runs’ lengths (SRE, LRE, RLN, and RP) and runs’ intensity (GLN) . As SRE and LRE do not consider pixels’ intensity, LGRE and HGRE measures have been proposed . Finally, SRLGE, SRHGE, LRLGE, and LRHGE measures are based on statistical properties of a joint probability distribution of both runs’ intensity and length :where is the number of image pixels with gray levels, is the maximal run length, and is the total number of runs in an image ().
The observed asymmetry is a significant diagnostic premise, as in malignant lesions the arrangement of local structures (e.g., dots, streaks, and pigmentation nets) is nonuniform across the whole area of a lesion . Some researchers point out that, for instance, sharp transitions between central and border area indicate malignancy [24, 33].
Asymmetry measures may be defined in terms of ratios of feature values across various lesion’s area segments or in terms of changes of feature values between halves obtained by splitting lesion area into halves using straight section lines passing through the center of mass [32, 33].
In our study, a different approach has been adopted. The lesion area has been first divided into sets of subregions in three different manners (Figure 11) by splitting (1) into central and border part, (2) into halves along minor and major axis, and (3) into quarters using same axes. Then a variance of feature values has been calculated for each set of subregions. Additionally, asymmetry indices proposed by Stoecker et al.  and the following quantities have been computed:where denotes value of feature calculated for th quadrant and for the whole area, respectively.
(a) Whole area
(b) Inner and outer area
(c) Split along the major axis
(d) Split along the minor axis
(e) Split along both major and minor axis simultaneously
2.7. Data Preparation
In order to apply correlated-base feature selection method (the choice of this particular method is discussed later), numerical features have been discretized. This is due to the fact that in the studied problem the decision feature is a categorical variable, which means it takes on discrete values, and the relationship between variables of those two classes cannot be directly assessed. The only solution is to discretize the variable taking continuous values. In general terms, discretization is a simple logical condition, which takes into account one or a few attributes and which aims at splitting a range of data into at least two subsets. Data in our study have been discretized according to the method proposed by Fayyad and Irani , which uses heuristics minimizing entropy based on the “minimum description length principle.”
To ensure correct work of algorithms based on analysis of distances between points in the feature space (e.g., -nearest neighbors algorithm, SVM), for each feature its values have been scaled to the range of . Consequently, the risk of a situation in which a feature with larger range of values dominates other features has been eliminated. Normally distributed features have been transformed using -score (Equation (14)), whereas other features were rescaled linearly to the desired range (15) . Considerwhere is a vector of feature’s values prior to normalization and is the same vector after normalization. To determine if a given feature is well modeled by a normal distribution, chi-square goodness-of-fit test has been applied.
2.8. Class Imbalance Problem
The data set used in this study exhibits class imbalance problem which means that the classes are not approximately equally represented (i.e., it consists of more than three times as many images of Clark nevus than images of blue nevus). In such case, most classifiers will focus on learning how to identify representatives of majority classes leading to poor predictive accuracy for minority classes. When making a diagnosis, such a situation is unacceptable, as misclassification error may lead even to patient’s death.
The most common way to address this issue is sampling . There exist two main types of sampling methods: undersampling, which consists in removing representatives of the majority class, and oversampling, which consists in adding examples of the minority class. Out of many sampling techniques, two methods are particularly popular: random undersampling and synthetic minority oversampling technique (SMOTE). In random undersampling method, randomly drawn representatives of the majority class are removed from the data set. In SMOTE method, new “synthetic” examples are created by averaging a few representatives of the same minority classes which are nearest neighbors in the feature space .
In this study, SMOTE method has been used, as it has been proven to be more effective than random undersampling when tested on a set of dermoscopic images obtained from various sources, without any common or rare lesion types omitted .
2.9. Feature Selection
Feature selection consists in reducing data dimensionality by rejecting redundant, unimportant, or noisy features, thus resulting in increased prediction accuracy, less complex classifier models, and better computation efficiency.
Feature selection algorithms may be divided into three main categories: filters, wrappers, and projections [53, 54]. In this study, filter methods have been used for two reasons . Firstly, as filters are usually fast, it is possible to test a huge number of combinations of features. Secondly, if one would like to use wrappers on a given data set, the target learning algorithm should demonstrate satisfactory results for the original data set, as wrappers are based on feedback principle. As some features extracted in this study might be irrelevant or redundant as well as due to class imbalance, wrappers have not been likely to fulfill those restrictions. On the other hand, projections are used mainly to increase computational performance, which was not the case in this study.
Out of numerous available filters, three are worth noticing due to their satisfactory performance on various data sets : ReliefF, mutual information-based feature selection, and correlation-based feature selection [55–57]. As numerous features extracted in this study are strongly mutually correlated, correlation-based feature selection has been chosen as the only method which takes into account not only relationships between features and the decision class, but also relationships between features themselves.
The heuristic “merit” of a feature subset containing features is given by where is the average feature-class correlation and the average feature-feature intercorrelation.
To compare two feature vectors of discrete values, the symmetric uncertainty, an improved version of information gain measure, has been used . Symmetric uncertainty is given bywhere is the marginal entropy of set and is the joint entropy of sets and .
The number of selected features is a parameter which requires a careful tuning: too few features results may prevent classifiers from distinguishing between various classes whereas too many features impose risk of overfitting—a situation when a model excels in classifying training data but fails to generalize knowledge and hence misclassifies new samples. As some researchers suggest limiting the number of features, , to the range of , in this study has been adopted.
The applied procedure allowed choosing features which best discriminate lesion types: concentricity computed using -means algorithm, concentricity computed using kernel -means algorithm for , histogram distances in and metrics computed for central and border part, variances from sets of histogram distances between the whole region and individual quarters in both and metrics, variances from sets of histogram distances between each pair of quarters in both and metrics, variances from sets of GLCM features (dissimilarity, maximum probability, entropy, energy, correlation, and contrast) computed for quarters, variance of variances of channel values (in color space) calculated for quarters, variance of variances of H channel values (in HSV color space) calculated for quarters, mean value of variances of channel values (in color space) for quarters, variance from sets of histogram distances between halves in both and metrics, and variance from sets of GLCM dissimilarity computed for halves.
This particular choice of features does not diverge from the clinical practice, according to which asymmetry is one of the most important premises in determining the lesion type.
The following predictive models have been tested [60, 61]: -nearest neighbors algorithm (for ), logistic regression, decision tree, and support vector machine (SVM). Other models, like neural networks or rule-based systems, have not been a subject of this study . In case of the decision tree, Gini-Simpson index has been used as a measure of data diversity . Decision boundary of SVMs has been determined using radial basis function as kernels. Radial basis function has been preferred over linear, sigmoid, and polynomial kernels as it exhibits a few important properties : it allows classifying nonlinearly separable data sets (as is the case in this study), it is characterized by high numerical stability, and it is defined using only one parameter. Moreover, as in this study there are as many as four decision classes, the multiclass classification problem has been decomposed into a (greater) number of binary classification problems. Winner-takes-all strategy has been applied to combine solutions of subproblems into a final solution, as for small data sets its results are similar to the results of the best strategy—pairwise coupling—while at the same time its computational burden is much lower [64, 65].
Individual classifiers have been trained using typical parameters. It has been assumed that the cost of misclassifying melanoma as nevi is four times higher than another sort of misclassification. Initial experimental results have proven SVM to be the most effective classifier (similar observations have been made by other research teams [60, 66]). Consequently, further experiments were focused on improving performance of SVMs by fine-tuning their parameters.
SVM with radial basis function kernel is governed by two parameters—misclassification cost, , and kernel width, . The task is to select those parameters in such a way that the accuracy of predictions for new data (data not used in the learning process) is maximal.
As values of only two parameters have had to be adjusted, grid search has been applied . For each parameter, values from exponential series have been considered: and . Each combination of parameter values has been assessed using a validation procedure described below. After the grid search had finished, SVM have been trained using optimal parameter values .
The aim of the validation step is to assess classifier’s quality based on the number of generalization errors, that is, misclassified samples. Optimal SVM models have been validated using stratified Monte Carlo cross validation method and in each iteration the test set consisted of 10% of samples.
The Monte Carlo variant of cross validation had been chosen for a number of reasons. Firstly, experimental results obtained for a similar problem  suggest high effectiveness of this method. Secondly, in their analysis, Molinaro et al.  point out that, for datasets consisting of few samples with many features, such as a dataset used in this study, the difference in effectiveness between Monte Carlo and “classic” 10-fold cross validation is insignificant. The number of samples drawn into the test set has been determined using a “rule of thumb” . Finally, by applying Monte Carlo cross validation, one may avoid constructing overdeveloped predictive models, which decreases the risk of overfitting.
As in the data set used in this study, there is a considerable difference in the number of representatives between various decision classes and stratification has been applied. Stratification ensures the similar distribution of representatives of each decision class in both training set and test set in each iteration of the validation procedure.
3. Results and Discussion
3.1. Database Specification
The described algorithm for the automatic classification of specific melanocytic lesions has been tested on dermoscopic images from a widely used Interactive Atlas of Dermoscopy . Images for this atlas have been provided by two university hospitals (University of Naples, Italy, and University of Graz, Austria) and stored on a CD-ROM in the JPEG format. The documentation of each dermoscopic image was performed using a Dermaphot apparatus (Heine, Optotechnik, Herrsching, Germany) and a photo camera (Nikon F3) mounted on a stereomicroscope (Wild M650, Heerbrugg AG, Switzerland) in order to produce digitized ELM images of skin lesions. All the images have been assessed manually by a dermoscopic expert with an extensive clinical experience.
Furthermore, all the descriptions of skin cases were based on the histopathological examination of the biopsy material. In order to develop and test the automatic procedure for the classification of melanocytic skin lesions, 300 images with different resolutions, ranging from 0.033 to 0.5 mm/pixel, were chosen. The database included 100 Clark nevus cases, 70 blue nevus cases, 70 Spitz nevus cases, and 60 malignant melanomas.
The preprocessing step (black frame removal and hair removal) as well as the segmentation step (border error less than 6%) did not affect the further research .
3.2. Statistical Analysis
The performance of a classifier can be assessed based on the analysis of discrepancies in classification, that is, differences between the classification carried out by the classifier and the actual classification (ground truth), summarized in a confusion matrix. In this matrix, each row refers to actual classes, , as recorded in the test set, and each column refers to classes as predicted by the classifier, . The th element contains the number of test instances predicted by a classifier to belong to th class class, whereas they are actually representatives of th class.
From a contingency table we can calculate three performance indicators: accuracy, true positive rate (TPR), and true negative rate (TNR).
For a binary classification problem, those indicators are given by where is the test set and the function denotes the indicator function. Positive and negative classes are denoted by and , respectively.
Although the initial problem is a multiclass classification problem (with four classes), it can be decomposed into four binary classification problems: whether an instance belongs to the given class or not.
When dealing with a data set exhibiting class imbalance problem, the accuracy should be considered only a preliminary performance indicator. For instance, for a data set with class ratio 99 : 1, a classifier which simply counts each instance as a representative of the majority class would score the accuracy of 99%! Therefore in such cases better measure would be a plot of the ROC curve and the area under that curve.
The ROC plot completely visualizes the (normalized) contingency table, by means of plot in the unit square with TPR rate on the -axis and TNR rate on the -axis. Each of the points marked on the ROC plot specifies the classification performance, in terms of true and false positive rates, achieved by the corresponding score thresholds. In our study, posterior probabilities have been used as scores. Those points are connected by straight lines producing a piecewise linear curve, the ROC curve, that rises monotonically from to . The ROC plot can be interpreted as a plot of costs-to-benefits ratio. To measure the performance of a classifier using a ROC plot, the area under that plot curve (AUC) is calculated.
|BN: blue nevus, CN: Clark nevus, MM: malignant melanoma, SN: Spitz nevus, ALL: multiclass classification.|
(a) Logit (AUC = 0.9469)
(b) Tree (AUC = 0.9555)
(c) 3NN (AUC = 0.9152)
(d) 5NN (AUC = 0.8746)
(e) 10NN (AUC = 0.7860)
(f) 15NN (AUC = 0.7378)
(g) SVM (AUC = 0.9688)
Among all examined classifiers, SVM achieved definitely best results. It achieved highest overall accuracy , whereas, for the second-best classifier, the logistic regression, . The SVM outperformed the logistic regression in classifying all four lesion types. It is to be stressed that the SVM turned out to be the most effective classifier in recognizing malignant melanoma, the most dangerous of all four lesions. Its true positive rate and area under the curve amounted to and , respectively. A little bit lower true negative rate for the SVM than for the decision tree is not a problem in the studied area. It indicates misclassification of Clark or Spitz nevi as malignant melanoma, and the cost of such a misdiagnosis is much, much lower than of classifying a malignant tumor as a benign one.
The achieved results are slightly better than most results of malignant-or-benign studies conducted so far. Our method allowed classifying malignant lesions with and , whereas for other similar studies TPR falls within the range 0.8–1.0 and TNR –0.5–0.95, respectively [66, 71].
A truly reliable diagnosis can be made only by a histopathological examination of a lesion. When in their studies Curley et al. asked three experienced dermatologists to classify lesions based only on the visual examination, those physicians identified correctly only half of cases. Therefore, the presented method of classification yields better results than those obtained during a medical examination.
This paper presents a computer-aided approach for the automatic classification of melanocytic lesions and accurate diagnosis of melanoma. In our research we evaluated our approach with four types of classifiers: -nearest neighbors algorithm, logistic regression, decision tree, and SVM. The developed system achieved 92% accuracy with SVM.
Our study gives an important contribution to the research area of skin lesion classification for several reasons. Firstly, it focuses on specifying the exact type of a skin lesion and not only on categorization of skin lesions as benign or malignant. Secondly, this work combines the results of research done so far related to all the steps needed for the development of an automatic diagnostic system for melanocytic lesion detection and classification. Finally, the refinement of current approaches and development of new techniques and methods will help to improve the ability to diagnose skin moles more precisely and to achieve the goal of the significant reduction in melanoma mortality rate.
4.1. Future Work
Starting from the present framework, further research efforts will be firstly addressed to compare and integrate the very promising approaches and corresponding feature descriptors reported in the most recent literature, in order to improve the classification accuracy of melanocytic lesions. We will also conduct a follow-up study by collecting more real data, especially melanoma cases, to further evaluate our approach. One of the major problems in the field of melanocytic skin tumors is the underdiagnosis of melanoma as a benign melanocytic or nonmelanocytic lesion. To decrease the amount of dermoscopic pitfalls, the number of melanocytic lesion types will be extended for a better evaluation of melanocytic lesion.
Conflict of Interests
The authors declare that there is no conflict of interests regarding the publication of this paper.
This scientific work was partly supported by the National Science Centre based on the Decision no. 2011/01/N/ST7/06783.
- Skin, September 2015, http://science.nationalgeographic.com/science/health-and-human-body/human-body/skin-article/.
- G. Argenziano and H. P. Soyer, Interactive Atlas of Dermoscopy. Book and CD/Web Resource, Edra Medical Publishing and New Media, Milan, Itlay, 2000.
- K. Korotkov and R. Garcia, “Computerized analysis of pigmented skin lesions: a review,” Artificial Intelligence in Medicine, vol. 56, no. 2, pp. 69–90, 2012.
- P. Soyer, G. Argenziano, R. Hofmann-Wellenhof, and R. H. Johr, Color Atlas of Melanocytic Lesions of the Skin, Springer, New York, NY, USA, 2007.
- Melanoma Foundation of New Zealand, About melanoma, key information, 2014, http://www.melanomanetwork.co.nz/About-Melanoma/Key-Information/.
- E. Stocketh, T. Rosen, and S. Shumack, Managing Skin Cancer, Springer, 2010.
- S. W. Menzies, L. Bischof, H. Talbot et al., “The performance of SolarScan: an automated dermoscopy image analysis instrument for the diagnosis of primary melanoma,” Archives of Dermatology, vol. 141, no. 11, pp. 1388–1396, 2005.
- M. Burroni, R. Corona, G. Dell'Eva et al., “Melanoma computer-aided diagnosis: reliability and feasibility study,” Clinical Cancer Research, vol. 10, no. 6, pp. 1881–1886, 2004.
- A. Masood and A. A. Al-Jumaily, “Computer aided diagnostic support system for skin cancer: a review of techniques and algorithms,” International Journal of Biomedical Imaging, vol. 2013, Article ID 323268, 22 pages, 2013.
- M. E. Celebi, W. V. Stoecker, and R. H. Moss, “Advances in skin cancer image analysis,” Computerized Medical Imaging and Graphics, vol. 35, no. 2, pp. 83–84, 2011.
- H. Zhou, M. Chen, R. Gass et al., “Feature-preserving artifact removal from dermoscopy images,” in Medical Imaging: Image Processing, vol. 6914 of Proceedings of SPIE, pp. 1–9, San Diego, Calif, USA, February 2008.
- P. Wighton, T. K. Lee, and M. S. Atkins, “Dermascopic hair disocclusion using inpainting,” in Medical Imaging: Image Processing, vol. 6914 of Proceedings of SPIE, pp. 1–8, San Diego, Calif, USA, February 2008.
- Q. Abbas, I. F. Garcia, M. Emre Celebi, and W. Ahmad, “A feature-preserving hair removal algorithm for dermoscopy images,” Skin Research and Technology, vol. 19, no. 1, pp. e27–e36, 2013.
- J. Jaworek-Korjakowska, “Novel method for border irregularity assessment in dermoscopic color images,” Computational and Mathematical Methods in Medicine, vol. 2015, Article ID 496202, 11 pages, 2015.
- J. Jaworek-Korjakowska and R. Tadeusiewicz, “Hair removal from dermoscopic color images,” Bio-Algorithms and Med-Systems, vol. 9, no. 2, pp. 53–58, 2013.
- M. E. Celebi, H. Iyatomi, G. Schaefer, and W. V. Stoecker, “Lesion border detection in dermoscopy images,” Computerized Medical Imaging and Graphics, vol. 33, no. 2, pp. 148–153, 2009.
- J. Jaworek-Korjakowska, Analiza i detekcja struktur lokalnych w czerniaku złośliwym [Autoreferat Rozprawy Doktorskiej], AGH University of Science and Technology, Kraków, Poland, 2013.
- E. Zagrouba and W. Barhoumi, “A prelimary approach for the automated recognition of malignant melanoma,” Image Analysis & Stereology, vol. 23, no. 2, pp. 121–135, 2004.
- D. Ballardand and C. Brown, Computer Vision, Prentice Hall Professional Technical Reference, 1st edition, 1982.
- R. M. Haralick, “A measure for circularity of digital figures,” IEEE Transactions on Systems, Man, and Cybernetics, vol. 4, no. 4, pp. 394–396, 1974.
- R. S. Montero and E. Bribiesca, “State of the art of compactness and circularity measures,” International Mathematical Forum, vol. 4, no. 27, pp. 1305–1335, 2009.
- J. Śmietański, R. Tadeusiewicz, and E. Łuczyńska, “Texture analysis in perfusion images of prostate cancer—a case study,” International Journal of Applied Mathematics and Computer Science, vol. 20, no. 1, pp. 149–156, 2010.
- J. W. Choi, Y. W. Park, S. Y. Byun, and S. W. Youn, “Differentiation of benign pigmented skin lesions with the aid of computer image analysis: a novel approach,” Annals of Dermatology, vol. 25, no. 3, pp. 340–347, 2013.
- M. E. Celebi, H. A. Kingravi, B. Uddin et al., “A methodological approach to the classification of dermoscopy images,” Computerized Medical Imaging and Graphics, vol. 31, no. 6, pp. 362–373, 2007.
- C. Manning, P. Raghavan, and H. Schütze, Introduction to Information Retrieval, Cambridge University Press, 2008.
- J. Shawe-Taylor and N. Cristianini, Kernel Methods for Pattern Analysis, Cambridge University Press, Cambridge, UK, 2004.
- L. Kaufman and P. Rousseeuw, Finding Groups in Data: An Introduction to Cluster Analysis, Wiley, Hoboken, NJ, USA, 1990.
- R. M. Haralick, K. Shanmugam, and I. Dinstein, “Textural features for image classification,” IEEE Transactions on Systems, Man and Cybernetics, vol. 3, no. 6, pp. 610–621, 1973.
- M. M. Galloway, “Texture analysis using gray level run lengths,” Computer Graphics and Image Processing, vol. 4, no. 2, pp. 172–179, 1975.
- A. Chu, C. M. Sehgal, and J. F. Greenleaf, “Use of gray value distribution of run lengths for texture analysis,” Pattern Recognition Letters, vol. 11, no. 6, pp. 415–419, 1990.
- B. V. Dasarathy and E. B. Holder, “Image characterizations based on joint gray level-run length distributions,” Pattern Recognition Letters, vol. 12, no. 8, pp. 497–502, 1991.
- H. Ganster, A. Pinz, R. Röhrer, E. Wildling, M. Binder, and H. Kittler, “Automated melanoma recognition,” IEEE Transactions on Medical Imaging, vol. 20, no. 3, pp. 233–239, 2001.
- M. D'Amico, M. Ferri, and I. Stanganelli, “Qualitative asymmetry measure for melanoma detection,” in Proceedings of the IEEE International Symposium on Biomedical Imaging: Nano to Macro, vol. 2, pp. 1155–1158, Arlington, Va, USA, April 2004.
- W. V. Stoecker, W. W. Li, and R. H. Moss, “Automatic detection of asymmetry in skin tumors,” Computerized Medical Imaging and Graphics, vol. 16, no. 3, pp. 191–197, 1992.
- U. Fayyad and K. Irani, “Multi-interval discretization of continuous-valued attributes for classification learning,” in Proceedings of the 13th International Joint Conference on Articial Intelligence, vol. 2, pp. 1022–1029, Morgan Kaufmann, 1993.
- S. Aksoy and R. M. Haralick, “Feature normalization and likelihood-based similarity measures for image retrieval,” Pattern Recognition Letters, vol. 22, no. 5, pp. 563–582, 2001.
- V. Ng and D. Cheung, “Measuring asymmetries of skin lesions,” in Proceedings of IEEE International Conference on Systems, Man, and Cybernetics, vol. 5, pp. 4211–4216, IEEE Press, Orlando, Fla, USA, October 1997.
- Z. She, Y. Liu, and A. Damatoa, “Combination of features from skin pattern and ABCD analysis for lesion classification,” Skin Research and Technology, vol. 13, no. 1, pp. 25–33, 2007.
- B. Kusumoputro and A. Ariyanto, “Neural network diagnosis of malignant skin cancers using principal component analysis as a preprocessor,” in Proceedings of the IEEE International Joint Conference on Neural Networks and the IEEE World Congress on Computational Intelligence, vol. 1, pp. 310–315, IEEE Press, Anchorage, Alaska, USA, May 1998.
- E. Claridge, P. N. Hall, M. Keefe, and J. P. Allen, “Shape analysis for classification of malignant melanoma,” Journal of Biomedical Engineering, vol. 14, no. 3, pp. 229–234, 1992.
- Y. Cheng, R. Swamisai, S. E. Umbaugh et al., “Skin lesion classification using relative color features,” Skin Research and Technology, vol. 14, no. 1, pp. 53–64, 2008.
- K. Cheung, Image processing for skin cancer detection: malignant melanoma recognition [Ph.D. thesis], University of Toronto, 1997.
- T. K. Lee, D. I. McLean, and M. S. Atkins, “Irregularity index: a new border irregularity measure for cutaneous melanocytic lesions,” Medical Image Analysis, vol. 7, no. 1, pp. 47–64, 2003.
- T. K. Lee and E. Claridge, “Predictive power of irregular border shapes for malignant melanomas,” Skin Research and Technology, vol. 11, no. 1, pp. 1–8, 2005.
- Y. Chang, R. J. Stanley, R. H. Moss, and W. Van Stoecker, “A systematic heuristic approach for feature selection for melanoma discrimination using clinical images,” Skin Research and Technology, vol. 11, no. 3, pp. 165–178, 2005.
- A. J. Round, A. W. G. Duller, and P. J. Fish, “Lesion classification using skin patterning,” Skin Research and Technology, vol. 6, no. 4, pp. 183–192, 2000.
- Z. She and P. Fish, “Analysis of skin line pattern for lesion classification,” Skin Research and Technology, vol. 9, no. 1, pp. 73–80, 2003.
- R. P. Walvick, K. Patel, S. V. Patwardhan, and A. P. Dhawan, “Classification of melanoma using wavelet-transform-based optimal feature set,” in Proceedings of the Medical Imaging: Image Processing, vol. 5370 of Proceedings of SPIE, pp. 944–951, May 2004.
- W. V. Stoecker, C.-S. Chiang, and R. H. Moss, “Texture in skin images: comparison of three methods to determine smoothness,” Computerized Medical Imaging and Graphics, vol. 16, no. 3, pp. 179–190, 1992.
- S. V. Deshabhoina, S. E. Umbaugh, W. V. Stoecker, R. H. Moss, and S. K. Srinivasan, “Melanoma and seborrheic keratosis differentiation using texture features,” Skin Research and Technology, vol. 9, no. 4, pp. 348–356, 2003.
- G. M. Weiss, “Mining with rarity: a unifying framework,” ACM SIGKDD Explorations Newsletter, vol. 6, no. 1, pp. 7–19, 2004.
- N. V. Chawla, K. W. Bowyer, L. O. Hall, and W. P. Kegelmeyer, “SMOTE: synthetic minority over-sampling technique,” Journal of Artificial Intelligence Research, vol. 16, pp. 321–357, 2002.
- H. Liu and L. Yu, “Toward integrating feature selection algorithms for classification and clustering,” IEEE Transactions on Knowledge and Data Engineering, vol. 17, no. 4, pp. 491–502, 2005.
- I. T. Jolliffe, Principal Component Analysis, Springer, New York, NY, USA, 1986.
- I. Kononenko and E. Šimec, “Induction of decision trees using RELIEFF,” in Proceedings of the ISSEK94 Workshop on Mathematical and Statistical Methods in Artificial Intelligence, vol. 363 of International Centre for Mechanical Sciences, pp. 199–220, Springer, Vienna, Austria, 1995.
- R. Battiti, “Using mutual information for selecting features in supervised neural net learning,” IEEE Transactions on Neural Networks, vol. 5, no. 4, pp. 537–550, 1994.
- M. A. Hall, “Correlation-based feature selection for discrete and numeric class machine learning,” in Proceedings of the 17th International Conference on Machine Learning (ICML '00), pp. 359–366, Morgan Kaufmann, 2000.
- E. E. Ghiselli, Theory of Psychological Measurement, McGraw-Hill, New York, NY, USA, 1964.
- I. H. Witten and E. Frank, Data Mining: Practical Machine Learning Tools and Techniques, Morgan Kaufmann, San Francisco, Calif, USA, 2005.
- S. Dreiseitl, L. Ohno-Machado, H. Kittler, S. Vinterbo, H. Billhardt, and M. Binder, “A comparison of machine learning methods for the diagnosis of pigmented skin lesions,” Journal of Biomedical Informatics, vol. 34, no. 1, pp. 28–36, 2001.
- A. Glowacz, A. Glowacz, and P. Korohoda, “Recognition of monochrome thermal images of synchronous motor with the application of binarization and nearest mean classifier,” Archives of Metallurgy and Materials, vol. 59, no. 1, pp. 31–34, 2014.
- R. Tadeusiewicz, How Intelligent Should be System for Image Analysis?vol. 339 of Studies in Computational Intelligence, Springer, Berlin, Germany, 2011.
- L. Jost, “Entropy and diversity,” Oikos, vol. 113, no. 2, pp. 363–375, 2006.
- K.-B. Duan and S. S. Keerthi, “Which is the best multiclass SVM method? An empirical study,” in Multiple Classifier Systems: 6th International Workshop, MCS 2005, Seaside, CA, USA, June 13–15, 2005. Proceedings, vol. 3541 of Lecture Notes in Computer Science, pp. 278–285, Springer, Berlin, Germany, 2005.
- C. Hsu and C. Lin, “A comparison of methods for multi-class support vector machines,” IEEE Transactions on Neural Networks, vol. 13, no. 2, pp. 415–425, 2002.
- A. A. Safi, Towards computer-aided diagnosis of pigmented skin lesionson [Ph.D. thesis], Technische Universität München, 2012.
- C.-W. Hsu, C.-C. Chang, and C.-J. Lin, “A practical guide to support vector classification,” Tech. Rep., National Taiwan University, 2003, http://www.csie.ntu.edu.tw/~cjlin/papers/guide/guide.pdf.
- A. M. Molinaro, R. Simon, and R. M. Pfeiffer, “Prediction error estimation: a comparison of resampling methods,” Bioinformatics, vol. 21, no. 15, pp. 3301–3307, 2005.
- R. Bouckaert, “Choosing between two learning algorithms based on calibrated tests,” in Proceedings of the 20th International Conference on Machine Learning (ICML '03), T. Fawcett and N. Mishra, Eds., pp. 51–58, AAAI Press, Washington, DC, USA, 2003.
- P. Flach, Machine Learning: The Art and Science of Algorithms That Make Sense of Data, Cambridge University Press, New York, NY, USA, 2012.
- P. Rubegni, G. Cevenini, M. Burroni et al., “Automated diagnosis of pigmented skin lesions,” International Journal of Cancer, vol. 101, no. 6, pp. 576–580, 2002.
Copyright © 2016 Joanna Jaworek-Korjakowska and Paweł Kłeczek. This is an open access article distributed under the Creative Commons Attribution License, which permits unrestricted use, distribution, and reproduction in any medium, provided the original work is properly cited.