Docsity

Support Vector Machine 2-Computer Sciences Applications-Project Report, Study Guides, Projects, Research of Applications of Computer Sciences

Toggle sidebar
bg1
0
Section 1
SUPPORT VECTOR MACHINE
1.1 Introduction
There are many pattern recognition problems which can be solved by using ANN. Pattern
classification and regression are two major problems in the field of pattern recognition
[1]. The task of the classifier is to classify the input patterns to a particular class. The
classification task is not very simple because perfect classification performance is not
possible. Regression is used to find some functional description of data with the aim of
predicting values for the new patterns. Traditional ways of solving regression problems
includes the development of mathematical models to approximate an unknown function
of single or many variables. ANN has shown natural tendency to solve regression
problems as discussed in the previous report. But ANN has got several disadvantages.
One of a major disadvantage is that it lacks generalization capability. A machine learning
technique is said to be generalized if it gives similar performance on novel data samples
as given on training samples. Another disadvantage is that sometimes backpropagation
algorithm traps into local minima which cause improper updating of synaptic weights and
thus causes improper learning.
Support Vector Machine (SVM) is another machine learning technique that can be used
to solve both pattern classification and regression problems. In case of support vector
classification (SVC), the input vectors are first mapped into feature space of higher
dimensionality with the selection of the kernel function. In feature space a hyperplane or
set of hyperplanes are constructed to classify the data into two or multiple classes
respectively. In case of support vector regression (SVR), the aim is to find the functional
form of the data so that it can be used for the prediction of values for those samples not
presented to SVR before. This machine learning technique has its roots from statistical
learning theory [2]. This machine learning has two advantages over ANN. First, it has
docsity.com
pf3
pf4
pf5
pf8
pf9
pfa
pfd
pfe
pff

Partial preview of the text

Download Support Vector Machine 2-Computer Sciences Applications-Project Report and more Study Guides, Projects, Research Applications of Computer Sciences in PDF only on Docsity!

Section 1

SUPPORT VECTOR MACHINE

1.1 Introduction

There are many pattern recognition problems which can be solved by using ANN. Pattern classification and regression are two major problems in the field of pattern recognition [1]. The task of the classifier is to classify the input patterns to a particular class. The classification task is not very simple because perfect classification performance is not possible. Regression is used to find some functional description of data with the aim of predicting values for the new patterns. Traditional ways of solving regression problems includes the development of mathematical models to approximate an unknown function of single or many variables. ANN has shown natural tendency to solve regression problems as discussed in the previous report. But ANN has got several disadvantages. One of a major disadvantage is that it lacks generalization capability. A machine learning technique is said to be generalized if it gives similar performance on novel data samples as given on training samples. Another disadvantage is that sometimes backpropagation algorithm traps into local minima which cause improper updating of synaptic weights and thus causes improper learning.

Support Vector Machine (SVM) is another machine learning technique that can be used to solve both pattern classification and regression problems. In case of support vector classification (SVC), the input vectors are first mapped into feature space of higher dimensionality with the selection of the kernel function. In feature space a hyperplane or set of hyperplanes are constructed to classify the data into two or multiple classes respectively. In case of support vector regression (SVR), the aim is to find the functional form of the data so that it can be used for the prediction of values for those samples not presented to SVR before. This machine learning technique has its roots from statistical learning theory [2]. This machine learning has two advantages over ANN. First, it has

better generalization capability and second, there is no problem of trapping into local minima. Like ANN, SVM is also first trained on training data samples and then it is tested for those data samples not present in the training dataset.

1.2 Support Vector Machine for Nonlinear Regression

Support Vector Machines can also be applied to solve both linear and nonlinear function approximation problems [3-4]. An important concept in support vector regression is the concept of Є-insensitive loss function proposed by Vapnik [5, 6].

Є - Insensitive Loss Function

The concept of loss function is not new in optimization theory. Various types of loss functions were proposed by various researchers. For example, quadratic loss function has been used in the optimization of radial-basis function networks [7]. The main reason for using loss functions is computational convenience. Usually, in ANN, least-squares estimators are used. The problem with least-square estimator is that it performs poorly in the presence of outliers. In addition to it, the performance of the model is compromised when the underlying distribution of the additive noise has a long tail. It means that it is sensitive towards small changes in the model. To overcome this problem, a robust estimator that is insensitive to small changes in the model is needed. To achieve this goal, Huber [8-9] proposed a loss function which can be used as a robust estimator. The Huber loss function has the form

