cyril thesis
This commit is contained in:
parent
1d7b7c6ab0
commit
e975ad36fa
20 changed files with 645 additions and 0 deletions
21
doc_copy/References.bib
Normal file
21
doc_copy/References.bib
Normal file
|
|
@ -0,0 +1,21 @@
|
||||||
|
|
||||||
|
% This file was created with Citavi 6.15.2.0
|
||||||
|
|
||||||
|
@misc{Goodfellow.31122016,
|
||||||
|
abstract = {This report summarizes the tutorial presented by the author at NIPS 2016 on generative adversarial networks (GANs). The tutorial describes: (1) Why generative modeling is a topic worth studying, (2) how generative models work, and how GANs compare to other generative models, (3) the details of how GANs work, (4) research frontiers in GANs, and (5) state-of-the-art image models that combine GANs with other methods. Finally, the tutorial contains three exercises for readers to complete, and the solutions to these exercises.},
|
||||||
|
author = {Goodfellow, Ian},
|
||||||
|
date = {31/12/2016},
|
||||||
|
year = {2016},
|
||||||
|
title = {NIPS 2016 Tutorial: Generative Adversarial Networks},
|
||||||
|
url = {https://arxiv.org/pdf/1701.00160.pdf},
|
||||||
|
urldate = {2023-09-03},
|
||||||
|
file = {1701.00160:Attachments/1701.00160.pdf:application/pdf}
|
||||||
|
}
|
||||||
|
|
||||||
|
@online{fedesoriano,
|
||||||
|
author = {fedesoriano},
|
||||||
|
title = {{Heart Failure Prediction Dataset}},
|
||||||
|
url ={https://www.kaggle.com/datasets/fedesoriano/heart-failure-prediction},
|
||||||
|
year = {2021},
|
||||||
|
urldate = {2024-05-03},
|
||||||
|
}
|
||||||
85
doc_copy/chapters/experiment.tex
Normal file
85
doc_copy/chapters/experiment.tex
Normal file
|
|
@ -0,0 +1,85 @@
|
||||||
|
\chapter{Experiments and Results}
|
||||||
|
|
||||||
|
\section{Experimental Setup}
|
||||||
|
|
||||||
|
The experimental setup includes the selection of appropriate datasets, splitting the data into training
|
||||||
|
and testing sets, and tuning hyperparameters for each model.
|
||||||
|
|
||||||
|
|
||||||
|
\begin{lstlisting}[language=Python,caption={Data set fetching using Pandas},label={code:data}]
|
||||||
|
J1 = df[df['Junction']==1]
|
||||||
|
J2 = df[df['Junction']==2]
|
||||||
|
J3 = df[df['Junction']==3]
|
||||||
|
J4 = df[df['Junction']==4]
|
||||||
|
vehciles_at_J1 = J1['Vehicles']
|
||||||
|
vehciles_at_J2 = J2['Vehicles']
|
||||||
|
vehciles_at_J3 = J3['Vehicles']
|
||||||
|
vehciles_at_J3 = J3['Vehicles']
|
||||||
|
\end{lstlisting}
|
||||||
|
|
||||||
|
\begin{lstlisting}[language=Bash,caption={Sample Result},label={code:confusion matrix}]
|
||||||
|
#save
|
||||||
|
#logic take input for first 5 hours and
|
||||||
|
# predict 6th hour
|
||||||
|
# [[1],[2],[3],[4],[5]] [6]
|
||||||
|
# [[2],[3],[4],[5],[6]] [7]
|
||||||
|
# [[3],[4],[5],[6],[7]] [8]
|
||||||
|
def df_to_X_y(df, window_size=5):
|
||||||
|
df_as_np = df.to_numpy()
|
||||||
|
X =[]
|
||||||
|
y = []
|
||||||
|
for i in range(len(df_as_np)-window_size):
|
||||||
|
row = [[a] for a in
|
||||||
|
X.append(row)
|
||||||
|
label = df_as_np[i+window_size]
|
||||||
|
y.append(label)
|
||||||
|
return np.array(X), np.array(y)
|
||||||
|
\end{lstlisting}
|
||||||
|
|
||||||
|
\clearpage
|
||||||
|
|
||||||
|
\section{Performance Metrics}
|
||||||
|
|
||||||
|
Performance metrics used to evaluate the models include Mean Absolute Error (MAE), Mean Squared Error (MSE), and R-squared (R\textsuperscript{2}).
|
||||||
|
|
||||||
|
|
||||||
|
\begin{lstlisting}[language=Python,caption={Performance Metrics},label={code:data}]
|
||||||
|
model1 = Sequential()
|
||||||
|
model1.add(LSTM(64, input_shape=(WINDOW_SIZE, 1)))
|
||||||
|
model1.add(Dense(8, 'relu'))
|
||||||
|
model1.add(Dense(1))
|
||||||
|
model1.compile(loss=MeanSquaredError(), optimizer=Adam(learning_rate=0.001), metrics=[RootMeanSquaredError()])
|
||||||
|
model1.summary()
|
||||||
|
\end{lstlisting}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
\section{Results and Analysis}
|
||||||
|
|
||||||
|
The results of the experiments are analyzed to compare the performance of different models and identify the most effective approaches for traffic flow prediction.
|
||||||
|
|
||||||
|
\begin{lstlisting}[language=Python,caption={Performance Metrics},label={code:data}]
|
||||||
|
from tensorflow.keras.models import load_model
|
||||||
|
model1 = load_model('model1/')
|
||||||
|
train_results['Train Predictions'][:150].plot()
|
||||||
|
train_results['Train Actual'][:150].plot()
|
||||||
|
\end{lstlisting}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
\begin{figure}[h!]
|
||||||
|
\centering
|
||||||
|
\includegraphics[width=\textwidth]{result2.png}
|
||||||
|
\end{figure}
|
||||||
|
|
||||||
|
|
||||||
|
\begin{lstlisting}[language=Python,caption={Performance Metrics},label={code:data}]
|
||||||
|
val_predictions = model1.predict(X_val).flatten()
|
||||||
|
val_results = pd.DataFrame(data={'Validation Predictions':val_predictions, 'Validation Actual':y_val})
|
||||||
|
val_results
|
||||||
|
val_results['Validation Predictions'][:150].plot()
|
||||||
|
val_results['Validation Actual'][:150].plot()
|
||||||
|
\end{lstlisting}
|
||||||
|
|
||||||
|
\includegraphics[scale=1]{result_1.png}
|
||||||
20
doc_copy/chapters/introduction.tex
Normal file
20
doc_copy/chapters/introduction.tex
Normal file
|
|
@ -0,0 +1,20 @@
|
||||||
|
\chapter{Introduction}
|
||||||
|
|
||||||
|
\section{Background and context}
|
||||||
|
|
||||||
|
In cities, traffic jams at stoplight intersections are a big problem that makes transportation systems work less well. More and more people moving into cities and more cars on the road make it even trickier to find ways to deal with this issue. We really need new and smart ideas to handle and improve the flow of traffic. Machine Learning (ML), a kind of technology that can predict things, makes up for a good solution. It can help make traffic management at stoplight intersections better by telling us what might happen ahead of time.
|
||||||
|
|
||||||
|
Lots of people living in cities and more cars on the roads mean more traffic jams at stoplights (traffic signals). The usual systems we use to control traffic struggle to adapt to these changes and don't always work well. That's why we need a different approach. Machine learning, which can learn from past data, seems like a good fit. By looking at how traffic behaved before, it can predict how it might behave in the future at stoplight intersections. Making decisions about traffic in real-time is super important, and machine learning helps us do it fast and smart. So, looking into how machine learning can predict traffic at stoplight intersections is important to create smarter and better ways to handle traffic in our cities. Various methodologies of machine learning and deep learning are already in use from which we can be able to draw some valuable insights on what can be the best option for us to implement for our problem statement.
|
||||||
|
|
||||||
|
Technology used for this project: predominantly for this project python with its libraries has been used for understanding the neural networks and modelling. PyTorch functions and its application will be discussed followed by the mathematical interpretation behind the same.
|
||||||
|
\clearpage
|
||||||
|
\section{Research questions}
|
||||||
|
|
||||||
|
\begin{enumerate}[label=\textbf{RQ\arabic*:}]
|
||||||
|
\item What are the use cases in which machine learning model can be utilized in traffic prediction for context where some level of history of congestion at a point in time is known?
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
\item What is the algorithm to train the machine learning model to predict the outcome for a time-series data way ahead in time?
|
||||||
|
|
||||||
|
\end{enumerate}
|
||||||
33
doc_copy/chapters/literature.tex
Normal file
33
doc_copy/chapters/literature.tex
Normal file
|
|
@ -0,0 +1,33 @@
|
||||||
|
\chapter{Literature survey}
|
||||||
|
|
||||||
|
\section{Supervised Learning}
|
||||||
|
|
||||||
|
The machine learning model built using existing dataset is called supervised learning. ´Figure1 illustrates the supervised learning workflow. In this paper, author builds a supervised learning model to predict the product taxonomies. The work flow starts with data collection, this step involves fetching the corpus of raw data. This raw data processed before creating a training data set out of it. The data preprocessing steps involves feature selection, text normalization, data imputation and feature extraction. The training data is passed an input to the model which compares its results with the actual value to self- evaluate and learn. If any hyperparameter tuning for the machine learning model is required then it is trained again with new parameters. The model is then evaluated and then deployed for production use.
|
||||||
|
\begin{figure}[h!]
|
||||||
|
\centering
|
||||||
|
\includegraphics[scale=0.8]{supervised_learning.png}
|
||||||
|
\caption{Supervised Learning}
|
||||||
|
\end{figure}
|
||||||
|
|
||||||
|
|
||||||
|
\section{Machine Learning Techniques in Traffic Prediction}
|
||||||
|
|
||||||
|
Machine learning techniques have shown great promise in traffic flow prediction due to their ability to learn from data and capture complex patterns. Key machine learning techniques explored in the literature include:
|
||||||
|
|
||||||
|
\begin{itemize}
|
||||||
|
\item Linear Regression
|
||||||
|
\item Decision Trees and Random Forest
|
||||||
|
\item Support Vector Machines (SVM)
|
||||||
|
\item Neural Networks
|
||||||
|
\item Deep Learning Models (Recurrent Neural Networks (RNN), Long Short-Term Memory (LSTM))
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
\end{itemize}
|
||||||
|
|
||||||
|
\section{Comparative Studies}
|
||||||
|
|
||||||
|
Several comparative studies have evaluated the performance of different machine learning models in traffic flow prediction. These studies provide insights into the strengths and weaknesses of various models, guiding the selection of appropriate techniques for specific scenarios.
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
65
doc_copy/chapters/methodology.tex
Normal file
65
doc_copy/chapters/methodology.tex
Normal file
|
|
@ -0,0 +1,65 @@
|
||||||
|
\chapter{Methodology}
|
||||||
|
|
||||||
|
\section{Start with small prototype}
|
||||||
|
|
||||||
|
Predicting the number of vehicles on a particular junction involves processing timeseries data. Initially the author processes the data only forone of the junction. The raw data has been used from Kaggle.com provided by \parencite{fedesoriano}.
|
||||||
|
|
||||||
|
About the dataset : \\
|
||||||
|
The dataset contains data from year 2015-2017 along with junctions and number of vehicles in hourly intervals.
|
||||||
|
The data manipulation is performed using Python library-Pandas.
|
||||||
|
|
||||||
|
\begin{lstlisting}[language=Python,caption={Data set fetching using Pandas},label={code:data}]
|
||||||
|
df = pd.read_csv('Data/traffic.csv')
|
||||||
|
df = df.drop('ID', axis=1) df.head()
|
||||||
|
\end{lstlisting}
|
||||||
|
|
||||||
|
\begin{lstlisting}[language=Bash,caption={Sample Result},label={code:confusion matrix}]
|
||||||
|
index,DateTime,Junction,Vehicles,ID
|
||||||
|
0,2015-11-01 00:00:00,1,15,20151101001
|
||||||
|
1,2015-11-01 01:00:00,1,13,20151101011
|
||||||
|
2,2015-11-01 02:00:00,1,10,20151101021
|
||||||
|
3,2015-11-01 03:00:00,1,7,20151101031
|
||||||
|
4,2015-11-01 04:00:00,1,9,20151101041
|
||||||
|
\end{lstlisting}
|
||||||
|
|
||||||
|
At 4 junctions vehicles passing in every 1 hour recorded. Entire test dataset available in ``traffic.csv'' file
|
||||||
|
|
||||||
|
\section{Time series extraction}
|
||||||
|
|
||||||
|
Developing a machine learning model to predict the flow of traffic considering multiple aspects such as exact point of year(month-wise), also on the daily basis considering progression hour-wise is a complicated process.
|
||||||
|
|
||||||
|
We need to split the data such that \texttt{DateTime} column is split into `months', `hours', `day'. This is important as various aspects such as `day of the week', `month in a year', `hours in a day' need to be checked against for validating the trend in traffic.
|
||||||
|
|
||||||
|
\begin{lstlisting}[language=Python,caption={Data set fetching using Pandas},label={code:data}]
|
||||||
|
df['DateTime'] = pd.to_datetime(df['DateTime'], format='mixed')
|
||||||
|
# Exploring more features
|
||||||
|
df_Junction1["Year"]= df_Junction1['DateTime'].dt.year
|
||||||
|
df_Junction1["Month"]= df_Junction1['DateTime'].dt.month
|
||||||
|
df_Junction1["Date_no"]= df_Junction1['DateTime'].dt.day
|
||||||
|
df_Junction1["Hour"]= df_Junction1['DateTime'].dt.hour
|
||||||
|
df_Junction1["Day"]= df_Junction1.DateTime.dt.strftime
|
||||||
|
("%A") df_Junction1.head()
|
||||||
|
\end{lstlisting}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
\section{Ideate: Data Exploration}
|
||||||
|
|
||||||
|
Initial approach of finding a solution to predict time-series event is to analyze already existing solution to a different type of prediction problem.
|
||||||
|
|
||||||
|
For example, \parencite[Section 4.3]{Goodfellow-et-al-2016} showcases the implementation of RNN (Recurrent Neural Network) techniques in handling time-series events. In this context, the author leverages historical data patterns, to forecast the progression of traffic over time. The primary goal is to predict traffic conditions based on learned historical patterns.
|
||||||
|
|
||||||
|
In tailoring this methodology to the intricacies of traffic flow, the author recognizes the complexity of the task and opts to utilize past data patterns for making predictions.
|
||||||
|
|
||||||
|
To assess the effectiveness of the model, the author employs a visual tool, such as plotting graphs based on various traffic events. This visual representation offers a clear evaluation of predicted versus actual traffic conditions. Additionally, this approach allows for manual verification and scrutiny of instances where the model may have inaccurately predicted traffic conditions, contributing to a more comprehensive understanding of the model's performance.
|
||||||
|
|
||||||
|
|
||||||
|
\section{Understanding Mathematics of Neural Networks}
|
||||||
|
|
||||||
|
In this paper, author researches on the relevance of the mathematical concept with respect to the machine learning process. Understanding the math behind reducing the loss for prediction enables to completely understand the algorithms. Especially the training algorithm applies the activation functions. Author describes the theoretical knowledge with reasoning to apply these activation functions.
|
||||||
|
|
||||||
|
Understanding the mathematical foundations on which the neural networks and data prediction model works enables to reverse engineer the algorithm of machine learning model.
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
BIN
doc_copy/images/logo_uni.png
Normal file
BIN
doc_copy/images/logo_uni.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 106 KiB |
BIN
doc_copy/images/result2.png
Normal file
BIN
doc_copy/images/result2.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 268 KiB |
BIN
doc_copy/images/result_1.png
Normal file
BIN
doc_copy/images/result_1.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 254 KiB |
BIN
doc_copy/images/supervised_learning.png
Normal file
BIN
doc_copy/images/supervised_learning.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 46 KiB |
BIN
doc_copy/index.pdf
Normal file
BIN
doc_copy/index.pdf
Normal file
Binary file not shown.
231
doc_copy/index.tex
Normal file
231
doc_copy/index.tex
Normal file
|
|
@ -0,0 +1,231 @@
|
||||||
|
\documentclass[15pt,twoside]{report}
|
||||||
|
\usepackage[utf8]{inputenc}
|
||||||
|
|
||||||
|
|
||||||
|
\usepackage[a4paper,width=150mm,top=25mm,bottom=25mm,bindingoffset=6mm]{geometry}
|
||||||
|
\usepackage[british]{babel}
|
||||||
|
\usepackage{csquotes}
|
||||||
|
|
||||||
|
\usepackage{graphicx}
|
||||||
|
\usepackage{float}
|
||||||
|
\usepackage{fancyhdr}
|
||||||
|
\usepackage[nohyperlinks, printonlyused, withpage, smaller]{acronym}
|
||||||
|
\usepackage[backend=biber, sorting=nyt, style=ext-authoryear-comp,dashed=false,block=par]{biblatex}
|
||||||
|
\usepackage[inkscapeformat=png]{svg}
|
||||||
|
\usepackage{booktabs,multirow,array}
|
||||||
|
\usepackage{listings}
|
||||||
|
\usepackage{xcolor}
|
||||||
|
\usepackage{amsmath}
|
||||||
|
|
||||||
|
\usepackage[font=small,labelfont=bf,tableposition=top]{caption}
|
||||||
|
\usepackage{tikz}
|
||||||
|
\usepackage{tocloft}
|
||||||
|
\usepackage{enumitem}
|
||||||
|
\usepackage{appendix}
|
||||||
|
\usepackage{mathrsfs}
|
||||||
|
\usepackage{subcaption} % For subfigures
|
||||||
|
\usepackage{pgfplots}
|
||||||
|
\usepackage{ragged2e}
|
||||||
|
% \title{\Large \textbf{Application of Natural Language Processing \\ and Machine Learning in E-Commerce} \\ \Large Predicting Product Taxonomy}
|
||||||
|
\usetikzlibrary{shapes,arrows,positioning,arrows.meta,calc}
|
||||||
|
\captionsetup[table]{skip=5pt}
|
||||||
|
|
||||||
|
% Customize list of figures appearance in table of contents
|
||||||
|
\renewcommand{\cftfigpresnum}{\figurename\ }
|
||||||
|
\setlength{\cftfigindent}{0pt}
|
||||||
|
\setlength{\cftfignumwidth}{6.5em}
|
||||||
|
|
||||||
|
% Add extra space between paragraphs
|
||||||
|
\setlength{\parskip}{10pt} % Adjust the value to your preferred paragraph spacing
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
\definecolor{codegreen}{rgb}{0,0.6,0}
|
||||||
|
\definecolor{codegray}{rgb}{0.5,0.5,0.5}
|
||||||
|
\definecolor{codepurple}{rgb}{0.58,0,0.82}
|
||||||
|
\definecolor{backcolour}{rgb}{0.95,0.95,0.92}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
% Define the page style "mystyle" for the fancyhdr package
|
||||||
|
\fancypagestyle{mypagestyle}{
|
||||||
|
% Clear all header and footer fields
|
||||||
|
\fancyhf{}
|
||||||
|
% Set the header to display the chapter name on the right side
|
||||||
|
\fancyhead[R]{\leftmark}
|
||||||
|
% Set the footer to display the page number on the center
|
||||||
|
\fancyfoot[C]{\thepage}
|
||||||
|
% Set the footer line to appear (change 0pt to desired line thickness)
|
||||||
|
\renewcommand{\footrulewidth}{0.4pt}
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
\lstdefinestyle{mystyle}{
|
||||||
|
backgroundcolor=\color{backcolour},
|
||||||
|
commentstyle=\color{codegreen},
|
||||||
|
keywordstyle=\color{magenta},
|
||||||
|
numberstyle=\tiny\color{codegray},
|
||||||
|
stringstyle=\color{codepurple},
|
||||||
|
basicstyle=\ttfamily\footnotesize,
|
||||||
|
breakatwhitespace=false,
|
||||||
|
breaklines=true,
|
||||||
|
captionpos=b,
|
||||||
|
keepspaces=true,
|
||||||
|
numbers=left,
|
||||||
|
numbersep=5pt,
|
||||||
|
showspaces=false,
|
||||||
|
showstringspaces=false,
|
||||||
|
showtabs=false,
|
||||||
|
tabsize=2
|
||||||
|
}
|
||||||
|
|
||||||
|
\lstset{style=mystyle}
|
||||||
|
|
||||||
|
\graphicspath{ {images/} }
|
||||||
|
|
||||||
|
% \renewbibmacro*{url+urldate}{%
|
||||||
|
% \printfield{url}%
|
||||||
|
% \iffieldundef{urlyear}
|
||||||
|
% {}
|
||||||
|
% {\setunit*{\addspace}%
|
||||||
|
% \printtext[urldate]{\printurldate}}}
|
||||||
|
|
||||||
|
\DeclareFieldFormat{url}{Available at\addcolon\space\url{#1}}
|
||||||
|
\DeclareFieldFormat{urldate}{\newline Accessed on\addcolon\space{#1}}
|
||||||
|
% \DeclareFieldFormat{title}{\newline{#1}}
|
||||||
|
\DeclareFieldFormat{biblabeldate}{#1}
|
||||||
|
\DeclareDelimFormat{nameyeardelim}{\addcomma\space}% comma before the year
|
||||||
|
% \DeclareFieldFormat{url}{\bibstring{urlfrom}\addcolon\space\url{#1}}
|
||||||
|
% \DeclareFieldFormat{urldate}{\mkbibbrackets{\bibstring{urlseen}\addcolon\space#1}}
|
||||||
|
|
||||||
|
% \renewbibmacro*{url+urldate}{% changes the default order of the fields url and urldate
|
||||||
|
% \usebibmacro{urldate}%
|
||||||
|
% \newunit
|
||||||
|
% \usebibmacro{url}%
|
||||||
|
% }
|
||||||
|
|
||||||
|
% \makeatletter
|
||||||
|
% \setlength{\bibitemsep}{0.5\baselineskip plus 0.5\baselineskip}
|
||||||
|
|
||||||
|
% \newsavebox\ay@labelbox
|
||||||
|
% \newlength{\labwidthsameline}
|
||||||
|
% \setlength{\labwidthsameline}{6em}
|
||||||
|
|
||||||
|
% % \newbibmacro{labelwidthbib}{%
|
||||||
|
% % \begingroup
|
||||||
|
% % \delimcontext{parencite}%
|
||||||
|
% % \DeclareFieldFormat{bibhyperref}{##1}%
|
||||||
|
% % \csuse{blx@hook@cite}%
|
||||||
|
% % \csuse{blx@hook@citekey}%
|
||||||
|
% % \global\undef\cbx@lasthash
|
||||||
|
% % \global\undef\cbx@lastyear
|
||||||
|
% % \citetrackerfalse\pagetrackerfalse\backtrackerfalse
|
||||||
|
% % \defcounter{maxnames}{\blx@maxcitenames}%
|
||||||
|
% % \printtext[brackets]{\usebibmacro{cite}}%
|
||||||
|
% % \endgroup
|
||||||
|
% % }
|
||||||
|
% %-----------------------
|
||||||
|
% \newbibmacro{kicklabel}{%
|
||||||
|
% \sbox\ay@labelbox{\usebibmacro{labelwidthbib}}%
|
||||||
|
% \global\togglefalse{blx@insert}%
|
||||||
|
% \ifdim\wd\ay@labelbox>\labwidthsameline
|
||||||
|
% \leavevmode\newline
|
||||||
|
% \fi
|
||||||
|
% }
|
||||||
|
|
||||||
|
% \defbibenvironment{bibliography}%
|
||||||
|
% {\list
|
||||||
|
% {\usebibmacro{labelwidthbib}}%
|
||||||
|
% {\setlength{\labelwidth}{\labwidthsameline}%
|
||||||
|
% \setlength{\leftmargin}{\labelwidth}%
|
||||||
|
% \setlength{\labelsep}{\biblabelsep}%
|
||||||
|
% \addtolength{\leftmargin}{\labelsep}%
|
||||||
|
% \setlength{\itemsep}{\bibitemsep}%
|
||||||
|
% \setlength{\parsep}{\bibparsep}%
|
||||||
|
% \renewcommand*{\makelabel}[1]{##1\hss}}}%
|
||||||
|
% {\endlist}%
|
||||||
|
% {\item\usebibmacro{kicklabel}}
|
||||||
|
% \makeatother
|
||||||
|
|
||||||
|
\addbibresource{References.bib}
|
||||||
|
|
||||||
|
\includeonly{preliminary/title, %
|
||||||
|
preliminary/affidavit, %
|
||||||
|
preliminary/certificate, %
|
||||||
|
preliminary/acknowledgement, %
|
||||||
|
preliminary/abstract, %
|
||||||
|
preliminary/acronyms, %
|
||||||
|
chapters/introduction, %
|
||||||
|
chapters/literature, %
|
||||||
|
chapters/methodology, %
|
||||||
|
chapters/experiment, %
|
||||||
|
}
|
||||||
|
|
||||||
|
\begin{document}
|
||||||
|
|
||||||
|
|
||||||
|
%--------------- Prelimanary pages -------------
|
||||||
|
|
||||||
|
|
||||||
|
%--------------------------------------------
|
||||||
|
\include{preliminary/title.tex}
|
||||||
|
\include{preliminary/affidavit.tex}
|
||||||
|
\include{preliminary/certificate.tex}
|
||||||
|
\include{preliminary/acknowledgement.tex}
|
||||||
|
\include{preliminary/abstract.tex}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
\pagenumbering{roman}
|
||||||
|
\pagestyle{plain}
|
||||||
|
\tableofcontents
|
||||||
|
|
||||||
|
\clearpage
|
||||||
|
%----------------- chapters --------------------
|
||||||
|
\pagestyle{mypagestyle}
|
||||||
|
\pagenumbering{arabic}
|
||||||
|
|
||||||
|
%---------------------------------------
|
||||||
|
\include{chapters/introduction.tex}
|
||||||
|
\include{chapters/literature.tex}
|
||||||
|
\include{chapters/methodology.tex}
|
||||||
|
\include{chapters/experiment}
|
||||||
|
|
||||||
|
\pagenumbering{roman}
|
||||||
|
\pagestyle{mypagestyle}
|
||||||
|
|
||||||
|
% Add the List of Figures to the table of contents
|
||||||
|
\cleardoublepage % Ensure the correct page
|
||||||
|
\addcontentsline{toc}{chapter}{\listfigurename}
|
||||||
|
\listoffigures
|
||||||
|
|
||||||
|
|
||||||
|
\addcontentsline{toc}{chapter}{\listtablename}
|
||||||
|
\listoftables
|
||||||
|
|
||||||
|
\lstlistoflistings
|
||||||
|
|
||||||
|
|
||||||
|
\clearpage
|
||||||
|
% \printglossary[type=\acronymtype]
|
||||||
|
|
||||||
|
% \printglossary
|
||||||
|
\addcontentsline{toc}{chapter}{Bibliography}
|
||||||
|
|
||||||
|
|
||||||
|
\nocite{*}
|
||||||
|
\printbibliography[title={References}]
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
% \defbibheading{bibempty}{}
|
||||||
|
|
||||||
|
% \let\oldbib\thebibliography
|
||||||
|
% \let\endoldbib\endthebibliography
|
||||||
|
% \renewenvironment{thebibliography}
|
||||||
|
% {\vspace{\baselineskip}\begin{oldbib}}
|
||||||
|
% {\end{oldbib}\vspace{\baselineskip}}
|
||||||
|
|
||||||
|
|
||||||
|
\end{document}
|
||||||
16
doc_copy/preliminary/abstract.tex
Normal file
16
doc_copy/preliminary/abstract.tex
Normal file
|
|
@ -0,0 +1,16 @@
|
||||||
|
\begin{abstract}
|
||||||
|
|
||||||
|
|
||||||
|
\begin{flushright}
|
||||||
|
|
||||||
|
\justifying
|
||||||
|
This research focuses on the application of machine learning in optimizing public transport planning by developing models to predict traffic flow at junction levels in various conditions, particularly on freeways or highways.
|
||||||
|
|
||||||
|
The escalating challenge of urban traffic congestion underscores the critical need for a robust traffic monitoring and forecasting system, with accurate prediction of traffic flow being a core component. This study emphasizes the effectiveness of a proposed framework in understanding traffic flow waves and congestion at the junction level.
|
||||||
|
|
||||||
|
The findings highlight the necessity of identifying the most effective solution among Recurrent Neural Network (RNN) variants, including Long Short-Term Memory (LSTM) models, neural networks. These models exhibit superior performance in link flow predictions compared to other machine learning methods. The choice between RNN, or LSTM models is crucial for enhancing the accuracy and efficiency of traffic flow predictions.
|
||||||
|
|
||||||
|
Practical insights underscore the importance of the deep learning model structure, data pre-processing, and error matrices for achieving precise traffic flow predictions. Implementing the suggested approaches contributes to the optimization of traffic flow, thereby enhancing overall urban transportation efficiency and fostering a more sustainable and seamless urban mobility experience.
|
||||||
|
\end{flushright}
|
||||||
|
\end{abstract}
|
||||||
|
|
||||||
35
doc_copy/preliminary/acknowledgement.tex
Normal file
35
doc_copy/preliminary/acknowledgement.tex
Normal file
|
|
@ -0,0 +1,35 @@
|
||||||
|
|
||||||
|
\begin{titlepage}
|
||||||
|
\begin{flushright}
|
||||||
|
|
||||||
|
|
||||||
|
\section*{Acknowledgment}
|
||||||
|
\justifying
|
||||||
|
I would like to extend my deepest gratitude to \textbf{ Dr. Ranju Mohan} for her invaluable guidance
|
||||||
|
and support as my project supervisor. Her insightful feedback, unwavering encouragement, and
|
||||||
|
extensive knowledge have been instrumental in the successful completion of this project. Dr.
|
||||||
|
Mohan's dedication to excellence and her willingness to share her expertise have greatly
|
||||||
|
enhanced my learning experience. I am truly grateful for her mentorship and the opportunity
|
||||||
|
to work under her supervision. Her insights and expertise were crucial to the successful
|
||||||
|
completion of this work.
|
||||||
|
|
||||||
|
I am also immensely grateful to my examiners, \textbf{Dr. Bhupendra Singh} and Dr. Riby Abraham
|
||||||
|
Boby, for their thorough evaluation, constructive feedback, and suggestions, which greatly
|
||||||
|
contributed to the enhancement of this project.
|
||||||
|
|
||||||
|
My heartfelt thanks go to the program coordinators, \textbf{ Dr. Gourav Bhatnagar} and Dr. Dilpreet
|
||||||
|
Kaur, for their unwavering support, efficient coordination, and assistance in all administrative
|
||||||
|
matters, making this academic journey a smooth and enriching experience.
|
||||||
|
Finally, I would like to acknowledge the support and encouragement from my family,my elder brother, friends,
|
||||||
|
and colleagues, without whom this project would not have been possible.
|
||||||
|
\vspace*{3\baselineskip}
|
||||||
|
|
||||||
|
|
||||||
|
Thank you, \\
|
||||||
|
|
||||||
|
{\large \bfseries Cyril John Arickathil }
|
||||||
|
|
||||||
|
|
||||||
|
\end{flushright}
|
||||||
|
|
||||||
|
\end{titlepage}
|
||||||
49
doc_copy/preliminary/acronyms.tex
Normal file
49
doc_copy/preliminary/acronyms.tex
Normal file
|
|
@ -0,0 +1,49 @@
|
||||||
|
% \newacronym{kgs}{KGs}{Knowledge Graphs}
|
||||||
|
% \newacronym{nlp}{NLP}{Natural Language Processing}
|
||||||
|
% \acro{ecu}[ECU]{European currency unit}
|
||||||
|
% \begin{acronym}[ECU]
|
||||||
|
|
||||||
|
|
||||||
|
% \chapter*{List of abbreviations} \label{LOA}
|
||||||
|
\begin{acronym}
|
||||||
|
\acro{kg}[KG]{Knowledge graph}
|
||||||
|
\acro{kb}[KB]{Knowledge base}
|
||||||
|
\acro{qe}[QE]{Questioning Engine}
|
||||||
|
\acro{nlp}[NLP]{Natural Language Processing}
|
||||||
|
|
||||||
|
\acro{qg}[QG]{Question generation}
|
||||||
|
|
||||||
|
\acro{ner}[NER]{Named Entity Recognition}
|
||||||
|
\acro{adp}[adp]{adposition}
|
||||||
|
\acro{pobj}[pobj]{prepositional object}
|
||||||
|
\acro{dobj}[dobj]{direct object}
|
||||||
|
\acro{nsubj}[nsubj]{nominal subject}
|
||||||
|
\acro{conj}[conj]{coordinating conjunction}
|
||||||
|
\acro{amod}[amod]{adjectival modifier}
|
||||||
|
\acro{POS}[POS]{part of speech}
|
||||||
|
\acro{pron}[pron]{pronoun}
|
||||||
|
\acro{SRO}[SRO]{subject,relation and object}
|
||||||
|
\acro{Tf-Idf}[Tf-Idf]{Term frequency-Inverse document frequency}
|
||||||
|
\acro{Tf}[Tf-Idf]{Term frequency}
|
||||||
|
\acro{Idf}[Idf]{Inverse document frequency}
|
||||||
|
\acro{KNN}[KNN]{\textit{k} -Nearest Neighbors}
|
||||||
|
\acro{RNN}[RNN]{Recurrent Neural Network}
|
||||||
|
\acro{ALL}[ALL]{Adaptive LogSoftmax with Loss}
|
||||||
|
\acro{NLLLoss}[NLLLoss]{Negative log likelihood loss}
|
||||||
|
\acro{BPTT}[BPTT]{Back Propagation through time}
|
||||||
|
\acro{DAG}[DAG]{directed acyclic graph }
|
||||||
|
\acro{SGD}[SGD]{Stochastic gradient descent }
|
||||||
|
\acro{CLR}[CLR]{Cyclic learning rate }
|
||||||
|
\acro{LTR}[LTR]{Learn to Rank }
|
||||||
|
\acro{IR}[IR]{Information Retrieval }
|
||||||
|
\acro{AI}[AI]{Artificial Intelligence }
|
||||||
|
\acro{PMF}[PMF]{Probability Mass Function }
|
||||||
|
\acro{MSE}[MSE]{Mean Squared Error}
|
||||||
|
\acro{GAN}[GAN]{generative adversarial network}
|
||||||
|
\acro{PIM}[PIM]{Product Information Management}
|
||||||
|
\acro{SKU}[SKU]{stock-keeping unit}
|
||||||
|
|
||||||
|
\acro{SEO}[SEO]{Search Engine Optimization}
|
||||||
|
|
||||||
|
\end{acronym}
|
||||||
|
|
||||||
19
doc_copy/preliminary/affidavit.tex
Normal file
19
doc_copy/preliminary/affidavit.tex
Normal file
|
|
@ -0,0 +1,19 @@
|
||||||
|
|
||||||
|
\begin{titlepage}
|
||||||
|
\begin{flushright}
|
||||||
|
|
||||||
|
|
||||||
|
\section*{Declaration}
|
||||||
|
\justifying
|
||||||
|
I hereby declare that the work presented in this Project Report titled \textbf{ Machine Learning for traffic flow prediction at different junctions – M.Tech}. Submitted to the \textbf{ Indian Institute of Technology Jodhpur} in partial fulfilment of the requirements for the award of the degree of M.Tech (Masters of Technology), is a Bonafide record of the research work carried out under the supervision of \textbf{ Dr. Ranju Mohan}. The contents of this Project Report in full or in parts, have not been submitted to, and will not be submitted by me to, any other Institute or University in India or abroad for the award of any degree or diploma.
|
||||||
|
\vspace*{3\baselineskip}
|
||||||
|
|
||||||
|
|
||||||
|
{\large \bfseries Cyril John Arickathil }
|
||||||
|
|
||||||
|
{\large \bfseries M22RM210 }
|
||||||
|
|
||||||
|
|
||||||
|
\end{flushright}
|
||||||
|
|
||||||
|
\end{titlepage}
|
||||||
0
doc_copy/preliminary/approval-sheet.tex
Normal file
0
doc_copy/preliminary/approval-sheet.tex
Normal file
19
doc_copy/preliminary/certificate.tex
Normal file
19
doc_copy/preliminary/certificate.tex
Normal file
|
|
@ -0,0 +1,19 @@
|
||||||
|
|
||||||
|
\begin{titlepage}
|
||||||
|
\begin{flushright}
|
||||||
|
|
||||||
|
|
||||||
|
\section*{Certificate}
|
||||||
|
\justifying
|
||||||
|
This is to certify that the Project Report titled \textbf{Machine Learning for traffic flow prediction at different junctions}, submitted by \textbf{Cyril John Arickathil (M22RM210)} to the \textbf{Indian Institute of Technology Jodhpur} only for the award of the degree of \textbf{M.Tech in Robotics and Mobility Systems (RMS)} is a Bonafide record of the work under my supervision. To the best of my knowledge, the contents of this report, in full or in parts, have not been submitted to any other Institute or University for the award of any degree or diploma.
|
||||||
|
\vspace*{3\baselineskip}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
{\large \bfseries Dr. Ranju Mohan }
|
||||||
|
|
||||||
|
|
||||||
|
\end{flushright}
|
||||||
|
|
||||||
|
\end{titlepage}
|
||||||
0
doc_copy/preliminary/copyright.tex
Normal file
0
doc_copy/preliminary/copyright.tex
Normal file
0
doc_copy/preliminary/declaration.tex
Normal file
0
doc_copy/preliminary/declaration.tex
Normal file
52
doc_copy/preliminary/title.tex
Normal file
52
doc_copy/preliminary/title.tex
Normal file
|
|
@ -0,0 +1,52 @@
|
||||||
|
\begin{titlepage}
|
||||||
|
|
||||||
|
|
||||||
|
\begin{flushright}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
\vspace*{3\baselineskip}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
% \maketitle
|
||||||
|
{\LARGE \bfseries Machine Learning for traffic flow prediction at different junctions}\\[0.3cm]
|
||||||
|
|
||||||
|
\vspace*{4\baselineskip}
|
||||||
|
{\Large \itshape A Project Report submitted by}
|
||||||
|
\vspace*{1\baselineskip}
|
||||||
|
|
||||||
|
{\Large \bfseries Cyril John Arickathil - M22RM210 }
|
||||||
|
|
||||||
|
|
||||||
|
\vspace*{4\baselineskip}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
% \includegraphics[width=0.35\linewidth]{srhlogo}
|
||||||
|
|
||||||
|
{\large \itshape in partial fulfillment of the requirements for the award of the degree of}
|
||||||
|
\vspace*{0.5\baselineskip}
|
||||||
|
|
||||||
|
{\Large \bfseries MTech in Data and Computational Science }
|
||||||
|
\vspace*{2\baselineskip}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
\includegraphics[scale=1]{logo_uni.png}
|
||||||
|
\vspace*{2\baselineskip}
|
||||||
|
|
||||||
|
{\Large \bfseries Indian Institute of Technology Jodhpur }
|
||||||
|
\vspace*{1\baselineskip}
|
||||||
|
{\Large \bfseries Data and Computational Science }
|
||||||
|
\vspace*{1\baselineskip}
|
||||||
|
|
||||||
|
{\Large \bfseries August, 2023 - July, 2024 }
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
\end{flushright}
|
||||||
|
|
||||||
|
|
||||||
|
\end{titlepage}
|
||||||
Loading…
Reference in a new issue