SlideShare a Scribd company logo
Team
Umer Sohail
Usama Nazeer
Afzaal Subhani
Moazam Malik
Aleem Anjum
Traffic flow Prediction
With KNN and LSTM
Abstract
• Problem Statement:
• The traffic flow prediction is becoming increasingly crucial in Intelligent
Transportation Systems, Accurate prediction result is the precondition of
traffic guidance, management, and control.
Abstract...
• Solution:
• To improve the prediction accuracy, a spatiotemporal traffic flow prediction method
is proposed combined with k-nearest neighbor (KNN) and (LSTM)
• KNN is used to select mostly related neighboring stations with the test station and
capture spatial features of traffic flow.
• LSTM is utilized to mine temporal variability of traffic flow, and a two-layer LSTM
network is applied to predict traffic flow respectively in selected stations.
Abstract
• Solution...
• the final prediction results are obtained by result-level fusion with rank-
exponent weighting method.
• Experimental results indicate that the proposed model can achieve a better
performance compared with well-known prediction models including:
• autoregressive integrated moving average (ARIMA)
• support vector regression (SVR),
• wavelet neural network (WNN),
• deep belief networks combined with support vector regression (DBN-SVR),
• LSTM models,
and the proposed model can achieve on average 12.59% accuracy improvement
Introduction
• Problem background:
• The accurate prediction of future traffic conditions (e.g., traffic flow, travel
speed and travel time) is crucial requirement for Intelligent Transportation
Systems (ITS), which can help administrators take adequate preventive
measures against congestion and travelers take better-informed decisions.
Among diferent applications in ITS, traffic flow prediction has attracted
signifcant attention over the past few decades. It is still a challenging topic for
transportation researchers.
Introduction
• Previous Work:
• In order to deal with stochastic characteristics of traffic flow, accurate traffic
prediction is not a straightforward task, many thechniques are deployed for
modeling the evolution of the traffic circulation. These existing prediction schemes
are classifed roughly into three categories:
• parametric methods,
• nonparametric methods,
• hybrid methods.
Introduction...
• Parametric Methods:
• The Parametric methods include:
• Autoregressive Integrated Moving Average method (ARIMA)
• Seasonal Autoregressive Integrated Moving Average method (SARIMA)
• Kalman filter
The parametric methods are widely used in traffic flow but these methods are
sensitive to the traffic data for diferent situations.
Introduction...
• Non-Parametric Methods:
• Non- Parametric Methods inculde:
• artifcial neural networks (ANNS)
• K-nearest neighbor (KNN)
• support vector regression (SVR)
• Bayesian model
• Compared to the parametric methods, nonparametric methods are more efective
in prediction performance. Even so, nonparametric methods require large
amount of historical data and training process.
Introduction...
• Hybrid Methods:
• The hybrid methods are mainly combining the parametric approach with nonparametric
approach.
• Although the prediction accuracy of nonparametric methods and hybrid methods is superior
to parametric methods.
• Parametric:
• ARIMA:
• M. van der Voort, M. Dougherty, and S. Watson, “Combining Kohonen maps with ARIMA
time series models to forecast traffc flow,” Transportation Research Part C: Emerging
thechnologies, vol. 4, no. 5, pp. 307–318, 1996.
• SARIMA
• B. M.Williams and L. A. Hoel, “Modeling and forecasting vehicular traffic flow as a
seasonal ARIMA process: theoretical basis and empirical results,” Journal of
Transportation Engineering, vol. 129, no. 6, pp. 664–672, 2003.
• G. Shi, J. Guo, W. Huang, and B. M. Williams, “Modeling seasonal hetheroscedasticity in
vehicular traffic condition series using a seasonal adjustment approach,” Journal of
Transportation Engineering, vol. 140, no. 5, pp. 1053–1058, 2014.
• Parametric:
• Kalman filther:
• L. L. Ojeda, A. Y. Kibangou, and C. C. De Wit, “Adaptive Kalman flthering for multi-sthep
ahead traffic flow prediction,” in Proceedings of the IEEE American Control Conference,
pp. 4724– 4729, Washington, DC, USA, 2013.
• J. Guo, W. Huang, and B. M. Williams, “Adaptive Kalman flther approach for stochastic
short-therm traffic flow rathe prediction and uncertainty quantifcation,” Transportation
Research Part C: Emerging thechnologies, vol. 43, pp. 50–64, 2014.
• Non-Parametric:
• ANNS:
• B. L. Smith and M. J. Demetsky, “Short-therm traffic flow prediction: neural network
approach,” Transportation Research Record, vol. 1453, pp. 98–104, 1994.
• Y. W. Zhang, Z. P. Song, X. L. Weng, and Y. L. Xie, “A new soilwather charactheristic curve
model for unsaturathed loess based on wetting-induced pore deformation,” Geofuids,
vol. 2019, Article ID 5261985, 13 pages, 2019.
• Q. P. Wang and H. Sun, “traffic structure optimization in historic districts based on green
transportation and sustainable development concept,” Advances in Civil Engineering, vol.
2019, Article ID 9196263, 18 pages, 2019.
• D. Chen, “Research on traffic flow prediction in the big data environment based on the
improved RBF neural network,” IEEE Transactions on Industrial Informatics, vol. 13, no. 4,
pp. 2000– 2008, 2017
• Non-Parametric:
• KNN:
• M. Berna´s, B. Płaczek, P. Porwik, and T. Pamuła, “Segmentation of vehicle dethector data for
improved k-nearest neighboursbased traffic flow prediction,” IET Inthelligent Transport
Systhems, vol. 9, no. 3, pp. 264–274, 2015.
• [11] S. Wu, Z. Yang, X. Zhu, and B. Yu, “Improved KNN for shorttherm traffic forecasting using
themporal and spatial information,” Journal of Transportation Engineering, vol. 140, no. 7,
Article ID 04014026, 2014. [12] P. Dell’acqua, F. Bellotti, R. Berta, and A. De Gloria,
“Timeaware multivariathe nearest neighbor regression methods for traffic flow prediction,”
IEEE Transactions on Inthelligent Transportation Systhems, vol. 16, no. 6, pp. 3393–3402,
2015.
• Non-Parametric:
• SVR:
• M. Castro-Neto, Y.-S. Jeong, M.-K. Jeong, and L. D. Han, “Online-SVR for short-therm
traffic flow prediction under typical and atypical traffic conditions,” Expert Systhems with
Applications, vol. 36, no. 3, pp. 6164–6173, 2009.
• Y. Sun, B. Leng, and W. Guan, “A novel wavelet-SVM shorttime passenger flow prediction
in Beijing subway systhem,” Neurocomputing, vol. 166, pp. 109–121, 2015.
• Non-Parametric:
• Bayesian Model:
• Neurocomputing, vol. 166, pp. 109–121, 2015.
• J. Wang, W. Deng, and Y. Guo, “New Bayesian combination method for short-therm
traffic flow forecasting,” Transportation Research Part C: Emerging thechnologies, vol. 43,
pp. 79–94, 2014.
• Y. Xu, Q.-J. Kong, R. Kletthe, and Y. Liu, “Accurathe and intherpretable bayesian MARS for
traffic flow prediction,” IEEE Transactions on Inthelligent Transportation Systhems, vol.
15, no. 6, pp. 2457–2469, 2014.
Limitations:
• With the widespread traditional traffic sensors and new emerging traffic
sensor technologies, tremendous traffic sensors have been deployed on the
existing road network, and a large volume of historical traffic data at very high
spatial and temporal resolutions has become available. It is a challenge to
deal with these big traffic data with conventional parametric methods. But for
nonparametric methods, most are shallow in architecture, which cannot
penetrate the deep correlation and implicit traffic information.
Methodology
• RNN is a neural network that is specialized for processing time sequences.
Different from conventional networks, RNN allows a “memory” of previous
inputs to persist in the network internal state, which can then be used to
influence the network output. Traditional RNN exhibits a superior capability
of modeling nonlinear time sequence problems, such as speech recognition,
language modeling, and image captioning. However, traditional RNN is not
able to train the time sequence with long time lags.
Methodology
• To overcome the disadvantages of traditional RNN, LSTM is proposed.
• LSTM is a special kind of RNN, designed to learn long term dependencies. the
LSTM architecture consists of a set of memory blocks. Each block contains one
or more self-connecthed memory cells and three gates, namely, input gate,
forget gate, and output gate. The typical structure of LSTM memory block
with one cell is in Figure.
Methodology
Methodology
• Input gate takes a new input from outside and process newly coming data.
• Forget gate decides when to forget the previous state and thus selects the
optimal time lag for the input sequence.
• Output gate takes all results calculated and generates output for LSTM cell.
Methodology
Methodology...
By the function of the diferent gates, LSTM
network has the capability of processing
arbitrary time lags for time sequence with
long dependency.
Methodology...
• KNN:
• KNN algorithm is a nonparametric method used for classifcation and regression. the
KNN method makes use of a database to search for data that are similar to the
current data. These found data are called the nearest neighbors of the current data.
In this paper, KNN is used to select mostly related neighboring stations with the test
station. Suppose there are M stations in the road network. A is the historical traffic
flow data in test station, and T is the sample data length. B is the historical traffic
flow data in the mth station, which is diferent from the test station. The Euclidean
distance is used to measure the correlation between the test station with others.
Methodology...
• Proposed Method:
• Different form the conventional LSTM network, KNN algorithm is used to
select spatiotemporal correlation stations with the test station at first. A two-
layer LSTM network is applied to predict traffic flow, respectively, in selected
stations. The final prediction results in test station are obtained by weighting
with rank-exponent method.
Methodology...
• Proposed Method:
Step 1. Calculate the Euclidean distance between adjacent M−1 stations with
the test station.
Step 2. Select mostly related K stations with the test station.
Step 3. Predict traffic flow with LSTM network, respectively, in selected stations.
Step 4. Weigh prediction value in selected stations.
Methodology...
Step 5. Calculate the RMSE (Root Mean Square Error) for the predicted traffic
flow.
Step 6. Repeat Steps 2–5 with the diferent K (K ≤ M).
Step 7. Find the smallest RMSE in all the diferent K.
Step 8. Obtain the predicted traffic flow in the test station when RMSE is the
smallest.
Experiment
• The data used to evaluate the performance of the proposed model was collected
in mainline detectors provided by the Transportation Research Data Lab (TDRL) at
the (UMD) Data Center from March 1st, 2015, to April 30th, 2015.
• The sampling period of the testing dataset was 5 min.
• In our experiment, The area mainly contains four expressways numbered I394,
I494, US169, and TH100. There are 36 stations in the experiment area.
• The station locations and ID that are used are shown in Figure.
Experiment
• Stations S339 and S448 are located near a transportation hub in road networks in
the experiments. Therefore, they were selected as the test stations for the traffic
flow prediction.
• Due to the similarity of traffic flow on the same workday in different weeks, we
used the data in the one workday as train and test data in order to ensure the
prediction stability.
• In our experiment, we chose the traffic flow data on Tuesday.
• There was a total of 9- day traffic flow data on Tuesday in our test dataset. The
dataset was divided into two datasets.
• The data in first 8 days was used as training sample, while the remaining data was
employed as the testing sample for measuring prediction performance.
Experiment
• Traffic flows for 5 consecutive Tuesdays are shown in Figure 4 in the station S339,
and typical traffic flows are shown in Figure 5 in the station S339 and four
neighboring stations. From Figure 4, we can see that there is a little diference in
the rush hours; however, the profiles of the traffic flows are basically consistent.
From Figure 5, it can be seen that there are some differences in different stations,
but the data distribution is similar to the station S339.
Results
• The timesteps are an important hyperparameter, which are the input
size to the model and determines number of LSTM blocks in each
level.
• To validate the efficiency of the proposed method, the performance is
compared with some representative approaches, including ARIMA
model, SVR, wavelet neural network (WNN), DBN, and LSTM.
Results
• Predicted results:
• The proposed method has the minimum RMSE. The average ACC for the proposed
method is 95.75%, which improve by 28.92%, 8.31%, 14.44%, 6.95%, and 4.32%
compared with other models. The traditional ARIMA model has the worst prediction
performance, which assumes the traffic flow data is a stationary process but this is
not always true in reality. The SVR and WNN method receive better RMSE and ACC
than the ARIMA model, while they show weakness when compared with the deep
learning methods. The DBN model has also no obvious advantage over SVR.
Conclusion
• In this paper, we proposed a spatiotemporal traffic flow prediction
method combined with KNN and LSTM. KNN is used to select mostly
related neighboring stations that indicated the spatiotemporal
correlation with the test station. A LSTM network was applied to
predict traffic flow.
Conclusion...
THANK- YOU !

