Artificial Intelligence & Sequential Decision Problems

Size: px
Start display at page:

Download "Artificial Intelligence & Sequential Decision Problems"

Transcription

1 Artificial Intelligence & Sequential Decision Problems (CIV Machine Learning for Civil Engineers) Professor: James-A. Goulet Département des génies civil, géologique et des mines Chapter 15 Goulet (2018). Probabilistic Machine Learning for Civil Engineers. Chapter 17 Russell, S. and Norvig, P. (1995). Artificial Intelligence, A modern approach. Prentice-Hall. Bertsekas, D.P. (1995). Dynamic programming and optimal control, volume 1&2. Athena Scientific Belmont, MA. Artificial Intelligence & Sequential Decision Problems V1.2 Machine Learning for Civil Engineers 1 / 33

2 Intro Nomenclature Markov Decision Process, MDP Partially Observable MDP Q-Learning Summary Context Artificial intelligence - AI Combine the cognitive human reasoning with the analysis capacity of computers Level 1 - Limited AI Beyond human capacity in a specific taks Behind limited AI: Machine learning Behind machine learning: Probability theory / Decision Theory / Linear Algebra / Optimization [Google images] Artificial Intelligence & Sequential Decision Problems V1.2 Machine Learning for Civil Engineers Polytechnique Montre al 2 / 33

3 AI AI in every day life Behind AI applications, there is an algorithm that mimics a rational agent that maximizes its expected utility [Google images] Artificial Intelligence & Sequential Decision Problems V1.2 Machine Learning for Civil Engineers 3 / 33

4 AI AI in every day life Behind AI applications, there is an algorithm that mimics a rational agent that maximizes its expected utility [Google images] Artificial Intelligence & Sequential Decision Problems V1.2 Machine Learning for Civil Engineers 3 / 33

5 AI AI in every day life Behind AI applications, there is an algorithm that mimics a rational agent that maximizes its expected utility [Google images] Artificial Intelligence & Sequential Decision Problems V1.2 Machine Learning for Civil Engineers 3 / 33

6 AI AI in every day life Behind AI applications, there is an algorithm that mimics a rational agent that maximizes its expected utility [Google images] Artificial Intelligence & Sequential Decision Problems V1.2 Machine Learning for Civil Engineers 3 / 33

7 AI Potential applications of AI in civil engineering Anomaly detection Input data: Real-time monitoring of a structure behavior AI role: Decides in real-time whether or not to alert an engineer [Google images] Artificial Intelligence & Sequential Decision Problems V1.2 Machine Learning for Civil Engineers 4 / 33

8 AI Potential applications of AI in civil engineering Planning of infrastructure maintenance and replacement Input data: Bi-annual inspection reports AI role: Identifies in the optimal maintenance/replacement policies in order to maximizes the benefits of investments [Google images] Artificial Intelligence & Sequential Decision Problems V1.2 Machine Learning for Civil Engineers 4 / 33

9 AI Potential applications of AI in civil engineering Post-earthquake rapid safety assessment d=0 d=1 d=2 d=3 d=4 d=5 Input data: Post-earthquake inspection reports & real-time monitoring data f X D (x d) P(D S) x S={4,5} S={2,3} S={0,1} AI role: Identifies in real-time buildings that are safe v.s. those that must be evacuated [Google images] Artificial Intelligence & Sequential Decision Problems V1.2 Machine Learning for Civil Engineers 4 / 33

10 AI Potential applications of AI in civil engineering In-situ observation Site to be decontaminated Contaminated regions Characterization of contaminated sites Input data: In-situ soil contaminant concentration AI role: Identifies in real-time in the optimal site investigation path in order to minimize characterization costs [Google images] Artificial Intelligence & Sequential Decision Problems V1.2 Machine Learning for Civil Engineers 4 / 33

11 Intro Nomenclature Markov Decision Process, MDP Partially Observable MDP Q-Learning Summary AI Potential applications of AI in civil engineering Infested trees removal Input data: Time-history of trees attacks by the Emerald ash borer AI role: Identifies in real-time the optimal tree removal policy given the infestation dynamics [Google images] Artificial Intelligence & Sequential Decision Problems V1.2 Machine Learning for Civil Engineers Polytechnique Montre al 4 / 33

12 Intro Nomenclature Markov Decision Process, MDP Partially Observable MDP Q-Learning Summary Module #10 Outline Topics organization µ σ 0.4 Model driven methods n Decision Making ( FX(x) x 2 µ σ µ µ+σ x 2 4 Introduction Bayesian Estimation p(b A)p(A) p(b) p(a B) = s = MCMC sampling & Newton Regression θ µ µ+σ f X(x) 2 Probability distributions θ1 5 θ θ1 [ ] cl+ d=0 Classification d=1 d=2 d=3 d=4 d= S={4,5} 1 x 0.6 S={2,3} S={0,1} State-space model for time-series 2 8 Model Calibration y2 Data-driven methods 1 Revision probability & linear algebra Patogens [ppm] Machine Learning Basics ( fx D(x d) Probability theory P(D S) Intro Nomenclature Markov Decision Process, MDP Partially Observable MDP Q-Learning 2 0 y y y1 2 E[U] = 3.7 E[U] = Decision Theory 10 AI & Sequential decision problems Artificial Intelligence & Sequential Decision Problems V1.2 Machine Learning for Civil Engineers Polytechnique Montre al 5 / 33

13 Section Outline Nomenclature 2.1 Variables 2.2 Example #1 - Infrastructure Maintenance Planning Artificial Intelligence & Sequential Decision Problems V1.2 Machine Learning for Civil Engineers 6 / 33

