Road Traffic Rules Synthesis using Grammatical Evolution Eric Medvet

Alberto Bartoli

Jacopo Talamini

Department of Engineering and Architecture University of Trieste Italy

EvoAPPS, 19/4/2017, Amsterdam (The Netherlands)

http://machinelearning.inginf.units.it

Driving Human driver (now)

Medvet et al. (UniTs)

Road traffic rules with GE

2 / 21

Driving Human driver (now)

Medvet et al. (UniTs)

Driverless car (the future)

Road traffic rules with GE

2 / 21

Driving Human driver (now)

Driverless car (the future)

Both try to: get there avoid accidents comply to the rules

Medvet et al. (UniTs)

Road traffic rules with GE

2 / 21

Driving Human driver (now)

Driverless car (the future)

Both try to: get there avoid accidents comply to the rules Are those rules “optimal” for both? Medvet et al. (UniTs)

Road traffic rules with GE

2 / 21

Re-writing the rules

If we could re-write the rules from scratch, we’d want the rules leading to high traffic efficiency (getting there) and high safety (avoiding accidents) How to write those rules?

Medvet et al. (UniTs)

Road traffic rules with GE

3 / 21

Re-writing the rules

If we could re-write the rules from scratch, we’d want the rules leading to high traffic efficiency (getting there) and high safety (avoiding accidents) How to write those rules? Our solution: write the rules automatically with an evolutionary approach

Medvet et al. (UniTs)

Road traffic rules with GE

3 / 21

In a nutshell

Evolutionary approach: individual → set of rules fitness → hefficiency, safetyi, simulated with those rules

Medvet et al. (UniTs)

Road traffic rules with GE

4 / 21

In a nutshell

Evolutionary approach: individual → set of rules fitness → hefficiency, safetyi, simulated with those rules Our contributions: 1

a model for traffic simulation, suitable for our scenario

2

a language for defining rules applicable to the model

3

a GE-based framework for automatic rules generation, with experimental evaluation

Medvet et al. (UniTs)

Road traffic rules with GE

4 / 21

The traffic model

Table of Contents

1

The traffic model

2

Language for rules

3

GE-based rules generation

4

Experimental evaluation

Medvet et al. (UniTs)

Road traffic rules with GE

5 / 21

The traffic model

The traffic model

Goals (and trade-offs): detailed enough to include concepts amenable to be regulated simple enough to allow for simulation Describes: the physical world the drivers’ behavior

Medvet et al. (UniTs)

Road traffic rules with GE

6 / 21

The traffic model

Physical world Infrastructure: road sections and intersections lanes in sections Cars: position (continuous longitudinally, discrete on lanes) speed status (in {alive, dead}) Collisions With discrete time

Medvet et al. (UniTs)

Road traffic rules with GE

7 / 21

The traffic model

Drivers’ behavior The driver’s algorithm: input: view ahead, speeds, distance to travel output: a list A of actions ↑: accelerate ←: move on left lane . . . and so on (↑, %, →, &, ↓, ., ←, -)

Medvet et al. (UniTs)

Road traffic rules with GE

8 / 21

The traffic model

Drivers’ behavior

Goal: just travel a target distance, no specific target position possibly at maximum (car) speed avoiding hitting other cars

Medvet et al. (UniTs)

Road traffic rules with GE

9 / 21

The traffic model

Drivers’ behavior and rules

The rules-aware driver’s algorithm: input: a list A of actions and a set R of rules output: the first action a ∈ A which breaks the lowest number of rules

Medvet et al. (UniTs)

Road traffic rules with GE

10 / 21

The traffic model

Drivers’ behavior and rules

The rules-aware driver’s algorithm: input: a list A of actions and a set R of rules output: the first action a ∈ A which breaks the lowest number of rules Why driver and rules-aware driver? model the driver’s “instinct” to perform his favorite action with no rules: “I drive as I like” with rules: “among preferred actions, I choose a permitted one”

Medvet et al. (UniTs)

Road traffic rules with GE

10 / 21

Language for rules

Table of Contents

1

The traffic model

2

Language for rules

3

GE-based rules generation

4

Experimental evaluation

Medvet et al. (UniTs)

Road traffic rules with GE

11 / 21

Language for rules

Rules

Rule: each rule is a predicate at a given time, for a given rule, a car breaks (false) or does not break (true) the rule Works on: the car status (speed, position in section/intersection, . . . ) other cars relative distances and speeds current section/intersection

Medvet et al. (UniTs)

Road traffic rules with GE

12 / 21

Language for rules

