






Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!







Support Vector Machines (SVM) are learning systems that use a hypothesis space of linear functions in a high dimensional feature space, trained with a learning algorithm from optimization theory that implements a learning bias derived from statistical learning theory [1]. Goal of the SVM is to find the optimal hyperplane that divides the two classes. There can be different planes that can divide the two classes, but the main focus is on to finding out such plane that we can achieve maximum margin between the classes. It means pick the hyperplane so that the distance from the hyperplane to the nearest data point is maximized [2].
Figure 1 - 1 Many linear classifiers separate the data [2]
The figure shown above is a diagrammatical view of the SVM linear classifiers, three different straight lines separating the two classes, thus acting as three different linear classifiers. The data points near the hyperplane are called as “support vectors”. In classification we have two types of problems: i. Data is separable. ii. Data is non-separable.
Suppose the training data { xi, yi }, where i = 1, 2… l , y = {1, -1}, and xi are input vectors. Now lest suppose we have a hyperplane which separates positive from the negative. The point x which lie on the hyperplane satisfies w.x+b=0, where w is the normal to the hyperplane and | | || || is the perpendicular distance from the hyperplane to the origin and || || is the Euclidean norm of w. Let d+ ( d- ) be the shortest distance from the separating hyperplane to the closest positive (negative) point. SVM simply looks for the hyperplane with the largest margin i-e: (1) (2) Combining 1 and 2: ( ) (3)
Some points lie on the hyperplane with normal w and perpendicular distance from the origin| | || ||. Similarly, some points lie on the hyperplane with normal w and perpendicular distance from the origin | | || ||. Hence the margin is simply || ||. We can find the pair of hyperplane which which gives us the maximum margin by minimizing|| || , subject to constraints, ( ) (^) [3].
Subject to:
The solution is: ∑
The solution can be found by minimizing LP or by maximizing LD [3], [4].
If the data points can’t be separated by linear hyperplane then SVM uses kernel functions to map the data into a different space where a hyperplane can be used for separatation.
The different types of kernel functions used are as follows:
Polynomial:
( ) (^) ( )
RBF:
( ) || ||
Sigmoid:
( ) (^) ( ( )
The non-linear separable data cannot be separated by the above algorithm. We can extend the above algorithm nonlinear data by introducing positive slack variable ξi, i=1, 2… l.
ξi ≥ 0. The primal problem for non-separable data is to minimize the following cost function:
|| || (∑ )
where C is chosen by the user. For dual problem: Maximize ∑ ∑
Subject to: , ∑
The solution is [3], [4]: ∑
Advantages of SVM are: i. A multi layer neural network classifier has the local minima problem, whereas it is not in the SVM classifier. ii. It has better generalization as compared to the neural networks [5], [6].
Different classifiers are applied on the Hepatitis disease data and the results are shown in the table below [7]:
Method Accuracy (Testing)
Dataset
(6 hidden neurons, & 7 epochs, using tansig)
93.75% Hepatitis (80 instances)
(6 hidden neurons, 11 epochs, using logsig)
87.5% Hepatitis (80 instances)
21 - NN, stand Manhattan [8]
90.3% Hepatitis (155 instances)
SVM (Linear Kernel) 12.5% Hepatitis (80 Instances)
SVM (Polynomial Kernel) 85% Hepatitis (80 Instances)
SVM (Sigmoid Kernel) 87.5% Hepatitis (80 Instances)
SVM (RBF Kernel) 85% Hepatitis (80 Instances)
SVM (Linear Kernel) 18.18% Hepatitis (155 Instances)
SVM (Polynomial Kernel) 88.3% Hepatitis (155 Instances)
SVM (Sigmoid Kernel) 87.01% Hepatitis (155 Instances)
SVM (RBF Kernel) 84.42% Hepatitis (155 Instances)
Table 1: Comparison of results
An instance of the Hepatitis data used for classification is given in the next section depicting its different feature vectors. Out of 155 instances of the disease data half are used for training and half for testing. Training and testing instances are divided in such a way that odd number of instances is selected for training and even for testing. The first feature of each instance show the class label and these class labels are separated and are stored in another row vector by taking the transpose of them. SVM toolbox of MATLAB is used for implementation purpose. Accuracy rate given in the above table are of testing.
[1]. Nello Cristianini and John Shawe-Taylor, “ An Introduction to Support Vector Machines ”, Cambridge University Press, (2000). [2]. Wikipedia, “Support Vector Machine”. URL: http://en.wikipedia.org/wiki/Support_vector_machine [3]. J.C Burges, “A Tutorial on Support Vector Machines for Pattern Recognition”, Bell Laboratories Lucent Technoligies, (1998). URL: http://www.umiacs.umd.edu/~joseph/support-vector-machines4.pdf [4]. Simon Haykin, “ Neural Networks ”, Pearson Education, Delhi, India, 2/E, (2003). [5]. Support Vector Machines, “Support Vector Machines” URL: http://www.svms.org/ [6]. Shigeo Abe, “ Support Vector Machines for Pattern Classification ”, Springer, (2005). [7]. UCI Machine Learning Repository, “Hepatitis Data Set”, URL: http://archive.ics.uci.edu/beta/datasets/Hepatitis [8]. “Datasets used for classification: comparison of results”, 2002, URL: http://www.is.umk.pl/projects/datasets.html