Neural Network Architectures for Time-Series
So Far
2
Robocup 2011
3
Robocup 2011 Final
Sequence Matters
4
What is a Sequence ?
5
Sequence Modeling
6
(Deterministic) Time Series Data
7
(Stochastic) Time Series Data
8
Dealing with Non-Stationarity
9
Dealing with Non-Stationarity
10
Dealing with Non-Stationarity
11
Dealing with Non-Stationarity
12
Why Time-Series Data
13
Time-series Data
14
Supervised and Unsupervised Learning for Time-series
15
Markov Process
16
Sequential Processes
17
Almost impossible to compute !
Markov Chain
18
State Transition Matrix
19
State Transition Matrix
20
s1
s3
s2
1/2
1/2
1/3
2/3
1
Example: MC Episodes
21
s1
s3
s2
1/2
1/2
1/3
2/3
1
Hidden Markov Model
22
Hidden Markov Models
23
Hidden Markov Model (HMM)
24
Kalman Filter
25
Kalman Filter
26
Kalman Filter
27
Neural Network Architectures for Time-Series:�Recurrent Neural Network (RNN)
Most slides from CMU 11-785 Intro. to Deep Learning by Prof. Bhiksha Raj
Recurrent NN (RNN)
29
Yn-1
Yn
Yn+1
On+1
Classification
Recurrent NN (RNN)
30
Yn-1
Yn
Yn+1
Xn+1
Xn
Xn-1
On+1
Learned latent state
Classification based on states
U
U
U
Recurrent NN (RNN)
31
Yn-1
Yn
Yn+1
Xn+1
Xn
Xn-1
On+1
…
Learned latent state and its dynamics
Classification based on states
W
U
W
W
U
U
Recurrent NN
32
Representation Shortcut
33
CMU 11-785 Intro. to Deep Learning by Prof. Bhiksha Raj
Representation Shortcut
34
CMU 11-785 Intro. to Deep Learning by Prof. Bhiksha Raj
Representation Shortcut
35
CMU 11-785 Intro. to Deep Learning by Prof. Bhiksha Raj
Sliding Predictor
36
CMU 11-785 Intro. to Deep Learning by Prof. Bhiksha Raj
Sliding Predictor
37
CMU 11-785 Intro. to Deep Learning by Prof. Bhiksha Raj
Sliding Predictor
38
CMU 11-785 Intro. to Deep Learning by Prof. Bhiksha Raj
Sliding Predictor
39
CMU 11-785 Intro. to Deep Learning by Prof. Bhiksha Raj
Finite-Response Model
40
CMU 11-785 Intro. to Deep Learning by Prof. Bhiksha Raj
Finite-Response Model
41
CMU 11-785 Intro. to Deep Learning by Prof. Bhiksha Raj
In Theory, We Want Infinite Memory
42
CMU 11-785 Intro. to Deep Learning by Prof. Bhiksha Raj
Infinite Response Systems
43
CMU 11-785 Intro. to Deep Learning by Prof. Bhiksha Raj
Autoregression
44
CMU 11-785 Intro. to Deep Learning by Prof. Bhiksha Raj
Autoregression
45
CMU 11-785 Intro. to Deep Learning by Prof. Bhiksha Raj
Autoregression
46
CMU 11-785 Intro. to Deep Learning by Prof. Bhiksha Raj
Autoregression
47
CMU 11-785 Intro. to Deep Learning by Prof. Bhiksha Raj
Autoregression
48
CMU 11-785 Intro. to Deep Learning by Prof. Bhiksha Raj
Autoregression
49
CMU 11-785 Intro. to Deep Learning by Prof. Bhiksha Raj
Autoregression
50
CMU 11-785 Intro. to Deep Learning by Prof. Bhiksha Raj
Autoregression
51
CMU 11-785 Intro. to Deep Learning by Prof. Bhiksha Raj
More Complete Representation
52
CMU 11-785 Intro. to Deep Learning by Prof. Bhiksha Raj
An Alternate Model for Infinite Response Systems
53
CMU 11-785 Intro. to Deep Learning by Prof. Bhiksha Raj
Single Hidden Layer RNN (Simplest State-Space Model)
54
CMU 11-785 Intro. to Deep Learning by Prof. Bhiksha Raj
Multiple Recurrent Layer RNN
55
CMU 11-785 Intro. to Deep Learning by Prof. Bhiksha Raj
The Folded Version of RNN
56
CMU 11-785 Intro. to Deep Learning by Prof. Bhiksha Raj
The Folded Version of RNN
57
CMU 11-785 Intro. to Deep Learning by Prof. Bhiksha Raj
Recurrent Neural Network
58
CMU 11-785 Intro. to Deep Learning by Prof. Bhiksha Raj
RNN Applications
59
“Vanilla” Neural Network
60
http://karpathy.github.io/2015/05/21/rnn-effectiveness/
Recurrent Neural Network: Process Sequences
61
http://karpathy.github.io/2015/05/21/rnn-effectiveness/
Recurrent Neural Network: Process Sequences
62
http://karpathy.github.io/2015/05/21/rnn-effectiveness/
Recurrent Neural Network: Process Sequences
63
http://karpathy.github.io/2015/05/21/rnn-effectiveness/
Recurrent Neural Network: Process Sequences
64
e.g. Video classification on frame level
http://karpathy.github.io/2015/05/21/rnn-effectiveness/
Recurrent Neural Networks
65
Unrolling the Recurrence
66
Unrolling the Recurrence
67
Unrolling the Recurrence
68
Unrolling the Recurrence
69
Unrolling the Recurrence
70
Unrolling the Recurrence
71
Unrolling the Recurrence
72
Unrolling the Recurrence
73
Unrolling the Recurrence
74
Unrolling the Recurrence
75
Recurrent Connections
76
Recurrent Connections
77
Feedforward Propagation
78
How to Train RNN
79
Backward Propagation
80
Long Short-Term Memory (LSTM)
81
Long Short-Term Memory (LSTM)
82
Example
83
https://colah.github.io/posts/2015-08-Understanding-LSTMs/
Long Short-Term Memory (LSTM)
84
https://colah.github.io/posts/2015-08-Understanding-LSTMs/
Long Short-Term Memory (LSTM)
85
https://colah.github.io/posts/2015-08-Understanding-LSTMs/
Element-by-Element
86
3 |
4 |
5 |
6 |
7 |
8 |
3+6 |
4+7 |
5+8 |
9 |
11 |
13 |
3 |
4 |
5 |
6 |
7 |
8 |
3x6 |
4x7 |
5x8 |
18 |
28 |
40 |
Element-by-Element Addition
Element-by-Element Multiplication
Gating
87
3 |
4 |
5 |
1.0 |
0.5 |
0.0 |
3x1.0 |
4x0.5 |
5x0.0 |
3.0 |
2.0 |
0.0 |
signal
On/Off
gating
Long Short-Term Memory (LSTM)
88
https://elham-khanche.github.io/blog/RNNs_and_LSTM/
Long Short-Term Memory (LSTM)
89
https://elham-khanche.github.io/blog/RNNs_and_LSTM/
Long Short-Term Memory (LSTM)
90
https://elham-khanche.github.io/blog/RNNs_and_LSTM/
Long Short-Term Memory (LSTM)
91
https://elham-khanche.github.io/blog/RNNs_and_LSTM/
Long Short-Term Memory (LSTM)
92
https://elham-khanche.github.io/blog/RNNs_and_LSTM/
Long Short-Term Memory (LSTM)
93
https://elham-khanche.github.io/blog/RNNs_and_LSTM/
Long Short-Term Memory (LSTM)
94
https://elham-khanche.github.io/blog/RNNs_and_LSTM/
Long Short-Term Memory
95
Long Short-Term Memory
96
Long Short-Term Memory
97
Long Short-Term Memory
98
Long Short-Term Memory
99
Long Short-Term Memory
100
Weakness of RNN and LSTM
101
LSTM Implementation
102
Time Series Data and LSTM
103
LSTM for Classification
104
LSTM for Prediction
105
LSTM with TensorFlow
106
LSTM Structure
107
Build a Model
108
Cost, Initializer and Optimizer
109
Prediction Example
110
Prediction Example
111