L ( d , y ) dy (1.1)

where d is the desired response and y is the estimator output.

Vapnik [5,6] proposed an extension of Huber Loss Function called Є-insensitive loss function to use it in the construction of support vector machines for approximating the desired output. Є-insensitive loss function has the form

 ^    

otherwise

L d y d y ford y 0 ,

Here we assume that  0 ( x ) 1. It means that weight w 0 represents the bias b. The issue to

be resolved is the minimization of the empirical risk given by Eq. 1.5.

  

N emp (^) i i i R (^) N L d y 1

subject to the inequality

w^2  c 0 (1.6)

where c 0 is a constant. This constrained optimization problem can be reformulated by the

introduction of two sets of nonnegative slack variables   (^) iiN  1 and   (^) i '  iN  1 , that are defined

as follows.

d i  w T  ( x i ) i , i  1 , 2 ,..., N (1.7)

w T^ ( x i ) d i  i '^ , i  1 , 2 ,..., N (1.8)

i '^  0 , i  1 , 2 ,..., N (1.9)

i '^  0 , i  1 , 2 ,..., N (1.10)

The slack variables  i and  i ' describe the Є-insensitive loss function defined in Eq. 1.2.

This constrained optimization problem may be viewed as equivalent to that of minimizing the cost functional

w   w T w

N i i i

( , , ) C 21

1

  ^   

subject to the constraints of the Eqs. 1.7 to 1.10. The inclusion of the last term in Eq. 1.

in the functional ( w ,, '), helps in dealing with the optimization problem without the

constraint of Eq. 1.6. The constant C is a user defined parameter. Now the Lagrangian function may be defined as

 ^ ^   

 ^ ^ N

i i i i

N T i T i i^ i

J C d 1 1

' ' ' ' [ ( ) ]

( w , ,,,,,)  ^1 w w  w  x 

   

N i i i i di T 1

 '^ [ w ( x ) ']

^ 

N i 1 i i i i

where the  i and  i ' are the Lagrangian multipliers. The last term on the right-hand side

of Eq. 1.12, containing  i and  i ', is included to ensure the optimality constraints on the

Lagrangian multipliers  i and  i ' assume variable forms. It is required to minimize