14 Variables AI sequential decision problem - Nomenclature States: s } {{ R } or s j S = {s 1, s 2,, s S } }{{} continuous discrete Actions: a i A = {a 1, a 2,, a A } Transition model: Reward: p(s s j, a i ) = Pr(s = s k s j, a i ), k = 1 : S R(s j ) R Policy: π = {a 1, a 2,, a S } Artificial Intelligence & Sequential Decision Problems V1.2 Machine Learning for Civil Engineers 7 / 33

15 Example #1 - Infrastructure Maintenance Planning Infrastructure Maintenance - Definitions Bridges are inspected every two years: 100% 80% 60% s S = 40% 20% 0% s = 100% s = 80% s = 60% s = 40% s = 20% s = 0% Time t Data {s 1, s 2,, s T } 1 {s 1, s 2,, s T } 2 D =. {s 1, s 2,, s T } N N T [Google images] Artificial Intelligence & Sequential Decision Problems V1.2 Machine Learning for Civil Engineers 8 / 33

16 Example #1 - Infrastructure Maintenance Planning Infrastructure Maintenance - Definitions Bridges are inspected every two years: 100% 80% 60% s S = 40% 20% 0% s = 100% s = 80% s = 60% s = 40% s = 20% s = 0% Time t Data {s 1, s 2,, s T } 1 {s 1, s 2,, s T } 2 D =. {s 1, s 2,, s T } N N T [Google images] Artificial Intelligence & Sequential Decision Problems V1.2 Machine Learning for Civil Engineers 8 / 33

17 Example #1 - Infrastructure Maintenance Planning Infrastructure Maintenance - Definitions Bridges are inspected every two years: 100% 80% 60% s S = 40% 20% 0% s = 100% s = 80% s = 60% s = 40% s = 20% s = 0% Time t Data {s 1, s 2,, s T } 1 {s 1, s 2,, s T } 2 D =. {s 1, s 2,, s T } N N T [Google images] Artificial Intelligence & Sequential Decision Problems V1.2 Machine Learning for Civil Engineers 8 / 33

18 Example #1 - Infrastructure Maintenance Planning Infrastructure Maintenance - Actions a A = {do nothing, maintain, replace} Artificial Intelligence & Sequential Decision Problems V1.2 Machine Learning for Civil Engineers 9 / 33

19 S Example #1 - Infrastructure Maintenance Planning Infrastructure Maintenance - Model Employ the dataset D to build a Markovian model p(s t+1 s t, a) p(s t+1 s 1:t, a) Pr(s t+1 = k s t = i, a = do nothing) #{s t = i, s t+1 = k} #{s t = i} p(s t+1 s t = 1, a = do nothing) = Artificial Intelligence & Sequential Decision Problems V1.2 Machine Learning for Civil Engineers 10 / 33

20 S Example #1 - Infrastructure Maintenance Planning Infrastructure Maintenance - Model Employ the dataset D to build a Markovian model p(s t+1 s t, a) p(s t+1 s 1:t, a) Pr(s t+1 = k s t = i, a = do nothing) #{s t = i, s t+1 = k} #{s t = i} p(s t+1 s t = 2, a = do nothing) = Artificial Intelligence & Sequential Decision Problems V1.2 Machine Learning for Civil Engineers 10 / 33

21 Example #1 - Infrastructure Maintenance Planning Infrastructure Maintenance - Model Employ the dataset D to build a Markovian model p(s t+1 s t, a) p(s t+1 s 1:t, a) Pr(s t+1 = k s t = i, a = do nothing) #{s t = i, s t+1 = k} #{s t = i} p(s t+1 s t, a = do nothing) = S S Artificial Intelligence & Sequential Decision Problems V1.2 Machine Learning for Civil Engineers 10 / 33

22 Example #1 - Infrastructure Maintenance Planning Infrastructure Maintenance - Model (cont.) p(s t+1 s t, a = maintain) = p(s t+1 s t, a = replace) = S S S S Artificial Intelligence & Sequential Decision Problems V1.2 Machine Learning for Civil Engineers 11 / 33

23 Example #1 - Infrastructure Maintenance Planning Infrastructure Maintenance - Rewards Rewards for being in a state s or for taking an action a { AATF }} { R(S) = AADTF10 5 users 365 days 3$/user capacity(s) = {109.5, 109.5, 109.5, 98.6, 82.1, 0}M$ capacity(s) = { R(A) = { s=100% 80% 60% 40% 20% 0% {}}{{}}{{}}{{}}{{}}{{}}{ 1, 1, 1, 0.90, 0.75, 0 } do nothing {}}{ 0, repair {}}{ 5, replace {}}{ 20 }M$ Artificial Intelligence & Sequential Decision Problems V1.2 Machine Learning for Civil Engineers 12 / 33

24 Example #1 - Infrastructure Maintenance Planning Illustrative example - Optimal actions Given that the transition model is Markovian, the goal of the Markovian Decision Process is to identify the optimal actions a to be taken for each state s so that a policy π (S) = {a 1, a 2,, a S } Artificial Intelligence & Sequential Decision Problems V1.2 Machine Learning for Civil Engineers 13 / 33

25 Section Outline Markov Decision Process, MDP 3.1 Utility over time 3.2 Value Iteration 3.3 Policy Iteration Artificial Intelligence & Sequential Decision Problems V1.2 Machine Learning for Civil Engineers 14 / 33

26 Utility over time Planning horizon Finite planning horizon: The rewards and utilities are considered over a fixed period of time. The optimal policy is non-stationary; π t (s) depends on t. Infinite planning horizon: The rewards and utilities are considered over an infinite period. The optimal policy is stationary; π (s) does not depend on t. We will only study problems with an infinite planning horizon Artificial Intelligence & Sequential Decision Problems V1.2 Machine Learning for Civil Engineers 15 / 33

27 Utility over time Utility for an infinite planning horizon For a discount factor γ (0, 1[, the discounted sum of rewards over an infinite planning horizon is finite (note: interest rate = 1 γ 1) U(s t=0, s t=1,, s t= ) = R(s 0 ) + γr(s 1 ) + γ 2 R(s 2 ) + = γ t R(s t ) t=0 max R(s) s S 1 γ! The issue is that we do not know s 1, s 2, we only know p(s t+1 s t, a) p(s s, a) }{{} transition model Artificial Intelligence & Sequential Decision Problems V1.2 Machine Learning for Civil Engineers 16 / 33

28 Utility over time Expected utility for an infinite planning horizon Given p(s s, a) and R(s), we can compute the expected utility Expected utility [ ] U(s, π) E[U(s, π)] = R(s) + E γ t R(S t ) Optimal policy π (s) = arg max a A t=1 p(s s, a) U(s, π )! π appears on both sides of the equality iterative resolution Artificial Intelligence & Sequential Decision Problems V1.2 Machine Learning for Civil Engineers 17 / 33

29 Value Iteration Utility for an infinite planning horizon - Bellman Bellman equation: The utility of a state is the immediate reward for that state plus the expected discounted utility of the next state given that the optimal action is taken U(s) = R(s) + max a A p(s s, a) (R(a) + γu(s )) s S Bellman update & Value iteration U (i+1) (s) R(s) + max a A p(s s, a) (R(a) + γu (i) (s )) s S Artificial Intelligence & Sequential Decision Problems V1.2 Machine Learning for Civil Engineers 18 / 33

30 Value Iteration Algorithm 1: Value iteration 1 define: states s S, actions a A; 2 define: transition model p(s s, a); 3 define: rewards R(s), R(a), discount γ, convergence tol. ɛ; 4 initialize: U (s) = U(s) = 0; 5 while U(s) = 0 or U (s) U(s) ɛ do 6 U(s) U (s); 7 for s S do 8 for a A do 9 U(s, a) = s S p(s s, a) (R(a) + γu(s )); 10 π (s) a = arg max U(s, a); a A 11 U (s) R(s) + U(s, a ); 12 return: U(s), π (s); Artificial Intelligence & Sequential Decision Problems V1.2 Machine Learning for Civil Engineers 19 / 33

31 Value Iteration Infrastructure Maintenance - Summary s S = 100% 80% 60% 40% 20% 0% a A = {Do nothing, Maintain, Replace} R(S) = {109.5, 109.5, 109.5, 98.6, 82.1, 0}M$ R(A) = {0, 5, 20}M$ p(s t+1 s t, a = Do nothing) = p(s t+1 s t, a = Maintain) = p(s t+1 s t, a = Replace) = S S S S S S Artificial Intelligence & Sequential Decision Problems V1.2 Machine Learning for Civil Engineers 20 / 33

32 Value Iteration Infrastructure Maintenance - Value iteration s S = {100%, 80%, 60%, 40%, 20%, 0%} a A = {Do nothing, Maintain, Replace} R(S) = {109.5, 109.5, 109.5, 98.6, 82.1, 0}M$ R(A) = {0, 5, 20}M$ γ = 0.97 p(s s, a) = Iteration: 1, s S U 0 (S) = {0, 0, 0, 0, 0, 0} M$ U 1 (s) = R(s) + max a A p(s s, a 1 ) (R(a 1 ) + γu 0 (s )) s S p(s s, a 2 ) (R(a 2 ) + γu 0 (s )) s S p(s s, a 3 ) (R(a 3 ) + γu 0 (s )) s S U (1) (1) = M$ U (2) (1) = 223 M$ Artificial Intelligence & Sequential Decision Problems V1.2 Machine Learning for Civil Engineers 21 / 33

33 Value Iteration Infrastructure Maintenance - Value iteration s S = {100%, 80%, 60%, 40%, 20%, 0%} a A = {Do nothing, Maintain, Replace} R(S) = {109.5, 109.5, 109.5, 98.6, 82.1, 0}M$ R(A) = {0, 5, 20}M$ γ = 0.97 p(s s, a) = Iteration: 2, s S U 1 (S) = {110, 211, 309, 393, 459, 440} M$ U 2 (s) = R(s) + max a A p(s s, a 1 ) (R(a 1 ) + γu 1 (s )) s S p(s s, a 2 ) (R(a 2 ) + γu 1 (s )) s S p(s s, a 3 ) (R(a 3 ) + γu 1 (s )) s S U (1) (1) = M$ U (2) (1) = 223 M$ Artificial Intelligence & Sequential Decision Problems V1.2 Machine Learning for Civil Engineers 21 / 33

34 Value Iteration Infrastructure Maintenance - Value iteration s S = {100%, 80%, 60%, 40%, 20%, 0%} a A = {Do nothing, Maintain, Replace} R(S) = {109.5, 109.5, 109.5, 98.6, 82.1, 0}M$ R(A) = {0, 5, 20}M$ γ = 0.97 p(s s, a) = Iteration: 3, s S U 2 (S) = {223, 329, 430, 511, 572, 550} M$ U 3 (s) = R(s) + max a A p(s s, a 1 ) (R(a 1 ) + γu 2 (s )) s S p(s s, a 2 ) (R(a 2 ) + γu 2 (s )) s S p(s s, a 3 ) (R(a 3 ) + γu 2 (s )) s S U (1) (1) = M$ U (2) (1) = 223 M$ Artificial Intelligence & Sequential Decision Problems V1.2 Machine Learning for Civil Engineers 21 / 33

35 Value Iteration Value iteration - U (1) (1) = M$ U (2) (1) = 223 M$ s=100% 80% U (0) {}}{{}}{ (S) = { 0, 0, 60% {}}{ 0, 40% {}}{ 0, 20% {}}{ 0, 0% {}}{ 0 } M$ U (1) (S) = {110, 211, 309, 393, 459, 440} M$ U (2) (S) = {223, 329, 430, 511, 572, 550} M$. U (536) (S) = {3640, 3635, 3630, 3615, 3592, 3510} M$ U (537) (S) = {3640, 3635, 3630, 3615, 3592, 3510} M$ R(S) = {109.5, 109.5, 109.5, 98.6, 82.1, 0}M$ R(A) = {0, 5, 20}M$ p(s s, do nothing) = ( U (2) (1) R(1) + max a A s S p(s s, a) (R(a) + γu (1) (s ))) R(s=1) {}}{ 0.95 ( M$) ( M$) ( M$) = M$ 109.5M$ + max 1 ( M$) = M$ a A 1 ( M$) = 86.7 M$ = 109.5$ M$ = 223 M$ (π (s = 1) = a = do nothing) Artificial Intelligence & Sequential Decision Problems V1.2 Machine Learning for Civil Engineers 22 / 33

36 Value Iteration Value iteration - U (1) (1) = M$ U (2) (1) = 223 M$ s=100% 80% U (0) {}}{{}}{ (S) = { 0, 0, 60% {}}{ 0, 40% {}}{ 0, 20% {}}{ 0, 0% {}}{ 0 } M$ U (1) (S) = {110, 211, 309, 393, 459, 440} M$ U (2) (S) = {223, 329, 430, 511, 572, 550} M$. U (536) (S) = {3640, 3635, 3630, 3615, 3592, 3510} M$ U (537) (S) = {3640, 3635, 3630, 3615, 3592, 3510} M$ R(S) = {109.5, 109.5, 109.5, 98.6, 82.1, 0}M$ R(A) = {0, 5, 20}M$ p(s s, repair) = ( U (2) (1) R(1) + max a A s S p(s s, a) (R(a) + γu (1) (s ))) R(s=1) {}}{ 0.95 ( M$) ( M$) ( M$) = M$ 109.5M$ + max 1 ( M$) = M$ a A 1 ( M$) = 86.7 M$ = 109.5$ M$ = 223 M$ (π (s = 1) = a = do nothing) Artificial Intelligence & Sequential Decision Problems V1.2 Machine Learning for Civil Engineers 22 / 33

37 Value Iteration Value iteration - U (1) (1) = M$ U (2) (1) = 223 M$ s=100% 80% U (0) {}}{{}}{ (S) = { 0, 0, 60% {}}{ 0, 40% {}}{ 0, 20% {}}{ 0, 0% {}}{ 0 } M$ U (1) (S) = {110, 211, 309, 393, 459, 440} M$ U (2) (S) = {223, 329, 430, 511, 572, 550} M$. U (536) (S) = {3640, 3635, 3630, 3615, 3592, 3510} M$ U (537) (S) = {3640, 3635, 3630, 3615, 3592, 3510} M$ R(S) = {109.5, 109.5, 109.5, 98.6, 82.1, 0}M$ R(A) = {0, 5, 20}M$ p(s s, replace) = ( U (2) (1) R(1) + max a A s S p(s s, a) (R(a) + γu (1) (s ))) R(s=1) {}}{ 0.95 ( M$) ( M$) ( M$) = M$ 109.5M$ + max 1 ( M$) = M$ a A 1 ( M$) = 86.7 M$ = 109.5$ M$ = 223 M$ (π (s = 1) = a = do nothing) Artificial Intelligence & Sequential Decision Problems V1.2 Machine Learning for Civil Engineers 22 / 33

38 Value Iteration Infrastructure Maintenance - Value iteration [ ] U(s), [M$] 4,000 3,000 2,000 s = 100% s = 80% s = 60% 1,000 s = 40% s = 20% s = 0% itetations # U(S) = {3640, 3635, 3630, 3615, 3592, 3510} M$ π (S) = {Do nothing, Maintain }{{}}{{}, Maintain }{{}, Maintain }{{}, Replace, Replace} }{{}}{{} s=100% s=80% s=60% s=40% s=20% s=0% [CIV ML/Value iteration bridge.m] Artificial Intelligence & Sequential Decision Problems V1.2 Machine Learning for Civil Engineers 23 / 33

39 Value Iteration Bellman update & Value iteration Value iteration U (i+1) (s) R(s) + max a A p(s s, a) (R(a) + γu (i) (s )) s S The max operation is computationally expensive if S is large solution: policy iteration A policy π = {a 1, a 2,, a S } defines an action to be taken for each state s S Policy iteration U (i+1) (s) R(s) + s S p(s s, π i (s)) (R(π i (s)) + γu (i) (s )) Artificial Intelligence & Sequential Decision Problems V1.2 Machine Learning for Civil Engineers 24 / 33

40 Policy Iteration Algorithm 2: Policy iteration 1 define: states s S, actions a A; 2 define: transition model p(s s, a); 3 define: rewards R(s), R(a), discount γ; 4 initialize: U(s) = 0, π (s) = π(s) A; 5 while π (s) π(s) do 6 π(s) = π (s); 7 U(s) = Value iteration(u(s), π(s), p(s s, a), R(s), R(a), γ); 8 for s S do 9 π (s) arg max a A 10 return: U(s), π (s) = π(s); R(a) + γ s S p(s s, a) U(s ); Artificial Intelligence & Sequential Decision Problems V1.2 Machine Learning for Civil Engineers 25 / 33

41 Policy Iteration Infrastructure Maintenance - Policy iteration s S = {100%, 80%, 60%, 40%, 20%, 0%} a A = {Do nothing (1), Maintain (2), Replace (3)} R(S) = {109.5, 109.5, 109.5, 98.6, 82.1, 0}M$ R(A) = {0, 5, 20}M$ γ = 0.97 p(s s, a) = Iteration: 1, s S π 0 (S) = {1, 1, 1, 1, 1, 1} U 0 (S) = {2063, 1290, , 197, 0} M$ R(a 1 ) + γ p(s s, a 1 ) U 1 (s ) π 1 (s) = arg max a A s S R(a 2 ) + γ p(s s, a 2 ) U 1 (s ) s S R(a 3 ) + γ p(s s, a 3 ) U 1 (s ) s S π 5 (S) = π 6 (S) = π (S) = {1, 2, 2, 2, 3, 3} Artificial Intelligence & Sequential Decision Problems V1.2 Machine Learning for Civil Engineers 26 / 33

42 Policy Iteration Infrastructure Maintenance - Policy iteration s S = {100%, 80%, 60%, 40%, 20%, 0%} a A = {Do nothing (1), Maintain (2), Replace (3)} R(S) = {109.5, 109.5, 109.5, 98.6, 82.1, 0}M$ R(A) = {0, 5, 20}M$ γ = 0.97 p(s s, a) = Iteration: 2, s S π 1 (S) = {2, 2, 3, 3, 3, 3} U 1 (S) = {3483, 3483, 3468, 3457, 3441, 3359} M$ R(a 1 ) + γ p(s s, a 1 ) U 2 (s ) π 2 (s) = arg max a A s S R(a 2 ) + γ p(s s, a 2 ) U 2 (s ) s S R(a 3 ) + γ p(s s, a 3 ) U 2 (s ) s S π 5 (S) = π 6 (S) = π (S) = {1, 2, 2, 2, 3, 3} Artificial Intelligence & Sequential Decision Problems V1.2 Machine Learning for Civil Engineers 26 / 33

43 Policy Iteration Infrastructure Maintenance - Policy iteration s S = {100%, 80%, 60%, 40%, 20%, 0%} a A = {Do nothing (1), Maintain (2), Replace (3)} R(S) = {109.5, 109.5, 109.5, 98.6, 82.1, 0}M$ R(A) = {0, 5, 20}M$ γ = 0.97 p(s s, a) = Iteration: 3, s S π 2 (S) = {1, 1, 2, 2, 3, 3} U 2 (S) = {3622, 3606, 3603, 3588, 3576, 3494} M$ R(a 1 ) + γ p(s s, a 1 ) U 3 (s ) π 3 (s) = arg max a A s S R(a 2 ) + γ p(s s, a 2 ) U 3 (s ) s S R(a 3 ) + γ p(s s, a 3 ) U 3 (s ) s S π 5 (S) = π 6 (S) = π (S) = {1, 2, 2, 2, 3, 3} Artificial Intelligence & Sequential Decision Problems V1.2 Machine Learning for Civil Engineers 26 / 33

44 Policy Iteration Infrastructure Maintenance - Policy iteration s S = {100%, 80%, 60%, 40%, 20%, 0%} a A = {Do nothing (1), Maintain (2), Replace (3)} R(S) = {109.5, 109.5, 109.5, 98.6, 82.1, 0}M$ R(A) = {0, 5, 20}M$ γ = 0.97 p(s s, a) = Iteration: 6, s S π 5 (S) = {1, 2, 2, 2, 3, 3} U 2 (S) = {3640, 3635, 3630, 3615, 3592, 3510} M$ R(a 1 ) + γ p(s s, a 1 ) U 5 (s ) π 6 (s) = arg max a A s S R(a 2 ) + γ p(s s, a 2 ) U 5 (s ) s S R(a 3 ) + γ p(s s, a 3 ) U 5 (s ) s S π 5 (S) = π 6 (S) = π (S) = {1, 2, 2, 2, 3, 3} Artificial Intelligence & Sequential Decision Problems V1.2 Machine Learning for Civil Engineers 26 / 33

45 Policy Iteration Value iteration - U (1) (1) = 2063 M$ U (2) (1) = 3483 M$ U (1) (S) = {2063, 1290, , 197, 0} M$, π (1) (S) = {2, 2, 3, 3, 3, 3} Policy Iteration loop Policy Iteration loop 1 Value Iteration loop State π (1) (1)=2, maintain {}}{ U (2)(1) (1) = 109.5M$ + 1 ( M$) = 2106 M$ U (2)(2) (1) = 109.5M$ + 1 ( M$) = 2147 M$. U (2)(350) (1) = 109.5M$ + 1 ( M$) = 3483 M$. U (2) (1) = U (2)(351) (1) = 109.5M$ + 1 ( M$) = 3483 M$. Artificial Intelligence & Sequential Decision Problems V1.2 Machine Learning for Civil Engineers 27 / 33

46 Policy Iteration Policy iteration - π (1) (1) = 2 π (2) (1) = 1 U (2) (S) = {3483, 3483, 3468, 3457, 3441, 3359} M$ π (2) (1)=arg max a A =arg max a A = 1. R(a 1 ) + γ p(s s, a 1 ) U 2 (s ) s S R(a 2 ) + γ p(s s, a 2 ) U 2 (s ) s S R(a 3 ) + γ p(s s, a 3 ) U 2 (s ) s S 0 M$ ( M$ M$ M$) = 3378 M$ 5 M$ (1 3483M$) = 3374 M$ 20 M$ (1 3483M$) = 3359 M$ Artificial Intelligence & Sequential Decision Problems V1.2 Machine Learning for Civil Engineers 28 / 33

47 Policy Iteration Infrastructure Maintenance - Policy iteration [ ] % 80% 60% 40% 20% 0% Replace Maintain s Do nothing a π (S) = {Do nothing, Maintain }{{}}{{}, Maintain }{{}, Maintain }{{}, Replace, Replace} }{{}}{{} s=100% s=80% s=60% s=40% s=20% s=0% [CIV ML/Policy iteration bridge.m] Artificial Intelligence & Sequential Decision Problems V1.2 Machine Learning for Civil Engineers 29 / 33

48 Policy Iteration Infrastructure Maintenance - Policy iteration [ ] % 80% 60% 40% 20% 0% Replace Maintain s Do nothing a π (S) = {Do nothing, Maintain }{{}}{{}, Maintain }{{}, Maintain }{{}, Replace, Replace} }{{}}{{} s=100% s=80% s=60% s=40% s=20% s=0% [CIV ML/Policy iteration bridge.m] Artificial Intelligence & Sequential Decision Problems V1.2 Machine Learning for Civil Engineers 29 / 33

49 Policy Iteration Policy v.s. Value iteration π: Policy iteration π: Value iteration Time: Policy iteration Time: Value iteration Artificial Intelligence & Sequential Decision Problems V1.2 Machine Learning for Civil Engineers 30 / 33

50 Partially Observable MDP (POMDP) One limitation of MDP is that at a time t, you must know exactly in what state (s) you are. When this is not the case POMDP (Note: computationally more demanding than MDP) Chapter 17 Russell, S. and Norvig, P. (1995). Artificial Intelligence, A modern approach. Prentice-Hall. Artificial Intelligence & Sequential Decision Problems V1.2 Machine Learning for Civil Engineers 31 / 33

51 Intro Nomenclature Markov Decision Process, MDP Partially Observable MDP Q-Learning Summary Advanced reinforcement learning Q-learning A = { } S = { } R(S) = {fct( )} p(st+1 st, a) = unknown... U(s, a) Q(s, a) (Neural Network) Chapter 21 Russell, S. and Norvig, P. (1995). Artificial Intelligence, A modern approach. Prentice-Hall. [Google images] Artificial Intelligence & Sequential Decision Problems V1.2 Machine Learning for Civil Engineers Polytechnique Montre al 32 / 33

52 Summary Level 1 - Limited AI: Beyond human capacity in a specific task Sequential decision problem: 1. Identify possible actions 2. Quantify the utility for possible outcomes 3. Build a predictive model of the problem studied 4. Formulate the AI as a sequential decision problem States: s R or s }{{} j S = {s 1, s 2,, s S} }{{} continuous discrete Actions: a i A = {a 1, a 2,, a A} Model: Reward: p(s s j, a i ) = Pr(s = s k s j, a i ), k = 1 : S R(s j ) R Policy: π = {a 1, a 1,, a S} Infinite planning horizon: The rewards and utilities are considered over an infinite period of time. The optimal policy is stationary; π (s) does not depend on t. Bellman equation: The utility of a state is the immediate reward for that state plus the expected discounted utility of the next state given that the optimal action is taken U(s) = R(s) + max a A p(s s, a) (R(a) + γu(s )) s S Bellman update & Value iteration U (i+1) (s) R(s)+ max a A Policy iteration p(s s, a) (R(a)+γU (i) (s )) s S U (i+1) (s) R(s)+ p(s s, π i (s)) (R(π i (s))+γu (i) (s )) s S π: Policy iteration π: Value iteration Time: Policy iteration Time: Value iteration Artificial Intelligence & Sequential Decision Problems V1.2 Machine Learning for Civil Engineers 33 / 33

Intro Utility theory Utility & Loss Functions Value of Information Summary. Decision Theory. (CIV Machine Learning for Civil Engineers)

Intro Utility theory Utility & Loss Functions Value of Information Summary. Decision Theory. (CIV Machine Learning for Civil Engineers) Decision Theory (CIV654 - Machine Learning for Civil Engineers) Professor: James-A. Goulet Département des génies civil, géologique et des mines Chapter 14 Goulet (219). Probabilistic Machine Learning

More information

Course 16:198:520: Introduction To Artificial Intelligence Lecture 13. Decision Making. Abdeslam Boularias. Wednesday, December 7, 2016

Course 16:198:520: Introduction To Artificial Intelligence Lecture 13. Decision Making. Abdeslam Boularias. Wednesday, December 7, 2016 Course 16:198:520: Introduction To Artificial Intelligence Lecture 13 Decision Making Abdeslam Boularias Wednesday, December 7, 2016 1 / 45 Overview We consider probabilistic temporal models where the

More information

Decision Theory: Q-Learning

Decision Theory: Q-Learning Decision Theory: Q-Learning CPSC 322 Decision Theory 5 Textbook 12.5 Decision Theory: Q-Learning CPSC 322 Decision Theory 5, Slide 1 Lecture Overview 1 Recap 2 Asynchronous Value Iteration 3 Q-Learning

More information

Grundlagen der Künstlichen Intelligenz

Grundlagen der Künstlichen Intelligenz Grundlagen der Künstlichen Intelligenz Formal models of interaction Daniel Hennes 27.11.2017 (WS 2017/18) University Stuttgart - IPVS - Machine Learning & Robotics 1 Today Taxonomy of domains Models of

More information

Artificial Intelligence

Artificial Intelligence Artificial Intelligence Dynamic Programming Marc Toussaint University of Stuttgart Winter 2018/19 Motivation: So far we focussed on tree search-like solvers for decision problems. There is a second important

More information

Reinforcement Learning. Introduction

Reinforcement Learning. Introduction Reinforcement Learning Introduction Reinforcement Learning Agent interacts and learns from a stochastic environment Science of sequential decision making Many faces of reinforcement learning Optimal control

More information

MARKOV DECISION PROCESSES (MDP) AND REINFORCEMENT LEARNING (RL) Versione originale delle slide fornita dal Prof. Francesco Lo Presti

MARKOV DECISION PROCESSES (MDP) AND REINFORCEMENT LEARNING (RL) Versione originale delle slide fornita dal Prof. Francesco Lo Presti 1 MARKOV DECISION PROCESSES (MDP) AND REINFORCEMENT LEARNING (RL) Versione originale delle slide fornita dal Prof. Francesco Lo Presti Historical background 2 Original motivation: animal learning Early

More information

Decision Theory: Markov Decision Processes

Decision Theory: Markov Decision Processes Decision Theory: Markov Decision Processes CPSC 322 Lecture 33 March 31, 2006 Textbook 12.5 Decision Theory: Markov Decision Processes CPSC 322 Lecture 33, Slide 1 Lecture Overview Recap Rewards and Policies

More information

Christopher Watkins and Peter Dayan. Noga Zaslavsky. The Hebrew University of Jerusalem Advanced Seminar in Deep Learning (67679) November 1, 2015

Christopher Watkins and Peter Dayan. Noga Zaslavsky. The Hebrew University of Jerusalem Advanced Seminar in Deep Learning (67679) November 1, 2015 Q-Learning Christopher Watkins and Peter Dayan Noga Zaslavsky The Hebrew University of Jerusalem Advanced Seminar in Deep Learning (67679) November 1, 2015 Noga Zaslavsky Q-Learning (Watkins & Dayan, 1992)

More information

An Introduction to Markov Decision Processes. MDP Tutorial - 1

An Introduction to Markov Decision Processes. MDP Tutorial - 1 An Introduction to Markov Decision Processes Bob Givan Purdue University Ron Parr Duke University MDP Tutorial - 1 Outline Markov Decision Processes defined (Bob) Objective functions Policies Finding Optimal

More information

Markov decision processes

Markov decision processes CS 2740 Knowledge representation Lecture 24 Markov decision processes Milos Hauskrecht milos@cs.pitt.edu 5329 Sennott Square Administrative announcements Final exam: Monday, December 8, 2008 In-class Only

More information

REINFORCEMENT LEARNING

REINFORCEMENT LEARNING REINFORCEMENT LEARNING Larry Page: Where s Google going next? DeepMind's DQN playing Breakout Contents Introduction to Reinforcement Learning Deep Q-Learning INTRODUCTION TO REINFORCEMENT LEARNING Contents

More information

Grundlagen der Künstlichen Intelligenz

Grundlagen der Künstlichen Intelligenz Grundlagen der Künstlichen Intelligenz Reinforcement learning Daniel Hennes 4.12.2017 (WS 2017/18) University Stuttgart - IPVS - Machine Learning & Robotics 1 Today Reinforcement learning Model based and

More information

Introduction to Reinforcement Learning. CMPT 882 Mar. 18

Introduction to Reinforcement Learning. CMPT 882 Mar. 18 Introduction to Reinforcement Learning CMPT 882 Mar. 18 Outline for the week Basic ideas in RL Value functions and value iteration Policy evaluation and policy improvement Model-free RL Monte-Carlo and

More information

Markov Decision Processes and Solving Finite Problems. February 8, 2017

Markov Decision Processes and Solving Finite Problems. February 8, 2017 Markov Decision Processes and Solving Finite Problems February 8, 2017 Overview of Upcoming Lectures Feb 8: Markov decision processes, value iteration, policy iteration Feb 13: Policy gradients Feb 15:

More information

Partially observable Markov decision processes. Department of Computer Science, Czech Technical University in Prague

Partially observable Markov decision processes. Department of Computer Science, Czech Technical University in Prague Partially observable Markov decision processes Jiří Kléma Department of Computer Science, Czech Technical University in Prague https://cw.fel.cvut.cz/wiki/courses/b4b36zui/prednasky pagenda Previous lecture:

More information

, and rewards and transition matrices as shown below:

, and rewards and transition matrices as shown below: CSE 50a. Assignment 7 Out: Tue Nov Due: Thu Dec Reading: Sutton & Barto, Chapters -. 7. Policy improvement Consider the Markov decision process (MDP) with two states s {0, }, two actions a {0, }, discount

More information

Reinforcement Learning. Donglin Zeng, Department of Biostatistics, University of North Carolina

Reinforcement Learning. Donglin Zeng, Department of Biostatistics, University of North Carolina Reinforcement Learning Introduction Introduction Unsupervised learning has no outcome (no feedback). Supervised learning has outcome so we know what to predict. Reinforcement learning is in between it

More information

1 Introduction 2. 4 Q-Learning The Q-value The Temporal Difference The whole Q-Learning process... 5

1 Introduction 2. 4 Q-Learning The Q-value The Temporal Difference The whole Q-Learning process... 5 Table of contents 1 Introduction 2 2 Markov Decision Processes 2 3 Future Cumulative Reward 3 4 Q-Learning 4 4.1 The Q-value.............................................. 4 4.2 The Temporal Difference.......................................

More information

CS 7180: Behavioral Modeling and Decisionmaking

CS 7180: Behavioral Modeling and Decisionmaking CS 7180: Behavioral Modeling and Decisionmaking in AI Markov Decision Processes for Complex Decisionmaking Prof. Amy Sliva October 17, 2012 Decisions are nondeterministic In many situations, behavior and

More information

Machine Learning and Bayesian Inference. Unsupervised learning. Can we find regularity in data without the aid of labels?

Machine Learning and Bayesian Inference. Unsupervised learning. Can we find regularity in data without the aid of labels? Machine Learning and Bayesian Inference Dr Sean Holden Computer Laboratory, Room FC6 Telephone extension 6372 Email: sbh11@cl.cam.ac.uk www.cl.cam.ac.uk/ sbh11/ Unsupervised learning Can we find regularity

More information

CSC321 Lecture 22: Q-Learning

CSC321 Lecture 22: Q-Learning CSC321 Lecture 22: Q-Learning Roger Grosse Roger Grosse CSC321 Lecture 22: Q-Learning 1 / 21 Overview Second of 3 lectures on reinforcement learning Last time: policy gradient (e.g. REINFORCE) Optimize

More information

6 Reinforcement Learning

6 Reinforcement Learning 6 Reinforcement Learning As discussed above, a basic form of supervised learning is function approximation, relating input vectors to output vectors, or, more generally, finding density functions p(y,

More information

Sequential decision making under uncertainty. Department of Computer Science, Czech Technical University in Prague

Sequential decision making under uncertainty. Department of Computer Science, Czech Technical University in Prague Sequential decision making under uncertainty Jiří Kléma Department of Computer Science, Czech Technical University in Prague https://cw.fel.cvut.cz/wiki/courses/b4b36zui/prednasky pagenda Previous lecture:

More information

State Space Abstractions for Reinforcement Learning

State Space Abstractions for Reinforcement Learning State Space Abstractions for Reinforcement Learning Rowan McAllister and Thang Bui MLG RCC 6 November 24 / 24 Outline Introduction Markov Decision Process Reinforcement Learning State Abstraction 2 Abstraction

More information

CS788 Dialogue Management Systems Lecture #2: Markov Decision Processes

CS788 Dialogue Management Systems Lecture #2: Markov Decision Processes CS788 Dialogue Management Systems Lecture #2: Markov Decision Processes Kee-Eung Kim KAIST EECS Department Computer Science Division Markov Decision Processes (MDPs) A popular model for sequential decision

More information

Introduction to Reinforcement Learning

Introduction to Reinforcement Learning CSCI-699: Advanced Topics in Deep Learning 01/16/2019 Nitin Kamra Spring 2019 Introduction to Reinforcement Learning 1 What is Reinforcement Learning? So far we have seen unsupervised and supervised learning.

More information

Reinforcement Learning as Classification Leveraging Modern Classifiers

Reinforcement Learning as Classification Leveraging Modern Classifiers Reinforcement Learning as Classification Leveraging Modern Classifiers Michail G. Lagoudakis and Ronald Parr Department of Computer Science Duke University Durham, NC 27708 Machine Learning Reductions

More information

Today s Outline. Recap: MDPs. Bellman Equations. Q-Value Iteration. Bellman Backup 5/7/2012. CSE 473: Artificial Intelligence Reinforcement Learning

Today s Outline. Recap: MDPs. Bellman Equations. Q-Value Iteration. Bellman Backup 5/7/2012. CSE 473: Artificial Intelligence Reinforcement Learning CSE 473: Artificial Intelligence Reinforcement Learning Dan Weld Today s Outline Reinforcement Learning Q-value iteration Q-learning Exploration / exploitation Linear function approximation Many slides

More information

Preference Elicitation for Sequential Decision Problems

Preference Elicitation for Sequential Decision Problems Preference Elicitation for Sequential Decision Problems Kevin Regan University of Toronto Introduction 2 Motivation Focus: Computational approaches to sequential decision making under uncertainty These

More information

Introduction to Reinforcement Learning Part 1: Markov Decision Processes

Introduction to Reinforcement Learning Part 1: Markov Decision Processes Introduction to Reinforcement Learning Part 1: Markov Decision Processes Rowan McAllister Reinforcement Learning Reading Group 8 April 2015 Note I ve created these slides whilst following Algorithms for

More information

Temporal Difference Learning & Policy Iteration

Temporal Difference Learning & Policy Iteration Temporal Difference Learning & Policy Iteration Advanced Topics in Reinforcement Learning Seminar WS 15/16 ±0 ±0 +1 by Tobias Joppen 03.11.2015 Fachbereich Informatik Knowledge Engineering Group Prof.

More information

Reinforcement Learning and Deep Reinforcement Learning

Reinforcement Learning and Deep Reinforcement Learning Reinforcement Learning and Deep Reinforcement Learning Ashis Kumer Biswas, Ph.D. ashis.biswas@ucdenver.edu Deep Learning November 5, 2018 1 / 64 Outlines 1 Principles of Reinforcement Learning 2 The Q

More information

Introduction Linear Regression Gaussian Process Regression (GPR) Examples Adv. topics Summary. Regression methods

Introduction Linear Regression Gaussian Process Regression (GPR) Examples Adv. topics Summary. Regression methods Regression methods (CIV654 - Machine Learning for Civil Engineers) Professor: James-A. Goulet Département des génies civil, géologique et des mines Chapters 8 Goulet (218). Probabilistic Machine Learning

More information

Dueling Network Architectures for Deep Reinforcement Learning (ICML 2016)

Dueling Network Architectures for Deep Reinforcement Learning (ICML 2016) Dueling Network Architectures for Deep Reinforcement Learning (ICML 2016) Yoonho Lee Department of Computer Science and Engineering Pohang University of Science and Technology October 11, 2016 Outline

More information

Markov Decision Processes and Dynamic Programming

Markov Decision Processes and Dynamic Programming Markov Decision Processes and Dynamic Programming A. LAZARIC (SequeL Team @INRIA-Lille) Ecole Centrale - Option DAD SequeL INRIA Lille EC-RL Course In This Lecture A. LAZARIC Markov Decision Processes

More information

1 MDP Value Iteration Algorithm

1 MDP Value Iteration Algorithm CS 0. - Active Learning Problem Set Handed out: 4 Jan 009 Due: 9 Jan 009 MDP Value Iteration Algorithm. Implement the value iteration algorithm given in the lecture. That is, solve Bellman s equation using

More information

Reinforcement Learning

Reinforcement Learning Reinforcement Learning Markov decision process & Dynamic programming Evaluative feedback, value function, Bellman equation, optimality, Markov property, Markov decision process, dynamic programming, value

More information

The convergence limit of the temporal difference learning

The convergence limit of the temporal difference learning The convergence limit of the temporal difference learning Ryosuke Nomura the University of Tokyo September 3, 2013 1 Outline Reinforcement Learning Convergence limit Construction of the feature vector

More information

Reinforcement Learning and NLP

Reinforcement Learning and NLP 1 Reinforcement Learning and NLP Kapil Thadani kapil@cs.columbia.edu RESEARCH Outline 2 Model-free RL Markov decision processes (MDPs) Derivative-free optimization Policy gradients Variance reduction Value

More information

Marks. bonus points. } Assignment 1: Should be out this weekend. } Mid-term: Before the last lecture. } Mid-term deferred exam:

Marks. bonus points. } Assignment 1: Should be out this weekend. } Mid-term: Before the last lecture. } Mid-term deferred exam: Marks } Assignment 1: Should be out this weekend } All are marked, I m trying to tally them and perhaps add bonus points } Mid-term: Before the last lecture } Mid-term deferred exam: } This Saturday, 9am-10.30am,

