Designing Constraint-Based Agents Alan Mackworth.

Slides:



Advertisements
Similar presentations
SETTINGS AS COMPLEX ADAPTIVE SYSTEMS AN INTRODUCTION TO COMPLEXITY SCIENCE FOR HEALTH PROMOTION PROFESSIONALS Nastaran Keshavarz Mohammadi Don Nutbeam,
Advertisements

Cognitive Systems, ICANN panel, Q1 What is machine intelligence, as beyond pattern matching, classification and prediction. What is machine intelligence,
ARCHITECTURES FOR ARTIFICIAL INTELLIGENCE SYSTEMS
Lecture 8: Three-Level Architectures CS 344R: Robotics Benjamin Kuipers.
Problem Solving by Searching Copyright, 1996 © Dale Carnegie & Associates, Inc. Chapter 3 Spring 2007.
1 Christophe S. Jelger, Michael Kleis, Burak Simsek, Rolf Stadler, Ralf König, Danny Raz Theories/formal methods in support of autonomic management Dagstuhl.
Designing Constraint-Based Agents Alan Mackworth.
AI 授課教師:顏士淨 2013/09/12 1. Part I & Part II 2  Part I Artificial Intelligence 1 Introduction 2 Intelligent Agents Part II Problem Solving 3 Solving Problems.
COORDINATION and NETWORKING of GROUPS OF MOBILE AUTONOMOUS AGENTS.
© 2005 Prentice Hall6-1 Stumpf and Teague Object-Oriented Systems Analysis and Design with UML.
Search: Representation and General Search Procedure Jim Little UBC CS 322 – Search 1 September 10, 2014 Textbook § 3.0 –
Constructing the Future with Intelligent Agents Raju Pathmeswaran Dr Vian Ahmed Prof Ghassan Aouad.
Chapter 4 DECISION SUPPORT AND ARTIFICIAL INTELLIGENCE
Improving Market-Based Task Allocation with Optimal Seed Schedules IAS-11, Ottawa. September 1, 2010 G. Ayorkor Korsah 1 Balajee Kannan 1, Imran Fanaswala.
JACK Intelligent Agents and Applications Hitesh Bhambhani CSE 6362, SPRING 2003 Dr. Lawrence B. Holder.
Robotics CSPP Artificial Intelligence March 10, 2004.
Brent Dingle Marco A. Morales Texas A&M University, Spring 2002
Experiences with an Architecture for Intelligent Reactive Agents By R. Peter Bonasso, R. James Firby, Erann Gat, David Kortenkamp, David P Miller, Marc.
Intelligent Agent Systems. Artificial Intelligence Systems that think like humans Systems that think rationally Systems that act like humans Systems that.
Provisional draft 1 ICT Work Programme Challenge 2 Cognition, Interaction, Robotics NCP meeting 19 October 2006, Brussels Colette Maloney, PhD.
Alexander Repenning artificial intelligence chapter 1: Game AI.
Designing Predictable and Robust Systems Tom Henzinger UC Berkeley and EPFL.
Behavior- Based Approaches Behavior- Based Approaches.
1 Chapter 19 Intelligent Agents. 2 Chapter 19 Contents (1) l Intelligence l Autonomy l Ability to Learn l Other Agent Properties l Reactive Agents l Utility-Based.
RoboCup: The Robot World Cup Initiative Based on Wikipedia and presentations by Mariya Miteva, Kevin Lam, Paul Marlow.
Basic Concepts The Unified Modeling Language (UML) SYSC System Analysis and Design.
June 12, 2001 Jeong-Su Han An Autonomous Vehicle for People with Motor Disabilities by G. Bourhis, O.Horn, O.Habert and A. Pruski Paper Review.
APERA 1 © Regents of the University of California Changing Learning Through Invention, Research, and Connection Eva L. Baker National Center for Research.
Mobile Robot Control Architectures “A Robust Layered Control System for a Mobile Robot” -- Brooks 1986 “On Three-Layer Architectures” -- Gat 1998? Presented.
Topic 2: Multi-Agent Systems a practical example categories of MAS examples definitions: agents and MAS conclusion.
CSCI 4410 Introduction to Artificial Intelligence.
Nuttapon Boonpinon Advisor Dr. Attawith Sudsang Department of Computer Engineering,Chulalongkorn University Pattern Formation for Heterogeneous.
Complexity and Emergence in Robotics Systems Design Professor George Rzevski The Open University and Magenta Corporation SERENDIPITY SYNDICATE 1 : Talk.
CNS 4470 Artificial Intelligence. What is AI? No really what is it? No really what is it?
Future & Emerging Technologies in the Information Society Technologies programme of European Commission Future & Emerging Technologies in the Information.
Constraint Satisfaction Problems (CSPs) CPSC 322 – CSP 1 Poole & Mackworth textbook: Sections § Lecturer: Alan Mackworth September 28, 2012.
The roots of innovation Future and Emerging Technologies (FET) Future and Emerging Technologies (FET) The roots of innovation Proactive initiative on:
© 2012 xtUML.org Bill Chown – Mentor Graphics Model Driven Engineering.
CP Summer School Modelling for Constraint Programming Barbara Smith 2. Implied Constraints, Optimization, Dominance Rules.
How Solvable Is Intelligence? A brief introduction to AI Dr. Richard Fox Department of Computer Science Northern Kentucky University.
1 Distributed and Optimal Motion Planning for Multiple Mobile Robots Yi Guo and Lynne Parker Center for Engineering Science Advanced Research Computer.
Artificial Intelligence 2005/06 Partially Ordered Plans - or: "How Do You Put Your Shoes On?"
University of Windsor School of Computer Science Topics in Artificial Intelligence Fall 2008 Sept 11, 2008.
Collaboration in eRegion- ICT for Growth and Empowerment Bror Salmelin Head of Unit, New working environments European Commission, DG Information Society.
Neural Networks and Machine Learning Applications CSC 563 Prof. Mohamed Batouche Computer Science Department CCIS – King Saud University Riyadh, Saudi.
Algorithmic, Game-theoretic and Logical Foundations
Introduction to Artificial Intelligence CS 438 Spring 2008 Today –AIMA, Ch. 25 –Robotics Thursday –Robotics continued Home Work due next Tuesday –Ch. 13:
Introduction of Intelligent Agents
Subsumption Architecture and Nouvelle AI Arpit Maheshwari Nihit Gupta Saransh Gupta Swapnil Srivastava.
Distributed Models for Decision Support Jose Cuena & Sascha Ossowski Pesented by: Gal Moshitch & Rica Gonen.
University of Kurdistan Artificial Intelligence Methods (AIM) Lecturer: Kaveh Mollazade, Ph.D. Department of Biosystems Engineering, Faculty of Agriculture,
Rational Agency CSMC Introduction to Artificial Intelligence January 8, 2004.
Real-Time Systems, Events, Triggers. Real-Time Systems A system that has operational deadlines from event to system response A system whose correctness.
Theory-Aided Model Checking of Concurrent Transition Systems Guy Katz, Clark Barrett, David Harel New York University Weizmann Institute of Science.
Systems Analyst (Module V) Ashima Wadhwa. The Systems Analyst - A Key Resource Many organizations consider information systems and computer applications.
INTRODUCTION TO COGNITIVE SCIENCE NURSING INFORMATICS CHAPTER 3 1.
Constraint-Based Motion Planning for Multiple Agents Luv Kohli COMP259 March 5, 2003.
Control-Theoretic Approaches for Dynamic Information Assurance George Vachtsevanos Georgia Tech Working Meeting U. C. Berkeley February 5, 2003.
SRA 2016 – Strategic Research Challenges Design Methods, Tools, Virtual Engineering Jürgen Niehaus, SafeTRANS.
Sub-fields of computer science. Sub-fields of computer science.
RoboCup: The Robot World Cup Initiative
CSPP Artificial Intelligence March 10, 2004
CMSC Artificial Intelligence March 11, 2008
Intelligent Agents (Ch. 2)
Constraint Satisfaction Problem
CS 188: Artificial Intelligence
Multi-Agent Exploration
CSCI 5582 Artificial Intelligence
Distributed Control Applications Within Sensor Networks
Behavior Based Systems
Presentation transcript:

Designing Constraint-Based Agents Alan Mackworth

Four Perspectives on Designing Constraint-Based Agents The evolution of the pivotal role of constraints in intelligent systems: from static to dynamic constraints A theory of constraint-based agent design and a corresponding experiment in robot architecture The design of two assistive technology prototypes for people with physical and mental disabilities who are living with significant additional constraints Our collective failure to recognize and satisfy various constraints explains why many of the worlds we live in are unsustainable - out of kilter.

The Dynamics of Evolution Agents Models of Agents AI Constraint Satisfaction Thesis: Constraint satisfaction is central to intelligent behavior.

Constraint Satisfaction Problems CSP = UBC AIspace CSP Solver:

Sudoku Puzzle as a CSP Constraints: Each row, column and 3x3 group is a permutation of {1,2, …,9}.

Sudoku Puzzle as a CSP

Constraint Satisfaction Problems Network Consistency Algorithms Learn local inconsistencies – use them to prune search space efficiently: Arc consistency Path consistency k-consistency … (Fikes, Waltz, Montanari, Mackworth, Freuder, …) Constraint Programming New field for logistics, planning, scheduling, combinatorial optimization, ….

Pure Good Old Fashioned AI and Robotics (GOFAIR) Meta-assumptions Single agent Executes actions serially Deterministic world Fully observable, closed world Agent has perfect internal model of infallible actions and world dynamics Perception needed only to determine initial world state Perfect plan to achieve goal obtained by reasoning, and executed open loop

