Unit 1 AI Notes
Unit 1 AI Notes
IntroductIon:
Artificial Intelligence is concerned with the design of intelligence in an artificial device.
The term was coined by John McCarthy in 1956.
Intelligence is the ability to acquire, understand and apply the knowledge to achieve
Goals in the world.
AI is the study of the mental faculties through the use of computational models
AI is the study of intellectual/mental processes as computational processes.
AI program will demonstrate a high level of intelligence to a degree that equals
or exceeds the intelligence required of a human in performing some tasks.
AI is unique, sharing borders with Mathematics, Computer Science,
Philosophy, Psychology, Biology, Cognitive Science and many others.
Although there is no clear definition of AI or even Intelligence, it can be described as an
attempt to build machines that like humans can think and act, able to learn and use
knowledge to solve problems on their own.’
2. Engineering: check design, offer suggestions to create new product, expert systems for
all engineering problems
3. Manufacturing: assembly, inspection and maintenance
4. Medicine: monitoring, diagnosing
5. Education: in teaching
6. Fraud detection
7. Object identification
8. Information retrieval
9. Space shuttle scheduling
1. Machine Learning
Machine Learning (ML) is one of AI's foundational pillars. This technique
empowers computers to learn from data and improve their performance with
time without explicit programming. ML models can make accurate
predictions and decisions through supervised and unsupervised learning,
impacting everything from personalized recommendations to fraud detection.
3. Computer Vision
Computer Vision equips machines with the ability to interpret visual
information from the world. This technique has revolutionized industries like
healthcare, automotive, and robotics, enabling tasks such as facial
recognition, object detection, and autonomous driving.
4. Deep Learning
Deep Learning takes ML to a higher level by employing neural networks with
multiple layers to process complex data representations. It has propelled AI
achievements, such as beating human champions in games like chess and go
and enhancing image and speech recognition systems.
Natural Language Processing: NLP - NLP is the branch of computer science focused on developing
systems that allow computers to communicate with people using everyday language. It is also called
Computa onal Linguis cs. - NLP is a sub field of AI which deals with the methods of communica ng
with a computer in once on natural language. It includes understanding and genera on as well as
other task such as mul lingual transla on. - Natural languages are used by humans for
communica on. They are dis nctly different from formal languages, such as C++, Java, and PROLOG
because they are not ambiguous. - A system that can work with one human language cannot
necessarily deal with any other human language. Advantages of NLP: NLP minimizes many hardships
a person’s faces while communica ng with the computer. 1) One need not be a computer literate to
communicate with it. 2) One can dispose of special query languages like SQL, which presently
humans use to access informa on from databases.
KEY TAKEAWAYS
human, and the person also tries to convince the interrogator that it is
the human.
o If the machine succeeds in fooling the interrogator, then conclude that
Intelligent Systems:
In order to design intelligent systems, it is important to categorize them into four
categories (Luger and Stubberfield 1993), (Russell and Norvig, 2003)
1. Systems that think like humans
2. Systems that think rationally
3. Systems that behave like humans
4. Systems that behave rationally
of inference.
d. Develop systems of representation to allow inferences to be like
“Socrates is a man. All men are mortal. Therefore, Socrates is mortal”
human, and the person also tries to convince the interrogator that it is
the human.
o If the machine succeeds in fooling the interrogator, then conclude that
Agent:
An Agent is anything that can be viewed as perceiving its environment through sensors
and acting upon that environment through actuators.
A human agent has eyes, ears, and other organs for sensors and hands, legs,
mouth, and other body parts for actuators.
A robotic agent might have cameras and infrared range finders for sensors
and various motors for actuators.
A software agent receives keystrokes, file contents, and network packets as8
sensory inputs and acts on the environment by displaying on the screen, writing
files, and sending network packets.
Percept:
We use the term percept to refer to the agent's perceptual inputs at any given instant.
Percept Sequence:
An agent's percept sequence is the complete history of everything the agent has ever
perceived.
Agent function:
Mathematically speaking, we say that an agent's behaviour is described by the agent
function that maps any given percept sequence to an action.
Agent program
Internally, the agent function for an artificial agent will be implemented by an agent
program. It is important to keep these two ideas distinct. The agent function is an
abstract
mathematical description; the agent program is a concrete implementation, running on
the agent architecture.
To illustrate these ideas, we will use a very simple example-the vacuum-cleaner world
shown in
Fig 2.1.5. This particular world has just two locations: squares A and B. The vacuum agent
perceives which square it is in and whether there is dirt in the square. It can choose to move
left, move right, suck up the dirt, or do nothing. One very simple agent function is the
following: if the current square is dirty, then suck, otherwise move to the other square. A
partial tabulation of this agent function is shown in Fig 2.1.6.
Agent func on
Fig 2.1.6: Partial tabulation of a simple agent function for the example: vacuum-cleaner
world shown in the
Fig2.1.5
Fig 2.1.6(i): The REFLEX-VACCUM-AGENT program is invoked for each new percept
(location, status) and returns an action each time
A Rational agent is one that does the right thing. we say that the right action is the
one that
will cause the agent to be most successful. That leaves us with the problem of deciding how
and when to evaluate the agent's success.
We use the term performance measure for the how—the criteria that determine how
successful an agent is.
Ex-Agent cleaning the dirty floor
Performance Measure-Amount of dirt collected
When to measure-Weekly for better results
What is rational at any given time depends on four things:
The performance measure defining the criterion of success
The agent’s prior knowledge of the environment
The actions that the agent can perform
The agent’s percept sequence up to now.
Types of agents:
Agents can be grouped into four classes based on their degree of perceived intelligence and
capability:
Goal-based agents:
A goal-based agent has an agenda.
It operates based on a goal in front of it and makes decisions based on how best to
reach that goal.
A goal-based agent operates as a search and planning function, meaning it targets the
goal ahead
and finds the right action in order to reach it.
Expansion of model-based agent.
Utility-based agents:
A utility-based agent is an agent that acts based not only on what the goal is, but the
best way to reach
that 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 term utility can be used to describe how "happy" the agent is.
Environment-Types:
1. Accessible vs. inaccessible or 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.