More information

Bayesian Networks Inference with Probabilistic Graphical Models

Bayesian Networks Inference with Probabilistic Graphical Models 4190.408 2016-Spring Bayesian Networks Inference with Probabilistic Graphical Models Byoung-Tak Zhang intelligence Lab Seoul National University 4190.408 Artificial (2016-Spring) 1 Machine Learning? Learning

More information

A Gentle Introduction to Reinforcement Learning

A Gentle Introduction to Reinforcement Learning A Gentle Introduction to Reinforcement Learning Alexander Jung 2018 1 Introduction and Motivation Consider the cleaning robot Rumba which has to clean the office room B329. In order to keep things simple,

More information

Machine Learning I Reinforcement Learning

Machine Learning I Reinforcement Learning Machine Learning I Reinforcement Learning Thomas Rückstieß Technische Universität München December 17/18, 2009 Literature Book: Reinforcement Learning: An Introduction Sutton & Barto (free online version:

More information

An Introduction to Reinforcement Learning

An Introduction to Reinforcement Learning 1 / 58 An Introduction to Reinforcement Learning Lecture 01: Introduction Dr. Johannes A. Stork School of Computer Science and Communication KTH Royal Institute of Technology January 19, 2017 2 / 58 ../fig/reward-00.jpg

More information

Hidden Markov Models (HMM) and Support Vector Machine (SVM)

Hidden Markov Models (HMM) and Support Vector Machine (SVM) Hidden Markov Models (HMM) and Support Vector Machine (SVM) Professor Joongheon Kim School of Computer Science and Engineering, Chung-Ang University, Seoul, Republic of Korea 1 Hidden Markov Models (HMM)

More information

This question has three parts, each of which can be answered concisely, but be prepared to explain and justify your concise answer.

This question has three parts, each of which can be answered concisely, but be prepared to explain and justify your concise answer. This question has three parts, each of which can be answered concisely, but be prepared to explain and justify your concise answer. 1. Suppose you have a policy and its action-value function, q, then you

More information

REINFORCE Framework for Stochastic Policy Optimization and its use in Deep Learning

REINFORCE Framework for Stochastic Policy Optimization and its use in Deep Learning REINFORCE Framework for Stochastic Policy Optimization and its use in Deep Learning Ronen Tamari The Hebrew University of Jerusalem Advanced Seminar in Deep Learning (#67679) February 28, 2016 Ronen Tamari

More information

AM 121: Intro to Optimization Models and Methods: Fall 2018

AM 121: Intro to Optimization Models and Methods: Fall 2018 AM 11: Intro to Optimization Models and Methods: Fall 018 Lecture 18: Markov Decision Processes Yiling Chen Lesson Plan Markov decision processes Policies and value functions Solving: average reward, discounted

More information

Sequential Decision Problems

Sequential Decision Problems Sequential Decision Problems Michael A. Goodrich November 10, 2006 If I make changes to these notes after they are posted and if these changes are important (beyond cosmetic), the changes will highlighted

More information

Internet Monetization

Internet Monetization Internet Monetization March May, 2013 Discrete time Finite A decision process (MDP) is reward process with decisions. It models an environment in which all states are and time is divided into stages. Definition

More information

Balancing and Control of a Freely-Swinging Pendulum Using a Model-Free Reinforcement Learning Algorithm

Balancing and Control of a Freely-Swinging Pendulum Using a Model-Free Reinforcement Learning Algorithm Balancing and Control of a Freely-Swinging Pendulum Using a Model-Free Reinforcement Learning Algorithm Michail G. Lagoudakis Department of Computer Science Duke University Durham, NC 2778 mgl@cs.duke.edu

More information

Outline. Lecture 13. Sequential Decision Making. Sequential Decision Making. Markov Decision Process. Stationary Preferences

Outline. Lecture 13. Sequential Decision Making. Sequential Decision Making. Markov Decision Process. Stationary Preferences Outline Lecture 3 October 27, 2009 C 486/686 Markov Decision Processes Dynamic Decision Networks Russell and Norvig: ect 7., 7.2 (up to p. 620), 7.4, 7.5 2 equential Decision Making tatic Decision Making

More information

CS599 Lecture 1 Introduction To RL

CS599 Lecture 1 Introduction To RL CS599 Lecture 1 Introduction To RL Reinforcement Learning Introduction Learning from rewards Policies Value Functions Rewards Models of the Environment Exploitation vs. Exploration Dynamic Programming

More information

COMP3702/7702 Artificial Intelligence Lecture 11: Introduction to Machine Learning and Reinforcement Learning. Hanna Kurniawati

COMP3702/7702 Artificial Intelligence Lecture 11: Introduction to Machine Learning and Reinforcement Learning. Hanna Kurniawati COMP3702/7702 Artificial Intelligence Lecture 11: Introduction to Machine Learning and Reinforcement Learning Hanna Kurniawati Today } What is machine learning? } Where is it used? } Types of machine learning