J ( w ,,',,',, ') with respect to the weight vector w and slack variables  i and  i '; it

must also be maximized with respect to  i and  i ', and also with respect to  i and  i '. By

doing this optimization, we have in respective ways:

^ ^ ^ 

N i 1 i i i

w  '^ x (1.13)

 i  C   i (1.14)

And

 (^) i '  C   i ' (1.15)

The optimization of J ( w ,,',,',, ') is the primal problem for regression. We can

formulate the corresponding dual problem by substituting Eqs. 1.13 – 1.15 in Eq. 1.12. This gives the convex functional (after simplification) given by

 

N i

i i

N i

Q di i i

1

' 1

(,'^ ) ( ') (  )

1

' ' 1 i^ j

N j i i j j

N i

 ^ K^ x x

 

where K ( x i , x j ) is the inner product kernel defined in accordance with the Mercer‟s

Theorem [7]:

K ( x i , x j ) T ( x i ) ( x j )

   (^) i j

N i i i

F ( x , w ) w T^ x K x , x 1  ' 

Both Є and C must be selected by the user. They served as complexity control parameters. The control of complexity is a difficult problem for regression due to following two reasons.

  1. The parameters Є and C must be tuned simultaneously.
  2. Regression is intrinsically a difficult problem. The selection of Є and C is still an open research area [7]. A support vector regression machine may be implemented by using Kernel Functions. A list of few Kernel Functions is given in Table 1.1. Table 1.1: Summary of Inner Product Kernels SVM Type Inner Product Kernel Comments Polynomial Learning Machine ^ 

p x T^ x i  1

Power p is specified a priori by a user.

Radial Basis Function exp (^) ^  (^2) ^12 xx i^2  The width ^2 is specified by user

1.3 Applications of Support Vector Machine

Following are the main applications of SVM. The research area under SVM increases day by day and its applications plays an important role in our daily life [10].

 Support vector machines-based generalized predictive control  Dynamic Reconstruction of Chaotic Systems from Inter-spike Intervals Using Least Squares Support Vector Machines  SVM for Geo- and Environmental Sciences  SVM for Protein Fold and Remote Homology Detection  Content based image retrieval  DATA Classification using SVM  DTREG - SVM and Decision Tree Predictive Modeling

 Facial expression classification  Support Vector Machines For Texture Classification  SVM application in E-learning  Text classification with SVMs  Isolated Handwritten Jawi Characters Categorization Using Support Vector Machines (SVM).  Image Clustering  SVM-driven Personal Recommendation System for News Websites  Speaker/speech recognition  Analysis and Applications of Support Vector Forecasting Model Based on Chaos Theory  A Comparison Of The Performance Of Artificial Neural Networks And Support Vector Machines For The Prediction Of Traffic Speed and Travel Time  Protein Structure Prediction  Support vector classifiers for land cover classification  The Gaussian Dynamic Time Warping (GDTW) kernel for On-line Handwriting Recognition  Detecting Steganography in digital images  Breast Cancer Prognosis: Chemotherapy Effect on Survival Rate  Underground Cable Temperature Prediction  Object Detection  Combustion Engine Knock Detection  Function Approximation and Regression  3-D Object Recognition Problems  Text Categorization  Time Series Prediction and Dynamic Resconstruction of Chaotic Systems  Handwritten digit recognition problems  Breast cancer diagnosis and prognosis  Support Vector Decision Tree Methods for Database Marketing

Figure 2.1: ANN used for Lattice Constant Prediction

After the construction of neural network as shown in Figure 2.11, it is trained on the training dataset. The neural network shown in the figure is trained by using Levenberg- Marquardt algorithm for backpropagation neural network.

Once the neural network is trained, it is used for testing on the test dataset. The performance measure used by Chonghe is the percentage of absolute difference. Three such models of ANN were created for lattice constants a, b and c. The input pattern remains the same for all the three models. They differ only in the target values used in the training phase.

2.2 Support Vector Machine (SVM)

This proposed methodology mainly consists of three major modules involving dataset generation module, Support Vector Regression (SVR) training module and SVR testing module. The functional block diagram of our proposed methodology is shown in Figure 2.2. Three separate models are developed for the prediction of lattice constants a, b and c.

Figure 2.2: Block Diagram of Proposed Methodology

Percentage of Absolute Difference is the performance measure used to evaluate the predictive accuracy and is defined as:

PAD (%)  experimentalexperimentalpredicted  100

Figure3.1: Training performance of BackPropagation neural network

3.1.2 Testing

A dataset of 46 instances was used for testing. The results on testing data are discussed in following section.

3.1.3 Results and Discussions

Following two quality measures were used for evaluating the performance of neural network. Percentage Absolute Difference (PAD) The Percentage Absolute Difference between actual (experimental) and predicted value is given by

PAD (%)  experimentalexperimentalpredicted  100

Root Mean Square Error (RMSE) The RMSE value between actual value „A‟ and the predicted value „P‟ given by

  

M i

RMSE (^) M Ai P i 1

The average PAD and RMSE values on testing data are as follows. PAD value: 0. RMSE value: 0. The individual values of Predicted and actual lattice constants for 46 test instances are depicted in figure 3.2.

Figure 3.2: Actual and predicted values of lattice constants of testing samples.

The individual RMSE values for testing instances are shown in figure 3.3.

REFERENCES

[1] Richard O. Duda, Peter E. Hart, David G. Stork, “Pattern Classification”, New York, (2001) [2] S. R. Gunn, “Support Vector Machines for Classification and Regression”, (1998) [3] A.J. Smola. “Regression estimation with support vector learning machines”, Master‟s thesis, Technische Universit¨at M¨unchen, (1996) [4] V. Vapnik, S. Golowich, and A. Smola. “Support vector method for function approximation, regression estimation, and signal processing”, In M. Mozer, M. Jordan, and T. Petsche, editors, “Advances in Neural Information Processing Systems 9”, pages 281 – 287, Cambridge, MA, (1997) [5] V. Vapnik, “The Nature of Statistical Learning Theory”, Springer Verlag N.Y., (1995) [6] V. Vapnik. “Statistical Learning Theory”, Springer, N.Y., (1998) [7] S. Haykin, “Neural Networks A Comprehensive Foundation”, 2nd ed., Pearson Education, Canada, (1999) [8] Huber, P. J., “Robust estimation of a location parameter", “Annals of Mathematical Statistics”, vol. 35, pp. 73-101, (1964) [9] Huber, P. J., “Robust Statistics”, New York: Wiley, (1981) [10] URL: http://www.clopinet.com/isabelle/Projects/SVM/applist.html.