Summary
In the development of smart cities, the intelligent transportation system (ITS) plays a major role. The dynamic and chaotic nature of the traffic information makes the accurate forecasting of traffic flow as a challengeable one in ITS. The volume of traffic data increases dramatically. We enter the epoch of big data. Hence, a 1deep architecture is necessary to process, analyze, and inference such a large volume of data. To develop a better traffic flow forecasting model, we proposed an attention‐based convolution neural network long short‐term memory (CNN‐LSTM), a multistep prediction model. The proposed scheme uses the spatial and time‐based details of the traffic data, which are extracted using CNN and LSTM networks to improve the model accuracy. The attention‐based model helps to identify the near term traffic details such as speed that is very important for predicting the future value of flow. The results show that our attention‐based CNN‐LSTM prediction model provides better accuracy in terms of prediction during weekdays and weekend days in the case of peak and nonpeak hours also. We used data from the largest traffic data set the California Department of Transportation (Caltrans) for our prediction work.