On the use of LSTM networks for predictive maintenance in smart industries