CSPs and GOFAIR CSPs as simple exemplar of GOFAIR. In pure GOFAIR, perfect model of the world, and its dynamics, in agent’s head. The agent is an Omniscient Fortune Teller. The agent’s world model and the world in perfect correspondence. We confused the agent’s world model and the world.

A Robot in the World

Classic Horizontal Architecture Good Old Fashioned Artificial Intelligence and Robotics (GOFAIR)

The Demise of GOFAIR GOFAIR robots succeed in blocks worlds and factories but can’t play soccer! Don’t let them into your home without adult supervision. “Life is what happens to you when you are busy making other plans.” (Lennon, 1980) An intelligent robot must be both proactive and responsive. Proactive: Acts to execute short-term and long-term plans and achieve goals in priority order, … Responsive: Reacts in real-time to changes in the environment, threats to safety, other agents, …

Beyond GOFAIR to Soccer Robot soccer, as a domain, breaks all the meta-assumptions of GOFAIR.

UBC Robot Soccer Dynamos (1992)

UBC Robot Soccer Dynamites (1992)

The Dynamites: Two on Two Soccer Playing Robots (UBC, 1993) Zeno & Heraclitus vs. Hegel & Leibnitz (Monty Python)

RoboCup (Kitano et al., Stone & Veloso, …)

From Sudoku to Soccer and Beyond SudokuSoccer Number of agents123 CompetitionNoYes CollaborationNoYes Real timeNoYes DynamicsMinimalYes ChanceNoYes OnlineNoYes Planning HorizonsNoYes Situated PerceptionNoYes Partially ObservableNoYes Open WorldNoYes LearningSomeYes

