Recurrent neural network (RNN) [1]} cannot solve the long-term dependence problem in which the output is related to a long sequence of preceding segments. Thus, LSTM is designed to solve this problem. Compared to RNN, LSTM has three more gates - forgetting gate, input gate, and output gate - enabling it to achieve better results in traffic flow prediction.
