Literature DB >> 31874599

Learning misclassification costs for imbalanced classification on gene expression data.

Huijuan Lu1, Yige Xu1, Minchao Ye2, Ke Yan1, Zhigang Gao3, Qun Jin4.   

Abstract

BACKGROUND: Cost-sensitive algorithm is an effective strategy to solve imbalanced classification problem. However, the misclassification costs are usually determined empirically based on user expertise, which leads to unstable performance of cost-sensitive classification. Therefore, an efficient and accurate method is needed to calculate the optimal cost weights.
RESULTS: In this paper, two approaches are proposed to search for the optimal cost weights, targeting at the highest weighted classification accuracy (WCA). One is the optimal cost weights grid searching and the other is the function fitting. Comparisons are made between these between the two algorithms above. In experiments, we classify imbalanced gene expression data using extreme learning machine to test the cost weights obtained by the two approaches.
CONCLUSIONS: Comprehensive experimental results show that the function fitting method is generally more efficient, which can well find the optimal cost weights with acceptable WCA.

Entities:  

Keywords:  Cost-sensitive; Misclassification cost; Parameter fitting; Weighted classification accuracy

Mesh:

Year:  2019        PMID: 31874599      PMCID: PMC6929277          DOI: 10.1186/s12859-019-3255-x

Source DB:  PubMed          Journal:  BMC Bioinformatics        ISSN: 1471-2105            Impact factor:   3.169


Background

Classification of gene expression data reveals tremendous information in various application fields of biomedical research, such as cancer diagnosis, prognosis and predictions [1-3]. However, the gene expression data is composed of high-dimensional, noisy and imbalanced data samples [4]. The characteristic of imbalanced data is serious imbalance in the proportion of positive and negative samples [5, 6]. Gene expression data exacts a series of pre-processing steps to eliminate misleading classification results [7]. Moreover, the classification of gene expression data is a cost-sensitive problem, although both positive and negative classifications of cancer genes provide important evidences for doctors to make the treatment plan. Traditional machine learning algorithms usually assume that the training set is balanced. For imbalanced datasets, such as the gene expression datasets, the classical classification algorithms with the correct classification rates (CCR) may bias towards the majority classes. However, the misclassifications of minority classes usually contribute the higher influences than those of majority classes. Therefore, The introduction of cost sensitive learning (CSL) is necessary to eliminate the defects of traditional classification algorithms for imbalanced datasets. Traditionally, oversampling the minority class, undersampling the majority class, and synthesizing new minority classes can be used to handle this problem. In this work, we utilize a more sophisticated way to search for the optimal weights, and the proposed methods are more advanced than ever. In CSL, misclassification cost is an important factor to evaluate the classification performance of imbalanced datasets. However, solving the misclassification cost matrix is not a trivial task in many situations [8-10]. A direct solution for finding the misclassification costs is to assign them manually according to user expertise or inversely calculate the costs based on class distribution [11-13]. More sophisticated solutions can be found by fitting the importance of features to adaptive equations. In this paper, we learn the misclassification cost from the evaluation functions of cost-sensitive algorithms, using weighted classification accuracy as the measurement of cost-sensitive classification performance. The cost weights that lead to optimal classification performance are learned by grid searching strategy. It will help the researchers to obtain a reference weight. Then, three fitting functions will be found to represent the optimal cost weights. A series of comprehensive experimental results show that the function fitting approach is an effective way of finding the optimal cost weights, targeting at high weighted classification accuracy (WCA). Fitting functions can accurately locate optimal weights. Appropriate weights will greatly improve the accuracy of the model. Imbalanced data greatly affects the accuracy of classification. We discuss the cost-sensitive classification algorithms in the imbalance problem. CSL is one of the most hot topics in the field of machine learning. Many works have studied on CSL and embedded the misclassification costs into various classifiers, such as the decision trees (DTs), support vector machines (SVMs) and extreme learning machines (ELMs). Chai et al. [14] considered the testing costs of missing values in naive Bayes (NB) and DT algorithms. Feng [15] defined a customized objective function for misclassification costs and designed a score evaluation based cost-sensitive DT. For multi-class classification problems, Feng’s method generally achieves higher classification accuracy or lower misclassification costs. Zhao and Li [16] extended the evaluation function by including weighted information gain ratio and the test cost for the cost-sensitive DT. The proposed cost-sensitive DT algorithm not only reduced the misclassification cost, but also improved the classification efficiency of the original C4.5 algorithm [17, 18]. Lu et al. [19] made use of the cost-sensitive DTs as base classifiers and constructed a cost-sensitive rotational forest. Two kinds of DTs, i.e., EG2 and C4.5, are considered and tested [20]. These experiments show that integrating cost-sensitive to classification algorithms can effectively improve classification efficiency. Cost sensitivity and classification algorithms combine to form efficient classification methods. Cao et al. [21] proposed to embed evaluation measures into the objective function for to improve the performance of a cost-sensitive support vector machine (CS-SVM). He et al. [22] integrated the Gaussian Mixture Model (GMM) into the CS-SVM to deal with the imbalanced classification problem. Cheng and Wu [23] added weights to features and introduced a weighted features cost-sensitive SVM (WF-CSSVM). The WF-CSSVM algorithm showed significant performance improvement on both aspects of accuracy and cost. Silva et al. [24] combined CS-SVM with semi-supervised learning method to form a hybrid classification algorithm. The effectiveness of the proposed hybrid method is shown in the experimental results on Earth monitoring and landscape mapping. Cao et al. [25] tackled the problem of multi-labeled imbalanced data classification problem. They successfully assigned different misclassification costs to different label sets for reducing the overall misclassification cost. CS-ELM has been studied by many researchers in various aspects. Zong et al. [26] introduced a weighted extreme learning machine (WELM) for imbalanced data learning. It was claimed that the WELM can be extended to a cost-sensitive ELM (CS-ELM). Zheng et al. [27] formally applied the concept of the cost-sensitivity to extreme learning machine (ELM). Yan et al. [28, 29] extended Zheng et al.’s work and introduced a cost-sensitive dissimilar ELM (CS-D-ELM). Compared to traditional ELM algorithms, the CS-ELM algorithms guarantee the classification accuracy and reduce the misclassification cost. More recently, Zhang and Zhang [30] solved the problem of defining and optimizing the cost matrix for CS-ELM to make it more robust and stable [31, 32]. Zhu and Wang [33] treated CS-ELM as a base classifier to solve a semi-supervised learning problem. Incremental results show that the CS-ELM has better performance in terms of accuracy, cost, efficiency and robustness over other existing classifiers.

