Real-Time Intersection Turning Movement Flow Forecasting Using a Parallel Bidirectional Long Short-Term Memory Neural Network Model

Real-time forecasting of intersection turning movements is a critical requirement for predictive traffic signal control at signalized intersections. Several traffic flow forecasting models have been developed in the past; however, most of them have focused only on the road segment-level traffic instead of the turning movement flow (TMF) at intersections. Therefore, in this paper, we propose a new TMF forecasting model, which consists of a combination of two neural network models, namely the stacked bidirectional long short-term memory and the traditional multi-layer perceptron model; this combination will enable effective learning for both short- and long-term time-varying patterns. Moreover, extensive computational experiments, using two years of turning movement counts at 22 intersections in the city of Milton, Ontario, Canada, explore the performance advantage of the proposed model in comparison with several state-of-the-art base models for forecasting accuracy, robustness, and transferability.

Real-time traffic flow forecasting is a critical component of many advanced traffic management and information systems (ATMS/ATISs).Moreover, accurate forecasting of intersection traffic can enable the prediction of traffic signal control and timing to improve traffic operations and safety.As for road users, accurate and timely information on future traffic congestion can help in making their travel-related decisions, such as where, when, and in what mode/direction to travel.
In the past decade, several traffic forecasting models have been developed, ranging from statistical time-series models, such as the autoregressive integrated moving average (ARIMA), to machine learning (ML) algorithms, such as long short-term memory (LSTM).Nevertheless, a limited number of previous studies have focused on the problem of real-time forecasting of turning movement flows (TMFs).Therefore, through this research, we will try to address this challenge by taking advantage of the latest advances in the field of machine learning (ML), especially deep neural networks (DNN).
We propose a novel parallel bidirectional LSTM model (PB-LSTM) which integrates two proven DNN models, namely, the stacked bidirectional LSTM model (SBiLSTM) (1) and the traditional multi-layer perceptron model (MLP).SBiLSTM is effective in capturing short-term dynamics of data, while MLP is efficient in incorporating other influencing factors and learning throughout the long-term priority of the data.To the best of our knowledge, this paper represents the first attempt to introduce the PB-LSTM model architecture for traffic flow forecasting, in general, and intersection TMFs forecasting, in particular.Moreover, this research is among the few to train and evaluate a forecasting model using a large real-world turning movement counts (TMCs) dataset.An extensive set of computational experiments is conducted, providing valuable insights into several critical questions associated with the model, such as how does the performance of the proposed model vary by using various model settings such as the input data range and the forecasting horizon?Is it possible to improve the performance and transferability of the proposed model by incorporating additional features or by performing location clustering?
To sum up, the remainder of this paper proceeds as follows: the literature review section reviews the classical, ML, and Deep Learning (DL)-based traffic prediction models.The methodology section details the proposed model, followed by the case study section with various experiments relative to the sensitivity analysis.The results section discusses the experimental findings.Finally, the main results and directions for future research are discussed in the conclusion section.

