scieee AI-readable full text Open interactive document viewer

CT Radiomics in Colorectal Cancer: Detection of KRAS Mutation Using Texture Analysis and Machine Learning

González Castro, Víctor; Cernadas García, Eva; Huelga Zapico, Emilio; Fernández Delgado, Manuel; Antúnez López, José Ramón; Souto Bayarri, José Miguel

Abstract

In this work, by using descriptive techniques, the characteristics of the texture of the CT (computed tomography) image of patients with colorectal cancer were extracted and, subsequently, classified in KRAS+ or KRAS-. This was accomplished by using different classifiers, such as Support Vector Machine (SVM), Grading Boosting Machine (GBM), Neural Networks (NNET), and Random Forest (RF). Texture analysis can provide a quantitative assessment of tumour heterogeneity by analysing both the distribution and relationship between the pixels in the image. The objective of this research is to demonstrate that CT-based Radiomics can predict the presence of mutation in the KRAS gene in colorectal cancer. This is a retrospective study, with 47 patients from the University Hospital, with a confirmatory pathological analysis of KRAS mutation. The highest accuracy and kappa achieved were 83% and 64.7%, respectively, with a sensitivity of 88.9% and a specificity of 75.0%, achieved by the NNET classifier using the texture feature vectors combining wavelet transform and Haralick coefficients. The fact of being able to identify the genetic expression of a tumour without having to perform either a biopsy or a genetic test is a great advantage, because it prevents invasive procedures that involve complications and may present biases in the sample. As well, it leads towards a more personalized and effective treatment

Full text