More Related Content

What's hot

Future of Traffic Management and ITS
Future of Traffic Management and ITSFuture of Traffic Management and ITS
Future of Traffic Management and ITS
Serge Hoogendoorn
 
Review of fuzzy microscopic traffic model
Review of fuzzy microscopic traffic modelReview of fuzzy microscopic traffic model
Review of fuzzy microscopic traffic model
Tahir Nasarawa
 
Ni2421862197
Ni2421862197Ni2421862197
Ni2421862197
IJERA Editor
 
Traffic assignment of motorized private transport in OmniTRANS transport plan...
Traffic assignment of motorized private transport in OmniTRANS transport plan...Traffic assignment of motorized private transport in OmniTRANS transport plan...
Traffic assignment of motorized private transport in OmniTRANS transport plan...
Luuk Brederode
 
Towards better bus networks: A visual analytics approach
Towards better bus networks: A visual analytics approachTowards better bus networks: A visual analytics approach
Towards better bus networks: A visual analytics approach
ivaderivader
 
Performance improvement of vehicular delay tolerant networks using public tra...
Performance improvement of vehicular delay tolerant networks using public tra...Performance improvement of vehicular delay tolerant networks using public tra...
Performance improvement of vehicular delay tolerant networks using public tra...
ijmnct
 
Evaluation of routing protocol with multi-mobile sinks in WSNs using QoS and ...
Evaluation of routing protocol with multi-mobile sinks in WSNs using QoS and ...Evaluation of routing protocol with multi-mobile sinks in WSNs using QoS and ...
Evaluation of routing protocol with multi-mobile sinks in WSNs using QoS and ...
IJECEIAES
 
Traffic Congestion Prediction using Deep Reinforcement Learning in Vehicular ...
Traffic Congestion Prediction using Deep Reinforcement Learning in Vehicular ...Traffic Congestion Prediction using Deep Reinforcement Learning in Vehicular ...
Traffic Congestion Prediction using Deep Reinforcement Learning in Vehicular ...
IJCNCJournal
 
Ad hoc network routing protocols
Ad hoc network routing protocolsAd hoc network routing protocols
Ad hoc network routing protocols
Thesis Scientist Private Limited
 
Travel Time Prediction Using Dedicated Short-Range Communications Probe Data
Travel Time Prediction Using Dedicated Short-Range Communications Probe DataTravel Time Prediction Using Dedicated Short-Range Communications Probe Data
Travel Time Prediction Using Dedicated Short-Range Communications Probe Data
International journal of scientific and technical research in engineering (IJSTRE)
 
Driving behaviors for adas and autonomous driving XIII
Driving behaviors for adas and autonomous driving XIIIDriving behaviors for adas and autonomous driving XIII
Driving behaviors for adas and autonomous driving XIII
Yu Huang
 
Hybrid Cluster Based Congestion Aware (HCBCA) Approaches in Wireless Sensor N...
Hybrid Cluster Based Congestion Aware (HCBCA) Approaches in Wireless Sensor N...Hybrid Cluster Based Congestion Aware (HCBCA) Approaches in Wireless Sensor N...
Hybrid Cluster Based Congestion Aware (HCBCA) Approaches in Wireless Sensor N...
IJCSIS Research Publications
 
A new approach in position-based routing Protocol using learning automata for...
A new approach in position-based routing Protocol using learning automata for...A new approach in position-based routing Protocol using learning automata for...
A new approach in position-based routing Protocol using learning automata for...
ijasa
 
A qos adaptive routing scheme (iglar) for highly dynamic
A qos adaptive routing scheme (iglar) for highly dynamicA qos adaptive routing scheme (iglar) for highly dynamic
A qos adaptive routing scheme (iglar) for highly dynamic
Alexander Decker
 
Channel Assignment With Access Contention Resolution for Cognitive Radio Netw...
Channel Assignment With Access Contention Resolution for Cognitive Radio Netw...Channel Assignment With Access Contention Resolution for Cognitive Radio Netw...
Channel Assignment With Access Contention Resolution for Cognitive Radio Netw...
Polytechnique Montreal
 
A Cluster-Based Routing Protocol and Fault Detection for Wireless Sensor Network
A Cluster-Based Routing Protocol and Fault Detection for Wireless Sensor NetworkA Cluster-Based Routing Protocol and Fault Detection for Wireless Sensor Network
A Cluster-Based Routing Protocol and Fault Detection for Wireless Sensor Network
IJCNCJournal
 
Fowe Thesis Full
Fowe Thesis FullFowe Thesis Full
Fowe Thesis Full
Adeyemi Fowe
 
PERFORMANCE ANALYSIS IN CELLULAR NETWORKS CONSIDERING THE QOS BY RETRIAL QUEU...
PERFORMANCE ANALYSIS IN CELLULAR NETWORKS CONSIDERING THE QOS BY RETRIAL QUEU...PERFORMANCE ANALYSIS IN CELLULAR NETWORKS CONSIDERING THE QOS BY RETRIAL QUEU...
PERFORMANCE ANALYSIS IN CELLULAR NETWORKS CONSIDERING THE QOS BY RETRIAL QUEU...
IJCNCJournal
 
Analyzing the performance of the dynamic
Analyzing the performance of the dynamicAnalyzing the performance of the dynamic
Analyzing the performance of the dynamic
IJCNCJournal
 
An Efficient and Stable Routing Algorithm in Mobile Ad Hoc Network
An Efficient and Stable Routing Algorithm in Mobile Ad Hoc NetworkAn Efficient and Stable Routing Algorithm in Mobile Ad Hoc Network
An Efficient and Stable Routing Algorithm in Mobile Ad Hoc Network
IJCNCJournal
 

What's hot (20)

Future of Traffic Management and ITS
Future of Traffic Management and ITSFuture of Traffic Management and ITS
Future of Traffic Management and ITS
 
Review of fuzzy microscopic traffic model
Review of fuzzy microscopic traffic modelReview of fuzzy microscopic traffic model
Review of fuzzy microscopic traffic model
 
Ni2421862197
Ni2421862197Ni2421862197
Ni2421862197
 
Traffic assignment of motorized private transport in OmniTRANS transport plan...
Traffic assignment of motorized private transport in OmniTRANS transport plan...Traffic assignment of motorized private transport in OmniTRANS transport plan...
Traffic assignment of motorized private transport in OmniTRANS transport plan...
 
Towards better bus networks: A visual analytics approach
Towards better bus networks: A visual analytics approachTowards better bus networks: A visual analytics approach
Towards better bus networks: A visual analytics approach
 
Performance improvement of vehicular delay tolerant networks using public tra...
Performance improvement of vehicular delay tolerant networks using public tra...Performance improvement of vehicular delay tolerant networks using public tra...
Performance improvement of vehicular delay tolerant networks using public tra...
 
Evaluation of routing protocol with multi-mobile sinks in WSNs using QoS and ...
Evaluation of routing protocol with multi-mobile sinks in WSNs using QoS and ...Evaluation of routing protocol with multi-mobile sinks in WSNs using QoS and ...
Evaluation of routing protocol with multi-mobile sinks in WSNs using QoS and ...
 
Traffic Congestion Prediction using Deep Reinforcement Learning in Vehicular ...
Traffic Congestion Prediction using Deep Reinforcement Learning in Vehicular ...Traffic Congestion Prediction using Deep Reinforcement Learning in Vehicular ...
Traffic Congestion Prediction using Deep Reinforcement Learning in Vehicular ...
 
Ad hoc network routing protocols
Ad hoc network routing protocolsAd hoc network routing protocols
Ad hoc network routing protocols
 
Travel Time Prediction Using Dedicated Short-Range Communications Probe Data
Travel Time Prediction Using Dedicated Short-Range Communications Probe DataTravel Time Prediction Using Dedicated Short-Range Communications Probe Data
Travel Time Prediction Using Dedicated Short-Range Communications Probe Data
 
Driving behaviors for adas and autonomous driving XIII
Driving behaviors for adas and autonomous driving XIIIDriving behaviors for adas and autonomous driving XIII
Driving behaviors for adas and autonomous driving XIII
 
Hybrid Cluster Based Congestion Aware (HCBCA) Approaches in Wireless Sensor N...
Hybrid Cluster Based Congestion Aware (HCBCA) Approaches in Wireless Sensor N...Hybrid Cluster Based Congestion Aware (HCBCA) Approaches in Wireless Sensor N...
Hybrid Cluster Based Congestion Aware (HCBCA) Approaches in Wireless Sensor N...
 
A new approach in position-based routing Protocol using learning automata for...
A new approach in position-based routing Protocol using learning automata for...A new approach in position-based routing Protocol using learning automata for...
A new approach in position-based routing Protocol using learning automata for...
 
A qos adaptive routing scheme (iglar) for highly dynamic
A qos adaptive routing scheme (iglar) for highly dynamicA qos adaptive routing scheme (iglar) for highly dynamic
A qos adaptive routing scheme (iglar) for highly dynamic
 
