MATLAB Answers

Support vector machine for multi-class

3 ビュー (過去 30 日間)
Ramanaesh Rao
Ramanaesh Rao 2021 年 7 月 25 日
コメント済み: Walter Roberson 2021 年 7 月 27 日
Good day.
I want to use SVM to classify my images into multi classes but i already extracted features using regionprops and GLCM.
How do i feed these extracted features into SVM so that SVM can classify the images according to the extracted features?


Walter Roberson
Walter Roberson 2021 年 7 月 25 日
So use one row for each sample, and the columns are the concatenated features, one row for each sample.
  4 件のコメント
Walter Roberson
Walter Roberson 2021 年 7 月 27 日
No, that is not required, it is just a good idea.
You could instead do cascade of 1-versus-the-rest tests. Construct an SVM that classifies everything in one of the classes as one class, and everything else in a second class. Then remove the first class from the data and classify a second class as one class, versus everything else. Then remove the second class, do third versus everything and so on.
The classification process would be to first apply the first SVM against the input data. If it says that the data is the first class, then you accept that and stop. Otherwise, you run the data gainst the second SVM set; if it says that the data is in the noted class, you accept that and stop (class #2); otherwise you run against the third SVM, and so on. You could end up using up to (number of classes minus one) SVM predictions to do the final decision (between last class versus second-last class).
You can do this. It was the historic approach, and it only requires using binary SVM at any point, never any multiclass SVM.
However... this is not very robust. The order you do the classes can turn out to be important. The SVM ECOC approach takes care to account for this, and uses error coding theory to try to provide the best classification.
You are not required to use the Multi Class SVM functions; it is just a good idea to do so, as the theory behind the routines has already been designed to produce good results for cases where classes are close together, and for cases where there might be noise in the observation inputs.


その他の回答 (0 件)

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by