1 Introduction To AI
1 Introduction To AI
Attock Campus
Artificial Intelligence
Salah Ud Din
Lecturer
Department of Computer Science
Reading Material
Chapter#1
Artificial Intelligence: A Modern Approach, Russell, S., &
Norvig, P., (2013), Prentice Hall
Artificial Intelligence in the Movies
Artificial Intelligence in Real Life
A young science (≈ 50 years old)
– Exciting and dynamic field, lots of uncharted territory left
– Impressive success stories
– “Intelligent” in specialized domains
– Many application areas
Search engines
Science
Medicine/
Diagnosis
Labor
Appliances What else?
What is intelligence?
• Intelligence is the computational part of the ability to
achieve goals in the world. Varying kinds and degrees of
intelligence occur in people, many animals and some
machines.
• Is there a “holistic” definition for intelligence? Here are
some definitions:
• the ability to comprehend; to understand and profit from experience
• a general mental capability that involves the ability to reason, plan,
solve problems, think abstractly, comprehend ideas and language, and
learn
• is effectively perceiving, interpreting and responding to the environment
• None of these tells us what intelligence is, so instead,
maybe we can enumerate a list of elements that an
intelligence must be able to perform:
– perceive, reason and infer, solve problems, learn and adapt, apply
common sense, apply analogy, recall, apply intuition, reach
emotional states, achieve self-awareness
What is artificial intelligence?
• There is no clear consensus on the definition of AI
• John McCarthy coined the phrase AI in 1956
• 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 or other intelligence, but AI does not
have to confine itself to methods that are biologically
observable.
• Computers were thought of as an electronic brains
• Term “Artificial Intelligence” coined by John McCarthy
– John McCarthy also created Lisp in the late 1950s
• Alan Turing defines intelligence as passing the Imitation
Game (Turing Test)
What is AI? (Cont’d)
What is Artificial Intelligence ?
HUMAN RATIONAL
Systems that act like humans:
Turing Test
• “The art of creating machines that perform
functions that require intelligence when
performed by people.” (Kurzweil)
• “The study of how to make computers do things
at which, at the moment, people are better.”
(Rich and Knight)
Systems that act like humans
?
• You enter a room which has a computer terminal. You
have a fixed period of time to type what you want into the
terminal, and study the replies. At the other end of the
line is either a human being or a computer system.
• If it is a computer system, and at the end of the period
you cannot reliably determine whether it is a system or a
human, then the system is deemed to be intelligent.
Systems that act like humans
HUMAN RATIONAL
Systems that think like humans:
cognitive modeling
• Humans as observed from ‘inside’
• How do we know how humans think?
– Introspection vs. psychological experiments
• Cognitive Science
• “The exciting new effort to make computers think …
machines with minds in the full and literal sense”
(Haugeland)
• “[The automation of] activities that we associate with
human thinking, activities such as decision-making,
problem solving, learning …” (Bellman)
Thinking Humanly: Cognitive
Science
• 1960 “Cognitive Revolution”: information-processing
psychology replaced behaviorism
HUMAN RATIONAL
Thinking Rationally: Laws of Thought
• Aristotle (~ 450 B.C.) attempted to codify “right thinking”
What are correct arguments/thought processes?
• E.g., “Socrates is a man, all men are mortal; therefore Socrates is mortal”
• Problems:
1) Uncertainty: Not all facts are certain (e.g., the flight might be delayed).
2) Resource limitations: There is a difference between solving a problem in principle
and solving it in practice under various resource limitations such as time,
computation, accuracy etc. (e.g., purchasing a car)
Systems that think ‘rationally’
"laws of thought"
• Humans are not always ‘rational’
• Rational - defined in terms of logic?
• Logic can’t express everything (e.g. uncertainty)
• Logical approach is often not feasible in terms of
computation time (needs ‘guidance’)
• “The study of mental facilities through the use of
computational models” (Charniak and McDermott)
• “The study of the computations that make it possible to
perceive, reason, and act” (Winston)
What is Artificial Intelligence ?
HUMAN RATIONAL
Systems that act rationally:
“Rational agent”
Games:
AI Applications
• Games:
AI Applications
• Robotic toys:
The Foundation of AI
• Philosophy
– Dealt with questions like:
• Can formal rules be used to draw valid conclusions?
• Where does knowledge come from? How does it
lead to action?
• David Hume proposed the principle of induction
– At that time, the study of human intelligence
began with no formal expression
– Initiate the idea of mind as a machine and its
internal operations
The Foundation of AI
Mathematics formalizes the three main area
of AI: computation, logic, and probability
Computation leads to analysis of the problems
that can be computed
complexity theory
Probability contributes the “degree of belief” to
handle uncertainty in AI
Decision theory combines probability theory and
utility theory (bias)
The Foundation of AI
• Psychology
– How do humans think and act?
– The study of human reasoning and acting
– Provides reasoning models for AI
– Strengthen the ideas
• humans and other animals can be considered as
information processing machines
The Foundation of AI
• Computer Engineering
– How to build an efficient computer?
– Provides the artifact that makes AI application
possible
– The power of computer makes computation of
large and difficult problems more easily
– AI has also contributed its own work to
computer science, including: time-sharing, the
linked list data type, OOP, etc.
The Foundation of AI
• Control theory and Cybernetics
– How can artifacts operate under their own
control?
– The artifacts adjust their actions
• To do better for the environment over time
• Based on an objective function and feedback from
the environment
– Not limited only to linear systems but also
other problems
• as language, vision, and planning, etc.
The Foundation of AI
• Linguistics
– For understanding natural languages
• different approaches has been adopted from the
linguistic work
– Formal languages
– Syntactic and semantic analysis
– Knowledge representation
Other possible AI definitions
• AI is a collection of hard problems which can be solved by humans and
other living things, but for which we don’t have good algorithms for
solving.
– e. g., understanding spoken natural language, medical diagnosis,
circuit design, learning, self-adaptation, reasoning, chess playing,
proving math theories, etc.
• Russsell & Norvig: a program that
– Acts like human (Turing test)
– Thinks like human (human-like patterns of thinking steps)
– Acts or thinks rationally (logically, correctly)
• Some problems used to be thought of as AI but are now considered not
– e. g., compiling Fortran in 1955, symbolic mathematics in 1965,
pattern recognition in 1970, what for the future?
AI Purposes
http://www-ai.ijs.si/eliza/eliza.html
Eliza
http://www.simonlaven.com/
A.L.I.C.E
Honda Humanoid Robot
Walk
Turn
Stairs
Domestic Robots
Military robots
Robocup
www.robocup.org
How far have we got?
• General intelligence of a frog?
But then ask Garry K.
• IBM’s Artificial
Intelligence
computer system
• Capable of
answering
questions in
natural language
• Competed against
champions on
Jeopardy and won
Watson
• IBM describes this AI as:
"an application of advanced Natural
Language Processing, Information
Retrieval, Knowledge
Representation and Reasoning,
and Machine Learning technologies to
the field of open domain question
answering“
• What this means…
Watson
• Specifics
– 16 Terabytes of RAM
– Can process 500 gigabytes (1 million books) per
second
– Content was stored in Watson’s RAM rather
than memory to be more easily accessed
– Cost about $3 Million
Watson’s sources of
information
• Encyclopedias
• Dictionaries
• Thesauri
• Newswire articles
• Literary works
• Databases, taxonomies, and
ontologies.
• Wikipedia articles
• And more
How Watson Works
• Receives the clues (questions) as electronic
texts
• It then divides these texts into different
keywords and sentence fragments and
searches for statistically related phrases
• Quickly executes thousands of language
analysis algorithms
• The more algorithms that find the same
answer increase Watson’s confidence of his
answer and it calculates whether or not to
make a guess
How to achieve AI?
• How is AI research and engineering done?
• AI research has both theoretical and experimental sides.
The experimental side has both basic and applied aspects.
• Competitions!
• There are two main lines of research:
– One is biological, based on the idea that since humans are
intelligent, AI should study humans and imitate their
psychology or physiology.
– The other is phenomenal, based on studying and formalizing
common sense facts about the world and the problems that the
world presents to the achievement of goals.
• The two approaches interact to some extent, and both
should eventually succeed. It is a race, but both racers seem
to be walking. [John McCarthy]
Strong vs Weak AI
• Strong AI is artificial intelligence that matches or exceeds human
intelligence — the intelligence of a machine that can successfully
perform any intellectual task that a human being can.[1]
– It is a primary goal of artificial intelligence research and an important topic for
science fiction writers and futurists.
– Strong AI is also referred to as "artificial general intelligence"[2] or as the ability
to perform "general intelligent action".[3]
– Science fiction associates strong AI with such human traits as consciousness,
sentience, sapience and self-awareness.