In the presence of complex traffic flow patterns, this research responds to the challenge by proposing the application of the Long Short-Term Memory (LSTM) model and comparing four different activation functions, namely tanh, ReLU, sigmoid, and PReLU. This research aims to improve the accuracy of traffic flow prediction through LSTM model by finding the best activation function among tanh, relu, sigmoid, and PReLU. The method used starts from the collection of traffic flow datasets covering the period 2015-2017 used to train and evaluate the LSTM model with the four activation functions. Tests were conducted by observing the Train Mean Squared Error (MSE) and Validation MSE. The experimental results show that PReLU provides the best results with a Train MSE of 0.000505 and Validation MSE of 0.000755. Although tanh, ReLU, and sigmoid provided competitive results, PReLU stood out as the optimal choice to improve the adaptability of the model to complex traffic flow patterns.
Copyrights © 2024