Using Cellular Automata and Influence Maps in Games

Slides:



Advertisements
Similar presentations
Hard or Soft: Does it matter? Michael Lyons Manager, Strategic Analysis and Research.
Advertisements

GIS IN GEOLOGY Miloš Marjanović Lesson
Lesson 3 ODOT Analysis & Assessment. Analysis & Assessment Learning Outcomes As part of a small group, apply the two- part analysis by generating exposure-
Artificial Intelligence 13. Multi-Layer ANNs Course V231 Department of Computing Imperial College © Simon Colton.
RL for Large State Spaces: Value Function Approximation
COMPUTER AIDED DIAGNOSIS: FEATURE SELECTION Prof. Yasser Mostafa Kadah –
Artificial Intelligence in Game Design Introduction to Learning.
The Decision-Making Process IT Brainpower
Syr Johnathan Duncan. GIS What is GIS? Geography is information about the earth's surface and the objects found on it, as well as a framework for organizing.
A Multi-Agent System for Visualization Simulated User Behaviour B. de Vries, J. Dijkstra.
Continuum Crowds Adrien Treuille, Siggraph 王上文.
Simulation Models as a Research Method Professor Alexander Settles.
Monitoring and Pollutant Load Estimation. Load = the mass or weight of pollutant that passes a cross-section of the river in a specific amount of time.
Neural Networks Slides by Megan Vasta. Neural Networks Biological approach to AI Developed in 1943 Comprised of one or more layers of neurons Several.
MASS: From Social Science to Environmental Modelling Hazel Parry
Extracting Places and Activities from GPS Traces Using Hierarchical Conditional Random Fields Yong-Joong Kim Dept. of Computer Science Yonsei.
Discovery of Cellular Automata Rules Using Cases Ken-ichi Maeda Chiaki Sakama Wakayama University Discovery Science 2003, Oct.17.
Artificial Intelligence Lecture No. 28 Dr. Asad Ali Safi ​ Assistant Professor, Department of Computer Science, COMSATS Institute of Information Technology.
Artificial Intelligence in Game Design Problems and Goals.
Chapter 14: Artificial Intelligence Invitation to Computer Science, C++ Version, Third Edition.
Slides are based on Negnevitsky, Pearson Education, Lecture 12 Hybrid intelligent systems: Evolutionary neural networks and fuzzy evolutionary systems.
Using Neural Networks in Database Mining Tino Jimenez CS157B MW 9-10:15 February 19, 2009.
Data Mining and Neural Networks Danny Leung CS157B, Spring 2006 Professor Sin-Min Lee.
Artificial Neural Nets and AI Connectionism Sub symbolic reasoning.
Introduction to Neural Networks. Neural Networks in the Brain Human brain “computes” in an entirely different way from conventional digital computers.
Indiana GIS Conference, March 7-8, URBAN GROWTH MODELING USING MULTI-TEMPORAL IMAGES AND CELLULAR AUTOMATA – A CASE STUDY OF INDIANAPOLIS SHARAF.
Multi-Layer Perceptrons Michael J. Watts
Outline What Neural Networks are and why they are desirable Historical background Applications Strengths neural networks and advantages Status N.N and.
5. Alternative Approaches. Strategic Bahavior in Business and Econ 1. Introduction 2. Individual Decision Making 3. Basic Topics in Game Theory 4. The.
For games. 1. Control  Controllers for robotic applications.  Robot’s sensory system provides inputs and output sends the responses to the robot’s motor.
What is Probability?  Hit probabilities  Damage probabilities  Personality (e.g. chance of attack, run, etc.)  ???  Probabilities are used to add.
1 CO Games Development 2 Week 19 Probability Trees + Decision Trees (Learning Trees) Gareth Bellaby.
StarCraft Learning Algorithms By Logan Yarnell, Steven Raines, and Dean Antel.
Ch 7.1: Using a Spatial Database for Runtime Spatial Analysis.
Artificial Intelligence in Game Design
Trust Propagation using Cellular Automata for UbiComp 28 th May 2004 —————— Dr. David Llewellyn-Jones, Prof. Madjid Merabti, Dr. Qi Shi, Dr. Bob Askwith.
Neural and Evolutionary Computing - Lecture 9 1 Evolutionary Neural Networks Design  Motivation  Evolutionary training  Evolutionary design of the architecture.
Qualitative Spatial Analysis Chris Mansley. Qualitative Quantitative items are known, definable quantities (x,y) coordinates Remaining health Location.
Calibration Guidelines 1. Start simple, add complexity carefully 2. Use a broad range of information 3. Be well-posed & be comprehensive 4. Include diverse.
Approaches to Problem Solving. There are many approaches to problem-solving. What follows in this PowerPoint are several that provide an opportunity for.
Fuzzy Systems Michael J. Watts
QM Spring 2002 Business Statistics Probability Distributions.
Akram Bitar and Larry Manevitz Department of Computer Science
Neural Networks and Machine Learning Applications CSC 563 Prof. Mohamed Batouche Computer Science Department CCIS – King Saud University Riyadh, Saudi.
Learning to Navigate Through Crowded Environments Peter Henry 1, Christian Vollmer 2, Brian Ferris 1, Dieter Fox 1 Tuesday, May 4, University of.
Intelligent Database Systems Lab 國立雲林科技大學 National Yunlin University of Science and Technology 1 Evolving Reactive NPCs for the Real-Time Simulation Game.
Distributed Models for Decision Support Jose Cuena & Sascha Ossowski Pesented by: Gal Moshitch & Rica Gonen.
DO LOCAL MODIFICATION RULES ALLOW EFFICIENT LEARNING ABOUT DISTRIBUTED REPRESENTATIONS ? A. R. Gardner-Medwin THE PRINCIPLE OF LOCAL COMPUTABILITY Neural.
Artificial Intelligence in Game Design Influence Maps and Decision Making.
Why use landscape models?  Models allow us to generate and test hypotheses on systems Collect data, construct model based on assumptions, observe behavior.
1 CO Games Development 2 Week 16 Blackboard Model Gareth Bellaby.
The article written by Boyarshinova Vera Scientific adviser: Eltyshev Denis THE USE OF NEURO-FUZZY MODELS FOR INTEGRATED ASSESSMENT OF THE CONDITIONS OF.
1 CO Games Development 2 Week 13 Influence Maps Gareth Bellaby.
Verification vs. Validation Verification: "Are we building the product right?" The software should conform to its specification.The software should conform.
Maestro AI Vision and Design Overview Definitions Maestro: A naïve Sensorimotor Engine prototype. Sensorimotor Engine: Combining sensory and motor functions.
© 2008 Thomson South-Western. All Rights Reserved Slides by JOHN LOUCKS St. Edward’s University.
A Presentation on Adaptive Neuro-Fuzzy Inference System using Particle Swarm Optimization and it’s Application By Sumanta Kundu (En.R.No.
 Negnevitsky, Pearson Education, Lecture 12 Hybrid intelligent systems: Evolutionary neural networks and fuzzy evolutionary systems n Introduction.
CO Games Development 2 Week 16 Blackboard Model
CO Games Development 2 Week 22 Trees
Fuzzy Systems Michael J. Watts
Movement in a full and dynamic environment using a limited influence map Paulo Lafeta Ferreira Artificial Intelligence for Games – CS 580 Professor: Steve.
CO Games Development 2 Week 19 Extensions to Finite State Machines
Modelling Dr Andy Evans In this lecture we'll look at modelling.
CIS 488/588 Bruce R. Maxim UM-Dearborn
Reinforcement Learning for Adaptive Game Learner
Ch 7.1: Using a Spatial Database for Runtime Spatial Analysis
Chapter 12 Analyzing Semistructured Decision Support Systems
Background “Structurally dynamic” cellular automata (Ilachinski, Halpern 1987) have been shown to simulate biological functions with emergent behavior.
Akram Bitar and Larry Manevitz Department of Computer Science
Presentation transcript:

Using Cellular Automata and Influence Maps in Games Penny Sweetser The University of Queensland

Overview Cellular Automata Influence Maps Grid-Based Techniques Decision making, environmental modelling Spread information in different ways Simple and powerful, separately or together Design, implementation, application to games

Cells Divide game world into cells Each cell a database containing info about: combat strength, vulnerable assets, area visibility, body count, resources, weather, passability Cell size – accuracy / efficiency 10-20 standard units side by side

Influence Maps1 Strategic assessment / decision-making Usually strategy games Spatial representation of AI’s knowledge about the game world Strategic perspective of game state layered over geographical 1Tozour, P. (2001) Influence Mapping. In M. Deloura (Ed.), Game Programming Gems 2. Hingham, MA: Charles River Media, Inc., pp. 287-297.

Influence Maps Influence map indicates: where the AI’s forces are deployed where the enemy is / most likely to be where the “frontier” between players lies what areas are yet to be explored where significant battles have occurred where enemies are most likely to attack in the future

Influence Maps IM’s structure makes it possible to make intelligent inferences about: areas of high strategic control weak spots in an opponent’s defences prime “camping” locations strategically vulnerable areas choke points on the terrain other meaningful features that human players would choose through intuition or practice

Influence Maps IM tracks variables separately for each player (multiple parallel IM’s) Each AI keeps one IM for itself and one for every other player Could keep one IM and let all AI’s access it (but this is cheating)

Influence Propagation Once initial values given to cells, needs to be propagated More accurate strategic perspective – current influence / potential influence Spread influence with “falloff” rule Selection of falloff rules is subjective, requires tweaking and tuning Exponential falloff – choose a constant 0..1 Need to terminate falloff (never reaches 0) Falloff should be proportional to cell size

Influence Propagation Top-left: Game state Top-right: Propagation Lower-left: Influence values Lower-right: Influence grey scale 2Sweetser, P. (2004) Strategic Decision-Making with Neural Networks and Influence Maps. In S. Rabin (Ed.), AI Game Programming Wisdom 2. Hingham, MA: Charles River Media, Inc., pp. 439-446.

Desirability Value Estimates cell’s value with respect to a certain decision (e.g. where to attack) Cells can be ranked by how good they appear for the decision Usually calculated with weighted sum Choose relevant variables for decision Multiply by coefficient (roughly indicates variable’s importance for decision) Sum all weighted variables together Choice of variables / weights is subjective

Desirability Value Variables used depends on game / design / decisions being made Need to compensate for different units of measure (e.g. health vs. rate of fire) Example desirability values: attack and defence desirability, exploration, defensive asset placement, resource-collection asset placement, unit-producing asset placement, vulnerable asset placement

Weighted Sums for Desirability Weighted sums are simple / transparent But: Choosing the relevant variables is difficult Finding good weights is time-consuming Important info might be lost

Alternative to Weighted Sums Simulated annealing or evolutionary approaches to find weights Neural networks: Determine variables that most influence decision / ignore irrelevant variables Variables are analysed in parallel, info in individual variables is not lost Weights are determined during training

Neural Networks in IM’s2 Computational complexity Number of inputs and weights But don’t need to analyse whole map Train before shipping Different AI personalities / strategies Learn to mimic human players 2Sweetser, P. (2004) Strategic Decision-Making with Neural Networks and Influence Maps. In S. Rabin (Ed.), AI Game Programming Wisdom 2. Hingham, MA: Charles River Media, Inc., pp. 439-446.

Cellular Automata in Games Proposed as a solution to static environments in games3 More dynamic / realistic behaviour of scripted elements – fire, water, explosions, smoke, heat Conducting research into using CA in games for environmental modelling 3Forsyth, T. (2002) Cellular Automata for Physical Modelling. In D. Treglia (Ed.), Game Programming Gems 3. Hingham, MA: Charles River Media, Inc.

Cellular Automata Research No research or implementation of CA in games Are CA appropriate for use in games? Can CA facilitate emergent gameplay? What effect will this have on the player?

Cellular Automata - Traditional Spatial, discrete time model Space represented as uniform grid Each cell has a state (from a finite set) Time advances in discrete steps Each step, cells change state according to a set of rules New state = function of previous state of the cell and state of neighbour cells

Cellular Automata - Traditional 1D – single line of cells, 2 neighbours 2D – 4 or 8 neighbours 1 2 1 2

Cellular Automata in Games States are continuous (not discrete) E.g. heat = 657.21 States have multiple variables E.g. heat, pressure, water Rules are continuous Damage = temp * burning rate

CA in Games Research4 Environmental systems Heat and Fire Rain and Fluid Flow Pressure and Explosions Integrated System 4 Sweetser, P. & Wiles, J. (unpublished) Using Cellular Automata to Facilitate Emergence in Game Environments. Submitted to the Journal of Game Development.

CA and IMs in Games Cellular automata and influence maps can be integrated Values generated by CA used for decision-making by influence map E.g. AI can consider environmental factors when making a decision

CA & IM in Games Research Agents used CA and IM to determine how to react to the environment Agents use the cellular automata values to determine “comfort” Added a goal (desirability) Desirability of goal is propagated

Conclusion Grid-based techniques Advantages Disadvantages Cellular Automata Influence Maps Advantages Allow type of behaviour to be specified Disadvantages Lots of tuning / testing to get desired behaviour

References Forsyth, T. (2002) Cellular Automata for Physical Modelling. In D. Treglia (Ed.), Game Programming Gems 3. Hingham, MA: Charles River Media, Inc. Sweetser, P. (2004) Strategic Decision-Making with Neural Networks and Influence Maps. In S. Rabin (Ed.), AI Game Programming Wisdom 2. Hingham, MA: Charles River Media, Inc., pp. 439-446. Sweetser, P. & Wiles, J. (unpublished) Using Cellular Automata to Facilitate Emergence in Game Environments. Submitted to the Journal of Game Development. Tozour, P. (2001) Influence Mapping. In M. Deloura (Ed.), Game Programming Gems 2. Hingham, MA: Charles River Media, Inc., pp. 287-297.