0% found this document useful (0 votes)
31 views

Faiml Unit 1 Notes

Fundamental of artificial intelligence and machine learning unit 1 notes

Uploaded by

vinaymarbe40
Copyright
© © All Rights Reserved
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
31 views

Faiml Unit 1 Notes

Fundamental of artificial intelligence and machine learning unit 1 notes

Uploaded by

vinaymarbe40
Copyright
© © All Rights Reserved
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 22

Peoples Empowerment Group

ISBM COLLEGE OF ENGINEERING, PUNE


ARTIFICIAL INTELLIGENCE AND MACHINE LEARNING
Academic Year 2022-23
Sem-II

FAIML UNIT 1
What is Artificial Intelligence?

According to the father of Artificial Intelligence, John McCarthy, it is “The


science and engineering of making intelligent machines, especially intelligent
computer programs”.
Artificial Intelligence is a way of making a computer, a computer-controlled
robot, or a software think intelligently, in the similar manner the intelligent
humans think.
AI is accomplished by studying how human brain thinks, and how humans learn,
decide, and work while trying to solve a problem, and then using the outcomes of
this study as a basis of developing intelligent software and systems.

Goals of AI
● To Create Expert Systems − The systems which exhibit intelligent
behavior, learn, demonstrate, explain, and advice its users.
● To Implement Human Intelligence in Machines − Creating systems that
understand, think, learn, and behave like humans.

What Contributes to AI?

● Artificial intelligence is a science and technology based on disciplines such


as Computer Science, Biology, Psychology, Linguistics, Mathematics, and
Engineering. A major thrust of AI is in the development of computer
functions associated with human intelligence, such as reasoning, learning,
and problem solving.
● Out of the following areas, one or multiple areas can contribute to build an
intelligent system.
Programming Without and With AI

The programming without and with AI is different in following ways −

Programming Without AI Programming With AI

A computer program without AI can answer A computer program with AI can


the specific questions it is meant to solve. answer the generic questions it is
meant to solve.

AI programs can absorb new


modifications by putting highly
independent pieces of information
Modification in the program leads to change
together. Hence you can modify even
in its structure.
a minute piece of information of
program without affecting its
structure.

Modification is not quick and easy. It may Quick and Easy program
lead to affecting the program adversely. modification.
What is AI Technique?

In the real world, the knowledge has some unwelcomed properties −

● Its volume is huge, next to unimaginable.


● It is not well-organized or well-formatted.
● It keeps changing constantly.
AI Technique is a manner to organize and use the knowledge efficiently in such a
way that −

● It should be perceivable by the people who provide it.


● It should be easily modifiable to correct errors.
● It should be useful in many situations though it is incomplete or inaccurate.
AI techniques elevate the speed of execution of the complex program it is
equipped with.

Applications of AI
AI has been dominant in various fields such as −
● Gaming − AI plays crucial role in strategic games such as chess, poker, tic-
tac-toe, etc., where machine can think of large number of possible positions
based on heuristic knowledge.
● Natural Language Processing − It is possible to interact with the
computer that understands natural language spoken by humans.
● Expert Systems − There are some applications which integrate machine,
software, and special information to impart reasoning and advising. They
provide explanation and advice to the users.
● Vision Systems − These systems understand, interpret, and comprehend
visual input on the computer. For example,
o A spying aeroplane takes photographs, which are used to figure out
spatial information or map of the areas.
o Doctors use clinical expert system to diagnose the patient.
o Police use computer software that can recognize the face of criminal
with the stored portrait made by forensic artist.
● Speech Recognition − Some intelligent systems are capable of hearing and
comprehending the language in terms of sentences and their meanings
while a human talks to it. It can handle different accents, slang words, noise
in the background, change in human’s noise due to cold, etc.
● Handwriting Recognition − The handwriting recognition software reads
the text written on paper by a pen or on screen by a stylus. It can recognize
the shapes of the letters and convert it into editable text.
● Intelligent Robots − Robots are able to perform the tasks given by a
human. They have sensors to detect physical data from the real world such
as light, heat, temperature, movement, sound, bump, and pressure. They
have efficient processors, multiple sensors and huge memory, to exhibit
intelligence. In addition, they are capable of learning from their mistakes
and they can adapt to the new environment.