Channel Assignment With Access Contention Resolution for Cognitive Radio Netw...
Channel Assignment With Access Contention Resolution for Cognitive Radio Netw...Channel Assignment With Access Contention Resolution for Cognitive Radio Netw...
Channel Assignment With Access Contention Resolution for Cognitive Radio Netw...
 
A Cluster-Based Routing Protocol and Fault Detection for Wireless Sensor Network
A Cluster-Based Routing Protocol and Fault Detection for Wireless Sensor NetworkA Cluster-Based Routing Protocol and Fault Detection for Wireless Sensor Network
A Cluster-Based Routing Protocol and Fault Detection for Wireless Sensor Network
 
Fowe Thesis Full
Fowe Thesis FullFowe Thesis Full
Fowe Thesis Full
 
PERFORMANCE ANALYSIS IN CELLULAR NETWORKS CONSIDERING THE QOS BY RETRIAL QUEU...
PERFORMANCE ANALYSIS IN CELLULAR NETWORKS CONSIDERING THE QOS BY RETRIAL QUEU...PERFORMANCE ANALYSIS IN CELLULAR NETWORKS CONSIDERING THE QOS BY RETRIAL QUEU...
PERFORMANCE ANALYSIS IN CELLULAR NETWORKS CONSIDERING THE QOS BY RETRIAL QUEU...
 
Analyzing the performance of the dynamic
Analyzing the performance of the dynamicAnalyzing the performance of the dynamic
Analyzing the performance of the dynamic
 
An Efficient and Stable Routing Algorithm in Mobile Ad Hoc Network
An Efficient and Stable Routing Algorithm in Mobile Ad Hoc NetworkAn Efficient and Stable Routing Algorithm in Mobile Ad Hoc Network
An Efficient and Stable Routing Algorithm in Mobile Ad Hoc Network
 

Similar to Predict Traffic flow with KNN and LSTM

A Review on Traffic Classification Methods in WSN
A Review on Traffic Classification Methods in WSNA Review on Traffic Classification Methods in WSN
A Review on Traffic Classification Methods in WSN
IJARIIT
 
THRESHOLD RANGE FOR TRAFFIC FLOW PARAMETERS USING FUZZY LOGIC.pdf
THRESHOLD RANGE FOR TRAFFIC FLOW PARAMETERS USING FUZZY LOGIC.pdfTHRESHOLD RANGE FOR TRAFFIC FLOW PARAMETERS USING FUZZY LOGIC.pdf
THRESHOLD RANGE FOR TRAFFIC FLOW PARAMETERS USING FUZZY LOGIC.pdf
YMYerima
 
Traffic Prediction from Street Network images.pptx
Traffic Prediction from  Street Network images.pptxTraffic Prediction from  Street Network images.pptx
Traffic Prediction from Street Network images.pptx
chirantanGupta1
 
Future Research Directions on Opportunistic Routing in Wireless Mesh Networks...
Future Research Directions on Opportunistic Routing in Wireless Mesh Networks...Future Research Directions on Opportunistic Routing in Wireless Mesh Networks...
Future Research Directions on Opportunistic Routing in Wireless Mesh Networks...
Tutors India
 
Machine learning for 5G and beyond
Machine learning for 5G and beyondMachine learning for 5G and beyond
Machine learning for 5G and beyond
ITU
 
[20240520_LabSeminar_Huy]DSTAGNN: Dynamic Spatial-Temporal Aware Graph Neural...
[20240520_LabSeminar_Huy]DSTAGNN: Dynamic Spatial-Temporal Aware Graph Neural...[20240520_LabSeminar_Huy]DSTAGNN: Dynamic Spatial-Temporal Aware Graph Neural...
[20240520_LabSeminar_Huy]DSTAGNN: Dynamic Spatial-Temporal Aware Graph Neural...
thanhdowork
 
Handover Algorithm based VLP using Mobility Prediction Database for Vehicular...
Handover Algorithm based VLP using Mobility Prediction Database for Vehicular...Handover Algorithm based VLP using Mobility Prediction Database for Vehicular...
Handover Algorithm based VLP using Mobility Prediction Database for Vehicular...
IJECEIAES
 
Smart Mobility
Smart MobilitySmart Mobility
Smart Mobility
inLabFIB
 
Traffic Flow Forecasting with Spatial-Temporal Graph Diffusion Network
Traffic Flow Forecasting with Spatial-Temporal Graph Diffusion NetworkTraffic Flow Forecasting with Spatial-Temporal Graph Diffusion Network
Traffic Flow Forecasting with Spatial-Temporal Graph Diffusion Network
ivaderivader
 
[20240408_LabSeminar_Huy]PivotalSTGNN.pptx
[20240408_LabSeminar_Huy]PivotalSTGNN.pptx[20240408_LabSeminar_Huy]PivotalSTGNN.pptx
[20240408_LabSeminar_Huy]PivotalSTGNN.pptx
thanhdowork
 
Coupled Layer-wise Graph Convolution for Transportation Demand Prediction
Coupled Layer-wise Graph Convolution for Transportation Demand PredictionCoupled Layer-wise Graph Convolution for Transportation Demand Prediction
Coupled Layer-wise Graph Convolution for Transportation Demand Prediction
ivaderivader
 
The Seaport Service Rate Prediction System: Using Drayage Truck Trajectory Da...
The Seaport Service Rate Prediction System: Using Drayage Truck Trajectory Da...The Seaport Service Rate Prediction System: Using Drayage Truck Trajectory Da...
The Seaport Service Rate Prediction System: Using Drayage Truck Trajectory Da...
Meditya Wasesa
 
Cognitive Technique for Software Defined Optical Network (SDON)
Cognitive Technique for Software Defined Optical Network (SDON)Cognitive Technique for Software Defined Optical Network (SDON)
Cognitive Technique for Software Defined Optical Network (SDON)
CPqD
 
An Efficient Parallel Algorithm for Secured Data Communication Using RSA Publ...
An Efficient Parallel Algorithm for Secured Data Communication Using RSA Publ...An Efficient Parallel Algorithm for Secured Data Communication Using RSA Publ...
An Efficient Parallel Algorithm for Secured Data Communication Using RSA Publ...
Harshal Solao
 
0505.pdf
0505.pdf0505.pdf
Trajectory improves data delivery in urban vehicular networks
Trajectory improves data delivery in urban vehicular networks Trajectory improves data delivery in urban vehicular networks
Trajectory improves data delivery in urban vehicular networks
Papitha Velumani
 
Deep Multi-View Spatial-Temporal Network for Taxi Demand Prediction
Deep Multi-View Spatial-Temporal Network for Taxi Demand PredictionDeep Multi-View Spatial-Temporal Network for Taxi Demand Prediction
Deep Multi-View Spatial-Temporal Network for Taxi Demand Prediction
ivaderivader
 
Tcp
TcpTcp
Kautz based wireless sensor and actuator
Kautz based wireless sensor and actuatorKautz based wireless sensor and actuator
Kautz based wireless sensor and actuator
Arun Raja
 
Priority Based Congestion Avoidance Hybrid Scheme published in IEEE
Priority Based Congestion Avoidance Hybrid Scheme published in IEEE Priority Based Congestion Avoidance Hybrid Scheme published in IEEE
Priority Based Congestion Avoidance Hybrid Scheme published in IEEE
Jasleen Kaur (Chandigarh University)
 

