LSTM is better . ANN assigns a weight matrix to the current input and then produces an output, completely forgetting the previous input. Hence information flows only once through ANN and previous information is not retained. Hence ANN do not perform well where time context is required i.e Time series data.