Presentation on theme: "RoboSina from Scratch Submitted as partial Fulfillment for the Requirements of the degree of Bachelor of Science In Software Engineering By Mostafa Rafaie-Jokandan."— Presentation transcript:
RoboSina from Scratch Submitted as partial Fulfillment for the Requirements of the degree of Bachelor of Science In Software Engineering By Mostafa Rafaie-Jokandan & Nima Kaviani
1. Introduction 2. Simulation System and Soccer Server 3. Learning Algorithms used in RoboSina 4. Prominent Aspects of RoboSina 5. RoboSina Agent and Learning 6. Suggestions and Conclusion
Introduction Why RoboCup? An approach to Distributed Artificial Intelligence DAI vs CAI Where are we moving toward? Who were we in RoboSina?
Simulation System & Soccer Server What is a Simulation System? Why Simulation? Soccer Server
Match Rules Controlled by Soccer Server Controlled by Human Properties of the Simulated Pitch A 105.0 * 68.0 field covered by flags Goal widths are twice a real one
Catch Dash & Stamina Model Kick Tackle Turn Move Turn-Neck Point to Focus Say Change View Score Actions for an Agent
Heterogeneous Players Do you know how a body builder differs a normal human? Acting in an environment with heterogeneous creatures covers all possible properties Coach Mapping of DAI to CAI with restricted bandwidth in communication What was the role of Jose Morinio in a team if we didnt have a coach?!!!
Learning Algorithms Definition Decision Trees Artificial Neural Networks
Learning Algorithms- Keywords Environment Property State Goal Learning Algorithm
Learning Algorithms- Keywords Property i State1 State2 State3 Goal State
Decision Trees Definition ID3 Basis ID3 Formulas ID3 Algorithm What is C4.5
Decision Trees - Definition A powerful tool for Inductive Inference Proposing a model for discrete environments Resistance against Noisy Data
? ? Outlook = Sunny, Wind = Weak, Humidity = High D=( ) Playing a Soccer Game in case of having a weather with conditions D
Decision Trees – ID3 Basis Occams Razor, mid of 14 th century It is vain to do with more what can be done with less… entities should not be multiplied beyond necessity
Decision Trees – C4.5 A developed software on the basis of ID3 Its abilities Avoiding over fitting the data Reduced error pruning Rule post-pruning Handling continuous attributes Handling attribute with different costs Choosing an appropriate selection measure Handling training data with missing attribute values Improving computational efficiency
Neural Networks- Definition A mathematical model of humans neurons Its abilities Association, Clustering, Classification Pattern Recognition Generalization, Reference Improvement Classification on the basis of Learning Algorithm Supervised Unsupervised => Competitive
Neural Networks- BackPropagate Basis A supervised learning algorithm Works on the basis of revising Weight Values Training Example (x, t) where x represents the entry, and t is the expected output value a i (l) representes the output gerenrated by the network in the layer named l x = a i (0) m is the frequency for the execution of learning algorithm
Localizing an Agent A new approach used It deals with points rather than edges Uses a swipe line to find active edges A point will be added if : 1.It is a result of an intersection 2.It is surrounded by both active edges of the other polygon Stops after reaching the end point of a polygon It is executed in O(m+n) for 2 polygons T(n) = 2T(n/2) + O (n) It is executed in O(nlogn) using divide and conquer for n polygons
Intercept As a skills Intercept the ball in at any distance. As a strategy utility Determine ball owner Predict ball owner Determine who must be intercept ball. Need to communication to enhance its efficiency
Dribble Running with the ball from one point to another as quickly as possible Misleading obtrusive defender Holding ball if it is need.
Formation Usage Determine Agent position relative to the ball position New Works New Floating Formation Adding A Free midfielder Implementing the main formation as 4-2-3-1 Implementing forwards press.
New Floating Formation The 4-2-3-1 formation is the main formation. 4231
New Floating Formation 4 The 4-2-4 formation is a fully offensive formation. 24
Defense System Skills Block Mark Strategy Offside line Press
Play With Ball System Coming soon !!! It will be published within early days.
RoboSina Agent & Learning Agent learns to Shoot Neural Network and training a shoot skill Using BP and Matlab Agent learns to Pass Decision Trees and training a pass skill Using ID3 and C4.5
Learning how to Shoot Problem Definition Mapping the environment to a discrete model 6 input entries 6 output entries Grabbing relevant properties Using trainer to collect training samples Choosing the proper target to shoot Making the appropriate Neural Network Modeling the network with matlab A 2 layer network tgsig as activation function in the first layer logsig as activation function in the second layer Applying training samples to the network Results
Failed 1 st Successful State Last Successful State State 19 = 100111 State 28 = 111001 State 24 = 110001 (b x, b y ) (g x, g y ) dist cb dir cb 1 0 0 0 1 1 b x b y g x g y dist cb dir cb
Shoot- Results Harms Very time consuming method!! Algorithm Occurrence in 8 matches Success NumSuccess Percentage Computational1419365.9% Learning17312672.8%
Learning how to Pass Problem Definition Grabbing relevant properties Using trainer to collect training samples Making the appropriate Decision Tree using C4.5 to create the tree Creating pass.names file applying training samples to the tree Creating pass.data file Results
Pass- Results Pass ProbabilityOccurrence in 8 matches Success NumSuccess Percentage 85-100%91275378.3% 70-85%32818757.01% 55-70%1689254.7% Harms Partial Observation causes problems Body direction of the receiver is ignored during the train
RoboSina Project Honors Championship of the 3 rd US-Open RoboCup Competitions, May 2005, Atlanta, USA 2 nd place of the 3 rd Iranian Open RoboCup Competitions, April 2005, Tehran, Iran 5 th place of RoboCup World Cup 2004, Lisbon, Portugal Championship of the 2nd US-Open RoboCup Competitions, May 2004, New-Orleans, USA Championship of the 2 nd Iranian Open RoboCup Competitions, March 2004, Tehran, Iran 10 th place RoboCup World Cup 2003, Padova, Italy