CSC 110 - Intro. to Computing Lecture 22: Artificial Intelligence.

Slides:



Advertisements
Similar presentations
Artificial Intelligence 12. Two Layer ANNs
Advertisements

1 Machine Learning: Lecture 1 Overview of Machine Learning (Based on Chapter 1 of Mitchell T.., Machine Learning, 1997)
1 Machine Learning: Lecture 4 Artificial Neural Networks (Based on Chapter 4 of Mitchell T.., Machine Learning, 1997)
CS 484 – Artificial Intelligence
COMP-4640: Intelligent & Interactive Systems Game Playing A game can be formally defined as a search problem with: -An initial state -a set of operators.
Artificial Intelligence in Game Design Heuristics and Other Ideas in Board Games.
An Introduction to Artificial Intelligence. Introduction Getting machines to “think”. Imitation game and the Turing test. Chinese room test. Key processes.
Chapter 13 Artificial Intelligence. Chapter Goals Discuss types of problems that – humans do best – computers do best Turing test 13-2.
Artificial Intelligence in Game Design Introduction to Learning.
1 Lecture 35 Brief Introduction to Main AI Areas (cont’d) Overview  Lecture Objective: Present the General Ideas on the AI Branches Below  Introduction.
Chapter 10 Artificial Intelligence © 2007 Pearson Addison-Wesley. All rights reserved.
Game Playing CSC361 AI CSC361: Game Playing.
Learning Shape in Computer Go David Silver. A brief introduction to Go Black and white take turns to place down stones Once played, a stone cannot move.
1 Chapter 11 Neural Networks. 2 Chapter 11 Contents (1) l Biological Neurons l Artificial Neurons l Perceptrons l Multilayer Neural Networks l Backpropagation.
Reinforcement Learning of Local Shape in the Game of Atari-Go David Silver.
Neural Networks Lab 5. What Is Neural Networks? Neural networks are composed of simple elements( Neurons) operating in parallel. Neural networks are composed.
Neural Networks. Background - Neural Networks can be : Biological - Biological models Artificial - Artificial models - Desire to produce artificial systems.
Rohit Ray ESE 251. What are Artificial Neural Networks? ANN are inspired by models of the biological nervous systems such as the brain Novel structure.
1 Adversary Search Ref: Chapter 5. 2 Games & A.I. Easy to measure success Easy to represent states Small number of operators Comparison against humans.
Lecture 5 Note: Some slides and/or pictures are adapted from Lecture slides / Books of Dr Zafar Alvi. Text Book - Aritificial Intelligence Illuminated.
Chapter 11: Artificial Intelligence
Artificial Intelligence Lecture No. 28 Dr. Asad Ali Safi ​ Assistant Professor, Department of Computer Science, COMSATS Institute of Information Technology.
What is Artificial Intelligence? AI is the effort to develop systems that can behave/act like humans. Turing Test The problem = unrestricted domains –human.
Artificial Intelligence in Game Design Lecture 22: Heuristics and Other Ideas in Board Games.
Computer Go : A Go player Rohit Gurjar CS365 Project Proposal, IIT Kanpur Guided By – Prof. Amitabha Mukerjee.
1 Machine Learning The Perceptron. 2 Heuristic Search Knowledge Based Systems (KBS) Genetic Algorithms (GAs)
An informal description of artificial neural networks John MacCormick.
Introduction to Artificial Intelligence CS 438 Spring 2008 Today –AIMA, Ch. 6 –Adversarial Search Thursday –AIMA, Ch. 6 –More Adversarial Search The “Luke.
1 Chapter 11 Neural Networks. 2 Chapter 11 Contents (1) l Biological Neurons l Artificial Neurons l Perceptrons l Multilayer Neural Networks l Backpropagation.
Othello Playing AI Matt Smith. Othello 8x8 Board game 8x8 Board game Try to outflank opponents pieces Try to outflank opponents pieces Winner ends up.
1 Phase II - Checkers Operator: Eric Bengfort Temporal Status: End of Week Five Location: Phase Two Presentation Systems Check: Checkers Checksum Passed.
Connect Four AI Robert Burns and Brett Crawford. Connect Four  A board with at least six rows and seven columns  Two players: one with red discs and.
Copyright © 2008 Pearson Education, Inc. Publishing as Pearson Addison-Wesley Chapter 11: Artificial Intelligence Computer Science: An Overview Tenth Edition.
Well Posed Learning Problems Must identify the following 3 features –Learning Task: the thing you want to learn. –Performance measure: must know when you.
Games. Adversaries Consider the process of reasoning when an adversary is trying to defeat our efforts In game playing situations one searches down the.
Machine Learning for an Artificial Intelligence Playing Tic-Tac-Toe Computer Systems Lab 2005 By Rachel Miller.
Introduction to Machine Learning Kamal Aboul-Hosn Cornell University Chess, Chinese Rooms, and Learning.
ADVANCED PERCEPTRON LEARNING David Kauchak CS 451 – Fall 2013.
I Robot.
CHECKERS: TD(Λ) LEARNING APPLIED FOR DETERMINISTIC GAME Presented By: Presented To: Amna Khan Mis Saleha Raza.
1 CSC 9010 Spring Paula Matuszek CSC 9010 ANN Lab Paula Matuszek Spring, 2011.
Soft Computing Lecture 19 Part 2 Hybrid Intelligent Systems.
Neural Network Implementation of Poker AI
Artificial Intelligence and Searching CPSC 315 – Programming Studio Spring 2013 Project 2, Lecture 1 Adapted from slides of Yoonsuck Choe.
CSC321 Introduction to Neural Networks and Machine Learning Lecture 3: Learning in multi-layer networks Geoffrey Hinton.
Course Overview  What is AI?  What are the Major Challenges?  What are the Main Techniques?  Where are we failing, and why?  Step back and look at.
CSC Intro. to Computing Lecture 26: XML & Course Review.
Playing Tic-Tac-Toe with Neural Networks
Neural Networks. Background - Neural Networks can be : Biological - Biological models Artificial - Artificial models - Desire to produce artificial systems.
AI: AlphaGo European champion : Fan Hui A feat previously thought to be at least a decade away!!!
Artificial Intelligence in Game Design Board Games and the MinMax Algorithm.
Understanding AI of 2 Player Games. Motivation Not much experience in AI (first AI project) and no specific interests/passion that I wanted to explore.
Chapter 13 Artificial Intelligence. Artificial Intelligence – Figure 13.1 The Turing Test.
Learning with Neural Networks Artificial Intelligence CMSC February 19, 2002.
Chapter 11: Artificial Intelligence
Chapter 11: Artificial Intelligence
Learning with Perceptrons and Neural Networks
I Know it’s an Idiot But it’s MY artificial idiot!
Done Done Course Overview What is AI? What are the Major Challenges?
What is an ANN ? The inventor of the first neuro computer, Dr. Robert defines a neural network as,A human brain like system consisting of a large number.
Artificial Intelligence
OVERVIEW OF BIOLOGICAL NEURONS
of the Artificial Neural Networks.
Artificial Intelligence Lecture No. 28
Future of Artificial Intelligence
Fundamentals of Neural Networks Dr. Satinder Bal Gupta
Artificial Intelligence 12. Two Layer ANNs
Artificial Intelligence Machine Learning
Presentation transcript:

CSC Intro. to Computing Lecture 22: Artificial Intelligence

Knowledge Representation As video hinted at, AI has big problem representing knowledge  Must also be precise enough to capture information  But must be able to handle ambiguity  Consider the following sentence: Buffalo buffalo buffalo Buffalo buffalo

Semantic Network One method of representing knowledge Focuses on relationship between items Typically shown as a directed multi-graph  Vertices (points) represent the data items Each data item should be a simple noun  Edges (lines) are relationships between items Each edge is usually a verb Relationships go in one direction (shown as arrow) Items can have multiple relationships

Semantic Network Example Nosipho is a student. Nosiphostudent instance of

Semantic Network Example Students are people. Nosiphostudent Students are people. person is a instance of

Semantic Network Example Students go to school. Nosiphostudent Students go to school. person is a school go to instance of

Semantic Network Example Nosiphostudent person is a school go to Each person has a gender. gender has a instance of

Semantic Network Example Nosiphostudent person is a school go to Nosipho is female gender has a female instance of

Semantic Network Example Nosiphostudent person is a school go to Hillary Clinton is also female gender has a female Hillary Clinton instance of

Semantic Network Example Nosiphostudent person is a school go to Females are people. gender has a female Hillary Clinton type of instance of

Semantic Network Example Nosiphostudent person is a school go to gender has a female Hillary Clinton instance of Dog is not a Nosipho is a person is not a type of