History of AI

Here is the history of AI during 20th century −

Year Milestone / Innovation

1923 Karel Čapek play named “Rossum's Universal Robots” (RUR)


opens in London, first use of the word "robot" in English.

1943 Foundations for neural networks laid.

Isaac Asimov, a Columbia University alumni, coined the


1945
term Robotics.

Alan Turing introduced Turing Test for evaluation of


intelligence and published Computing Machinery and
1950
Intelligence. Claude Shannon published Detailed Analysis of
Chess Playing as a search.

John McCarthy coined the term Artificial Intelligence.


1956 Demonstration of the first running AI program at Carnegie
Mellon University.

1958 John McCarthy invents LISP programming language for AI.


Danny Bobrow's dissertation at MIT showed that computers can
1964 understand natural language well enough to solve algebra word
problems correctly.

Joseph Weizenbaum at MIT built ELIZA, an interactive


1965
problem that carries on a dialogue in English.

Scientists at Stanford Research Institute Developed Shakey, a


1969 robot, equipped with locomotion, perception, and problem
solving.

The Assembly Robotics group at Edinburgh University


1973 built Freddy, the Famous Scottish Robot, capable of using
vision to locate and assemble models.

The first computer-controlled autonomous vehicle, Stanford


1979
Cart, was built.

Harold Cohen created and demonstrated the drawing


1985
program, Aaron.

Major advances in all areas of AI −

● Significant demonstrations in machine learning


● Case-based reasoning
● Multi-agent planning
1990 ● Scheduling
● Data mining, Web Crawler
● natural language understanding and translation
● Vision, Virtual Reality
● Games

The Deep Blue Chess Program beats the then world chess
1997
champion, Garry Kasparov.

2000 Interactive robot pets become commercially available. MIT


displays Kismet, a robot with a face that expresses emotions.
The robot Nomad explores remote regions of Antarctica and
locates meteorites.

Advantages and Disadvantages of Artificial Intelligence

The advantages of Artificial intelligence applications are enormous and can


revolutionize any professional sector. Let’s see some of them

1) Reduction in Human Error:


2) Takes risks instead of Humans:
3) Available 24x7:

4) Helping in Repetitive Jobs:

5) Digital Assistance:

6) Faster Decisions:

7) Daily Applications:

8) New Inventions:

Artificial Intelligence also has some disadvantages. Let’s see some of them

1) High Costs of Creation:


2) Making Humans Lazy:
3) Unemployment:
4) No Emotions:
5) Lacking Out of Box Thinking:

Types of Agents
Agents can be grouped into four classes based on their degree of perceived
intelligence and capability :
● Simple Reflex Agents
● Model-Based Reflex Agents
● Goal-Based Agents
● Utility-Based Agents
● LearningAgent

Simple reflex agents

Simple reflex agents ignore the rest of the percept history and act only on the basis
of the current percept. Percept history is the history of all that an agent has
perceived to date. The agent function is based on the condition-action rule. A
condition-action rule is a rule that maps a state i.e, condition to an action. If the
condition is true, then the action is taken, else not. This agent function only
succeeds when the environment is fully observable. For simple reflex agents
operating in partially observable environments, infinite loops are often
unavoidable. It may be possible to escape from infinite loops if the agent can
randomize its actions.
Problems with Simple reflex agents are :
● Very limited intelligence.
● No knowledge of non-perceptual parts of the state.
● Usually too big to generate and store.
● If there occurs any change in the environment, then the collection of rules need
to be updated.
Model-based reflex agents

It works by finding a rule whose condition matches the current situation. A model-
based agent can handle partially observable environments by the use of a model
about the world. The agent has to keep track of the internal state which is adjusted
by each percept and that depends on the percept history. The current state is stored
inside the agent which maintains some kind of structure describing the part of the
world which cannot be seen.
Updating the state requires information about :
● how the world evolves independently from the agent, and
● how the agent’s actions affect the world.

