Pattern Recognition and Prediction of Multivariate Time Series with LSTM