Language for the rules As a context-free grammar: r ::= hconditionsi hconditionsi ::= hconditioni | hconditionsi ∨ hconditioni hconditioni ::= hbaseConditioni | ¬hbaseConditioni hbaseConditioni ::= hnumericConditioni | hdeltaConditioni | hgraphConditioni hnumericConditioni ::= hnumericVariablei ≤ hnumericValuei hnumericVariablei ::= vˆx | vmax | v∆ | dview | d | xˆ | yˆ | ∆x−1 | ∆x0 | ∆x1 | l(p) | w (p) hnumericValuei ::= hdigiti.hdigitiehexpi hdigiti ::= 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 hexpi ::= −1 | 0 | 1 hdeltaConditioni ::= δv−1 = hdeltaValuei | δv0 = hdeltaValuei | δv1 = hdeltaValuei hdeltaValuei ::= ∅ | opposite | − 1 | 0 | 1 hgraphConditioni ::= p ∈ S

Medvet et al. (UniTs)

Road traffic rules with GE

13 / 21

Language for rules

Language for the rules As a context-free grammar: r ::= hconditionsi hconditionsi ::= hconditioni | hconditionsi ∨ hconditioni hconditioni ::= hbaseConditioni | ¬hbaseConditioni hbaseConditioni ::= hnumericConditioni | hdeltaConditioni | hgraphConditioni hnumericConditioni ::= hnumericVariablei ≤ hnumericValuei hnumericVariablei ::= vˆx | vmax | v∆ | dview | d | xˆ | yˆ | ∆x−1 | ∆x0 | ∆x1 | l(p) | w (p) hnumericValuei ::= hdigiti.hdigitiehexpi hdigiti ::= 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 hexpi ::= −1 | 0 | 1 hdeltaConditioni ::= δv−1 = hdeltaValuei | δv0 = hdeltaValuei | δv1 = hdeltaValuei hdeltaValuei ::= ∅ | opposite | − 1 | 0 | 1 hgraphConditioni ::= p ∈ S

Goal: express realistic rule like “stay on rightmost free lane” Medvet et al. (UniTs)

Road traffic rules with GE

13 / 21

GE-based rules generation

Table of Contents

1

The traffic model

2

Language for rules

3

GE-based rules generation

4

Experimental evaluation

Medvet et al. (UniTs)

Road traffic rules with GE

14 / 21

GE-based rules generation

GE

We have: the fitness (traffic efficiency and safety) the solution space (as a context-free grammar)

⇓ GE is the right tool!

Medvet et al. (UniTs)

Road traffic rules with GE

15 / 21

GE-based rules generation

Fitness Traffic efficiency

Traffic safety

Medvet et al. (UniTs)

Road traffic rules with GE

16 / 21

GE-based rules generation

Fitness Traffic efficiency → average speed ratio (ASR)   1 1 X dtot 1 1− nsim ncar cars ktot vmax Traffic safety → 1 − collision-per-time (CpT) 1

1 X ncollision nsim ncar cars ktot

Minimize a linear combination: f (R) = αtime (1 − ASR) + αcollision CpT

Medvet et al. (UniTs)

Road traffic rules with GE

16 / 21

GE-based rules generation

Fitness Traffic efficiency → average speed ratio (ASR)   1 1 X dtot 1 1− nsim ncar cars ktot vmax Traffic safety → 1 − collision-per-time (CpT) 1

1 X ncollision nsim ncar cars ktot

Minimize a linear combination: f (R) = αtime (1 − ASR) + αcollision CpT Computed over many (nsim ) simulations (stochasticity) Medvet et al. (UniTs)

Road traffic rules with GE

16 / 21

Experimental evaluation

Table of Contents

1

The traffic model

2

Language for rules

3

GE-based rules generation

4

Experimental evaluation

Medvet et al. (UniTs)

Road traffic rules with GE

17 / 21

Experimental evaluation

Goals Traffic model: is it sound? find values for parameters

Medvet et al. (UniTs)

Road traffic rules with GE

18 / 21

Experimental evaluation

Goals Traffic model: is it sound? find values for parameters GE-based rules generation: are generated rules better than no rules? are generated rules better than hand-written rules?

Medvet et al. (UniTs)

Road traffic rules with GE

18 / 21

Experimental evaluation

Goals Traffic model: is it sound? find values for parameters GE-based rules generation: are generated rules better than no rules? are generated rules better than hand-written rules? For both: how does injected traffic affect efficiency and safety? congestion: no further increase in overall traveled distance

Medvet et al. (UniTs)

Road traffic rules with GE

18 / 21

Experimental evaluation

Traffic model validation

1 0.8 0.6 0.4 0.2 0

CpT (Safety)

1 − ASR (Efficiency)