More information

Reinforcement Learning and Control

Reinforcement Learning and Control CS9 Lecture notes Andrew Ng Part XIII Reinforcement Learning and Control We now begin our study of reinforcement learning and adaptive control. In supervised learning, we saw algorithms that tried to make

More information

Zero-Sum Stochastic Games An algorithmic review

Zero-Sum Stochastic Games An algorithmic review Zero-Sum Stochastic Games An algorithmic review Emmanuel Hyon LIP6/Paris Nanterre with N Yemele and L Perrotin Rosario November 2017 Final Meeting Dygame Dygame Project Amstic Outline 1 Introduction Static

More information

Markov Decision Processes

Markov Decision Processes Markov Decision Processes Noel Welsh 11 November 2010 Noel Welsh () Markov Decision Processes 11 November 2010 1 / 30 Annoucements Applicant visitor day seeks robot demonstrators for exciting half hour

More information

CAP Plan, Activity, and Intent Recognition

CAP Plan, Activity, and Intent Recognition CAP6938-02 Plan, Activity, and Intent Recognition Lecture 10: Sequential Decision-Making Under Uncertainty (part 1) MDPs and POMDPs Instructor: Dr. Gita Sukthankar Email: gitars@eecs.ucf.edu SP2-1 Reminder

More information

CSE250A Fall 12: Discussion Week 9

