 Research
 Open Access
 Published:
SVM Classifier – a comprehensive java interface for support vector machine classification of microarray data
BMC Bioinformatics volume 7, Article number: S25 (2006)
Abstract
Motivation
Graphical user interface (GUI) software promotes novelty by allowing users to extend the functionality. SVM Classifier is a crossplatform graphical application that handles very large datasets well. The purpose of this study is to create a GUI application that allows SVM users to perform SVM training, classification and prediction.
Results
The GUI provides userfriendly access to stateoftheart SVM methods embodied in the LIBSVM implementation of Support Vector Machine. We implemented the java interface using standard swing libraries.
We used a sample data from a breast cancer study for testing classification accuracy. We achieved 100% accuracy in classification among the BRCA1–BRCA2 samples with RBF kernel of SVM.
Conclusion
We have developed a java GUI application that allows SVM users to perform SVM training, classification and prediction. We have demonstrated that support vector machines can accurately classify genes into functional categories based upon expression data from DNA microarray hybridization experiments. Among the different kernel functions that we examined, the SVM that uses a radial basis kernel function provides the best performance.
The SVM Classifier is available at http://mfgn.usm.edu/ebl/svm/.
Background
Highdensity DNA microarray measures the activities of several thousand genes simultaneously and the gene expression profiles have been recently used for the cancer and also other disease classification. The Support Vector Machine (SVM) [1, 2] is a supervised learning algorithm, useful for recognizing subtle patterns in complex datasets. It is one of the classification methods successfully applied to the diagnosis and prognosis problems. The algorithm performs discriminative classification, learning by example to predict the classifications of previously unclassified data. The Support Vector Machine (SVM) was one of the methods successfully applied to the cancer diagnosis problem in the previous studies [3, 4]. In principle, the SVM can be applied to very high dimensional data without altering its formulation. Such capacity is well suited to the microarray data structure.
The popularity of the SVM algorithm comes from four factors [5]. 1) The SVM algorithm has a strong theoretical foundation, based on the ideas of VC (Vapnik Chervonenkis) dimension and structural risk minimization [2]. 2) The SVM algorithm scales well to relatively large datasets. 3) The SVM algorithm is flexible due in part to the robustness of the algorithm itself, and in part to the parameterization of the SVM via a broad class of functions, called kernel functions. The behavior of the SVM can be modified to incorporate prior knowledge of a classification task simply by modifying the underlying kernel function. 4) Accuracy: The most important explanation for the popularity of the SVM algorithm is its accuracy. The underlying theory suggests explanations for the SVMs excellent learning performance, its widespread application is due in large part to the empirical success the algorithm has achieved [5].
Implementation
We have developed a simple graphical interface to our implementation of the SVM algorithm, called SVM Classifier. This interface allows novice users to download the software for local installation and easily apply a sophisticated machine learning algorithm to their data. We implemented a publicly accessible application that allows SVM users to perform SVM training, classification and prediction. For details on using the software, sample dataset and explanations of the underlying algorithms, we refer readers to the web site and the references listed there. SVM users might also be interested in a number of other licensed SVM implementations that have been described previously, including LIBSVM [6].
We used the SVM algorithms implemented by the Libsvm team [6], as a core. In order to maximize crossplatform compatibility SVM Classifier is implemented in java using standard swing libraries (Figure 1).
The open source, crossplatform Apache Ant, and free edition of Borland JBuilder 2005 Foundation are used as the build tools. Although developed on WinXP OS, SVM Classifier has been successfully tested on Linux and other Windows platforms, and will run on Mac OS9 with the Swing extension. Users are able to run SVM Classifier on any computer with java 1.4 runtime or higher version.
The application has two frames, the classification and the prediction frame. In both frames data file format can be imported either as a "Labeled" or as a "Delimited" data file format (Figure 2 and Figure 3).
In the classification frame user will create a model from the training dataset for classification (CSVC, nuSVC), regression (epsilonSVR, nuSVR), and distribution estimation.
In this frame user is able to import the training dataset into the application, select the path to save the model file, select the appropriate SVM and kernel type and create a model for the dataset. The model file can be later used for the prediction purpose. There is also a choice for cross validation. Cross validation (CV) technique is used to estimate the accuracy of each parameter combination in the specified range and helps us to decide the best parameters for classification problem.
In prediction frame the model will be applied to the test data to predict the classification of unknown data. We have also provided a tool for viewing the two dimensional data that can be accessed from the view menu bar (Figure 4).
Kernel Types
K(x_{ i }, x_{ j }) = Φ(x_{ i })^{T}Φ(x_{ j }) is called the kernel function. Here training vectors x_{ i }are mapped into a higher (probably infinite) dimensional space by the function Φ. There are following four basic kernels: linear, polynomial, radial basic function (RBF), and sigmoid:

1.
Linear: K(x_{ i }, x_{ j }) = x_{ i }^{T}x_{ j }

2.
Polynomial: The polynomial kernel of degree d is of the form
K(x_{ i }, x_{ j }) = (x_{ i }, x_{ j })^{d}

3.
RBF: The Gaussian kernel, known also as the radial basis function, is of the form
Where σ stands for a window width

4.
Sigmoid: The sigmoid kernel is of the form
K(x_{ i }, x_{ j }) = tanh(k(x_{ i }x_{ j }) + ϑ)
When the sigmoid kernel is used with the SVM one can regard it as a twolayer neural network.
SVM Types
1. CSVC: CSupport Vector Classification (Binary Case)
Given a training set of instancelabel pairs (x_{ i }, y_{ i }), i = 1,...,l where x_{ i }∈ R^{n}and y ∈ {1, 1}^{l}, ←the support vector machines (SVM) require the solution of the following optimization problem:
SVM finds a linear separating hyperplane with the maximal margin in this higher dimensional space. C > 0 is the penalty parameter of the error term [7, 2]. The decision function is:
2. nuSVC: νSupport Vector Classification (Binary Case)
The parameter ν ∈ (0, 1) is an upper bound on the fraction of training errors and a lower bound of the fraction of support vectors [8]. Given training vectors x_{ i }∈ R^{n}, i = 1,...,l, in two classes, and a vector y ∈ R^{l}such that y_{ i }∈ {1, 1}, the primal form considered is:
And the decision function is:
3. epsilonSVR: εSupport Vector Regression (εSVR)
One extension of the SVM is that for the regression task. A regression problem is given whenever Y = ℝ for the training data set Z = {(x_{ i }, y_{ i }) ∈ X × Y  i = 1,...,M} and our interest is to find a function of the form f: X → RD. The primal formulation for the SVR is then given by:
We have to introduce two types of slackvariables ξ_{ i }and , one to control the error induced by observations that are larger than the upper bound of the εtube, and the other for the observations smaller than the lower bound. The approximate function is:
4. nuSVR: νSupport Vector Regression (νSVR)
Similar to νSVC, for regression, [8, 9] use a parameter ν to control the number of support vectors. However, unlike νSVC where C is replaced by ν here ν replaces the parameter ε of εSVR. Then the decision function is the same as that of εSVR.
5. Oneclass SVM: distribution estimation
Oneclass classification's difference from the standard classification problem is that the training data is not identically distributed to the test data. The dataset contains two classes: one of them, the target class, is well sampled, while the other class is absent or sampled very sparsely. Schölkopf et al. [9] have proposed an approach in which the target class is separated from the origin by a hyperplane. The primal form considered is:
And the decision function is:
Cross Validation
The goal of using cross validation is to identify good parameters so that the classifier can accurately predict unknown data [6].
A common way is to separate training data into two parts, one of which is considered unknown in training the classifier. Then the prediction accuracy on this set can more precisely reflect the performance on classifying unknown data. An improved version of this procedure is crossvalidation.
In vfold crossvalidation, the training set is divided into v subsets of equal size. Sequentially one subset is tested using the classifier trained on the remaining v  1 subsets. Thus, each instance of the whole training set is predicted once so the crossvalidation accuracy is the percentage of data which are correctly classified. The crossvalidation procedure can prevent the overfitting problem [6].
Shrinking
Chang and Lin [6] mentioned that since for many problems the number of free support vectors (i.e. 0 <α_{ i }< C) is small, the shrinking technique reduces the size of the working problem without considering some bounded variables [6, 10].
Caching
Caching is another technique for reducing the computational time. Since Q (Q is an l by l positive semi definite matrix, Q_{ ij }= y_{ i }y_{ j }K(x_{ i }, x_{ j })) is fully dense and may not be stored in the computer memory, elements Q_{ij} are calculated as needed. Usually a special storage using the idea of a cache is used to store recently used Q_{ij} [6, 10].
Results and Discussion
We presented an evaluation of the different classification techniques presented previously. Data from a breast cancer study [11] is used in this study. The data consists of 22 cDNA microarrays, each representing 3226 genes based on biopsy specimens of primary breast tumors of 7 patients with germline mutations of BRCA1, 8 patients with germline mutations of BRCA2, and 7 with sporadic cases. We took log2 of the data to perform the classification using the three kernels.
We have achieved 100% accuracy in classification among the BRCA1–BRCA2 samples with RBF kernel of SVM. RBF kernel also shows better performance among all data as shown in Figure 5.
Conclusion
We have developed a java GUI application that allows SVM users to perform SVM training, classification and prediction. We have demonstrated that support vector machines can accurately classify genes into functional categories based upon expression data from DNA microarray hybridization experiments. Among the different kernel functions that we examined, the SVM that uses a radial basis kernel function provides the best performance.
Availability and Requirements
Project name: SVM Classifies
Project home page: http://mfgn.usm.edu/ebl/svm/
Operating systems: platform independent
Programming language: Java Swing
Other requirements: Java JRE 1.4.2 or higher
License: GNU GPL
Any restrictions to use by nonacademics: none
Abbreviations
 VC dimension:

Vapnik Chervonenkis dimension
 CSVC:

CSupport Vector Classification
 nuSVC:

νSupport Vector Classification
 nuSVR:

νSupport Vector Regression (νSVR)
 εSVR ε:

Support Vector Regression (epsilonSVR)
References
 1.
Noble WS: Support vector machine applications in computational biology. In Kernel Methods in Computational Biology. Edited by: Schölkopf B, Tsuda K, Vert JP. MIT Press; 2004:71–92.
 2.
Vapnik VN: Statistical Learning Theory. Adaptive and Learning Systems for Signal Processing, Communications, and Control. Wiley: New York; 1998.
 3.
Brown MPS, Grundy WN, Lin D, Cristianini N, Sugnet C, Furey TS, Ares JM, Haussler D: Knowledgebased analysis of microarray gene expression data using support vector machines. Proc Natl Acad Sci USA 2000, 97: 262–267. 10.1073/pnas.97.1.262
 4.
Guyon I, Weston J, Barnhill S, Vapnik V: Gene selection for cancer classification using support vector machines. Machine Learning 2001, 46(1–3):389–422.
 5.
Pavlidis P, Wapinski I, Noble WS: Support vector machine classification on the web. Bioinformatics 2004, 20(4):586–587. 10.1093/bioinformatics/btg461
 6.
ChihChung Chang, ChihJen Lin: LIBSVM, a library for support vector machines.2001. [http://www.csie.ntu.edu.tw/~cjlin/libsvm]
 7.
Cortes C, Vapnik V: Supportvector network. Machine Learning 1995, 20: 273–297.
 8.
Schölkopf B, Smola A, Williamson RC, Bartlett PL: New support vector algorithms. Neural Computation 2000, 12: 1207–1245. 10.1162/089976600300015565
 9.
Schölkopf B, Platt JC, ShaweTaylor J, Smola AJ, Williamson RC: Estimating the support of a highdimensional distribution. Neural Computation 2001, 13(7):1443–1471. 10.1162/089976601750264965
 10.
Joachims T: Making largescale SVM learning practical. In Advances in Kernel Methods – Support Vector Learning. Edited by: Schölkopf B, Burges CJC, Smola AJ. Cambridge: MIT Press; 1998.
 11.
Hedenfalk I, Duggan D, Chen Y, Radmacher M, Bittner M, Simon R, Meltzer P, Gusterson B, Esteller M, Raffeld M, et al.: Geneexpression profiles in hereditary breast cancer. N Engl J Med 2001, 344: 539–548. 10.1056/NEJM200102223440801
Acknowledgements
This work was supported by Dean's Research Initiative award of the University of Southern Mississippi to Youping Deng and the Mississippi Functional Genomics Network (DHHS/NIH/NCRR Grant# 2P20RR01647604).
This article has been published as part of BMC Bioinformatics Volume 7, Supplement 4, 2006: Symposium of Computations in Bioinformatics and Bioscience (SCBB06). The full contents of the supplement are available online at http://www.biomedcentral.com/14712105/7?issue=S4.
Author information
Affiliations
Corresponding author
Additional information
Authors' contributions
Mehdi Pirooznia has designed and implemented the study and handled java software development, software engineering issues for SVM Classifier and data set preparation and testing. Youping Deng has coordinated and directed the project and revised the manuscript. Both authors have read and approved the final manuscript.
Rights and permissions
Open Access This article is published under license to BioMed Central Ltd. This is an Open Access article is distributed under the terms of the Creative Commons Attribution 2.0 International License (https://creativecommons.org/licenses/by/2.0), which permits unrestricted use, distribution, and reproduction in any medium, provided the original work is properly cited.
About this article
Cite this article
Pirooznia, M., Deng, Y. SVM Classifier – a comprehensive java interface for support vector machine classification of microarray data. BMC Bioinformatics 7, S25 (2006). https://doi.org/10.1186/147121057S4S25
Published:
DOI: https://doi.org/10.1186/147121057S4S25
Keywords
 Support Vector Machine
 Support Vector Machine Classifier
 Radial Basic Function Kernel
 Support Vector Machine Algorithm
 Unknown Data