Goal-based agents

These kinds of agents take decisions based on how far they are currently from
their goal(description of desirable situations). Their every action is intended to
reduce its distance from the goal. This allows the agent a way to choose among
multiple possibilities, selecting the one which reaches a goal state. The knowledge
that supports its decisions is represented explicitly and can be modified, which
makes these agents more flexible. They usually require search and planning. The
goal-based agent’s behavior can easily be changed.

Utility-based agents

The agents which are developed having their end uses as building blocks are called
utility-based agents. When there are multiple possible alternatives, then to decide
which one is best, utility-based agents are used. They choose actions based on
a preference (utility) for each state. Sometimes achieving the desired goal is not
enough. We may look for a quicker, safer, cheaper trip to reach a destination.
Agent happiness should be taken into consideration. Utility describes
how “happy” the agent is. Because of the uncertainty in the world, a utility agent
chooses the action that maximizes the expected utility. A utility function maps a
state onto a real number which describes the associated degree of happiness.
Learning Agent :
A learning agent in AI is the type of agent that can learn from its past experiences
or it has learning capabilities. It starts to act with basic knowledge and then is able
to act and adapt automatically through learning.
A learning agent has mainly four conceptual components, which are:
1. Learning element: It is responsible for making improvements by learning from
the environment
2. Critic: The learning element takes feedback from critics which describes how
well the agent is doing with respect to a fixed performance standard.
3. Performance element: It is responsible for selecting external action
4. Problem Generator: This component is responsible for suggesting actions that
will lead to new and informative experiences.
An AI system is composed of an agent and its environment. The agents act in their
environment. The environment may contain other agents.

What are Agent and Environment?

An agent is anything that can perceive its environment through sensors and acts
upon that environment through effectors.
● A human agent has sensory organs such as eyes, ears, nose, tongue and
skin parallel to the sensors, and other organs such as hands, legs, mouth, for
effectors.
● A robotic agent replaces cameras and infrared range finders for the
sensors, and various motors and actuators for effectors.
● A software agent has encoded bit strings as its programs and actions.
Agent Terminology

● Performance Measure of Agent − It is the criteria, which determines how


successful an agent is.
● Behavior of Agent − It is the action that agent performs after any given
sequence of percepts.
● Percept − It is agent’s perceptual inputs at a given instance.
● Percept Sequence − It is the history of all that an agent has perceived till
date.
● Agent Function − It is a map from the precept sequence to an action.

Rationality

Rationality is nothing but status of being reasonable, sensible, and having good
sense of judgment.
Rationality is concerned with expected actions and results depending upon what
the agent has perceived. Performing actions with the aim of obtaining useful
information is an important part of rationality.
What is Ideal Rational Agent?

An ideal rational agent is the one, which is capable of doing expected actions to
maximize its performance measure, on the basis of −

● Its percept sequence


● Its built-in knowledge base
Rationality of an agent depends on the following −
● The performance measures, which determine the degree of success.
● Agent’s Percept Sequence till now.
● The agent’s prior knowledge about the environment.
● The actions that the agent can carry out.
A rational agent always performs right action, where the right action means the
action that causes the agent to be most successful in the given percept sequence.
The problem the agent solves is characterized by Performance Measure,
Environment, Actuators, and Sensors (PEAS).

The Structure of Intelligent Agents

Agent’s structure can be viewed as −

● Agent = Architecture + Agent Program


● Architecture = the machinery that an agent executes on.
● Agent Program = an implementation of an agent function.

Machine learning
Machine learning is about extracting knowledge from the
data. It can be defined as,

Machine learning is a subfield of artificial intelligence, which enables


machines to learn from past data or experiences without being
explicitly programmed.
Machine learning enables a computer system to make
predictions or take some decisions using historical data
without being explicitly programmed. Machine learning
uses a massive amount of structured and semi-structured
data so that a machine learning model can generate
accurate result or give predictions based on that data.

Machine learning works on algorithm which learn by it?s