Classical definition of cost matrix

Considering the binary classification problem, the confusion matrix shows four types of classification results according to the prediction values, namely, true positive, false positive, false negative and true negative (Table 1) [34, 35].
Table 1

The confusion matrix for binary classification

Prediction of PositivePrediction of Negative
Positive samplesTrue Positive TPFalse Negative FN
Negative samplesFalse Positive FPTrue Negative TN
The confusion matrix for binary classification The CSL seeks the overall minimum cost by introducing sensitive costs, rather than only aiming at high CCR. While there are several types of classification costs, it should be noted that this work only focuses on the misclassification cost. Misclassification cost can be viewed as penalties for errors in the classification process. In binary classification problems, costs caused by different types of errors may be different. We define the minority class as positive (P), the majority class as negative (N), and construct the cost matrix C as shown in Table 2.
Table 2

Cost matrix

Predicted ActualPN
PC00C01
NC10C11
Cost matrix In Table 2, C and C show the cost of correct classification. By default, we set the costs of correct classifications as 0. C and C show the costs of error classifications, where C denotes the misclassification costs of samples from P class, and C denotes the misclassification costs of samples from N class. Therefore, the cost matrix in Table 2 can be simplified as:

Correct classification rates versus weighted classification accuracy

For classical machine learning problems, the classification accuracy always refers to the correct classification rate (CCR) [36-38], or called overall accuracy (OA) [39-42], which is the proportion of all correctly classified samples: However, for imbalanced datasets where the numbers of positive and negative samples differ significantly, the CCR might be misleading [43, 44]. Considering a test set containing 99 negative samples but with only one positive sample [45, 46], a poorly designed classifier that simply puts all samples as negative will achieve an overall accuracy of 99/100 = 0.99, even though the accuracy for positive class is 0. To resolve this issue, we introduce the notion of adaptive classification accuracy (ACA) defined as follows: By embedding a weight wi into the i-th class, we get the weighted classification accuracy (WCA) as: By enforcing w1 + w2 = 1, Formula (9) is reduced to: Formula (10) can be easily extended to multi-classification problems: where n denotes the number of classes, M (i = 1, 2,..., n) denotes the number of samples belonging to the i-th class, and CMi (i = 1, 2,..., n) denotes the number of correctly classified samples within i-th class. Since the WCA is more accurate describing the classification accuracy, we use the WCA to evaluate the classification performance of cost-sensitive classifiers in the problem of gene expression data classification.

