preprocessing for classification of gait direction