1 / 30

Artificial Intelligence (AI)

University of Science and Technology Faculty of Computer Science and Information Technology. Artificial Intelligence (AI). 4 th Year B.Sc : Information Technology Academic Year : 2017-2018 Instructor : Diaa Eldin Mustafa Ahmed. Intelligent Agents (IA)- (1/2).

estherh
Télécharger la présentation

Artificial Intelligence (AI)

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. University of Science and Technology Faculty of Computer Science and Information Technology Artificial Intelligence (AI) 4th Year B.Sc : Information Technology Academic Year : 2017-2018 Instructor : Diaa Eldin Mustafa Ahmed Intelligent Agents (IA)- (1/2)

  2. You will be expected to know • Agent • Rational Agent • Task Environment (PEAS): - Performance measure, Environment, Actuators, Sensors • Examples for intelligent agents • Properties of Task Environments: • Basic Definitions:Percept, percept sequance, agent function, agent program. • Agent Types : Reflex ,Model-based ,Goal-based ,Utility-based agents , and Learning agents. AI - (2017-2018) -Diaa Eldein Mustafa - Lecture (3) - Intelligent Agents (1/2)

  3. Agents and environments Compare: Standard Embedded System Structure microcontroller ADC DAC sensors actuators ASIC FPGA AI - (2017-2018) -Diaa Eldein Mustafa - Lecture (3) - Intelligent Agents (1/2)

  4. Agents and environments • A Field-Programmable Gate Array (FPGA) is an integrated circuit (IC) that can be programmed in the field after manufacture. • FPGAs are similar in principle to, but have vastly wider potential application than, programmable read-only memory (PROM) chips. • An ASIC (Application-Specific Integrated Circuit) is a microchip designed for a special application, such as a particular kind of transmission protocol or a hand-held computer. • You might contrast it with general integrated circuits, such as the microprocessor and the random access memory chips in your PC. AI - (2017-2018) -Diaa Eldein Mustafa - Lecture (3) - Intelligent Agents (1/2)

  5. Agents Definition • An agent is anything that can be viewed as perceiving its environmentthrough sensors and acting upon that environment through actuators,and directs its activity towards achieving goals (i.e. it is "rational", Act rational with respect to a performance measure, e.g. time, energy, money, movement. Human agent: • Eyes, ears, skin, and other organs for sensors. • Hands, legs, mouth, and other body parts for actuators. • Light, sound, solidityaspercepts. • Robotic agent: • Cameras , infrared detectors, microphone and accelerometers for sensors . • Various motors , grippers, wheels, speakers, for actuators • Light, sound, solidityaspercepts. AI - (2017-2018) -Diaa Eldein Mustafa - Lecture (3) - Intelligent Agents (1/2)

  6. Agents and Environments • Percept: agent’s perceptual inputs at an instant. • Agent’s behavior is Mathematically described by: • The agent function : A=F(P) • where P is the current percept, • A is the action carried out, and • F is the agent function • F maps percepts to actions F: P*A • where P* is the set of all percepts, and A is the set of all actions • In general, an action may depend on all perceptsobseved so far, not just the current percept. AI - (2017-2018) -Diaa Eldein Mustafa - Lecture (3) - Intelligent Agents (1/2)

  7. An agent interacting with an environment • Prior knowledge:about the agent and the environment. • History of interaction with the environment, which is composed of: • observations of the current environment and. • past experiences of previous actions and observations, or other data, from which it can learn. • Goals that it must try to achieve or preferences over states of the world; and abilities, which are the primitive actions it is capable of carrying out. • An agent could be a program that acts in a purely computational environment--a software agent. AI - (2017-2018) -Diaa Eldein Mustafa - Lecture (3) - Intelligent Agents (1/2)

  8. Structure of Agents • The agent program : runs on the physical architecture to produce F. agent = architecture + program • Architecture • device with sensors and actuators • which also provides and interface to the environment (percepts, actions) .e.g., A robotic car, a camera, a PC. • implements the agent function on the architecture. • (Agent) Program = some function that implements the agent mapping = “?”= Job of AI Agent Percepts Sensors Environment ? What AI should fillReasoning Actions Actuators AI - (2017-2018) -Diaa Eldein Mustafa - Lecture (3) - Intelligent Agents (1/2)

  9. Rationality and Rational Agents • Rationality • A rational agent is one that does the right thing. • More precisely, what is rational at any given time depends on four things: – The performance measure that defines the criterion of success.– The agent’s prior knowledge of the environment. – The actions that the agent can perform.– The agent’s percept sequence to date. • Rational Agent: • For each possible percept sequence, a rational agent should select an action that is expected to maximize its performance measure. • Rational action: • whichever action maximizes the expected value of the performance measure given the percept sequence to date. AI - (2017-2018) -Diaa Eldein Mustafa - Lecture (3) - Intelligent Agents (1/2)

  10. Specifying the Task Environments (PEAS) • Performance Measure: captures agent’s aspiration • An objective function that determines • How the agent does successfully • E.g., 90% or 30% ? • Environment: context, restrictions. • the real world of the agent • Actuators: indicates what the agent can carry out. • Actions that can perform • Sensors: indicates what the agent can perceive AI - (2017-2018) -Diaa Eldein Mustafa - Lecture (3) - Intelligent Agents (1/2)

  11. Basic Agent Algorithm • Basic algorithm for a rational agent • While (true) do • Getpercept from sensors into memory • Determinebest action based on memory • Record action in memory • Performaction. Note:•  Memory capacity can be zero•  Performance measure is not part of the agent. AI - (2017-2018) -Diaa Eldein Mustafa - Lecture (3) - Intelligent Agents (1/2)

  12. Properties of Environments Types of Environment • There are different sorts of environments, which affect what an agent has to be able to cope with. • In designing agents, one should always consider the pair of agent and environment together. • Fully Observable vs. Partially Observable: • If an agent's sensors give it full access to the complete state of the environment(sensors detect all aspects). • the environment is fully observable (e.g. Playing chess ). • otherwise it is only partially observable or unobservable because of noisy and inaccurate sensors or because parts of the state are simply missing from the sensor data (A local dirt sensor of the cleaner cannot tell whether other squares are clean or not ). AI - (2017-2018) -Diaa Eldein Mustafa - Lecture (3) - Intelligent Agents (1/2)

  13. Properties of Environments Types of Environment • Single agent vs. Multi-agent • How many objects must be modeled as agents • – single agent (Playing a crossword puzzle ) • – two agents (Chess playing) • Competitive multi-agent environment • – Chess playing • Cooperative multi-agent environment • –Automated taxi driver • – Avoiding collision AI - (2017-2018) -Diaa Eldein Mustafa - Lecture (3) - Intelligent Agents (1/2)

  14. Properties of Environments Types of Environment • Deterministic vs. Stochastic • The environment is deterministic if the next state of the environment completely determined by the current state and the actions executed by the agent. • Otherwise Stochastic, ( environment may appear stochastic if it is only partially observable). • Strategic environment: deterministic except for actions of other agents • Vacuum - Cleaner and Auto-taxi driver are: • – Stochastic because of some unobservable aspects  noise or unknown AI - (2017-2018) -Diaa Eldein Mustafa - Lecture (3) - Intelligent Agents (1/2)

  15. Properties of Environments Types of Environment • Episodic vs. Sequential • In episodic environment the agent’s experience • can be divided into atomic steps. • agents perceives and then performs a single action. • An episode = agent has single pair of perception & action. • The quality of the agent’s action does not depend on other episodes • – Every episode is independent of each other • Episodic environment is simpler • – The agent does not need to think ahead • Sequential • – Current action may affect all future decisions • –e.g. Taxi driving and chess. AI - (2017-2018) -Diaa Eldein Mustafa - Lecture (3) - Intelligent Agents (1/2)

  16. Properties of Environments Types of Environment • Static vs. Dynamic • A dynamic environment is always changing over time • – E.g. the number of people in the street • While static environment • – E.g. the destination • Semi-dynamic • – environment is not changed over time • – but the agent’s performance score does AI - (2017-2018) -Diaa Eldein Mustafa - Lecture (3) - Intelligent Agents (1/2)

  17. Properties of Environments Types of Environment • Discrete vs. Continuous • The environment is discrete , If there are a limited number of distinct states, clearly defined percepts and actions. • – E.g., Chess game • The environment is continuous, if the states changed with time (speed , velocity , etc..) • – Taxi driving AI - (2017-2018) -Diaa Eldein Mustafa - Lecture (3) - Intelligent Agents (1/2)

  18. Properties of Environments Types of Environment • Known vs. Unknown. • This distinction refers not to the environment itself but to the agent’s (or designer’s) state of knowledge about the environment. • In known environment, the outcomes for all actions are given. • – e.g: solitaire card games. • If the environment is unknown, the agent will have to learn how it works in order to make good decisions. • – e.g: new video game. AI - (2017-2018) -Diaa Eldein Mustafa - Lecture (3) - Intelligent Agents (1/2)

  19. Examples of Agents (1) • Agent : automatic car (automated taxi driver ) • Environment: streets, other vehicles, pedestrians, traffic signals • /lights/signs. • Goals/Performance Measure: safe, fast, legal trip. • Percepts/Sensors: camera, GPS signals, speedometer, sonar. • Actions: steer, accelerate, brake. • Agent : intelligent house • Environment: occupants enter and leave house, occupants enter and leave rooms; daily variation in outside light and temperature • Goals: occupants warm, room lights are on when room is occupied, house energy efficient . • Percepts: signals from temperature sensor, movement sensor, clock, sound sensor . • Actions: room heaters on/off, lights on/off . AI - (2017-2018) -Diaa Eldein Mustafa - Lecture (3) - Intelligent Agents (1/2)

  20. Examples of Agents (2) • Agent :Medical Diagnosis System. • Environment: Patient, hospital, staff • Performance measure:Healthy patient, minimize costs, lawsuits • Actuators: Screen display (questions, tests, diagnoses, treatments, referrals) • Sensors: Keyboard (entry of symptoms, findings, patient's answers) • Agent :Part-Picking Robot • Environment: Conveyor belt with parts, bins • Performance measure: Percentage of parts in correct bins • Actuators: Jointed arm and hand • Sensors: Camera, joint angle sensors AI - (2017-2018) -Diaa Eldein Mustafa - Lecture (3) - Intelligent Agents (1/2)

  21. Examples of Agents (3) • Agent : Interactive English Tutor. • Environment: Set of students • Performance measure: Maximize student's score on test • Actuators:Screen display (exercises, suggestions, corrections) • Sensors:Keyboard • Agent:Email Manage • Environment:mail reader , OS, internet • Goals:present important email first, hide junk mail, minimize email tardiness. • Percepts:email arrived, headers, content of email headers, message contents. • Actions:delete email, sort email, obtain user attention. AI - (2017-2018) -Diaa Eldein Mustafa - Lecture (3) - Intelligent Agents (1/2)

  22. Examples of Agents (3) • Agent: Internet Shopping • Environment: current and future WWW sites, vendors. • Performance measure: price, quality, appropriateness, efficiency shippers. • Actuators: display to user, follow URL, fill in form. • Sensors: HTML pages (text, graphics, scripts) . • Agent:Program playing the game of checkers • Environment:A human opponent player • Performance measure: Maximize the number of games won • Actuators: Screen display (the move chosen by the program) • Sensors:Keyboard (the move chosen by the human player) AI - (2017-2018) -Diaa Eldein Mustafa - Lecture (3) - Intelligent Agents (1/2)

  23. Home Work Specify the task environment (PEAS) of the following Agents: 1-Spam filter ( A software that can detect spam and removed or discard it). 2-Washing machine (automated machine for washing and drying clothes). 3- Buyer agents (shopping bots):Buyer agents travel around a network (e.g. the internet) retrieving information about goods and services. These agents, also known as 'shopping bots', work very efficiently for commodity products such as CDs, books, electronic components, and other one-size-fits-all products. Buyer agents are typically optimized to allow for digital payment services used in e-commerce and traditional businesses. AI - (2017-2018) -Diaa Eldein Mustafa - Lecture (3) - Intelligent Agents (1/2)

  24. Major Applications of Intelligent Agents in our daily life • AI has successfully been used in • Finance • Robotics • Games • Medicine • The Web • The simplest environment is : • Fully observable, deterministic, episodic, static, discrete and single-agent. • Most real situations are: • Partially observable, stochastic, sequential, dynamic, continuous and multi-agent. AI - (2017-2018) -Diaa Eldein Mustafa - Lecture (3) - Intelligent Agents (1/2)

  25. AI in Finance Stock Market Bonds Commodities Market Rates News Trading Agent Trades AI - (2017-2018) -Diaa Eldein Mustafa - Lecture (3) - Intelligent Agents (1/2)

  26. AI in Robotics Cameras Microphones Touch Robot Environment Motors: wheels, legs, arms, grippers Voice AI - (2017-2018) -Diaa Eldein Mustafa - Lecture (3) - Intelligent Agents (1/2)

  27. AI in Games Your moves You Game Agent Its own moves AI - (2017-2018) -Diaa Eldein Mustafa - Lecture (3) - Intelligent Agents (1/2)

  28. AI in Medicine Vital Signals: blood pressures, heart signals You Diagnostic Agent Diagnostics AI - (2017-2018) -Diaa Eldein Mustafa - Lecture (3) - Intelligent Agents (1/2)

  29. AI and the Web Information filtering. World Wide Web Web Pages Crawler Information gathering DB Response Query You Crawler: a program that systematically browses the World Wide Web in order to create an index of data. AI - (2017-2018) -Diaa Eldein Mustafa - Lecture (3) - Intelligent Agents (1/2)

  30. Thank You End AI - (2017-2018) -Diaa Eldein Mustafa - Lecture (3) - Intelligent Agents (1/2)

More Related