Skip to Content
AlgorithmsAlgorithms
  • Article
  • Open Access

3 February 2026

14 Pages

Improved Nonparallel Support Vector Machine for Pattern Classification

and
College of Management, Qufu Normal University, Rizhao 276826, China
*
Author to whom correspondence should be addressed.

Abstract

In this paper, we propose a new nonparallel support vector machine for binary classification problems and name it the improved nonparallel support vector machine (IMNSVM). The IMNSVM uses a one-sided ε -band and minimizes ε to achieve a better fitting effect for the same class of training points. By introducing a new variable, ρ , the IMNSVM keeps one class of training points at a certain distance from the hyperplane corresponding to another class of training points, keeping them as far away as possible so as to better adapt to the training points and better describe the difference in data distribution between different categories. The IMNSVM can degenerate into the standard support vector machine (SVM) under certain conditions and is applicable to a wider range of data types. Finally, numerical experiments also explain the effectiveness of the method.

1. Introduction

Support vector machines (SVMs) [1,2,3] are some of the most important tools in machine learning. They use statistical and optimization methods to solve machine learning problems and offer advantages for dealing with small-sample machine learning problems. Support vector machines have achieved great success in many fields, such as image segmentation, handwriting recognition, face recognition, text classification, and strip-steel surface defect classification [4,5,6,7,8,9,10,11,12]. However, in the era of big data, compared to the flourishing development of deep learning and reinforcement learning, research on SVMs has fallen into a slump. Due to the advantages of SVMs, such as simple and clear principles, a solid statistical learning theory foundation, and outstanding practical computational effects, research on theories, models, and algorithms pertaining to SVMs has been ongoing.
Recently, nonparallel support vector machines have attracted a great deal of research attention. Mangasarian [13] proposed the earliest nonparallel classifier and named it the generalized eigenvalue proximal support vector machine (GEPSVM). By solving two related generalized eigenvalue problems, the GEPSVM determines two nonparallel hyperplanes. Jayadeva [14] proposed twin support vector machine (TWSVM). The TWSVM is designed to generate a pair of nonparallel hyperplanes so that each class of points is as close to its corresponding hyperplane as possible and far away from the hyperplane corresponding to another class of points. TWSVMs [14,15,16] solve two small quadratic programming problems (QPPs) instead of the large quadratic programming problem (QPP) addressed by a traditional support vector machine.Their calculation efficiency is faster, and the effect is more significant. Shao [17] proposed TBSVM, which introduced regularization terms on the basis of TWSVM to reduce structural risk. TBSVM can classify multidimensional complex data better than TWSVM. Tian [18] proposed the nonparallel support vector machine (NPSVM). By adding an ε -band, the NPSVM posed two new small quadratic programming problems, and, like SVMs, it has various advantages, such as sparsity, direct application of the kernel trick in nonlinear cases, and a lack of a requirement for matrix inversion in the calculation process. The study of nonparallel support vector machines has become an important direction of classification research [19,20,21,22,23,24,25,26].
Let us compare support vector machines with nonparallel support vector machines. SVMs are more theoretically mature, but their decision boundaries are relatively rigid, and they demand higher computational complexity for large-scale data. Nonparallel support vector machines can be decomposed into sub-problems for computation, making them more suitable for large-scale data and more robust to noise. They are also suitable for nonparallel data and can be extended to multi-classification problems, making them more suitable for complex distributions and multi-modal problems. In practice, it may be necessary to choose a method through cross-validation verification based on the complexity of the problem, data size, and interpretability requirements. The NSVM proposed by Shao [27] introduced a new soft-interval ε -insensitive loss function for classification problems and fitted the dense regions of each class of training points by minimizing the one-sided ε -band. The NSVM is a nonparallel support vector machine model that can degenerate into the standard SVM under certain conditions. It can achieve conversion between parallel and nonparallel algorithms and be used for a wider range of data classification.
In this paper, we further investigate nonparallel support vector machines, which can degenerate into SVMs, and propose the IMNSVM. We introduce a new variable that is not used in the NSVM: ρ . By adjusting this variable, we can ensure each class of training points is as far as possible from the hyperplane corresponding to another class of training points to improve the separation of training points so that the model has a better classification effect.
This paper is organized as follows. The C-SVM, TBSVM, NPSVM, and NSVM are briefly reviewed in Section 2. We introduce the improved nonparallel support vector machine (IMNSVM) in Section 3. The experimental results are presented in Section 4. In Section 5, the conclusions are given.

2. Background

In this section, we briefly introduce some support vector classifiers. Consider the binary classification problem with the following training set:
T = { ( x 1 , + 1 ) , ( x 2 , + 1 ) , ⋯ , ( x p , + 1 ) , ( x p + 1 , − 1 ) , ( x p + 2 , − 1 ) , ⋯ , ( x p + q , − 1 ) } ,
where x i ∈ R n , i = 1 , 2 , ⋯ , p + q are inputs, and + 1 , − 1 are outputs.

2.1. C-SVM

In the linear case, C-SVM seeks the separation hyperplane
( ω · x ) + b = 0
via a QPP as follows:
min ω , b , ξ 1 2 ‖ ω ‖ 2 + C ∑ i = 1 p + q ξ i s.t. y i ( ( ω · x i ) + b ) ≥ 1 − ξ i , i = 1 , 2 , ⋯ , p + q , ξ i ≥ 0 , i = 1 , 2 , ⋯ , p + q ,
where ω ∈ R n , y i ∈ { + 1 , − 1 } , i = 1 , 2 , ⋯ , p + q , b ∈ R , C > 0 is a parameter, and ξ i , i = 1 , 2 , ⋯ , p + q is the slack variable. C-SVM has sparsity and solves its dual problem to implement classification. The kernel trick can be directly applied in the nonlinear case because only the inner products exist in the dual problem.

2.2. TBSVM

