 Research
 Open access
 Published:
Support vector machine with hypergraphbased pairwise constraints
SpringerPlus volume 5, Article number: 1651 (2016)
Abstract
Although support vector machine (SVM) has become a powerful tool for pattern classification and regression, a major disadvantage is it fails to exploit the underlying correlation between any pair of data points as much as possible. Inspired by the modified pairwise constraints trick, in this paper, we propose a novel classifier termed as support vector machine with hypergraphbased pairwise constraints to improve the performance of the classical SVM by introducing a new regularization term with hypergraphbased pairwise constraints (HPC). The new classifier is expected to not only learn the structural information of each point itself, but also acquire the prior distribution knowledge about each constrained pair by combining the discrimination metric and hypergraph learning together. Three major contributions of this paper can be summarized as follows: (1) acquiring the highorder relationships between different samples by hypergraph learning; (2) presenting a more reasonable discriminative regularization term by combining the discrimination metric and hypergraph learning; (3) improving the performance of the existing SVM classifier by introducing HPC regularization term. And the comprehensive experimental results on twentyfive datasets demonstrate the validity and advantage of our approach.
Introduction
Support vector machine (SVM) (Vapnik 1995; Cortes and Vapnik 1995), founded on Vapnik’s statistical learning theory, has already reached many achievements in practical problems. For binary classification problems, its target is to find a separating hyperlane being the middle one between two parallel hyperplanes, where the two hyperplanes are constructed following the maximum margin principle. As for its solution, obtained by solving a quadratic programming problem (QPP) in the dual space, is global optimal. Furthermore, the kernel function (ShaweTaylor and Cristianini 2004) introduced into SVM not only maps training vectors into a highdimensional space, but also successfully transforms the nonlinear case into linear case. Thus, the case of nonlinear kernels is handled along lines similar to that used for linear kernels. Although the classical SVM has many good properties, one of the main challenges for it is the high computational complexity of the QPP. In addition, the trained performance also depends on the optimal parameters, which are usually found by crossvalidation method. These shortcomings not only cause SVM to take a long time to train on a large database, but also prevent it from locating the optimal parameters from a very fine grid over a large span. Recently, many efficient learning algorithms and models related to SVM have emerged, such as the chunking algorithm (Cortes and Vapnik 1995), the decomposition method (Osuna et al. 1997), sequential minimal optimization (SMO) (Keerthi et al. 2001), the least squares support vector machine (LSSVM) (Suykens et al. 1999), \(\nu \) SVM (Schölkopf et al. 2000), the generalized eigenvalue proximal support vector machine (GEPSVM) (Mangasarian and Wild 2006), and geometric algorithms (Franc and Hlavác 2003; Mavroforakis and Theodoridis 2007; Tao et al. 2008).
A common disadvantage of the existing large margin classifiers, including SVM, is that they fail to exploit the prior structural information which may be very important for classification effectiveness. In fact, for different problems, different classes may have different underlying data structural information. Thus, it is desirable that a classifier should be adaptable to the discriminant boundaries to fit the geometric structures of the data, especially for improving the generalization performance of the classifier. Recently, some efficient algorithms related to SVM have been developed to give more weightage to the structural information, which provide a novel view to design a classifier, i.e., a classifier should be sensitive to the prior structural distribution of the data (Yeung et al. 2007). Currently, there are mainly two strategies to design various algorithms based on the structural distribution of the training data. The first one is cluster assumptionbased (Rigollet 2007), which assumes that the training data contains several clusters, and then deduces several popular large margin classifiers, such as ellipsoidal kernel machine (EKM) (Shivaswamy and Jebara 2007), minimax probability machine (MPM) (Lanckriet et al. 2002), maximin margin machine (M4) (Huang et al. 2004), and structured large margin machine (SLMM) (Yeung et al. 2007), structural regularized support vector machine (SRSVM) (Xue et al. 2011). The second strategy is manifold assumptionbased, which assumes that the training data actually lies on a lowdimensional submanifold in the input space. A typical paradigm in this strategy is Laplacian support vector machine (LapSVM) (Belkin et al. 2004), which constructs a Laplacian graph for each class by exploiting the local neighborhoods of each data to form the corresponding Laplacian matrix to reflect the geometric structure of each class data. And then they are embedded into the traditional SVM framework as additional manifold regularization terms.
Even though the above modified SVM methods utilize the prior structural information of the training data to adjust the discriminant boundaries, there still might be some useful knowledge neglected, for example, the additional regularization term only indicates the relationship between two corresponding samples, without considering the highorder relationship between several samples.
The traditional pairwise constraints (PC) method (Hu et al. 2008; Yu et al. 2012a, b; Qian et al. 2013), which is powerful in semisupervised or unsupervised learning tasks, mainly pays attention to the discrimination distance between two patterns while neglecting the spatial distance that might be also important. To overcome this drawback (Zhu et al. 2015), designed a new strategy to combine the discrimination metric based on the traditional PC and the Euclidean distance measure together, i.e., the modified pairwise constraints (MPC) method. In MPC, the spatial measure strategy is based on the simplegraphconstructing. However, the simple graph learning methods only consider the pairwise relationship between two samples and ignore the highorder relationship between several samples. Hypergraph learning (Zhou et al. 2006; Yu et al. 2012a, b; Wei et al. 2015) aims to get the relationship between several samples in a higher order, and thus achieves a promising performance in many applications. Inspired by the above studies, we design a novel hypergraphbased pairwise constraints (HPC) regularization term, which not only acquires the discriminative information about each constrained pair, but also considers the higher order relationship between different patterns. In this paper, we introduce the newlydesigned HPC regularization term into SVM, and present a novel algorithm, i.e., support vector machine with hypergraphbased pairwise constraints (HPCSVM). This HPCSVM not only retains the superior characteristics of SVM, but also has its additional advantages: (1) getting comparable or better classification accuracies compared to SVM and its variants; (2) acquiring highorder relationship between several samples by hypergraph learning; (3) presenting a more reasonable discriminative regularization term by combining the discrimination metric and the hypergraph learning.
The rest of this paper is organized as follows. In Background” section, brief overviews of SVM and hypergraph learning are given. In “Support vector machine with hypergraphbased pairwise constraints” section, we first introduce the newlydesigned HPC regularization term, and then detail the proposed HPCSVM, both the linear and nonlinear cases are included. “Experiments” section discusses the comprehensive experimental results on the UCI benchmark datasets to investigate the feasibility and validity of our proposed algorithm, and “Conclusion” section concludes the paper.
Background
Support vector machine
SVM is a powerful and promising paradigm for pattern classification and regression. It emerges from research in statistical learning theory about how to regulate the tradeoff between empirical risk and structural complexity. And its main attempt is to reduce the generalization error by maximizing the margin between two parallel supporting hyperplanes.
Given a training dataset \(T = \{ (x_{1} ,y_{1} ), \ldots ,(x_{l} ,y_{l} )\}\), where \(x_{i} \in R^{n}\), \(y_{i} \in \{ + 1,  1\}\), \(i = 1,2, \ldots ,l\). SVM searches for an optimal separating hyperplane to correctly separate the positive points and the negative points defined as
where \(w \in R^{n}\) and \(b \in R\).
By introducing the regularization term \(\frac{1}{2}\left\ w \right\^{2}\) and the slack variable \(\xi = (\xi_{1} ,\xi_{2} , \cdots ,\xi_{l} )^{T}\), the optimization problem corresponding to SVM can be expressed as
where \(C > 0\) is a penalty parameter. Note that the minimization of the regularization term \(\frac{1}{2}\left\ w \right\^{2}\) is equivalent to the maximization of the margin between two classes. Generally, rather than solving (2), we solve its dual problem to get the appropriate margin classifier.
Using the dual optimization technique, one can show that the dual problem of (2) can be expressed as
where \(\alpha_{i}\), \(i = 1, \ldots ,l,\) are the Lagrangian multipliers.
Suppose the solution of (3) is \(\alpha^{*} = (\alpha_{1}^{*} , \cdots ,\alpha_{l}^{*} )^{T}\), then
where \(\alpha_{j}^{*}\) is a component of \(\alpha_{{}}^{*}\), and \(\alpha_{j}^{*} \in (0,C)\).
A new sample \(x_{{}}^{{}}\) is classified as +1 or −1 according to the final decision function as follows
Hypergraph learning
Hypergraph learning is derived from the theory of simple graph learning. In a simple graph, an edge is connected with two samples and the weight of the edge only indicates the relationship between two corresponding samples. While in reality, the highorder relationship between several samples is critical. Thus we can completely represent the complex relationships among samples by using hypergraph, in which each hyperedge could connect more than two samples. Below we give out a concrete example (Fig. 1) to show the difference between simple graph and hypergraph.
Given a dataset \(V = \{ x_{1} , \ldots ,x_{l} \}\), where \(x_{i} \in R^{n}\), \(i = 1,2, \ldots ,l\). Hypergraph \(G = (V,E,W)\) is composed of the vertex set \(V_{{}}\) and the hyperedge set \(E\). \(W_{{}}\) is a diagonal matrix with its diagonal elements indicating the weights of the hyperedges. Each hyperedge \(e\) is a subset of \(V\), and the weight of hyperedge \(e\) is denoted as \(w(e)\). The incidence matrix \(\varphi_{{V \times E{\kern 1pt} }}\) of \(G_{{}}\) is defined as follows
The degree of a vertice \(v\) is defined as
The degree of a hyperedge \(e\) is defined as
The weight of a hyperedge \(e\) is defined as
where \(x_{e}\) is the centroid vertex of the hyperedge \(e\).
And the distance between two samples is
where
Then, the adjacency matrix \(P_{{}}\) of the hypergraph \(G_{{}}\) is defined as \(P = \varphi WD_{e}^{  1} \varphi^{T}\), where \(D_{e}\) is a diagonal matrix with its diagonal elements indicating the degrees of hyperedges, \(\varphi^{T}\) is the transpose of \(\varphi\).
Support vector machine with hypergraphbased pairwise constraints
In theory, the connection between the intraclass patterns should be as strong as possible, while the connection between interclass patterns should be as weak as possible. In this section, we present an HPC strategy to strengthen the connection of intraclass patterns and weaken the connection of interclass patterns, and then introduce this novel trick into SVM. More specifically, on the one hand, the relationships between several samples in a higher order are acquired by hypergraph learning, on the other hand, a more reasonable discriminative regularization term is presented by combining the discrimination metric and hypergraph learning, at last, this novel regularization term is introduced into SVM to get a better classifier.
Hypergraphbased pairwise constraints
This subsection first introduces the previous work of PC, and then presents an MPC strategy to overcome the drawback of PC without acquiring the spatial distribution of samples, finally, an HPC strategy combining hypergraph learning is proposed.
The traditional pairwise constraints method
PC, i.e., the mustlink and cannotlink constraints, were first introduced in Lange et al. (2005). In detail, the mustlink means a pair of samples should be allotted to the same cluster, while the cannotlink performs the opposite operation. Since then, efforts have been made to apply PC to both clustering (Hu et al. 2008; Zeng et al. 2012; Qian et al. 2013) and supervised classification (Ko et al. 2007; Li et al. 2012) tasks. Besides, it is also utilized for semisupervised classification (Goldberg et al. 2007; Zhang et al. 2010), the feature extraction (Sun and Zhang 2010; Yang and Song 2010), the dimension reduction (Wang et al. 2010), and the neural network (Maggini et al. 2012).
The form of the traditional PC discussed in this paper goes along the same lines as that was defined in (Qian et al. 2013; Ko et al. 2007; Li et al. 2012)
where \(x_{i}\) and \(x_{j}\) are two samples, whose labels are \(y_{i}\) and \(y_{j}\), respectively, and \(z_{ij} = y_{i} y_{j}\). This form gives out a discrimination metric to strengthen the connection of intraclass samples and weaken the connection of interclass samples, which plays a similar role as the Laplacian loss in (Hu et al. 2008).
Modified pairwise constraints method
The traditional PC method might lose its efficacy when dealing with classification problem because it learns the relationship between each pair of samples from the prediction function without acquiring the spatial distribution of samples. To overcome this drawback (Zhu et al. 2015), combined the spatial information and the traditional PC and presented a modified PC as
where \(x_{i}\) and \(x_{j}\) are two samples, whose labels are \(y_{i}\) and \(y_{j}\) respectively, \(z_{ij} = y_{i} y_{j}\), and the spatial measure strategy is adopted as
where, \(N_{k} (x_{i} )\) contains the knearest neighbors of the sample \(x_{i}\), \(\gamma_{{}}\) is the coefficient to control the influence of \(t_{{}}\), and \(t_{{}}\) is the mean squared mutual distance between each pair samples.
In MPC, the weight \(w_{ij}\) is relatively large when the two samples are spatially close to each other, while \(w_{ij}\) becomes relatively small when the two samples are spatially away from each other, which is the most commonly used spatial distribution learning strategy.
Hypergraphbased pairwise constraints method
In MPC, the spatial measure strategy is essentially based on simple graph. So, the weight only indicates the relationship between the two corresponding samples. While in reality, relationships among the samples of our interest are more complex than pairwise. Therefore, we consider using hypergraph instead of the simple graph to completely represent the complex relationships among the samples.
Extract the vertex set \(V = \{ x_{1} , \ldots ,x_{l} \}\) from the given training set \(T = \{ (x_{1} ,y_{1} ), \ldots ,(x_{l} ,y_{l} )\}\), then establish a hypergraph \(G = (V,E,W)\) as in “Hypergraph learning” section. The adjacency matrix \(P\) of hypergraph \(G_{{}}\) is defined as \(P = \varphi WD_{e}^{  1} \varphi^{T}\), where \(\varphi ,W,D_{e}\) represent the same meaning as in “Hypergraph learning” section. We present the hypergraphbased PC as follows
where \(x_{i}\) and \(x_{j}\) are two samples, whose labels are \(y_{i}\) and \(y_{j}\), respectively, and \(z_{ij} = y_{i} y_{j}\).
To be more feasible and effective, here we adopt the distance measure strategy as follows
where \(\gamma_{{}}\) is the coefficient to control the influence of \(\sigma_{{}}^{2}\), and
Linear case
SVM aims to find an optimal separating hyperplane, which is defined as \(f(x) = (w \cdot x) + b = 0\), to correctly separate the two class points. According to Formula (16), the hypergraphbased regularization term \(R_{pc}\) is formulated as
where \(f = [f(x_{1} ),f(x_{2} ), \ldots ,f(x_{l} )]^{T} = Mw + sb\), \(M \in R_{{}}^{l \times n}\) includes all of the samples, \(s\) is a vector of ones of appropriate dimensions, \(L^{\prime} = L + (U  Z) \cdot P\), \(L_{{}} = D  P\), \(D\) is a diagonal matrix with \(d_{ii} = \sum\nolimits_{j = 1}^{l} {p_{ij} }\), \(U\) is a allone matrix and \(\cdot\) is the Hadamard product. Similarly, we can also formulate the regularization term corresponding to the negative hyperplane.
By adding the proposed regularization term \(R_{pc}\) into SVM, we construct the optimization problems as follows:
where \(c,c_{1} > 0\) are the parameters used to denote the tradeoff among each term in the objective function, \(\xi_{i} ,i = 1, \ldots ,l,\) are the slack variables, and \(s\) is a vector of ones of appropriate dimensions.
The first term of (20) has the same effect as in SVM, i.e., maximizing the margin between two disjoint half planes. The second term is the discriminative information regularization term, which exploits the similarity and the dissimilarity of the labels through utilizing pairwise constraint information. If the two items belong to the same class, we encode the similarity between \(x_{i}\) and \(x_{j}\) as \(p_{ij} (f(x_{i} )  f(x_{j} ))^{2}\), and minimization of this penalty term tends to compel \(f(x_{i} ) \approx f(x_{j} )\), i.e., the examples which have the same label should have the approximate real values. If the two items belong to different classes, we encode the dissimilarity between \(x_{i}\) and \(x_{j}\) as \(p_{ij} (f(x_{i} ) + f(x_{j} ))^{2}\), and minimization of this penalty term tends to compel \(f(x_{i} ) \approx  f(x_{j} )\), i.e., the real values of the examples which have different labels should be close to a pair of opposite number. And \(p_{ij}\) is the weight between two patterns, which implies the relationship between several samples in a higher order. The third term is the empirical risk, which restricts that negative samples should lie below the bounding plane \((w \cdot x) + b =  1\), while positive samples should lie above the bounding plane \((w \cdot x) + b = 1\).
In order to solve the problem (20), we construct its matrix form
where \(y\) is a label vector of all the samples, and \(\cdot\) is the Hadamard product.
By introducing the Lagrangian function of (21)
where \(\alpha = (\alpha_{1} ,\alpha_{2} , \ldots ,\alpha_{l} )^{T}\) and \(\beta = (\beta_{1} ,\beta_{2} , \ldots ,\beta_{l} )^{T}\) are the Lagrange multiplier vectors. And the Karush–Kuhn–Tucker (K.K.T) conditions for (22) are given by
where \(y \circ M\) defines a matrix of the same size as \(M\), of which the \(ith\) row is \(y_{i} \cdot M_{i}\).
Since \(\beta \ge 0\), from (25) we have
Next, combining (23) and (24) leads to
Define \(H = \left( {\begin{array}{*{20}l} I \hfill & \quad \hfill \\ \hfill & \quad 0 \hfill \\ \end{array} } \right)\), \(J = [M{\kern 1pt} {\kern 1pt} {\kern 1pt} \;s]\). The Eq. (30) can be rewritten as
Then
To avoid the positive semidefinite matrix \(H + c_{1} J^{T} L^{{\prime }} J\) being irreversible, a regularization term \(\varepsilon I(\varepsilon > 0)\) is introduced. Then, (32) gets modified to the following formulation
Finally, the Wolfe’s dual of (21) is derived as follows
Suppose the solution of (34) is \(\alpha^{*} = (\alpha_{1}^{*} , \ldots ,\alpha_{l}^{*} )^{T}\), then the augmented vector of (32) can be obtained. And a new testing sample \(x_{{}}^{{}}\) is classified as +1 or −1 according to the final decision function as follows
Nonlinear case
In order to extend our HPCSVM to the nonlinear case, we rewrite the decision function as:
where \(\Phi ( \cdot )\) is a nonlinear mapping from a low dimensional space to a higher dimensional Hilbert space. According to Hilbert space theory (Schölkopf and Smola 2002), \(w\) can be expressed as \(w = \sum\nolimits_{i = 1}^{l} {u_{i} \Phi (x_{i} )}\). So the decision function can be expressed as:
where \(K( \cdot )\) stands for a kernel function: \(K(x_{i} ,x_{j} ) = (\varPhi (x_{i} ) \cdot \varPhi (x_{j} ))\). So the nonlinear optimization problems can be expressed as
where \(c,c_{1} > 0\) are the predefined parameters, \(\xi_{i} ,i = 1, \ldots ,l,\) are the slack variables, \(s\) is a vector of ones of appropriate dimensions, and \(M \in R_{{}}^{l \times n}\) includes all of the samples.
Similarly, we rewrite the matrix form of (38) as follows
where \(K = K(M,M^{T} )\).
Adopting the similar process to the linear case, we can derive the dual formulation of (39) as follows
where \(y\) is a label vector of all the samples, \(H_{\varPhi } = \left( {\begin{array}{*{20}c} K & {} \\ {} & 0 \\ \end{array} } \right)\), \(J_{\varPhi } = [K{\kern 1pt} {\kern 1pt} {\kern 1pt} \;s]\).
Furthermore, we can get
Once the augmented vector of (41) is obtained, a new testing sample \(x_{{}}^{{}}\) is classified as +1 or −1 according to the final decision function as follows
Analysis of algorithm
According to statistical theory, the training points are generated independently and identically according to an unkow but fixed probability distribution, i.e., all the training points should have some degree of underlying correlation. However, in SVM and its many variants, the potential structural information of the training data has not been taken into account when constructing optimization problems. In this paper, we present a novel discriminative regularization term named \(R_{pc}\) with hypergraphbased PC method, which is expected to acquire the prior distribution knowl edge about each constrained pair with both the discrimination metric from the traditional PC and the highorder relationship between different samples from hypergraph learning, and then introduce it into SVM.
Now we analyze our proposed HPCSVM concretely:

1.
Inheriting the maximalmargin principle. In SVMs, the minimization of the regularization term \(\frac{1}{2}\left\ w \right\^{2}\) is equivalent to the maximization of the margin between the two parallel supporting hyperplanes. In our HPCSVM, we still choose the same regularization term \(\left\ w \right\^{2}\) to reflect the capacity of the decision function and the size of margin.

2.
Extracting the potential structural information of the data. In SVM and its many variants, the optimal separating hyperplane is established with considering each sample independently, i.e., without considering the relationship between every pair of samples. In our algorithm, we design a novel HPC regularization term to extract the discriminative information about each constrained pair as the potential structural information, and then apply it to adjust the separating hyperplane.

3.
Getting the relationship between several samples in a higher order. In MPC, the spatial measure strategy is essentially based on simple graph. While in reality, relationships among the samples are more complex than pairwise. Therefore, we use a hypergraph instead of the simple graph to completely represent the complex relationships among the samples and propose a novel discriminative information regularization term named HPC.

4.
The limitation of our HPCSVM. A limitation of HPCSVM is that it cannot handle largescale problems. There are two main reasons leading to such a limitation. On the one hand, our HPCSVM has to find the knearest neighbors for all the samples in the stage of the establishment of hypergraph. On the other hand, the computation and storage of kernel function are the bottlenecks of almost all SVMs, so does the HPCSVM.
Experiments
In this section, we demonstrate the validity and efficiency of our proposed method HPCSVM on twentyfive benchmark datasets from UCI machine learning repository by comparing with SVM, LSSVM, structural regularized support vector machine (SRSVM) and support vector machine with modified pairwise constraints (MPCSVM). To make the results more convincing, we use fivefold crossvalidation (Duda et al. 2001) to estimate the accuracy of each experiment. More specifically, the training set is randomly partitioned into five subsets which are roughly of equal size, and one of those subsets is reserved as the testing set whereas the remaining subsets serve as the training set. This process is repeated five times until all of the five subsets have been set to be a testing one once, and the average of the five accuracies is regarded as the classification accuracy of each experiment.
All the algorithms are written in MATLAB 2012a on Windows 7 running on a PC with system configuration Intel(R) Core(TM) 2 Duo CPU E7500 (2.93 GHz) with 2.00 GB of RAM. And the evaluation criterion of each algorithm is the classification accuracy of the testing examples, which is defined as follows:
where \(TP\), \(TN\), \(FP\) and \(FN\) are the numbers of true positive, true negative, false positive and false negative on the testing examples, respectively.
Parameter selection
In our experiments, we adopt the grid search method to get the optimal parameters. In addition, for the nonlinear case, all the algorithms adopt Gaussian kernel \(K(x,y) = \exp (  \sigma x  y^{2} )\) for the decision space. As for the tuning parameters, i.e., the Gaussian kernel parameter \(\sigma\), the penalty parameter \(c\), and the tradeoff parameter \(c_{1}\) are all selected from the set: \(\{ 10^{  2} ,10^{  1} ,10^{0} ,10^{1} ,10^{2} \}\). And the optimal value \(k_{{}}\) for knearest neighbors in MPCSVM and HPCSVM is searched from the set: \(\{ 3,4,5,6,10,15\}\). For largescale problems, the range of all the parameters will be narrowed uniformly due to the long training time.
Experimental results and discussions
We experiment our HPCSVM on twentyfive realworld datasets from the UCI machine learning repository. These datasets represent a wide range of fields (include pathology, finance, agronomy and so on), sizes (from 100 to 1473) and features (from 3 to 60). All the datasets are normalized such that the feature’s scale is in [0, 1] before training.
Comparisons of different methods
In order to prove our proposed method be better, we compare the experimental results of various methods mentioned above. The main objects and motivations of the comparison are shown in Table 1.
Result comparisons and discussion
This subsection describes empirical comparisons of various models, such as SVM, LSSVM, SRSVM, MPCSVM and HPCSVM. The average classification accuracies and standard deviations are reported in Tables 2 and 3. And the average execution time of fivefold crossvalidation for each experiment is demonstrated too. Complementally, for MPCSVM and HPCSVM, the execution time includes graph establishment. The comparison results in italic face are the best results. Table 2 shows the performance of linear HPCSVM with that of linear SVM, LSSVM, SRSVM and MPCSVM. Table 3 gives the performance of nonlinear HPCSVM with that of nonlinear SVM, LSSVM, SRSVM and MPCSVM. By comparing, we find:

1.
SRSVM versus SVM: In SRSVM, we adopt the Ward’s linkage clustering to capture the underlying data distribution within classes, and then the structural information is directly embedded into the objective function by the minimization of the compactness between the estimated clusters. For both linear and nonlinear classifiers, we can find that, except for Tictactoe, all the remaining experimental results of SRSVM are much better than that of SVM. In a word, the comparison between these two methods illustrates the prior structural information within classes in the data is effective for classification.

2.
MPCSVM versus SVM: In MPCSVM, we adopt the MPC trick to extract the discriminative information, then introduce the coresponding regularization term into SVM. For linear classifiers, we can find that, except for Tictactoe, all the remaining experimental results of MPCSVM are better than that of SVM. For nonlinear classifiers, MPCSVM and SVM get the same experimental results on Sonar and Tictactoe, while for other twentythree datasets, all the experimental results of MPCSVM are superior to that of SVM. Thus, we may safely draw the conclusion, the discriminative information about each constrained pair in data is effective for classification.

3.
MPCSVM versus SRSVM: For both linear and nonlinear classifiers, there exist sixteen datasets whose experimental results of MPCSVM are better than that of SRSVM, respectively, even if the datasets are not exactly the same in the two cases. Thus, we may safely draw the conclusion, the discriminative information about each constrained pair is more effective than the structures in the data within classes for classification.

