Use SVM to train the data for recognition phase.