Methods

Optimal cost weights searching

From the University of California Irvine (UCI) standard classification dataset, we choose Leukemia, Colon, Prostate, Lung and Ovarian gene as the datasets for cost weights searching and further test, i.e., the Leukemia cancer dataset, the Colon cancer dataset, the Prostate cancer dataset, the Lung cancer dataset, and the Ovarian cancer in the tumor data respectively. All details of aforementioned datasets are shown in Table 3.
Table 3

Specifications of datasets

DatasetSample numberFeature dimensionClassification number
Leukemia3471302
Colon6220002
Prostate136126002
Lung181125332
Ovarian253151542
Specifications of datasets

Optimal cost weights searching by grid searching strategy

The optimal weights are searched by an adaptive algorithm using grid searching. There are two crucial factors to consider: the sample importance w and sample categorical distribution p. The sample categorical distribution p is the proportion between the number of positive class and negative class in test sets. Test set is constructed by random sampling. As such, it is necessary to study the relationship between the three factors, namely, w, p and WCA, where WCA is the fitness value for the grid searching strategy. In general, the grid searching strategy can be described as follows (the detailed algorithm steps are listed in Table 4):
Table 4

Grid Searching Strategy

Grid Searching Strategy
1: procedure GRIDSEARCHING(M, T, P0)
2: P = P0
3: f = WCA(P)
4: if P < M then
5: P = P + T
6: if f > fmax then
7: fmax = f
8: Pmax = P
9: end if
10: end if
11: return Pmax, fmax
12: end procedure
1) Set the searching region as M, grid searching step size as T, and the initial position as P0; 2) Calculate the fitness of the current position, record the position Pmax that has the best fitness fmax (fmax = WCA); 3) Update current location, P=P + T; 4) if the current fitness value is greater than fmax, update fmax and Pmax; 5) return fmax and Pmax. Grid Searching Strategy Extreme learning machine is an effective single hidden-layer feed-forward neural network (SLFN) learning algorithm. Cost-sensitive extreme learning machine (CS-ELM) is a kind of ELM, which attaches a cost matrix on output layer. In this research, we set the number of hidden neurons at 10. Less neurons will make the result more sensitive to observe the change of weights. And seven different gene expression datasets are used to obtain the classification results with CS-ELM as the classifier. CS-ELM minimizes the conditional risk by embedding misclassification cost in ELM. where R(i|x) is the conditional risk when the sample x is assigned to the class i, and P(j|x) is the conditional probability that x belongs to j, C(i, j) is the risk of misclassifying j to class i, where i, j ∈ {c1, c2, …, cm} and m is the number of classification categories.

Results

Optimal cost weights searching by function fitting

In this subsection, we use w and p as independent variables, and define a function fitting problem as: where w = C01/C10, w = w1/(w1 + w2) and p represents the proportion of positive and negative classes. We set C to 1 to reduce the complexity of calculation, i.e., fc = C. Optimal weights for different data set The sample distribution p, the optimal weight w = C01/C10 and the highest fitness value of each dataset are listed in Table 6.
Table 6

Datasets, cost weights and WCAs with the two approaches proposed

DatasetCost weightWCA
typepwoptimalwc1wc2wc3optimalwc1wc2wc3ECSELM
ovarian1.680.11.651.631.531.580.90550.96950.19660.20840.1017
Prostate2.50.91.041.051.0510.93720.98150.95090.98690.8985
Lung150.14.264.034.13.940.90780.97780.97860.97790.875
Lung280.90.920.90.660.610.90090.95640.97620.96750.9
Datasets, cost weights and WCAs with the two approaches proposed We use an automatic fitting software named 1STOPT to do the function fitting [47]. In 1STOPT, Levenberg-Marquardt and Universal Global Optimization are used to fit functions. We compared 500 functions with different types, and selected the three functions with the highest correlation coefficient: where a1 = 1.323, a2 = − 2.278, a3 = 3.047, a4 = − 1.286, a5 = − 1.746, a6 = 0.998, a7 = − 0.400, a8 = 0.369, a9 = − 2.606, a10 = 2.544, a11 = − 0.818, a12 = 0.482. The correlation coefficient R of f is 0.96346. where b1 = 1.008, b2 = 2.618, b3 = 1.743, b4 = − 0.808, b5 = 0.297, b6 = 2.327, b7 = 4.605, b8 = 0.406, b9 = 0.699, b10 = − 2.343, b11 = − 4.984. The correlation coefficient R of f is 0.95903. where c1 = 1.279, c2 = 0.574, c3 = 0.943, c4 = − 0.152, c5 = − 0.291, c6 = 0.113, c7 = 0.154, c8 = 0.009, c9 = 0.018, c10 = − 0.062, c11 = − 0.250. The correlation coefficient R of f is 0.95244. We compare the fitting functions with the optimal weights in Figs. 1, 2 and 3.
Fig. 1