Similar to Predict Traffic flow with KNN and LSTM (20)

A Review on Traffic Classification Methods in WSN
A Review on Traffic Classification Methods in WSNA Review on Traffic Classification Methods in WSN
A Review on Traffic Classification Methods in WSN
 
THRESHOLD RANGE FOR TRAFFIC FLOW PARAMETERS USING FUZZY LOGIC.pdf
THRESHOLD RANGE FOR TRAFFIC FLOW PARAMETERS USING FUZZY LOGIC.pdfTHRESHOLD RANGE FOR TRAFFIC FLOW PARAMETERS USING FUZZY LOGIC.pdf
THRESHOLD RANGE FOR TRAFFIC FLOW PARAMETERS USING FUZZY LOGIC.pdf
 
Traffic Prediction from Street Network images.pptx
Traffic Prediction from  Street Network images.pptxTraffic Prediction from  Street Network images.pptx
Traffic Prediction from Street Network images.pptx
 
Future Research Directions on Opportunistic Routing in Wireless Mesh Networks...
Future Research Directions on Opportunistic Routing in Wireless Mesh Networks...Future Research Directions on Opportunistic Routing in Wireless Mesh Networks...
Future Research Directions on Opportunistic Routing in Wireless Mesh Networks...
 
Machine learning for 5G and beyond
Machine learning for 5G and beyondMachine learning for 5G and beyond
Machine learning for 5G and beyond
 
[20240520_LabSeminar_Huy]DSTAGNN: Dynamic Spatial-Temporal Aware Graph Neural...
[20240520_LabSeminar_Huy]DSTAGNN: Dynamic Spatial-Temporal Aware Graph Neural...[20240520_LabSeminar_Huy]DSTAGNN: Dynamic Spatial-Temporal Aware Graph Neural...
[20240520_LabSeminar_Huy]DSTAGNN: Dynamic Spatial-Temporal Aware Graph Neural...
 
Handover Algorithm based VLP using Mobility Prediction Database for Vehicular...
Handover Algorithm based VLP using Mobility Prediction Database for Vehicular...Handover Algorithm based VLP using Mobility Prediction Database for Vehicular...
Handover Algorithm based VLP using Mobility Prediction Database for Vehicular...
 
Smart Mobility
Smart MobilitySmart Mobility
Smart Mobility
 
Traffic Flow Forecasting with Spatial-Temporal Graph Diffusion Network
Traffic Flow Forecasting with Spatial-Temporal Graph Diffusion NetworkTraffic Flow Forecasting with Spatial-Temporal Graph Diffusion Network
Traffic Flow Forecasting with Spatial-Temporal Graph Diffusion Network
 
[20240408_LabSeminar_Huy]PivotalSTGNN.pptx
[20240408_LabSeminar_Huy]PivotalSTGNN.pptx[20240408_LabSeminar_Huy]PivotalSTGNN.pptx
[20240408_LabSeminar_Huy]PivotalSTGNN.pptx
 
Coupled Layer-wise Graph Convolution for Transportation Demand Prediction
Coupled Layer-wise Graph Convolution for Transportation Demand PredictionCoupled Layer-wise Graph Convolution for Transportation Demand Prediction
Coupled Layer-wise Graph Convolution for Transportation Demand Prediction
 
The Seaport Service Rate Prediction System: Using Drayage Truck Trajectory Da...
The Seaport Service Rate Prediction System: Using Drayage Truck Trajectory Da...The Seaport Service Rate Prediction System: Using Drayage Truck Trajectory Da...
The Seaport Service Rate Prediction System: Using Drayage Truck Trajectory Da...
 
Cognitive Technique for Software Defined Optical Network (SDON)
Cognitive Technique for Software Defined Optical Network (SDON)Cognitive Technique for Software Defined Optical Network (SDON)
Cognitive Technique for Software Defined Optical Network (SDON)
 
An Efficient Parallel Algorithm for Secured Data Communication Using RSA Publ...
An Efficient Parallel Algorithm for Secured Data Communication Using RSA Publ...An Efficient Parallel Algorithm for Secured Data Communication Using RSA Publ...
An Efficient Parallel Algorithm for Secured Data Communication Using RSA Publ...
 
0505.pdf
0505.pdf0505.pdf
0505.pdf
 
Trajectory improves data delivery in urban vehicular networks
Trajectory improves data delivery in urban vehicular networks Trajectory improves data delivery in urban vehicular networks
Trajectory improves data delivery in urban vehicular networks
 
Deep Multi-View Spatial-Temporal Network for Taxi Demand Prediction
Deep Multi-View Spatial-Temporal Network for Taxi Demand PredictionDeep Multi-View Spatial-Temporal Network for Taxi Demand Prediction
Deep Multi-View Spatial-Temporal Network for Taxi Demand Prediction
 
Tcp
TcpTcp
Tcp
 
Kautz based wireless sensor and actuator
Kautz based wireless sensor and actuatorKautz based wireless sensor and actuator
Kautz based wireless sensor and actuator
 
Priority Based Congestion Avoidance Hybrid Scheme published in IEEE
Priority Based Congestion Avoidance Hybrid Scheme published in IEEE Priority Based Congestion Avoidance Hybrid Scheme published in IEEE
Priority Based Congestion Avoidance Hybrid Scheme published in IEEE
 

Recently uploaded

Engineering Drawings Lecture Detail Drawings 2014.pdf
Engineering Drawings Lecture Detail Drawings 2014.pdfEngineering Drawings Lecture Detail Drawings 2014.pdf
Engineering Drawings Lecture Detail Drawings 2014.pdf
abbyasa1014
 
Optimizing Gradle Builds - Gradle DPE Tour Berlin 2024
Optimizing Gradle Builds - Gradle DPE Tour Berlin 2024Optimizing Gradle Builds - Gradle DPE Tour Berlin 2024
Optimizing Gradle Builds - Gradle DPE Tour Berlin 2024
Sinan KOZAK
 
Computational Engineering IITH Presentation
Computational Engineering IITH PresentationComputational Engineering IITH Presentation
Computational Engineering IITH Presentation
co23btech11018
 
Understanding Inductive Bias in Machine Learning
Understanding Inductive Bias in Machine LearningUnderstanding Inductive Bias in Machine Learning
Understanding Inductive Bias in Machine Learning
SUTEJAS
 
Presentation of IEEE Slovenia CIS (Computational Intelligence Society) Chapte...
Presentation of IEEE Slovenia CIS (Computational Intelligence Society) Chapte...Presentation of IEEE Slovenia CIS (Computational Intelligence Society) Chapte...
Presentation of IEEE Slovenia CIS (Computational Intelligence Society) Chapte...
University of Maribor
 
官方认证美国密歇根州立大学毕业证学位证书原版一模一样
官方认证美国密歇根州立大学毕业证学位证书原版一模一样官方认证美国密歇根州立大学毕业证学位证书原版一模一样
官方认证美国密歇根州立大学毕业证学位证书原版一模一样
171ticu
 
ML Based Model for NIDS MSc Updated Presentation.v2.pptx
ML Based Model for NIDS MSc Updated Presentation.v2.pptxML Based Model for NIDS MSc Updated Presentation.v2.pptx
ML Based Model for NIDS MSc Updated Presentation.v2.pptx
JamalHussainArman
 
