I 'm trying to classify some pixels using a binary support vector machine. my training database is made of 28 data files and has two classes, number pixels of class1 is 16571 and number of pixels of class2 is 313.
The test data(each file) has around 600 pixels that only 6-10 pixels are member of class 2 and the remaining pixels are in class1.
My problem is that, after training, when I try to classify data, the SVM classifies all of the pixels in class1.
I think that it maybe because it has seen few samples from class2. but the number of available data files are limited(around 35 data file).
How can I train the svm and get reasonable result?
Thank you for your help.