AI Notes
AI Notes
Unit 1
Definition of AI
It is a branch of Computer Science that pursues creating the computers or machines as intelligent as human
beings.
It is the science and engineering of making intelligent machines, especially intelligent computer programs.
It is related to the similar task of using computers to understand human intelligence, but AI does not have to
confine itself to methods that are biologically observable
Definition: Artificial Intelligence is the study of how to make computers do things, which, at the moment, people
do better.
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.
It has gained prominence recently due, in part, to big data, or the increase in speed, size and variety of data
businesses are now collecting. AI can perform tasks such as identifying patterns in the data more efficiently than
humans, enabling businesses to gain more insight out of their data.
From a business perspective AI is a set of very powerful tools, and methodologies for using those tools to solve
business problems.
From a programming perspective, AI includes the study of symbolic programming, problem solving, and search.
What is AI ?
Artificial Intelligence is concerned with the design of intelligence in an artificial device.
The term was coined by McCarthy in 1956.
There are two ideas in the definition.
1. Intelligence
2. Artificial device
What is intelligence?
– Is it that which characterize humans? Or is there an absolute standard of judgment?
– Accordingly there are two possibilities:
– A system with intelligence is expected to behave as intelligently as a human
– A system with intelligence is expected to behave in the best possible manner
– Secondly what type of behavior are we talking about?
– Are we looking at the thought process or reasoning ability of the system?
– Or are we only interested in the final manifestations of the system in terms of its actions?
Given this scenario different interpretations have been used by different researchers as defining the scope and
view of Artificial Intelligence.
1. One view is that artificial intelligence is about designing systems that are as intelligent as humans. This
view involves trying to understand human thought and an effort to build machines that emulate the human
thought process. This view is the cognitive science approach to AI.
2. The second approach is best embodied by the concept of the Turing Test. Turing held that in future
computers can be programmed to acquire abilities rivaling human intelligence. As part of his argument
Turing put forward the idea of an 'imitation game', in which a human being and a computer would be
interrogated under conditions where the interrogator would not know which was which, the
communication being entirely by textual messages. Turing argued that if the interrogator could not
distinguish them by questioning, then it would be unreasonable not to call the computer intelligent.
Turing's 'imitation game' is now usually called 'the Turing test' for intelligence.
Turing Test
Consider the following setting. There are two rooms, A and B. One of the rooms contains a computer. The other
contains a human. The interrogator is outside and does not know which one is a computer. He can ask questions
through a teletype and receives answers from both A and B. The interrogator needs to identify whether A or B are
humans. To pass the Turing test, the machine has to fool the interrogator into believing that it is human. For more
details on the Turing test visit the site http://cogsci.ucsd.edu/~asaygin/tt/ttest.html
3. Logic and laws of thought deals with studies of ideal or rational thought process and inference. The emphasis in
this case is on the inferencing mechanism, and its properties. That is how the system arrives at a conclusion, or the
reasoning behind its selection of actions is very important in this point of view. The soundness and completeness
of the inference mechanisms are important here.
4. The fourth view of AI is that it is the study of rational agents. This view deals with building machines that act
rationally. The focus is on how the system acts and performs, and not so much on the reasoning process. A
rational agent is one that acts rationally, that is, is in the best possible manner.
Typical AI problems
While studying the typical range of tasks that we might expect an “intelligent entity” to perform, we need to
consider both “common-place” tasks as well as expert tasks.
Examples of common-place tasks include
– Recognizing people, objects.
– Communicating (through natural language).
– Navigating around obstacles on the streets
These tasks are done matter of factly and routinely by people and some other animals.
Expert tasks include:
• Medical diagnosis.
• Mathematical problem solving
• Playing games like chess
These tasks cannot be done by all people, and can only be performed by skilled specialists.
Now, which of these tasks are easy and which ones are hard? Clearly tasks of the first type are easy for humans to
perform, and almost all are able to master them. The second range of tasks requires skill development and/or
intelligence and only some specialists can perform them well. However, when we look at what computer systems
have been able to achieve to date, we see that their achievements include performing sophisticated tasks like
medical diagnosis, performing symbolic integration, proving theorems and playing chess.
On the other hand it has proved to be very hard to make computer systems perform many routine tasks that all
humans and a lot of animals can do. Examples of such tasks include navigating our way without running into
things, catching prey and avoiding predators. Humans and animals are also capable of interpreting complex
sensory information. We are able to recognize objects and people from the visual image that we receive. We are
also able to perform complex social functions.
Intelligence does not imply perfect understanding; every intelligent being has limited perception, memory and
computation. Many points on the spectrum of intelligence versus cost are viable, from insects to humans. AI seeks
to understand the computations required from intelligent behaviour and to produce computer systems that exhibit
intelligence. Aspects of intelligence studied by AI include perception, communicational using human languages,
reasoning, planning, learning and memory.
The following questions are to be considered before we can step forward:
1. What are the underlying assumptions about intelligence?
2. What kinds of techniques will be useful for solving AI problems?
3. At what level human intelligence can be modelled?
4. When will it be realized when an intelligent program has been built?
Intelligent behavior
This discussion brings us back to the question of what constitutes intelligent behavior. Some of these tasks and
applications are:
Perception involving image recognition and computer vision
Reasoning
Learning
Understanding language involving natural language processing, speech processing
Solving problems
Robotics
1.1.4 Approaches to AI
Strong AI aims to build machines that can truly reason and solve problems. These machines should be self aware
and their overall intellectual ability needs to be indistinguishable from that of a human being. Excessive optimism
in the 1950s and 1960s concerning strong AI has given way to an appreciation of the extreme difficulty of the
problem.
Strong AI maintains that suitably programmed machines are capable of cognitive mental states.
Weak AI: deals with the creation of some form of computer-based artificial intelligence that cannot truly reason
and solve problems, but can act as if it were intelligent. Weak AI holds that suitably programmed machines can
simulate human cognition.
Applied AI: aims to produce commercially viable "smart" systems such as, for example, a security system that is
able to recognise the faces of people who are permitted to enter a particular building. Applied AI has already
enjoyed considerable success.
Cognitive AI: computers are used to test theories about how the human mind works--for example, theories about
how we recognise faces and other objects, or about how we solve abstract problems.
1.1.5 Limits of AI Today
Today’s successful AI systems operate in well-defined domains and employ narrow, specialized knowledge.
Common sense knowledge is needed to function in complex, open-ended worlds. Such a system also needs to
understand unconstrained natural language. However these capabilities are not yet fully present in today’s
intelligent systems.
History of AI
To save costs or optimize processes, companies are increasingly dependent on using artificial intelligence. For
many people, AI has become a fixture in their own homes: In their casual interaction with Siri, Alexa or a number
of chatbots, people use intelligent robots to make their everyday lives easier. We owe the fact that the technology
is now ubiquitous and accessible for everybody to a number of pioneers, scientists and companies.
2011: Siri
Apple gave its iPhone 4s an intelligent language-based assistant: Siri. The software recognizes and processes
natural language and can thus act as a personal assistant. Siri provides answers and executes commands which the
user speaks instead of entering them via the keyboard. To call it up, the user holds the Home button pressed or
says “Hey, Siri”. Siri operates based on previous “experiences”, i.e. it recognizes patterns in repeated entries made
by the users and constantly improves its performance using machine learning.
2011: Watson
The so-called Supercomputer Watson, named after IBM founder Thomas J. Watson, became famous all over the
world when it won the US-American quiz show Jeopardy against two human competitors. Watson answers
questions in natural spoken language. The server room for the vast amount of hardware and data storage space
required to accommodate the machine was so big it could hold ten refrigerators.
2014: Alexa
Amazon Echo
With Amazon’s Alexa, another intelligent language-based assistant is invited into the kitchens, living rooms and
bedrooms of many people. Contrary to the language-based assistants of a smartphone, Alexa needs to be plugged
into a socket and reacts only when addresses with “Alexa”. Privacy advocates criticize users’ carelessness in
dealing with the digital assistant, as well as the permanent storage of the spoken commands in the Amazon cloud.
Amazon counters that the spoken commands entered can be deleted, but that the existing data is required for
improving the system.
2016: Tay
Microsoft starts the chatbot Tay on Twitter – and is forced to take it offline again after only 16 hours by reason of
racist and sexist language. Tay was adaptive and supposed to become increasingly intelligent the more it
communicated with humans. Microsoft later apologized for not having foreseen the misuse. They plan to
reactivate Tay when they can be sure it will act in conformity with Microsoft’s principles and values.
2017: AlphaGO
Go-Boardgame
Developed by Google, the program AlphaGO beat the world’s best go player Ke Jie after having won against Lee
Sedol in the previous year. Since the game of go is much more complex than chess, it had been considered
impossible to master for a computer. Other than the chess computer Deep Blue, which analysis all moves to
identify the optimum one, AlphaGo learns like a human being: The software was provided with the data of
millions of moves by human players and played millions of games against itself. During this process, the system
took note of which moves brought the win. In terms of its significance for the development of AI, the victory of
AlphaGo is compared to the match between Kasparov and Deep Blue.
Technology keeps developing at an increasing speed. As can be seen from Siri and its mates, it has long ceased to
be an abstract concept but has turned into a tool accessible by everybody. Also the attitude towards the intelligent
machine has changed: Today, the fear of being overpowered by a machine has widely been replaced by a
fascination for the huge potential of AI. This is probably because practically all of us carry an artificial
intelligence device in their coat pockets and use it us to communicates with the AI, and because the AI will in all
probability help us with our daily affairs also in future. But nevertheless there are certain concerns in handling
artificial intelligence, and some people are quite worried about it. Some healthy skepticism is certainly
appropriate to keep us aware of the negative sides of this development, and to define ethical principles for the
artificial intelligence.
Applications of AI
AI has applications in all fields of human study, such as finance and economics, environmental engineering,
chemistry, computer science, and so on. Some of the applications of AI are listed below:
Perception
■ Machine vision
■ Speech understanding
■ Touch ( tactile or haptic) sensation
Robotics
Natural Language Processing
■ Natural Language Understanding
■ Speech Understanding
■ Language Generation
■ Machine Translation
Planning
Expert Systems
Machine Learning
Theorem Proving
Symbolic Mathematics
Game Playing
AI Technique:
Artificial Intelligence research during the last three decades has concluded that Intelligence requires knowledge.
To compensate overwhelming quality, knowledge possesses less desirable properties.
A. It is huge.
B. It is difficult to characterize correctly.
C. It is constantly varying.
D. It differs from data by being organized in a way that corresponds to its application.
E. It is complicated.
Example-1: Tic-Tac-Toe
1.1 The first approach (simple)
The Tic-Tac-Toe game consists of a nine element vector called BOARD; it represents the numbers 1 to 9 in three
rows.
An element contains the value 0 for blank, 1 for X and 2 for O. A MOVETABLE vector consists of 19,683
elements (39) and is needed where each element is a nine element vector. The contents of the vector are especially
chosen to help the algorithm.
The algorithm makes moves by pursuing the following:
1. View the vector as a ternary number. Convert it to a decimal number.
2. Use the decimal number as an index in MOVETABLE and access the vector.
3. Set BOARD to this vector indicating how the board looks after the move. This approach is capable in time but
it has several disadvantages. It takes more space and requires stunning effort to calculate the decimal numbers.
This method is specific to this game and cannot be completed.
Are we trying to produce programs that do the tasks the same way that people do?
OR
Are we trying to produce programs that simply do the tasks the easiest way that is possible?
Programs in the first class attempt to solve problems that a computer can easily solve and do not usually use AI
techniques. AI techniques usually include a search, as no direct method is available, the use of knowledge about
the objects involved in the problem area and abstraction on which allows an element of pruning to occur, and to
enable a solution to be found in real time; otherwise, the data could explode in size. Examples of these trivial
problems in the first class, which are now of interest only to psychologists are EPAM (Elementary Perceiver and
Memorizer) which memorized garbage syllables.
The second class of problems attempts to solve problems that are non-trivial for a computer and use AI
techniques. We wish to model human performance on these:
1. To test psychological theories of human performance. Ex. PARRY [Colby, 1975] – a program to simulate the
conversational behavior of a paranoid person.
2. To enable computers to understand human reasoning – for example, programs that answer questions based
upon newspaper articles indicating human behavior.
3. To enable people to understand computer reasoning. Some people are reluctant to accept computer results
unless they understand the mechanisms involved in arriving at the results.
4. To exploit the knowledge gained by people who are best at gathering information. This persuaded the earlier
workers to simulate human behavior in the SB part of AISB simulated behavior. Examples of this type of
approach led to GPS (General Problem Solver).