own using historical data. It works only for specific
domains such as if we are creating a machine learning
model to detect pictures of dogs, it will only give result
for dog images, but if we provide a new data like cat
image then it will become unresponsive. Machine learning
is being used in various places such as for online
recommender system, for Google search algorithms,
Email spam filter, Facebook Auto friend tagging
suggestion, etc.

It can be divided into three types:

o Supervised learning
o Reinforcement learning
o Unsupervised learning

Key differences between Artificial Intelligence (AI) and


Machine learning (ML):
Artificial Intelligence Machine learning

Artificial intelligence is a technology Machine learning is a subset of AI which allows


which enables a machine to simulate a machine to automatically learn from past data
human behavior. without programming explicitly.

The goal of AI is to make a smart The goal of ML is to allow machines to learn


computer system like humans to from data so that they can give accurate
solve complex problems. output.

In AI, we make intelligent systems to In ML, we teach machines with data to perform
perform any task like a human. a particular task and give an accurate result.

Machine learning and deep learning Deep learning is a main subset of machine
are the two main subsets of AI. learning.

AI has a very wide range of scope. Machine learning has a limited scope.

AI is working to create an intelligent Machine learning is working to create machines


system which can perform various that can perform only those specific tasks for
complex tasks. which they are trained.

AI system is concerned about Machine learning is mainly concerned about


maximizing the chances of success. accuracy and patterns.

The main applications of AI are Siri, The main applications of machine learning
customer support using are Online recommender system, Google
catboats, Expert System, Online search algorithms, Facebook auto friend
game playing, intelligent humanoid tagging suggestions, etc.
robot, etc.

On the basis of capabilities, AI can be Machine learning can also be divided into
divided into three types, which mainly three types that are Supervised
are, Weak AI, General AI, learning, Unsupervised learning,
and Strong AI. and Reinforcement learning.

It includes learning, reasoning, and It includes learning and self-correction when


self-correction. introduced with new data.

AI completely deals with Structured, Machine learning deals with Structured and
Agent Environment in AI

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. An environment is mostly said to be non-feministic.

Features of Environment
As per Russell and Norvig, an environment can have various features from the point of view of
an agent:
1. Fully observable vs Partially Observable
2. Static vs Dynamic
3. Discrete vs Continuous
4. Deterministic vs Stochastic
5. Single-agent vs Multi-agent
6. Episodic vs sequential
7. Known vs Unknown
8. Accessible vs Inaccessible

1. 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.

2. Deterministic vs Stochastic:
 If an agent's current state and selected action can completely determine the next state of the
environment, then such environment is called a deterministic environment.
 A stochastic environment is random in nature and cannot be determined completely by an
agent.
 In a deterministic, fully observable environment, agent does not need to worry about
uncertainty.

3. Episodic vs Sequential:
 In an episodic environment, there is a series of one-shot actions, and only the current percept is
required for the action.
 However, in Sequential environment, an agent requires memory of past actions to determine
the next best actions.

4. Single-agent vs Multi-agent
 If only one agent is involved in an environment, and operating by itself then such an
environment is called single agent environment.
 However, if multiple agents are operating in an environment, then such an environment is called
a multi-agent environment.
 The agent design problems in the multi-agent environment are different from single agent
environment.

5. Static vs Dynamic:
 If the environment can change itself while an agent is deliberating then such environment is
called a dynamic environment else it is called a static environment.
 Static environments are easy to deal because an agent does not need to continue looking at the
world while deciding for an action.
 However for dynamic environment, agents need to keep looking at the world at each action.
 Taxi driving is an example of a dynamic environment whereas Crossword puzzles are an example
of a static environment.

6. Discrete vs Continuous:
 If in an environment there are a finite number of percepts and actions that can be performed
within it, then such an environment is called a discrete environment else it is called continuous
environment.
 A chess game comes under discrete environment as there is a finite number of moves that can
be performed.
 A self-driving car is an example of a continuous environment.

7. Known vs Unknown
 Known and unknown are not actually a feature of an environment, but it is an agent's state of