4.
HPCSVM versus MPCSVM: In our HPCSVM, we adopt the HPC trick to extract the discriminative information in data, then introduce the coresponding regularization term into SVM. For linear classifiers, we can find that, HPCSVM and MPCSVM get the same experimental results on nine datasets, while for other sixteen datasets, there are twelve datasets whose experimental results of HPCSVM are better than that of MPCSVM. For nonlinear classifiers, there exist only six datasets whose experimental results of HPCSVM are poorer than that of MPCSVM. So, the comparison of these two methods demenstrates that the discriminative information with highorder relationship between different samples is more reasonable.

5.
HPCSVM versus LSSVM: For linear classifiers, except for Tictactoe, all the remaining experimental results of HPCSVM are better than that of LSSVM. For nonlinear classifiers, except for Seeds, Sonar and Tictactoe, the remaining twentytwo experimental results of HPCSVM are better than that of LSSVM. Hence, the comparison of these two methods illustrates our proposed HPCSVM is not only better than SVM, but also better than its variants.
From Tables 2, 3, we may safely draw the conclusion, as long as the discriminative information regularization term is adopted, the best results always appear in the last two columns, i.e., experimental results on the twentyfive benchmark datasets demonstrate the discriminative information about each constrained pair in data is more effective than the structural information within classes for classification. Furthermore, we remodify the recently presented MPC regularization term with HPC method, which is expected to acquire the highorder relationship between different samples. And the comparison of the last two columns demonstrates the discriminative information with highorder relationship between several samples is more reasonable than with the pairwise relationship between two samples. In the following paper, we further analyze the statistically significant difference between results and the influence of parameter \(k\) in our HPCSVM.
Statistical test
In statistics, the Holm–Bonferroni test is a simple method for multiple Student’s t test. For this, first, we order the p value of each dataset in ascending order as \(p_{(1)} ,p_{(2)} ,p_{(3)} ,p_{(4)}\), and denote the associated hypotheses as \(H_{(1)} ,H_{(2)} ,H_{(3)} ,H_{(4)}\). For the given significance level \(\alpha = 0.05\), let \(m\) be the minimal index such that
Then, the null hypotheses \(H_{(1)} , \ldots ,H_{(m  1)}\) are rejected and \(H_{(m)} , \ldots ,H_{(4)}\) are not rejected. In this way, we can find that, for the linear case, among the 100 null hypotheses, there exist 4 hypotheses which are judged that our method has significant advantage over others, while for the nonlinear case, there only exist 2. These test results illustrate that our method is not obviously better than others. However, it is worth mentioning that HPCSVM obtains the better accuracies than the other algorithms on most datasets. This indicates that HPCSVM does not reduce any generalization performance compared with others.
Influence of cluster parameter
Below, in order to investigate the influence of cluster parameter \(k\) in our HPCSVM, we perform an experiment on a relatively large dataset, i.e., Diabetes. And the value of \(k\) ranges from 2 to 15. The comprehensive experimental results are shown in Fig. 2, which shows the tendency of testing precision as the growth of \(k\). Note that, for both linear and nonlinear cases, the testing precision first increases and then decreases as the growth of \(k\). The main reason may be, a too small \(k\) could easily remove some useful information, whereas, a too large \(k\) could introduce some noise points, and both of the two cases could reduce the prediction accuracy. Thus, an appropriate parameter \(k\) is very important.
Conclusion
As we know, the potential structural information of the training data is ignored by SVM. In order to mitigate this shortcoming, in this paper, we present a novel algorithm termed as HPCSVM to improve the generalization performance of SVM. More specifically, on the one hand, we could acquire the highorder relationships between different samples by hypergraph learning, on the other hand, we present a more reasonable discriminative regularization term by combining the discrimination metric and hypergraph learning together, at last, we introduce this novel regularization term into SVM to adjust the optimal separating hyperplane which is obtained by SVM. As expected, the novel model yields better generalization performance than SVM and its variants. However, it has more tuning parameters, so, effective model selection for the new method is an open research area.
References
Belkin M, Niyogi P, Sindhwani V (2004) Manifold regularization: a geometric framework for learning from examples. Dept Comput Sci, Univ Chicago, Chicago, IL, Tech. Rep TR200406, Aug
Cortes C, Vapnik V (1995) Support vector networks. Mach Learn 20:273–297
Duda RO, Hart PE, Stork DG (2001) Pattern classification, 2nd edn. Wiley, New York
Franc V, Hlavác V (2003) An iterative algorithm learning the maximal margin classifier. Pattern Recogn 36:1985–1996
Goldberg A, Zhu X, Wright S (2007) Dissimilarity in graphbased semisupervised classification. In: Proceedings of the international conference on artificial intelligence and statistics, pp 155–162
Hu Y, Wang J, Yu N, Hua X (2008) Maximum margin clustering with pairwise constraints. In: 2008 Proceedings of the 8th IEEE international conference on data mining, pp 253–262
Huang K, Yang H, King I, Lyu M R (2004) Learning large margin classifiers locally and globally. In: Proceedings of the 21st international conference on machine learning, Banff, pp 1–8
Keerthi SS, Shevade SK, Bhattacharyya C, Murthy KRK (2001) Improvements to platt’s SMO algorithm for SVM classifier design. Neural Comput 13:637–649
Ko A, Sabourin R, Britto A, Oliveira L (2007) Pairwise fusion matrix for combining classifiers. Pattern Recogn 40:2198–2210
Lanckriet GRG, Ghaoui LE, Bhattacharyya C, Jordan MI (2002) A robust minimax approach to classfication. J Mach Learn Res 3:555–582
Lange T, Law M, Buhmann AJ (2005) Learning with constrained and unlabelled data. In: Proceedings of the IEEE conference on computer vision and pattern recognition, vol 1, pp 731–738
Li P, Li H, Wu M (2012) Multilabel ensemble based on variable pairwise constraint projection. Inf Sci 222:269–281
Maggini M, Melacci S, Sarti L (2012) Learning from pairwise constraints by similarity neural networks. Neural Netw 26:141–158
Mangasarian OL, Wild EW (2006) Multisurface proximal support vector classification via generalized eigenvalues. IEEE Trans Pattern Anal Mach Intel 28:69–74
Mavroforakis ME, Theodoridis S (2007) A geometric approach to support vector machine (SVM) classification. IEEE Trans Neural Netw 17:671–682
Osuna E, Freund R, Girosi F (1997) Support vector machines: training and applications. Technical Report. MIT Artificial Intelligence Laboratory, Cambridge
Qian Q, Chen S, Zhou X (2013) Multiview classification with crossview mustlink and cannotlink side information. KnowlBased Syst 54:137–146
Rigollet P (2007) Generalization error bounds in semisupervised classification under the cluster assumption. J Mach Learn Res 8:1369–1392
Schölkopf B, Smola AJ (2002) Learning with kernels: support vector machines, regularization, optimization, and beyond, adaptive computation and machine learning. MIT Press, Cambridge
Schölkopf B, Smola AJ, Williamson RC, Bartlett PL (2000) New support vector algorithms. Neural Comput 12:1207–1245
ShaweTaylor J, Cristianini N (2004) Kernel methods for pattern analysis. Cambridge University Press, Cambridge
Shivaswamy PK, Jebara T (2007) Ellipsoidal kernel machines. In: Proceedings 12th international workshop on artificial intelligence statistics, pp 1–8
Sun D, Zhang D (2010) Bagging constraint score for feature selection with pairwise constraints. Pattern Recogn 43:2106–2118
Suykens JAK, Lukas L, Dooren PV, Moor BD, Vandewalle J (1999) Least squares support vector machine classifiers: a large scale algorithm. In: Proceedings of European conference of circuit theory design, pp 839–842
Tao Q, Wu G, Wang J (2008) A general soft method for learning SVM classifiers with L1norm penalty. Pattern Recogn 41:939–948
Vapnik V (1995) The nature of statistical learning theory. Springer, New York
Wang X, Gao X, Yuan Y, Tao D, Li J (2010) Semisupervised gaussian process latent variable model with pairwise constraints. Neurocomputing 73:2186–2195
Wei B, Cheng M, Wang C, Li J (2015) Combinative hypergraph learning for semisupervised image classification. Neurocomputing 153:271–277
Xue H, Chen SC, Yang Q (2011) Structural regularized support vector machine: a framework for structural large margin classifier. IEEE Trans Neural Networks 22:573–587
Yang M, Song J (2010) A novel hypothesismargin based approach for feature selection with side pairwise constraints. Neurocomputing 73:2859–2872
Yeung D, Wang D, Ng W, Tsang E, Zhao X (2007) Structured large margin machines: sensitive to data distributions. Mach Learn 68:171–200
Yu J, Tao D, Rui Y, Cheng J (2012a) Pairwise constraints based multiview features fusion for scene classification. Pattern Recognit 46:483–496
Yu J, Tao D, Wang M (2012b) Adaptive hypergraph learning and its application in image classification. IEEE Trans Image Process 21:3262–3272
Zeng H, Song A, Cheung Y (2012) Improving clustering with pairwise constraints: a discriminative approach. Knowl Inf Syst 36:1–27
Zhang C, Cai Q, Song Y (2010) Boosting with pairwise constraints. Neurocomputing 73:908–919
Zhou D, Huang J, Schölkopf B (2006) Learning with hypergraphs: clustering, classification, and embedding. In: Proceedings of the neural information processing systems, pp. 1601–1608
Zhu Y, Wang Z, Gao D (2015) Matrixized learning machine with modified pairwise constraints. Pattern Recogn 48:3797–3809
Authors’ contributions
QLH and LJ conceived of the study, carried out its design and drafted the manuscript. ML and LZ performed the laboratory data collection and conducted the experimental results’ analysis. All authors read and approved the final manuscript.
Acknowledgements
This work is supported by the National Natural Science Foundation of China (NO. 11371365, NO. 11671032).
Competing interests
The authors declare that they have no competing interests.
Author information
Authors and Affiliations
Corresponding author
Rights and permissions
Open Access This article is distributed under the terms of the Creative Commons Attribution 4.0 International License (http://creativecommons.org/licenses/by/4.0/), which permits unrestricted use, distribution, and reproduction in any medium, provided you give appropriate credit to the original author(s) and the source, provide a link to the Creative Commons license, and indicate if changes were made.
About this article
Cite this article
Hou, Q., Lv, M., Zhen, L. et al. Support vector machine with hypergraphbased pairwise constraints. SpringerPlus 5, 1651 (2016). https://doi.org/10.1186/s400640163315x
Received:
Accepted:
Published:
DOI: https://doi.org/10.1186/s400640163315x