Linear TBSVM seeks a pair of nonparallel hyperplanes
( ω 1 · x ) + b 1 = 0 and ( ω 2 · x ) + b 2 = 0
by solving two QPPs
min ω 1 , b 1 , ξ 2 1 2 c 1 ( ‖ ω 1 ‖ 2 + b 1 2 ) + 1 2 ( A ω 1 + e 1 b 1 ) T ( A ω 1 + e 1 b 1 ) + c 2 e 2 T ξ 2 s.t. − ( B ω 1 + e 2 b 1 ) + ξ 2 ≥ e 2 , ξ 2 ≥ 0 ,
and
min ω 2 , b 2 , ξ 1 1 2 c 3 ( ‖ ω 2 ‖ 2 + b 2 2 ) + 1 2 ( B ω 2 + e 2 b 2 ) T ( B ω 2 + e 2 b 2 ) + c 4 e 1 T ξ 1 s.t. ( A ω 2 + e 1 b 2 ) + ξ 1 ≥ e 1 , ξ 1 ≥ 0 ,
where ω k ∈ R n , b k ∈ R , k = 1 , 2 . c i > 0 , i = 1 , 2 , 3 , 4 are parameters, e 1 = ( 1 , 1 , ⋯ , 1 ) T ∈ R p , e 2 = ( 1 , 1 , ⋯ , 1 ) T ∈ R q , A = ( x 1 , x 2 , ⋯ , x p ) T ∈ R p × n , B = ( x p + 1 , x p + 2 , ⋯ , x p + q ) T ∈ R q × n , and ξ 1 ∈ R p and ξ 2 ∈ R q are slack variables. TBSVM has difficultly solving the problem posed by an inverse matrix when there are many data. In the nonlinear case, two extra kernel-generated surfaces need be given to replace hyperplanes. Even with linear kernels, the nonlinear classifiers cannot degenerate into linear classifiers.

2.3. NPSVM

The linear NPSVM, given the following two QPPs, seeks two nonparallel hyperplanes (3):
min ω 1 , b 1 , ξ 1 , ξ 1 * , η 2 1 2 ‖ ω 1 ‖ 2 + C 1 ∑ i = 1 p ( ξ 1 i + ξ 1 i * ) + C 2 ∑ j = p + 1 p + q η 2 j s.t. ( ω 1 · x i ) + b 1 ≤ ε + ξ 1 i , i = 1 , 2 , ⋯ , p , − ( ω 1 · x i ) − b 1 ≤ ε + ξ 1 i * , i = 1 , 2 , ⋯ , p , ( ω 1 · x j ) + b 1 ≤ − 1 + η 2 j , j = p + 1 , p + 2 , ⋯ , p + q , ξ 1 i , ξ 1 i * ≥ 0 , i = 1 , 2 , ⋯ , p , η 2 j ≥ 0 , j = p + 1 , p + 2 , ⋯ , p + q ,
and
min ω 2 , b 2 , ξ 2 , ξ 2 * , η 1 1 2 ‖ ω 2 ‖ 2 + C 3 ∑ i = p + 1 p + q ( ξ 2 i + ξ 2 i * ) + C 4 ∑ j = 1 p η 1 j s.t. ( ω 2 · x i ) + b 2 ≤ ε + ξ 2 i , i = p + 1 , p + 2 , ⋯ , p + q , − ( ω 2 · x i ) − b 2 ≤ ε + ξ 2 i * , i = p + 1 , p + 2 , ⋯ , p + q , ( ω 2 · x j ) + b 2 ≥ 1 − η 1 j , j = 1 , 2 , ⋯ , p , ξ 2 i , ξ 2 i * ≥ 0 , i = p + 1 , p + 2 , ⋯ , p + q , η 1 j ≥ 0 , j = 1 , 2 , ⋯ , p ,
where x i , i = 1 , 2 , ⋯ , p are positive points; x j , j = p + 1 , p + 2 , ⋯ , p + q are negative points; C i > 0 , i = 1 , 2 , 3 , 4 are parameters; and ξ 1 = ( ξ 11 , ξ 12 , ⋯ , ξ 1 p ) T , ξ 1 * = ( ξ 11 * , ξ 12 * , ⋯ , ξ 1 p * ) T , ξ 2 = ( ξ 2 , p + 1 , ξ 2 , p + 2 , ⋯ , ξ 2 , p + q ) T , ξ 2 * = ( ξ 2 , p + 1 * , ξ 2 , p + 2 * , ⋯ , ξ 2 , p + q * ) T , η 1 = ( η 11 , η 12 , ⋯ , η 1 p ) T , and η 2 = ( η 2 , p + 1 , η 2 , p + 2 , ⋯ , η 2 , p + q ) T are slack variables. Taking the positive points as an example, this model requires as many positive points as possible between the hyperplanes ( ω 1 · x ) + b 1 = ε and ( ω 1 · x ) + b 1 = − ε .

2.4. NSVM