Generative AI leverages algorithms to create various forms of content
Generative AI leverages algorithms to create various forms of contentGenerative AI leverages algorithms to create various forms of content
Generative AI leverages algorithms to create various forms of content
Hitesh Mohapatra
 
22CYT12-Unit-V-E Waste and its Management.ppt
22CYT12-Unit-V-E Waste and its Management.ppt22CYT12-Unit-V-E Waste and its Management.ppt
22CYT12-Unit-V-E Waste and its Management.ppt
KrishnaveniKrishnara1
 
Question paper of renewable energy sources
Question paper of renewable energy sourcesQuestion paper of renewable energy sources
Question paper of renewable energy sources
mahammadsalmanmech
 
Casting-Defect-inSlab continuous casting.pdf
Casting-Defect-inSlab continuous casting.pdfCasting-Defect-inSlab continuous casting.pdf
Casting-Defect-inSlab continuous casting.pdf
zubairahmad848137
 
哪里办理(csu毕业证书)查尔斯特大学毕业证硕士学历原版一模一样
哪里办理(csu毕业证书)查尔斯特大学毕业证硕士学历原版一模一样哪里办理(csu毕业证书)查尔斯特大学毕业证硕士学历原版一模一样
哪里办理(csu毕业证书)查尔斯特大学毕业证硕士学历原版一模一样
insn4465
 
New techniques for characterising damage in rock slopes.pdf
New techniques for characterising damage in rock slopes.pdfNew techniques for characterising damage in rock slopes.pdf
New techniques for characterising damage in rock slopes.pdf
wisnuprabawa3
 
A review on techniques and modelling methodologies used for checking electrom...
A review on techniques and modelling methodologies used for checking electrom...A review on techniques and modelling methodologies used for checking electrom...
A review on techniques and modelling methodologies used for checking electrom...
nooriasukmaningtyas
 
The Python for beginners. This is an advance computer language.
The Python for beginners. This is an advance computer language.The Python for beginners. This is an advance computer language.
The Python for beginners. This is an advance computer language.
sachin chaurasia
 
spirit beverages ppt without graphics.pptx
spirit beverages ppt without graphics.pptxspirit beverages ppt without graphics.pptx
spirit beverages ppt without graphics.pptx
Madan Karki
 
KuberTENes Birthday Bash Guadalajara - K8sGPT first impressions
KuberTENes Birthday Bash Guadalajara - K8sGPT first impressionsKuberTENes Birthday Bash Guadalajara - K8sGPT first impressions
KuberTENes Birthday Bash Guadalajara - K8sGPT first impressions
Victor Morales
 
Engine Lubrication performance System.pdf
Engine Lubrication performance System.pdfEngine Lubrication performance System.pdf
Engine Lubrication performance System.pdf
mamamaam477
 
A SYSTEMATIC RISK ASSESSMENT APPROACH FOR SECURING THE SMART IRRIGATION SYSTEMS
A SYSTEMATIC RISK ASSESSMENT APPROACH FOR SECURING THE SMART IRRIGATION SYSTEMSA SYSTEMATIC RISK ASSESSMENT APPROACH FOR SECURING THE SMART IRRIGATION SYSTEMS
A SYSTEMATIC RISK ASSESSMENT APPROACH FOR SECURING THE SMART IRRIGATION SYSTEMS
IJNSA Journal
 
DEEP LEARNING FOR SMART GRID INTRUSION DETECTION: A HYBRID CNN-LSTM-BASED MODEL
DEEP LEARNING FOR SMART GRID INTRUSION DETECTION: A HYBRID CNN-LSTM-BASED MODELDEEP LEARNING FOR SMART GRID INTRUSION DETECTION: A HYBRID CNN-LSTM-BASED MODEL
DEEP LEARNING FOR SMART GRID INTRUSION DETECTION: A HYBRID CNN-LSTM-BASED MODEL
gerogepatton
 

Recently uploaded (20)

Engineering Drawings Lecture Detail Drawings 2014.pdf
Engineering Drawings Lecture Detail Drawings 2014.pdfEngineering Drawings Lecture Detail Drawings 2014.pdf
Engineering Drawings Lecture Detail Drawings 2014.pdf
 
Optimizing Gradle Builds - Gradle DPE Tour Berlin 2024
Optimizing Gradle Builds - Gradle DPE Tour Berlin 2024Optimizing Gradle Builds - Gradle DPE Tour Berlin 2024
Optimizing Gradle Builds - Gradle DPE Tour Berlin 2024
 
Computational Engineering IITH Presentation
Computational Engineering IITH PresentationComputational Engineering IITH Presentation
Computational Engineering IITH Presentation
 
Understanding Inductive Bias in Machine Learning
Understanding Inductive Bias in Machine LearningUnderstanding Inductive Bias in Machine Learning
Understanding Inductive Bias in Machine Learning
 
Presentation of IEEE Slovenia CIS (Computational Intelligence Society) Chapte...
Presentation of IEEE Slovenia CIS (Computational Intelligence Society) Chapte...Presentation of IEEE Slovenia CIS (Computational Intelligence Society) Chapte...
Presentation of IEEE Slovenia CIS (Computational Intelligence Society) Chapte...
 
官方认证美国密歇根州立大学毕业证学位证书原版一模一样
官方认证美国密歇根州立大学毕业证学位证书原版一模一样官方认证美国密歇根州立大学毕业证学位证书原版一模一样
官方认证美国密歇根州立大学毕业证学位证书原版一模一样
 
ML Based Model for NIDS MSc Updated Presentation.v2.pptx
ML Based Model for NIDS MSc Updated Presentation.v2.pptxML Based Model for NIDS MSc Updated Presentation.v2.pptx
ML Based Model for NIDS MSc Updated Presentation.v2.pptx
 
Generative AI leverages algorithms to create various forms of content
Generative AI leverages algorithms to create various forms of contentGenerative AI leverages algorithms to create various forms of content
Generative AI leverages algorithms to create various forms of content
 
22CYT12-Unit-V-E Waste and its Management.ppt
22CYT12-Unit-V-E Waste and its Management.ppt22CYT12-Unit-V-E Waste and its Management.ppt
22CYT12-Unit-V-E Waste and its Management.ppt
 
Question paper of renewable energy sources
Question paper of renewable energy sourcesQuestion paper of renewable energy sources
Question paper of renewable energy sources
 
Casting-Defect-inSlab continuous casting.pdf
Casting-Defect-inSlab continuous casting.pdfCasting-Defect-inSlab continuous casting.pdf
Casting-Defect-inSlab continuous casting.pdf
 
哪里办理(csu毕业证书)查尔斯特大学毕业证硕士学历原版一模一样
哪里办理(csu毕业证书)查尔斯特大学毕业证硕士学历原版一模一样哪里办理(csu毕业证书)查尔斯特大学毕业证硕士学历原版一模一样
哪里办理(csu毕业证书)查尔斯特大学毕业证硕士学历原版一模一样
 
New techniques for characterising damage in rock slopes.pdf
New techniques for characterising damage in rock slopes.pdfNew techniques for characterising damage in rock slopes.pdf
New techniques for characterising damage in rock slopes.pdf
 
A review on techniques and modelling methodologies used for checking electrom...
A review on techniques and modelling methodologies used for checking electrom...A review on techniques and modelling methodologies used for checking electrom...
A review on techniques and modelling methodologies used for checking electrom...
 
The Python for beginners. This is an advance computer language.
The Python for beginners. This is an advance computer language.The Python for beginners. This is an advance computer language.
The Python for beginners. This is an advance computer language.
 
spirit beverages ppt without graphics.pptx
spirit beverages ppt without graphics.pptxspirit beverages ppt without graphics.pptx
spirit beverages ppt without graphics.pptx
 
KuberTENes Birthday Bash Guadalajara - K8sGPT first impressions
KuberTENes Birthday Bash Guadalajara - K8sGPT first impressionsKuberTENes Birthday Bash Guadalajara - K8sGPT first impressions
KuberTENes Birthday Bash Guadalajara - K8sGPT first impressions
 
Engine Lubrication performance System.pdf
Engine Lubrication performance System.pdfEngine Lubrication performance System.pdf
Engine Lubrication performance System.pdf
 
A SYSTEMATIC RISK ASSESSMENT APPROACH FOR SECURING THE SMART IRRIGATION SYSTEMS
A SYSTEMATIC RISK ASSESSMENT APPROACH FOR SECURING THE SMART IRRIGATION SYSTEMSA SYSTEMATIC RISK ASSESSMENT APPROACH FOR SECURING THE SMART IRRIGATION SYSTEMS
A SYSTEMATIC RISK ASSESSMENT APPROACH FOR SECURING THE SMART IRRIGATION SYSTEMS
 
DEEP LEARNING FOR SMART GRID INTRUSION DETECTION: A HYBRID CNN-LSTM-BASED MODEL
DEEP LEARNING FOR SMART GRID INTRUSION DETECTION: A HYBRID CNN-LSTM-BASED MODELDEEP LEARNING FOR SMART GRID INTRUSION DETECTION: A HYBRID CNN-LSTM-BASED MODEL
DEEP LEARNING FOR SMART GRID INTRUSION DETECTION: A HYBRID CNN-LSTM-BASED MODEL
 