instance of Semantic Network Example Nosiphostudent person is a school go to gender has a female Hillary Clinton instance of Nosipho is a person Dog is not a type of

instance of Semantic Network Example Nosiphostudent person is a school go to gender has a female Hillary Clinton instance of Nosipho is a person Dog is not a type of

Semantic Network Example Nosiphostudent person is a school go to gender has a female Hillary Clinton instance of Hillary Clinton is not a dog Dog is not a type of

Semantic Network Example Nosiphostudent person is a school go to gender has a female Hillary Clinton instance of Hillary Clinton is not a dog Dog is not a type of

Semantic Network Example Nosiphostudent person is a school go to gender has a female Hillary Clinton instance of Dog is not a type of

Semantic Network Example Nosiphostudent person is a school go to gender has a female Hillary Clinton instance of Dog is not a What is Nosipho’s gender? is not a type of

Semantic Network Example Nosiphostudent person is a school go to gender has a female Hillary Clinton instance of Dog is not a What is Nosipho’s gender? is not a type of

Semantic Networks Good for problems asking relationships between data Bad for playing checkers or chess  Checkers has 10 9 different states to express Difficult, but doable  Chess has different possible states Lot of relationships to express  Big jump from knowing how horsey moves to winning a chess match

Search Trees Consider game of Nim  Players take turns place 1 – 3 marks on board  Whomever marks last slot, wins “Best” move can be hard  Need to know what your opponent will do  Then depends upon how you move and your opponents response to the move, and so on

Search Trees Following a line from one state to another is like making a move Shows all possible games of Nim

Search Tree Limits Search trees really used to play games  Provides easy method of solving problem But evaluating entire tree is difficult  Checkers: 10 9 different possible game states  Chess: different game states  Evaluating entire tree could require years… Need to re-evaluate tree for each move.  Cannot even store entire tree on a computer!

Tree Searches Depth-first: Could I possibly win/lose if I make this move? Breadth-first: Which move will put me in the best position in 3 rounds?

Search Trees

Computer vs. Human Humans are big and slow  Have 100 billion neurons  Neurons have many inputs  Neurons “run” at 100 Hz Computers are small and fast  Have 100 million gates  Gates combine 1 or 2 inputs  Gates run at 1,000,000,000 Hz

Neural Networks Simulate how a biological neural network learns  How it ultimately makes decisions often does not make sense to people Each artificial neuron assigns numerical weight to each input  “Learns” by adjusting these weights

Artificial Neuron Operation Effective weight of an input is the input value multiplied by input’s weight If sum of effective weights is above threshold neuron outputs 1  When sum of effective weights is less than the threshold, neuron outputs 0

Artificial Neuron Example Consider the following neuron: Value to compare against threshold: ValueWeightEffective Weight

Artificial Neural Network Train neural network on variety of input values  When output is correct, share reward (increase weight of active inputs)  When output is wrong, “punish” network (decrease weight of inputs)  Apply occasional “reverse brain damage”