# Support vector machine with hypergraph-based pairwise constraints

- Qiuling Hou
^{1}, - Meng Lv
^{1}, - Ling Zhen
^{1}and - Ling Jing
^{1}Email author

**Received: **10 May 2016

**Accepted: **13 September 2016

**Published: **23 September 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 hypergraph-based pairwise constraints to improve the performance of the classical SVM by introducing a new regularization term with hypergraph-based 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 high-order 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 twenty-five datasets demonstrate the validity and advantage of our approach.

## Keywords

## 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 (Shawe-Taylor and Cristianini 2004) introduced into SVM not only maps training vectors into a high-dimensional 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 cross-validation 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 (LS-SVM) (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 assumption-based (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), maxi-min 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 assumption-based, which assumes that the training data actually lies on a low-dimensional submanifold in the input space. A typical paradigm in this strategy is Laplacian support vector machine (Lap-SVM) (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 high-order 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 semi-supervised 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 simple-graph-constructing. However, the simple graph learning methods only consider the pairwise relationship between two samples and ignore the high-order 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 hypergraph-based 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 newly-designed HPC regularization term into SVM, and present a novel algorithm, i.e., support vector machine with hypergraph-based 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 high-order 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 hypergraph-based pairwise constraints” section, we first introduce the newly-designed 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 trade-off 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.

### Hypergraph learning

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 hypergraph-based pairwise constraints

In theory, the connection between the intra-class patterns should be as strong as possible, while the connection between inter-class patterns should be as weak as possible. In this section, we present an HPC strategy to strengthen the connection of intra-class patterns and weaken the connection of inter-class 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.

### Hypergraph-based 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 must-link and cannot-link constraints, were first introduced in Lange et al. (2005). In detail, the must-link means a pair of samples should be allotted to the same cluster, while the cannot-link 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 semi-supervised 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).

#### Modified pairwise constraints method

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.

#### Hypergraph-based 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.

### Linear case

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\).

### Nonlinear case

### 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 hypergraph-based 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 high-order relationship between different samples from hypergraph learning, and then introduce it into SVM.

- 1.
Inheriting the maximal-margin 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 large-scale problems. There are two main reasons leading to such a limitation. On the one hand, our HPCSVM has to find the k-nearest 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 twenty-five 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 five-fold cross-validation (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.

### 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 trade-off 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 k-nearest neighbors in MPCSVM and HPCSVM is searched from the set: \(\{ 3,4,5,6,10,15\}\). For large-scale 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 twenty-five real-world 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

The objects and motivations of the comparison

Situation | Objects | Motivations |
---|---|---|

1 | SRSVM versus SVM | To demonstrate the prior structural information within classes in the data is effective for classification |

2 | MPCSVM versus SVM | To demonstrate the discriminative information about each constrained pair in data is effective for classification |

3 | MPCSVM versus SRSVM | To display the discriminative information is more effective than the structures in data within classes for classification |

4 | HPCSVM versus MPCSVM | To demonstrate our newly-designed HPC regularization term is more reasonable than the MPC regularization term |

5 | HPCSVM versus LSSVM | To display our proposed HPCSVM is also better than SVM’s variant |

#### Result comparisons and discussion

Test accuracy on UCI datasets for linear classifiers

Datasets | SVM | LSSVM | SRSVM | MPCSVM | HPCSVM | |||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|

Accuracy | Time (s) |
| Accuracy | Time (s) |
| Accuracy | Time (s) |
| Accuracy | Time (s) |
| Accuracy | Time (s) | |

Hepatitis (155 × 19) | 83.30 ± 6.64 | 0.06 | 0.6983 | 83.99 ± 8.98 | 0.02 | 0.8315 | 84.99 ± 8.25 | 0.07 | 0.5145 | 84.61 ± 7.11 | 0.09 | 0.9033 |
| 0.06 |

Heartstatlog (270 × 13) | 80.00 ± 5.16 | 0.16 | 0.2433 | 84.07 ± 6.04 | 0.03 | 0.8072 | 84.44 ± 5.05 | 0.21 | 0.8825 |
| 0.23 |
| 0.17 | |

Teaching (151 × 5) | 68.85 ± 2.80 | 0.06 | 0.2216 | 72.54 ± 5.36 | 0.03 | 0.8757 | 72.94 ± 5.36 | 0.07 | 0.8238 | 72.85 ± 5.31 | 0.07 | 0.8596 |
| 0.05 |

Haberman (306 × 3) | 73.53 ± 0.49 | 0.25 | 0.4298 | 74.50 ± 2.57 | 0.04 | 0.7847 |
| 0.28 | 0.8765 | 75.47 ± 3.55 | 0.26 | 0.9067 | 75.15 ± 3.86 | 0.17 |

Breast (683 × 9) | 96.04 ± 3.68 | 1.87 | 0.5185 | 96.05 ± 1.95 | 0.22 | 0.2999 | 97.19 ± 1.42 | 2.18 | 0.9124 | 97.21 ± 1.88 | 2.29 | 0.9009 |
| 1.59 |

BUPA (345 × 6) | 67.53 ± 3.73 | 0.30 | 0.2073 | 68.70 ± 6.19 | 0.05 | 0.5306 | 69.99 ± 4.55 | 0.32 | 0.7536 |
| 0.34 | 1 |
| 0.24 |

Diabetes (768 × 8) | 71.48 ± 2.65 | 2.54 | 0.0435 | 77.61 ± 4.65 | 0.34 | 0.8534 | 75.61 ± 4.65 | 2.28 | 0.5216 | 78.01 ± 3.87 | 2.40 | 0.9365 |
| 1.86 |

Seeds (210 × 7) | 95.24 ± 6.10 | 0.10 | 0.0037 | 97.14 ± 2.78 | 0.03 | 0.5796 |
| 0.12 | 0.8215 | 98.10 ± 1.78 | 0.14 | 1 | 98.10 ± 1.78 | 0.10 |

Sonar (208 × 60) | 72.16 ± 9.52 | 0.10 | 0.3209 | 77.34 ± 8.47 | 0.02 | 0.8122 | 78.34 ± 7.73 | 0.08 | 0.9354 |
| 0.16 | 0.8664 | 78.78 ± 8.12 | 0.10 |

Parkinsons (195 × 22) | 84.09 ± 1.92 | 0.08 | 0.0191 | 88.23 ± 1.03 | 0.02 | 0.5307 | 88.53 ± 1.03 | 0.14 | 0.6346 | 88.27 ± 3.69 | 0.13 | 0.6874 |
| 0.09 |

Spect (267 × 44) | 79.78 ± 0.70 | 0.25 | 0.0687 | 79.40 ± 0.19 | 0.04 | 0.0438 | 82.40 ± 0.19 | 0.28 | 0.8765 |
| 0.27 | 0.7601 | 83.14 ± 3.13 | 0.18 |

Ionosphere (351 × 33) | 87.75 ± 2.33 | 0.45 | 0.4902 | 86.61 ± 1.16 | 0.07 | 0.0959 | 88.86 ± 1.41 | 0.50 | 0.9645 |
| 0.40 | 0.4913 | 88.89 ± 2.12 | 0.28 |

Heartcancer (303 × 14) | 96.33 ± 7.33 | 0.16 | 0.3466 | 92.09 ± 1.89 | 0.03 | 0.0000 | 98.09 ± 1.78 | 0.25 | 0.5024 |
| 0.29 | NaN |
| 0.21 |

Heart_diseas e(294 × 13) | 72.79 ± 6.84 | 0.27 | 0.0326 | 82.33 ± 4.19 | 0.04 | 0.6854 | 83.00 ± 3.82 | 0.30 | 0.8456 | 83.35 ± 5.04 | 0.26 | 0.9258 |
| 0.19 |

Fertility (100 × 9) | 86.29 ± 4.93 | 0.02 | 0.3105 | 88.08 ± 1.94 | 0.01 | 0.6001 | 90.08 ± 1.98 | 0.04 | 0.6570 |
| 0.04 | 0.6982 | 89.13 ± 3.34 | 0.03 |

Ech_diogram (131 × 10) | 87.00 ± 7.04 | 0.05 | 0.5075 | 88.39 ± 6.69 | 0.03 | 0.7137 | 89.39 ± 5.96 | 0.07 | 0.9035 |
| 0.06 | 1 |
| 0.05 |

Balancescale (576 × 4) | 95.49 ± 1.77 | 0.89 | 0.4746 | 95.32 ± 2.08 | 0.17 | 0.4419 |
| 1.15 | 0.9654 | 96.36 ± 0.83 | 1.20 | 0.9986 | 96.36 ± 1.49 | 0.83 |

WPBC (198 × 34) | 78.27 ± 5.00 | 0.10 | 0.2938 | 80.36 ± 4.09 | 0.03 | 0.5125 | 82.36 ± 4.67 | 0.11 | 0.9941 | 82.37 ± 4.34 | 0.14 | 0.9971 |
| 0.10 |

WDBC (569 × 30) | 93.51 ± 5.13 | 0.87 | 0.0000 | 96.13 ± 1.89 | 0.18 | 0.0994 |
| 1.13 | 0.9235 | 98.07 ± 0.86 | 1.32 | 1 | 98.07 ± 0.86 | 0.93 |

Vertebral (310 × 6) | 85.48 ± 2.89 | 0.25 | 0.4520 | 85.16 ± 4.26 | 0.04 | 0.4731 | 86.12 ± 4.52 | 0.30 | 0.7538 |
| 0.28 | 1 |
| 0.21 |

Australian (690 × 14) | 85.51 ± 1.62 | 2.49 | 0.2854 | 86.09 ± 1.12 | 0.20 | 0.4450 | 86.87 ± 2.15 | 2.25 | 0.8856 | 86.96 ± 1.87 | 1.89 | 0.9218 |
| 1.55 |

BTSC (748 × 4) | 75.55 ± 2.52 | 2.51 | 0.0000 | 77.27 ± 0.68 | 0.32 | 0.1793 | 77.54 ± 1.03 | 2.28 | 0.2058 | 79.28 ± 2.92 | 2.08 | 0.8968 |
| 1.67 |

Tic_tac_toe (958 × 27) |
| 2.20 | 1 |
| 0.26 | 1 |
| 3.25 | 1 |
| 5.79 | 1 |
| 3.00 |

German (1000 × 24) | 74.90 ± 2.22 | 4.27 | 0.1839 | 76.80 ± 2.46 | 0.28 | 0.6755 | 77.10 ± 2.62 | 6.26 | 0.7640 | 77.50 ± 1.38 | 5.21 | 0.8997 |
| 4.08 |

CMC (1473 × 9) | 77.39 ± 0.13 | 11.80 | 0.0936 | 77.46 ± 0.52 | 1.64 | 0.1467 |
| 14.03 | 0.9023 | 78.07 ± 0.96 | 12.36 | 0.6478 | 78.41 ± 1.06 | 9.06 |

Test accuracy on UCI datasets for nonlinear classifiers

Datasets | SVM | LSSVM | SRSVM | MPCSVM | HPCSVM | |||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|

Accuracy | Time (s) |
| Accuracy | Time (s) |
| Accuracy | Time (s) |
| Accuracy | Time (s) |
| Accuracy | Time (s) | |

Hepatitis (155 × 19) | 82.01 ± 9.43 | 0.10 | 0.7550 | 83.34 ± 8.36 | 0.08 | 0.9095 | 83.78 ± 8.12 | 0.12 | 0.9643 | 84.01 ± 7.98 | 0.16 | 0.9971 |
| 0.14 |

Heartstatlog (270 × 13) | 82.96 ± 2.46 | 0.27 | 0.5264 | 83.70 ± 6.13 | 0.21 | 0.7863 | 84.70 ± 5.24 | 0.33 | 0.9654 | 84.44 ± 5.32 | 0.41 | 0.9218 |
| 0.36 |

Teaching (151 × 5) | 82.14 ± 3.19 | 0.10 | 0.7812 | 82.14 ± 3.19 | 0.07 | 0.7812 |
| 0.11 | 0.8574 | 82.83 ± 3.59 | 0.13 | 82.83 ± 3.59 | 0.12 | |

Haberman (306 × 3) | 73.53 ± 0.48 | 0.35 | 0.1056 | 74.51 ± 3.03 | 0.26 | 0.5231 | 75.32 ± 2.65 | 0.46 | 0.8032 | 75.48 ± 2.98 | 0.50 | 0.8693 |
| 0.44 |

Breast (683 × 9) | 95.60 ± 4.54 | 2.20 | 0.4155 | 97.22 ± 1.50 | 1.34 | 0.6948 | 97.62 ± 1.24 | 3.26 | 0.9544 | 97.51 ± 1.36 | 3.51 | 0.8913 |
| 3.01 |

BUPA (345 × 6) | 71.01 ± 3.30 | 0.46 | 0.0602 | 73.33 ± 2.67 | 0.42 | 0.2547 | 74.43 ± 2.49 | 0.48 | 0.5642 | 75.36 ± 2.75 | 0.68 | 0.8832 |
| 0.65 |

Diabetes (768 × 8) | 72.39 ± 1.86 | 2.57 | 0.0384 | 77.48 ± 4.65 | 1.68 | 0.7826 | 76.48 ± 4.26 | 2.86 | 0.5145 | 78.01 ± 5.01 | 3.89 | 0.9104 |
| 3.44 |

Seeds (210 × 7) | 95.95 ± 3.10 | 0.17 | 0.1614 | 96.19 ± 2.43 | 0.13 | 0.7599 |
| 0.20 | 0.5462 | 96.19 ± 1.17 | 0.25 | 0.6666 | 96.01 ± 1.78 | 0.23 |

Sonar (208 × 60) | 88.47 ± 6.96 | 0.17 | 1 | 88.47 ± 6.96 | 0.13 | 1 |
| 0.21 | 0.7459 | 88.47 ± 6.96 | 0.28 | 88.47 ± 6.96 | 0.23 | |

Parkinsons (195 × 22) | 87.21 ± 2.68 | 0.14 | 0.0016 | 93.87 ± 2.01 | 0.12 | 0.2447 | 94.28 ± 2.26 | 0.18 | 0.5568 |
| 0.24 | 0.9888 | 95.92 ± 2.58 | 0.19 |

Spect (267 × 44) | 79.79 ± 4.06 | 0.27 | 0.2639 | 82.40 ± 4.94 | 0.22 | 0.7521 | 83.40 ± 4.72 | 0.35 | 0.9325 |
| 0.45 | 0.9181 | 83.51 ± 4.67 | 0.42 |

Ionosphere (351 × 33) | 94.31 ± 2.54 | 0.50 | 0.2920 | 95.72 ± 1.29 | 0.36 | 0.7860 | 95.45 ± 2.08 | 0.58 | 0.6734 |
| 0.78 | 0.8215 | 96.02 ± 1.65 | 0.67 |

Heartcancer (303 × 14) | 96.38 ± 2.62 | 0.35 | 0.0247 | 95.05 ± 3.12 | 0.27 | 0.0131 | 98.05 ± 2.96 | 0.46 | 0.5672 |
| 0.54 | NaN |
| 0.46 |

Heart_disease (294 × 13) | 75.85 ± 2.71 | 0.31 | 0.0178 | 79.31 ± 4.76 | 0.24 | 0.7579 | 82.31 ± 4.26 | 0.38 | 0.8973 | 83.00 ± 3.53 | 0.46 | 0.9085 |
| 0.40 |

Fertility (100 × 9) | 87.12 ± 4.45 | 0.05 | 0.2239 | 88.18 ± 4.61 | 0.03 | 0.5031 | 88.08 ± 1.94 | 0.06 | 0.4589 |
| 0.07 |
| 0.06 | |

Ech-diogram (131 × 10) | 87.68 ± 5.25 | 0.07 | 0.6181 | 86.16 ± 5.95 | 0.06 | 0.2633 | 89.24 ± 5.64 | 0.09 | 0.8575 | 89.96 ± 6.41 | 0.10 | 0.9951 |
| 0.09 |

Balancescale (576 × 4) | 97.92 ± 1.61 | 1.34 | 0.0709 | 98.79 ± 0.88 | 0.98 | 0.1146 | 99.19 ± 0.82 | 1.58 | 0.3678 | 99.48 ± 0.69 | 1.89 | 0.6840 |
| 1.65 |

WPBC (198 × 34) | 79.85 ± 5.15 | 0.15 | 0.4901 | 80.35 ± 6.11 | 0.13 | 0.6146 |
| 0.20 | 0.7236 | 82.87 ± 3.52 | 0.24 | 0.8650 | 82.36 ± 4.67 | 0.20 |

WDBC (569 × 30) | 96.14 ± 1.03 | 1.27 | 0.0075 | 98.41 ± 0.87 | 0.91 | 0.6163 | 98.62 ± 0.95 | 1.32 | 0.7148 | 98.59 ± 0.89 | 2.04 | 0.8044 |
| 1.71 |

Vertebral (310 × 6) | 85.48 ± 2.28 | 0.36 | 0.4774 | 85.81 ± 3.44 | 0.27 | 0.6224 | 86.41 ± 2.54 | 0.42 | 0.8012 | 86.77 ± 2.58 | 0.53 | 0.8894 |
| 0.51 |

Australian (690 × 14) | 85.51 ± 1.62 | 2.05 | 0.4526 | 86.23 ± 2.00 | 1.37 | 0.6902 | 86.78 ± 1.69 | 2.39 | 0.8536 | 86.96 ± 1.28 | 3.11 | 0.9451 |
| 2.73 |

BTSC (748 × 4) | 77.01 ± 2.86 | 2.41 | 0.2378 | 78.88 ± 1.91 | 1.56 | 0.6675 | 79.46 ± 2.51 | 2.76 | 0.8245 |
| 3.71 | 0.9504 | 79.68 ± 3.07 | 3.33 |

Tic_tac_toe (958 × 27) |
| 3.99 | 1 |
| 2.69 | 1 |
| 4.73 | 1 |
| 9.37 | 1 |
| 5.45 |

German (1000 × 24) | 75.40 ± 2.85 | 4.56 | 0.4943 | 74.40 ± 1.66 | 2.93 | 0.2232 | 76.32 ± 1.87 | 5.21 | 0.7435 | 77.00 ± 1.03 | 9.35 | 0.9288 |
| 8.27 |

CMC (1473 × 9) | 77.39 ± 0.13 | 9.99 | 0.1728 | 77.66 ± 0.55 | 6.17 | 0.3959 | 78.46 ± 0.55 | 2.30 | 0.9765 | 78.28 ± 0.88 | 16.78 | 0.9246 |
| 15.31 |

- 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 Tic-tac-toe, 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 Tic-tac-toe, 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 Tic-tac-toe, while for other twenty-three 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 high-order relationship between different samples is more reasonable. - 5.
*HPCSVM versus LSSVM*: For linear classifiers, except for Tic-tac-toe, all the remaining experimental results of HPCSVM are better than that of LSSVM. For nonlinear classifiers, except for Seeds, Sonar and Tic-tac-toe, the remaining twenty-two 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 twenty-five 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 high-order relationship between different samples. And the comparison of the last two columns demonstrates the discriminative information with high-order 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

*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

## 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 high-order 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.

## Declarations

### 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.

**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.

## Authors’ Affiliations

## 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 TR-2004-06, AugGoogle Scholar
- Cortes C, Vapnik V (1995) Support vector networks. Mach Learn 20:273–297MATHGoogle Scholar
- Duda RO, Hart PE, Stork DG (2001) Pattern classification, 2nd edn. Wiley, New YorkMATHGoogle Scholar
- Franc V, Hlavác V (2003) An iterative algorithm learning the maximal margin classifier. Pattern Recogn 36:1985–1996View ArticleMATHGoogle Scholar
- Goldberg A, Zhu X, Wright S (2007) Dissimilarity in graph-based semi-supervised classification. In: Proceedings of the international conference on artificial intelligence and statistics, pp 155–162Google Scholar
- 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–262Google Scholar
- 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–8Google Scholar
- Keerthi SS, Shevade SK, Bhattacharyya C, Murthy KRK (2001) Improvements to platt’s SMO algorithm for SVM classifier design. Neural Comput 13:637–649View ArticleMATHGoogle Scholar
- Ko A, Sabourin R, Britto A, Oliveira L (2007) Pairwise fusion matrix for combining classifiers. Pattern Recogn 40:2198–2210View ArticleMATHGoogle Scholar
- Lanckriet GRG, Ghaoui LE, Bhattacharyya C, Jordan MI (2002) A robust minimax approach to classfication. J Mach Learn Res 3:555–582MATHGoogle Scholar
- 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–738Google Scholar
- Li P, Li H, Wu M (2012) Multi-label ensemble based on variable pairwise constraint projection. Inf Sci 222:269–281MathSciNetView ArticleGoogle Scholar
- Maggini M, Melacci S, Sarti L (2012) Learning from pairwise constraints by similarity neural networks. Neural Netw 26:141–158View ArticlePubMedGoogle Scholar
- Mangasarian OL, Wild EW (2006) Multisurface proximal support vector classification via generalized eigenvalues. IEEE Trans Pattern Anal Mach Intel 28:69–74View ArticleGoogle Scholar
- Mavroforakis ME, Theodoridis S (2007) A geometric approach to support vector machine (SVM) classification. IEEE Trans Neural Netw 17:671–682View ArticleGoogle Scholar
- Osuna E, Freund R, Girosi F (1997) Support vector machines: training and applications. Technical Report. MIT Artificial Intelligence Laboratory, CambridgeGoogle Scholar
- Qian Q, Chen S, Zhou X (2013) Multi-view classification with cross-view must-link and cannot-link side information. Knowl-Based Syst 54:137–146View ArticleGoogle Scholar
- Rigollet P (2007) Generalization error bounds in semi-supervised classification under the cluster assumption. J Mach Learn Res 8:1369–1392MathSciNetMATHGoogle Scholar
- Schölkopf B, Smola AJ (2002) Learning with kernels: support vector machines, regularization, optimization, and beyond, adaptive computation and machine learning. MIT Press, CambridgeGoogle Scholar
- Schölkopf B, Smola AJ, Williamson RC, Bartlett PL (2000) New support vector algorithms. Neural Comput 12:1207–1245View ArticlePubMedGoogle Scholar
- Shawe-Taylor J, Cristianini N (2004) Kernel methods for pattern analysis. Cambridge University Press, CambridgeView ArticleMATHGoogle Scholar
- Shivaswamy PK, Jebara T (2007) Ellipsoidal kernel machines. In: Proceedings 12th international workshop on artificial intelligence statistics, pp 1–8Google Scholar
- Sun D, Zhang D (2010) Bagging constraint score for feature selection with pairwise constraints. Pattern Recogn 43:2106–2118View ArticleMATHGoogle Scholar
- 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–842Google Scholar
- Tao Q, Wu G, Wang J (2008) A general soft method for learning SVM classifiers with L1-norm penalty. Pattern Recogn 41:939–948View ArticleMATHGoogle Scholar
- Vapnik V (1995) The nature of statistical learning theory. Springer, New YorkView ArticleMATHGoogle Scholar
- Wang X, Gao X, Yuan Y, Tao D, Li J (2010) Semi-supervised gaussian process latent variable model with pairwise constraints. Neurocomputing 73:2186–2195View ArticleGoogle Scholar
- Wei B, Cheng M, Wang C, Li J (2015) Combinative hypergraph learning for semi-supervised image classification. Neurocomputing 153:271–277Google Scholar
- 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–587View ArticlePubMedGoogle Scholar
- Yang M, Song J (2010) A novel hypothesis-margin based approach for feature selection with side pairwise constraints. Neurocomputing 73:2859–2872View ArticleGoogle Scholar
- Yeung D, Wang D, Ng W, Tsang E, Zhao X (2007) Structured large margin machines: sensitive to data distributions. Mach Learn 68:171–200View ArticleGoogle Scholar
- Yu J, Tao D, Rui Y, Cheng J (2012a) Pairwise constraints based multiview features fusion for scene classification. Pattern Recognit 46:483–496View ArticleMATHGoogle Scholar
- Yu J, Tao D, Wang M (2012b) Adaptive hypergraph learning and its application in image classification. IEEE Trans Image Process 21:3262–3272ADSMathSciNetView ArticlePubMedGoogle Scholar
- Zeng H, Song A, Cheung Y (2012) Improving clustering with pairwise constraints: a discriminative approach. Knowl Inf Syst 36:1–27Google Scholar
- Zhang C, Cai Q, Song Y (2010) Boosting with pairwise constraints. Neurocomputing 73:908–919View ArticleGoogle Scholar
- 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–1608Google Scholar
- Zhu Y, Wang Z, Gao D (2015) Matrixized learning machine with modified pairwise constraints. Pattern Recogn 48:3797–3809View ArticleGoogle Scholar