Abstract
In this paper, we propose a nonparallel support vector machine with pinball loss (Pin-NPSVM) that deals with the noise sensitivity and resampling instability of NPSVM. More specifically, we redefine a pinball loss funtion and build a pair of quantile hyper-planes. Each quantile hyper-plane is constructed by using the new pinball loss instead of ɛ-insensitive loss, which makes the new classification model be insensitive to noise samples, especially for feature noise samples around the decision boundary. Moreover, instead of hinge loss, Pin-NPSVM also builds a pair of decision boundaries based on traditional pinball loss, which further improves the anti-nosie ability of the classification model. In a word, Pin-NPSVM not only inherits the characteristics of the nonparallel optimal hyper-planes, but also has a consistent model with Pin-SVM, which can process noise data well. Finally, numerical experimental results show that the Pin-NPSVM has more obvious advantages than other models in classification performance, especially for noise datasets.
Introduction
Classification is one of the main problems in the field of data mining. There are varieties of algorithms [1–6] being used in classification technique. By comparsion, the support vector machine (SVM) [7] has advantages for solving the classification problem with small-scale data. Firstly, SVM adopts the principle of structural risk minimization and has good generalization performance. Secondly, SVM obtains an optimal classification hyper-plane by solving a quadratic programming problem (QPP) [8], which makes sure to find the global optimal solution. Thirdly, SVM uses the kernel function to transform nonlinear problem into linear problem, avoiding the dimension disaster and complexity of calculation. At present, SVM has been successfully applied in the fields of pattern classification and regression analysis [9–11]. Even so, there are spaces for improvement in SVM. On the one hand, SVM needs a lot of time to solve a large QPP. On the other hand, SVM is sensitive to noise, especially for feature noise around the decision boundary.
In order to improve the performance of SVM, many improved algorithms have been proposed. Such as, least squares support vector machine (LSSVM) [12], proximal SVM via generalized eigenvalues (GEPSVM) [13], and support vector data description (SVDD) [14]. The most typical one is twin support vector machine (TSVM) [15]. TSVM proposed by Jayadeva is derived from GEPSVM, and is similar to SVM in formula. The essence of TSVM is to determine two nonparallel hyper-planes by solving a pair of small QPPs. The nonparallel structure of TSVM makes itself more adaptive and robust. For example, TSVM is very suitable for the classification of cross datasets. In addition, TSVM replaces a complete QPP with two smaller QPPs, making its own computation four times faster than SVM. Therefore, in recent years, TSVM has been widely concerned and a series of improved TSVM algorithms have been proposed, such as v-TSVM [16], least squares TSVM (LS-TSVM) [17], twin bound SVM (TBSVM) [18] and nonparallel SVM (NPSVM) [19]. The validity and generalization of these models have been improved.
Furthermore, in order to suppress the adverse influence of noise samples for classification performance, various methods [17–20] have been proposed by scholars. For example, Vapnik et al. [20] proposed a method to discover information patterns from data, which can not only reduce the number of samples, but also remove noise samples. Herbrich et al. [21] proposed adapative margin SVM (AM-SVM), which uses the adapative margin to redefine the minimization problem in original SVM. This model can improve the robustness against outliers. Zhang et al. [22] and Qi et al. [23] respectively proposed rough margin SVM (RMSVM) and rough TSVM (R-TSVM). Both of these models realized the anti-noise ability by using rough set theory. Subsequently, Huang et al. [24] constructed a novel SVM model (Pin-SVM) based on pinball loss. It was first one to introduce the pinball loss into SVM. Theory and practice show that Pin-SVM can effectively supress noise. However, Pin-SVM cannot adapt to the classification of cross dataset.
As we know, nonparallel SVM-based classifiers do an excellent job of handling cross datasets. NPSVM is a representative achievement in the nonparallel classifiers. NPSVM seeks a pair of nonparallel hyper-planes by using the ɛ-insensitive loss and hinge loss functions. Unlike TSVM, NPSVM has the whole sparseness and does not have to calculate the inverse of matrices. But, one can see that only a part of training samples contribute to the hyper-planes. If there are a few noise samples, the hyper-planes will be changed, resulting in poor classification performance. This shows NPSVM is very sensitive to noise, which is consistent with that of standard SVM.
Hence, in this paper, inspired by Pin-SVM, the concept of pinball loss is applied to NPSVM model, and a novel NPSVM model (Pin-NPSVM) based on pinball loss is built. The proposed model not only improve the anti-noise ability of NPSVM, but also improve the generalization performance of Pin-SVM. The main characteristics of Pin-NPSVM are as follows: The construction idea of Pin-NPSVM is similar to TSVM. A big QPP in Pin-SVM is decomposed into two small related QPPs. And two nonparallel hyper-planes are built in Pin-NPSVM, such that each hyper-plane is proximal to data samples of one class and as far as possible from data samples of the other class. The structure of Pin-NPSVM is similar to that of NPSVM, which is suitable for the classification of cross datasets. Therefore, Pin-NPSVM proposed in this paper has better adaptability and generalization than Pin-SVM. Different from NPSVM, the pinball loss is used in Pin-NPSVM, rather than using ɛ-insensitivity loss and hinge loss, making Pin-NPSVM is insensitive to noise samples. Compared with TSVM, Pin-NPSVM has the incomparable merits that the inverse of the matrices does not have to be computed and the kernel trick can be applied directly. Comparing to SVM, TSVM, NPSVM and Pin-SVM, the preliminary numerical experiments show that our Pin-NPSVM has good anti-noise ability and gains better generalization ability and adaptability.
The remainder of this paper is organized as follows. In Section 2, a brief review about NPSVM is given. Our Pin-NPSVM is formulated in Section 3. In Section 4, numerical experiments on several datasets are given in order to verify the validity and applicability of the proposed model. In the same section, we provide comparisons with SVM and other state of the art algorithms. In Section 5, we draw some conclusions and give directions for future work.
Brief introduction to NPSVM
Consider the binary classification problem with the training set
For the linear case, NPSVM aims to construct a pair of nonparallel hyper-planes
Pinball loss
Considering a binary classification problem, the positive class samples set is
The concept of Pin-NPSVM is similar to that of Pin-SVM: the pinball loss is used. Differently, Pin-NPSVM searches for a pair of nonparallel quantile classification hyper-planes and two quantile boundaries. For quantile classification hyper-planes which are the same as (2), they are required to locate in the middle of positive and negative samples. In order to appropriately apply the idea of pinball loss into the Pin-NPSVM model, the pinball loss is redefined as the following. It is different from traditional pinball loss (5), since Pin-NPSVM builds the quantile classification hyper-planes
Moreover, because the quantile classification hyper-planes only need to be in the middle of each class samples. and their positions do not need to be adjustable, the adjustable parameter τ in the (6) and (7) does not be changed. In this paper, let τ be equal to 1. Therefore, the pinball loss is reformulated as the following.
Because all samples contribute to the quantile hyper-planes, the prior structure information of samples is considered, which improves the robustness of model. For the boundaries
Inspired by Pin-SVM and NPSVM, the standard pinball loss and redefined pinball loss are introduced to obtain the following Pin-NPSVM,
For (12),
To derive the dual problem, we introduce the following Lagrange function:
Let
According to (14–21), the Lagrange function (14) can be simplified. And the dual optimization problem of (12) is obtained as follows:
Obviously, the form of (23) is exactly the same as that of NPSVM, and can be solved by SMO algorithm. Similarly, the dual QPP of (13) is given as
For a new sample
Pin-NPSVM directly applies the kernel trick for nonlinear case, which is identical to NPSVM and Pin-SVM. In this paper, the Gaussian kernel function is applied and the nonlinear case of Pin-NPSVM is obtained. Next, the nonlinear Pin-NPSVM can be represented as:
The dual problems of (27) and (28) can be obtained as the linear Pin-NPSVM,
The solutions of primal problems (27) and (28) can be obtained by solving the dual problems (29) and (30). Once the [
As an improved algorithm, the Pin-NPSVM has some advantages and disadvantages compared with other state-of-the-art classifiers. They are embodied in the following aspects: The difference between Pin-NPSVM and TSVM. Both Pin-NPSVM and TSVM search for a pair of nonparallel hyper-planes, but the loss function they used is different. For TSVM, the least square loss and hinge loss are used, which aims at making the target class samples as much as possible aggregate, and the other class samples as far as possible away from the target class samples. Because of the introdution of least square loss, the inverse of matrix must be calculated. For large-scale dataset, it is not feasible. Meanwhile, the hinge loss makes the boundary be sensitive to noise, resulting in unsatisfactory classification results. Our Pin-NPSVM algorithm can successfully overcome the disadvantages of TSVM. Instead of least square and hinge losses, two pinball losses are adopted in Pin-NPSVM. Pin-NPSVM dose not calculate the inverse of matrix and is insensitive to noise. Moreover, Pin-NPSVM does not need to consider the extra kernel-generated surfaces since only inner products appear in the dual problems (23) and (24). The relationship between Pin-NPSVM and NPSVM. The Pin-NPSVM and NPSVM have a similar structure. The Pin-NPSVM almost inherits all advantages of NPSVM, such as not calculating the inverse of matrix and not considering the kernel-generated surfaces. Differently, the Pin-NPSVM adopts two pinball losses rather than ɛ-insensitive loss and hinge loss. Because of the pinball losses, Pin-NPSVM is insensitive to feature noise around the decision boundary. However, all samples are involved in the calculation, which leads to the lack of sparsity of Pin-NPSVM. The comparison between Pin-NPSVM, Pin-SVM and SVM. Pin-NPSVM, Pin-SVM and SVM have the same dual form, and they can be effectively solved by SMO algorithm. Different from SVM, Pin-NPSVM and Pin-SVM use pinball loss instead of hinge loss, making them have a better anti-noise ability than SVM. Moreover, unlike the SVM and Pin-SVM, our Pin-NPSVM has nonparallel structure, which enhances the generalization performance of the model. The comparision between our Pin-NPSVM and other classification algorithms, such as the non-negative matrix factorization (NMF) based method [25] and the Decision Tree (DT) algorithm [26]. The Pin-NPSVM algorithm is a binary classifier, which is more suitable for solving the classification for small-scale dataset. Meanwhile, the Pin-NPSVM is insensitive to feature noise around the decision boundary. Standard NMF is a matrix decomposition method, which can reduce the dimension of high-dimensional data matrix and is suitable for large-scale data processing. The NMF uses the squared error function to quantify the quality of matrix factorization, resulting in the model is sensitive to noise and outlier. DT algorithm which is a tree-like structure based on heuristic algorithms where local optimal decisions are made on each node. It cannot guarantee to return to the global optimal decision tree. And the DT algorithm is unstable and sensitive to noise. In terms of computational time, all the SVM classifiers are calculated by using QP techinque in Matlab Toolbox. Suppose there are l training samples, and the number of positive and negative samples is equal. The time complexity of DT is O (log(l)). And the computation complexity of Pin-SVM and SVM is nearly equal to O (l3). As for the NMF method, its computational complexity increases with the increase of training samples. Especially when the dimension of matrix is large, NMF algorithm is very time-consuming. But, NMF only needs to calculate the product of matrix once in testing phase, which is obviously better than SVM. For TSVM, two problems need to be solved and each of them is about of size 2/l, so the time cost of TSVM is O (2 × (l/2) 3). Obviously, the speed of TSVM is nearly four times faster than that of SVM. For NPSVM, two QPPs are calculated and each of QPPs is about of size (3l/2), so the computational time is O (2 × (3l/2) 3). Clearly, TSVM is nearly 27 times faster than NPSVM. Similarity, for Pin-NPSVM, it solves two QPPs and each of which is about of size l, therefore, the computation complexity of Pin-NPSVM is O (2 × l3), it is nearly 8 times slower than TSVM and 27/8 times faster than NPSVM. Obviously, our Pin-NPSVM is slower than TSVM, SVM and Pin-SVM, which is a shortcoming. Therefore, how to solve and optimize QPPs in Pin-NPSVM is important in the future.
Experiments
In order to testify the performance of Pin-NPSVM, a set of experiments are done on UCI datasets, ORL face dataset and steel surface defects datasets. Comparative experiments among Pin-NPSVM and six other state-of-the-art methods are performed on different datasets in this section. To reduce computation time, for NPSVM and Pin-NPSVM, let c1 = c3 = C1 and c2 = c4 = C2. For TSVM, let c1 = c2 = C3, where, the parameters C1, C2 and C3 are selected from {2
i
|i = -8, - 7, . . . , +8} by grid searching. In the experiments, the linear kernel K (
UCI datasets
To verify the validity of our Pin-NPSVM, fourteen datasets are selected form from UCI Machine Learning Repository [27]. The detailed characteristics of these datasets are shown in Table 1. These datasets are often used to test the performance of machine learning algorithms. All samples are normalized before training, and all parameters are selected by grid search and five-fold cross validation method. Then, each dimension of these datasets is corrupted by zero-Gaussian noise with variance of std noise , where std noise = std × r and std refers to the variance of each dimension in the original UCI dataset. And r is an adjustable non-negative parameter. In this experiment, let r = 0 and r = 0.05.
The attributes of UCI datasets
The attributes of UCI datasets
In this experiment, five SVM-based algorithms are compared in the original and corrupted sets. Tables 2–5 show the classification accuracies of the five classifiers in the original and corrupted sets. In all tables, the highest classification accuracies are represented by boldface.
The testing accuracies of linear models in the original sets
The testing accuracies of linear models in the corrupted sets
The testing accuracies of nonlinear models in the original sets
The testing accuracies of nonlinear models in the corrupted sets
From Tables 2 and 3, some conclusions can be drawn. Firstly, when r = 0, which means there are no noise in UCI datasets, the classification accuracies of Pin-NPSVM, NPSVM and TSVM are higher than those of Pin-SVM and SVM in most cases. The reason is that Pin-NPSVM, NPSVM and TSVM have nonparallel structure, which can be applied to the classification of cross datasets and effectively improve the robustness and generalization performance of the models. Secondly, when the UCI datasets are corrupted by zero-Gaussian noise with variance of 0.05, the Pin-NPSVM model outperforms TSVM and NPSVM in accuracy for most cases. And the classification accuracies of Pin-SVM are higher than those of SVM. It means that the pinball loss can effectively suppress the adverse impact of noise and improve the generalization performance. Thirdly, Tables 2 and 3 show that our Pin-NPSVM gets the best prediction accuricies for most datasets in the original and the corrupted sets. The reason is that all training samples contribute to the decision hyper-planes, which improves the generalization performance of the model. In addition, the Pin-NPSVM has good anti-noise ability because of the pinball loss. For Tables 4 and 5, similar conclusions can be obtained.
In order to justify the effectiveness of our Pin-NPSVM, some statistical tests such as the win/tie/loss, the Friedman test [28] and Nemenyi test [29] are used to compare these methods. The results of win/tie/loss are recorded in the last row of all tables. It can be seen that Pin-NPSVM obtains the best accuracy in most cases. It further justifies the statement that Pin-NPSVM is more outstanding than the other classifiers. Furthermore, the results of Friedman test and Nemenyi test are shown in Table 6 and Fig. 1. The Friedman test is used to statistically analyze the classification accuracy of the five classifiers on the corrupted sets. Under the null hypothesize, all the algorithms are equivalent. The Friedman statistic can be calculated by (32),

Nemenyi test.
For the corrupted sets, the ranks of five linear algorithms in terms of accuracy are reported in Table 6. Table 6 shows that the average rank of our Pin-NPSVM is the lowest, which is equal to 1.357, and the average ranks of the other four algorithms are 4.000, 3.786, 2.571 and 3.286 respectively. The result justifies that our Pin-NPSVM is more effective than the other algorithms. To further testify the significant advantage of Pin-NPSVM, we calculate the values of the Friedman’s
Average rank of linear classifiers in the corrupted sets
ORL face dataset [30] is a common dataset, which is often applied to supervised learning. This dataset contains 400 face images made up of 40 people. Each person has 10 pictures of face with different details, lighting and expressions. The size of each picture is 119 × 92, and the gray level is 256. For each person, 5 pictures are selected as training samples and the rest as testing samples. So, there are 200 training samples and 200 testing samples. In order to test the robustness of the Pin-NPSVM, a corrupted face dataset is built by the zero-Gaussian noise with the variance of 0.05. Figure 2 shows a human face of the original and the corrupted sets, respectively. The first image is the original face, and the second is the corrupted face.

Examples in the original and corrupted ORL face sets.
In the experiment, seven classifiers are compared. In order to realize multi-class classification, SVM, NPSVM, TSVM, Pin-SVM and Pin-NPSVM are combined with binary tree. Both NMF and DT algorithms can realize multi-class classification by themselves. The original and the corrupted sets are processed before training. Because only the performance of seven algorithms is compared, the experiment is executed on the original pixel features. For the original and corrupted sets, the classification accuracies of seven classifiers are shown in Fig. 3.

The testing results on the original and corrupted ORL face datasets.
By comparison, Pin-NPSVM and Pin-SVM yield better performance than other three SVM-based classifiers on the corrupted set. Meanwhile, the accuracy of Pin-NPSVM is higher than that of Pin-SVM. And, the classification accuracy of Pin-NPSVM on the corrupted set is slightly lower than that on the original set. It means that Pin-NPSVM is insensitive to noise. The reason is that the Pin-NPSVM has advantages of pinball loss and nonparallel structure. In addition, the NMF classifier is slightly better than SVM and TSVM in accuracy for the original and the corrupted sets, which shows that NMF classifier is more suitable for face recognition. But, for the corrupted set, NMF classifier couldn’t achieve good results, which implies that NMF is sensitive to noise. Moreover, it can be seen that the DT classifier is obviously affected seriously by the noise. The reason is that DT algorithm is less robust when the dataset is corrupted by noise.
To demonstrate the effectiveness of our Pin-NPSVM, we apply the Pin-NPSVM, NPSVM, TSVM, Pin-SVM, SVM and DT algorithms to steel surface defects datasets [31, 32]. In this experiment, six types of defects images are chosen, such as pitted-surface (PE), patches (PH), crazing (CG), inclusion (IN), scratches (SH) and rolled-in-scale (RE), which are shown in Fig. 4. These defects images are processed to obtain defects samples, and all defects samples form a defects samples set. The defects datasets include 3718 defects samples and each defect sample is a 18-dimensional vector.

Six types of defect images.
To verify the robustness of our Pin-NPSVM, the features of the defects samples are corrupted by zero-mean Gaussian noise with variance of 0.05, forming the corrupted defects datasets. The comparative experiment is done on the corrupted defects datasets. The five SVM-based classifiers are combined with ”1 vs rest” method to realize the classification problem for multi-class defects datasets. DT algorithm itself can achieve multi-class classification. Table 7 shows the classification accuracies of the six classifiers in the defects datasets.
The testing accuracies of six classifiers on defects datasets
From Table 7 we can learn that our Pin-NPSVM is always the best in accuracy for all types of defects datasets. And Pin-SVM has better performance than SVM with hinge loss. The result shows that the pinball loss can bring noise insensitivity. Moreover, the accuracies of Pin-NPSVM, NPSVM and TSVM are higher than those of SVM, which highlights that the nonparallel structure can enhance the generalization performance of the model. In addition, Pin-NPSVM and TSVM show better performance than NPSVM for the corrupted defects datasets, which implies that making full use of the prior structure information of data can improve the robustness of the model to noise samples. Furthermore, it can be seen that the DT algorithm is better than SVM, TSVM, Pin-SVM and NPSVM in accuracy. It shows that the DT algorithm is fit for the steel surface defects classification. In addition, we can also see that average rank of our Pin-NPSVM is the smallest among the all classifiers.
To further verify the superior performance of the Pin-NPSVM, the Friedmen test is adopted in this experiment. According to (32) and (33), we can have
In this paper, a novel Pin-NPSVM algorithm is proposed for pattern recognition. Pin-NPSVM has significant characteristics because of the pinball loss, the nonparallel structure and the prior structure information. Inspired by the Pin-SVM, the Pin-NPSVM is constructed by introducing the pinball loss into the NPSVM algorithm, which can ensure that Pin-NPSVM is insensitive to noise, especially for the feature noise around the decision boundaries. In addition, the Pin-NPSVM has better classification performance than Pin-SVM because of its nonparallel structure. Meanwhile, the prior structural information is considered for Pin-NPSVM, which can enhance the robustness of the model.
Finally, a large number of comparative experiments are carried out on the UCI datasets and image datasets to verify the effectiveness of the proposed Pin-NPSVM algorithm. The results show that the Pin-NPSVM holds better generalization performance than other state-of-the-art classifiers especially in solving the classification with noise. Moreover, it can be seen that there are at least four independent parameters in the Pin-NPSVM model. Too many parameters will affect the complexity of the model, so, we will focus on how to select the optimal parameters more effectively in the future.
Footnotes
Acknowledgment
The authors would like to thank the reviewers for helpful comments and suggestions. This work was supported by Natural Science Foundation of Liaoning Province, China (No. 20180550067), Liaoning Province Ministry of Education Scientific Study Project (No. 2017LNQN11) and University of Science and Technology Liaoning Talent Project Grants (No. 601011507-20 and No. 601013360-17).
