SlideShare a Scribd company logo
1 of 48
Road Traffic Rules Synthesis
Using Grammatical Evolution
07 June 2017
University of Trieste
Supervisor: Eric Medvet
Co-supervisors: Alberto Bartoli
Lorenzo Castelli
Author: Jacopo Talamini
Road Traffic (Present Scenario)
Road traffic agents:
 Human drivers
Road traffic rules:
 Traffic rules designed for humans
2
Road Traffic (Future Scenario)
Road traffic agents:
 Human drivers
 Driverless cars
Road traffic rules:
 Traffic rules designed for humans
Do we need other rules or are the same ones suitable for both agents?
3
Road Traffic Agents (I)
 Human drivers
 Driverless cars
Same purposes:
 Reach a destination
 Avoid accidents
 Comply to the rules
4
Road Traffic Agents (II)
 Human drivers
 Driverless cars
Different nature with respect to:
 Reflexiveness
 Reliability
 Making decisions
 …
5
Re-writing the rules (I)
If we could re-write the rules from scratch, we would consider:
 Traffic efficency (reach destination in lowest time possible)
 Traffic safety (avoiding accidents)
How to write those rules?
6
Re-writing the rules (II)
If we could re-write the rules from scratch, we would consider:
 Traffic efficency (reach destination in lowest time possible)
 Traffic safety (avoiding accidents)
How to write those rules?
Proposed solution:
consider an evolutionary approch to write the rules automatically
7
Proposed Solution (I)
Evolutionary approach:
 Individual := set of rules
 Fitness := (efficiency, safety), simulated with those rules
8
Proposed Solution (II)
Evolutionary approach:
 Individual := set of rules
 Fitness := (efficiency, safety), simulated with those rules
Contributions made:
1. Road Traffic model
2. Language for the rules
3. GE-based rules generation
4. Experimental evaluation
9
Road Traffic model (I)
Trade-off:
 Detailed enough to resemble real traffic
 Simple enough to allow for simulation
Describes:
 The physical world
 The driver’s behaviour
10
Road Traffic model (II)
Infrastructure:
 Road graph
(include concepts like road segments, crossroads, lanes in sections)
Agents:
 Move according to the driver’s algorithm
 Continuous position in the sense of the road sections length
 Discrete position on the lanes
 Speed
 Status (collisions)
 …
11
Road Traffic model (III)
12
Driver’s Algorithm (I)
Each car moves according to the driver’s algorithm
Input:
 Input variables (info about closest cars)
 State variables (distance of view, …)
Output:
 a list A of actions:
Examples: accelerate, move on the left lane, ..
13
Driver’s Algorithm (II)
14
Driver’s Algorithm (III)
15
Driver’s Algorithm (IV)
Goals:
 No route to travel, just cross a target distance
 Possibly travel at maximum speed
 Avoid hitting other cars
 Perform always the desired action
16
Driver vs Rules-aware driver (I)
At each time step each driver performs exactly one action from A
Driver’s performed action:
 The first action on the list (most preferred action)
17
Driver vs Rules-aware driver (II)
At each time step each driver performs exactly one action from A
Driver’s performed action:
 The first action on the list (most preferred action)
Rules-aware driver’s performed action:
 The first action a in A which breaks the lowest number of rules
18
Driver vs Rules-aware driver (III)
At each time step each driver performs exactly one action from A
Driver’s performed action:
 The first action on the list (most preferred action)
Rules-aware driver’s performed action:
 The first action a in A which breaks the lowest number of rules
Why driver and rules-aware driver?
19
Driver vs Rules-aware driver (IV)
Why driver and rules-aware driver?
 Driver: free to drive as desired, no constraints
 Rules-aware driver: among preferred actions chooses a permitted one
20
Rules-aware driver prediction algorithm
At each time step rules-aware driver perform a prediction:
 For each action in A
 For k time steps in the future
 Assuming the same action for each time step
Result:
Action that will break the lowest number of rules
The lowest number of rules might be > 0 !
21
Language for the rules (I)
Rule:
 A predicate that can be evaluated to true or false
 Rules-aware drivers consider rules to choose the performed action
 All agents consider the same rules
Works on:
 Car status (speed, position,..)
 Other cars relative distances and speeds
 Current road section/intersection
22
Language for the rules (II)
Rules are expressed as the context-free grammar:
23
Language for the rules (III)
Rules are expressed as the context-free grammar:
24Goal: express rules in a human-readable way
Examples of rules (I)
Examples of possible rules:
 «stay on the rightmost free lane»
 «mantain a low speed near an intersection»
 «keep a minimum distance from the car ahead»