Literature Review
The problem of short-term traffic flow forecasting has been studied extensively in the transportation engineering field.Different forecasting models have been developed, ranging from the traditional statistical time-series models to the latest DL models.The most popular classical statistical model for time-series prediction is ARIMA (2).Researchers have applied ARIMA and its variants, such as the seasonal ARIMA (3) and ARIMAX (4) models, for traffic forecasting.Another statistical model, Prophet, is proposed by Facebook for time-series forecasting (5).It is based on an additive model where nonlinear trends are fit with annual, weekly, and daily seasonality, as well as holiday effects.For instance, Chikkakrishna et al. (6) applied seasonal ARIMA and Prophet models separately for short-term traffic forecasting.They found that the Prophet model can make use of unsmoothed data for traffic forecasting with lower and upper bounds.
Zhang et al. (7) applied the K-nearest neighbors (KNN) method for short-term traffic flow prediction and showed good performance results.Moreover, Smith and Demetsky (8) compared ARIMA with KNN and showed that KNN outperformed ARIMA based on the average absolute error value.
In addition to KNN, other ML algorithms, such as support vector regression (SVR), the random forest (RF), and the traditional MLP, have also been explored for traffic forecasting.For example, Liu and Wu (9) proposed an RF model to predict traffic flow and congestion.Their result showed that the accuracy of the model was as high as 87.5% in predictions of congestion.Furthermore, Leshem et al. (10) conducted a performance analysis and found that the SVR method has a superior performa1nce compared with other time-series models as its root mean square error (RMSE) for a 1 min aggregation interval traffic count prediction is only 0.42 vehicle per minute.Compared with the single regressor, AdaBoost-which is an ensemble of learning models consisting of plentiful weak regressors-has shown better forecasting performance, more specifically 60% better than KNN and SVR (10).
With the development of several ML techniques, the performance of traffic forecasting has improved significantly over the years.This is especially true with the latest DL models such as the convolutional neural networks (CNNs), which are capable of dealing with a variety of large datasets (11,12).Recently, the application of recurrent neural networks (RNNs) in time-series analysis has become dominant.In more detail, RNNs are neural networks with hidden states which keep the previous time features for modeling sequential data.For instance, Van Lint et al. (13) applied RNNs to model the freeway travel time, and their model was found to outperform other forward ML algorithms by around 10% better with a 72% smaller model size.Moreover, LSTM models, an improved variant of RNN with improved long-term and short-term temporal learning features, reached an excellent ability for traffic forecasting (14,15).Having the same input historical data length, LSTM achieved 37.5% less RMSE than the SVR model (14,15).The LSTM model was recently extended to the BiLSTM to capture the forward and backward dependencies in typical traffic time-series data, showing a significant performance enhancement (16).In addition, attempts have also been made to integrate CNN along with the LSTM model to account for some additional features like the number of lanes and the occupancies in forecasting.This new model achieved a prediction RMSE that reached around 10 vehicles per hour per lane (17).
Despite the significant progress in traffic forecasting, the problem of intersection turning movement forecasting has received very limited attention.Most previous efforts have focused on predicting turning movements using highly aggregated origin-destination (O-D) data (18,19).For instance, Karnati et al. (20) developed a simple NN-based model on TMCs data from a SUMO simulation model and showed that a three-layer simple NN-based model performed very well with 0.001 mean squared error per 375 s in both oversaturated and undersaturated conditions for predicting the next 375 s TMFs.Moreover, Ghanim et al. (21) developed an MLP model, a fully connected class of feedforward ANN that generates a set of outputs based on a set of inputs.Although their results showed that their model performed exceptionally well, there are several limitations in their studies, among them: (i) the dataset resolution is low, and it only covers peak hours, limiting the application of their model; (ii) the turning movement data was processed as simple cross-sectional observations instead of time series, ignoring the potential autocorrelation and periodicity in the traffic data.

