Module1 (1) - Copy
Module1 (1) - Copy
✓ Class Outline
5 Intelligent Agent
Course Evaluation
Theory (100)
I Internal weight (20/100)
- Assignments (in total 6/7) for each module [ 10 ]
- Class Attendance, Activities and 3 - ADT [ 4 + 6 = 10 ]
3 - ADT [ 1 + 2 + 3 = 6 ]
II External weight (80/100)
- End Semester Exam by IOE, TU
Practical (25) – Internal only
- Lab Attendance [ 5 ] – 1 marks per Lab.
- Lab Report and Minor ML Project (Python) [ 10 + 10 = 20 ]
References
- Artificial Intelligence A modern approach – Stuart J. Russell
and Peter Norvig
- Introduction to Artificial Intelligence – Prof.Dr.Wolfgang Ertel
Introduction
# What is Intelligence?
✓ Behave as intelligently as human (one school of thought –
accept humans are intelligent).
✓ behave in best manner or most rational behavior (other school
of thought – however, as human would not behave
intelligently all the time).
# behavior
✓ thinking behavior – reasoning properly to come of with best
solution to the problem.
✓ acting behavior – acting in best possible manner for the best
solution.
Introduction
# Intelligence:
Roberto Colom, 2010 – Human Intelligence and Brain Networks:
Intelligence can be defined as a general mental ability for
reasoning, problem solving, and learning. Because of its general
nature, intelligence integrates cognitive functions such as
perception, attention, memory, language, or planning.
On the basis of this definition, intelligence can be reliably
measured by standardized tests with obtained scores predicting
several broad social outcomes such as educational achievement,
job performance, health, and longevity.
# Artificial Intelligence:...
In a broad sense, AI can be referred as the simulation of human
intelligence in machines that are programmed to think like humans
and mimic their actions.
• AI refers to the simulation or approximation of human
intelligence in machines.
• The goals of artificial intelligence include computer-enhanced
learning, reasoning, and perception.
• Weak AI tends to be simple and single-task oriented, while
strong AI carries on tasks that are more complex and
human-like.
• AI is being used today across different industries from finance
to healthcare.
Introduction...
All the AI systems in existence today are Weak AI; Self-driving cars
and virtual assistants, like Siri, are examples of Weak AI.
Introduction...
# Approaches to AI
Thought/Reasoning
Behaviour
Introduction...
Systems that think humanly Systems that think rationally
“The exciting new effort to make “The study of mental faculties
computer think... machines with through the use of computational
minds, in the full and literal sense” models”– Charniak and McDer-
- Haugeland, 1985. mott, 1985. (Reason, Memory,
“Automation of Activities that we as- Imagination, Perception)
sociate with human thinking, prob- “The study of computations that
lem solving, learning...”– Bellman, make it possible to perceive, reason,
1978. and act”– Wiston, 1992.
System that acting humanly Systems that acting rationally
“The art of creating machines “Computational intelligence is the
that perform functions that re- study of design of intelligent
quire intelligence when performed agent” – Poole et. al., 1998.
by people.”– Kurzweil, 1990 “AI... is concerned with intelli-
“The study of how to make computer
gent behavior in artifact”– Nils-
do things at which at the moment
people are better.”– Rich & Night, son, 1998
1991.
Artificial Intelligence Approaches
Symbolic AI
- more commonly known as rule-based AI, or good
old-fashioned AI (GOFAI) or classic AI.
- Earlier AI development and research was based on Symbolic
AI inserting human behavior and knowledge in the form of
computer codes and processed by expert system.
- Symbolic AI system has a combination of characters signifying
real-world concepts or entities through a series of symbols.
- These symbols can easily be arranged through networks and
lists or arranged hierarchically telling AI algorithms how each
symbol is related to each other in totality.
Artificial Intelligence techniques
Connectionist AI/Non-Symbolic AI
- it is also known as neural AI and more popular these days.
- Neural AI is based on how a human mind functions and its
neural interconnections; that is neural network.
- Neural Network is made up of hundreds of single processing
units called neurons.
- They are a layered format forming connections with weights
(parameters) which are adjustable.
Importance and Applications of Artificial Intelligence
Scope of Artificial Intelligence
Learning
- it means to acquire new
knowledge or things.
- it provides system the
learning ability to
automatically learn from the
data (experience) and
improve performance
without being explicitly Fig. 9 Learning(Human & Machine)
programmed.
Reasoning
- Reasoning means to infer
facts from given facts.
- Reasoning is a form of
inference and logical
techniques that is expressed
through words (qualitative)
and other symbols
(quantitative reasoning). Fig. 10 Reasoning in Intelligence
Linguistic Intelligence
- Language understanding
means to understand natural
Language meaning.
- It is one’s ability to use,
comprehend, speak, and
write the verbal and written
language.
- in AI, it means understand
user speech, written
materials and respond
Fig. 11 Language Understanding
accordingly.
✓ In broad sense, Language Understanding in artificial intelligence
helps machines for ⃝1 machine translation, ⃝
2 sentiment analysis,
⃝
3 information extraction, ⃝
4 question answering.
Applications of Artificial Intelligence...
Problem Solving
- Problem-solving means to
move towards the goal.
- Psychologically, it refers to a
state where we wish to
reach to a definite goal from
a present state or condition.”
- in AI, problem-solving
encompasses a number of
techniques such as search
algorithms, heuristics to Fig. 12 Problem Solving
solve a problem.
Perception
- It is the process of acquiring,
interpreting, selecting, and
organizing sensory information.
- Perception presumes sensing.
- In humans, perception is aided by
sensory organs.
Fig. 13 Perception in Intelligence
AI in Gaming
- AI can be used for gaming purpose.
- The AI machines can play strategic games like chess, where
the machine needs to think of a large number of possible
places.
AI in Finance
- AI and finance industries are the best matches for each other.
- The finance industry is implementing automation, chatbot,
adaptive intelligence, algorithm trading, and machine learning
into financial processes.
Applications of Artificial Intelligence...
AI in Data Security
- The security of data is crucial for every company and
cyber-attacks are growing very rapidly in the digital domain.
- AI can be used to make your data more safe and secure.
- Some examples such as AEG bot, AI2 Platform, are used to
determine software bug and cyber-attacks in a better way.
AI in Social Media
- Social Media sites such as Facebook, Twitter, and Snapchat
contain billions of user profiles, which need to be stored and
managed in a very efficient way.
- AI can organize and manage massive amounts of data.
- AI can analyze lots of data to identify the latest trends,
hashtag, and requirement of different users.
Applications of Artificial Intelligence...
AI in Travel & Transport
- AI is becoming highly demanding for travel industries.
- AI is capable of doing various travel related works such as
from making travel arrangement to suggest the hotels, flights,
and best routes to the customers.
- Travel industries are using AI-powered chatbots which can
make human-like interaction with customers for better and
fast response.
AI in Automotive Industry
- Some Automotive industries are using AI to provide virtual
assistant to their user for better performance.
- Tesla has introduced TeslaBot, an intelligent virtual assistant.
- Various Industries are currently working for developing
self-driven cars making journey more safe and secure.
Applications of Artificial Intelligence...
AI in Robotics
- Artificial Intelligence has a remarkable role in Robotics.
Usually, general robots are programmed such that they can
perform some repetitive task, but with the help of AI, we can
create intelligent robots which can perform tasks with their
own experiences without pre-programmed.
- Humanoid Robots are best examples for AI in robotics,
recently the intelligent Humanoid robot, Erica and Sophia,
has been developed which can talk and behave like humans.
AI in Entertainment
- We are currently using some AI based applications in our daily
life with some entertainment services: Netflix or Amazon.
- With the help of ML/AI algorithms, these services show the
recommendations for programs/shows or videos.
Applications of Artificial Intelligence...
AI in Agriculture
- Agriculture is an area which requires various resources, labor,
money, and time for best result.
- Now a day’s agriculture is becoming digital, and AI is
emerging in this field.
- Agriculture is applying AI as agriculture robotics, solid and
crop monitoring, predictive analysis.
- Therefore, AI in agriculture can be very helpful for farmers.
AI in E-commerce
- AI is providing a competitive edge to the e-commerce
industry, and it is becoming more demanding in the
e-commerce business.
- AI is helping shoppers to discover associated products with
recommended size, color, or even brand.
Applications of Artificial Intelligence...
AI in education
- AI can automate grading so that the tutor can have more
time to teach.
- AI chatbot can communicate with students as a teaching
assistant.
- AI in the future can be work as a personal virtual tutor for
students, which will be accessible easily at any time and from
any place.
Knowledge and Learning
# Data:
- are streams of raw facts obtained through acquisition system.
- data represents process or phenomena (stochastic process).
- can be arranged into the form understandable and usable.
# Information:
- is processed and organized data .
- is structured to give context and meaning.
- in other words, data shaped into form meaningful
(understandable, interpretable) and usable to human.
# Cognitive Process:
Before defining Learning, lets talk about “cognitive process:”
¬ Physically, cognitive processes are series of chemical and
electrical signals stimulated in brain that allows to comprehend
your environment and gain knowledge.
Neurons release chemicals that create electrical signals in nearby
neurons, creating mass of signals that are then translated into
conscious and unconscious thoughts.
Denise Krch, 2011: “Cognitive processing is (a general term to
describe) a series of cognitive operations carried out in the creation
and manipulation of mental representations of information.”
Cognitive Process includes: ¬ attention, perception, reasoning,
emotion, learning, synthesizing, manipulation of stored
information, memory storage, retrieval.
Knowledge and Learning...
# Learning:
• it is cognitive process of acquiring skill or knowledge.
• it makes useful change in our mind with mental representation
of information(mental state).
• it constructs or modifies the representation of what is being
experienced.
Herbert Simon, 1983: Learning is the phenomenon of knowledge
acquisition in the absence of explicit programming.
Learning involves three factors: Changes, Generalization, and
Improvement.
Knowledge and Learning...
Changes:
Learning changes learner. In machine learning, problem is
determining the nature of following changes (random process) and
represent them in the best form (✓model the distribution).
Generalization:
AI/learning, in fact, is Generalization where performance must
improve not only on the same task but on similar task.
Improvement:
Learning leads to the improvements. It must address the possible
degradation of performance for some changes. Generally, Learning
should improve performance.
Intelligent Agent
# Agent
An agent is something that can be viewed as perceiving its
environment through sensors and acting up on that environment
through effectors/actuators.
Human Agent
Eyes, ears and other organs for sensors; hands legs, mouth and
another body parts for actuators.
Robotic Agent
Cameras and infrared for sensor; various motor for the actuators.
Software Agent
It receives keystrokes, file contents, and network packets as sensory
inputs; (acts on the environment by) displaying on the screen,
writing files, and sending network packets are action by
effectors/actuators.
Intelligent Agent...
# Intelligent Agent
An agent perceives its environment(E) via sensors(S) and acts
rationally upon environment with its actuators/effectors(A) to
maximize its performance measure(P) based on the evidence by
percepts sequence and whatever knowledge built-in the agent has
(can be called rational agent). ¬ PEAS Representation.
In terms of computer science, an intelligent agent is a computer
software system whose main characteristics are situatedness,
autonomy, adaptivity, and sociability.
Situatedness
The agent receives some form of sensory input from its
environment, and it performs some action that changes its
environment in some way. Examples of environments: the physical
world and the Internet.
Intelligent Agent...
Autonomy
The agent can act without direct intervention by humans or other
agents; it has control over its own actions and internal state.
Adaptivity
The agent is capable of
✓ (1) reacting flexibly to changes in its environment;
✓ (2) taking goal-directed initiative (i.e., is pro-active), when
appropriate; and
✓(3) learning from its own experience, its environment, and
interactions with others.
Sociability
The agent is capable of interacting in a peer-to-peer manner with
other agents or humans.
Intelligent Agent...
4 Goal-based agents
Table-driven agents:
• it uses a percept
sequences/action pairs in
memory to find the next
action to be performed.
• they are implemented by a
lookup table.
• it takes long time to build
lookup table.
• not adaptable to the change
environment, requires Fig. 17 Table-driven agent
change in lookup table.
Intelligent Agent...
Utility-based agents: