Pac-Man AI using GA. Why Machine Learning in Video Games? Better player experience Agents can adapt to player Increased variety of agent behaviors Ever-changing.

Slides:



Advertisements
Similar presentations
Genetic Algorithms Genetic Programming Ata Kaban School of Computer Science University of Birmingham 2003.
Advertisements

Yuri R. Tsoy, Vladimir G. Spitsyn, Department of Computer Engineering
Genetic Algorithms (Evolutionary Computing) Genetic Algorithms are used to try to “evolve” the solution to a problem Generate prototype solutions called.
Constructing Complex NPC Behavior via Multi- Objective Neuroevolution Jacob Schrum – Risto Miikkulainen –
Genetic Algorithms By: Anna Scheuler and Aaron Smittle.
Biologically Inspired AI (mostly GAs). Some Examples of Biologically Inspired Computation Neural networks Evolutionary computation (e.g., genetic algorithms)
Institute of Intelligent Power Electronics – IPE Page1 Introduction to Basics of Genetic Algorithms Docent Xiao-Zhi Gao Department of Electrical Engineering.
4-1 Management Information Systems for the Information Age Copyright 2002 The McGraw-Hill Companies, Inc. All rights reserved Chapter 4 Decision Support.
Neuro-Evolution of Augmenting Topologies Ben Trewhella.
Genetic Algorithms. Some Examples of Biologically Inspired AI Neural networks Evolutionary computation (e.g., genetic algorithms) Immune-system-inspired.
Evolving Neural Network Agents in the NERO Video Game Author : Kenneth O. Stanley, Bobby D. Bryant, and Risto Miikkulainen Presented by Yi Cheng Lin.
And Just Games etc.. EVOLUTION OF COMPUTER GAMES PongOdyssey Beginning of the use of microprocessors ATARI VCS system bit.
Evolutionary Algorithms Simon M. Lucas. The basic idea Initialise a random population of individuals repeat { evaluate select vary (e.g. mutate or crossover)
1. 2 overview Background on video games Background on video games Neural networks Neural networks NE NE NEAT NEAT rtNEAT rtNEAT NERO NERO.
Evolutionary Reinforcement Learning Systems Presented by Alp Sardağ.
Marcus Gallagher and Mark Ledwich School of Information Technology and Electrical Engineering University of Queensland, Australia Sumaira Saeed Evolving.
McGraw-Hill/Irwin Copyright © 2013 by The McGraw-Hill Companies, Inc. All rights reserved. Chapter 4 Analytics, Decision Support, and Artificial Intelligence:
Evolving Multi-modal Behavior in NPCs Jacob Schrum – Risto Miikkulainen –
Evolutionary Algorithms and Artificial Intelligence Paul Grouchy PhD Candidate University of Toronto Institute for Aerospace Studies
Evolutionary Robotics NEAT / HyperNEAT Stanley, K.O., Miikkulainen (2001) Evolving Neural Networks through Augmenting Topologies. Competing Conventions:
Introduction to AI Michael J. Watts
C. Benatti, 3/15/2012, Slide 1 GA/ICA Workshop Carla Benatti 3/15/2012.
Introduction to Genetic Algorithms and Evolutionary Computation
Cristian Urs and Ben Riveira. Introduction The article we chose focuses on improving the performance of Genetic Algorithms by: Use of predictive models.
Four Types of Decisions (p p.130) Structured vs. Nonstructured(Examples?) –Structured: Follow rules and criteria. The right answer exists. No “feel”
Soft Computing Lecture 18 Foundations of genetic algorithms (GA). Using of GA.
An Introduction to Artificial Intelligence and Knowledge Engineering N. Kasabov, Foundations of Neural Networks, Fuzzy Systems, and Knowledge Engineering,
CAP6938 Neuroevolution and Developmental Encoding Working with NEAT Dr. Kenneth Stanley September 27, 2006.
Jorge Munoz, German Gutierrez, Araceli Sanchis Presented by: Itay Bittan.
Constructing Intelligent Agents via Neuroevolution By Jacob Schrum
Study on Genetic Network Programming (GNP) with Learning and Evolution Hirasawa laboratory, Artificial Intelligence section Information architecture field.
Lecture 8: 24/5/1435 Genetic Algorithms Lecturer/ Kawther Abas 363CS – Artificial Intelligence.
Design of a real time strategy game with a genetic AI By Bharat Ponnaluri.
Evolutionary Computation and Game Development Part 1: Background.
Machine Learning for an Artificial Intelligence Playing Tic-Tac-Toe Computer Systems Lab 2005 By Rachel Miller.
Overview of Machine Learning RPI Robotics Lab Spring 2011 Kane Hadley.
CAP6938 Neuroevolution and Developmental Encoding Real-time NEAT Dr. Kenneth Stanley October 18, 2006.
Game Theory, Social Interactions and Artificial Intelligence Supervisor: Philip Sterne Supervisee: John Richter.
UTeach Presentation By Jacob Schrum. Who Am I? Jacob Schrum Born in Honolulu, Hawaii Undergraduate at Southwestern University PhD Student at University.
Mike Taks Bram van de Klundert. About Published 2005 Cited 286 times Kenneth O. Stanley Associate Professor at University of Central Florida Risto Miikkulainen.
科技英文作業 黃方世 陳竹軒. Introduction Talking about video games. Training agents for what. Focus on training Non-player-character (NPC).
 Based on observed functioning of human brain.  (Artificial Neural Networks (ANN)  Our view of neural networks is very simplistic.  We view a neural.
1. Genetic Algorithms: An Overview  Objectives - Studying basic principle of GA - Understanding applications in prisoner’s dilemma & sorting network.
Artificial Intelligence Research in Video Games By Jacob Schrum
CITS7212: Computational Intelligence An Overview of Core CI Technologies Lyndon While.
CAP6938 Neuroevolution and Artificial Embryogeny Competitive Coevolution Dr. Kenneth Stanley February 20, 2006.
Evolving Multimodal Networks for Multitask Games
CAP6938 Neuroevolution and Developmental Encoding Intro to Neuroevolution Dr. Kenneth Stanley September 18, 2006.
CAP6938 Neuroevolution and Artificial Embryogeny Neural Network Weight Optimization Dr. Kenneth Stanley January 18, 2006.
Design of a real time strategy game with a genetic AI By Bharat Ponnaluri.
Artificial Intelligence By Mr. Ejaz CIIT Sahiwal Evolutionary Computation.
CAP6938 Neuroevolution and Artificial Embryogeny Evolutionary Comptation Dr. Kenneth Stanley January 23, 2006.
CAP6938 Neuroevolution and Artificial Embryogeny Real-time NEAT Dr. Kenneth Stanley February 22, 2006.
An Evolutionary Algorithm for Neural Network Learning using Direct Encoding Paul Batchis Department of Computer Science Rutgers University.
Evolving robot brains using vision Lisa Meeden Computer Science Department Swarthmore College.
Genetic Algorithm(GA)
George Yauneridge.  Machine learning basics  Types of learning algorithms  Genetic algorithm basics  Applications and the future of genetic algorithms.
Evolutionary Design of the Closed Loop Control on the Basis of NN-ANARX Model Using Genetic Algoritm.
March 1, 2016Introduction to Artificial Intelligence Lecture 11: Machine Evolution 1 Let’s look at… Machine Evolution.
 Negnevitsky, Pearson Education, Lecture 12 Hybrid intelligent systems: Evolutionary neural networks and fuzzy evolutionary systems n Introduction.
Evolutionary Computation Evolving Neural Network Topologies.
CAP6938 Neuroevolution and Artificial Embryogeny Real-time NEAT Dr. Kenneth Stanley February 22, 2006.
Dr. Kenneth Stanley September 11, 2006
Evolutionary Algorithms Jim Whitehead
Dr. Kenneth Stanley January 30, 2006
Dr. Kenneth Stanley September 6, 2006
Introduction to Artificial Intelligence Lecture 11: Machine Evolution
Future of Artificial Intelligence
Lecture 4. Niching and Speciation (1)
Artificial Intelligence Machine Learning
Presentation transcript:

Pac-Man AI using GA

Why Machine Learning in Video Games? Better player experience Agents can adapt to player Increased variety of agent behaviors Ever-changing behaviors –Entirely new game genres possible What is the goal? –Fun! –Not “optimal performance”

Why Artificial Neural Networks (ANNS) In Video Games? Continuous control Resistant to noise Low CPU burden Many domain-general tweaks –Sensitive/weaken sensors –Strengthen/weaken outputs –Slightly perturb weights –Add/substract inputs/outputs Evolvable!

Should ANNs Be Evolved In the Game or Before the Game? Depends what you’re trying to do –Find a good behavior: Before –Prevent player exploitation: In-Game In-Game is a lot harder –But leads to interesting new possibilities

Why Evolve ANNs In Video Games? Evolution is a simple answer to the reinforcement learning / credit assignment problem for video games –Action selection instead of value estimation works well in high-dimensional state/action Space –A population includes diverse behaviors –Consistent individual behaviors –Fast adaptation of small networks –Memory of past states

Basic Concepts Artificial Neural Networks (ANNs) –Loose abstraction of brains –Can be used to control NPCs

Basic Concepts ANN activation

Basic Concepts Evolutionary Computation (Genetic Algorithms) –Create a population of candidates –Loop Evaluate the entire population the task (fitness) Choose the better individuals Mate (crossover) and mutate to form next Generation Repeat loop Darwinian survival-of-the-fittest takes hold

Basic Concepts ANNs + Evolution = Neuroevolution If NPCs are controlled by ANNs, then neuroevolution can happen inside the game NERO is an example

The NERO Story Over 30 volunteers over 2 years Free download at Playable demos have public appeal –Over 100,000 downloads –Appeared on Slashdot –Best Paper Award in Computational Intelligence and –Games (IEEE CIG 05) –Independent Games Festival Best Student Game –Award (GDC 2006) –Worldwide media coverage

NERO: NeuroEvolving Robotic Operatives Training Game: Train your troops for combat Player trains NPCs for goal and style of play NPCs improve in real time as game is played

Genetic Encoding in NEAT

Topological Innovation

Topology Matching Problem Problem arises from adding new genes Same gene may be in different positions Different genes may be in same positions

Reference Evolving a Neural Network Location Evaluator to Play Ms. Pac-Man –Simon M. Lucas –Evaluating each possible next location –Neural Network Maximum two layers Weight matrix mapping the input plus bias

Reference

An Influence Map Model for Playing Ms. Pac-Man –Nathan Wirth and Marcus Gallagher

A Simple Tree Search Method for Playing Ms. Pac-Man

Reference Code

IEC(Interactive EC)

IEC-base 3D Modeling

Application