25
Example of rules (II)
Examples of possible rules:
 «stay on the rightmost free lane»
 «mantain a low speed near an intersection»
 «keep a minimum distance from the car ahead»
26
Hand-written rules
 Design inspired by real traffic rules
 Provide a first example of rules to the model
 Compared then with rules generated with GE
27
Evolutionary Computation (I)
We know :
 the nature of the solution
 A way to evaluate a candidate solution
Basic scheme:
 Dynamic population of individuals (individual die and are born)
 Fittest individuals survive and reproduce more than others
 Offspring inherit some character from the parents
28
Evolutionary Computation (II)
 Generational model
At each time tick we have:
 A population of parents
 A population of offspring (built from parents)
29
Evolutionary Computation (III)
Individual:
 Phenotype := candidate solution for the considered problem
 Genotype := its inner representation used for manipulations
Given the genotype of an individual, it is possible to obtain:
 Its phenotype
 Its fitness
30
Grammatical Evolution
Individual:
 Phenotype := string of a Language
 Genotype := binary string
Given the genotype of an individual, it is possible to obtain:
 Its phenotype: through mapping function (genotype -> phenotype)
 Its fitness: the goodness of the phenotype obtained
31
GE-based rules generation
In the considered scenrario:
 Solution space as Context-Free Grammar
 Individual := string of the defined Context-Free Grammar
 Fitness := linear combination of (traffic efficiency, traffic safety)
32
Fitness (I)
 Traffic efficiency := average speed ratio (ASR)
 (1 – AsR) =
 Traffic safety := 1 – collision-per-time (CpT)
 CpT =
Minimize the linear combination (1 – AsR, CpT):
33
Fitness (II)
Meaning of nsim:
The vaule is computed over many (nsim) simulations
It allows to detect common trends in different simulations
Minimize the linear combination (1 – AsR, CpT):
34
Experimental Evaluation (I)
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?
35
Experimental Evaluation (II)
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
36
Traffic model validation (I)
5 road sections, up to 20 cars, values averaged on 10 simulations
37
Traffic model validation (II)
5 road sections, up to 20 cars, values averaged on 10 simulations
38
Traffic model validation (III)
5 road sections, up to 20 cars, values averaged on 10 simulations
39
Traffic model validation (IV)
30 runs, each with 100 individuals, 100 generations, ncar fixed!
 Slightly higher efficiency
 Higher safety 40
Congestion scenario (I)
41
Congestion:
 More traffic injected does not increase overall distance
Congestion scenario (II)
42
Congestion:
 More traffic injected does not increase overall distance
 Consider the case of hand-written rules
Congestion scenario (III)
43
Congestion scenario (IV)
44
Congestion scenario (V)
Results:
With high traffic injected (congestion)
GE vs. hand-written rules:
 Longer overall distance
 Less overall collisions
45
Conclusions
Future work:
 More fine-grained model
 Extend the model to other types of traffic
 …
46
Rules obtained with GE
Hand written rules

More Related Content

Similar to Road traffic rules synthesis using grammatical evolution

BBL multi agent systems
BBL multi agent systemsBBL multi agent systems
BBL multi agent systemsCédric BURON
 
Ontologies for Advanced Driver Assistance Systems
Ontologies for Advanced Driver Assistance SystemsOntologies for Advanced Driver Assistance Systems
Ontologies for Advanced Driver Assistance SystemsLihua Zhao
 
FOLLOWING CAR ALGORITHM WITH MULTI AGENT RANDOMIZED SYSTEM
FOLLOWING CAR ALGORITHM WITH MULTI AGENT RANDOMIZED SYSTEMFOLLOWING CAR ALGORITHM WITH MULTI AGENT RANDOMIZED SYSTEM
FOLLOWING CAR ALGORITHM WITH MULTI AGENT RANDOMIZED SYSTEMijcsit
 
REVIEW OF MICROSCOPIC TRAFFIC MODEL USING ARTIFICIAL INTELLIGENCE.pptx
REVIEW OF MICROSCOPIC TRAFFIC MODEL USING ARTIFICIAL INTELLIGENCE.pptxREVIEW OF MICROSCOPIC TRAFFIC MODEL USING ARTIFICIAL INTELLIGENCE.pptx
REVIEW OF MICROSCOPIC TRAFFIC MODEL USING ARTIFICIAL INTELLIGENCE.pptxJonathanOkpanachi
 