Proposed Model
In this study, the time series of D movements at an intersection is denoted as X = x 1 , x 2 , . . ., x T ½ T 2 R T 3 D with T representing the time steps, where x t is a vector (x t = ½x 1 t , x 2 t , . . ., x D t ) denoting the movement flows at time t.The intersection movement flow prediction problem is defined as learning a function F(Á) to map T historical TMFs to the TMFs workspace at a specific prediction horizon, Dt.Therefore, the following expression can be obtained: As described in the previous section, many traffic flow forecasting models (i.e., function F(Á)) have been developed in the literature, having different fundamental model structures, assumptions on data availability, and application environments.However, our proposed model, the PB-LSTM, is a DNN model built on two well-known NN models, namely, LSTM and MLP.The LSTM model (22)has been successfully applied for timeseries forecasting with long-term dependencies (1,17,23,24).Furthermore, over the past few years, many different forms of LSTM have been proposed for traffic flow forecasting; however, none has shown significant performance improvement over the basic LSTM model (17).This latter consists of a sequence of processing cells of the same structure, as shown in Figure 1.The input of the LSTM cell includes several parameters:  5).In the last step, the sigmoid layer will decide what parts of the state to output, and then the output will pass through the tanh layer and multiply the cell state as shown in Equations 6 and 7.
Furthermore, multiple basic LSTM cells could be combined in a sequence to form new powerful unidirectional LSTM models.Moreover, they may be set up as two distinct LSTMs that analyze a stream of data in both forward and backward directions, as shown in Figure 2.
The resulting model, that is, the SBiLSTM, has been shown to be substantially better than the unidirectional LSTM model (24).Furthermore, this model can be built as a stacked multi-layer form, resulting in a stacked SBiLSTM (25).In such an architecture (25), the output of a hidden layer will be fed as the input into the subsequent hidden layer; this approach has been found to be effective in dealing with certain types of tasks.
To sum up, in this study, an additional MLP layer is added to the top of the stacked SBiLSTM to capture the potential interactions between the individual movements at an intersection.The latter represents information with long-term relevance (e.g., the memory).The resulting model is known as the PB-LSTM model, as shown in Figure 3.The combination of the MLP and SBiLSTM structures is expected to make full use of both time-series and non-time-series data and enable both short-term and mid-term forecasting.Moreover, each record includes two parts, X TMC and X stamp .In the upper part data, X TMC is TMCs time-series data for the D traffic movements, and each record indicates the aggregation count of 5 min volume.This part of the data is processed by the SBiLSTM block: the first layer of the SBiLSTM block represents the time-distributed dense layer which is used to capture the inner relationship of the traffic movements for every temporal input value, and the process will not eliminate time dependence when capturing the TMCs dependencies.Moreover, the subsequent three stacked layers are LSTM layers with 32 units, and they will analyze the time dependency for each movement.There is another feature of data X stamp , processed by an MLP block including hours of the day, day of the week, the month of the year, and intersection clustering label from the KNN model (which will be described in detail throughout this paper); therefore, the MLP block consists of three dense layers with each having 16 units with the Relu (16) activation function.After the two blocks, the 1-D output vectors from X TMC and X stamp are concatenated together and passed to the dense layer to make the final prediction.

Case Study Data Description
A case study is conducted to evaluate the performance of the proposed PB-LSTM model and compare it with several existing state-of-the-art models.The dataset used in the study includes TMCs measured at 5 min intervals regrouping 49 signalized intersections in Milton, Ontario, Canada, for the period from 2019 to 2021 (as shown in Figure 4).The TMCs were collected using the Miovision SmartSense system, whose main features are summarized in Table 1.
In this study, 20 intersections were selected, being those having the most complete data coverage between January 2020 and April 2022.The dataset has a total of 4,901,760 records, which is equal to 245,088 records per intersection.Moreover, the dataset is split randomly into two subsets: 80% for model training and 20% for model testing.
An exploratory data analysis was conducted on a sample intersection (Main Street East and Maple/ Sinclair Drive).As a typical time-series dataset, TMCs records englobe daily and weekly seasonality and monthly tendency.Therefore, Figure 5 shows the total 5 min volume of the eastbound approach daily count from January 2020 to April 2022.Based on this figure, the trend over the first year is clearly visualized: the  traffic has the first peak at the end of March after continuously growing from January, but it then starts falling until May; after May, the TMC keeps increasing to reach the second peak in September, and then decreases slightly until December.Compared with 2021 and 2022, these noticeable variations in traffic in 2020 were caused by a provincial-wide lockdown in Ontario during these months because of the COVID-19 pandemic; for this reason, we observe rapidly decreasing traffic in April 2020, and it slightly decreases again in October 2020.
This data analysis has shown the influence of the COVID-19 pandemic on TMCs and confirmed the expected shorter temporary variation patterns in the TMFs, such as daily and weekly seasonality.To identify these time-varying patterns, it is necessary to apply models that can capture both the short-term and the long-term traffic dynamics, such as the proposed PB-LSTM.

