For a test image, the features extracted from each patch of object can be quantified to the visual words. Then, the object is represented by the histogram of the visual words. Next, SVM is employed to obtain the posterior probability distribution of category. Finally, the posterior probability obtained by SVM and GMS is combined together. We use MAP to choose the category which can be formulated as