ME 5990: Introduction to Machine Learning
�
Recurrent Models Discussion
Slide Based on:
Stanford CS231n: Lecture 10 RNN�https://cs231n.stanford.edu/slides/2022/lecture_10_ruohan.pdf
LSTM: https://colah.github.io/posts/2015-08-Understanding-LSTMs/
Outline
Markov Chain
Andrey Andreyevich Markov (1856–1922)
Russian Mathematician
Professor, Saint Petersburg State University
Thomas Bayes (1701- 1761)
English statistician, philosopher and Presbyterian minister
One known mathematics publication
Bayes’ Theorem was presented after his death by Richard Price
Richard Price (1723-1791)
British moral philosopher, nonconformist preacher and mathematician
Formally described Bayes’ theorem Considered Bayes’ theorem helped prove the existence of God
Image from Wikipedia.org
Markov Chain 101: State Transition
Previous state
Next state
Previous Next | A | B |
A | 0.3 | 0.7 |
B | 0.8 | 0.2 |
Markov Chain: forward propagation
A
B
A: Rainy 0.3
B: Sunny 0.7
Day 1- Rainy: 0.3*0.7
Day 1- Sunny: 0.7*0.2
Day 1
Day 2
Day 3
…
Markov Chain: forward propagation
A
B
A: Rainy 0.3
B: Sunny 0.7
Day 1- Rainy: 0.3*0.3
Day 1- Sunny: 0.7*0.8
Day 1
Day 2
Day 3
…
Markov Chain: forward propagation
A
A
A: Rainy 0.3
B: Sunny 0.7
Day 1- Rainy: 0.3*0.3
Day 1- Sunny: 0.7*0.8
Day 1
Day 2
Day 3
…
Hidden Markov model
X0
X1
X2
u0
u1
u2
z0
z1
z2
Previous | Rain | Sunny |
x=Rain, u =Rain | 0.8 | 0.2 |
x=Rain, u =sun | 0.4 | 0.6 |
x= Sun, u= Rain | 0.7 | 0.3 |
X= Sun, u= sun | 0.6 | 0.4 |
State | Cat Sleep | Cat Outdoor |
Rain | 0.8 | 0.2 |
Sun | 0.2 | 0.8 |
…
Xt
zt
ut
Hidden Markov Model
Problem formulation
Hidden Markov Model
Previous | X=R | X=S |
x=R, u =R | 0.8 | 0.2 |
x=R, u =S | 0.4 | 0.6 |
x= S, u= R | 0.7 | 0.3 |
X= S, u= S | 0.6 | 0.4 |
State | Sleep (L) | Out (O) |
Rain | 0.8 | 0.2 |
Sun | 0.2 | 0.8 |
X0
X1
X2
u0
u1
u2
z0
z1
z2
…
Xt
zt
ut
Change of story for robotics
X0
X1
X2
u0
u1
u2
z0
z1
z2
…
Xt
zt
ut
Extended Kalman Filter
Red: expecting position from the command (open-loop); Blue: actual position of the robot; Green: estimated position after EKF, Green circle: EKF probability distribution�Cayan and dots: land marks for observation.
https://www.researchgate.net/figure/The-Extended-Kalman-Filter-EKF-in-action-a-Demo-using-the-EKF-algotithm-for-robot_fig2_348640995
Recurrent Neural Network
Example: word generation
Example: word generation
Example: word generation
Example: word generation
Example: word generation
Example: word generation
Example: word generation
Example: word generation
Example: word generation
Example: image captioning
Example: image captioning
Example: image captioning
Example: image captioning
Example: image captioning
RNN variation
RNN variation
Long-short term memory
Long-short term memory
Long-short term memory
LSTM
LSTM
LSTM
Summary