applied sciences Article CT Radiomics in Colorectal Cancer: Detection of KRAS Mutation Using Texture Analysis and Machine Learning Víctor González-Castro 1, Eva Cernadas 2,* , Emilio Huelga 3, Manuel Fernández-Delgado 2, Jacobo Porto 3, JoséRamón Antunez 4and Miguel Souto-Bayarri 3 1Department of Electrical, Systems and Automation Engineering, Universidad de León, Campus de Vegazana s/n, 24071 León, Spain; victor[email protected] 2Centro Singular de Investigación en Tecnoloxías Intelixentes da USC (CiTIUS), Universidade de Santiago de Compostela, Rúa Xenaro de la Fuente Domínguez, 15782 Santiago de Compostela, Spain; [email protected] 3Department of Radiology, Complexo Hospitalario Universitario de Santiago, USC, 15706 Santiago de Compostela, Spain; [email protected] (E.H.); [email protected] (J.P.); [email protected] (M.S.-B.) 4Department of Pathology, Complexo Hospitalario Universitario de Santiago, USC, 15706 Santiago de Compostela, Spain; [email protected] *Correspondence: [email protected] Received: 6 July 2020; Accepted: 4 September 2020; Published: 7 September 2020   Featured Application: Detection of the KRAS mutation without an invasive technique (biopsy) may have an important role in the diagnosis, prognosis, treatment, and monitoring of the patients with colorectal cancer. Machine learning algorithms allow determination of the presence of the mutation from the analysis of the CT image, and prevent mistakes by biopsying only part of the tumour. Abstract: In this work, by using descriptive techniques, the characteristics of the texture of the CT (computed tomography) image of patients with colorectal cancer were extracted and, subsequently, classified in KRAS+or KRAS-. This was accomplished by using different classifiers, such as Support Vector Machine (SVM), Grading Boosting Machine (GBM), Neural Networks (NNET), and Random Forest (RF). Texture analysis can provide a quantitative assessment of tumour heterogeneity by analysing both the distribution and relationship between the pixels in the image. The objective of this research is to demonstrate that CT-based Radiomics can predict the presence of mutation in the KRAS gene in colorectal cancer. This is a retrospective study, with 47 patients from the University Hospital, with a confirmatory pathological analysis of KRAS mutation. The highest accuracy and kappa achieved were 83% and 64.7%, respectively, with a sensitivity of 88.9% and a specificity of 75.0%, achieved by the NNET classifier using the texture feature vectors combining wavelet transform and Haralick coefficients. The fact of being able to identify the genetic expression of a tumour without having to perform either a biopsy or a genetic test is a great advantage, because it prevents invasive procedures that involve complications and may present biases in the sample. As well, it leads towards a more personalized and effective treatment. Keywords: KRAS mutation; colorectal cancer; texture analysis; wavelets; haralick texture descriptors; Support Vector Machine; Grading Boosting Machine; Neural Network; Random Forest Appl. Sci. 2020,10, 6214; doi:10.3390/app10186214 www.mdpi.com/journal/applsci Appl. Sci. 2020,10, 6214 2 of 15 1. Introduction Colorectal cancer is second in incidence in women after breast cancer, followed in third and fourth place by lung and cervix cancers, respectively. In men, lung cancer is the highest in incidence, with prostate cancer being the second, followed in third place by colorectal cancer. Despite the important advances in its treatment, colorectal cancer remains the second cause of death from cancer considering the general population, with an estimated mortality in both sexes worldwide in 2018 of 880,792 deaths [ 1 , 2 ]. In the United States, colorectal cancer is the third most common cancer diagnosed in both sexes, and The American Cancer Society estimates 104,610 new cases of colorectal cancer will occur in 2020 [ 3 ]. In Spain, the colorectal cancer was the cancer most frequently diagnosed in both sexes in 2019 (with 44,937 new cases), the second in men after prostate cancer, and the second in women after breast cancer [4]. There seems to be a process with multiple stages of evolution from the normal colonic mucosa to a potentially fatal carcinoma. Cells, which must have a certain genetic predisposition or suffer a series of genotoxic phenomena, are induced to proliferate, thus passing through a series of stages until they end up doing so in a completely uncontrolled manner. One of the proto-oncogenes that can be altered in this process is KRAS, which is involved in the pathway of transduction of growth signals and cell differentiation. It is estimated that 65% of sporadic colorectal carcinomas present activation by point mutations in a gene of the RAS family (mainly KRAS) [ 5 ]. The RAS gene is now part of the criteria of the new TNM classification of malignant tumours as a prognostic and predictive factor, since patients with early stage colorectal cancer (I and II) have a lower survival rate when related to the KRAS mutation. In patients with metastatic colorectal cancer, the median overall survival without treatment is approximately 6 months. With the use of current therapies, survival can be prolonged to a median of 30 months, with a response rate for some therapies of 50% [ 6 ]. The introduction of targeted therapies resulted in an increase in progression-free survival and also in overall survival in patients with metastatic colorectal cancer. Therefore, in addition to combined chemotherapy regimens, there are currently a series of agents that act against certain specific targets important in the pathological process of CRC (colorectal cancer). These therapies are monoclonal antibodies against EGFR, monoclonal antibodies against VEGF-A, and also fusion proteins against multiple molecules and growth factors. For the use of this targeted therapy, the existence of mutations in KRAS and NRAS must be previously verified. If these mutations are present, the tumour cell presents an activation of multiple signalling pathways that render useless the targeted treatment against those genes [ 7 ]. Therefore, it has been described that mutations in the KRAS proto-oncogene cause a poor response to anti-EGFR treatment in cases of metastatic colorectal cancer. The presence or absence of this mutation must be confirmed, because patients with colorectal cancer who present native KRAS can benefit from targeted therapy with anti-EGFR [8,9]. Radiological images contain information about the underlying pathophysiology that can be extracted through a quantitative analysis of the texture of the image [ 10 , 11 ]. With radiomics, analysing the relationship between the intensity/density of the pixels that make up the texture of the tumour image, we could obtain an identificative pattern of an underlying pathophysiological alteration, as has already been demonstrated in other tumours using other radiological techniques [ 12 – 17 ]. This information is different from that provided by laboratory tests and other pathological or genomic analysis. With these data, obtained from the texture analysis of an image, a common pattern can be detected in patients with a specific genomic mutation, such as the KRAS mutation in patients with colorectal cancer. Trying to describe different textures of an object is extremely difficult for the human eye, even more so if that description is intended to be done on a CT image. However, by using computer programs it is possible to assign a quantitative value to a certain texture of a CT image, taking into account many characteristics that are invaluable to the human eye. If this quantitative analysis of the texture of a tumour with a certain pathophysiological singularity (mutation in the KRAS oncogene) is able to obtain a characteristic pattern, it will be possible to check whether other tumours have this Appl. Sci. 2020,10, 6214 3 of 15 pattern (and therefore, the KRAS oncogene mutation). This is of utmost importance because the radiological data derive from the entire tumour, while the pathological data only derives from the sample obtained invasively. Therefore, radiomics can provide valuable information regarding the genomics of the tumour process, and this may have an important role in the diagnosis, prognosis, treatment, and monitoring of these patients [18]. To identify a pattern in the images of patients with a mutation in the KRAS gene, it is necessary to extract from CT images characteristics of the texture which cannot be extracted by the visual analysis of the radiologists. Subsequently, using machine learning algorithms, e.g., Support Vector Machine (SVM), Grading Boosting Machine (GBM), Neural Networks (NNET), or Random Forest (RF), the molecular signature of colon cancers could be automatically classified into KRAS +or KRAS- based on those previously extracted texture characteristics. In this way, the existence of common texture patterns that are present in patients with colorectal cancer with mutated KRAS, but not in patients with native KRAS, will be demonstrated, which will allow determination of the presence of the mutation from the analysis of the CT image. The Materials and Methods section details the selection of the patients, the description of the texture features and machine learning models, and the performance measures. The Results and Discussion section summarizes the results achieved. Finally, the main conclusions and future work are reported in the Conclusions section. 2. Objectives The objective of this research is to use radiomics to detect the KRAS oncogene mutation in patients with colorectal cancer by analysing the texture of the images obtained by CT, thus reflecting that there is a relationship between the texture pattern of a radiological imaging test with the underlying genetic mutation. The detection of this KRAS mutation without an invasive technique may have an important role in the diagnosis, prognosis, treatment, and monitoring of the patients with colorectal cancer. A secondary objective, but no less important, is to contribute to increasing the bibliography and the available experience regarding the possibilities of radiomics, a field that is booming and that requires the creation of common standards and protocols to establish the ideal methodology to get the most out of this promising field. 3. Materials and Methods The first subsection describes the definition of the dataset used to evaluate the performance of the classification system of KRAS+and KRAS- genetic disease from the TC images. This encloses the selection of patients and the annotation of the CT images. Texture analysis is a very important topic in medical image analysis [ 13 , 19 ]. Texture classification is concerned with the problem of assigning a sample image to one in the set of known texture classes (in our case, KRAS+and KRAS-). The texture classification process normally encloses the following two steps: (1) computation of the texture features, which is described in the second subsection; and (2) design of machine learning models to predict the output class of an unknown input patient (third subsection). Finally, the fourth subsection describes the performance measurements used in this work. 3.1. Patients Selection and Annotation of Regions of Interest (ROIs) To carry out this cross-sectional study, the approval of the Research Ethics Committee was obtained. For this study, 47 patients were selected from the databases of the CHUS University hospital (Complexo Hospitalario Universitario de Santiago de Compostela). The inclusion criteria were as follows: (1) patients with colorectal cancer with determination of the KRAS mutation by biopsy between 2016 and 2017 (27 KRAS+and 20 KRAS- patients, respectively); (2) selection of those patients whose intravenous contrast CT dated before any treatment; (3) obtaining the CT images with a slice thickness of 5 mm. Very thin slice thickness improves spatial resolution but decreases contrast. Therefore, 5 mm is the thickness we estimate best to determine the difference in texture of the tumour pixels. In addition, Appl. Sci. 2020,10, 6214 4 of 15 the patients included in the study already had the CT done, since it is one of the first tests to be performed in tumour staging; the subsequent CTs could not be included in the study, since they are post-treatment and may bias its results. The CT images used must be selected to any treatment applied. Therefore, to obtain the images of each patient, we will resort to the CT performed at the time of diagnosis. From these images, a series of slices are obtained: three slices of the tumour are selected, i.e., the slice in which the tumour presents the largest diameter (central slice) and the slices immediately cranial and immediately caudal to that central slice. The selection of three slices for each tumour is made to encompass the largest possible tumour volume in the analysis, trying to approach a 3D analysis of it. With the three slices we make sure to select the largest amount of tumour that the imaging technique allows. We did not select more slices because in the analysis of some tumours, due to their size and disposition, it was not possible to analyse more than three slices, so it was finally decided to standardize the analysis of all patients’ tumours to three slices. Then, with each image of the three slices, the tumour is manually delimited by an expert radiologist, performing the following segmentation sequence: • First, an image of tumour is saved without limitation in original size as “large-original.tiff” (i.e., Figure 1). The sequence of obtaining the images is very important to speed up the process and ensure that the images have the same focus when they are enlarged. An expert radiologist searches the cut with the largest diameter of the tumour. All images must be saved in “.tiff” format, as we will explain later. Figure 1. “Large-original” is the first image to obtain. This image belongs to a KRAS+patient included in the study. The tumour under study is highlighted with red arrows and can also be seen in greater detail in the adjacent images. • Secondly, an expert radiologist delimits the tumour, and an image of the delimited tumour is saved in its original size: “large-delimited.tiff” (i.e., Figure 2). The delimitation process is carried out manually by an expert, since due to the morphological heterogeneity of the tumour it is impossible to make an automatic delimitation. Figure 2. “Large-delimited” is the second image to be obtained. In the two adjacent small images, the delimited tumour can be seen in detail. The delimitation line is highlighted between the two red arrows in the most enlarged image. Appl. Sci. 2020,10, 6214 5 of 15 • Third, the screen zoom is adjusted by enlarging the image and an image of the segmented and enlarged tumour is saved: “small-delimited.tiff” (i.e., Figure 3). Figure 3. “Small-delimited”. To take this image, starting from the “large-delimited” image, the zoom is enlarged focusing on the delimited tumour. In the two adjacent small images, the delimited tumour can be seen in detail. In the enlarged image the delimitation is highlighted between the two red arrows. • Finally, without modifying the zoom, the previous delimitation is eliminated, and one image of the tumour is saved without delimiting and enlarged: “small-original.tiff” (i.e., Figure 4). Figure 4. “Small-original”. In the two adjacent small images, the tumour can be seen in detail. In this case, the images have not delimitation. This process of obtaining the images is repeated with the slices immediately cranial and immediately caudal. Finally, a set of 12 images is obtained for each patient. As already mentioned, the order of obtaining the four images in each of the three slices is very important so that the enlarged Appl. Sci. 2020,10, 6214 6 of 15 images have the same size and focus, thus ensuring that the enlarged images are in the same measure. In addition, this order of taking images also streamlines the process by being able to take them consecutively without almost having to make adjustments between shots. 3.2. Extraction of Texture Features The texture is a visual pattern in the image, modelled by the computer as a vector of numerical values, which codifies the image structure. Many texture extraction techniques have been proposed in the literature and they have successfully applied to many applications [ 20 ]. Most of them are applied to rectangular or squared images. Nevertheless, in our application, the cancer tumours are irregular regions in the image. In a previous work, we have adapted some popular texture descriptors to their application on irregular patches in the image [ 21 ]. In this paper, we compare the performance of some descriptors of the two most popular families of texture descriptors: second order statistics of grey level pixels and spectral texture features. The family of statistical features encode the spatial distribution of grey levels in the image. We use the Local Binary Patterns (LBP), proposed by Ojala et al. in 2002 [ 22 ], and the Haralick coefficients, calculated from the grey level cooccurrence matrix [ 23 ]. The family of spectral features, like wavelets or Gabor filters, does decompositions of the signal or image in the frequency domain. Gabor filters uses the FFT (Fast Fourier Transform), which is a global technique, and they are not suitable to analyse irregular patches. Therefore, we only use the wavelet features. Let G={0, . . . ,N g− 1} be the set of N g grey levels, Sa finite subset of indexes specifying the region of interest (ROI) to be analysed (in our case, the tumour), I(x,y)∈G the grey level in the pixel (x,y)∈S . The Grey Level Cooccurrence Matrix ( M ) of the image is a matrix of Ng×Ng elements. The element Mij represents the number of pairs of pixels with grey levels i and j that occur among the pixels belonging to the set S for a certain distance (i.e., scale) d and an orientation θ from each other. For the construction of a rotation invariant cooccurrence matrix, we average the matrix to different orientations. The probability density function Pd(i,j) , i , j∈G for each d is obtained dividing all elements of Mij by the number of cooccurrences in Mij . This probability matrix is normally characterized by the following features: energy (E), correlation (Cor), contrast (Con), homogeneity (Ho), and entropy (H), which are defined as: E=X i X j Pd(i,j)2(1) Cor =1 σxσyX i        X j ijPd(i,j)−µxµy        (2) Con =X i X j (i−j)2Pd(i,j) Ng−12(3) Ho =X i X j Pd(i,j) 1+i−j (4) H=−X i X j Pd(i,j)log(Pd(i,j)) (5) where µx=PiiPjPd(i,j) , µy=PjjPiPd(i,j) , σx=Pi(i−µx)2PjP(i,j) , and σy=Pjj−µy2PiP(i,j) . All the sums over i and j are for i , j= 0, . . . , Ng− 1. We compute eight features vector HF df varying the distances used d={1, 2, 3, 123} (distance one, two or three pixels and the concatenation of these three distances) and the number of features f={4, 5} , feature vectors are constructed using the five above features (i.e., energy, correlation, contrast, homogeneity, and entropy) or excluding the entropy. So, the number of texture features is: 4 for HF d4 , d={1, 2, 3} and 5 for HF d5 , d={1, 2, 3}, and 12 and 15 features for HF123f,f=4 and f=5, respectively. Appl. Sci. 2020,10, 6214 7 of 15 The original local binary pattern [ 22 ] extracts information locally from the texture of the images comparing the intensity of each pixel zc=(xc,yc)∈S in the ROI with that of its neighbours. The neighbouring pixels P are angularly distributed over a circle with radius R centred in zc∈S . The LBP signature assigns a binary label, i.e., 0 or 1, to each neighbour depending on whether the central pixel zc has higher intensity value than the neighbouring pixels. Such an LBP is not robust against rotations. The rotationally invariant LBP for zc , given a radius R and the number of involved neighbours P, is given by: LBPri(zc)=min 0⩽n<PnPP−1 i=0u(I(zi)−I(zc))2(i+n)%Po, (6) where zi is the i-th neighbouring pixel, i= 0, . . . , P− 1. I(zi) is the grey level in pixels zi and u(x)= 1 for x≥ 0 and u(x)= 0. The symbol % denotes the remainder operation. The circular shift effect produced when the image is rotated is removed by finding the minimum value among all possible values. The original LBP texture descriptor yields a vector of 2 P features, which is too large for higher values of Pfor many classifiers, especially if the number of input patterns is low. To overcome this drawback, we use the LBP uniform patterns, which refer to the patterns which have a limited number of transitions from 0 to 1 or vice versa, lower, or equal than two. In a circularly symmetric neighbour set of P pixels can occur P+ 1 uniform binary patterns. In the uniform patterns, the number of 1 0 s in the binary pattern is the label of the patterns, while the non-uniform patterns are labelled by P+ 1. The histogram of the patterns’ labels accumulated over the set S is employed as texture feature vector. So, we compute three texture feature vectors LBP Ri for each radius Ri={1, 2, 3} using P =8, and the feature vector LBPR123 with 30 features for the concatenation of the previous three LBP vectors. The discrete wavelet transform (DWT) representation can be used as spectral texture descriptors. The DWT decomposes the image into low-pass and high-pass frequency bands. Applying recursively, the filters to the bands produce the wavelet decomposition. Therefore, the wavelet transform involves filtering and subsampling. A more compact representation is normally derived from the bands as texture descriptors. Some possible measures to compute over the transform coefficients for each sub-band and decomposition level are mean, energy, entropy, and standard deviation. The measures are computed using the pixels (x,y)∈S . We construct eight feature vectors DWT sfm varying the number of levels of decomposition s={2, 3} , the number of filters f={LL,All} (i.e., using only the low-pass sub-bands or using all sub-bands), and the number of measures m={EEMS,EMS} , i.e., using the four measures EEMS (energy, entropy, mean, and standard deviation) or EMS, excluding the entropy. Another popular family of texture features for classification is multi-scalar analysis, which encodes texture feature in different scales. This encoding can be done changing the size of neighbourhood in the statistical texture features, e.g., the LBP texture features or Haralick coefficients mentioned above or doing decompositions and down-sampling in the wavelet transforms, as the DWT sfm texture feature vectors. We also achieved multi-scalar analysis combining subsampling using wavelets with statistical analysis. Specifically, we compute the cooccurrence matrix and Haralick features over a wavelet decomposition in the following ways: (1) texture feature vectors Wavelet Co-occurrence Features, WCF dm , and (2) texture feature vectors Wavelet Decomposition Cooccurrence Features, WDC Ffm . The features WCF dm are calculated applying the wavelet low-pass (L) and high-pass (H) filtering to the original image Ito produce the sub-bands LL, LH, HL, and HH. We calculate the cooccurrence matrix over the region of interest S(and scaled Sfor the sub-bands) for different distances d={1, 2, 3} and calculating different sets of Haralick features for m={4, 5} , depending on whether the feature entropy is included or not. This process develops texture feature vectors of 20 characteristics for WCF d4 [ 24 ] and 25 for WCF d5 , with d={1, 2, 3} . The features WDC Ffm are calculated applying three level wavelet decomposition levels to the original image I . We apply the decomposition only over the low-pass LL subbands and compute the cooccurrence matrix using a distance d =1 and Haralick coefficients m={4, 5} using the LL subbands, i.e., f=LL , or all subbands, i.e., f=All . The number of features is 16 for WDCFLL4, 20 for WDCFLL5, 52 for WDCFAll4 and 65 for WDCFAll5. Appl. Sci. 2020,10, 6214 8 of 15 3.3. Machine Learning Models We use supervised Machine Learning classifiers to predict the genetic disease of the patient (KRAS+or KRAS-) from the CT sequence, represented as a texture feature vector for each slice. The classifier learns a function from examples (diagnosed patients using biopsy) that predicts the diagnosis of the patient from the CT sequence. The trained classifier can generalize its prediction to new patients that have not been seen during training. In the current study, we selected some of the classifiers identified as best-performing in our exhaustive comparison [25]. These classifiers are: • Support Vector Machine (SVM), a state-of-the-art classifier that simultaneously minimizes the training error and the classification margin of a hyperplane (related to the ability of generalization) on a hidden space projected from the input space using a non-linear kernel. We used the LibSVM library (https://www.csie.ntu.edu.tw/~cjlin/libsvm) under the Octave interface. The hyper-parameters of the SVM are the inverse spread γ of the Radial Basis Function kernel, tuned with values 2 −10 , 2 −8 , 2 −6 ,..., 2 10 , and the regularization parameter C, tuned with values 2 −5 , 2−3, 2−1,..., 210. • Gradient Boosting Machine (GBM) is an ensemble of classification trees trained using the functional gradient descent variant of the Boosting algorithm. We used the gbm package of the R statistical computing language (http://www.r-project.org), tuning the maximum depth of each tree (from 1 to 10) and the number of trees in the ensemble (from 50 to 500). The specific values of each parameter are generated using the utilities of the caret R package, being in general different for each combination of features. • Multi-Layer Perceptron Neural Network (NNET) is the classical neural network, trained using the Back-Propagation algorithm implemented by the nnet package in R. The hyper-parameters, defined by the caret package, are the number of hidden neurons (tuned with values from 1 to 19) and the weight decay (10 values from 0.1 to 0.001). • Random Forest (RF) is a bagging ensemble of random classification trees which is also considered a state-of-the-art classifier. Each node in the tree splits one input in two intervals, and each tree learns a different view of the classification problem. A datum is classified using a voting among all the trees in the forest. We used an RF of 500 trees, implemented by the randomForest R package, tuning the hyper-parameter mtry (number of variables that are randomly sampled as candidates in each split), with values between 2 and the number of inputs. • Linear Discriminant Analysis (LDA), is a classical approach that performs a linear classification oriented to simultaneously maximize the inter-class variance and minimize the within-class variance. This linear mapping is defined by the eigenvectors associated to the largest eigenvalues of the inter-class and within-class covariance matrices. Usually, LDA is used for dimensionality reduction prior to classification with more powerful classifiers. We included it in our study to provide a baseline performance for the remaining classifiers. We used the lda function in the MASS R package. 3.4. Performance Measures A variant of the common cross-validation methodology has been used to develop the experiments to predict the genetic disease, which consists of: (1) the use of three data partitions (or sets), for training, validation and test, instead of classical cross-validation, which only uses training and test sets; and (2) the dataset is created leaving one patient out (i.e., the feature vectors that describe the tumour in the three slices of a patient) instead of leaving one slice out. The texture feature vector calculated for each image is used as input pattern for the classifier, so there are so many patterns as images. The values selected for the hyper-parameters of the classifiers are the ones that achieve the best performance over the validation set. The classifier’s performance is measured using the Cohen’s kappa value (K), which measures the agreement between the true and predicted categories labels excluding the agreement by chance. Appl. Sci. 2020,10, 6214 9 of 15 In addition, its value is always lower and, therefore, more conservative and with stronger statistical validity, than the balanced accuracy, Area Under the ROC Curve (AUC), or Matthews coefficient [ 26 ]. Let the true positive (TP) be the number of sick people correctly identified as sick, the false positive (FP) be the number of healthy people incorrectly identified as sick, the true negative (TN) be the number of healthy people correctly identified as healthy, and the false negative (FN) be the number of sick people incorrectly identified as healthy. The confusion matrix (Table 1) visualizes the classifier prediction (column) and the true class (row). The diagonal corresponds to the patients correctly classified. The kappa (in %) is defined for classification problems with two categories, in our case KRAS+and KRAS-, as K=100pa−pe s−pe(7) where pa=PC i=1Cii , pe=1 N2PC i=1PC j=1CijPC j=1Cji and s=PC i=1PC j=1Cij , while C =2 is the number of classes, Cij is the ij-th value in the confusion matrix, e.g., Cij is the number of patients of the i-th category for which the classifier predicts the j-th category. The sensitivity ( Se ) refers to the classifier’s ability to correctly detect sick (KRAS+) patients while the specificity ( Sp ) relates to the classifier’s ability to correctly reject healthy patients (KRAS-). They are defined by Se(%)=100TP TP +FN (8) Sp(%)=100TN TN +FP (9) Table 1. Representation of a confusion matrix used to visualize the classifier performance. Each column in the matrix represents the instances in the predicted class while each row represents the instances in the true class. Predicted Class KRAS+KRAS- True class KRAS+TP FP KRASFN TN 4. Results and Discussion 4.1. Experimental Setup This section describes the dataset used and the evaluation methodology used to obtain the results of the next section. Our data set contains 47 patients (27 KRAS+and 20 KRAS-) from the CHUS University hospital in Santiago de Compostela. The inclusion criteria were as follows: (1) patients with colorectal cancer with determination of the KRAS mutation by biopsy between 2016 and 2017; (2) selection of those patients whose intravenous contrast CT dated before any treatment; (3) obtaining the CT images with a thickness of slice of 5 mm. From each patient, an experienced radiologist selects the slice with the largest transverse diameter of the tumour (central slice) and the slices immediately above and below it. From these three slices, the radiologist takes four images of each of the slices, two of which are manually outlined. The total number of images (slices) is 141 (47 patients multiplied by 3 cuts per patient). As mentioned, we use the LOPO (leave-one-patient-out) cross-validation approach. To develop the experiment, N partitions were created, being N the number of patients, each including a training, a validation and a test set. For each partition i= 1, . . . , N , the three slices belonging to the i-th patient are used as test set, and the remaining patients (three slices per patient) are distributed into the training and validation sets (50% of patients each one). All the inputs, that correspond to the different texture feature vectors extracted from the image, are pre-processed to have zero mean and standard deviation