Computational Experiments and Results
The proposed PB-LSTM model, along with several base models described in the previous section, was implemented using the Keras backend with Tensor Flow (26).The DNNs were trained by optimizing the cost function using the Adam method (27).In the training process, the training dataset was first re-formatted for models to include the input history of a defined length.Moreover, crossvalidation was applied at each iteration using 20% of the training dataset selected randomly for model validation.Furthermore, the model parallelism was applied in the computation process: the LSTM and MLP blocks were trained in different Graphics Processing Units (GPUs), and they were then concatenated on the same Central Processing Unit (CPU).The model hyperparameters have been chosen by Bayesian optimization.The average training time for a one-step forecasting is 52 s per iteration on two NVIDIA GeForce GPUs (GTX1080 8GB and GTX1070 8GB), whereas, for the forecasting on the test dataset, 90 s were needed.This implies that each prediction required less than 0:65 3 10 À3 s.Finally, the following section discusses the main results of several computational experiments.

Preliminary Performance Evaluation
To provide a basis for assessment and comparison, we first implemented several of the most well-known models, including ARIMA (28), Prophet (5), linear regression (29), AdaBoost (30), RF (31), MLP (32), and LSTM (33) and compared their relative performance.As a preliminary evaluation effort, all models were trained and tested using data measured over a single year (2020) at a given intersection (Main Street East and Maple/Sinclair Drive).The input time-series data range was set to 30 min (i.e., six intervals of 5 min each) and the forecasting horizon 5 min (i.e., next time interval).The performances of the models were evaluated using the average RMSE for all movements at the intersection.Therefore, Figure 6 shows the RMSE for the forecast TMFs by 5 min traffic volume.For MLP, RF, and AdaBoost, the input is temporarily changing its patterns, including the hour of the day, the day of the week, and the month of the year, whereas LSTM, ARIMA, and Prophet took the same range of observations as input.Moreover, Figure 6 shows that, among all models, LSTM had the best performance, followed by MLP, AdaBoost, and RF, which performed slightly better than the classical models.These results are consistent with the findings from the literature (17).
Another preliminary computational analysis was conducted to compare the performance of three types of LSTM models, namely, the basic LSTM, the SBiLSTM, and the SBiLSTM with an additional time-distributed full connected perceptron layer (MLP + SBiLSTM).
After being combined with the extra MLP layer, SBiLSTM is expected to enhance the forecasting accuracy (34).These models have been trained using data from the same test intersection and their performance results are shown in Figure 7.It can be observed that SBiLSTM and MLP + SBiLSTM significantly outperformed the basic LSTM, especially at the level of weighted average RMSE.Moreover, the performances of SBiLSTM and MLP + SBiLSTM are relatively close on average RMSE; however, the RMSE of MLP + SBiLSTM for the left-and right-turn movements is lower than SBiLSTM.As a result, the MLP + SBiLSTM model was finally selected for further consideration.
The preliminary computational study has shown that both MLP and SBiLSTM models can outperform other models; therefore, they could be used as a building block for constructing new forecasting models such as the proposed PB-LSTM described previously.

Overall Performance
The intersection of Main Street East and Maple/Sinclair Drive is selected for a case study on the overall performance of the PB-LSTM model, with TMCs data covering the period from January 2020 to April 2022.In this experiment, the input data range is 30 min (i.e., six 5 min intervals), whereas the forecasting horizon is 5 min, that is, one interval into the future, which was achieved using a rolling horizon scheme.
Furthermore, Figure 8 shows the forecast intersection daily flows of eastbound traffic by turning movement versus the same as observed for 2020 during the COVID-19 pandemic.In March 2020, the Ontario Government announced the lockdown for the first time; thus, there was a sharp decline in traffic.To sum up, the proposed model successfully captured the general trend of traffic variation over the period.
Figure 9 shows the forecast intersection flows by turning movement versus the observed flow during weekdays and weekends when testing the dataset between January and December 2020.
As a result, it can be seen that our proposed model was able to capture the specific traffic daily variations at this intersection accurately.This could be attributed to the integration of the MLP and SBiLSTM models where the former helps in acquiring longer memory (i.e., the  daily periodicity) and the latter gains shorter memory for the time-of-day traffic variation.The result shows that the PB-LSTM model was successful in replicating the peaking of most traffic turning movements.However, the forecasting errors appeared to be larger during the peaking points, which is most likely caused by the inherent random variation of traffic, especially when short time intervals (e.g., shorter than 5 min) are considered.Compared with weekday prediction, the performance of TMFs during the weekend only has one peak and the forecasting errors of the PB-LSTM model are much smaller.
Referring to Figures 8 and 9, it can be observed that the PB-LSTM can correctly forecast the trend; however, the predicted counts are lower than the actual ones during high traffic flow conditions.Figure 10 shows the variation of RMSE with respect to the time of day of the PB-LSTM model and SBiLSTM for eastbound traffic   for the same intersection while using the testing dataset from January to December 2020.Furthermore, it can be observed that our proposed model outperforms the SBiLSTM model most of the time.Table 2 shows the performance of our proposed model on 20 intersections for all 12 movements.It is obvious that the prediction error of PB-LSTM is acceptable for all test intersections, as its average is below six vehicles per hour.Moreover, Table 3 compares the performance of our proposed model with SBiLSTM.We can see that the PB-LSTM model outperforms SBiLSTM for all 20 intersections and PB-LSTM has at least 10% less RMSE than SBiLSTM among nine intersections.

Effect of Input Data Range
In this experiment, the proposed model along with the two base models (SBiLSTM and MLP) are compared to predict the next 5 min of TMFs under different input data ranges (past 5 min, 10 min, 30 min, 60 min, and 120 min of observations) using data from the intersection of the Main Street and Leisure Centre Driveway.
Figure 11 shows the performance of the SBiLSTM and PB-LSTM models based on four measurement errors (mean absolute error [MAE], mean absolute percentage error [MAPE], RMSE, and root mean square percentage error [RMSPE]), varied by the length of the input data.Note that the result of the MLP model was not included as its errors are much larger in magnitude.The forecasting errors for both models decreased dramatically when the input data range increased from 5 min to 30 min and then it leveled off.The result also shows that the proposed PB-LSTM needed a shorter length of input data to achieve most of the performance gain compared with the Bi-LSTM model.Therefore, the optimal input data length could be as low as 30 min for the PB-LSTM model and 60 min for the SBiLSTM model.It should also be noted that the proposed PB-LSTM model outperformed the SBiLSTM model consistently under all input data ranges.

Effect of the Forecasting Horizon
The performance of the time-series forecasting models typically deteriorates as the forecasting horizon increases.Therefore, the focus of this section is to determine the underlying performance pattern of the proposed model having, as an objective, the quantification of the speed and magnitude of the deterioration in comparison with the base model.The trained model was thus applied in a rolling horizon to forecast the future traffic movements using the same case study intersection as in the previous experiment with a forecasting horizon ranging from one interval (5 min) to 24 intervals (120 min).Therefore, Figure 12 shows that the forecasting errors of both models (SBiLSTM and PB-LSTM) increased approximately in a linear way by the forecasting horizon.However, the proposed model showed a clear performance advantage over the SBiLSTM model in both the error magnitude and the performance deterioration speed.

