Ai Mod1
Ai Mod1
Ai Mod1
1. ARTIFICAL INTELLIGENCE
Artificial Intelligence (AI) is the study of how to make computers do things which, at the moment,
people do better. Some definitions of artificial intelligence.
1. AI is an exciting effort to make computers think… machines with minds, in the full and literal
sense
2. AI is the automation of activities that we associate with human thinking, activities such as
decision making, problem solving, and learning.
Artificial intelligence is a system that thinks rationally
3. AI is the study of mental faculties through the use of computational models
4. AI is the study of computations that make it possible to perceive, reason, and act
5. AI is the art of creating machines that perform functions that require intelligence when
performed by people
6. AI is the study of how to make computers do things at which, at the moment, people do better
The Greek philosopher Aristotle was one of the first to attempt to codify “right thinking” that is
irrefutable reasoning processes. His reasoning provided patterns that always yielded correct
conclusions when given correct premises. For example “Socrates is a man; all men are mortal;
therefore Socrates is mortal”.
These laws of thought and their study initiated a field called logic.
An agent is something that acts. Computer agents are not mere programs, but they are expected to
have the following attributes also:
(1) operating under autonomous control,
(2) perceiving their environment,
(3) persisting over a prolonged time period,
(4) adapting to change.
A rational agent is one that acts so as to achieve the best outcome.
Knowledge representation and reasoning enable agents to reach good decisions.
The foundation provides the disciplines that contributed ideas, viewpoints and techniques to AI.
Philosophy
Control theory
and Mathematics
cybernetics
Computer
engineering
Linguistics
Psychology Economics
Neuroscience
Philosophy
Philosophy is the very basic foundation of AI. The study of fundamental nature of knowledge, reality
and existence are considered for solving a specific problem is a basic thing in AI.
Examples some of the Philosophies are:
- Aristotle proposed SYLLOGISM, an instance of a form of reasoning in which a conclusion is
drawn from two given or assumed propositions, “Socrates is a man; all men are mortal; therefore,
Socrates is mortal.”
- Ramon Lull proposed the idea that useful reasoning could actually be carried out by a mechanical
artifact.
- Thomas Hobbes proposed that reasoning was like numerical computation that “we add and subtract
in our silent thoughts.”
- Descartes was a strong advocate of rationalism and dualism.
- David Hume’s proposed the principle of induction: that general rules are acquired by exposure to
repeated associations between their elements.
- Rudolf Carnap, developed the doctrine of logical positivism that combines rationalism and
empiricism.
Mathematics
Economics
Deals with investing the amount of money and maximization of utility with minimal investment.
Decision theory, which combines probability theory with utility theory, provides a formal and
complete framework for decisions. While developing AI products, we should make decisions for
When to invest?
How to invest?
How much to invest? And
Where to invest?
To answer these questions one should have knowledge about Decision Theory, Game Theory, and
Operation Research.
Neuroscience
Neuroscience is the study of the nervous system (human brain). When compared to other creatures,
man has the largest brain in proportion to his size. The brain consisted largely of nerve cells, or neurons
and the observation of individual neurons can lead to thought, action, and consciousness of one’s brain.
The scientific method to the study of human vision, how the mind works, functions and behaves.
Cognitive science relies on developing representative structures of the mind and analyzing
computational procedures that run on those structures to understand better how the thinking process
unfolds within the human brain.
Computer Engineering
For AI to succeed we need intelligence and computer as artifacts. Computer hardware gradually
changed for AI applications, such as the graphics processing unit (GPU), tensor processing unit (TPU)
and wafer scale engine (WSE). The amount of computing power used to train top machine learning
applications and the utilization doubled every 100 days. The super computers and quantum computers
can solve very complicated AI problems.
Control theory helps the system to analyze, define, debug and fix errors by itself.
Developing self-controlling machine, self-regulating feedback control systems and the submarine are
some examples of control theory. Calculus and matrix algebra and the tools of control theory provide
themselves to systems that are describable by fixed sets of continuous variables are foundations of AI.
Knowledge representation, grammars, computational linguistics or NLP are significant to developing
AI applications
Linguistics
Speech technology is a technology which enables a machine to understand the spoken language and
translate into machine readable format. It is a way to talk with a computer and on the basis of that
command a computer can perform a specific task. It include speech to text, Text to speech.
3. THE HISTORY OF AI
ENIAC stands for electronic numerical integrator and computers. It is the first electronic general
purpose computer, and it was Turing complete. It was capable of being reprogrammed to solve a large
class of numerical problems. It was designed to compute artillery firing tables for the United States
Army. It was being used for defense purposes.
Year 1955: An Allen Newell and Herbert A. Simon created the "first artificial intelligence
program"Which was named as "Logic Theorist". This program had proved 38 of 52
Mathematics theorems, and find new and more elegant proofs for some theorems.
Year 1956: The word "Artificial Intelligence" first adopted by American Computer scientist
John McCarthy at the Dartmouth Conference. For the first time, AI coined as an academic
field.
At that time high-level computer languages such as FORTRAN, LISP, or COBOL were
invented. And the enthusiasm for AI was very high at that time.
Year 1966: The researchers emphasized developing algorithms which can solve mathematical
problems. Joseph Weizenbaum created the first chatbot in 1966, which was named as ELIZA.
Year 1972: The first intelligent humanoid robot was built in Japan which was named as
WABOT-1.
The first AI winter (1974-1980)
The duration between years 1974 to 1980 was the first AI winter duration. AI winter refers to
the time period where computer scientist dealt with a severe shortage of funding from
government for AI researches.
During AI winters, an interest of publicity on artificial intelligence was decreased.
A boom of AI (1980-1987)
Year 1980: After AI winter duration, AI came back with "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.
Year 1997: In the year 1997, IBM Deep Blue beats world chess champion, Gary Kasparov, and
became the first computer to beat a world chess champion.
Year 1999: The remote agent system was a system that was supposed to manage this spacecraft.
If a fault happens, this remote agent system will understand that there is a fault, and it will correct
it. So it was a diagnosis and repair system.
Year 2002: for the first time, AI entered the home in the form of Roomba, a vacuum cleaner.
Year 2005: DARPA Grand Challenge. This was the first working demonstration of a long trip
taken by a car entirely by itself.
Year 2011: In the year 2011, IBM's Watson won jeopardy, a quiz show, where it had to solve the
complex questions as well as riddles. Watson had proved that it could understand natural language
and can solve tricky questions quickly.
Year 2012: Google has launched an Android app feature "Google now", which was able to provide
information to the user as a prediction.
Year 2014: In the year 2014, Chatbot "Eugene Goostman" won a competition in the infamous
"Turing test."
Year 2018: The "Project Debater" from IBM debated on complex topics with two master debaters
and also performed extremely well.
4. APPLICATIONS OF AI
Autonomous planning and scheduling: A hundred million miles from Earth, NASA's Remote
Agent program became the first on-board autonomous planning program to control the scheduling
of operations for a spacecraft. Remote Agent generated plans from high-level goals specified from
the ground, and it monitored the operation of the spacecraft as the plans were executed-detecting,
diagnosing, and recovering from problems as they occurred.
Game playing: You can buy machines that can play master level chess for a few hundred dollars.
There is some AI in them, but they play well against people mainly through brute force
computation--looking at hundreds of thousands of positions. To beat a world champion by brute
force heuristics requires looking at 200 million positions per second.
Speech recognition: The ability of devices to respond to spoken commands. United Airlines has
replaced its keyboard tree for flight information by a system using speech recognition of flight
Understanding natural language and solving problems: PROVERB is a computer program that
solves crossword puzzles better than most humans, using constraints on possible word fillers, a
large database of past puzzles, and a variety of information sources including dictionaries and
online databases such as a list of movies and the actors that appear in them.
Computer vision: The world is composed of three-dimensional objects, but the inputs to the
human eye and computers' TV cameras are two dimensional. Some useful programs can work
solely in two dimensions, but full computer vision requires partial three-dimensional information
that is not just a set of two-dimensional views. At present there are only limited ways of
representing three-dimensional information directly, and they are not as good as what humans
evidently use.
Expert systems: Expert knowledge is a combination of theoretical understanding of the problem
and a collection of heuristic problem solving rules that experience has shown to be effective in the
domain. A ``knowledge engineer'' interviews experts in a certain domain and tries to embody their
knowledge in a computer program for carrying out some task. One of the first expert systems was
MYCIN in 1974, which diagnosed bacterial infections of the blood and suggested treatments. It
did better than medical students or practicing doctors, provided its limitations were observed. Its
interactions depended on a single patient being considered. Since the experts consulted by the
knowledge engineers knew about patients, doctors, death, recovery, etc., it is clear that the
knowledge engineers forced what the experts told them into a predetermined framework. The
usefulness of current expert systems depends on their users having common sense.
Heuristic classification: Games can generate extremely large search spaces. So we use powerful
techniques called heuristics to explore the problem space. A heuristic is a useful but potentially
fallible problem strategy, such as checking to make sure that an unresponsive appliance is plugged
in before assuming that it is broken.
Commonsense reasoning: It is the branch of Artificial intelligence concerned with replicating
human thinking. In theory, if the computer is endowed with good Knowledge Representation
Database, including a comprehensive common sense database, and is able to process and respond
in plain-text English, it will have the ability to process and reason with English texts. There are
two issues with this, one is how to represent the knowledge gathered in a computer processible,
and human accessible way. The second task is actually collecting the Common Sense knowledge.
Planning and robotics: Research in planning began as an effort to design robots that could
perform their tasks with some degree of flexibility and responsiveness to outside world. Planning
assumes a robot that is capable of performing certain atomic actions. One method that human
beings use in planning is hierarchical problem decomposition. A robot will have to formulate a
plan based on the incomplete information and correct its behavior.
Neural nets and genetic algorithms: An approach to build intelligent programs is to use models
that parallel the structure of neurons in the human brain. Each computational unit computes some
functions of its inputs and passes the result along to connected units in the network; final results
are produced by the parallel and distributed processing of this network of neural connection and
threshold weights.
5. AN INTELLIGENT AGENT
Agent Function: The agent function for an agent specifies the action taken by the agent in response
to any percept sequence. Agent can be described internally and externally. Tabulating the agent
function is external implementation, and internally agent function is implemented by agent programs.
Eg: Vacuum cleaner problem:- The agent is in one of two locations, each of which might or might not
contain dirt. 2*4 = 8 possible states. Any state can be designated as the initial state. The actions are
left, right, suck. Goal test checks whether all the squares are clean. Path cost is the no. of steps in the
path.
Rational Agent
Definition: 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.
It can be any piece of software, hardware or a combination of the two which can interact with
the environment with actuators after perceiving the environment with sensors. A rational agent
should strive to do the right thing. The right action is the one that will cause the agent to be most
successful.
Performance measure: An objective criterion for success of an agent’s behavior.
Eg:
Rational agent – vacuum cleaner
Environment – floor.
Sensor- dirt sensor or camera
Actuator- brush and suction pump
Percept - agent’s perceptual inputs at any given point of time
Performance measure- Amount of dirt cleaned up, amount of time taken, amount of electricity
consumed, amount of noise generated etc.
Rationality
The rationality of an agent is measured by its performance measure. Rationality can be judged on the
basis of following points:
Performance measure which defines the success criterion.
PEAS System is used to group similar type of agents together. The PEAS system delivers the
performance measure with respect to the environment, actuators, and sensors of the respective agent.
PEAS is a type of model on which an AI agent works upon. When we define an AI agent or rational
agent, then we can group its properties under PEAS representation model.
Performance measure: It
is the objective for success
of an agent's behavior
An environment in artificial intelligence is the surrounding of the agent. The agent takes input from
the environment through sensors and delivers the output to the environment through actuators. There
are several types of environments:
Fully Observable vs Partially Observable
Deterministic vs Stochastic
Competitive vs Collaborative
Single-agent vs Multi-agent
Static vs Dynamic
Discrete vs Continuous
Episodic vs Sequential
Known vs Unknown
Competitive Collaborative
An agent competes against another agent to optimize An agent cooperate with multiple agents to produce
the output. the desired output.
Eg: Chess- players compete with each other to win Eg: self-driving cars and other vehicles cooperate
the game which is the output with each other to avoid collisions.
Dynamic Static
State of environment changes with time when agent State of environment does not changes with time.
perform some actions. (idle environment)
Eg: A roller coaster ride Eg: An empty house
Discrete Continuous
If an environment consists of a finite number of Agent can perceive and make observations from the
actions that can be deliberated in the environment to environment continuously without any lag.
obtain the output. Eg: The game of chess is discrete Eg: Self-driving cars are an example of continuous
as it has only a finite number of moves environments as their actions are driving, parking,
etc. which cannot be numbered
Episodic Sequential
Each of the agent’s actions is divided into atomic The previous decisions can affect all future
incidents or episodes. There is no dependency decisions. The next action of the agent depends on
between current and previous incidents. what action he has taken previously and what action
Eg: Pick and Place robot, which is used to detect he is supposed to take in the future.
defective parts from the conveyor belts. Here, every Eg: Checkers
time robot will make the decision on the current part
i.e. there is no dependency between current and
previous decisions.
Unknown Known
It has to gain knowledge about how the The output for all probable actions is given.
environment works
Five basic kinds of agent programs that embody the principles underlying almost all intelligent
systems:
1. Simple reflex agents
2. Model-based reflex agents
3. Goal-based agents and
4. Utility-based agents
5. Learning agents
This agent’s works only on the basis of current perception and it does not bother about the previous
state in which the system was. This type of agents is based upon the condition- action rule. Action
becomes a “reflex.”
If the condition is true
Action is taken
Else not
It works by finding a rule whose condition matches the current situation. It can handle partially
observable environments. Updating the state requires information about how the world evolves
independently from the agent & how the agent actions affect the world. Knowledge about “how the
world works is called a model of the world. An agent that uses such a model is called a model-based
agent.
The goal based agent focuses only on reaching the goal set and hence the decision took by the agent
is based on how far it is currently from their goal or desired state. Their every action is intended to
minimize their distance from the goal. Typical model for search and planning.
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. Possibly
more than one goal, or more than one way to reach it. They focus on goals and best way to reach the
goal.
All agents have methods for selecting actions. It has four conceptual components.
Performance element: the previously described actions and changes in states.
Learning element: makes changes to actions
Critic: Evaluate actions, gives feedback to learning element.
Problem generator: Suggests actions