knowledge to perform an action.
 In a known environment, the results for all actions are known to the agent. While in unknown
environment, agent needs to learn how it works in order to perform an action.
 It is quite possible that a known environment to be partially observable and an Unknown
environment to be fully observable.

8. Accessible vs Inaccessible
 If an agent can obtain complete and accurate information about the state's environment, then
such an environment is called an Accessible environment else it is called inaccessible.
 An empty room whose state can be defined by its temperature is an example of an accessible
environment.
 Information about an event on earth is an example of Inaccessible environment.

Turing Test in AI

In 1950, Alan Turing introduced a test to check whether a machine can think like a human or not,
this test is known as the Turing Test. In this test, Turing proposed that the computer can be said
to be an intelligent if it can mimic human response under specific conditions.

Turing Test was introduced by Turing in his 1950 paper, "Computing Machinery and
Intelligence," which considered the question, "Can Machine think?"
The Turing test is based on a party game "Imitation game," with some modifications. This game
involves three players in which one player is Computer, another player is human responder, and
the third player is a human Interrogator, who is isolated from other two players and his job is to
find that which player is machine among two of them.

Consider, Player A is a computer, Player B is human, and Player C is an interrogator.


Interrogator is aware that one of them is machine, but he needs to identify this on the basis of
questions and their responses.

The conversation between all players is via keyboard and screen so the result would not depend
on the machine's ability to convert words as speech.

The test result does not depend on each correct answer, but only how closely its responses like a
human answer. The computer is permitted to do everything possible to force a wrong
identification by the interrogator.

The questions and answers can be like:

Interrogator: Are you a computer?

PlayerA (Computer): No

Interrogator: Multiply two large numbers such as (256896489*456725896)

Player A: Long pause and give the wrong answer.

In this game, if an interrogator would not be able to identify which is a machine and which is
human, then the computer passes the test successfully, and the machine is said to be intelligent
and can think like a human.
"In 1991, the New York businessman Hugh Loebner announces the prize competition, offering a
$100,000 prize for the first computer to pass the Turing test. However, no AI program to till
date, come close to passing an undiluted Turing test".

Chatbots to attempt the Turing test:


ELIZA: ELIZA was a Natural language processing computer program created by Joseph
Weizenbaum. It was created to demonstrate the ability of communication between machine and
humans. It was one of the first chatterbots, which has attempted the Turing Test.

Parry: Parry was a chatterbot created by Kenneth Colby in 1972. Parry was designed to simulate
a person with Paranoid schizophrenia(most common chronic mental disorder). Parry was
described as "ELIZA with attitude." Parry was tested using a variation of the Turing Test in the
early 1970s.

Eugene Goostman: Eugene Goostman was a chatbot developed in Saint Petersburg in 2001.
This bot has competed in the various number of Turing Test. In June 2012, at an event,
Goostman won the competition promoted as largest-ever Turing test content, in which it has
convinced 29% of judges that it was a human.Goostman resembled as a 13-year old virtual boy.

The Chinese Room Argument:


There were many philosophers who really disagreed with the complete concept of Artificial
Intelligence. The most famous argument in this list was "Chinese Room."

In the year 1980, John Searle presented "Chinese Room" thought experiment, in his paper
"Mind, Brains, and Program," which was against the validity of Turing's Test. According to
his argument, "Programming a computer may make it to understand a language, but it will
not produce a real understanding of language or consciousness in a computer."

He argued that Machine such as ELIZA and Parry could easily pass the Turing test by
manipulating keywords and symbol, but they had no real understanding of language. So it cannot
be described as "thinking" capability of a machine such as a human.

Features required for a machine to pass the Turing test:


 Natural language processing: NLP is required to communicate with Interrogator in general
human language like English.
 Knowledge representation: To store and retrieve information during the test.
 Automated reasoning: To use the previously stored information for answering the questions.
 Machine learning: To adapt new changes and can detect generalized patterns.
 Vision (For total Turing test): To recognize the interrogator actions and other objects during a
test.
 Motor Control (For total Turing test): To act upon objects if requested.

You might also like