The NSVM introduces a new soft-interval ε -insensitive loss function for classification problems:
l ( x , y , g k ) = 1 − y ( w k T x + b k ) , y ( w k T x + b k ) ≤ 1 , 0 , 1 ≤ y ( w k T x + b k ) ≤ 1 + ε , y ( w k T x + b k ) − ( 1 + ε ) , else .
where k = 1 , 2 , x ∈ R n are inputs, and y ∈ { + 1 , − 1 } are outputs.
In the linear case, the NSVM solves two primal problems:
min ω 1 , b 1 , ε 1 , ξ 1 ( ∗ ) , η 2 1 2 ‖ ω 1 ‖ 2 + γ ε 1 + C 1 ∑ i = 1 p ( ξ 1 i + ξ 1 i * ) + C 2 ∑ j = p + 1 p + q η 2 j s.t. 1 − ξ 1 i * ≤ ( ω 1 · x i ) + b 1 ≤ 1 + ε 1 + ξ 1 i , i = 1 , 2 , ⋯ , p , ( ω 1 · x j ) + b 1 ≤ − 1 + η 2 j , j = p + 1 , p + 2 , ⋯ , p + q , ξ 1 i , ξ 1 i * ≥ 0 , i = 1 , 2 , ⋯ , p , η 2 j ≥ 0 , j = p + 1 , p + 2 , ⋯ , p + q , ε 1 ≥ 0 ,
and
min ω 2 , b 2 , ε 2 , ξ 2 ( ∗ ) , η 1 1 2 ‖ ω 2 ‖ 2 + γ ε 2 + C 1 ∑ i = 1 p η 1 i + C 2 ∑ j = p + 1 p + q ( ξ 2 j + ξ 2 j * ) s.t. ( ω 2 · x i ) + b 2 ≥ 1 − η 1 i , i = 1 , 2 , ⋯ , p , − 1 − ε 2 − ξ 2 j * ≤ ( ω 2 · x j ) + b 2 ≤ − 1 + ξ 2 j , j = p + 1 , p + 2 , ⋯ , p + q , η 1 i ≥ 0 , i = 1 , 2 , ⋯ , p , ξ 2 j , ξ 2 j * ≥ 0 , j = p + 1 , p + 2 , ⋯ , p + q , ε 2 ≥ 0 ,
where   C i > 0 , i = 1 , 2 are the parameters. ξ 1 ( ∗ ) = ( ξ 1 T , ξ 1 * T ) T = ( ξ 11 , ⋯ , ξ 1 p , ξ 11 * , ⋯ , ξ 1 p * ) T , ξ 2 ( ∗ ) = ( ξ 2 T , ξ 2 * T ) T =   ( ξ 2 , p + 1 , ⋯ , ξ 2 , p + q , ξ 2 , p + 1 * , ⋯ , ξ 2 , p + q * ) T , η 1 = ( η 11 , η 12 , ⋯ , η 1 p ) T and η 2 = ( η 2 , p + 1 , η 2 , p + 2 ⋯ , η 2 , p + q ) T are slack variables.
For the positive points, the margin between the hyperplanes ( ω 1 · x ) + b 1 = 1 and ( ω 1 · x ) + b 1 = − 1 can be expressed as 2 ‖ ω 1 ‖ . And ε 1 ‖ ω 1 ‖ is defined as the width of the one-sided ε -band between the hyperplanes ( ω 1 · x ) + b 1 = 1 and ( ω 1 · x ) + b 1 = 1 + ε 1 . By minimizing ‖ ω 1 ‖ , the negative points will be as far away as possible from the hyperplane corresponding to the positive points. Moreover, minimizing ε 1 can reveal a one-sided ε -band that is a better fit for the dense regions of the positive points.

3. IMNSVM

In this section, a new improved nonparallel support vector machine (IMNSVM) is proposed for binary classification with the training set (1).

3.1. Linear IMNSVM

3.1.1. The Original Problems

We look for a pair of nonparallel hyperplanes
( ω 1 · x ) + b 1 = 1 and ( ω 2 · x ) + b 2 = − 1
by solving two QPPs,
min ω 1 , b 1 , ε 1 , ξ 1 ( ∗ ) , η 2 , ρ 2 1 2 ( ‖ ω 1 ‖ 2 + b 1 2 ) + r 1 ε 1 + C 1 ∑ i = 1 p ( ξ 1 i + ξ 1 i * ) − r 2 ρ 2 + C 2 ∑ j = p + 1 p + q η 2 j s.t. ( ω 1 · x i ) + b 1 ≤ 1 + ε 1 + ξ 1 i , i = 1 , 2 , ⋯ , p , − ( ω 1 · x i ) − b 1 ≤ − 1 + ξ 1 i * , i = 1 , 2 , ⋯ , p , ( ω 1 · x j ) + b 1 ≤ − ρ 2 + η 2 j , j = p + 1 , p + 2 , ⋯ , p + q , ξ 1 i ≥ 0 , ξ 1 i * ≥ 0 , i = 1 , 2 , ⋯ , p , η 2 j ≥ 0 , j = p + 1 , p + 2 , ⋯ , p + q , ε 1 ≥ 0 , ρ 2 ≥ 0 ,
and
min ω 2 , b 2 , ε 2 , ξ 2 ( ∗ ) , η 1 , ρ 1 1 2 ( ‖ ω 2 ‖ 2 + b 2 2 ) + r 3 ε 2 + C 3 ∑ j = p + 1 p + q ( ξ 2 j + ξ 2 j * ) − r 4 ρ 1 + C 4 ∑ i = 1 p η 1 i s.t. − ( ω 2 · x j ) − b 2 ≤ 1 + ε 2 + ξ 2 j , j = p + 1 , p + 2 , ⋯ , p + q , ( ω 2 · x j ) + b 2 ≤ − 1 + ξ 2 j * , j = p + 1 , p + 2 , ⋯ , p + q , − ( ω 2 · x i ) − b 2 ≤ − ρ 1 + η 1 i , i = 1 , 2 , ⋯ , p , ξ 2 j ≥ 0 , ξ 2 j * ≥ 0 , j = p + 1 , p + 2 , ⋯ , p + q , η 1 i ≥ 0 , i = 1 , 2 , ⋯ , p , ε 2 ≥ 0 , ρ 1 ≥ 0 ,
where C i > 0 and r i > 0 , i = 1 , 2 , 3 , 4 are parameters, and x i , i = 1 , 2 , ⋯ , p are positive points. x j , j = p + 1 , p + 2 , ⋯ , p + q are negative points, and η 1 = ( η 11 , η 12 , ⋯ , η 1 p ) T , η 2 = ( η 2 , p + 1 , η 2 , p + 2 , ⋯ , η 2 , p + q ) T , ξ 1 ( ∗ ) = ( ξ 1 T , ξ 1 * T ) T = ( ξ 11 , ⋯ , ξ 1 p , ξ 11 * , ⋯ , ξ 1 p * ) T and ξ 2 ( ∗ ) = ( ξ 2 T , ξ 2 * T ) T =   ( ξ 2 , p + 1 , ⋯ , ξ 2 , p + q , ξ 2 , p + 1 * , ⋯ , ξ 2 , p + q * ) T are slack variables.
As with TBSVM, by introducing the transformation from R n to R n + 1 , 1 + ρ ‖ ω 1 ‖ 2 + b 1 2 is defined as the margin between the proximal hyperplane ( ω 1 · x ) + b 1 = [ ω 1 T , b 1 ] [ x T , 1 ] T = 1 and the bounding hyperplane ( ω 1 · x ) + b 1 = [ ω 1 T , b 1 ] [ x T , 1 ] T = − ρ .
For problems (9) and (10), there are five parts in the objective function. The regularization term, serving as the first part, can ensure that structural risk is minimized. The second part minimizes ε to achieve a better fitting effect for the same class of training points. The third and fifth parts minimize the loss as much as possible. The first and fourth parts ensure that each class of training points remains a certain distance from the hyperplane corresponding to another class of training points, ensuring this distance is as large as possible. When r 1 = r 2 = 0 , ρ 2 = 1 , C 1 = C 2 , problem (9) can degenerate into the standard SVM. When r 3 = r 4 = 0 , ρ 1 = 1 , C 3 = C 4 , problem (10) can degenerate into the standard SVM too.
In geometry, we consider problem (9) in terms of R 2 (Figure 1). Firstly, we hope that as many and as dense positive points “+” as possible fall into the one-sided ε -band between the hyperplanes ( ω 1 · x ) + b 1 = 1 (red thin solid line) and ( ω 1 · x ) + b 1 = 1 + ε 1 (red solid line), and ε is made as small as possible to achieve a better fitting effect. Secondly, we hope the negative points “∗” are below the hyperplane ( ω 1 · x ) + b 1 = − ρ 2 (red dotted line). The distance between the two is made as large as possible by maximizing ρ 2 . Likewise, problem (10) can be represented by three blue lines.
Figure 1. Geometrical illustration of IMNSVM in R 2 .

