adaptive neuro-fuzzy inference system (ANFIS)
31 views (last 30 days)
Hi. I'm trying to use ANFIS for classification of my data. I have a data set with 15 images, each of which have 22 features extracted. These images need to be classified into four classes using ANFIS. I created FIS using the command fis1 = genfis2(xin,xout,0.1). Where, xin is the matrix containing the extracted features of 15 images (size 15x22) and xout is a column matrix (size 15x1) in which each row shows the class of the respective image. Next, I have used anfisedit. My training data is size 15x23 and I have used the previously generated FIS file (fis1) loaded from workspace. It trains and tests fine and the average test error is also small. Now my questions are 1) I want to generate the FIS file and classify it using commands instead of GUI. How do I do that? I have generated a Matlab script from anfisedit but it's too complicated for me. 2) How does anfisedit classify these images? In the plot window I see circles representing all the inputs I have used. However, many of these inputs belong to the same class and I don't see any representation of any of the classes. I just need 4 classes while in the plot window i see 15 circles. 3) Once I have trained anfis how do I use it to find the class of an unknown image? After all that is the reason I'm doing all of this 4) Lastly I want to plot confusion matrix to see the percentage accuracy of the system. How should I do that?
Thank you in advance. Have a nice day
Yarpiz on 12 Sep 2015
Maybe this can help you:
It uses several methods of FIS generation methods (genfis1, genfis2 and genfis3), and uses anfis function, to train the ANFIS structure, programmatically. It is used to solve a nonlinear regression problem; however the classification problem is quite similar to this one, and you can easily modify this code, to achieve your goal.