From GOFAIR to Situated Agents To build a proactive, responsive agent/robot we cannot just glue a proactive, modified GOFAIR planner on top of a reactive, control- theoretic controller. (But that is how we built the first robot soccer controllers.) Abandon the meta-assumptions of GOFAIR but keep constraint satisfaction. Constraints are now dynamic, coupling the agent and its environment e.g. kicking a soccer ball Constraints are the key to a uniform architecture. We need a new theory of constraint-based agents.

Robot Friends Stefan Eissing

RoboCars: DARPA Urban Challenge “Junior” “Boss” ( Stanford Racing Team, 2007) ( CMU-GM Tartan Racing Team, 2007)

Can We Trust Robots? Can they do the right thing? Will they do the right thing? Will they be autonomous, with free will, intelligence and consciousness? Do we need robot ethics, for us and for them?

What We Need Any ethical discussion presupposes we (and robots) can: Model robot structure and functionality Predict consequences of robot commands and actions Impose requirements on robot actions such as goal reachability, safety and liveness (absence of deadlock and livelock) Determine if a robot satisfies those requirements (almost always)

Theory Wanted We need a theory with: 1.Language to express robot structure and dynamics 2.Language for constraint-based specifications 3.Method to determine if a robot will (be likely to) satisfy its specifications, connecting 1 to 2

Constraints on an Agent To thrive, an agent must satisfy dynamic constraints deriving from four sources: A.Its internal structure B.Its goals and preferences C.Its external environment D.The coupling between its internal and external worlds The life of any agent who does not respect and satisfy those constraints will be out of balance.

A Robot Agent in the World

A Constraint-Based Agent Situated Agents Constraint Satisfaction Prioritized Constraints e.g. Asimov’s laws CBA Structure Constraint Solver

Vertical Architecture (Albus, Brooks,…)

Dynamic Constraint Satisfaction We say the coupled agent-environment system satisfies a constraint if the constraint’s solution set, in the phase space of the coupled hybrid dynamical system, is an attractor of the system, as it evolves. DCS subsumes the CSP model.

Formal Methods The CBA framework consists of: 1.Constraint Net (CN) → system modelling 2.Timed -automata → behaviour specification 3.Model-checking and Liapunov methods → behaviour verification A (Zhang & Mackworth, 1993; …, 2003)

A CN Program CN = Example: CN of a differential equation

Timed -automata Behaviour is the set of traces Trace is a sequence: Time → Value Domain Set of sequences defines a language If behaviour is a language then its specification is an automaton that accepts that language A Trace: x = sin(t) Constraint G: x ≥0 Example-1: Example-2:

robot that traverses a maze (Zhang and Mackworth, 1994) two handed robot that assembles objects (Zhang and Mackworth, 1994) elevator simulation (Ying Zhang and Mackworth, 1999) soccer-playing robots (Yu Zhang and Mackworth, 1998) Prior Work on CBA Framework Modelled in CNJ (Song and Mackworth, 2002) – (Montgomery and Mackworth, 2003)

Case Study A situated robot, Ainia, has the task of repeatedly finding, tracking, chasing and kicking a ball. (Muyan-Özçelik & Mackworth, 2004)

Prioritized Constraints: Ball-In-Image → I Ball-In-Center → C Base-Heading-Pan → H Robot-At-Ball → A I > C > H > A Ainia and Prioritized Constraints Aina named after an Amazon warrior. “Ainia” means “swiftness”

CBA in CN ← CBA Structure ↑ Control Synthesis with Prioritized Constraints Constraint1 > Constraint2 > Constraint3 >

Prioritized Constraints in CBA The Constraint-Based Agent (CBA) framework with prioritized constraints, using the Constraint Nets in Java (CNJ) tool, is an effective methodology for modeling and building situated agents in the real world. Using prioritized constraints we can get reliable situated, sequenced, reactive visuomotor behaviour

The CNJ Tool

Behaviour Verification Checks whether: Behaviour Specification For Ainia we use a formal model-checking method with Liapunov functions

Includes following modules: Tilt, BaseTranslation, Camera, BaseBump, Pan, BaseRotation. CN of Ainia modelled in CNJ Includes following modules: Ball, Kicker, Wall, Obstacle.

Only keep the Controller module Environment module → real world Body module → physical robot body Software of Physical Ainia median filter → connected components → measure P 2 /A Reports Commands Camera Views External View

Findings The robot always eventually kicks the ball repeatedly, both in simulation and experimentally. We can prove that the robot always eventually kicks the ball repeatedly. The Constraint-Based Agent approach with prioritized constraints is an effective framework for robot controller construction for a simple task. It is a solution to “The Problem of the Serial Ordering of Behavior” (Lashley, 1951).

Uncertainty? Where? Uncertainty in the Dynamics Measurement Noise TARGET Environmental Disturbances Control Force Probabilistic Constraint Nets (St-Aubin & Mackworth, 2004)

Observations Simple idea: constraint satisfaction is a way to achieve intelligent, proactive and reactive behaviour. The formal prioritized constraint framework allows for the emergence of robust, goal-seeking behaviours. Contributes to a foundation of frameworks for robot ethics. Yes, robots can do the right thing (sometimes).

Wayfinding for Wheelchair Users (Yang & Mackworth, 2007)

Wayfinding in a Building (Yang and Mackworth, 2007)

Satisfying Mobility Constraints in NOAH Navigation and obstacle avoidance in a collaboratively controlled smart wheelchair (Viswanathan et al., 2008)

Sustainability Sustainability The ability to maintain balance of a process in a system Ecological Sustainability The ability of an ecosystem to maintain ecological processes, functions, biodiversity and productivity into the future Human Sustainability The ability to meet the needs of the present without compromising the ability of future generations to meet their own needs

Constraint-based Sustainability Sustainable systems must satisfy physical, chemical, biological, psychological, economic, and social constraints. Consider constraints such as energy supply, waste management, GHG, ocean acidity, climate, ecological footprint, biodiversity, habitat, harvesting and equity. Sustainability = Constraint Satisfaction

Planetary Boundaries as Constraints [Source: “Planetary Boundaries: Exploring the Safe Operating Space for Humanity”, Rockström et al., Ecology and Society (2009)]

Safe Operating Space Simple conceptual model: 10-dimensional phase space for the planetary dynamical system. The safe operating space is defined by an envelope within which those biophysical constraints (x < x limit ) are all satisfied. Many of the subsystems display resilience in that they resist movement away from homeostasis, moving back to an equilibrium - Gaia principle (Lovelock). But disturbance beyond the resilient limit can tip the system into a new basin of attraction which may represent abrupt environmental change e.g. collapse.

How Can We Help? AI, CS and computation in service to people and our planet Global crises of poverty and inequity, overdevelopment, climate change, health, education, aging, … Teaching and learning tools for CS & AI: games, … Sustainability: smart cars, smart traffic control, scenario modeling, auctions for carbon credits, smart energy controllers, distributed sensors, smart communication systems, teleconferencing, … Assistive technology: assisted perception, cognition and action for seniors and disabled, smart wheelchairs, companions, nurse assistants, …

Constraints Shall Make You Free Every task involves constraint, Solve the thing without complaint; There are magic links and chains Forged to loose our rigid brains. Structures, strictures, though they bind, Strangely liberate the mind. — James Falen

Thanks Thanks to Rod Barman, Le Chang, Johan de Kleer, Pooyan Fazli, Gene Freuder, Bill Havens, Kletnathee Imhiran, Stewart Kingdon, Jim Little, Valerie McRae, Jefferson Montgomery, Pinar Muyan- Özçelik, Dinesh Pai, Fengguang Song, Michael Sahota, Ray Reiter, Robert St-Aubin, Pooja Viswanathan, Suling Yang, Ying Zhang and Yu Zhang. Funding: Canada Research Chair, IRIS NCE, Precarn, PWIAS, CIFAR, NSERC