5 road sections, up to tens of cars, values averaged on 10 simulations

Low efficiency

High efficiency 0 ncar

10 20 (injected traffic)

Medvet et al. (UniTs)

1 0.8 0.6 0.4 0.2 0

·10−2 Low safety

High safety 0

Road traffic rules with GE

ncar

10 20 (injected traffic)

19 / 21

Experimental evaluation

Traffic model validation

1 0.8 0.6 0.4 0.2 0

CpT (Safety)

1 − ASR (Efficiency)

5 road sections, up to tens of cars, values averaged on 10 simulations

0 ncar

10 20 (injected traffic)

low ncar high ncar Medvet et al. (UniTs)

1 0.8 0.6 0.4 0.2 0

·10−2

0 ncar

10 20 (injected traffic)

No rules Efficiency Safety high high low low

Road traffic rules with GE

19 / 21

Experimental evaluation

Traffic model validation

1 0.8 0.6 0.4 0.2 0

CpT (Safety)

1 − ASR (Efficiency)

5 road sections, up to tens of cars, values averaged on 10 simulations

0 ncar

10 20 (injected traffic)

low ncar high ncar Medvet et al. (UniTs)

No rules Efficiency Safety high high low low

1 0.8 0.6 0.4 0.2 0

·10−2

0 ncar

10 20 (injected traffic)

Hand-written rules Efficiency Safety < ' ' >

Road traffic rules with GE

19 / 21

Experimental evaluation

Traffic model validation

1 0.8 0.6 0.4 0.2 0

CpT (Safety)

1 − ASR (Efficiency)

5 road sections, up to tens of cars, values averaged on 10 simulations

0 ncar

10 20 (injected traffic)

low ncar high ncar

No rules Efficiency Safety high high low low

1 0.8 0.6 0.4 0.2 0

·10−2

0 ncar

10 20 (injected traffic)

Hand-written rules Efficiency Safety < ' ' >

Rules → lower efficiency, higher safety: sound! Medvet et al. (UniTs)

Road traffic rules with GE

19 / 21

Experimental evaluation

GE-based rules generation

1 0.8 0.6 0.4 0.2 0

CpT (Safety)

1 − ASR (Efficiency)

30 runs, each with a 100 individuals, 100 generations

0 ncar

10 20 (injected traffic)

Medvet et al. (UniTs)

1 0.8 0.6 0.4 0.2 0

·10−2

0

Road traffic rules with GE

ncar

10 20 (injected traffic)

20 / 21

Experimental evaluation

GE-based rules generation

1 0.8 0.6 0.4 0.2 0

CpT (Safety)

1 − ASR (Efficiency)

30 runs, each with a 100 individuals, 100 generations

0 ncar

10 20 (injected traffic)

Best GE rules

1 0.8 0.6 0.4 0.2 0

·10−2

0 ncar

10 20 (injected traffic)

:

slightly higher efficiency higher safety

Medvet et al. (UniTs)

Road traffic rules with GE

20 / 21

Experimental evaluation

Congestion

Overall collisions

Bad 200

100

Good 0

0

2 4 6 Overall distance ·104

Medvet et al. (UniTs)

Road traffic rules with GE

21 / 21

Experimental evaluation

Overall collisions

Congestion

One mark for each ncar value

200

100

0

0

2 4 6 Overall distance ·104

Medvet et al. (UniTs)

Road traffic rules with GE

21 / 21

Experimental evaluation

Overall collisions

Congestion

One mark for each ncar value

200

Congestion: increasing injected traffic does not increase overall distance

100

0

0

2 4 6 Overall distance ·104

Medvet et al. (UniTs)

Road traffic rules with GE

21 / 21

Experimental evaluation

Overall collisions

Congestion

One mark for each ncar value

200

Congestion: increasing injected traffic does not increase overall distance

100

GE vs. hand-written at congestion: 0

longer overall distance 0

2 4 6 Overall distance ·104

Medvet et al. (UniTs)

less overall collisions

Road traffic rules with GE

21 / 21

Experimental evaluation

))) Thanks! )))

Medvet et al. (UniTs)

Road traffic rules with GE

21 / 21

Road Traffic Rules Synthesis using Grammatical ...

fitness → , simulated with those rules ... a language for defining rules applicable to the model. 3 ... input: a list A of actions and a set R of rules.

451KB Sizes 1 Downloads 163 Views

Recommend Documents

Road Traffic Rules Synthesis using Grammatical ...
(UniTs). Road traffic rules with GE. 2 / 21 ... high safety (avoiding accidents) .... each rule is a predicate .... Computed over many (nsim) simulations (stochasticity).