CSE250A Fall 12: Discussion Week 9 CSE250A Fall 12: Discussion Week 9 Aditya Menon (akmenon@ucsd.edu) December 4, 2012 1 Schedule for today Recap of Markov Decision Processes. Examples: slot machines and maze traversal. Planning and learning.

More information

RL 14: POMDPs continued

RL 14: POMDPs continued RL 14: POMDPs continued Michael Herrmann University of Edinburgh, School of Informatics 06/03/2015 POMDPs: Points to remember Belief states are probability distributions over states Even if computationally

More information

Reinforcement learning

Reinforcement learning Reinforcement learning Stuart Russell, UC Berkeley Stuart Russell, UC Berkeley 1 Outline Sequential decision making Dynamic programming algorithms Reinforcement learning algorithms temporal difference

More information

Reinforcement learning

Reinforcement learning Reinforcement learning Based on [Kaelbling et al., 1996, Bertsekas, 2000] Bert Kappen Reinforcement learning Reinforcement learning is the problem faced by an agent that must learn behavior through trial-and-error

More information

Reinforcement Learning

Reinforcement Learning 1 Reinforcement Learning Chris Watkins Department of Computer Science Royal Holloway, University of London July 27, 2015 2 Plan 1 Why reinforcement learning? Where does this theory come from? Markov decision

