Text this: Unsupervised dimensionality reduction method for multivariate time series based on global and local scatter