Road Traffic Rules Synthesis using Grammatical ...
Keywords: Simulation, Road traffic model, Stochastic evolution, Driver- less cars. 1 Introduction and related work. Car driving is one of the tasks that in a not far ...

3.Transport Costs Optimization Using Up-To-Date Road Traffic ...
vehicle-to-infrastructure communication systems. In this paper we .... Page 3 of 11. 3.Transport Costs Optimization Using Up-To-Date Road Traffic Information.pdf.

Road Traffic Injuries in Mexico
Aug 16, 2008 - down based on ER data. Figure 1.1: Developing a national snapshot of road traffic injuries in Mexico from all available data sources. Although ...

Rules of the Road - CyberDrive Illinois
For more information about the central issuance process, please visit: ...... An applicant applying for an Illinois driver's license/ID card for the first time is required ..... New drivers are required to take a driving exam in a vehicle representin

Statistics about Road Traffic Accident Claims in UK.pdf
Statistics about Road Traffic Accident Claims in UK.pdf. Statistics about Road Traffic Accident Claims in UK.pdf. Open. Extract. Open with. Sign In. Main menu.

Road Traffic Congestion and Public Information
We gratefully acknowledge financial support from the French Ministry of Transport. (PREDIT program). ..... The experiment was run on a computer network using 128 inexperienced students at the BETA ...... 37, 365–86. Emmerink, R. (ed.) ...

Cambodia Road Traffic Signs 2007.pdf
Sign in. Loading… Page 1. Whoops! There was a problem loading more pages. Retrying... Cambodia Road Traffic Signs 2007.pdf. Cambodia Road Traffic Signs 2007.pdf. Open. Extract. Open with. Sign In. Main menu. Displaying Cambodia Road Traffic Signs 2

Cambodia Road Traffic Signs 2007.pdf
There was a problem previewing this document. Retrying... Download. Connect more apps... Try one of the apps below to open or edit this item. Cambodia Road ...

Grammatical Errors
http://grammarist.com/articles/grammarly-review/. British​ ​English​ ​vs.​ ​American​ ​English​ ​Test. For this test, we'll create a series of sentences that contain distinctly British spelling and. grammatical structures. § The

Filtering Network Traffic Based on Protocol Encapsulation Rules
Fulvio Risso, Politecnico di Torino – ICNC 2013. 1/15. Filtering Network Traffic Based on. Protocol Encapsulation Rules. Fulvio Risso, Politecnico di Torino, Italy.

Hierarchical Grammatical Evolution
in the language de ned by the grammar (the phenotype) by means ... to weakly comply to the variational inheritance principle, stating. Permission to make digital ...

About Grammatical Framework
Jan 8, 2003 - is a generic system used to write and uses mathematical theories with a logical calculus. .... command line interpreter : functions to read grammar files and use grammars in ... delete : replaces subtree with a metavariable.

pdf-358\youtube-seo-ranking-checklists-targeted-traffic-using-online ...
Try one of the apps below to open or edit this item. pdf-358\youtube-seo-ranking-checklists-targeted-traffic-using-online-video-marketing-by-tracy-foote.pdf.

Heavy Traffic Queue Management Using Policy Based ...
Abstract—Traffic management includes queuing, buffer ... the real time implementation of policy based queue management ..... Publications to his credit.

IELTS Academic Writing- Spelling Rules - Using English
has been geting a lot of newspaper coverage recently. ... Match the rules under the fold to the sections above, and use that to help check your answers.

IELTS Academic Writing- Spelling Rules - Using English
has been geting a lot of newspaper coverage recently. ... Match the rules under the fold to the sections above, and use that to help check your answers.

Hierarchical Grammatical Evolution
Jul 19, 2017 - ant Weighted HGE (WHGE), two novel genotype-phenotype map- ... ability to evolve programs in any language, using a user-provided.

Ebook Road Rage Justified: 50 Rules Every Driver ...
Get the latest science news and technology news read tech reviews and more at ... 50 Rules Every Driver Should Follow Full Collection, Read Best Book Online ...

Traffic Grooming in WDM Network Using ILP - Semantic Scholar
Sitesh Shrivastava. Department of Computer Science, ... (2) Dense WDM with nearly 160 wavelengths per fiber ... In recent years, Dense Wavelength Division Multiplexing is widely ..... Sitesh Shrivastava is at present pursuing his B.E. degree.

Traffic Grooming in WDM Network Using ILP - Semantic Scholar
1. Traffic Grooming in WDM Network Using ILP. Partha Paul. Dept. of Computer Science,. Birla Institute of Technology, Mesra, Ranchi, India. Sitesh Shrivastava.