More information

16.4 Multiattribute Utility Functions

16.4 Multiattribute Utility Functions 285 Normalized utilities The scale of utilities reaches from the best possible prize u to the worst possible catastrophe u Normalized utilities use a scale with u = 0 and u = 1 Utilities of intermediate

More information

Reinforcement Learning: An Introduction

Reinforcement Learning: An Introduction Introduction Betreuer: Freek Stulp Hauptseminar Intelligente Autonome Systeme (WiSe 04/05) Forschungs- und Lehreinheit Informatik IX Technische Universität München November 24, 2004 Introduction What is

More information

Temporal difference learning

Temporal difference learning Temporal difference learning AI & Agents for IET Lecturer: S Luz http://www.scss.tcd.ie/~luzs/t/cs7032/ February 4, 2014 Recall background & assumptions Environment is a finite MDP (i.e. A and S are finite).

More information

Q-Learning in Continuous State Action Spaces

Q-Learning in Continuous State Action Spaces Q-Learning in Continuous State Action Spaces Alex Irpan alexirpan@berkeley.edu December 5, 2015 Contents 1 Introduction 1 2 Background 1 3 Q-Learning 2 4 Q-Learning In Continuous Spaces 4 5 Experimental

More information

(Deep) Reinforcement Learning

(Deep) Reinforcement Learning Martin Matyášek Artificial Intelligence Center Czech Technical University in Prague October 27, 2016 Martin Matyášek VPD, 2016 1 / 17 Reinforcement Learning in a picture R. S. Sutton and A. G. Barto 2015