Benefits of Location Clustering and Model Transferability
Because of the similarities in underlying travel demand and behavior, traffic flows may display similar time-varying patterns at several crossings in the same area.It is hypothesized that if clusters of intersections having similar attributes and traffic dynamics could be identified in advance and separate models could be constructed for each cluster, these models could provide better forecasts, especially when the models are applied to new locations (intersections in our case) where observations are not available to train the models.To test this hypothesis, the  20 intersections were classified into four groups using the well-known K-means algorithm (35) based on three different sets of intersection features, as shown in Table 4.
Figure 13 shows the classification results under the three scenarios, whereas Figure 14 represents the impacts of the different traffic flow characteristics.Based on the obtained results, it is clear that the classifications under scenarios 2 and 3 are almost the same, indicating that the approach daily volume and the turning movement daily volume input deliver similar traffic variation patterns.Therefore, only scenarios 1 and 2 are considered in further analysis.
As a result, two distinct PB-LSTM models were created, PB-LSTM Geo (Scenario 1) and PB-LSTM App (Scenario 2), incorporating intersection cluster indications from the two clustering scenarios as an additional input.The base PB-LSTM is the one with no clustering but only intersection IDs, as denoted by the PB-LSTM ID.The input data range was set for 30 min and the forecasting horizon for 5 min.
The performance results are shown in Figure 15, where two observations can be made from these results.
First, the two models, considering clustering, performed better than the one without considering clustering because the clustering label provided additional geographical or daily traffic flow information.Second, the performance superiority of the two models with different clustering scenarios is mixed with the non-consistent outcome at some intersections; therefore, the PB-LSTM Geo outperformed the PB-LSTM App while at others the opposite was true.
One of the main reasons for including a clustering step is to improve the transferability of a forecasting model, that is, the ability of a model to forecast the flows at a completely new location or intersection.Therefore, the two trained models were applied to two completely new intersections, where data was not used in training the proposed model: the intersection of the Main Street and Leisure Centre Driveway (Geometry label: 2; Approach label: 2) and the intersection of Ontario Street South and Childs Drive (Geometry label: 3; Approach label: 2).The trained models were applied to generate one-step-ahead forecast of the turning movements at the test intersection.The cluster of the test intersection was determined   according to each clustering method.For simplicity, this experiment considers only RMSE and RMSPE errors for evaluation.The input data range was fixed at 30 min.Moreover, the result for eastbound and northbound is shown in Figures 16 and 17, and other details are shown in Tables 5 and 6.
To forecast the turning movements at the new intersections, the PB-LSTM Geo performed better for high traffic volume movements but not for low traffic movements.Regardless of the clustering step, the forecasting errors of the proposed models for the new intersections (data was not used in training the models) are  comparable to those for the existing intersections (data was used in training the models).

Conclusion
Intersection traffic flow forecasting could provide valuable information for predicting traffic management and signal control as well as the timely provision of real-time information about road users.Recent advances in videobased real-time traffic monitoring solutions and ML have provided new opportunities for developing more reliable and accurate traffic forecasting models.Therefore, this research has explored the applications of several state-ofthe-art DL models for short-term forecasting of intersection TMFs based on real-time TMCs.Specifically, a novel DNN model was proposed, which combines the latest LSTM model called stacked bidirectional LSTM with the traditional simple MLP, enabling learning of both short-and long-term time-varying patterns.Moreover, the performance of the proposed model was evaluated and compared with several state-of-the-art base models using two years of TMCs at 20 intersections in the city of Milton, Ontario, Canada.A series of experiments were also conducted to examine how the performance of the models was affected by several critical model settings, including the input data range, prediction horizon, and intersections clustering.The main findings and contributions of this research are summarized as follows: The proposed PB-LSTM model was shown to have a consistent performance advantage over    several state-of-the-art time-series forecasting models, including SBiLSTM and MLP; Based on a sensitivity analysis of the effect of input data range on the model performance, the PB-LSTM model required input data as little as 30 min to achieve performance comparable with the SBiLSTM model using a data input range of 60 min; The performance of all models was shown to deteriorate by forecasting horizon; however, the proposed model had a much slower deterioration rate when compared with others; To improve the generalization ability of the proposed model, a clustering step was introduced to group intersections of similar attributes and use the grouping as an additional input to the model.Therefore, two clustering scenarios were proposed and their effect on the model performance was evaluated.As a result, it was found that the model with a consideration of clustering performed better than the one without clustering; however, the performance advantage was moderate at best.This research could be extended in several directions.First, the idea of incorporating a clustering component in the overall forecasting model needs to be further explored, considering the relationship between the model generalizability and the intersection clustering methods.Second, the proposed model was found to be still limited in capturing abrupt short-term traffic variations.This could be attributed to either the learning capacity of the model or the inherent random variation of traffic.Moreover, as mentioned in Overall Performance section, the PB-LSTM underestimates TMFs during the peak hour where some separate models could be trained independently to solve the problem.Further research is therefore needed to explore other model forms (e.g., graph neural network) for capturing the network-wide interactions of traffic and examining the overall predictability issue of traffic.Finally, this work did not explore the question of how applicable the proposed model is to traffic in other cities.Therefore, applying it to other datasets, relevant to other cities, would be interesting to validate the obtained results.

