code to search for spectral differences using svm classifier