The values of function w compared with the optimal weights

Fig. 2

The values of function w compared with the optimal weights

Fig. 3

The values of function w compared with the optimal weights

The values of function w compared with the optimal weights The values of function w compared with the optimal weights The values of function w compared with the optimal weights Figures 1, 2 and 3 show the comparison results of the three-dimensional interpolation of optimal weights and fitting functions. The red surface represents the optimal weights. The green, yellow, blue planes are fit surfaces of f, f and f. The correlation coefficient R of f, f and f identified that the overall fitness of the function f is better than other two. The function f gradually deviates from optimal weights while we increase the value of w, and decrease the value of p. The function f is slightly coarser than the function f in general.

Discussion

Comparison with grid searching and function fitting

Using different gene expression datasets, we compared the optimal cost weights obtained from the grid searching strategy and fitted functions f, f and f. In Table 6, we compared the WCAs with four different datasets, namely, Ovarian, Prostate, Lung1 and Lung2. The majority over minority class proportion of the four datasets are 1.68, 2.5, 5 and 8 respectively. All WCAs are computed using ELM as the base classifier. We also compare the two approaches with ECSELM. The best fit datasets are listed in Table 6. For each dataset, we plot the weight variance with different values of w. For different dataset, the fittest function (choice from f, f and f) might be different (Fig. 4).
Fig. 4

Cost weight comparison using Ovarian, Prostate, Lung1, Lung2 dataset (p = 1.68, 2.5, 5, 8)

Cost weight comparison using Ovarian, Prostate, Lung1, Lung2 dataset (p = 1.68, 2.5, 5, 8) Figure 4 shows that the more unbalanced the dataset is, the higher degree of fitness we can get; and the cost weights obtained from the fitting functions are closer to the optimal weights. In addition, the cost weights from function f and f are slightly superior to f. We put all cost weights obtained by different methods in a three-dimensional picture and show the results in Fig. 5.
Fig. 5

Cost weight comparison in overall

Cost weight comparison in overall For each dataset, we also illustrate the comparison of WCAs against different w values (Fig. 6). Besides, we compare WCAs of optimal weights and f with ECSELM [48].
Fig. 6

WCA comparison with Ovarian, Prostate, Lung1, Lung2 dataset (p = 1.68, 2.5, 5, 8)

WCA comparison with Ovarian, Prostate, Lung1, Lung2 dataset (p = 1.68, 2.5, 5, 8) In Fig. 6, we can see that the WCAs of the three fitting functions are lower than the optimal accuracy when w is less than 0.5. The reason is that the fitting degree of the cost weights in this range is lower. Moreover, it can be seen from Fig. 6 that the WCAs of the fitting functions approach to the optimal accuracy with the increment of p. Furthermore, the WCAs of our approaches is better than ECSELM in most field. Compared with ECSELM, our methods are more stable, and meanwhile can guarantee high WCA. This proves the robustness of our strategy. Similar to the case of cost weights, we ensemble all WCAs obtained by different methods in a three-dimensional picture (Fig. 7). In summary, we find that the function f provides better classification performance than the other two functions in general; and the fitting function f and f have better performance while the valuable p is large (when p above 5).
Fig. 7

The WCA comparison in 3-dimension

The WCA comparison in 3-dimension

Conclusions

In this paper, we have proposed two approaches to calculate the optimal cost weights for gene expression data. The two approaches include a grid searching strategy and a function fitting method. They enrich the ways of calculating the cost weights for imbalanced data classification problems. In general, the function fitting approach is more efficient than the grid searching strategy. The experimental results also show that the function fitting approach can accurate find the optimal cost weights for imbalanced gene expression datasets. The limitation of this work is that, although the ELM classifier is tested, the stability of the function fitting method is not proven, especially for other significantly different datasets. The exploration of the proposed algorithm’s stability is left as future work.
Table 5

Optimal weights for different data set

