Travel time prediction using LSTM

The aim of the research is to predict the time it will take for a vehicle to travel across a stretch of road. This prediction will be useful for autonomous cars to estimate the travel times in multiple roads and to choose the fastest route possible thereby reducing congestion in traffic as well a...

Full description

Saved in:
Bibliographic Details
Main Author: Narayanan Aakash Kumar
Other Authors: Justin Dauwels
Format: Theses and Dissertations
Language:English
Published: 2019
Subjects:
Online Access:http://hdl.handle.net/10356/78673
Tags: Add Tag
No Tags, Be the first to tag this record!
Institution: Nanyang Technological University
Language: English
id sg-ntu-dr.10356-78673
record_format dspace
spelling sg-ntu-dr.10356-786732023-07-04T16:23:15Z Travel time prediction using LSTM Narayanan Aakash Kumar Justin Dauwels School of Electrical and Electronic Engineering Engineering::Electrical and electronic engineering The aim of the research is to predict the time it will take for a vehicle to travel across a stretch of road. This prediction will be useful for autonomous cars to estimate the travel times in multiple roads and to choose the fastest route possible thereby reducing congestion in traffic as well as improving efficiency. Also, this prediction will be useful to improve the service quality of commercial delivery by delivering goods with given period. The main requirement for this research is the historical data of travel times collected on a stretch of road. So, the travel time taken by vehicles in 29 different road segments were recorded for a period of 3 years with a frequency of 3 minutes and this data was used to train the deep learning model. Multiple deep learning techniques were evaluated to solve this time series prediction problem and LSTM (Long Short-Term Memory) stood out as a genuinely suitable model. Due to its long-term memory, the LSTM model can recognize trends. Multiple researches on LSTM have shown that it reads the trends in the data and each neuron looks out for a pattern in the data. When trained over a piece of C code, the LSTM can even write a new code without any syntax error although without much meaning. Thus, an LSTM model was trained over the historical data. For the prediction, multiple models were trained for different scenarios like different prediction horizons and different number of input features. The performances were compared against each other to find out the best prediction horizon and number of input features to get the most accurate prediction. Some other popular time series prediction models are also trained on the same historical data and the MAPE values of all the algorithms are compared at the end to identify the best performing algorithm. 8 The data was divided into two segments. 90% was used for training and 10% was used for testing. The outliers in the data were chosen as the values which were away from the mean by more than 3 standard deviations. Since outliers can’t be directly removed in a time series data, it is replaced by linearly interpolating the nearest non-outlier data. After cleaning the data, separate models are used to predict travel time in different road segments and the MAPE (Mean Absolute Percentage Error) is called for all the segments under different scenarios. It is also possible for a single LSTM model to predict travel time on multiple road segments, but the accuracy reduces by a small fraction. Based on experimental prediction results on the real-life traffic data, the LSTM model has proved that it can be used in real life scenarios for predicting travel time. Master of Science (Computer Control and Automation) 2019-06-25T06:54:48Z 2019-06-25T06:54:48Z 2019 Thesis http://hdl.handle.net/10356/78673 en 78 p. application/pdf
institution Nanyang Technological University
building NTU Library
continent Asia
country Singapore
Singapore
content_provider NTU Library
collection DR-NTU
language English
topic Engineering::Electrical and electronic engineering
spellingShingle Engineering::Electrical and electronic engineering
Narayanan Aakash Kumar
Travel time prediction using LSTM
description The aim of the research is to predict the time it will take for a vehicle to travel across a stretch of road. This prediction will be useful for autonomous cars to estimate the travel times in multiple roads and to choose the fastest route possible thereby reducing congestion in traffic as well as improving efficiency. Also, this prediction will be useful to improve the service quality of commercial delivery by delivering goods with given period. The main requirement for this research is the historical data of travel times collected on a stretch of road. So, the travel time taken by vehicles in 29 different road segments were recorded for a period of 3 years with a frequency of 3 minutes and this data was used to train the deep learning model. Multiple deep learning techniques were evaluated to solve this time series prediction problem and LSTM (Long Short-Term Memory) stood out as a genuinely suitable model. Due to its long-term memory, the LSTM model can recognize trends. Multiple researches on LSTM have shown that it reads the trends in the data and each neuron looks out for a pattern in the data. When trained over a piece of C code, the LSTM can even write a new code without any syntax error although without much meaning. Thus, an LSTM model was trained over the historical data. For the prediction, multiple models were trained for different scenarios like different prediction horizons and different number of input features. The performances were compared against each other to find out the best prediction horizon and number of input features to get the most accurate prediction. Some other popular time series prediction models are also trained on the same historical data and the MAPE values of all the algorithms are compared at the end to identify the best performing algorithm. 8 The data was divided into two segments. 90% was used for training and 10% was used for testing. The outliers in the data were chosen as the values which were away from the mean by more than 3 standard deviations. Since outliers can’t be directly removed in a time series data, it is replaced by linearly interpolating the nearest non-outlier data. After cleaning the data, separate models are used to predict travel time in different road segments and the MAPE (Mean Absolute Percentage Error) is called for all the segments under different scenarios. It is also possible for a single LSTM model to predict travel time on multiple road segments, but the accuracy reduces by a small fraction. Based on experimental prediction results on the real-life traffic data, the LSTM model has proved that it can be used in real life scenarios for predicting travel time.
author2 Justin Dauwels
author_facet Justin Dauwels
Narayanan Aakash Kumar
format Theses and Dissertations
author Narayanan Aakash Kumar
author_sort Narayanan Aakash Kumar
title Travel time prediction using LSTM
title_short Travel time prediction using LSTM
title_full Travel time prediction using LSTM
title_fullStr Travel time prediction using LSTM
title_full_unstemmed Travel time prediction using LSTM
title_sort travel time prediction using lstm
publishDate 2019
url http://hdl.handle.net/10356/78673
_version_ 1772828015029387264