Predict Traffic flow with KNN and LSTM

  • 1. Team Umer Sohail Usama Nazeer Afzaal Subhani Moazam Malik Aleem Anjum
  • 3. Abstract • Problem Statement: • The traffic flow prediction is becoming increasingly crucial in Intelligent Transportation Systems, Accurate prediction result is the precondition of traffic guidance, management, and control.
  • 4. Abstract... • Solution: • To improve the prediction accuracy, a spatiotemporal traffic flow prediction method is proposed combined with k-nearest neighbor (KNN) and (LSTM) • KNN is used to select mostly related neighboring stations with the test station and capture spatial features of traffic flow. • LSTM is utilized to mine temporal variability of traffic flow, and a two-layer LSTM network is applied to predict traffic flow respectively in selected stations.
  • 5. Abstract • Solution... • the final prediction results are obtained by result-level fusion with rank- exponent weighting method. • Experimental results indicate that the proposed model can achieve a better performance compared with well-known prediction models including: • autoregressive integrated moving average (ARIMA) • support vector regression (SVR), • wavelet neural network (WNN), • deep belief networks combined with support vector regression (DBN-SVR), • LSTM models, and the proposed model can achieve on average 12.59% accuracy improvement
  • 6. Introduction • Problem background: • The accurate prediction of future traffic conditions (e.g., traffic flow, travel speed and travel time) is crucial requirement for Intelligent Transportation Systems (ITS), which can help administrators take adequate preventive measures against congestion and travelers take better-informed decisions. Among diferent applications in ITS, traffic flow prediction has attracted signifcant attention over the past few decades. It is still a challenging topic for transportation researchers.
  • 7. Introduction • Previous Work: • In order to deal with stochastic characteristics of traffic flow, accurate traffic prediction is not a straightforward task, many thechniques are deployed for modeling the evolution of the traffic circulation. These existing prediction schemes are classifed roughly into three categories: • parametric methods, • nonparametric methods, • hybrid methods.
  • 8. Introduction... • Parametric Methods: • The Parametric methods include: • Autoregressive Integrated Moving Average method (ARIMA) • Seasonal Autoregressive Integrated Moving Average method (SARIMA) • Kalman filter The parametric methods are widely used in traffic flow but these methods are sensitive to the traffic data for diferent situations.
  • 9. Introduction... • Non-Parametric Methods: • Non- Parametric Methods inculde: • artifcial neural networks (ANNS) • K-nearest neighbor (KNN) • support vector regression (SVR) • Bayesian model • Compared to the parametric methods, nonparametric methods are more efective in prediction performance. Even so, nonparametric methods require large amount of historical data and training process.
  • 10. Introduction... • Hybrid Methods: • The hybrid methods are mainly combining the parametric approach with nonparametric approach. • Although the prediction accuracy of nonparametric methods and hybrid methods is superior to parametric methods.
  • 11. • Parametric: • ARIMA: • M. van der Voort, M. Dougherty, and S. Watson, “Combining Kohonen maps with ARIMA time series models to forecast traffc flow,” Transportation Research Part C: Emerging thechnologies, vol. 4, no. 5, pp. 307–318, 1996. • SARIMA • B. M.Williams and L. A. Hoel, “Modeling and forecasting vehicular traffic flow as a seasonal ARIMA process: theoretical basis and empirical results,” Journal of Transportation Engineering, vol. 129, no. 6, pp. 664–672, 2003. • G. Shi, J. Guo, W. Huang, and B. M. Williams, “Modeling seasonal hetheroscedasticity in vehicular traffic condition series using a seasonal adjustment approach,” Journal of Transportation Engineering, vol. 140, no. 5, pp. 1053–1058, 2014.
  • 12. • Parametric: • Kalman filther: • L. L. Ojeda, A. Y. Kibangou, and C. C. De Wit, “Adaptive Kalman flthering for multi-sthep ahead traffic flow prediction,” in Proceedings of the IEEE American Control Conference, pp. 4724– 4729, Washington, DC, USA, 2013. • J. Guo, W. Huang, and B. M. Williams, “Adaptive Kalman flther approach for stochastic short-therm traffic flow rathe prediction and uncertainty quantifcation,” Transportation Research Part C: Emerging thechnologies, vol. 43, pp. 50–64, 2014.
  • 13. • Non-Parametric: • ANNS: • B. L. Smith and M. J. Demetsky, “Short-therm traffic flow prediction: neural network approach,” Transportation Research Record, vol. 1453, pp. 98–104, 1994. • Y. W. Zhang, Z. P. Song, X. L. Weng, and Y. L. Xie, “A new soilwather charactheristic curve model for unsaturathed loess based on wetting-induced pore deformation,” Geofuids, vol. 2019, Article ID 5261985, 13 pages, 2019. • Q. P. Wang and H. Sun, “traffic structure optimization in historic districts based on green transportation and sustainable development concept,” Advances in Civil Engineering, vol. 2019, Article ID 9196263, 18 pages, 2019. • D. Chen, “Research on traffic flow prediction in the big data environment based on the improved RBF neural network,” IEEE Transactions on Industrial Informatics, vol. 13, no. 4, pp. 2000– 2008, 2017
  • 14. • Non-Parametric: • KNN: • M. Berna´s, B. Płaczek, P. Porwik, and T. Pamuła, “Segmentation of vehicle dethector data for improved k-nearest neighboursbased traffic flow prediction,” IET Inthelligent Transport Systhems, vol. 9, no. 3, pp. 264–274, 2015. • [11] S. Wu, Z. Yang, X. Zhu, and B. Yu, “Improved KNN for shorttherm traffic forecasting using themporal and spatial information,” Journal of Transportation Engineering, vol. 140, no. 7, Article ID 04014026, 2014. [12] P. Dell’acqua, F. Bellotti, R. Berta, and A. De Gloria, “Timeaware multivariathe nearest neighbor regression methods for traffic flow prediction,” IEEE Transactions on Inthelligent Transportation Systhems, vol. 16, no. 6, pp. 3393–3402, 2015.
  • 15. • Non-Parametric: • SVR: • M. Castro-Neto, Y.-S. Jeong, M.-K. Jeong, and L. D. Han, “Online-SVR for short-therm traffic flow prediction under typical and atypical traffic conditions,” Expert Systhems with Applications, vol. 36, no. 3, pp. 6164–6173, 2009. • Y. Sun, B. Leng, and W. Guan, “A novel wavelet-SVM shorttime passenger flow prediction in Beijing subway systhem,” Neurocomputing, vol. 166, pp. 109–121, 2015.
  • 16. • Non-Parametric: • Bayesian Model: • Neurocomputing, vol. 166, pp. 109–121, 2015. • J. Wang, W. Deng, and Y. Guo, “New Bayesian combination method for short-therm traffic flow forecasting,” Transportation Research Part C: Emerging thechnologies, vol. 43, pp. 79–94, 2014. • Y. Xu, Q.-J. Kong, R. Kletthe, and Y. Liu, “Accurathe and intherpretable bayesian MARS for traffic flow prediction,” IEEE Transactions on Inthelligent Transportation Systhems, vol. 15, no. 6, pp. 2457–2469, 2014.
  • 17. Limitations: • With the widespread traditional traffic sensors and new emerging traffic sensor technologies, tremendous traffic sensors have been deployed on the existing road network, and a large volume of historical traffic data at very high spatial and temporal resolutions has become available. It is a challenge to deal with these big traffic data with conventional parametric methods. But for nonparametric methods, most are shallow in architecture, which cannot penetrate the deep correlation and implicit traffic information.
  • 18. Methodology • RNN is a neural network that is specialized for processing time sequences. Different from conventional networks, RNN allows a “memory” of previous inputs to persist in the network internal state, which can then be used to influence the network output. Traditional RNN exhibits a superior capability of modeling nonlinear time sequence problems, such as speech recognition, language modeling, and image captioning. However, traditional RNN is not able to train the time sequence with long time lags.
  • 19. Methodology • To overcome the disadvantages of traditional RNN, LSTM is proposed. • LSTM is a special kind of RNN, designed to learn long term dependencies. the LSTM architecture consists of a set of memory blocks. Each block contains one or more self-connecthed memory cells and three gates, namely, input gate, forget gate, and output gate. The typical structure of LSTM memory block with one cell is in Figure.
  • 21. Methodology • Input gate takes a new input from outside and process newly coming data. • Forget gate decides when to forget the previous state and thus selects the optimal time lag for the input sequence. • Output gate takes all results calculated and generates output for LSTM cell.
  • 23. Methodology... By the function of the diferent gates, LSTM network has the capability of processing arbitrary time lags for time sequence with long dependency.
  • 24. Methodology... • KNN: • KNN algorithm is a nonparametric method used for classifcation and regression. the KNN method makes use of a database to search for data that are similar to the current data. These found data are called the nearest neighbors of the current data. In this paper, KNN is used to select mostly related neighboring stations with the test station. Suppose there are M stations in the road network. A is the historical traffic flow data in test station, and T is the sample data length. B is the historical traffic flow data in the mth station, which is diferent from the test station. The Euclidean distance is used to measure the correlation between the test station with others.
  • 25. Methodology... • Proposed Method: • Different form the conventional LSTM network, KNN algorithm is used to select spatiotemporal correlation stations with the test station at first. A two- layer LSTM network is applied to predict traffic flow, respectively, in selected stations. The final prediction results in test station are obtained by weighting with rank-exponent method.
  • 26. Methodology... • Proposed Method: Step 1. Calculate the Euclidean distance between adjacent M−1 stations with the test station. Step 2. Select mostly related K stations with the test station. Step 3. Predict traffic flow with LSTM network, respectively, in selected stations. Step 4. Weigh prediction value in selected stations.
  • 27. Methodology... Step 5. Calculate the RMSE (Root Mean Square Error) for the predicted traffic flow. Step 6. Repeat Steps 2–5 with the diferent K (K ≤ M). Step 7. Find the smallest RMSE in all the diferent K. Step 8. Obtain the predicted traffic flow in the test station when RMSE is the smallest.
  • 28. Experiment • The data used to evaluate the performance of the proposed model was collected in mainline detectors provided by the Transportation Research Data Lab (TDRL) at the (UMD) Data Center from March 1st, 2015, to April 30th, 2015. • The sampling period of the testing dataset was 5 min. • In our experiment, The area mainly contains four expressways numbered I394, I494, US169, and TH100. There are 36 stations in the experiment area. • The station locations and ID that are used are shown in Figure.
  • 29.
  • 30. Experiment • Stations S339 and S448 are located near a transportation hub in road networks in the experiments. Therefore, they were selected as the test stations for the traffic flow prediction. • Due to the similarity of traffic flow on the same workday in different weeks, we used the data in the one workday as train and test data in order to ensure the prediction stability. • In our experiment, we chose the traffic flow data on Tuesday. • There was a total of 9- day traffic flow data on Tuesday in our test dataset. The dataset was divided into two datasets. • The data in first 8 days was used as training sample, while the remaining data was employed as the testing sample for measuring prediction performance.
  • 31. Experiment • Traffic flows for 5 consecutive Tuesdays are shown in Figure 4 in the station S339, and typical traffic flows are shown in Figure 5 in the station S339 and four neighboring stations. From Figure 4, we can see that there is a little diference in the rush hours; however, the profiles of the traffic flows are basically consistent. From Figure 5, it can be seen that there are some differences in different stations, but the data distribution is similar to the station S339.
  • 32.
  • 33. Results • The timesteps are an important hyperparameter, which are the input size to the model and determines number of LSTM blocks in each level. • To validate the efficiency of the proposed method, the performance is compared with some representative approaches, including ARIMA model, SVR, wavelet neural network (WNN), DBN, and LSTM.
  • 34. Results • Predicted results: • The proposed method has the minimum RMSE. The average ACC for the proposed method is 95.75%, which improve by 28.92%, 8.31%, 14.44%, 6.95%, and 4.32% compared with other models. The traditional ARIMA model has the worst prediction performance, which assumes the traffic flow data is a stationary process but this is not always true in reality. The SVR and WNN method receive better RMSE and ACC than the ARIMA model, while they show weakness when compared with the deep learning methods. The DBN model has also no obvious advantage over SVR.
  • 35. Conclusion • In this paper, we proposed a spatiotemporal traffic flow prediction method combined with KNN and LSTM. KNN is used to select mostly related neighboring stations that indicated the spatiotemporal correlation with the test station. A LSTM network was applied to predict traffic flow.