3.1.2. The Dual Problems

To solve problems (9) and (10), we should derive their dual problems. The Lagrangian function of problem (9) is given as follows:
L ( ω 1 , b 1 , ε 1 , ξ 1 * , ξ 1 , ρ 2 , η 2 , α 1 * , α 1 , β 2 , λ 1 * , λ 1 , γ 2 , θ 1 , θ 2 ) = 1 2 ( ‖ ω 1 ‖ 2 + b 1 2 ) + r 1 ε 1 + C 1 ∑ i = 1 p ( ξ 1 i * + ξ 1 i ) − r 2 ρ 2 + C 2 ∑ j = p + 1 p + q η 2 j + ∑ i = 1 p α 1 i * ( ( ω 1 · x i ) + b 1 − 1 − ε 1 − ξ 1 i * ) + ∑ i = 1 p α 1 i ( − ( ω 1 · x i ) − b 1 + 1 − ξ 1 i ) + ∑ j = p + 1 p + q β 2 j ( ( ω 1 · x j ) + b 1 + ρ 2 − η 2 j ) − ∑ i = 1 p λ 1 i * ξ 1 i * − ∑ i = 1 p λ 1 i ξ 1 i − ∑ j = p + 1 p + q γ 2 j η 2 j − θ 1 ε 1 − θ 2 ρ 2 ,
where  α 1 * = ( α 11 * , α 12 * , ⋯ , α 1 p * ) T , α 1 = ( α 11 , α 12 , ⋯ , α 1 p ) T , β 2 = ( β 2 , p + 1 , β 2 , p + 2 , ⋯ , β 2 , p + q ) T , λ 1 * = ( λ 11 * , λ 12 * , ⋯ , λ 1 p * ) T , λ 1 = ( λ 11 , λ 12 , ⋯ , λ 1 p ) T , γ 2 = ( γ 2 , p + 1 , γ 2 , p + 2 , ⋯ , γ 2 , p + q ) T , θ 1 ∈ R , and θ 2 ∈ R are the Lagrange multipliers. Applying the Karush–Kuhn–Tucker (KKT) conditions [28] leaves us with
∇ ω 1 L = ω 1 + ∑ i = 1 p α 1 i * x i − ∑ i = 1 p α 1 i x i + ∑ j = p + 1 p + q β 2 j x j = 0 ,
∇ b 1 L = b 1 + ∑ i = 1 p α 1 i * − ∑ i = 1 p α 1 i + ∑ j = p + 1 p + q β 2 j = 0 ,
∇ ε 1 L = r 1 − ∑ i = 1 p α 1 i * − θ 1 = 0 ,
∇ ξ 1 * L = C 1 e 1 − α 1 * − λ 1 * = 0 ,
∇ ξ 1 L = C 1 e 1 − α 1 − λ 1 = 0 ,
∇ ρ 2 L = − r 2 + ∑ j = p + 1 p + q β 2 j − θ 2 = 0 ,
∇ η 2 L = C 2 e 2 − β 2 − γ 2 = 0 .
α 1 * , α 1 , λ 1 * , λ 1 ≥ 0 ,
β 2 , γ 2 ≥ 0 ,
θ 1 , θ 2 ≥ 0 .
From (12) and (13), we find that
ω 1 = ∑ i = 1 p ( α 1 i − α 1 i * ) x i − ∑ j = p + 1 p + q β 2 j x j ,
b 1 = ∑ i = 1 p ( α 1 i − α 1 i * ) − ∑ j = p + 1 p + q β 2 j .
From (14)–(21), we find that
r 1 − ∑ i = 1 p α 1 i * ≥ 0 ,
− r 2 + ∑ j = p + 1 p + q β 2 j ≥ 0 ,
0 ≤ α 1 * , α 1 ≤ C 1 e 1 ,
0 ≤ β 2 ≤ C 2 e 2 .
Through (11), (14)–(18) and (22)–(27), we arrive at the following dual problem pertaining to problem (9):
min α 1 * , α 1 , β 2 1 2 ∑ i = 1 p ∑ j = 1 p ( α 1 i − α 1 i * ) ( α 1 j − α 1 j * ) ( ( x i · x j ) + 1 ) − ∑ i = 1 p ∑ j = p + 1 p + q ( α 1 i − α 1 i * ) β 2 j ( ( x i · x j ) + 1 ) + 1 2 ∑ i = p + 1 p + q ∑ j = p + 1 p + q β 2 i β 2 j ( ( x i · x j ) + 1 ) + ∑ i = 1 p ( α 1 i * − α 1 i ) s.t. r 1 − ∑ i = 1 p α 1 i * ≥ 0 , − r 2 + ∑ j = p + 1 p + q β 2 j ≥ 0 , 0 ≤ α 1 i * , α 1 i ≤ C 1 , i = 1 , 2 , ⋯ , p , 0 ≤ β 2 j ≤ C 2 , j = p + 1 , p + 2 , ⋯ , p + q .
(28) can be converted into the following problem:
min π 1 2 π T Λ π + κ T π s.t. r 1 − ψ T π ≥ 0 , − r 2 + δ T π ≥ 0 , 0 ≤ π ≤ C ,
where
π = ( α 1 * T , α 1 T , β 2 T ) T ,
κ = ( e 1 T , − e 1 T , 0 e 2 T ) T ,
ψ = ( e 1 T , 0 e 1 T , 0 e 2 T ) T ,
δ = ( 0 e 1 T , 0 e 1 T , e 2 T ) T ,
C = ( C 1 e 1 T , C 1 e 1 T , C 2 e 2 T ) T ,
and
Λ = Λ 1 Λ 2 Λ 2 T Λ 3 , Λ 1 = A A T + e 1 e 1 T − A A T − e 1 e 1 T − A A T − e 1 e 1 T A A T + e 1 e 1 T , Λ 2 = A B T + e 1 e 2 T − A B T − e 1 e 2 T , Λ 3 = B B T + e 2 e 2 T ,
where e 1 = ( 1 , 1 , ⋯ , 1 ) T ∈ R p , e 2 = ( 1 , 1 , ⋯ , 1 ) T ∈ R q , A = ( x 1 , x 2 , ⋯ , x p ) T ∈ R p × n , and B = ( x p + 1 , x p + 2 , ⋯ , x p + q ) T ∈ R q × n .
For problem (10), as discussed above, we arrive at
ω 2 = ∑ j = p + 1 p + q ( α 2 j * − α 2 j ) x j + ∑ i = 1 p β 1 i x i ,
b 2 = ∑ j = p + 1 p + q ( α 2 j * − α 2 j ) + ∑ i = 1 p β 1 i .
The dual problem pertaining to problem (10) is given by
min α 2 * , α 2 , β 1 1 2 ∑ i = p + 1 p + q ∑ j = p + 1 p + q ( α 2 i − α 2 i * ) ( α 2 j − α 2 j * ) ( ( x i · x j ) + 1 ) − ∑ i = 1 p ∑ j = p + 1 p + q ( α 2 j − α 2 j * ) β 1 i ( ( x i · x j ) + 1 ) + 1 2 ∑ i = 1 p ∑ j = 1 p β 1 i β 1 j ( ( x i · x j ) + 1 ) − ∑ j = p + 1 p + q ( α 2 j − α 2 j * ) s.t. r 3 − ∑ j = p + 1 p + q α 2 j * ≥ 0 , − r 4 + ∑ i = 1 p β 1 i ≥ 0 , 0 ≤ α 2 j * , α 2 j ≤ C 3 , j = p + 1 , p + 2 , ⋯ , p + q , 0 ≤ β 1 i ≤ C 4 , i = 1 , 2 , ⋯ , p .
(32) can be converted into the following problem:
min π ^ 1 2 π ^ T Λ ^ π ^ + κ ^ T π ^ s.t. r 3 − ψ ^ T π ^ ≥ 0 , − r 4 + δ ^ T π ^ ≥ 0 , 0 ≤ π ^ ≤ C ^ ,
where
π ^ = ( α 2 * T , α 2 T , β 1 T ) T ,
κ ^ = ( e 2 T , − e 2 T , 0 e 1 T ) T ,
ψ ^ = ( e 2 T , 0 e 2 T , 0 e 1 T ) T ,
δ ^ = ( 0 e 2 T , 0 e 2 T , e 1 T ) T ,
C ^ = ( C 3 e 2 T , C 3 e 2 T , C 4 e 1 T ) T ,
and
Λ ^ = Λ ^ 1 Λ ^ 2 Λ ^ 2 T Λ ^ 3 , Λ ^ 1 = B B T + e 2 e 2 T − B B T − e 2 e 2 T − B B T − e 2 e 2 T B B T + e 2 e 2 T , Λ ^ 2 = B A T + e 2 e 1 T − B A T − e 2 e 1 T , Λ ^ 3 = A A T + e 1 e 1 T .
We can find ( ω 1 , b 1 )  and  ( ω 2 , b 2 ) by solving dual problems (28) and (32). A new point x ∈ R n is assigned to the class by the following decision function:
C l a s s = arg min ( ∣ ( ω 1 · x ) + b 1 − 1 ∣ ‖ ω 1 ‖ , ∣ ( ω 2 · x ) + b 2 + 1 ∣ ‖ ω 2 ‖ ) ,
where ∣ · ∣ is an absolute value.

3.2. Nonlinear IMNSVM

In this section, we present the nonlinear IMNSVM. As with SVMs, since only inner products appear in dual problems (28) and (32), the kernel function K ( x , x ′ ) can be directly applied in these problems. In this way, the linear IMNSVM can be extended to a nonlinear classifier. When the linear kernel function is used, the nonlinear classifier can be converted into a linear classifier.
The nonlinear dual problem corresponding to problem (28) is obtained via the following steps:
min α 1 * , α 1 , β 2 1 2 ∑ i = 1 p ∑ j = 1 p ( α 1 i − α 1 i * ) ( α 1 j − α 1 j * ) ( K ( x i · x j ) + 1 ) − ∑ i = 1 p ∑ j = p + 1 p + q ( α 1 i − α 1 i * ) β 2 j ( K ( x i · x j ) + 1 ) + 1 2 ∑ i = p + 1 p + q ∑ j = p + 1 p + q β 2 i β 2 j ( K ( x i · x j ) + 1 ) + ∑ i = 1 p ( α 1 i * − α 1 i ) s.t. r 1 − ∑ i = 1 p α 1 i * ≥ 0 , − r 2 + ∑ j = p + 1 p + q β 2 j ≥ 0 , 0 ≤ α 1 i * , α 1 i ≤ C 1 , i = 1 , 2 , ⋯ , p , 0 ≤ β 2 j ≤ C 2 , j = p + 1 , p + 2 , ⋯ , p + q .
(35) can be converted into the following problem:
min π 1 2 π T Λ ¯ π + κ T π s.t. r 1 − ψ T π ≥ 0 , − r 2 + δ T π ≥ 0 , 0 ≤ π ≤ C ,
where
π = ( α 1 * T , α 1 T , β 2 T ) T ,
κ = ( e 1 T , − e 1 T , 0 e 2 T ) T ,
ψ = ( e 1 T , 0 e 1 T , 0 e 2 T ) T ,
δ = ( 0 e 1 T , 0 e 1 T , e 2 T ) T ,
C = ( C 1 e 1 T , C 1 e 1 T , C 2 e 2 T ) T ,
and
Λ ¯ = Λ ¯ 1 Λ ¯ 2 Λ ¯ 2 T Λ ¯ 3 , Λ ¯ 1 = K ( A , A T ) + e 1 e 1 T − K ( A , A T ) − e 1 e 1 T − K ( A , A T ) − e 1 e 1 T K ( A , A T ) + e 1 e 1 T , Λ ¯ 2 = K ( A , B T ) + e 1 e 2 T − K ( A , B T ) − e 1 e 2 T , Λ ¯ 3 = K ( B , B T ) + e 2 e 2 T .
Similarly, we have the nonlinear dual problem corresponding to problem (32):
min α 2 * , α 2 , β 1 1 2 ∑ i = p + 1 p + q ∑ j = p + 1 p + q ( α 2 i − α 2 i * ) ( α 2 j − α 2 j * ) ( K ( x i · x j ) + 1 ) − ∑ i = 1 p ∑ j = p + 1 p + q ( α 2 j − α 2 j * ) β 1 i ( K ( x i · x j ) + 1 ) + 1 2 ∑ i = 1 p ∑ j = 1 p β 1 i β 1 j ( K ( x i · x j ) + 1 ) − ∑ j = p + 1 p + q ( α 2 j − α 2 j * ) s.t. r 3 − ∑ j = p + 1 p + q α 2 j * ≥ 0 , − r 4 + ∑ i = 1 p β 1 i ≥ 0 , 0 ≤ α 2 j * , α 2 j ≤ C 3 , j = p + 1 , p + 2 , ⋯ , p + q , 0 ≤ β 1 i ≤ C 4 , i = 1 , 2 , ⋯ , p .
(37) can be converted into the following problem:
min π ^ 1 2 π ^ T Λ ˜ π ^ + κ ^ T π ^ s.t. r 3 − ψ ^ T π ^ ≥ 0 , − r 4 + δ ^ T π ^ ≥ 0 , 0 ≤ π ^ ≤ C ^ ,
where
π ^ = ( α 2 * T , α 2 T , β 1 T ) T ,
κ ^ = ( e 2 T , − e 2 T , 0 e 1 T ) T ,
ψ ^ = ( e 2 T , 0 e 2 T , 0 e 1 T ) T ,
δ ^ = ( 0 e 2 T , 0 e 2 T , e 1 T ) T ,
C ^ = ( C 3 e 2 T , C 3 e 2 T , C 4 e 1 T ) T ,
and
Λ ˜ = Λ ˜ 1 Λ ˜ 2 Λ ˜ 2 T Λ ˜ 3 , Λ ˜ 1 = K ( B , B T ) + e 2 e 2 T − K ( B , B T ) − e 2 e 2 T − K ( B , B T ) − e 2 e 2 T K ( B , B T ) + e 2 e 2 T , Λ ˜ 2 = K ( B , A T ) + e 2 e 1 T − K ( B , B T ) − e 2 e 1 T , Λ ˜ 3 = K ( A , A T ) + e 1 e 1 T .

