Unit - 1
Unit - 1
Introduction to Artificial
Intelligent [22AI002]
Dr. Aditi Moudgil
2
Syllabus
3
Contents
4
What is Artificial Intelligence?
5
What is Artificial Intelligence?
6
Why Artificial Intelligence?
• With the help of AI, you can create software or devices which
can solve real-world problems very easily and with accuracy
such as health issues, marketing, traffic issues, etc.
• With the help of AI, you can create your personal virtual
assistants, such as Cortana, Google Assistant, Siri, etc.
• With the help of AI, you can build such Robots which can
work in an environment where the survival of humans can be
at risk.
• AI opens a path for other new technologies, new devices, and
new opportunities.
7
Goals of Artificial Intelligence
8
Goals of Artificial Intelligence
4. Include knowledge representation – It is
concerned with the representation of 'what is
known' to machines by using the existence of a
set of objects, relations, and concepts. The
representation displays real-world data that a
computer can utilize to solve complicated real-
world problems, such as detecting a medical
condition or conversing with humans in natural
language.
5. Facilitates Planning − Through predictive
analytics, data analysis, forecasting, and
optimization models, AI-driven planning creates
a procedural course of action for a system to
reach its goals and optimizes overall
performance. One of the principal goals of 9
Goals of Artificial Intelligence
5. Allow continuous learning - Conceptually,
learning implies the ability of computer
algorithms to improve the knowledge of an AI
program through observations and past
experiences. Technically, AI programs process a
collection of input-output pairs for a defined
function and use the results to predict outcomes
for new inputs.
AI primarily uses two learning models–supervised
and unsupervised–where the main distinction lies
in using labeled datasets. As AI systems learn
independently, they require minimal or no human
intervention. For example, ML defines an
automated learning process.
10
Goals of Artificial Intelligence
6. Promote creativity
AI promotes creativity and artificial thinking that
can help humans accomplish tasks better. It also
offers a platform to augment and strengthen
creativity, as AI can develop many novel ideas
and concepts that can inspire and boost the
overall creative process. For example, an AI
system can provide multiple interior design
options for a 3D-rendered apartment layout.
11
What Comprises to AI?
12
What Comprises to AI?
13
Application areas of AI
14
Application areas of AI
1. AI in Astronomy
• Artificial Intelligence can be very useful to solve complex universe
problems. AI technology can be helpful for understanding the
universe such as how it works, its origin, etc.
2. AI in Healthcare
• In the last, five to ten years, AI becoming more advantageous for
the healthcare industry and going to have a significant impact on
this industry.
• Healthcare Industries are applying AI to make a better and faster
diagnosis than humans. AI can help doctors with diagnoses and can
inform when patients are worsening so that medical help can reach
the patient before hospitalization.
15
Application areas of AI
3. AI in Gaming
• AI can be used for gaming purposes. The AI machines can play
strategic games like chess, where the machine needs to think of a
large number of possible places.
4. 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.
5. AI in Data Security
• The security of data is crucial for every company and cyber-attacks
are growing very rapidly in the digital world. AI can be used to make
your data more safe and secure. Some examples such as the AEG
bot, AI2 Platform, are used to determine software bugs and cyber-
attacks in a better way.
16
Application areas of AI
6. 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,
hashtags, and requirements of different users.
7. AI in Travel & Transport
• AI is becoming highly demanding for travel industries. AI is capable
of doing various travel-related works such as making travel
arrangements to suggesting 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.
17
Application areas of AI
8. AI in Automotive Industry
• Some Automotive industries are using AI to provide virtual
assistants to their users for better performance. Such as Tesla has
introduced TeslaBot, an intelligent virtual assistant.
• Various Industries are currently working for developing self-driven
cars which can make your journey more safe and secure.
9. AI in Robotics:
• Usually, general robots are programmed such that they can perform
some repetitive tasks, but with the help of AI, we can create
intelligent robots which can perform tasks with their own
experiences without being pre-programmed.
• Humanoid Robots are the best examples of AI in robotics, recently
the intelligent Humanoid robot named Erica and Sophia has been
developed which can talk and behave like humans.
18
Application areas of AI
10. AI in Entertainment
• We are currently using some AI-based applications in our daily life
with some entertainment services such as Netflix or Amazon. With
the help of ML/AI algorithms, these services show the
recommendations for programs or shows.
11. AI in Agriculture
• Agriculture is an area that requires various resources, labor, money,
and time for the 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.
AI in agriculture can be very helpful for farmers.
12. 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. 19
Application areas of AI
13. 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 work as a personal virtual tutor for students,
which will be accessible easily at any time and any place.
20
Importance of Artificial Intelligence
21
Importance of Artificial Intelligence
• High Accuracy with less errors: AI machines or systems are prone to less
errors and high accuracy as it takes decisions as per pre-experience or
information.
• High-Speed: AI systems can be of very high-speed and fast-decision
making, because of that AI systems can beat a chess champion in the Chess
game.
• High reliability: AI machines are highly reliable and can perform the
same action multiple times with high accuracy.
• Useful for risky areas: AI machines can be helpful in situations such as
defusing a bomb, exploring the ocean floor, where to employ a human can
be risky.
• Daily Applications: Daily applications such as Apple’s Siri,
Window’s Cortana, Google’s OK Google are frequently used in our daily
routine whether it is for searching a location, taking a selfie, making a
phone call, replying to a mail and many more.
23
Advantages of Artificial Intelligence
24
Disadvantages of Artificial Intelligence
25
Disadvantages of Artificial Intelligence
26
History of Artificial Intelligence
27
History of Artificial Intelligence
28
History of Artificial Intelligence
29
History of Artificial Intelligence
A boom of AI (1980-1987)
• Year 1980: After AI winter duration, AI came back with an "Expert
System". Expert systems were programmed that emulate the
decision-making ability of a human expert.
• In the Year 1980, the first national conference of the American
Association of Artificial Intelligence was held at Stanford University.
The second AI winter (1987-1993)
• The duration between the years 1987 to 1993 was the second AI
Winter duration.
• Again Investors and the government stopped funding for AI
research due to high costs but not efficient results. The expert
system such as XCON was very cost-effective.
30
History of Artificial Intelligence
31
History of Artificial Intelligence
32
History of Artificial Intelligence
34
AI type - 1: Based on Capabilities
35
AI type - 1: Based on Capabilities
2. General AI:
• General AI is a type of intelligence that could perform any
intellectual task with efficiency like a human.
• The idea behind the general AI is to make such a system that could
be smarter and think like a human on its own.
• Currently, there is no such system exist which could come under
general AI and can perform any task as perfect as a human.
36
AI type - 1: Based on Capabilities
3. Super AI:
• Super AI is a level of Intelligence of Systems at which machines could
surpass human intelligence, and can perform any task better than
humans with cognitive properties. It is an outcome of general AI.
• Some key characteristics of strong AI include capability include the
ability to think, reason, solve the puzzle, make judgments, plan,
learn, and communicate on its own.
37
AI type - 1: Based on Capabilities
38
AI type - 2: Based on functionality
1. Reactive Machines
• Purely reactive machines are the most basic types of Artificial
Intelligence.
• Such AI systems do not store memories or past experiences for
future actions.
• These machines only focus on current scenarios and react to them
as per possible best action.
• IBM's Deep Blue system is an example of a reactive machine.
• Google’s AlphaGo is also an example of a reactive machine.
39
AI type - 2: Based on functionality
2. Limited Memory
• Limited memory machines can store past experiences or some data
for a short period of time.
• These machines can use stored data for a limited time period only.
• Self-driving cars are one of the best examples of Limited Memory
systems.
• These cars can store the recent speed of nearby cars, the distance
of other cars, speed limit, and other information to navigate the
road.
40
AI type - 2: Based on functionality
3. Theory of Mind
• Theory of Mind AI should understand human emotions, people,
beliefs, and be able to interact socially like humans.
• This type of AI machine is still not developed, but researchers are
making lots of efforts and improvements for developing such AI
machines.
41
AI type - 2: Based on functionality
4. Self-Awareness
• Self-awareness AI is the future of Artificial Intelligence. These
machines will be super intelligent and will have their own
consciousness, sentiments, and self-awareness.
• These machines will be smarter than the human mind.
• Self-Awareness AI does not exist in reality still and it is a
hypothetical concept.
42
What is an Agent?
An agent can be anything that perceives 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 agents can have keystrokes, file contents
as sensory input and act on those inputs and display output on the
screen.
Hence the world around us is full of agents such as thermostats,
cellphone, cameras, and even we are also agents.
43
What is an Agent?
• Sensor: A sensor is a device that 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 that affect the environment. Effectors
can be legs, wheels, arms, fingers, wings, fins, and display screens.
44
Intelligent Agents
An intelligent agent is an autonomous entity that acts upon an
environment using sensors and actuators for achieving goals. An
intelligent agent may learn from the environment to achieve their
goals.
A thermostat is an example of an intelligent agent.
46
Rational Agent
Rationality:
The rationality of an agent is measured by its performance measure.
Rationality can be judged on the basis of the following points:
• Performance measure which defines the success criterion.
• Agent prior knowledge of its environment.
• Best possible actions that an agent can perform.
• The sequence of percepts.
47
Structure of an AI Agent
The task of AI is to design an agent program that implements the agent
function. The structure of an intelligent agent is a combination of
architecture and agent programs.
It can be viewed as:
Agent = Architecture + Agent program
49
PEAS for self-driving cars
Let's suppose a self-driving car then PEAS representation
will be:
• Performance: Safety, time, comfort
• Environment: Roads, other vehicles, road signs,
pedestrian
• Actuators: Steering, accelerator, brake, signal, horn
• Sensors: Camera, GPS, speedometer, odometer,
accelerometer, sonar.
50
Example of Agents with their PEAS representation
Agent Performance Environment Actuators Sensors
measure
1. Medical • Healthy • Patient • Tests Keyboard
Diagnose patient • Hospital • Treatments (Entry of
• Minimized • Staff symptoms)
cost
2. Vacuum • Cleanness • Room • Wheels • Camera
Cleaner • Efficiency • Table • Brushes • Dirt detection
• Battery life • Wood floor • Vacuum sensor
• Security • Carpet Extractor • Cliff sensor
• Various • Bump Sensor
obstacles • Infrared Wall
Sensor
3. Part -picking • Percentage of • Conveyor belt • Jointed Arms • Camera
Robot parts in correct with parts, • Hand • Joint angle
bins. • Bins sensors.
51
Agent Environment in AI
• An environment is everything in the world that 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 the agent lives, operates and
provides the agent with something to sense and act upon it.
52
Types of AI 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 time. These are
given below:
• Simple Reflex Agent
• Model-based reflex agent
• Goal-based agents
• Utility-based agent
• Learning agent
53
1. Simple Reflex agent
• The Simple reflex agents are the simplest agents. These agents take
decisions on the basis of the current percepts and ignore the rest of
the percept history.
• These agents only succeed in the fully observable environment.
• The Simple reflex agent does not consider any part of percepts
history during their decision and action process.
• The Simple reflex agent works on the Condition-action rule, which
means it maps the current state to action. Such as a Room Cleaner
agent, it works only if there is dirt in the room.
• Problems for the simple reflex agent design approach:
• They have very limited intelligence
54
1. Simple Reflex agent
• They do not have knowledge of non-perceptual
parts of the current state
• Mostly too big to generate and to store.
• Not adaptive to changes in the environment.
55
2. Model-based reflex agent
• The Model-based agent can work in a partially
observable environment, and track the
situation.
• A model-based agent has two important factors:
• Model: It is knowledge about "how things
happen in the world," so it is called a Model-
based agent.
• Internal State: It is a representation of the current
state based on percept history.
• These agents have the model, "which is knowledge of
the world" and based on the model they perform
actions.
• Updating the agent state requires information about: 56
• How the world evolves
2. Model-based reflex agent
57
3. Goal-based agents
• The knowledge of the current state environment is not
always sufficient to decide for an agent to what to do.
• The agent needs to know its goal which describes
desirable situations.
• Goal-based agents expand the capabilities of the
model-based agent by having the "goal"
information.
• They choose an action, so that they can achieve
the goal.
• These agents may have to consider a long sequence
of possible actions before deciding whether the goal is
achieved or not.
• Such considerations of different scenario are called 58
searching and planning, which makes an agent
3. Goal-based agents
59
4. Utility-based agents
• These agents are similar to the goal-based agent but
provide an extra component of utility measurement
which makes them different by providing a measure of
success at a given state.
• Utility-based agent act based not only goals but
also the best way to achieve the goal.
• The Utility-based agent is useful when there are
multiple possible alternatives, and an agent has to
choose in order to perform the best action.
• The utility function maps each state to a real
number to check how efficiently each action achieves
the goals.
60
4. Utility-based agents
61
5. Learning Agents
• A learning agent in AI is the type of agent which can learn from its
past experiences or has learning capabilities.
• It starts to act with basic knowledge and then can act and adapt
automatically through learning.
• A learning agent has mainly four conceptual components, which
are:
• Learning element: It is responsible for making improvements by
learning from the environment.
• Critic: The learning element takes feedback from critics which
describe that how well the agent is doing with respect to a fixed
performance standard.
62
5. Learning Agents
• Performance element: It is responsible for selecting external
action
• Problem generator: This component is responsible for
suggesting actions that will lead to new and informative
experiences.
• Hence, learning agents are able to learn, analyze performance, and
look for new ways to improve performance.
63
5. Learning Agents
64
THANK YOU
65