More information

Prioritized Sweeping Converges to the Optimal Value Function

Prioritized Sweeping Converges to the Optimal Value Function Technical Report DCS-TR-631 Prioritized Sweeping Converges to the Optimal Value Function Lihong Li and Michael L. Littman {lihong,mlittman}@cs.rutgers.edu RL 3 Laboratory Department of Computer Science

More information

Reinforcement Learning

Reinforcement Learning Reinforcement Learning Dipendra Misra Cornell University dkm@cs.cornell.edu https://dipendramisra.wordpress.com/ Task Grasp the green cup. Output: Sequence of controller actions Setup from Lenz et. al.

More information

16.410/413 Principles of Autonomy and Decision Making

16.410/413 Principles of Autonomy and Decision Making 16.410/413 Principles of Autonomy and Decision Making Lecture 23: Markov Decision Processes Policy Iteration Emilio Frazzoli Aeronautics and Astronautics Massachusetts Institute of Technology December

More information

CSC242: Intro to AI. Lecture 23

CSC242: Intro to AI. Lecture 23 CSC242: Intro to AI Lecture 23 Administrivia Posters! Tue Apr 24 and Thu Apr 26 Idea! Presentation! 2-wide x 4-high landscape pages Learning so far... Input Attributes Alt Bar Fri Hun Pat Price Rain Res

More information

Markov Decision Processes and Dynamic Programming

Markov Decision Processes and Dynamic Programming Markov Decision Processes and Dynamic Programming A. LAZARIC (SequeL Team @INRIA-Lille) ENS Cachan - Master 2 MVA SequeL INRIA Lille MVA-RL Course How to model an RL problem The Markov Decision Process

More information

Outline. CSE 573: Artificial Intelligence Autumn Agent. Partial Observability. Markov Decision Process (MDP) 10/31/2012

Outline. CSE 573: Artificial Intelligence Autumn Agent. Partial Observability. Markov Decision Process (MDP) 10/31/2012 CSE 573: Artificial Intelligence Autumn 2012 Reasoning about Uncertainty & Hidden Markov Models Daniel Weld Many slides adapted from Dan Klein, Stuart Russell, Andrew Moore & Luke Zettlemoyer 1 Outline

More information

Reinforcement Learning. George Konidaris

