Ai Unit 1
Ai Unit 1
• This method tries to copy how humans think and understand things. It aims to
understand how humans think and solve problems. i.e. Cognitive science.
• “Cognitive science/modelling” refers to the scientific study of how humans think
and reason.
• Example; Cognitive psychology-inspired AI systems, such as virtual assistants like
Siri or Alexa, try to act like humans. They listen to what people say, try to
understand what they mean, and respond like a person would in a conversation.
• It is not related to how a computer program solves a problem correctly. Thinking
Humanly is more interested in seeing how its steps compare to how a human
would solve the same problem.
• https://www.youtube.com/watch?v=mDntbGRPeEU&ab_channel=drrobertepstei
n
Acting Humanly: The Turing Test
• This approach aims to create AI systems
that perform tasks in a manner very
similar to human behavior. It focuses on
achieving human-like performance in
various tasks.
• The Turing Test, proposed by Alan Turing
(1950), was designed to provide a
satisfactory operational definition of
intelligence. A computer passes the test
if a human interrogator, after posing
some written questions, cannot tell
whether the written responses come
from a person or from a computer.
Acting Humanly: The Turing Test
Example: Turing Test
1. 3 rooms contain: a person, a computer and an interrogator.
2. The interrogator can communicate with the other 2 by text type (to
avoid the machine imitate the appearance of voice of the person)
3. The interrogator tries to determine which the person is and which the
machine is.
4. The machine tries to fool the interrogator to believe that it is the
human, and the person also tries to convince the interrogator that it
is the human.
5. If the machine succeeds in fooling the interrogator, then conclude
that the machine is intelligent and it is passed the test.
Thinking Rationally: Laws of Thought
• This approach emphasizes on designing AI systems that follow
principles of logic and rational(logical) decision-making, regardless of
whether it mirrors human thought process.
• In simple words, if your thoughts are based on facts and not
emotions, it is called rational thinking.
• Example: Expert systems, such as medical diagnosis systems, rely on
rules and logical inference to make decisions. These systems use
knowledge bases of medical expertise and logical reasoning to
diagnose diseases based on symptoms reported by patients.
Acting Rationally: Rational Agent
• This approach focuses on creating AI systems that make decisions to
achieve the best outcome, irrespective of whether the
decision-making process resembles human thinking.
• Acting rationally is more related to scientific development than
human-based approaches.
• Example: Autonomous vehicles, like self-driving cars, operate based
on the principle of acting rationally. They analyze sensor data in
real-time, process it using algorithms to detect obstacles, and make
decisions to navigate safely to their destination, optimizing factors
like speed, distance and safety.
1.3 Future of Artificial Intelligence
• Healthcare: AI will revolutionize healthcare by enabling early diagnosis, personalized
treatment plans, and advanced medical research. AI-powered tools can analyze medical
images, predict disease outbreaks, and assist in drug discovery.
• Autonomous Vehicles: Self-driving cars and drones will become more prevalent,
improving transportation efficiency and safety. AI will enable vehicles to navigate complex
environments, reduce traffic congestion, and lower accident rates.
• Education: AI will transform education by providing personalized learning experiences,
intelligent tutoring systems, and automated grading. AI-driven tools can adapt to
individual learning styles, identify areas for improvement, and offer tailored resources.
• Finance: AI will enhance financial services by automating trading, fraud detection, and risk
management. AI algorithms can analyze market trends, predict economic shifts, and
optimize investment strategies.
• Customer Service: AI-powered chatbots and virtual assistants will improve customer
service by providing instant, accurate responses and handling routine inquiries. This will
free up human agents to focus on more complex tasks.
1.3 Future of Artificial Intelligence
• Manufacturing: AI will optimize manufacturing processes through predictive maintenance,
quality control, and supply chain management. AI systems can monitor equipment, detect
anomalies, and streamline production.
• Environmental Sustainability: AI will contribute to environmental sustainability by optimizing
energy usage, monitoring natural resources, and predicting climate change impacts. AI tools can
help in conservation efforts and promote sustainable practices.
• Entertainment and Media: AI will revolutionize the entertainment industry by creating realistic
virtual environments, enhancing content recommendation systems, and generating new forms of
interactive media.
• Ethical and Societal Impact: As AI becomes more integrated into daily life, ethical considerations
will gain importance. Issues such as data privacy, bias in AI algorithms, and job displacement will
need to be addressed through policy and regulation.
• AI and Human Collaboration: The future will see increased collaboration between humans and
AI. AI will augment human capabilities, assist in decision-making, and provide valuable insights
across various fields.
1.4 Characteristics of Intelligent Agents
Intelligent agents are systems that perceive their environment and take
actions to maximize their chances of success.
The key characteristics include:
• Autonomy
• Reactivity
• Proactiveness
• Social ability
• Mobility
• Rationality
• Learning
• Cooperation
• Coordination
CHARACTERISTICS OF INTELLIGENT AGENTS
● Autonomy is the most important property of an IA and is defined as the
ability of an agent to make decisions and control its actions and internal
states without direct intervention from other entities (human or machine).
In other words, an IA is independent and makes its own decisions.
● Reactivity refers to the ability of an agent to perceive and react to
environmental changes in order to achieve the goal(s).
● Proactivity is the ability of an agent to take initiative, plan and perform
the required actions to achieve its goal(s).
● Social Ability enables agents to communicate and interact with each
other and other entities in the environment. This interaction can be in the
form of coordination, cooperation, negotiation, and even competition.
● Mobility is the agent’s ability to move from its origin to other machines across a
network and perform design objectives locally on remote hosts. Mobile agents can
increase the processing speeds of the system as a whole and reduce network traffic and
communication costs.
● Rationality is the ability of an agent to make decisions that are dynamically based on
the state of the environment. A detailed analysis of what rationality means can be
found in. This analysis forms the basis of the Beliefs, Desires, and Intentions (BDI)
model for software agents.
● Learning is the ability of an agent to learn from interactions and changes in the
environment through experience in order to improve its performance over time. With a
learning ability, an agent is able to add and improve its features dynamically.
● Cooperation is establishing a voluntary relationship with another agent to adopt its
goal. Cooperation with an agent enables the two agents to establish a voluntary
relationship with each other to adopt mutual goals and form a combined team.
● Coordination is the ability to manage the interdependencies between humans or other
agents and form a team with them. Depending on the application and purpose of where
and how agents are used, these properties can be desirable or undesirable.
1.5 Agents and its types
An agent can be anything that perceive its environment through sensors and
act upon that environment through actuators. An Agent runs in the cycle of
perceiving, thinking, and acting. An agent can be:
○ Human-Agent: A human agent has eyes, ears, and other organs which
work for sensors and hand, legs, vocal tract work for actuators.
○ Robotic Agent: A robotic agent can have cameras, infrared range finder,
NLP for sensors and various motors for actuators.
○ Software Agent: Software agent can have keystrokes, file contents as
sensory input and act on those inputs and display output on the screen.
Sensors, Actuators, Effectors
• Sensor: Sensor is a device which detects the change in the
environment and sends the information to other electronic devices.
An agent observes its environment through sensors.
• Actuators: Actuators are the component of machines that converts
energy into motion. The actuators are only responsible for moving
and controlling a system. An actuator can be an electric motor, gears,
rails, etc.
• Effectors: Effectors are the devices which affect the environment.
Effectors can be legs, wheels, arms, fingers, wings, fins, and display
screen.
Rules of AI agent
○ Rule 1: An AI agent must have the ability to perceive the
environment.
○ Rule 2: The observation must be used to make decisions.
○ Rule 3: Decision should result in an action.
○ Rule 4: The action taken by an AI agent must be a rational action.
Environment
• An environment is everything in the world which surrounds the agent, but it is not a part
of an agent itself. An environment can be described as a situation in which an agent is
present.
• The environment is where agent lives, operate and provide the agent with something to
sense and act upon it.
• Fully observable vs Partially Observable:
• If an agent sensor can sense or access the complete state of an environment at each point
of time then it is a fully observable environment, else it is partially observable.
• A fully observable environment is easy as there is no need to maintain the internal state
to keep track history of the world.
• An agent with no sensors in all environments then such an environment is called as
unobservable.
• Example: chess – the board is fully observable, as are opponent’s moves. Driving – what is
around the next bend is not observable and hence partially observable.
PEAS: Performance Measure, Environment,
Actuators, Sensors
• Performance: The output which we get from the agent. All the
necessary results that an agent gives after processing comes under its
performance.
• Environment: All the surrounding things and conditions of an agent
fall in this section. It basically consists of all the things under which
the agents work.
• Actuators: The devices, hardware or software through which the
agent performs any actions or processes any information to produce
a result are the actuators of the agent.
• Sensors: The devices through which the agent observes and perceives
its environment are the sensors of the agent.
Rational Agent
• Rational Agent - A system is rational if it does the “right thing”. Given
what it knows.
• Characteristic of Rational Agent
• The agent's prior knowledge of the environment.
• The performance measure that defines the criterion of success.
• The actions that the agent can perform.
• The agent's percept sequence to date.
• For every possible percept sequence, a rational agent should select
an action that is expected to maximize its performance measure,
given the evidence provided by the percept sequence and whatever
built-in knowledge the agent has.
The Structure of Intelligent Agents
The Structure of Intelligent Agents
• Agent = Architecture + Agent Program
• Architecture = the machinery that an agent executes on. (Hardware)
• Agent Program = an implementation of an agent function. (Algorithm,
Logic – Software)
Types of agents
Agents can be grouped into five classes based on their degree of perceived intelligence and capability.
All these agents can improve their performance and generate better action over the time.
Heuristic
• A heuristic is an approximate measure of how close you are to the target.
• Must be zero if node represents a goal state.
Greedy best first search
• Combination of depth-first search and breadth-first search
• In the Greedy best first search algorithm, we expand the node which is closest to
the goal node which is estimated by heuristic function h(n).
f(n)= h(n)
Where,
h(n)= estimated cost from node n to the goal.
Greedy best first search
A* search
• In A* search algorithm, we use search heuristic h(n) as well as the
cost to reach the node g(n). Hence we can combine both costs as
following, and this sum is called as a fitness number f(n).
• It has combined features of uniform cost search and greedy
best-first search.
• f(n)= g(n) + h(n)
where,
• g(n) -> cost of the path from start node to node n
• h(n) -> cost of the path from node n to goal state(heuristic function)
A* search
Unit 1 - Completed