The Future of Mixed-Autonomy Traffic (AIS302) - AWS re:Invent 2018
The Future of Mixed-Autonomy Traffic (AIS302) - AWS re:Invent 2018The Future of Mixed-Autonomy Traffic (AIS302) - AWS re:Invent 2018
The Future of Mixed-Autonomy Traffic (AIS302) - AWS re:Invent 2018Amazon Web Services
 
A STUDY ON MULTI STAGE MULTIOBJECTIVE TRANSPORTATION PROBLEM UNDER UNCERTAINT...
A STUDY ON MULTI STAGE MULTIOBJECTIVE TRANSPORTATION PROBLEM UNDER UNCERTAINT...A STUDY ON MULTI STAGE MULTIOBJECTIVE TRANSPORTATION PROBLEM UNDER UNCERTAINT...
A STUDY ON MULTI STAGE MULTIOBJECTIVE TRANSPORTATION PROBLEM UNDER UNCERTAINT...IAEME Publication
 
Active modes and urban mobility: outcomes from the ALLEGRO project
Active modes and urban mobility: outcomes from the ALLEGRO projectActive modes and urban mobility: outcomes from the ALLEGRO project
Active modes and urban mobility: outcomes from the ALLEGRO projectSerge Hoogendoorn
 
REVIEW OF OPTIMAL SPEED MODEL
REVIEW OF OPTIMAL SPEED MODELREVIEW OF OPTIMAL SPEED MODEL
REVIEW OF OPTIMAL SPEED MODELGyambar Adamu
 
Fuzzy power point 1
Fuzzy power point 1Fuzzy power point 1
Fuzzy power point 1IshqUsmn
 
Help the Genetic Algorithm to Minimize the Urban Traffic on Intersections
Help the Genetic Algorithm to Minimize the Urban Traffic on IntersectionsHelp the Genetic Algorithm to Minimize the Urban Traffic on Intersections
Help the Genetic Algorithm to Minimize the Urban Traffic on IntersectionsIJORCS
 
Future of intelligent transportation CIO Roundtable 080214
Future of intelligent transportation   CIO Roundtable 080214Future of intelligent transportation   CIO Roundtable 080214
Future of intelligent transportation CIO Roundtable 080214James Sutter
 
Multi-agent approach to resource allocation inautonomous vehicle fleet
Multi-agent approach to resource allocation inautonomous vehicle fleetMulti-agent approach to resource allocation inautonomous vehicle fleet
Multi-agent approach to resource allocation inautonomous vehicle fleetdaoudalaa
 

Similar to Road traffic rules synthesis using grammatical evolution (20)

The Physics of Active Modes
The Physics of Active ModesThe Physics of Active Modes
The Physics of Active Modes
 
Optimal combination of operators in Genetic Algorithmsfor VRP problems
Optimal combination of operators in Genetic Algorithmsfor VRP problemsOptimal combination of operators in Genetic Algorithmsfor VRP problems
Optimal combination of operators in Genetic Algorithmsfor VRP problems
 
BBL multi agent systems
BBL multi agent systemsBBL multi agent systems
BBL multi agent systems
 
Ontologies for Advanced Driver Assistance Systems
Ontologies for Advanced Driver Assistance SystemsOntologies for Advanced Driver Assistance Systems
Ontologies for Advanced Driver Assistance Systems
 
FOLLOWING CAR ALGORITHM WITH MULTI AGENT RANDOMIZED SYSTEM
FOLLOWING CAR ALGORITHM WITH MULTI AGENT RANDOMIZED SYSTEMFOLLOWING CAR ALGORITHM WITH MULTI AGENT RANDOMIZED SYSTEM
FOLLOWING CAR ALGORITHM WITH MULTI AGENT RANDOMIZED SYSTEM
 
REVIEW OF MICROSCOPIC TRAFFIC MODEL USING ARTIFICIAL INTELLIGENCE.pptx
REVIEW OF MICROSCOPIC TRAFFIC MODEL USING ARTIFICIAL INTELLIGENCE.pptxREVIEW OF MICROSCOPIC TRAFFIC MODEL USING ARTIFICIAL INTELLIGENCE.pptx
REVIEW OF MICROSCOPIC TRAFFIC MODEL USING ARTIFICIAL INTELLIGENCE.pptx
 
Traveling Eco-Salesman
Traveling Eco-SalesmanTraveling Eco-Salesman
Traveling Eco-Salesman
 
The Future of Mixed-Autonomy Traffic (AIS302) - AWS re:Invent 2018
The Future of Mixed-Autonomy Traffic (AIS302) - AWS re:Invent 2018The Future of Mixed-Autonomy Traffic (AIS302) - AWS re:Invent 2018
The Future of Mixed-Autonomy Traffic (AIS302) - AWS re:Invent 2018
 
Major ppt
Major pptMajor ppt
Major ppt
 
A STUDY ON MULTI STAGE MULTIOBJECTIVE TRANSPORTATION PROBLEM UNDER UNCERTAINT...
A STUDY ON MULTI STAGE MULTIOBJECTIVE TRANSPORTATION PROBLEM UNDER UNCERTAINT...A STUDY ON MULTI STAGE MULTIOBJECTIVE TRANSPORTATION PROBLEM UNDER UNCERTAINT...
A STUDY ON MULTI STAGE MULTIOBJECTIVE TRANSPORTATION PROBLEM UNDER UNCERTAINT...
 
Active modes and urban mobility: outcomes from the ALLEGRO project
Active modes and urban mobility: outcomes from the ALLEGRO projectActive modes and urban mobility: outcomes from the ALLEGRO project
Active modes and urban mobility: outcomes from the ALLEGRO project
 
Improved Hybrid Behavior Ant Colony Algorithm to Solve the Vehicle Routing Pr...
Improved Hybrid Behavior Ant Colony Algorithm to Solve the Vehicle Routing Pr...Improved Hybrid Behavior Ant Colony Algorithm to Solve the Vehicle Routing Pr...
Improved Hybrid Behavior Ant Colony Algorithm to Solve the Vehicle Routing Pr...
 
REVIEW OF OPTIMAL SPEED MODEL
REVIEW OF OPTIMAL SPEED MODELREVIEW OF OPTIMAL SPEED MODEL
REVIEW OF OPTIMAL SPEED MODEL
 
Fuzzy power point 1
Fuzzy power point 1Fuzzy power point 1
Fuzzy power point 1
 
Help the Genetic Algorithm to Minimize the Urban Traffic on Intersections
Help the Genetic Algorithm to Minimize the Urban Traffic on IntersectionsHelp the Genetic Algorithm to Minimize the Urban Traffic on Intersections
Help the Genetic Algorithm to Minimize the Urban Traffic on Intersections
 
Driving simulators to support the design of autonomous vehicles
Driving simulators to support the design of autonomous vehiclesDriving simulators to support the design of autonomous vehicles
Driving simulators to support the design of autonomous vehicles
 
20090319 Md Gss Ind
20090319 Md Gss Ind20090319 Md Gss Ind
20090319 Md Gss Ind
 
AD VANCED TRAFFIC ENGINEERING ASSIGNMENT CIV 8331
AD VANCED TRAFFIC ENGINEERING ASSIGNMENT CIV 8331 AD VANCED TRAFFIC ENGINEERING ASSIGNMENT CIV 8331
AD VANCED TRAFFIC ENGINEERING ASSIGNMENT CIV 8331
 
Future of intelligent transportation CIO Roundtable 080214
Future of intelligent transportation   CIO Roundtable 080214Future of intelligent transportation   CIO Roundtable 080214
Future of intelligent transportation CIO Roundtable 080214
 
Multi-agent approach to resource allocation inautonomous vehicle fleet
Multi-agent approach to resource allocation inautonomous vehicle fleetMulti-agent approach to resource allocation inautonomous vehicle fleet
Multi-agent approach to resource allocation inautonomous vehicle fleet
 

Recently uploaded

Porous Ceramics seminar and technical writing
Porous Ceramics seminar and technical writingPorous Ceramics seminar and technical writing
Porous Ceramics seminar and technical writingrakeshbaidya232001
 
College Call Girls Nashik Nehal 7001305949 Independent Escort Service Nashik
College Call Girls Nashik Nehal 7001305949 Independent Escort Service NashikCollege Call Girls Nashik Nehal 7001305949 Independent Escort Service Nashik
College Call Girls Nashik Nehal 7001305949 Independent Escort Service NashikCall Girls in Nagpur High Profile
 
Coefficient of Thermal Expansion and their Importance.pptx
Coefficient of Thermal Expansion and their Importance.pptxCoefficient of Thermal Expansion and their Importance.pptx
Coefficient of Thermal Expansion and their Importance.pptxAsutosh Ranjan
 
Software Development Life Cycle By Team Orange (Dept. of Pharmacy)
Software Development Life Cycle By  Team Orange (Dept. of Pharmacy)Software Development Life Cycle By  Team Orange (Dept. of Pharmacy)
Software Development Life Cycle By Team Orange (Dept. of Pharmacy)Suman Mia
 
ZXCTN 5804 / ZTE PTN / ZTE POTN / ZTE 5804 PTN / ZTE POTN 5804 ( 100/200 GE Z...
ZXCTN 5804 / ZTE PTN / ZTE POTN / ZTE 5804 PTN / ZTE POTN 5804 ( 100/200 GE Z...ZXCTN 5804 / ZTE PTN / ZTE POTN / ZTE 5804 PTN / ZTE POTN 5804 ( 100/200 GE Z...
ZXCTN 5804 / ZTE PTN / ZTE POTN / ZTE 5804 PTN / ZTE POTN 5804 ( 100/200 GE Z...ZTE
 
Introduction and different types of Ethernet.pptx
Introduction and different types of Ethernet.pptxIntroduction and different types of Ethernet.pptx
Introduction and different types of Ethernet.pptxupamatechverse
 
Decoding Kotlin - Your guide to solving the mysterious in Kotlin.pptx
Decoding Kotlin - Your guide to solving the mysterious in Kotlin.pptxDecoding Kotlin - Your guide to solving the mysterious in Kotlin.pptx
Decoding Kotlin - Your guide to solving the mysterious in Kotlin.pptxJoão Esperancinha
 
Introduction to Multiple Access Protocol.pptx
Introduction to Multiple Access Protocol.pptxIntroduction to Multiple Access Protocol.pptx
Introduction to Multiple Access Protocol.pptxupamatechverse
 
Model Call Girl in Narela Delhi reach out to us at 🔝8264348440🔝
Model Call Girl in Narela Delhi reach out to us at 🔝8264348440🔝Model Call Girl in Narela Delhi reach out to us at 🔝8264348440🔝
Model Call Girl in Narela Delhi reach out to us at 🔝8264348440🔝soniya singh
 
VIP Call Girls Service Hitech City Hyderabad Call +91-8250192130
VIP Call Girls Service Hitech City Hyderabad Call +91-8250192130VIP Call Girls Service Hitech City Hyderabad Call +91-8250192130
VIP Call Girls Service Hitech City Hyderabad Call +91-8250192130Suhani Kapoor
 
Sheet Pile Wall Design and Construction: A Practical Guide for Civil Engineer...
Sheet Pile Wall Design and Construction: A Practical Guide for Civil Engineer...Sheet Pile Wall Design and Construction: A Practical Guide for Civil Engineer...
Sheet Pile Wall Design and Construction: A Practical Guide for Civil Engineer...Dr.Costas Sachpazis
 
(ANVI) Koregaon Park Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(ANVI) Koregaon Park Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...(ANVI) Koregaon Park Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(ANVI) Koregaon Park Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...ranjana rawat
 
Internship report on mechanical engineering
Internship report on mechanical engineeringInternship report on mechanical engineering
Internship report on mechanical engineeringmalavadedarshan25
 
OSVC_Meta-Data based Simulation Automation to overcome Verification Challenge...
OSVC_Meta-Data based Simulation Automation to overcome Verification Challenge...OSVC_Meta-Data based Simulation Automation to overcome Verification Challenge...
OSVC_Meta-Data based Simulation Automation to overcome Verification Challenge...Soham Mondal
 
GDSC ASEB Gen AI study jams presentation
GDSC ASEB Gen AI study jams presentationGDSC ASEB Gen AI study jams presentation
GDSC ASEB Gen AI study jams presentationGDSCAESB
 
Structural Analysis and Design of Foundations: A Comprehensive Handbook for S...
Structural Analysis and Design of Foundations: A Comprehensive Handbook for S...Structural Analysis and Design of Foundations: A Comprehensive Handbook for S...
Structural Analysis and Design of Foundations: A Comprehensive Handbook for S...Dr.Costas Sachpazis
 
MANUFACTURING PROCESS-II UNIT-5 NC MACHINE TOOLS
MANUFACTURING PROCESS-II UNIT-5 NC MACHINE TOOLSMANUFACTURING PROCESS-II UNIT-5 NC MACHINE TOOLS
MANUFACTURING PROCESS-II UNIT-5 NC MACHINE TOOLSSIVASHANKAR N
 

Recently uploaded (20)

Porous Ceramics seminar and technical writing
Porous Ceramics seminar and technical writingPorous Ceramics seminar and technical writing
Porous Ceramics seminar and technical writing
 
College Call Girls Nashik Nehal 7001305949 Independent Escort Service Nashik
College Call Girls Nashik Nehal 7001305949 Independent Escort Service NashikCollege Call Girls Nashik Nehal 7001305949 Independent Escort Service Nashik
College Call Girls Nashik Nehal 7001305949 Independent Escort Service Nashik
 
Coefficient of Thermal Expansion and their Importance.pptx
Coefficient of Thermal Expansion and their Importance.pptxCoefficient of Thermal Expansion and their Importance.pptx
Coefficient of Thermal Expansion and their Importance.pptx
 
★ CALL US 9953330565 ( HOT Young Call Girls In Badarpur delhi NCR
★ CALL US 9953330565 ( HOT Young Call Girls In Badarpur delhi NCR★ CALL US 9953330565 ( HOT Young Call Girls In Badarpur delhi NCR
★ CALL US 9953330565 ( HOT Young Call Girls In Badarpur delhi NCR
 
Software Development Life Cycle By Team Orange (Dept. of Pharmacy)
Software Development Life Cycle By  Team Orange (Dept. of Pharmacy)Software Development Life Cycle By  Team Orange (Dept. of Pharmacy)
Software Development Life Cycle By Team Orange (Dept. of Pharmacy)
 
ZXCTN 5804 / ZTE PTN / ZTE POTN / ZTE 5804 PTN / ZTE POTN 5804 ( 100/200 GE Z...
ZXCTN 5804 / ZTE PTN / ZTE POTN / ZTE 5804 PTN / ZTE POTN 5804 ( 100/200 GE Z...ZXCTN 5804 / ZTE PTN / ZTE POTN / ZTE 5804 PTN / ZTE POTN 5804 ( 100/200 GE Z...
ZXCTN 5804 / ZTE PTN / ZTE POTN / ZTE 5804 PTN / ZTE POTN 5804 ( 100/200 GE Z...
 
Introduction and different types of Ethernet.pptx
Introduction and different types of Ethernet.pptxIntroduction and different types of Ethernet.pptx
Introduction and different types of Ethernet.pptx
 
Decoding Kotlin - Your guide to solving the mysterious in Kotlin.pptx
Decoding Kotlin - Your guide to solving the mysterious in Kotlin.pptxDecoding Kotlin - Your guide to solving the mysterious in Kotlin.pptx
Decoding Kotlin - Your guide to solving the mysterious in Kotlin.pptx
 
Introduction to Multiple Access Protocol.pptx
Introduction to Multiple Access Protocol.pptxIntroduction to Multiple Access Protocol.pptx
Introduction to Multiple Access Protocol.pptx
 
Model Call Girl in Narela Delhi reach out to us at 🔝8264348440🔝
Model Call Girl in Narela Delhi reach out to us at 🔝8264348440🔝Model Call Girl in Narela Delhi reach out to us at 🔝8264348440🔝
Model Call Girl in Narela Delhi reach out to us at 🔝8264348440🔝
 
VIP Call Girls Service Hitech City Hyderabad Call +91-8250192130
VIP Call Girls Service Hitech City Hyderabad Call +91-8250192130VIP Call Girls Service Hitech City Hyderabad Call +91-8250192130
VIP Call Girls Service Hitech City Hyderabad Call +91-8250192130
 
Sheet Pile Wall Design and Construction: A Practical Guide for Civil Engineer...
Sheet Pile Wall Design and Construction: A Practical Guide for Civil Engineer...Sheet Pile Wall Design and Construction: A Practical Guide for Civil Engineer...
Sheet Pile Wall Design and Construction: A Practical Guide for Civil Engineer...
 
(ANVI) Koregaon Park Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(ANVI) Koregaon Park Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...(ANVI) Koregaon Park Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(ANVI) Koregaon Park Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
 
Internship report on mechanical engineering
Internship report on mechanical engineeringInternship report on mechanical engineering
Internship report on mechanical engineering
 
Exploring_Network_Security_with_JA3_by_Rakesh Seal.pptx
Exploring_Network_Security_with_JA3_by_Rakesh Seal.pptxExploring_Network_Security_with_JA3_by_Rakesh Seal.pptx
Exploring_Network_Security_with_JA3_by_Rakesh Seal.pptx
 
OSVC_Meta-Data based Simulation Automation to overcome Verification Challenge...
OSVC_Meta-Data based Simulation Automation to overcome Verification Challenge...OSVC_Meta-Data based Simulation Automation to overcome Verification Challenge...
OSVC_Meta-Data based Simulation Automation to overcome Verification Challenge...
 
9953056974 Call Girls In South Ex, Escorts (Delhi) NCR.pdf
9953056974 Call Girls In South Ex, Escorts (Delhi) NCR.pdf9953056974 Call Girls In South Ex, Escorts (Delhi) NCR.pdf
9953056974 Call Girls In South Ex, Escorts (Delhi) NCR.pdf
 
GDSC ASEB Gen AI study jams presentation
GDSC ASEB Gen AI study jams presentationGDSC ASEB Gen AI study jams presentation
GDSC ASEB Gen AI study jams presentation
 
Structural Analysis and Design of Foundations: A Comprehensive Handbook for S...
Structural Analysis and Design of Foundations: A Comprehensive Handbook for S...Structural Analysis and Design of Foundations: A Comprehensive Handbook for S...
Structural Analysis and Design of Foundations: A Comprehensive Handbook for S...
 
MANUFACTURING PROCESS-II UNIT-5 NC MACHINE TOOLS
MANUFACTURING PROCESS-II UNIT-5 NC MACHINE TOOLSMANUFACTURING PROCESS-II UNIT-5 NC MACHINE TOOLS
MANUFACTURING PROCESS-II UNIT-5 NC MACHINE TOOLS
 

Road traffic rules synthesis using grammatical evolution

  • 1. Road Traffic Rules Synthesis Using Grammatical Evolution 07 June 2017 University of Trieste Supervisor: Eric Medvet Co-supervisors: Alberto Bartoli Lorenzo Castelli Author: Jacopo Talamini
  • 2. Road Traffic (Present Scenario) Road traffic agents:  Human drivers Road traffic rules:  Traffic rules designed for humans 2
  • 3. Road Traffic (Future Scenario) Road traffic agents:  Human drivers  Driverless cars Road traffic rules:  Traffic rules designed for humans Do we need other rules or are the same ones suitable for both agents? 3
  • 4. Road Traffic Agents (I)  Human drivers  Driverless cars Same purposes:  Reach a destination  Avoid accidents  Comply to the rules 4
  • 5. Road Traffic Agents (II)  Human drivers  Driverless cars Different nature with respect to:  Reflexiveness  Reliability  Making decisions  … 5
  • 6. Re-writing the rules (I) If we could re-write the rules from scratch, we would consider:  Traffic efficency (reach destination in lowest time possible)  Traffic safety (avoiding accidents) How to write those rules? 6
  • 7. Re-writing the rules (II) If we could re-write the rules from scratch, we would consider:  Traffic efficency (reach destination in lowest time possible)  Traffic safety (avoiding accidents) How to write those rules? Proposed solution: consider an evolutionary approch to write the rules automatically 7
  • 8. Proposed Solution (I) Evolutionary approach:  Individual := set of rules  Fitness := (efficiency, safety), simulated with those rules 8
  • 9. Proposed Solution (II) Evolutionary approach:  Individual := set of rules  Fitness := (efficiency, safety), simulated with those rules Contributions made: 1. Road Traffic model 2. Language for the rules 3. GE-based rules generation 4. Experimental evaluation 9
  • 10. Road Traffic model (I) Trade-off:  Detailed enough to resemble real traffic  Simple enough to allow for simulation Describes:  The physical world  The driver’s behaviour 10
  • 11. Road Traffic model (II) Infrastructure:  Road graph (include concepts like road segments, crossroads, lanes in sections) Agents:  Move according to the driver’s algorithm  Continuous position in the sense of the road sections length  Discrete position on the lanes  Speed  Status (collisions)  … 11
  • 12. Road Traffic model (III) 12
  • 13. Driver’s Algorithm (I) Each car moves according to the driver’s algorithm Input:  Input variables (info about closest cars)  State variables (distance of view, …) Output:  a list A of actions: Examples: accelerate, move on the left lane, .. 13
  • 16. Driver’s Algorithm (IV) Goals:  No route to travel, just cross a target distance  Possibly travel at maximum speed  Avoid hitting other cars  Perform always the desired action 16
  • 17. Driver vs Rules-aware driver (I) At each time step each driver performs exactly one action from A Driver’s performed action:  The first action on the list (most preferred action) 17
  • 18. Driver vs Rules-aware driver (II) At each time step each driver performs exactly one action from A Driver’s performed action:  The first action on the list (most preferred action) Rules-aware driver’s performed action:  The first action a in A which breaks the lowest number of rules 18
  • 19. Driver vs Rules-aware driver (III) At each time step each driver performs exactly one action from A Driver’s performed action:  The first action on the list (most preferred action) Rules-aware driver’s performed action:  The first action a in A which breaks the lowest number of rules Why driver and rules-aware driver? 19
  • 20. Driver vs Rules-aware driver (IV) Why driver and rules-aware driver?  Driver: free to drive as desired, no constraints  Rules-aware driver: among preferred actions chooses a permitted one 20
  • 21. Rules-aware driver prediction algorithm At each time step rules-aware driver perform a prediction:  For each action in A  For k time steps in the future  Assuming the same action for each time step Result: Action that will break the lowest number of rules The lowest number of rules might be > 0 ! 21
  • 22. Language for the rules (I) Rule:  A predicate that can be evaluated to true or false  Rules-aware drivers consider rules to choose the performed action  All agents consider the same rules Works on:  Car status (speed, position,..)  Other cars relative distances and speeds  Current road section/intersection 22
  • 23. Language for the rules (II) Rules are expressed as the context-free grammar: 23
  • 24. Language for the rules (III) Rules are expressed as the context-free grammar: 24Goal: express rules in a human-readable way
  • 25. Examples of rules (I) Examples of possible rules:  «stay on the rightmost free lane»  «mantain a low speed near an intersection»  «keep a minimum distance from the car ahead» 25
  • 26. Example of rules (II) Examples of possible rules:  «stay on the rightmost free lane»  «mantain a low speed near an intersection»  «keep a minimum distance from the car ahead» 26
  • 27. Hand-written rules  Design inspired by real traffic rules  Provide a first example of rules to the model  Compared then with rules generated with GE 27
  • 28. Evolutionary Computation (I) We know :  the nature of the solution  A way to evaluate a candidate solution Basic scheme:  Dynamic population of individuals (individual die and are born)  Fittest individuals survive and reproduce more than others  Offspring inherit some character from the parents 28
  • 29. Evolutionary Computation (II)  Generational model At each time tick we have:  A population of parents  A population of offspring (built from parents) 29
  • 30. Evolutionary Computation (III) Individual:  Phenotype := candidate solution for the considered problem  Genotype := its inner representation used for manipulations Given the genotype of an individual, it is possible to obtain:  Its phenotype  Its fitness 30
  • 31. Grammatical Evolution Individual:  Phenotype := string of a Language  Genotype := binary string Given the genotype of an individual, it is possible to obtain:  Its phenotype: through mapping function (genotype -> phenotype)  Its fitness: the goodness of the phenotype obtained 31
  • 32. GE-based rules generation In the considered scenrario:  Solution space as Context-Free Grammar  Individual := string of the defined Context-Free Grammar  Fitness := linear combination of (traffic efficiency, traffic safety) 32
  • 33. Fitness (I)  Traffic efficiency := average speed ratio (ASR)  (1 – AsR) =  Traffic safety := 1 – collision-per-time (CpT)  CpT = Minimize the linear combination (1 – AsR, CpT): 33
  • 34. Fitness (II) Meaning of nsim: The vaule is computed over many (nsim) simulations It allows to detect common trends in different simulations Minimize the linear combination (1 – AsR, CpT): 34
  • 35. Experimental Evaluation (I) 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? 35
  • 36. Experimental Evaluation (II) 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 36
  • 37. Traffic model validation (I) 5 road sections, up to 20 cars, values averaged on 10 simulations 37
  • 38. Traffic model validation (II) 5 road sections, up to 20 cars, values averaged on 10 simulations 38
  • 39. Traffic model validation (III) 5 road sections, up to 20 cars, values averaged on 10 simulations 39
  • 40. Traffic model validation (IV) 30 runs, each with 100 individuals, 100 generations, ncar fixed!  Slightly higher efficiency  Higher safety 40
  • 41. Congestion scenario (I) 41 Congestion:  More traffic injected does not increase overall distance
  • 42. Congestion scenario (II) 42 Congestion:  More traffic injected does not increase overall distance  Consider the case of hand-written rules
  • 45. Congestion scenario (V) Results: With high traffic injected (congestion) GE vs. hand-written rules:  Longer overall distance  Less overall collisions 45
  • 46. Conclusions Future work:  More fine-grained model  Extend the model to other types of traffic  … 46