Figure 4 .
Figure 4. Case study intersections.The brown dots are the intersections being monitored, the blue dots are the intersections selected for analysis, and the intersections in the red circle are additional test intersections.

Figure 5 .
Figure 5. Daily traffic movement counts (TMCs) over the analysis period.

Figure 6 .
Figure 6.Comparison of the performance of some well-known time-series forecasting models.

Figure 11 .
Figure 11.Weighted average performance comparison of two models under different observation range when predicting the next 5 min flow: (a) mean absolute error, (b) mean absolute percent error, (c) root mean square error, (d) root mean square percent error.

Figure 12 .
Figure 12.Weighted average performance comparison of two models for different prediction horizons when inputting 30 min historical traffic movement flows (TMFs): (a) mean absolute error, (b) mean absolute percent error, (c) root mean square error, (d) root mean square percent error.

Figure 15 .
Figure 15.Comparison of PB-LSTM with the geometry classification label, PB-LSTM with approach classification label, PB-LSTM with the ID numbers, and typical LSTM models when being applied in 20 intersections: (a) mean absolute error, (b) mean absolute percent error, (c) root mean square error, (d) root mean square percent error.Note: PB-LSTM = parallel bidirectional long short-term memory; LSTM = long short-term memory.

Figure 16 .
Figure 16.Comparison of PB-LSTM with geometry classification label, PB-LSTM with approach classification label, PB-LSTM with ID numbers, and typical LSTM models when applied in Ontario Street South and Childs Drive: (a) root mean square error, (b) root mean square percent error.Note: PB-LSTM = parallel bidirectional long short-term memory; LSTM = long short-term memory.

Figure 17 .
Figure 17.Comparison of PB-LSTM with geometry classification label, PB-LSTM with approach classification label, PB-LSTM with ID numbers, and normal LSTM models when applied to Main Street and Leisure Centre Driveway: (a) root mean square error, (b) root mean square percent error.Note: PB-LSTM = parallel bidirectional long short-term memory; LSTM = long short-term memory.
The input gate, including the sigmoid layer, determines which values to update, and a tanh layer creates a vector of the new candidate values, Ct .After that, the old cell state, C tÀ1 , will be updated into the new cell state, C t (refer to Equation

Table 1 .
Features Included in the Raw Data Note: NA = not available.

Table 2 .
Root Mean Square Error of PB-LSTM for Forecasting Traffic Movement Flows of all 20 Intersections Note: PB-LSTM = parallel bidirectional long short-term memory.Unit is vehicles per hour.

Table 3 .
Model Comparison of the Weighted Root Mean Square Error for Forecasting Forecasting Traffic Movement Flows of all 20 Intersections Note: PB-LSTM = parallel bidirectional long short-term memory; SBiLSTM = stacked bidirectional long short-term memory.Unit is vehicles per hour.

Table 4 .
K-Means Classification Scenarios

Table 5 .
Model Comparison for Intersection of Main Street and Leisure Centre Driveway PB-LSTM = parallel bidirectional long short-term memory; RMSE = root mean square error; RMSPE = root mean square percentage error. Note:

Table 6 .
Model Comparison for Intersection of Ontario Street South and Childs Drive PB-LSTM = parallel bidirectional long short-term memory; RMSE = root mean square error; RMSPE = root mean square percentage error. Note: