Data preprocessing and SVM test