4. Experimental Results

In this section, the feasibility and effectiveness of the IMNSVM are explained through numerical experiments utilizing Algorithm 1. The experimental data are all from UCI open databases [29]. The existing models C-SVM, TBSVM, NPSVM, and NSVM are compared with the IMNSVM using different data sets. All the experimental methods were employed using MATLAB 2018b on a PC with an Intel Core I5 processor and 8 GB of RAM. All algorithms were executed using QP in MATLAB Toolbox. Before training, all data points were normalized to ensure that their features were between [0, 1]. For multi-classification problems, we adopted the One-vs.-Rest (OvR) strategy.
Algorithm 1 (IMNSVM)
(1) Input the training set (1).
(2) Select the appropriate parameters   C i > 0 ,  r i > 0 , i = 1 , 2 , 3 , 4 and kernel
function K ( x , x ′ ) .
(3) By solving two QPPs (35) and (37), the optimal solutions ( α 1 * T , α 1 T , β 2 T ) T and ( α 2 * T , α 2 T , β 1 T ) T are obtained.
(4) For a new point  x ∈ R n , assign it using
            C l a s s = arg min k = 1 , 2 ∣ f k ( x ) ∣ ‖ Δ k ‖ ,
where
f 1 ( x ) = ∑ i = 1 p ( α 1 i − α 1 i * ) K ( x i , x ) − ∑ j = p + 1 p + q β 2 j K ( x j , x ) + b 1 − 1 ,
f 2 ( x ) = − ∑ j = p + 1 p + q ( α 2 j − α 2 j * ) K ( x j , x ) + ∑ i = 1 p β 1 i K ( x i , x ) + b 2 + 1 ,
Δ 1 = π T Λ ¯ π ,    Δ 2 = π ^ T Λ ˜ π ^ ,
and b 1 , b 2 are computed by (23) and (31).
We adopted the ten-fold cross-validation method, which can better determine the classification of imbalanced data sets. Each data set is randomly divided into ten parts. Nine of them are used as the training set, and the rest are used as the test set. This process is repeated ten times, and the average of the ten results is taken to be the final classification accuracy. The parameters C i , i = 1 , 2 , 3 , 4 are tuned to optimize classification accuracy in the range [ 2 − 5 , 2 7 ] . To reduce the time taken to select parameters, we suppose that C 1 = C 3 , C 2 = C 4 .
In the linear case, each of the above methods was tested. The results obtained using the methods above are shown in Table 1. Those marked in bold denote the optimal accuracy.
Table 1. Results of linear classifiers with respect to the benchmark data sets.
In the nonlinear case, the R B F kernel K ( x , x ′ ) = e x p ( − ‖ x − x ′ ‖ 2 σ ) is applied, where σ is tuned for optimal classification accuracy in the range [ 2 − 8 , 2 8 ] . Table 2 shows the results regarding the nonlinear classifiers with respect to the benchmark data sets.
Table 2. Results of nonlinear classifiers on the benchmark data sets.
From Table 1 and Table 2, we can see that the IMNSVM has better classification performance on more than half of the data sets in the linear and nonlinear cases. But it can also be seen that the IMNSVM is not applicable to certain data sets. We will determine and analyze the reasons for this using more data sets in the future. Of course, classification accuracy cannot fully demonstrate the advantages of this algorithm. We first studied the effectiveness of the algorithm; then, we conducted comparative studies on other performance measures, such as computation time, sparseness, and computational complexity. If ρ = 1 , the IMNSVM approximates the NSVM. From the calculation results, ρ , as a variable, can better regulate the margin between two classes of points and improve classification accuracy. The variable ρ may not be very large, and it may even be less than 1.