Reinforcement Learning. George Konidaris Reinforcement Learning George Konidaris gdk@cs.brown.edu Fall 2017 Machine Learning Subfield of AI concerned with learning from data. Broadly, using: Experience To Improve Performance On Some Task (Tom

More information

MDP Preliminaries. Nan Jiang. February 10, 2019

MDP Preliminaries. Nan Jiang. February 10, 2019 MDP Preliminaries Nan Jiang February 10, 2019 1 Markov Decision Processes In reinforcement learning, the interactions between the agent and the environment are often described by a Markov Decision Process

More information

CS 598 Statistical Reinforcement Learning. Nan Jiang

CS 598 Statistical Reinforcement Learning. Nan Jiang CS 598 Statistical Reinforcement Learning Nan Jiang Overview What s this course about? A grad-level seminar course on theory of RL 3 What s this course about? A grad-level seminar course on theory of RL

More information

Open Theoretical Questions in Reinforcement Learning

Open Theoretical Questions in Reinforcement Learning Open Theoretical Questions in Reinforcement Learning Richard S. Sutton AT&T Labs, Florham Park, NJ 07932, USA, sutton@research.att.com, www.cs.umass.edu/~rich Reinforcement learning (RL) concerns the problem

More information

Final Exam December 12, 2017

Final Exam December 12, 2017 Introduction to Artificial Intelligence CSE 473, Autumn 2017 Dieter Fox Final Exam December 12, 2017 Directions This exam has 7 problems with 111 points shown in the table below, and you have 110 minutes

More information

Markov decision processes (MDP) CS 416 Artificial Intelligence. Iterative solution of Bellman equations. Building an optimal policy.

Markov decision processes (MDP) CS 416 Artificial Intelligence. Iterative solution of Bellman equations. Building an optimal policy. Page 1 Markov decision processes (MDP) CS 416 Artificial Intelligence Lecture 21 Making Complex Decisions Chapter 17 Initial State S 0 Transition Model T (s, a, s ) How does Markov apply here? Uncertainty

More information

1. (3 pts) In MDPs, the values of states are related by the Bellman equation: U(s) = R(s) + γ max a

1. (3 pts) In MDPs, the values of states are related by the Bellman equation: U(s) = R(s) + γ max a 3 MDP (2 points). (3 pts) In MDPs, the values of states are related by the Bellman equation: U(s) = R(s) + γ max a s P (s s, a)u(s ) where R(s) is the reward associated with being in state s. Suppose now

More information

Q-learning. Tambet Matiisen

Q-learning. Tambet Matiisen Q-learning Tambet Matiisen (based on chapter 11.3 of online book Artificial Intelligence, foundations of computational agents by David Poole and Alan Mackworth) Stochastic gradient descent Experience

More information

CS 4649/7649 Robot Intelligence: Planning

CS 4649/7649 Robot Intelligence: Planning CS 4649/7649 Robot Intelligence: Planning Probability Primer Sungmoon Joo School of Interactive Computing College of Computing Georgia Institute of Technology S. Joo (sungmoon.joo@cc.gatech.edu) 1 *Slides

More information

ARTIFICIAL INTELLIGENCE. Reinforcement learning

ARTIFICIAL INTELLIGENCE. Reinforcement learning INFOB2KI 2018-2019 Utrecht University The Netherlands ARTIFICIAL INTELLIGENCE Reinforcement learning Lecturer: Silja Renooij These slides are part of the INFOB2KI Course Notes available from www.cs.uu.nl/docs/vakken/b2ki/schema.html

More information

Prof. Dr. Ann Nowé. Artificial Intelligence Lab ai.vub.ac.be

Prof. Dr. Ann Nowé. Artificial Intelligence Lab ai.vub.ac.be REINFORCEMENT LEARNING AN INTRODUCTION Prof. Dr. Ann Nowé Artificial Intelligence Lab ai.vub.ac.be REINFORCEMENT LEARNING WHAT IS IT? What is it? Learning from interaction Learning about, from, and while

More information

Reinforcement Learning

Reinforcement Learning Reinforcement Learning March May, 2013 Schedule Update Introduction 03/13/2015 (10:15-12:15) Sala conferenze MDPs 03/18/2015 (10:15-12:15) Sala conferenze Solving MDPs 03/20/2015 (10:15-12:15) Aula Alpha

More information

On Prediction and Planning in Partially Observable Markov Decision Processes with Large Observation Sets

On Prediction and Planning in Partially Observable Markov Decision Processes with Large Observation Sets On Prediction and Planning in Partially Observable Markov Decision Processes with Large Observation Sets Pablo Samuel Castro pcastr@cs.mcgill.ca McGill University Joint work with: Doina Precup and Prakash

More information

Reinforcement Learning. Yishay Mansour Tel-Aviv University

Reinforcement Learning. Yishay Mansour Tel-Aviv University Reinforcement Learning Yishay Mansour Tel-Aviv University 1 Reinforcement Learning: Course Information Classes: Wednesday Lecture 10-13 Yishay Mansour Recitations:14-15/15-16 Eliya Nachmani Adam Polyak

More information

An Adaptive Clustering Method for Model-free Reinforcement Learning

An Adaptive Clustering Method for Model-free Reinforcement Learning An Adaptive Clustering Method for Model-free Reinforcement Learning Andreas Matt and Georg Regensburger Institute of Mathematics University of Innsbruck, Austria {andreas.matt, georg.regensburger}@uibk.ac.at

More information

Motivation for introducing probabilities

Motivation for introducing probabilities for introducing probabilities Reaching the goals is often not sufficient: it is important that the expected costs do not outweigh the benefit of reaching the goals. 1 Objective: maximize benefits - costs.

More information

Sequential decision making under uncertainty. Department of Computer Science, Czech Technical University in Prague

Sequential decision making under uncertainty. Department of Computer Science, Czech Technical University in Prague Sequential decision making under uncertainty Jiří Kléma Department of Computer Science, Czech Technical University in Prague /doku.php/courses/a4b33zui/start pagenda Previous lecture: individual rational

More information

Planning in Markov Decision Processes

Planning in Markov Decision Processes Carnegie Mellon School of Computer Science Deep Reinforcement Learning and Control Planning in Markov Decision Processes Lecture 3, CMU 10703 Katerina Fragkiadaki Markov Decision Process (MDP) A Markov

More information

Today s s Lecture. Applicability of Neural Networks. Back-propagation. Review of Neural Networks. Lecture 20: Learning -4. Markov-Decision Processes

Today s s Lecture. Applicability of Neural Networks. Back-propagation. Review of Neural Networks. Lecture 20: Learning -4. Markov-Decision Processes Today s s Lecture Lecture 20: Learning -4 Review of Neural Networks Markov-Decision Processes Victor Lesser CMPSCI 683 Fall 2004 Reinforcement learning 2 Back-propagation Applicability of Neural Networks

More information

Markov Decision Processes (and a small amount of reinforcement learning)

Markov Decision Processes (and a small amount of reinforcement learning) Markov Decision Processes (and a small amount of reinforcement learning) Slides adapted from: Brian Williams, MIT Manuela Veloso, Andrew Moore, Reid Simmons, & Tom Mitchell, CMU Nicholas Roy 16.4/13 Session

More information

Basics of reinforcement learning

Basics of reinforcement learning Basics of reinforcement learning Lucian Buşoniu TMLSS, 20 July 2018 Main idea of reinforcement learning (RL) Learn a sequential decision policy to optimize the cumulative performance of an unknown system

More information

Reinforcement Learning with Function Approximation. Joseph Christian G. Noel

Reinforcement Learning with Function Approximation. Joseph Christian G. Noel Reinforcement Learning with Function Approximation Joseph Christian G. Noel November 2011 Abstract Reinforcement learning (RL) is a key problem in the field of Artificial Intelligence. The main goal is

More information

Machine Learning I Continuous Reinforcement Learning

Machine Learning I Continuous Reinforcement Learning Machine Learning I Continuous Reinforcement Learning Thomas Rückstieß Technische Universität München January 7/8, 2010 RL Problem Statement (reminder) state s t+1 ENVIRONMENT reward r t+1 new step r t

More information

Elements of Reinforcement Learning

Elements of Reinforcement Learning Elements of Reinforcement Learning Policy: way learning algorithm behaves (mapping from state to action) Reward function: Mapping of state action pair to reward or cost Value function: long term reward,

More information

Machine Learning. Reinforcement learning. Hamid Beigy. Sharif University of Technology. Fall 1396

Machine Learning. Reinforcement learning. Hamid Beigy. Sharif University of Technology. Fall 1396 Machine Learning Reinforcement learning Hamid Beigy Sharif University of Technology Fall 1396 Hamid Beigy (Sharif University of Technology) Machine Learning Fall 1396 1 / 32 Table of contents 1 Introduction

More information