Data setSample categoricalInfluence factorsOptimal weights wcWCA
distribution pw1/(w1+w2)w2/(w1+w2)
Colon10.20.81.030.6167
Leukemia1.330.90.10.90.9179
Ovarian11.680.90.11.650.9055
Prostate120.90.11.060.939
Prostate22.50.90.11.040.9372
Lung130.90.10.930.92
Ovarian240.10.93.450.9094
Lung250.10.94.260.9078
Ovarian36.50.90.10.80.9075
Lung380.90.10.920.9009
  18 in total

1.  Molecular pattern discovery based on penalized matrix decomposition.

Authors:  Chun-Hou Zheng; Lei Zhang; Vincent To-Yee Ng; Simon Chi-Keung Shiu; De-Shuang Huang
Journal:  IEEE/ACM Trans Comput Biol Bioinform       Date:  2011 Nov-Dec       Impact factor: 3.710

2.  Robust classification method of tumor subtype by using correlation filters.

Authors:  Shu-Lin Wang; Yi-Hai Zhu; Wei Jia; De-Shuang Huang
Journal:  IEEE/ACM Trans Comput Biol Bioinform       Date:  2011-10-17       Impact factor: 3.710

3.  Multiscale fragile watermarking based on the Gaussian mixture model.

Authors:  Hua Yuan; Xiao-Ping Zhang
Journal:  IEEE Trans Image Process       Date:  2006-10       Impact factor: 10.856

4.  Metasample-based sparse representation for tumor classification.

Authors:  Chun-Hou Zheng; Lei Zhang; To-Yee Ng; Simon C K Shiu; De-Shuang Huang
Journal:  IEEE/ACM Trans Comput Biol Bioinform       Date:  2011 Sep-Oct       Impact factor: 3.710

5.  Normalized feature vectors: a novel alignment-free sequence comparison method based on the numbers of adjacent amino acids.

Authors:  De-Shuang Huang; Hong-Jie Yu
Journal:  IEEE/ACM Trans Comput Biol Bioinform       Date:  2013 Mar-Apr       Impact factor: 3.710

6.  Tumor classification by combining PNN classifier ensemble with neighborhood rough set based gene reduction.

Authors:  Shu-Lin Wang; Xueling Li; Shanwen Zhang; Jie Gui; De-Shuang Huang
Journal:  Comput Biol Med       Date:  2009-12-30       Impact factor: 4.589

7.  Evolutionary Cost-Sensitive Extreme Learning Machine.

Authors:  Lei Zhang; David Zhang
Journal:  IEEE Trans Neural Netw Learn Syst       Date:  2016-10-11       Impact factor: 10.451

8.  Gene expression profiling predicts clinical outcome of breast cancer.

Authors:  Laura J van 't Veer; Hongyue Dai; Marc J van de Vijver; Yudong D He; Augustinus A M Hart; Mao Mao; Hans L Peterse; Karin van der Kooy; Matthew J Marton; Anke T Witteveen; George J Schreiber; Ron M Kerkhoven; Chris Roberts; Peter S Linsley; René Bernards; Stephen H Friend
Journal:  Nature       Date:  2002-01-31       Impact factor: 49.962

9.  Tumor clustering using nonnegative matrix factorization with gene selection.

Authors:  Chun-Hou Zheng; De-Shuang Huang; Lei Zhang; Xiang-Zhen Kong
Journal:  IEEE Trans Inf Technol Biomed       Date:  2009-04-14

10.  Applying Cost-Sensitive Extreme Learning Machine and Dissimilarity Integration to Gene Expression Data Classification.

Authors:  Yanqiu Liu; Huijuan Lu; Ke Yan; Haixia Xia; Chunlin An
Journal:  Comput Intell Neurosci       Date:  2016-08-23
View more
  2 in total

1.  Evaluation of a Maternal Plasma RNA Panel Predicting Spontaneous Preterm Birth and Its Expansion to the Prediction of Preeclampsia.

Authors:  Carl Philip Weiner; Howard Cuckle; Mark Louis Weiss; Irina Alexandra Buhimschi; Yafeng Dong; Helen Zhou; Risa Ramsey; Robert Egerman; Catalin Sorin Buhimschi
Journal:  Diagnostics (Basel)       Date:  2022-05-27

2.  Predicting Hospital Readmission for Campylobacteriosis from Electronic Health Records: A Machine Learning and Text Mining Perspective.

Authors:  Shang-Ming Zhou; Ronan A Lyons; Muhammad A Rahman; Alexander Holborow; Sinead Brophy
Journal:  J Pers Med       Date:  2022-01-10
  2 in total

北京卡尤迪生物科技股份有限公司 © 2022-2023.