5. Conclusions

In this paper, a new binary classifier, the IMNSVM, is proposed. The IMNSVM introduces the one-sided ε -band to better fit the dense regions of the training points and endow the model with sparseness. Furthermore, by introducing a new variable, ρ , the IMNSVM keeps each class of training points at a certain distance from the hyperplane corresponding to another class of training points, keeping them as far away as possible to better separate different classes of the training points. The IMNSVM only needs to solve two small quadratic programming problems and does not require computation of the inverse of the matrix. In the nonlinear case, the kernel functions can be directly introduced. This new binary classifier, the IMNSVM, is a nonparallel support vector machine, but it can degenerate into the standard SVM under certain conditions. So, it can achieve conversion between parallel and nonparallel algorithms and is convenient for the design and comparison of the algorithms. In the future, we hope to consider similar extension algorithms for other data-mining problems such as regression, semi-supervised, and unsupervised problems.

Author Contributions

S.L. proposed the topic, participated in drafting the first manuscript, and made the final revisions. J.Y. was the lead author of the first draft. All authors have read and agreed to the published version of the manuscript.

Funding

This work is supported by the Natural Science Foundation of Shandong Province (ZR2025MS41 and ZR2025MS86).

Data Availability Statement

The data sets were derived from the UCI repository of machine learning databases: https://archive.ics.uci.edu/ (accessed on 1 January 2026).

Acknowledgments

The authors thank all the anonymous reviewers for their helpful comments.

Conflicts of Interest

The authors declare no conflicts of interest.

