-
Notifications
You must be signed in to change notification settings - Fork 7
Expand file tree
/
Copy pathpresentation.tex
More file actions
1320 lines (1157 loc) · 43.2 KB
/
Copy pathpresentation.tex
File metadata and controls
1320 lines (1157 loc) · 43.2 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
%!TeX program = xelatex
\documentclass[aspectratio=169]{beamer}
%\documentclass[aspectratio=169]{beamer}
\usetheme[
outer/progressbar=foot,
outer/numbering=none
]{metropolis}
\usepackage{amsmath}
\usepackage{pgfplots}
\usepackage{appendixnumberbeamer}
\usepackage[style=authortitle,backend=bibtex]{biblatex}
\addbibresource{references.bib}
\usetikzlibrary{calc} % for manimulation of coordinates
\usepackage{animate}
\makeatletter\def\@anim@pdfmdfivesum#1{#1}\makeatother
\usepackage{tikz}
\usepackage{placeins}
\usepgfplotslibrary{external,fillbetween}
\tikzexternalize
\usetikzlibrary{calc,trees,positioning,arrows,chains,shapes.geometric,%
decorations.pathreplacing,decorations.pathmorphing,shapes,%
matrix,shapes.symbols, patterns,shadows.blur}
\tikzset{every picture/.style={/utils/exec={\sffamily}}}
% COLORS FOR GRAPHS
\pgfplotsset{width=\textwidth, height=\textheight*0.33,compat=newest}
\definecolor{train_color_1}{HTML}{8b402a}
\definecolor{train_color_2}{HTML}{e45e2d}
\definecolor{train_color_3}{HTML}{ef9c49}
\definecolor{train_color_4}{HTML}{fdea6f}
\definecolor{test_color_1}{HTML}{192574}
\definecolor{test_color_2}{HTML}{2e62a1}
\definecolor{test_color_3}{HTML}{43a7cb}
\definecolor{test_color_4}{HTML}{9ed5cd}
\pgfplotscreateplotcyclelist{train}{
semithick,train_color_1\\%
semithick,train_color_2\\%
semithick,train_color_3\\%
semithick,train_color_4\\%
}
\pgfplotscreateplotcyclelist{test}{
semithick,test_color_1\\%
semithick,test_color_2\\%
semithick,test_color_3\\%
semithick,test_color_4\\%
}
\usepackage{graphicx}
\usetikzlibrary{arrows,positioning}
\usetikzlibrary{calc} % for manimulation of coordinates
\tikzset{
%Define standard arrow tip
>=stealth',
%Define style for boxes
mylabel/.style={text width=7em, text centered},
mysmalllabel/.style={text width=7em, text centered},
punkt/.style={
rectangle,
rounded corners,
draw=black, very thick,
text width=8em,
minimum height=2.5em,
text centered},
% Define arrow style
pil/.style={
->,
thick,
shorten <=2pt,
shorten >=2pt,}
}
\makeatletter
\def\@makefnmark{}
\makeatletter
\tikzset{
%Define standard arrow tip
>=stealth',
%Define style for boxes
mylabel/.style={text width=7em, text centered},
mysmalllabel/.style={text width=7em, text centered},
punkt/.style={
rectangle,
rounded corners,
draw=black, very thick,
text width=8em,
minimum height=2.5em,
text centered},
punktt/.style={
rectangle,
draw=black, thick,
text width=8em,
minimum height=2.5em,
text centered},
% Define arrow style
pil/.style={
->,
thick,
shorten <=2pt,
shorten >=2pt,}
}
\newcommand{\sectiondark}[1]{
\metroset{background=dark} % change background theme according to manual
\usebeamercolor[fg]{normal text}
\section{#1}
\metroset{background=light} % change background theme according to manual
\usebeamercolor[fg]{normal text}
}
\usepackage[ruled,vlined]{algorithm2e}
\usepackage{float}
\usepackage{listings}
\lstset{frame=tb,
language=Python,
aboveskip=3mm,
belowskip=3mm,
showstringspaces=false,
columns=flexible,
basicstyle={\small\ttfamily},
numbers=left,
numberstyle=\tiny\color{gray},
keywordstyle=\color{blue},
commentstyle=\color{dkgreen},
stringstyle=\color{mauve},
breaklines=true,
breakatwhitespace=true,
tabsize=3,
inputencoding=latin1
}
\makeatletter
%\setbeamertemplate{title}{
% \raggedright%
% \linespread{1.0}%
% \inserttitle%
% \par%
% %\vspace*{0.5em}
%}
\setbeamertemplate{author}{
\vspace*{2em}
\begin{minipage}[t]{.2\textwidth}
{\textbf{Candidate:}}
\end{minipage}
\begin{minipage}[t]{.8\textwidth}
\insertauthor%
\par%
\end{minipage}
\vspace*{0.25em}
}
\setbeamertemplate{date}{
\hfill
\insertdate%
\par%
}
\setbeamertemplate{title page}{
\begin{minipage}[b][\paperheight]{\textwidth}
\vfill%
\ifx\inserttitle\@empty\else\usebeamertemplate*{title}\fi
\usebeamertemplate*{title separator}
\ifx\insertsubtitle\@empty\else\usebeamertemplate*{subtitle}\fi
\ifx\beamer@shortauthor\@empty\else\usebeamertemplate*{author}\fi
\ifx\insertinstitute\@empty\else\usebeamertemplate*{institute}\fi
\ifx\inserttitlegraphic\@empty\else\inserttitlegraphic\fi
% \vspace*{1cm}
\begin{minipage}[t]{.2\textwidth}
{\small \textbf{Supervisors}:}%
\par%
\end{minipage}
\begin{minipage}[t]{.8\textwidth}
{\small Prof. Pietro Michiardi \hfill EURECOM, France}%
\par%
{\small Prof. Elena Baralis \hfill Politecnico di Torino, Italy}%
\par%
\end{minipage}
\vfill
\ifx\insertdate\@empty\else\usebeamertemplate*{date}\fi
\vfill
\vspace*{0mm}
\end{minipage}
}
\makeatother
%\titlegraphic{%
% \includegraphics[width=.2\textwidth]{example-image-a}\hfill\hfill
% \includegraphics[width=.2\textwidth]{example-image-b}
%
%} % Use metropolis theme
\title{Deep Reinforcement Learning for Autonomous Systems}
\subtitle{\small Designing a control system to exploit model-free deep reinforcement learning algorithms to solve a real-world autonomous driving task of a small robot.}
\date{\today}
\author{Piero Macaluso}
\setbeamercolor{background canvas in title}{parent=palette primary}
\setbeamercolor{progress bar}{use=palette primary}
% \titlegraphic{\hfill\includegraphics[height=1.5cm]{logo.pdf}}
\begin{document}
\metroset{background=dark} % change background theme according to manual
\usebeamercolor[fg]{normal text}
\maketitle
\metroset{background=light} % change background theme according to manual
\usebeamercolor[fg]{normal text}
\begin{frame}
\begin{center}
\begin{minipage}{0.4\linewidth}
\begin{center}
\includegraphics[width=1\linewidth]{img/eurecom.png}
\label{fig:eurecom}
\end{center}
\end{minipage}
\begin{minipage}{0.4\linewidth}
\begin{center}
\includegraphics[width=1\linewidth]{img/polito.png}
\label{fig:polito}
\end{center}
\end{minipage}
This work of this thesis was developed at EURECOM (Sophia Antipolis, France)\\in collaboration with
Prof. Pietro Michiardi (EURECOM)\\Prof. Elena Baralis (Politecnico di Torino)
\end{center}
\note{
Good morning,
Today I am going to present you the work of my thesis project about Deep Reinforcement Learning algorithms applied to Autonomous Systems.
I developed this thesis during my stay at Eurecom in the south of France under the external supervision of Pietro Michiardi and the internal guidance of prof. Elena Baralis.
}
\end{frame}
\begin{frame}{Table of contents}
\setbeamertemplate{section in toc}[sections numbered]
\tableofcontents[hideallsubsections]
\note{
This presentation consists of four main parts:
\begin{itemize}
\item In the first part, I will outline the crucial concepts underlying autonomous system technology and the reinforcement learning approach. These two research fields are the baseline of this work.
\item The second part will be dedicated to the description of the control system we design to make things work together to build up a solid foundation for the reinforcement learning experimentation part. This part represents the first contribution of this thesis.
\item In the third part, we will discuss the experimental methodology used with a showcase of the results obtained together with a constructive comment.
\item In the final part, we will analyse what we reached to be able to propose further improvement and research for future work.
\end{itemize}
}
\end{frame}
%%%%%%%%%%
% SECTION: Reinforcement Learning Background
%%%%%%%%%%
\sectiondark{Background}
\subsection{State-of-the-art Autonomous Driving Systems}
\begin{frame}{State-of-the-art Autonomous Driving Systems}
\begin{center}
\includegraphics[width=0.8\linewidth]{img/sensors.png}
\end{center}
\vspace{-5mm}
\footcite*{govtech2018aut}
\note{
Autonomous systems and self-driving vehicles are attracting much attention from both the research community and industry due to their potential to revolutionise mobility and transport.
Nowadays, this technology is based on a comprehensive understanding of the surrounding environment. This fact is made possible thanks to the substantial usage of sensors and camera to gather useful information.
The most crucial sensors used are cameras, LIDAR, Short and Long-range Radar and GPS for coarse localisation.
}
\end{frame}
%\begin{frame}{State-of-the-art Autonomous Driving Systems}
% \begin{center}
% \includegraphics[width=0.7\linewidth]{img/detection.jpg}
%
%
% \textbf{Deep Learning} and \textbf{Machine Learning} are mainly exploited in\\ \alert{\textbf{object detection}} and \alert{\textbf{recognition}}.
% \end{center}
% \note{In this scenario, Deep Learning and Machine Learning are mainly exploited for object detection and recognition, while the implementation of the decision-making component is left to control optimisation algorithms.}
%\end{frame}
\begin{frame}{State-of-the-art Autonomous Driving Systems}
\begin{center}
\scalebox{0.7}{
\begin{tikzpicture}
\node[outer sep=2pt] (knowledge) {\footnotesize \alert<1->{
\textbf{Knowledge}}};
\node[punktt,inner sep=5pt,outer sep=5pt,right=0.5cm of knowledge] (localization) {\footnotesize Localization Map Building};
\node[punktt,inner sep=5pt,outer sep=5pt,below=1cm of localization] (information) {\footnotesize Information Extraction};
\node[punktt,inner sep=5pt,outer sep=5pt,below=1cm of information] (sensing) {\footnotesize Sensing};
\draw[->, thick](knowledge.east) -- (localization.west);
\draw[->, thick](sensing.north) -- (information.south) node [midway, right=0.2cm] {\scriptsize raw data};
\draw[->, thick](information.north) -- (localization.south) node [midway, above right=-0.5cm and 0.2cm] {\scriptsize {\begin{tabular}{c}
environmental model \\
local map \\
\end{tabular} }};
\draw[->, thick](knowledge.south) |- ($(information.west) + (-0.2,0)$);
\draw[black,thick,dotted] ($(information.north west)+(-0.1,0.1)$) rectangle ($(sensing.south east)+(0.1,-0.1)$);
\node[outer sep=2pt, right=12cm of knowledge] (mission) {\footnotesize Mission goals};
\node[punktt,inner sep=5pt,outer sep=5pt,left=0.5cm of mission] (decision) {\footnotesize \alert<2->{\textbf{Decision Making}} \\ Motion Planning};
\node[punktt,inner sep=5pt,outer sep=5pt,below=1cm of decision] (trajectory) {\footnotesize Trajectory execution};
\node[punktt,inner sep=5pt,outer sep=5pt,below=1cm of trajectory] (actuation) {\footnotesize Actuation};
\node[punkt,inner sep=5pt,outer sep=5pt,below right=0.5cm and 0.15cm of sensing] (environment) {\footnotesize Real World Environment};
\draw[->, thick](mission.west) -- (decision.east);
\draw[->, thick](decision.south) -- (trajectory.north) node [midway, right=0.2cm] {\scriptsize trajectory};
\draw[->, thick](trajectory.south) -- (actuation.north) node [midway, above right=-0.5cm and 0.1cm] {\scriptsize {\begin{tabular}{c}
actuator \\
commands \\
\end{tabular} }};
\draw[->, thick](mission.south) |- ($(trajectory.east) + (+0.2,0)$);
\draw[black,thick,dotted] ($(trajectory.north west)+(-0.1,0.1)$) rectangle ($(actuation.south east)+(0.1,-0.1)$);
\draw[->, thick](localization.east) -- (decision.west) node [midway, above=0.1cm] {\scriptsize {\begin{tabular}{c}
position \\
global map \\
\end{tabular} }};
\draw[->, thick](actuation.south) |- (environment.east);
\draw[->, thick](environment.west) -| (sensing.south);
\end{tikzpicture}}
\end{center}
\vspace{-7mm}
\footcite*{pavone2019veicoli}
\note<1>{This schema outlines the crucial components of the modern autonomous driving car technology together with the interactions among them.
\begin{itemize}
\item At the bottom, we have the surrounding environment.
\item In the left section, we have a stack of components from the raw data to feature extraction.
\item The right section is the decision-making part, where the algorithm decided what action to make.
\end{itemize}
Nowadays, we find the application of ML and DL only in the left part to extract features that a control optimisation algorithm will exploit to select what to do deterministically. }
\note<2>{The idea underlying this project is trying to implement artificial intelligence inside this decision-making part.}
\end{frame}
\begin{frame}{Reinforcement Learning}
Problems involving an \textbf{agent}
interacting with an \textbf{environment}
, which provides numeric \textbf{reward signals}.
\onslide<2->{\alert{\textbf{Goal}}: Learn how to take actions in order to maximize a reward function.}
\begin{center}
\scalebox{0.9}{
\begin{tikzpicture}
% node Agent
\node[punkt] (agent) {Agent};
% node Environment
\node[punkt, below=1cm of agent] (env) {Environment};
% node a_t
\node[mylabel, below right=0.25cm and 0cm of agent] (action) {$a_t$};
% node s_t
\node[mylabel, below left=0.25cm and 0.8cm of agent] (state) {$s_t$};
% node r_t
\node[mylabel, below left=0.25cm and -0.3cm of agent] (reward) {$r_t$};
% node s_t+1
\node[mylabel, above left=-1.3cm and -1cm of env] (state) {$s_{t+1}$};
% node r_t+1
\node[mylabel,above left=-.3cm and -1cm of env] (reward1) {$r_{t+1}$};
\draw[pil] (agent.east) -- ($(agent.east) + (1.2cm,0cm)$) |- (env.east);
\draw[pil] ($(env.west) + (0,-0.2cm)$) -- ($(env.west) + (-1.2cm,-0.2cm)$);
\draw[pil] ($(env.west) + (-1.2cm,-0.2cm)$) -- ($(env.west) + (-2cm,-0.2cm)$) |-($(agent.west) + (0,0.2cm)$);
\draw[pil] ($(env.west) + (0,+0.2cm)$) -- ($(env.west) + (-1.2cm,+0.2cm)$);
\draw[pil] ($(env.west) + (-1.2cm,+0.2cm)$) -- ($(env.west) + (-1.6cm,+0.2cm)$) |-($(agent.west) + (0,-0.2cm)$);
\draw[dashed] ($(env.west) - (1.2cm,-0.5cm)$) -- ($(env.west) - (1.2cm,0.5cm)$);
\end{tikzpicture}
\label{looprl}
\footcite*{sutton2018reinforcement}
}
\end{center}
\note{
Reinforcement Learning is a paradigm of machine learning that formalises and tries to solve decision-making tasks. In this formalisation, we can find:
\begin{itemize}
\item The agent - the brain, the entity that makes decisions.
\item The environment: it is everything external to the agent.
\item The actions, the mean by which agent can interact and influence the environment.
\end{itemize}
}
\end{frame}
\begin{frame}{From Data to Value}
\onslide<1->{} % \onslide<2->{}
\begin{center}
% \includegraphics<1>[width=\linewidth]{img/reinforcement-learning-1.png}
\includegraphics<1>[width=\linewidth]{img/reinforcement-learning-2.png}
\end{center}
\footcite*{chara2018wild}
\end{frame}
\begin{frame}{Algorithms implemented}
\begin{columns}
\begin{column}{0.5\linewidth}
\begin{itemize} % [<+- | alert@+>]
\item \textbf{Model-Free}
\item \textbf{Off-Policy} with \textbf{Experience Replay Memory} of $(s_t, a_t, r_t, s_{t+1}, d_t)$ tuples
\item \textbf{Continuous} Action space
\item \textbf{Actor-Critic} approach
\end{itemize}
\end{column}
\begin{column}{0.5\linewidth}
\centering
\includegraphics[width=0.8\linewidth]{img/actor_critic.png}
\end{column}
\end{columns}
\footcite*{sutton2018reinforcement}
\end{frame}
\begin{frame}{Deep Deterministic Policy Gradient (DDPG)}
\centering
\onslide<5>{}
DDPG learns a Q-function and a policy. It uses off-policy data and the Bellman equation to learn the Q-function, and uses the Q-function to learn the policy.
\begin{itemize}[<+- | alert@+>]
\item \textbf{Policy}: Deterministic
\item \textbf{Exploration}: \begin{itemize}
\item \textbf{Ornstein–Uhlenbeck} process noise
\item Noise regulation with \textbf{$\epsilon$-decay function}
\end{itemize}
\end{itemize}
\onslide<5->{\textbf{\alert{\underline{Needs accurate hyper-parameters fine-tuning}}}}
\footcite*{lillicrap2015continuous}
\end{frame}
\begin{frame}{Soft Actor-Critic (SAC)}
\onslide<5>{}
SAC learns a policy and two Q-functions. It exploits \textbf{entropy regularization}. \note{The policy is trained to maximize a trade-off between expected return and \textbf{entropy}. Entropy is a measure of randomness in the policy.}
\centering
\begin{itemize}[<+- | alert@+>]
\item \textbf{Policy}: Stochastic
\item \textbf{Exploration}: \begin{itemize}[<+- | alert@+>]
\item \textbf{Temperature} Parameter
\item \textbf{Auto-tuning}
\end{itemize}
\end{itemize}
\onslide<5->{\textbf{\alert{\underline{Suitable for Real-World Experiments}}}}
\footcite*{haarnoja2018alg}
\end{frame}
\begin{frame}{Main Goals}
\begin{columns}
\begin{column}{0.4\linewidth}
\centering
\includegraphics[width=0.6\linewidth]{img/goal.png}
\end{column}
\begin{column}{0.6\linewidth}
\begin{enumerate}%[<+- | alert@+>]
\item{Implementation of Reinforcement Learning algorithms}
\begin{itemize}
\item{Preliminary experiments on a simplified environment}
\end{itemize}
\item{Building a \textbf{control system} binding every technology used.}
\begin{itemize}
\item{Formalise the problem as MDP}
\end{itemize}
\item \textbf{Real World} Reinforcement Learning experiments analysis.
\begin{itemize}
\item\textbf{No model} of the environment.
\item\textbf{No preliminary simulation} to tune hyper-parameters
\end{itemize}
\end{enumerate}
\end{column}
\end{columns}
\end{frame}
\sectiondark{Design of the control system}
\begin{frame}{Anki Cozmo - Not just a toy robot}
\begin{columns}
\begin{column}{0.5\linewidth}
\begin{center}
\includegraphics[height=0.5\linewidth]{img/cozmo.png}
\includegraphics[height=0.5\linewidth]{img/cozmo_inside.png}
\end{center}
\end{column}
\begin{column}{0.5\linewidth}
\textbf<1->{Why Anki Cozmo?}
\begin{itemize}%[<+- | alert@+>]
\item{Small and portable}
\item{30fps VGA Camera}
\item{Powerful mechanics}
\item{\textbf{Python SDK and interfaces}}
\end{itemize}
\end{column}
\end{columns}
\end{frame}
\begin{frame}{Track Design}
\centering
\begin{columns}
\begin{column}{0.5\linewidth}
\begin{center}
\includegraphics[height=0.6\textheight]{img/track.png}
\end{center}
\end{column}
\begin{column}{0.5\linewidth}
\textbf<1->{Features:}
\begin{itemize}%[<+- | alert@+>]
\item{Low-reflections}
\item{Scaled Reality}
\item{Reproducible}
\end{itemize}
\end{column}
\end{columns}
\end{frame}
\begin{frame}{MDP Formalisation - Observation}
\begin{columns}
\begin{column}{0.5\linewidth}
\centering
\only<1>{\includegraphics[height=0.6\textheight]{img/obs1.png}}
\only<2>{\includegraphics[height=0.6\textheight]{img/obs2.png}}
\end{column}
\begin{column}{0.5\linewidth}
\textbf{Configuration:}
\begin{itemize}%[<+- | alert@+>]
\item\textbf{Gray-scale image}
\item\textbf{Frame Rate}: $\sim 15fps$
\item\textbf{Raw image size}: 64$\times$64 pixels
\item<2>\textbf{Stack size}: 2
\end{itemize}
\end{column}
\end{columns}
\end{frame}
\begin{frame}{MDP Formalisation - Actions}
\includegraphics[width=1\textwidth]{img/array.png}
\begin{equation*}
s_t \in \{x \in \mathbb{R} \;|\; 0 \le x \le 1\} \;\;\;\;\;\;
w_t \in \{x \in \mathbb{R} \;|\; -1 \le x \le 1\}
\end{equation*}
\onslide<2->{
\begin{align*}
\text{\textbf{Maximum forward speed}} & \rightarrow s_{\text{forward\_max}} = 150\text{mm/s} \\
\text{\textbf{Maximum turning speed}} & \rightarrow s_{\text{turning\_max}} = 100\text{mm/s}
\end{align*}
}
\onslide<3->{
\begin{align*}
\text{\textbf{Left tread speed}} & \leftarrow s_t \cdot s_{\text{forward\_max}} + w_t \cdot s_{\text{turning\_max}} \\
\text{\textbf{Right tread speed}} & \leftarrow s_t \cdot s_{\text{forward\_max}} - w_t \cdot s_{\text{turning\_max}}
\end{align*}
}
\end{frame}
\begin{frame}{MDP Formalisation - Reward}
\begin{columns}
\begin{column}{0.4\linewidth}
\centering
\includegraphics[width=0.8\linewidth]{img/reward.png}
\end{column}
\begin{column}{0.6\linewidth}
\centering
\textbf{Distance Covered}
\textbf{Fixed timing between actions}: $T_t$ [s] $\leftarrow \frac{1}{15 \;\text{fps}}$
\textbf{Desired Speed}: $s_t$ [mm/s]
\onslide<2->{{\Large
\begin{equation*}\boldsymbol{
R_t = s_t \cdot T_t}
\end{equation*}}}
\vspace{-5mm}
\onslide<2->{
\begin{equation*}
\text{if}\; t\; \text{is terminal} \rightarrow R_t = 0
\end{equation*}}
\end{column}
\end{columns}
\end{frame}
\begin{frame}{Outline of the control system}
\centering
\only<1>{\includegraphics[height=0.9\textheight]{img/cozmosys0.png}}
\only<2>{\includegraphics[height=0.9\textheight]{img/cozmosys1.png}}
\only<3>{\includegraphics[height=0.9\textheight]{img/cozmosys2.png}}
\only<4>{\includegraphics[height=0.9\textheight]{img/cozmosys3.png}}
\only<5>{\includegraphics[height=0.9\textheight]{img/cozmosys4.png}}
\only<6>{\includegraphics[height=0.9\textheight]{img/cozmosys6.png}}
\end{frame}
\begin{frame}{System Features}
\begin{columns}
\begin{column}{0.4\linewidth}
\centering
\includegraphics[width=0.6\linewidth]{img/feature.png}
\end{column}
\begin{column}{0.6\linewidth}
\begin{itemize}[<+- | alert@+>]
\item Backup/Restore feature:
\begin{itemize}[<+- | alert@+>]
\item Episode restore
\item Checkpoint restore
\end{itemize}
\item Playground Recording
\end{itemize}
\end{column}
\end{columns}
\end{frame}
\sectiondark{Experimental methodology and results}
\begin{frame}{Hyper-parameters used}
\centering
TODO
\end{frame}
\begin{frame}{Convolutional Neural Network Architecture}
\centering
\includegraphics[width=0.9\textwidth]{img/cnn_cozmo.png}
\begin{itemize}%[<+- | alert@+>]
\item 3 Convolutional Layers: 16 features ($3\times3$), Stride 2, Padding 0
\item 2 Fully Connected Layer with hidden size = 256
\end{itemize}
\end{frame}
\begin{frame}{Pendulum-v0 DDPG Results}
\begin{figure}[H]
\centering
\begin{tikzpicture}
\begin{axis}[axis on top,
width=0.8\textwidth,
height=0.8\textheight,
xmin=5000,
xmax=50000,
ymax=0,
set layers=standard,
cycle list name=test,
grid=both,
grid style={solid,gray!30!white},
% axis lines=middle,
xlabel=Epoch,
ylabel style={align=center}, ylabel=Average Reward Value,
%legend style={at={(0.99,0.3)},anchor=east},
legend pos=south east,
% extra y ticks = {90},
% extra y tick style={grid=major, grid style={solid,green},y tick label style={
% /pgf/number format/.cd,precision=10
%}},
% x label style={at={(axis description cs:0.5,0)},anchor=north},
%y label style={at={(axis description cs:-0.1,.5)},rotate=90,anchor=south}
]
\addplot table[x=Step,y=Mean, col sep=comma] {plots/pendulum/ddpg_pendulum_test.csv};
%\addlegendentry{Mean Reward of last 100 episode};
\addplot [name path=upper,draw=none, forget plot] table[x=Step,y expr=\thisrow{Max}, col sep=comma] {plots/pendulum/ddpg_pendulum_test.csv};
\addplot [name path=lower,draw=none, forget plot] table[x=Step,y expr=\thisrow{Min}, col sep=comma] {plots/pendulum/ddpg_pendulum_test.csv};
\addplot [fill=test_color_3] fill between[of=upper and lower];
\addplot [name path=upper1,draw=none, forget plot] table[x=Step,y expr=\thisrow{Mean}+\thisrow{StDev}, col sep=comma] {plots/pendulum/ddpg_pendulum_test.csv};
\addplot [name path=lower1,draw=none, forget plot] table[x=Step,y expr=\thisrow{Mean}-\thisrow{StDev}, col sep=comma] {plots/pendulum/ddpg_pendulum_test.csv};
\addplot [fill=test_color_2] fill between[of=upper1 and lower1];
\addlegendentry{Mean $\mu$};
\addlegendentry{Area $[min, max]$};
\addlegendentry{Area $[\mu-\sigma, \mu+\sigma]$};
\end{axis}
\end{tikzpicture}
\caption[DDPG Pendulum-v0 Test Average Reward Plot]{DDPG Pendulum-v0 Test Average Reward Plot.}
\label{fig:ddpg_pendulum_test_reward}
\end{figure}
\note{
The graph reports mean, standard deviation range and min-max range of the average reward obtained from 10 test episodes every 5000 epochs.
They are calculated on 10 runs with different seeds.}
\end{frame}
\begin{frame}{Pendulum-v0 SAC Results}
\begin{figure}[H]
\centering
\begin{tikzpicture}
\begin{axis}[axis on top,
width=0.8\textwidth,
height=0.8\textheight,
xmin=5000,
xmax=50000,
ymax=0,
set layers=standard,
cycle list name=test,
grid=both,
grid style={solid,gray!30!white},
% axis lines=middle,
xlabel=Epoch,
ylabel style={align=center}, ylabel=Average Reward Value,
%legend style={at={(0.99,0.3)},anchor=east},
legend pos=south east,
% extra y ticks = {90},
% extra y tick style={grid=major, grid style={solid,green},y tick label style={
% /pgf/number format/.cd,precision=10
%}},
% x label style={at={(axis description cs:0.5,0)},anchor=north},
%y label style={at={(axis description cs:-0.1,.5)},rotate=90,anchor=south}
]
\addplot table[x=Step,y=Mean, col sep=comma] {plots/pendulum/sac_pendulum_test.csv};
%\addlegendentry{Mean Reward of last 100 episode};
\addplot [name path=upper,draw=none, forget plot] table[x=Step,y expr=\thisrow{Max}, col sep=comma] {plots/pendulum/sac_pendulum_test.csv};
\addplot [name path=lower,draw=none, forget plot] table[x=Step,y expr=\thisrow{Min}, col sep=comma] {plots/pendulum/sac_pendulum_test.csv};
\addplot [fill=test_color_3] fill between[of=upper and lower];
\addplot [name path=upper1,draw=none, forget plot] table[x=Step,y expr=\thisrow{Mean}+\thisrow{StDev}, col sep=comma] {plots/pendulum/sac_pendulum_test.csv};
\addplot [name path=lower1,draw=none, forget plot] table[x=Step,y expr=\thisrow{Mean}-\thisrow{StDev}, col sep=comma] {plots/pendulum/sac_pendulum_test.csv};
\addplot [fill=test_color_2] fill between[of=upper1 and lower1];
\addlegendentry{Mean $\mu$};
\addlegendentry{Area $[min, max]$};
\addlegendentry{Area $[\mu-\sigma, \mu+\sigma]$};
\end{axis}
\end{tikzpicture}
\caption[SAC Pendulum-v0 Test Average Reward Plot]{SAC Pendulum-v0 Test Average Reward Plot.}
\label{fig:sac_pendulum_test_reward}
\end{figure}
\note{
The graph reports mean, standard deviation range and min-max range of the average reward obtained from 10 test episodes every 5000 epochs.
They are calculated on 10 runs with different seeds.}
\end{frame}
\begin{frame}{CozmoDriver-v0 SAC Training}
\centering
\begin{figure}[!h]
\centering
\begin{tikzpicture}
\begin{axis}[axis on top,
enlargelimits=false,
width=0.8\textwidth,
height=0.8\textheight,
xtick distance=500,
set layers=standard,
cycle list name=train,
grid=both,
grid style={solid,gray!30!white},
% axis lines=middle,
xlabel=Episode,
ylabel style={align=center}, ylabel=Reward (mm),
%legend style={at={(0.99,0.3)},anchor=east},
legend pos=north west,
% extra y ticks = {90},
% extra y tick style={grid=major, grid style={solid,green},y tick label style={
% /pgf/number format/.cd,precision=10
%}},
% x label style={at={(axis description cs:0.5,0)},anchor=north},
%y label style={at={(axis description cs:-0.1,.5)},rotate=90,anchor=south}
]
\addplot table[x=Step,y=Value, col sep=comma] {plots/cozmo/sac_cozmo_train.csv};
%\addlegendentry{Mean Reward of last 100 episode};
\addlegendentry{Reward};
\end{axis}
\end{tikzpicture}
\caption[SAC CozmoDriver-v0 Reward Plot]{SAC CozmoDriver-v0 Reward Plot.}
\label{fig:sac_cozmo_reward}
\end{figure}
\end{frame}
\begin{frame}{CozmoDriver-v0 SAC Training 100 average}
\centering
\begin{figure}[!h]
\centering
\begin{tikzpicture}
\begin{axis}[axis on top,
enlargelimits=false,
width=0.8\textwidth,
height=0.8\textheight,
ymin=0,
set layers=standard,
xtick distance=500,
cycle list name=train,
grid=both,
grid style={solid,gray!30!white},
% axis lines=middle,
xlabel=Episode,
ylabel style={align=center}, ylabel=Average Reward (mm),
%legend style={at={(0.99,0.3)},anchor=east},
legend pos=south east,
% extra y ticks = {90},
% extra y tick style={grid=major, grid style={solid,green},y tick label style={
% /pgf/number format/.cd,precision=10
%}},
% x label style={at={(axis description cs:0.5,0)},anchor=north},
%y label style={at={(axis description cs:-0.1,.5)},rotate=90,anchor=south}
]
\addplot table[x=Step,y=Value, col sep=comma] {plots/cozmo/sac_cozmo_last100.csv};
%\addlegendentry{Mean Reward of last 100 episode};
\addlegendentry{Last 100 average reward $\mu$};
\end{axis}
\end{tikzpicture}
\caption[SAC CozmoDriver-v0 Last 100 Episode Average Reward Plot]{SAC CozmoDriver-v0 Last 100 Episode Average Reward Plot.}
\label{fig:sac_cozmo_last100}
\end{figure}
\end{frame}
\begin{frame}{CozmoDriver-v0 SAC Temperature}
\centering
\begin{figure}[!h]
\centering
\begin{tikzpicture}
\begin{axis}[axis on top,
width=0.8\textwidth,
height=0.8\textheight,
enlargelimits=false,
set layers=standard,
cycle list name=train,
ymin=0,
scaled x ticks=true,
grid=both,
grid style={solid,gray!30!white},
% axis lines=middle,
xlabel=Epoch,
ylabel style={align=center}, ylabel=Temperature Value ($\alpha$),
%legend style={at={(0.99,0.3)},anchor=east},
legend pos=south east,
% extra y ticks = {90},
% extra y tick style={grid=major, grid style={solid,green},y tick label style={
% /pgf/number format/.cd,precision=10
%}},
% x label style={at={(axis description cs:0.5,0)},anchor=north},
%y label style={at={(axis description cs:-0.1,.5)},rotate=90,anchor=south}
]
\addplot table[x=Step,y=Value, col sep=comma] {plots/cozmo/sac_cozmo_temperature.csv};
%\addlegendentry{Mean Reward of last 100 episode};
\addlegendentry{Temperature $\alpha$};
\end{axis}
\end{tikzpicture}
\caption[SAC CozmoDriver-v0 auto-tuned temperature]{SAC Pendulum-v0 auto-tuned temperature.}
\label{fig:sac_cozmo_temperature}
\end{figure}
\end{frame}
\begin{frame}{CozmoDriver-v0 SAC Test}
%%%%%%%%%%%%%%%%%%%%%%
%
% TEST PLOTS
%
%%%%%%%%%%%%%%%%%%%%%%
\begin{figure}[!h]
\centering
\begin{tikzpicture}
\begin{axis}[axis on top,
scaled ticks=true,
enlargelimits=false,
width=0.8\textwidth,
height=0.8\textheight,
ymin=0,
set layers=standard,
cycle list name=test,
grid=both,
grid style={solid,gray!30!white},
% axis lines=middle,
xlabel=Epoch,
ylabel style={align=center}, ylabel=Reward (mm),
%legend style={at={(0.99,0.3)},anchor=east},
legend pos=north west,
% extra y ticks = {90},
% extra y tick style={grid=major, grid style={solid,green},y tick label style={
% /pgf/number format/.cd,precision=10
%}},
% x label style={at={(axis description cs:0.5,0)},anchor=north},
%y label style={at={(axis description cs:-0.1,.5)},rotate=90,anchor=south}
]
\addplot table[x=Step,y=Mean, col sep=comma] {plots/cozmo/sac_cozmo_test.csv};
%\addlegendentry{Mean Reward of last 100 episode};
\addplot [name path=upper,draw=none, forget plot] table[x=Step,y expr=\thisrow{Max}, col sep=comma] {plots/cozmo/sac_cozmo_test.csv};
\addplot [name path=lower,draw=none, forget plot] table[x=Step,y expr=\thisrow{Min}, col sep=comma] {plots/cozmo/sac_cozmo_test.csv};
\addplot [fill=test_color_3] fill between[of=upper and lower];
\addplot [name path=upper1,draw=none, forget plot] table[x=Step,y expr=\thisrow{Mean}+\thisrow{StDev}, col sep=comma] {plots/cozmo/sac_cozmo_test.csv};
\addplot [name path=lower1,draw=none, forget plot] table[x=Step,y expr=\thisrow{Mean}-\thisrow{StDev}, col sep=comma] {plots/cozmo/sac_cozmo_test.csv};
\addplot [fill=test_color_2] fill between[of=upper1 and lower1];
\addlegendentry{Mean $\mu$};
\addlegendentry{Area $[min, max]$};
\addlegendentry{Area $[\mu-\sigma, \mu+\sigma]$};
\end{axis}
\end{tikzpicture}
\caption[SAC CozmoDriver-v0 Test Reward Plot]{SAC CozmoDriver-v0 Test Reward Plot.}
\label{fig:sac_cozmo_test}
\end{figure}
\end{frame}
\begin{frame}{CozmoDriver-v0 SAC Test Mean}
%%%%%%%%%%%%%%%%%%%%%%
%
% TEST PLOTS
%
%%%%%%%%%%%%%%%%%%%%%%
\begin{figure}[!h]
\centering
\begin{tikzpicture}
\begin{axis}[axis on top,
scaled ticks=true,
enlargelimits=false,
width=0.8\textwidth,
height=0.8\textheight,
ymin=0,
set layers=standard,
cycle list name=test,
grid=both,
grid style={solid,gray!30!white},
% axis lines=middle,
xlabel=Epoch,
ylabel style={align=center}, ylabel=Reward (mm),
%legend style={at={(0.99,0.3)},anchor=east},
legend pos=north west,
% extra y ticks = {90},
% extra y tick style={grid=major, grid style={solid,green},y tick label style={
% /pgf/number format/.cd,precision=10
%}},
% x label style={at={(axis description cs:0.5,0)},anchor=north},
%y label style={at={(axis description cs:-0.1,.5)},rotate=90,anchor=south}
]
\addplot table[x=Step,y=Mean, col sep=comma] {plots/cozmo/sac_cozmo_test.csv};
%\addlegendentry{Mean Reward of last 100 episode};
\addlegendentry{Mean $\mu$};
\end{axis}
\end{tikzpicture}
\caption[SAC CozmoDriver-v0 Test Average Reward Plot]{SAC CozmoDriver-v0 Test Average Reward Plot.}
\label{fig:sac_cozmo_test_mean}
\end{figure}
\end{frame}
\begin{frame}{Episode Showcase - 1}
\centering
%\href{run:/usr/bin/vlc ./video/epi2748.mp4}{Start Video}
\animategraphics[loop,controls,width=0.4\linewidth]{15}{video/try/epi1-}{0}{251}
\end{frame}
\begin{frame}{Episode Showcase - 2}
\centering
%\href{run:/usr/bin/vlc ./video/epi2748.mp4}{Start Video}
\animategraphics[loop,controls,width=0.4\linewidth]{15}{video/try/epi2-}{0}{255}
\end{frame}
\sectiondark{Conclusions and future work}
\begin{frame}{Conclusions}
\begin{columns}
\begin{column}{0.4\linewidth}
\centering