Full text
Citation: Vélez, P.; Miranda, M.; Serrano, C.; Acha, B. Does a Previous Segmentation Improve the Automatic Detection of Basal Cell Carcinoma Using Deep Neural Networks? Appl. Sci. 2022,12, 2092. https://doi.org/10.3390/ app12042092 Academic Editors: Alessandro Stefano, Albert Comelli and Federica Vernuccio Received: 31 December 2021 Accepted: 15 February 2022 Published: 17 February 2022 Publisher’s Note: MDPI stays neutral with regard to jurisdictional claims in published maps and institutional affiliations. Copyright: © 2022 by the authors. Licensee MDPI, Basel, Switzerland. This article is an open access article distributed under the terms and conditions of the Creative Commons Attribution (CC BY) license (https:// creativecommons.org/licenses/by/ 4.0/). applied sciences Article Does a Previous Segmentation Improve the Automatic Detection of Basal Cell Carcinoma Using Deep Neural Networks? Paulina Vélez *, Manuel Miranda, Carmen Serrano and Begoña Acha Signal Theory and Communications Department, Universidad de Sevilla, E41092 Seville, Spain; [email protected] (M.M.); [email protected] (C.S.); [email protected] (B.A.) *Correspondence: [email protected] Abstract: Basal Cell Carcinoma (BCC) is the most frequent skin cancer and its increasing incidence is producing a high overload in dermatology services. In this sense, it is convenient to aid physicians in detecting it soon. Thus, in this paper, we propose a tool for the detection of BCC to provide a prioritization in the teledermatology consultation. Firstly, we analyze if a previous segmentation of the lesion improves the ulterior classification of the lesion. Secondly, we analyze three deep neural networks and ensemble architectures to distinguish between BCC and nevus, and BCC and other skin lesions. The best segmentation results are obtained with a SegNet deep neural network. A 98% accuracy for distinguishing BCC from nevus and a 95% accuracy classifying BCC vs. all lesions have been obtained. The proposed algorithm outperforms the winner of the challenge ISIC 2019 in almost all the metrics. Finally, we can conclude that when deep neural networks are used to classify, a previous segmentation of the lesion does not improve the classification results. Likewise, the ensemble of different neural network configurations improves the classification performance compared with individual neural network classifiers. Regarding the segmentation step, supervised deep learning-based methods outperform unsupervised ones. Keywords: Basal Cell Carcinoma; deep learning; convolutional neural network; skin lesion; segmentation; classification 1. Introduction Skin cancer is the most common cancer in the United States and worldwide [ 1 ]. Although the majority of the works in the literature are focused on melanoma detection, the most common malign skin lesion is the non-melanoma skin cancer (NMSC). Over 95% of NMSC cases are Basal Cell Carcinoma (BCC) and cutaneous squamous cell carcinoma (SCC) [ 2 ]. Specifically, BCC has an incidence higher than 70% [ 3 ] among all skin cancer, it has the best validated clinical criteria for its diagnosis [ 4 ], and it presents the higher variability in the presence of these dermoscopic criteria. The detection of NMSC can be performed by visual inspection by a skilled dermatologist, but there are many benign lesions that can be confused with NMSC, leading to unnecessary biopsies, in a proportion of five biopsies versus one actual cancer case [5]. The increase in the incidence of BCC is provoking an overload for dermatologists. In the Andalusian Health System, teledermatology is being implanted. Nowadays, 315 demands of teledermatology consultation per month are received and 210 receive diagnostic criteria of BCC. Thus, a Computer Aided Diagnosis (CAD) tool that assists general practitioner physicians and provides a prioritization in the teledermatology consultation would have great utility. Different kinds of images have been traditionally used in order to classify NMSC automatically (spectroscopy, optical coherence tomography, etc.). However, the simplest Appl. Sci. 2022,12, 2092. https://doi.org/10.3390/app12042092 https://www.mdpi.com/journal/applsci
Appl. Sci. 2022,12, 2092 2 of 16 one and most used is the digital dermoscopy, that is, a digital color photograph, enhanced by a dermoscope. Lately, and due to the availability of databases due to the challenges proposed by ISIC [ 6 ], the use of artificial intelligence methods, and in particular, the use of deep learning neural networks, have become very popular in dermatology. In this sense, this paper is focused on machine learning algorithms, in particular, deep learning ones, and using dermatoscopic images from ISIC challenges [6]. Most of the works published have been focused on melanoma segmentation and classification [ 7 , 8 ]. On the contrary, much less work has been devoted to NMSC detection. Marka et al. performed a systematic analysis of existing methods for automatic detection of NMSC in 2019. They came to the conclusion that, although most of the methods attain an accuracy similar to the reported diagnostic accuracy of a dermatologist, all the methods require a clinical study to assess the validity of the methods in a real clinical scenario [ 9 ]. There are three methods that attain the best classification metrics according to this study. Wahba et al., in 2017, reached 100% in all the metrics but the test set was only 10 images [ 10 ]. The same authors, in 2018, tested their methods with an extended database, obtaining the same results [ 11 ]. Møllersen et al. also achieved 100% sensitivity, but their specificity was 12% [ 12 ]. Sarkar et al. applied deep neural networks to differentiate between BCC, SCC and benign lesions. They achieved an AUROC score of 0.997, 1 and 0.998, respectively [ 13 ]. Pangti et al. analyzed the performance of a deep learning-based application for the diagnosis of BCC, as compared to dermatologist and non-dermatologist physicians [14]. In Han et al., 12 skin diseases were classified, employing a deep learning algorithm. They used three databases and concluded that the tested algorithm performance is comparable to that obtained by 16 dermatologists. One of these skin diseases is BCC [ 15 ]. Following this comparison, Carcagni et al. [ 16 ] and Zhou et al. [ 17 ] also proposed methods based on deep learning to perform a multiclassification of skin diseases. Carcagni et al. proposed an ensemble approach and compared it with the original Densenet-121, obtaining a better performance. Sies et al. [ 18 ] tested two market-approved tools, one employed a Machine Learning (ML) technique and one is based on Convolutional Neural Networks (CNN). Although they tested 1981 skin lesions, only 28 lesions were BCC. The ML algorithm detected only 5 in 28 BCC lesions, whereas the CNN-based algorithm detected 27 in 28 [ 18 ]. Dorj et al. use a pre-trained AlexNet convolutional network to extract the features that feed an SVM classifier, in order to classify among four kinds of cancers, including BCC [19]. Recent advances in the field of histopathological and microscopic image analysis, dedicated to the BCC detection, can be found at [ 20 – 22 ], where the authors use deep learning techniques to detect, classify and identify its patterns. However, our approach covers BCC classification, focusing on distinguishing BCC from Nevus, and employing dermoscopic images. From a clinical point of view, it is very interesting to differentiate BCC from nevus, because both represent the most frequent skin lesions appearing at primary health centers, and a good detection of these types of lesions could lead to a more efficient clinical management, performing a first prioritization of the images that arrive from the Primary Health Center by teledermatology. The main contribution of the paper is that it performs a thorough analysis of deep learning techniques, applied to BCC segmentation and classification. In addition, to the best of our knowledge, there are no previous works that evaluate the influence of a previous segmentation in the classification of skin lesions with a deep neural network. 2. Materials and Methods In order to segment and classify the lesion, several experiments have been conducted that try to evaluate how important the segmentation is for an ulterior classification. A comparison between deep learning methods and classical segmentation algorithms is presented .
Appl. Sci. 2022,12, 2092 3 of 16 Regarding the classification task, different deep learning architectures in the following two different classification scenarios are tested: BCC vs. Nevus, BCC vs. All lesions. 2.1. Lesion Segmentation Skin lesion segmentation becomes a challenging task due to the presence of hair, bubbles, different illumination conditions, blurry boundaries, blood vessels, scars or different skin colors, thus, the segmentation step turns into a very delicate and complex process. Over the years, many techniques that successfully overcome the segmentation challenges have been developed. Unsupervised segmentation methods, such as thresholding, edge-based, region-based or energy minimization-based ones, and supervised methods, such as support vector machines (SVM), Bayes-based, or deep learning-based segmentation methods (DLBSM) have been successfully tested over any kind of images [23,24]. Lately, regarding dermoscopic images, many works have been focused on deep learning-based methodologies [ 25 ]. This kind of segmentation technique combines lowlevel feature information with high-level semantic information [ 26 ] and takes the advantage of its learning capacities, focusing on its learning properties to identify structures that allow us to segment the image. DLBSM allow us to segment images with low contrast, different intensity distribution or images with artifacts [27]. In this paper, we compare unsupervised with supervised segmentation techniques. In fact, we compare the performance of one unsupervised method based on energy minimization, and two segmentation methods based on deep learning. More specifically, the two supervised methods consist of the following: (1) A CNN as feature extractor combined with a classic segmentation method (thresholding), and (2) Semantic neural network (SegNet). These three methods were tested over ISIC-2017 database [28]. 2.1.1. Unsupervised Method: Energy Minimization Based Algorithm Unsupervised methods do not require a labelled training dataset. One of the main advantages they have is the low computational cost [ 29 ]. Another one is that they do not need a large database as no training is performed. In contrast, its performance could not be robust for low quality images, or some interaction with the user is needed to achieve a good performance. There are many state-of-the-art unsupervised algorithms in the literature and some of them have been explored in this paper (edge-based active contour, region-based active contours, segmentation based on convex optimization). However, for the final analysis an energy minimization method was chosen because it is less dependent on the parameter setting. In this kind of algorithm, an energy measure, which includes region and boundary information, is minimized to solve the segmentation problem. Over recent years, energy minimization algorithms based on convex relaxation have been developed [ 29 , 30 ]. This paper presents an algorithm using convex relaxation based on a previous work by the authors [ 31 , 32 ]. The original idea was proposed by Papadakis and Rabin [ 33 ]. It consists of posing the problem of segmentation as a problem of minimization of a convex energy function. In this energy function, the distance between the histograms of each region within the image and histogram models is minimized. Two histogram models were defined for each dermoscopic image, one for the foreground (the lesion) and the other for the background (the skin). To generate these two histogram models, the algorithm requires a manual selection of a partial part of each region (Figure 1).
Appl. Sci. 2022,12, 2092 4 of 16 Appl. Sci. 2022, 12, x FOR PEER REVIEW 4 of 16 (a) (b) (c) Figure 1. Selected areas of dermoscopic images for calculating the histograms. (a) Original image; (b) Selected region inside the lesion; (c) Selected region in the healthy skin. 2.1.2. Supervised Methods Supervised methods need a training data set in order to fix the parameters of the classifier. Some of these segmentation methods are based on SVMs, Bayes classifier, decision trees (DTs) or artificial neural networks (ANN) [34]. As supervised algorithms, two different methods were chosen. The first method has been chosen because it segments by employing the information provided by the deep features of a CNN. This fact has the advantage that a small training database is required and even a pre-trained CNN may be utilized. The second supervised segmentation is a fully convolutional neural network, which has been demonstrated to be effective in medical image segmentation. More specifically, SegNet has been chosen because it is state of the art in the field. Segmentation from Feature Images of a CNN A CNN possesses convolutional layers that provide a wide information about global and local features of an image. Hence, the deepest convolutional layers contain information of the global, abstract and conceptual features, whereas the lower convolutional layers give information about the local structure, which is relevant for the segmentation process [35]. Likewise, convolutional layers can be used to obtain the image features [36]. We used a VGG-16 pre-trained with ImageNet database. A set of images from the fourth convolutional layer of VGG-16 network was extracted. These images were normalized and filtered by applying a Gaussian filter with standard deviation equal to 2, before being added. Finally, a threshold using Otsu’s method and morphological operations (dilation and hole filling) was applied to obtain the final segmentation result. A scheme of this segmentation algorithm is presented in Figure 2. Figure 1. Selected areas of dermoscopic images for calculating the histograms. ( a ) Original image; (b) Selected region inside the lesion; (c) Selected region in the healthy skin. 2.1.2. Supervised Methods Supervised methods need a training data set in order to fix the parameters of the classifier. Some of these segmentation methods are based on SVMs, Bayes classifier, decision trees (DTs) or artificial neural networks (ANN) [34]. As supervised algorithms, two different methods were chosen. The first method has been chosen because it segments by employing the information provided by the deep features of a CNN. This fact has the advantage that a small training database is required and even a pre-trained CNN may be utilized. The second supervised segmentation is a fully convolutional neural network, which has been demonstrated to be effective in medical image segmentation. More specifically, SegNet has been chosen because it is state of the art in the field. Segmentation from Feature Images of a CNN A CNN possesses convolutional layers that provide a wide information about global and local features of an image. Hence, the deepest convolutional layers contain information of the global, abstract and conceptual features, whereas the lower convolutional layers give information about the local structure, which is relevant for the segmentation process [ 35 ]. Likewise, convolutional layers can be used to obtain the image features [36]. We used a VGG-16 pre-trained with ImageNet database. A set of images from the fourth convolutional layer of VGG-16 network was extracted. These images were normalized and filtered by applying a Gaussian filter with standard deviation equal to 2, before being added. Finally, a threshold using Otsu’s method and morphological operations (dilation and hole filling) was applied to obtain the final segmentation result. A scheme of this segmentation algorithm is presented in Figure 2. Semantic Segmentation with SegNet Deep Neural Network Semantic Segmentation allows us to identify an object in an image by classifying each pixel into a labeled class, which is called pixel-wise labeling. As is described by Badrinarayanan et al. [ 37 ], SegNet is a Fully Convolutional Network (FCN) architecture whose encoder is topologically similar to the convolutional layers from VGG-16, but without its fully connected layers. The convolutions are performed with a filter bank. The last layer of the decoder works as a soft-max classifier, which allows us to obtain the predicted segmentation labels for each pixel as output, where each label is associated with an existing class. SegNet admits as input a map of features or an image.
Appl. Sci. 2022,12, 2092 5 of 16 Appl. Sci. 2022, 12, x FOR PEER REVIEW 5 of 16 Figure 2. Scheme of this segmentation algorithm from feature images of a CNN. Semantic Segmentation with SegNet Deep Neural Network Semantic Segmentation allows us to identify an object in an image by classifying each pixel into a labeled class, which is called pixel-wise labeling. As is described by Badrinarayanan et al. [37], SegNet is a Fully Convolutional Network (FCN) architecture whose encoder is topologically similar to the convolutional layers from VGG-16, but without its fully connected layers. The convolutions are performed with a filter bank. The last layer of the decoder works as a soft-max classifier, which allows us to obtain the predicted segmentation labels for each pixel as output, where each label is associated with an existing class. SegNet admits as input a map of features or an image. 2.2. Lesion Classification The classification part of the paper will try to differentiate between different types of skin lesions, being the motivation of the paper, the detection of BCC. We present the following two types of classifications: 1. BCC vs. Nevus; 2. BCC vs. All, where the term “All” groups the following skin lesions: nevus, benign keratosis, dermatofibroma, melanoma, SCC, actinic keratosis and vascular lesion. From a clinical point of view, it is very interesting to differentiate BCC from nevus, because both represent the most frequent skin lesions appearing at primary health centers, and a good detection of these types of lesions could lead to a more efficient clinical management. In the two classification experiments, we have tested how the introduction of previously segmented images could affect the classification. A wide number of experiments are conducted in order to check which configuration could be better to solve this difficult problem. To this purpose several classification approaches have been proposed, as follows: 1. The use of a VGG-16 neural network. VGG-16 consists of 16 convolutional layers and is very appealing because of its very uniform architecture [38]. Figure 2. Scheme of this segmentation algorithm from feature images of a CNN. 2.2. Lesion Classification The classification part of the paper will try to differentiate between different types of skin lesions, being the motivation of the paper, the detection of BCC. We present the following two types of classifications: 1. BCC vs. Nevus; 2. BCC vs. All, where the term “All” groups the following skin lesions: nevus, benign keratosis, dermatofibroma, melanoma, SCC, actinic keratosis and vascular lesion. From a clinical point of view, it is very interesting to differentiate BCC from nevus, because both represent the most frequent skin lesions appearing at primary health centers, and a good detection of these types of lesions could lead to a more efficient clinical management . In the two classification experiments, we have tested how the introduction of previously segmented images could affect the classification. A wide number of experiments are conducted in order to check which configuration could be better to solve this difficult problem. To this purpose several classification approaches have been proposed, as follows: 1. The use of a VGG-16 neural network. VGG-16 consists of 16 convolutional layers and is very appealing because of its very uniform architecture [38]. 2. The use of a ResNet50 neural network. It is a convolutional neural network with 50 layers. It is a type of Residual Network and it first introduced the concept of skip connection [39]. 3. The use of an InceptionV3 neural network. InceptionV3 is another type of CNN developed by Google. It is 48 layers deep [40]. 4. The use of an ensemble of the three neural networks using the maximum argument. The ArgMax ensemble calculates, for each image, the probability of each class from each neural network, and it selects as the output class the one with highest probability among all the neural networks. 5. The use of an ensemble of the three neural networks using the mean. In this case the average of the three probabilities for each class belonging to each neural network is calculated. The output class selected is the one with the maximum average value.
Appl. Sci. 2022,12, 2092 6 of 16 In Figure 3, the ArgMax ensemble configuration is shown. After training the three DNNs mentioned above, a vector with the probabilities belonging to each class for each DNN is obtained (V i ,i= 1,2,3). Each in this vector has dimension m × 1, where mis the number of classes. Finally, a new vector is formed V= [V 1 ,V 2 ,V 3 ] of dimensions 3m × 1. The class with the highest probability, denoted by n, is chosen as the predicted class of the lesion. 1 Figure 3. ArgMax ensemble configuration for the skin lesion classification. 3. Results 3.1. Segmentation Results 3.1.1. Database To perform the comparison among the different segmentation algorithms, the ISIC 2017 database has been used [ 6 , 26 ]. This database provides 2000 images for training and 600 images for testing, with their corresponding ground truth masks. The ISIC 2018 database for the task “Lesion segmentation” does not provide the ground truth masks for the test set, that is why ISIC 2017 database has been chosen for the part of segmentation. The ISIC 2019 challenge [6] does not include a “Lesion segmentation” task. For the segmentation algorithms based on convolutional neural networks, a data augmentation process was applied. The data augmentation step consists of random rotations between − 30 and 30 degrees; random translations on axes x and y within −10 and 10 interval; random horizontal and vertical reflections; scaling with a random scale factor between 0.9 and 1.1. Finally, all images were randomly sheared in horizontal and vertical angles, specified between 0 and 45 degrees. All these operations picked their random values from a continuous uniform distribution. After data augmentation, the number of training images was 18,000. 3.1.2. Implementation Details The three methodologies were implemented on a system with an Intel Core I9-3.6 GHz processor, 32 GB of RAM, and NVIDIA TITAN RTX card. The SegNet neural network was pre-initialized with layers and weights from a VGG-16 pretrained network, with an ImageNet database from the ImageNet Large Scale Visual Recognition Challenge (ILSVRC). The stochastic gradient descent with momentum (SGDM) optimizer was applied and the training parameters were set as follows: momentum of 0.9, mini-batch size of 5, initial learning rate of 0.001, and weight decay (L2Regularization) of 0.005. The model was trained for 200 epochs. 3.1.3. Results In Figure 4, the results applying the three segmentation methods for four example images are shown.
Appl. Sci. 2022,12, 2092 7 of 16 Appl. Sci. 2022, 12, x FOR PEER REVIEW 7 of 16 Recognition Challenge (ILSVRC). The stochastic gradient descent with momentum (SGDM) optimizer was applied and the training parameters were set as follows: momentum of 0.9, mini-batch size of 5, initial learning rate of 0.001, and weight decay (L2Regu- larization) of 0.005. The model was trained for 200 epochs. 3.1.3. Results In Figure 4, the results applying the three segmentation methods for four example images are shown. Table 1 presents the performance parameters for each method, as follows: Dice coefficient (DICE), Jaccard index (JACC), Sensitivity (Se), Specificity (Sp) and Accuracy (Acc). This table presents the results of applying the three methods to the test set of the database, ISIC 2017 (600 images). The best performance is achieved by the SegNet neural network in four out of five parameters. (a) (b) Appl. Sci. 2022, 12, x FOR PEER REVIEW 8 of 16 (c) (d) Figure 4. Segmented Images. For images (a–d): first row shows the original image with its ground truth mask and its corresponding segmentation result; second row shows the results of applying semantic segmentation with SegNet; third row shows the result of energy minimization algorithm via convex optimization; fourth row shows the result of segmentation based on VGG16 feature images. Table 1. Segmentation results of the tested methods over the Test set (600 images). Numbers represent the average values of the different segmentation performance parameters calculated over the 600 test images. Methodology DICE JACC Se Sp ACC SegNet 0.8548 0.7730 0.8533 0.9632 0.9357 Energy minimization 0.5937 0.4927 0.6020 0.9131 0.8647 Feature images from VGG16 0.5853 0.4700 0.8627 0.8690 0.8170 Beyond the evaluation parameters, it is relevant to discuss the advantages and drawbacks of each methodology. Although the SegNet neural network obtains the highest performance, the accuracy obtained by the energy minimization algorithm is acceptable, taking into account the resources needed. Nevertheless, SegNet requires a high computational effort for the training but, once the training process has been done, the computational cost of the segmentation process is comparable to the cost required by the other two methods. On the other hand, semantic segmentation via SegNet is an automatic process, which allows us to obtain the segmented lesion without human supervision, as well as the segmentation based on feature images from VGG16. In contrast, energy minimization segmentation requires human intervention, slowing down the segmentation process or making it difficult to use, in the case of large databases. In Table 2, a comparison with other methods published in the literature is presented. This table shows that the segmentation with SegNet attains competitive results. This justifies that this technique can be chosen as a good segmentation method, in order to evaluate the convenience of including a segmentation step before the classification of the lesions. Figure 4. Segmented Images. For images ( a – d ): first row shows the original image with its ground truth mask and its corresponding segmentation result; second row shows the results of applying semantic segmentation with SegNet; third row shows the result of energy minimization algorithm via convex optimization; fourth row shows the result of segmentation based on VGG16 feature images. Table 1presents the performance parameters for each method, as follows: Dice coefficient (DICE), Jaccard index (JACC), Sensitivity (Se), Specificity (Sp) and Accuracy (Acc). This table presents the results of applying the three methods to the test set of the database, ISIC 2017 (600 images). The best performance is achieved by the SegNet neural network in four out of five parameters.
Appl. Sci. 2022,12, 2092 8 of 16 Table 1. Segmentation results of the tested methods over the Test set (600 images). Numbers represent the average values of the different segmentation performance parameters calculated over the 600 test images. Methodology DICE JACC Se Sp ACC SegNet 0.8548 0.7730 0.8533 0.9632 0.9357 Energy minimization 0.5937 0.4927 0.6020 0.9131 0.8647 Feature images from VGG16 0.5853 0.4700 0.8627 0.8690 0.8170 Beyond the evaluation parameters, it is relevant to discuss the advantages and drawbacks of each methodology. Although the SegNet neural network obtains the highest performance, the accuracy obtained by the energy minimization algorithm is acceptable, taking into account the resources needed. Nevertheless, SegNet requires a high computational effort for the training but, once the training process has been done, the computational cost of the segmentation process is comparable to the cost required by the other two methods. On the other hand, semantic segmentation via SegNet is an automatic process, which allows us to obtain the segmented lesion without human supervision, as well as the segmentation based on feature images from VGG16. In contrast, energy minimization segmentation requires human intervention, slowing down the segmentation process or making it difficult to use, in the case of large databases. In Table 2, a comparison with other methods published in the literature is presented. This table shows that the segmentation with SegNet attains competitive results. This justifies that this technique can be chosen as a good segmentation method, in order to evaluate the convenience of including a segmentation step before the classification of the lesions. Table 2. Segmentation results of benchmark methods over the Test set (600 images). The results obtained with the SegNet neural network have also been included to facilitate the comparison. Ref. Methodology DICE JACC Se Sp ACC [41]FCDN- First Place at Challenge ISBI-2017 0.8490 0.7650 0.8250 0.9750 0.9340 [27]Separable-UNet model with stochastic weight averaging scheme 0.8693 0.7926 0.8953 0.9632 0.9431 [42] LinkNet152 model 0.8530 0.7700 −−− [43] GAN-based model 0.9063 0.8198 0.8781 0.9992 0.9761 [26] Deep class-specific learning 0.8566 0.7773 0.8620 0.9671 0.9408 SegNet 0.8548 0.7730 0.8533 0.9632 0.9357 3.2. Classification Results 3.2.1. Database For the classification step, the ISIC-2019 database has been used [ 44 , 45 ], which contains 25,331 dermoscopic images. This database consists of the following lesions: actinic keratosis (867 images), Basal Cell Carcinoma (3323 images), benign keratosis (2624 images), dermatofibroma (239 images), melanoma (4522 images), nevus (12,875 images), squamous cell carcinoma (628 images), and vascular lesion (253 images). An example of these dermoscopic images is shown in Figure 5.
Appl. Sci. 2022,12, 2092 9 of 16 Appl. Sci. 2022, 12, x FOR PEER REVIEW 9 of 16 Table 2. Segmentation results of benchmark methods over the Test set (600 images). The results obtained with the SegNet neural network have also been included to facilitate the comparison. Ref. Methodology DICE JACC Se Sp ACC [41] FCDN- First Place at Challenge ISBI-2017 0.8490 0.7650 0.8250 0.9750 0.9340 [27] Separable-UNet model with stochastic weight averaging scheme 0.8693 0.7926 0.8953 0.9632 0.9431 [42] LinkNet152 model 0.8530 0.7700 − − − [43] GAN-based model 0.9063 0.8198 0.8781 0.9992 0.9761 [26] Deep class-specific learning 0.8566 0.7773 0.8620 0.9671 0.9408 SegNet 0.8548 0.7730 0.8533 0.9632 0.9357 3.2. Classification Results 3.2.1. Database For the classification step, the ISIC-2019 database has been used [44,45], which contains 25,331 dermoscopic images. This database consists of the following lesions: actinic keratosis (867 images), basal cell carcinoma (3323 images), benign keratosis (2624 images), dermatofibroma (239 images), melanoma (4522 images), nevus (12,875 images), squamous cell carcinoma (628 images), and vascular lesion (253 images). An example of these dermoscopic images is shown in Figure 5. (a) (b) (c) (d) (e) (f) (g) (h) Figure 5. Dermoscopic images from ISIC-2019 database. (a) Squamous cell carcinoma; (b) Nevus; (c) Melanoma; (d) Dermofibroma; (e) Benign keratosis; (f) Basal cell carcinoma; (g) Actinic keratosis; (h) Vascular lesion. In order to train the convolutional neural networks used to classify the lesions, the database was balanced by a data augmentation process. Data augmentation was carried out by mirror operations and rotations of 36 degrees over each image. The test images were not modified. As mentioned above, two different experiments were carried out, hence, the database was balanced in two different ways. For the classification of BCC vs. Nevus, after data augmentation, the following number of images were obtained: 8982 images for training and 1287 for validation, for each class. In this sense, for all the classes, except nevus, the number of images was artificially augmented by the data augmentation process described above. For the nevus class, a downsampling process has been carried out, randomly selecting 10,269 images in total (8982 training + 1287 validation) out of the 12,875 nevus images that the ISIC provides. Figure 5. Dermoscopic images from ISIC-2019 database. ( a ) Squamous cell carcinoma; ( b ) Nevus; (c) Melanoma ; ( d ) Dermofibroma; ( e ) Benign keratosis; ( f ) Basal Cell Carcinoma; ( g ) Actinic keratosis; (h) Vascular lesion. In order to train the convolutional neural networks used to classify the lesions, the database was balanced by a data augmentation process. Data augmentation was carried out by mirror operations and rotations of 36 degrees over each image. The test images were not modified. As mentioned above, two different experiments were carried out, hence, the database was balanced in two different ways. For the classification of BCC vs. Nevus, after data augmentation, the following number of images were obtained: 8982 images for training and 1287 for validation, for each class. In this sense, for all the classes, except nevus, the number of images was artificially augmented by the data augmentation process described above. For the nevus class, a downsampling process has been carried out, randomly selecting 10,269 images in total (8982 training + 1287 validation) out of the 12,875 nevus images that the ISIC provides. For BCC vs. All lesions, the balanced dataset is constituted as follows: 15,419 training images and 2199 validation images, for each of the two classes (BCC and the rest of the types). In this case, data augmentation was applied for the BCC class, increasing the number of nevus images up to 17,618 in total (training and validation set). For each class belonging to the remaining seven classes, the number of images was fixed to 2517 images in total for each class. 3.2.2. Classification Results of BCC vs. Nevus The database consists of 23,780 images in total, after the data augmentation. The training set consists of 17,964 images, the validation set consists of 2574 images and there are 3242 images for the test process. The results are described in Tables 3and 4. Table 3. Performance parameters for the different classifiers without the previous segmentation of the image when classifying BCC vs. Nevus. Se: Sensitivity, Sp: Specificity, Pre: Precision, FPR: False Positive Rate, Acc: Accuracy. The highest values are shown in bold numbers. Method Se Sp Pre FPR Acc VGG16 0.95 0.97 0.88 0.99 0.97 ResNet50 0.95 0.97 0.88 0.99 0.96 InceptionV3 0.95 0.97 0.87 0.96 0.94 Ensemble ArgMax 0.97 0.98 0.92 0.99 0.98 Ensemble Mean 0.97 0.97 0.90 0.99 0.97
Appl. Sci. 2022,12, 2092 16 of 16 39. He, K.; Zhang, X.; Ren, S.; Sun, J. Deep Residual Learning for Image Recognition. In Proceedings of the 2016 IEEE Conference on Computer Vision and Pattern Recognition (CVPR 2016), Las Vegas, NV, USA, 27–30 June 2016. [CrossRef] 40. Szegedy, C.; Vanhoucke, V.; Ioffe, S.; Shlens, J. Rethinking the Inception Architecture for Computer Vision. In Proceedings of the 2016 IEEE Conference on Computer Vision and Pattern Recognition (CVPR 2016), Las Vegas, NV, USA, 27–30 June 2016. [CrossRef] 41. Yuan, Y.; Chao, M.; Lo, Y.-C. Automatic skin lesion segmentation with fully convolutional deconvolutional networks. IEEE J. Biomed. Health Inform. 2018,36, 1876–1886. [CrossRef] 42. Tschandl, P.; Sinz, C.; Kittler, H. Domain-specific classification pre-trained fully convolutional network encoders for skin lesion segmentation. Comput. Biol. Med. 2019,104, 111–116. [CrossRef] 43. Sarker, M.K.; Rashwan, H.A.; Akram, F.; Singh, V.K.; Banu, S.F.; Chowdhury, F.U.H.; Choudhury, K.A.; Chambon, S.; Radeva, P.; Puig, D.; et al. SLSNet: Skin lesion segmentation using a lightweight generative adversarial network. Expert Syst. Appl. 2021 , 183, 115433. [CrossRef] 44. Tschandl, P.; Rosendahl, C.; Kittler, H. The HAM10000 dataset, a large collection of multi-source dermatoscopic images of common pigmented skin lesions. Sci. Data 2018,5, 180161. [CrossRef] 45. Combalia, M.; Codella, N.F.C.; Rotemberg, V.; Helba, B.; Vilaplana, V.; Reiter, O.; Halpern, A.C.; Puig, S.; Malvehy, J. BCN20000: Dermoscopic Lesions in the Wild. arXiv 2019, arXiv:1908.02288. 46. Gessert, N.; Nielsen, M.; Shaikh, M.; Werner, R.; Schlaefer, A. Skin lesion classification using ensembles of multi-resolution EfficientNets with meta data. MethodsX 2020,7, 100864. [CrossRef] [PubMed] 47. Barata, C.; Celebi, M.E.; Marques, J.S. A survey of feature extraction in dermoscopy image analysis of skin cancer. IEEE J. Biomed. Health Inform. 2019,23, 1096–1109. [CrossRef] 48. Teixeira, L.O.; Pereira, R.M.; Bertolini, D.; Oliveira, L.S.; Nanni, L.; Cavalcanti, G.D.C.; Costa, M.G. Impact of lung segmentation on the diagnosis and explanation of COVID-19 in chest X-ray images. Sensors 2021,21, 7116. [CrossRef] [PubMed]