References

  1. Cortes, C.; Vapnik, V.N. Support-vector networks. Mach. Learn. 1995, 20, 273–297. [Google Scholar] [CrossRef] [Scilit]
  2. Vapnik, V.N. The Nature of Statistical Learning Theory; Springer: New York, NY, USA, 1996. [Google Scholar]
  3. Vapnik, V.N. Statistical Learning Theory; Jahn Wiley and Sons: New York, NY, USA, 1998. [Google Scholar]
  4. Liu, Y.X.; Peng, Y.H.; Zhou, X.H. Texture classification using finite ridgelet transform and support vector machines. In PRICAI 2006: Trends in Artificial Intelligence; Lecture Notes in Computer Science; Springer: Berlin/Heidelberg, Germany, 2006; Volume 4099, pp. 1042–1046. [Google Scholar]
  5. Isa, D.; Lee, L.H.; Kallimani, V.P.; RajKumar, R. Text document preprocessing with the Bayes formula for classification using the support vector machine. IEEE Trans. Knowl. Data Eng. 2008, 20, 1264–1272. [Google Scholar] [CrossRef] [Scilit]
  6. Wu, Y.C.; Lee, Y.S.; Yang, J.C. Robust and efficient multiclass SVM models for phrase pattern recognition. Pattern Recognit. 2008, 41, 2874–2889. [Google Scholar] [CrossRef] [Scilit]
  7. Wang, X.Y.; Wang, T.; Bu, J.A. Color image segmentation using pixel wise support vector machine classification. Pattern Recognit. 2011, 44, 777–787. [Google Scholar] [CrossRef] [Scilit]
  8. Khan, N.M.; Ksantini, R.; Ahmad, I.S.; Boufama, B. A novel SVM+ NDA model for classification with an application to face recognition. Pattern Recognit. 2012, 45, 66–79. [Google Scholar] [CrossRef] [Scilit]
  9. Gong, R.F.; Chu, M.X.; Yang, Y.H.; Feng, Y. A multi-class classifine based on support vector hyper-spheres for steel plate surface defects. Chemom. Intell. Lab. Syst. 2019, 188, 70–78. [Google Scholar] [CrossRef] [Scilit]
  10. Cao, X.H.; Wang, D.; Wang, X.Z.; Zhao, J.; Jiao, L.C. Hyperspectral imagery classification with cascaded support vector machines and multi-scale superpixel segmentation. Int. J. Remote Sens. 2020, 41, 4528–4548. [Google Scholar] [CrossRef] [Scilit]
  11. Dhankhar, S.; Gupta, M.K.; Memon, F.H.; Bhatia, S.; Dadheech, P.; Mashat, A. Support vector machine based handwritten hindi character recognition and summarization. Comput. Syst. Sci. Eng. 2022, 43, 397–412. [Google Scholar] [CrossRef] [Scilit]
  12. Lei, W.L.; Lei, Y.; Li, B.; Jia, K. Support vector machines optimisation for face recognition using sparrow search algorithm. Trait. Signal 2023, 40, 2009–2017. [Google Scholar] [CrossRef] [Scilit]
  13. Mangasarian, O.L.; Wild, E.W. Multisurface proximal support vector machine classification via generalized eigenvalues. IEEE Trans. Pattern Anal. Mach. Intell. 2006, 28, 69–74. [Google Scholar] [CrossRef] [Scilit]
  14. Jayadera; Khemchandani, R.; Chandra, S. Twin support vector machines for pattern classification. IEEE Trans. Pattern Anal. Mach. Intell. 2007, 29, 905–910. [Google Scholar] [CrossRef] [Scilit] [PubMed]
  15. Kumar, M.A.; Gopal, M. Application of smoothing technique on twin support vector machines. Pattern Recognit. Lett. 2008, 29, 1842–1848. [Google Scholar] [CrossRef] [Scilit]
  16. Chen, X.B.; Yang, J.; Ye, Q.L.; Liang, J. Recursive projection twin support vector machine via within-class variance minimization. Pattern Recognit. 2011, 44, 2643–2655. [Google Scholar] [CrossRef] [Scilit]
  17. Shao, Y.H.; Zhang, C.H.; Wang, X.B.; Deng, N.Y. Improvements on twin support vector machines. IEEE Trans. Neural Netw. 2011, 22, 962–968. [Google Scholar] [CrossRef] [Scilit]
  18. Tian, Y.J.; Qi, Z.Q.; Ju, X.C.; Shi, Y.; Liu, X.H. Nonparallel support vector machines for pattern classification. IEEE Trans. Cybern. 2014, 44, 1067–1079. [Google Scholar] [CrossRef] [Scilit]
  19. Zhao, J.; Yang, Z.J.; Xu, Y.T. Nonparallel least square support vector machine for classification. Appl. Intell. 2016, 45, 1119–1128. [Google Scholar] [CrossRef] [Scilit]
  20. Liu, L.M.; Chu, M.X.; Gong, R.F.; Zhang, L. An improved nonparallel support vector machine. IEEE Trans. Neural Netw. Learn. Syst. 2021, 32, 5129–5143. [Google Scholar] [CrossRef] [Scilit]
  21. Sun, F.M.; Lian, S.J. ν-Improved nonparallel support vector machine. Sci. Rep. 2022, 12, 17855. [Google Scholar] [CrossRef] [Scilit]
  22. Qi, K.; Yang, H. LS-GNHSVM: A novel joint geometrical nonparallel hyperplane support vector machine. Expert Syst. Appl. 2023, 215, 119413. [Google Scholar] [CrossRef] [Scilit]
  23. Li, C.N.; Shao, Y.H.; Wang, H.J.; Huang, L.W.; Zhao, Y.T.; Xiu, N.H.; Deng, N.Y. Union nonparallel support vector machines framework with consistency. Appl. Soft Comput. 2023, 136, 110129. [Google Scholar] [CrossRef] [Scilit]
  24. Gao, R.Y.; Qi, K.; Yang, H. Fused robust geometric nonparallel hyperplane support vector machine for pattern classification. Expert Syst. Appl. 2024, 236, 121331. [Google Scholar] [CrossRef] [Scilit]
  25. Shao, W.Z.; Shao, Y.H.; Li, C.N. A novel regularization method for decorrelation learning of non-parallel hyperplanes. Inf. Sci. 2024, 667, 120461. [Google Scholar] [CrossRef] [Scilit]
  26. Wang, H.M.; Li, P.; Zheng, Y.Y.; Jiang, K.; Xu, Y.T. Sparse pinball Universum nonparallel support vector machine and its safe screening rule. Appl. Intell. 2025, 55, 563. [Google Scholar] [CrossRef] [Scilit]
  27. Shao, Y.H.; Yang, K.L.; Liu, M.Z.; Wang, Z.; Li, C.N.; Chen, W.J. From support vector machine to nonparallel support vector machine. Oper. Res. Trans. 2018, 22, 55–65. [Google Scholar]
  28. Mangasarian, O.L. Nonlinear Programming; SIAM: Philadelphia, PA, USA, 1994. [Google Scholar]
  29. Blake, C.L.; Merz, C.J. UCI Repository of Machine Learning Databases; Department of Computer Science, University of California: Irvine, CA, USA, 1998; Available online: https://archive.ics.uci.edu/ (accessed on 1 January 2026).
Disclaimer/Publisher’s Note: The statements, opinions and data contained in all publications are solely those of the individual author(s) and contributor(s) and not of MDPI and/or the editor(s). MDPI and/or the editor(s) disclaim responsibility for any injury to people or property resulting from any ideas, methods, instructions or products referred to in the content.

Article Metrics

Citations

Article Access Statistics

Multiple requests from the same IP address are counted as one view.