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

M1 - Introduction to AI

The document outlines the course CSC 604: Artificial Intelligence, detailing its objectives, outcomes, prerequisites, and assessment methods. It introduces key concepts of AI, including definitions, approaches, and the historical context of the field, while emphasizing the distinction between strong and weak AI. Additionally, it discusses the components necessary for building intelligent systems and the challenges involved in tasks such as speech recognition.
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
4 views

M1 - Introduction to AI

The document outlines the course CSC 604: Artificial Intelligence, detailing its objectives, outcomes, prerequisites, and assessment methods. It introduces key concepts of AI, including definitions, approaches, and the historical context of the field, while emphasizing the distinction between strong and weak AI. Additionally, it discusses the components necessary for building intelligent systems and the challenges involved in tasks such as speech recognition.
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 60

Module 1 :

Introduction to Artificial
Intelligence
Lifna C S
Faculty Incharge for CSC 604
Department of Computer Engineering
VES Institute of Technology, Mumbai

CSC 604 : Artificial Intelligence


Agenda

● Course Objectives
● Course Outcomes
● Prerequisites
● Text / Reference Books
● Assessment Methods
● Introduction to Artificial Intelligence
● AI Approaches

CSC 604 : Artificial Intelligence


Course Objectives

1. To conceptualize the basic ideas and techniques underlying the


design of intelligent systems.
2. To make students understand and Explore the mechanism of mind
that enables intelligent thought and action.
3. To make students understand advanced representation formalism
and search techniques.
4. To make students understand how to deal with uncertain and
incomplete information.

CSC 604 : Artificial Intelligence


Course Outcomes

1. Ability to develop a basic understanding of AI building blocks


presented in intelligent agents.
2. Ability to choose an appropriate problem solving method and
knowledge representation technique.
3. Ability to analyze the strength and weaknesses of AI approaches to
knowledge– intensive problem solving.
4. Ability to design models for reasoning with uncertainty as well as
the use of unreliable information.
5. Ability to design and develop AI applications in real world
scenarios.

CSC 604 : Artificial Intelligence


Prerequisites

● CSC 303 : Discrete Mathematics


● CSC 305 : Data Structures
● CSC 402 : Analysis of Algorithm

CSC 604 : Artificial Intelligence


Text / Reference Books
Text Books :

1. Stuart J. Russell and Peter Norvig, "Artificial Intelligence: A Modern


Approach”, Fourth Edition" Pearson Education, 2020.
2. Saroj Kaushik, “Artificial Intelligence”, Cengage Learning, First
edition, 2011
3. George F Luger, “Artificial Intelligence” Low Price Edition, Fourth
edition, Pearson Education.,2005

CSC 604 : Artificial Intelligence


Text / Reference Books
Reference Books :

1. Nils J. Nilsson, Principles of Artificial Intelligence, Narosa Publication.


2. Deepak Khemani, A First Course in Artificial Intelligence, McGraw Hill
Publication
3. Patrick H. Winston, Artificial Intelligence, 3rd edition, Pearson
Education.
4. Elaine Rich and Kevin Knight, "Artificial Intelligence”, Third Edition,
McGraw Hill Education,2017.

CSC 604 : Artificial Intelligence


Assessment Methods

● Internal Assessments : 20 %
○ Tests - 2
○ Quizzes
○ Assignments
● End Semester Examination : 80%

CSC 604 : Artificial Intelligence


Background
● Our intelligence is so important .
● From many years , we have tried to understand how we think, perceive,
understand, predict, and manipulate
● The field of artificial intelligence, or AI, goes further still: it attempts
not just to understand but also to build intelligent entities

CSC 604 : Artificial Intelligence


What is AI?
▪ AI is the reproduction of human reasoning and intelligent behavior by
computational methods

Intelligent
behavior
Computer

Humans
CSC 604 : Artificial Intelligence 1
What is Artificial Intelligence?
● John McCarthy, who coined the term AI in 1956,
● defines it as “the science and engineering of making intelligent machines”, especially
intelligent computer programs
● Artificial intelligence is intelligence of machines and the branch of Computer science
that aims to create it
● Ai is the study of : How to make computers do things which, at the moment, people do
better
● AI is the study and design of intelligent agents, where an intelligent agent is a system
that perceives its environment and takes actions that maximize its chances of success.
● AI = Automation of Intelligence (Behavior + Acting)
CSC 604 : Artificial Intelligence
11
General AI Goal
● Replicate human intelligence : still a distant goal.
● Solve knowledge intensive tasks
● Make a intelligent connection between perception and action
● Enhance human-human, human-computer and computer to computer
interaction/ communication

CSC 604 : Artificial Intelligence


1
What is AI?
Discipline that systematizes and automates reasoning processes to create
machines that:

Act like humans Act rationally

Think like humans Think rationally

CSC 604 : Artificial Intelligence


1
AI Approaches
● Acting Humanity – Turing Test Approach
● Thinking Humanly – Cognitive Modeling approach
● Thinking Rationally - Laws of Thought / Logic Approach
● Acting Rationally – Rational Agent Approach

CSC 604 : Artificial Intelligence


TURING TEST
The Turing test, developed by Alan Turing in 1950, is a test of a machine's ability to
exhibit intelligent behaviour equivalent to, or indistinguishable from, that of a human.

● Why he Invented ?
○ Can A Computer talk like a Human?
○ He invented Turing Test as a method of inquiry in artificial intelligence (AI) for
determining whether or not a computer is capable of thinking like a human
being

CSC 604 : Artificial Intelligence


The Turing Test
A test to empirically determine whether a computer has achieved intelligence

Figure 13.2
In a Turing test, the
interrogator must
determine which
respondent is the computer
and which is the human

CSC 604 : Artificial Intelligence


1
What is Turing Test?
● Turing Test requires three terminals, each of which is physically separated from
the other two. One terminal is operated by a computer, while the other two are
operated by humans.
● During the test, one of the humans functions as the questioner, while the second
human and the computer function as respondents The questioner interrogates the
respondents within a specific subject area, using a specified format and context.
● After a preset length of time or number of questions, the questioner is then asked
to decide which respondent was human and which was a computer.

CSC 604 : Artificial Intelligence


What would a computer need to pass the Turing test?
● Natural language processing : to communicate with examiner.
● Knowledge representation: to store and retrieve information provided before or during
interrogation.
● Automated reasoning: to use the stored information to answer questions and to
draw new conclusions.
● Machine learning: to adapt to new circumstances and to detect and extrapolate
patterns.
● Vision (for Total Turing test): to recognize the examiner’s actions and various objects
presented by the examiner.
● Motor control (total test): to act upon objects as requested.
● Other senses (total test): such as audition, smell, touch, etc.
CSC 604 : Artificial Intelligence
What is AI?
AI Methodology: Take a task at which people are better, e.g.:
• Prove a theorem
• Play chess
• Plan a surgical operation
• Diagnose a disease
• Navigate in a building
and build a computer system that does it automatically

But do we want to duplicate human imperfections?

CSC 604 : Artificial Intelligence


19
What is AI?
▪ Here, how the computer performs tasks does matter
▪ The reasoning steps are important
▪ Ability to create and manipulate symbolic knowledge (definitions, concepts,
theorems, …)
▪ What is the impact of hardware on low-level reasoning, e.g., to go from
signals to symbols?

CSC 604 : Artificial Intelligence


2
What is AI?
▪ Now, the goal is to build agents that always make the “best” decision given what is
available (knowledge, time, resources)
▪ “Best” means maximizing the expected value of a utility function
▪ Connections to economics and control theory
▪ What is the impact of self-consciousness, emotions, desires, love for music, fear of
dying, etc
... on human intelligence?

CSC 604 : Artificial Intelligence


21
Yes, but 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.

CSC 604 : Artificial Intelligence


Intelligent Behaviors in humans:
● Perception – ability to see, hear sensory information.
● Reasoning – reasoning with the information we have
● Learning – Learning for new situations,
● understanding natural language, communicating in natural language
● solving problems.
● Etc..

CSC 604 : Artificial Intelligence


Intelligence
● Relate to tasks involving higher mental processes:-
● e.g. How to solve traffic problems in Mumbai ?
● Solution- Intelligent traffic control system
■ Intelligent Transport System.

CSC 604 : Artificial Intelligence


15
Intelligence
● Relate to tasks involving higher mental processes:- How to solve traffic problems
in Mumbai –
● Soln- Intelligent traffic control system.
○ Creativity,
○ solving problems,
○ pattern recognition , classification,
○ learning , induction, deduction ,
○ building analogies, optimization,
○ language processing, knowledge and many more
○ Intelligence is the computational part of the ability to achieve goals.
CSC 604 : Artificial Intelligence
16
Intelligence
● Intelligence:
○ “the capacity to learn and solve problems”
○ in particular,
■ the ability to solve novel problems
■ the ability to act rationally
■ the ability to act like humans

● Artificial Intelligence
○ build and understand intelligent entities or agents
○ 2 main approaches: “engineering” versus “cognitive modeling”
CSC 604 : Artificial Intelligence
17
Typical AI Problems
⚫ Routine Tasks (Mundane Tasks)
⚫ Planning route/activity
⚫ Recognizing people/objects –(through vision)
⚫ Communicating (through natural language )
⚫ Navigating round obstacles on street etc
⚫ Expert task
⚫ Medical diagnosis
⚫ Math problem solving
⚫ Playing chess etc

What is easy & What is Hard?


Easier to solve problems which are expert task
CSC 604 : Artificial Intelligence
18
AI Approaches – Strong AI
⚫ Strong AI -The principle behind Strong AI is that the machines could be made to
think or in other words could represent human minds in the future

⚫ It is also known as general AI or artificial general intelligence (AGI). Strong AI


refers to AI that exhibits human-level intelligence.

⚫ So, it can understand, think, and act the same way a human might in any given
situation

CSC 604 : Artificial Intelligence


25
Weak AI
⚫ The principle behind Weak AI is simply the fact that machines can be made to act
as if they are intelligent.

⚫ For example, when a human player plays chess against a computer, the human
player may feel as if the computer is actually making impressive moves.

CSC 604 : Artificial Intelligence


26
Differences between strong and weak AI
With strong AI, machines can actually think and carry out tasks on their own, just like
humans do. With weak AI, the machines cannot do this on their own and rely heavily
on human interference.

Strong AI has a complex algorithm that helps it act in different situations, while all the
actions in weak AIs are pre-programmed by a human.

Strong AI-powered machines have a mind of their own. They can process and make
independent decisions, while weak AI-based machines can only simulate human
behavior.

CSC 604 : Artificial Intelligence


Academic Disciplines relevant to AI
⚫ Philosophy Logic, methods of reasoning, mind as
physical system, foundations of learning,
language, rationality.
⚫ Mathematics Formal representation and proof, algorithms, computation,
(un)decidability, (in)tractability
⚫ Probability/Statistics modeling uncertainty, learning from data
⚫ Economics utility, decision theory, rational economic agents neurons
⚫ Neuroscience as information processing units.
⚫ Psychology/ Cognitive
how do people behave, perceive, process cognitive
Science
⚫ Computer Engineering information, represent knowledge.
building fast computers
⚫ Control design systems that maximize an objective function
theory over time
⚫ Linguistics knowledge representation, grammars
2
Main Areas of AI
▪ Knowledge representation
(including formal logic) Agent Perception
▪ Search, especially heuristic search Robotics
(puzzles, games)
▪ Planning Reasoning
Search
▪ Reasoning under uncertainty, Learning
including probabilistic reasoning
▪ Learning Knowledge Constraint
▪ Agent architectures rep.
Planning satisfaction
▪ Robotics and perception
▪ Natural language processing

Natural ... Expert


language
Systems
CSC 604 : Artificial Intelligence 30
History of AI
● 1943 McCulloch & Pitts: Boolean circuit model of brain
● 1950 Turing's "Computing Machinery and Intelligence"
● 1956 Dartmouth meeting: "Artificial Intelligence" adopted
● 1950s Early AI programs, including Samuel's checkers
program, Newell & Simon's Logic Theorist,
Gelernter's Geometry Engine
● 1965 Robinson's complete algorithm for logical reasoning
● 1966—73 AI discovers computational complexity
Neural network research almost disappears
● 1969—79 Early development of knowledge-based systems
● 1980-- AI becomes an industry
● 1986-- Neural networks return to popularity
● 1987-- AI becomes a science
● 1995-- The emergence of intelligent agents
CSC 604 : Artificial Intelligence
State of the art
● Deep Blue defeated the reigning world chess champion Garry Kasparov in 1997
● Proved a mathematical conjecture (Robbins conjecture) unsolved for decades
● No hands across America (driving autonomously 98% of the time from Pittsburgh
to San Diego)
● During the 1991 Gulf War, US forces deployed an AI logistics planning and
scheduling program that involved up to 50,000 vehicles, cargo, and people
● NASA's on-board autonomous planning program controlled the scheduling of
operations for a spacecraft
● Proverb solves crossword puzzles better than most humans
● Stanford vehicle in Darpa challenge completed autonomously a 132 mile desert
track in 6 hours 32 minutes.
CSC 604 : Artificial Intelligence
Consider what might be involved in
building a “intelligent” computer….
What are the “components” that might be useful?

⚫ Fast hardware?
⚫ Foolproof software?
⚫ Chess-playing at grandmaster level?
⚫ Speech interaction?
speech synthesis
speech recognition
speech understanding
⚫ Image recognition and understanding ?
⚫ Learning?
⚫ Planning and decision-making?
CSC 604 : Artificial Intelligence
An intelligent system can make errors and still be intelligent
humans are not right all of the time
we learn and adapt from making mistakes
e.g., consider learning to surf or ski
we improve by taking risks and falling
an intelligent system can learn in the same way

Conclusion:
NO: intelligent systems will not (and need not) be foolproof

CSC 604 : Artificial Intelligence


Can Computers Recognize Speech?
Speech Recognition:
•mapping sounds from a microphone into a list of words.
•Hard problem: noise, more than one person talking, occlusion, speech
variability,..
•Even if we recognize each word, we may not understand its meaning.
Recognizing single words from a small vocabulary
•systems can do this with high accuracy (order of 99%)
•e.g., directory inquiries
•Limited vocabulary (area codes, city names
•computer tries to recognize you first, if unsuccessful hands you over to a human
operator
•saves millions of dollars a year for the phone companies
CSC 604 : Artificial Intelligence
Recognizing human speech (ctd.)
Recognizing normal speech is much more difficult
⚫ speech is continuous: where are the boundaries between words?
e.g., “John’s car has a flat tire”
⚫ large vocabularies
can be many tens of thousands of possible words
we can use context to help figure out what someone said
try telling a waiter in a restaurant:
“I would like some dream and sugar in my coffee”
⚫ background noise, other speakers, accents, colds, etc
⚫ on normal speech, modern systems are only about 60% accurate

CSC 604 : Artificial Intelligence


Can Computers Understand speech?
Understanding is different to recognition:
⚫ “Time flies like an arrow”
assume the computer can recognize all the words
but how could it understand it?
1. time passes quickly like an arrow?
2. command: time the flies the way an arrow times the flies
3. command: only time those flies which are like an arrow
4. “time-flies” are fond of arrows
only 1. makes any sense, but how could a computer figure this out?
clearly humans use a lot of implicit commonsense knowledge in
communication
Conclusion: NO, much of what we say is beyond the capabilities of a
computer to understand at present
CSC 604 : Artificial Intelligence
Can Computers plan and make decisions?
Intelligence
⚫ involves solving problems and making decisions and plans
⚫ e.g., you want to visit your cousin in Boston
you need to decide on dates, flights
you need to get to the airport, etc
involves a sequence of decisions, plans, and actions
What makes planning hard?
⚫ the world is not predictable:
your flight is canceled or there’s a backup on the 405
⚫ there is a potentially huge number of details
do you consider all flights? all dates?
no: common sense constraints your solutions
⚫ AI systems are only successful in constrained planning problems
Conclusion: NO, real-world planning and decision-making is still beyond the
capabilities of modern computers
⚫ exception: very well-defined, constrained problems: mission planning for
satellites. CSC 604 : Artificial Intelligence
Intelligent Systems in Your Everyday Life
Post Office
⚫ automatic address recognition and sorting of mail
Banks
⚫ automatic check readers, signature verification systems
⚫ automated loan application classification
Telephone Companies
⚫ automatic voice recognition for directory inquiries
Credit Card Companies
⚫ automated fraud detection
Computer Companies
⚫ automated diagnosis for help-desk applications
Netflix:
⚫ movie recommendation
Google:
⚫ Search Technology
CSC 604 : Artificial Intelligence
AI Applications: Consumer Marketing
Have you ever used any kind of credit/ATM/store card while shopping?
⚫ if so, you have very likely been “input” to an AI algorithm
All of this information is recorded digitally
Companies like Nielsen gather this information weekly and search for patterns
⚫ general changes in consumer behavior
⚫ tracking responses to new products
⚫ identifying customer segments: targeted marketing, e.g., they find out that
consumers with sports cars who buy textbooks respond well to offers of new
credit cards.
⚫ Currently a very hot area in marketing
How do they do this?
⚫ Algorithms (“data mining”) search data for patterns
⚫ based on mathematical theories of learning
⚫ completely impractical to do manually
CSC 604 : Artificial Intelligence
AI Applications: Identification Technologies
ID cards
⚫ e.g., ATM cards
⚫ can be a nuisance and security risk:
cards can be lost, stolen, passwords forgotten, etc
Biometric Identification
⚫ walk up to a locked door
camera
fingerprint device
microphone
iris scan
⚫ computer uses your biometric signature for identification
face, eyes, fingerprints, voice pattern, iris pattern
CSC 604 : Artificial Intelligence
AI Applications: Predicting the Stock Market
Value of ?
the Stock

time in days
The Prediction Problem
⚫ given the past, predict the future
⚫ very difficult problem!
⚫ we can use learning algorithms to learn a predictive model from historical data
prob(increase at day t+1 | values at day t, t-1,t-2....,t-k)
⚫ such models are routinely used by banks and financial traders to manage portfolios worth
millions of dollars
CSC 604 : Artificial Intelligence
AI-Applications: Machine Translation
Language problems in international business
⚫ e.g., at a meeting of Japanese, Korean, Vietnamese and Swedish investors, no
common language
⚫ or: you are shipping your software manuals to 127 countries
⚫ solution; hire translators to translate
⚫ would be much cheaper if a machine could do this!
How hard is automated translation
⚫ very difficult!
⚫ e.g., English to Russian
“The spirit is willing but the flesh is weak” (English)
“the vodka is good but the meat is rotten” (Russian)
⚫ not only must the words be translated, but their meaning also!
Nonetheless....
⚫ commercial systems can do alot of the work very well (e.g.,restricted vocabularies in
software documentation)
⚫ algorithms which combine dictionaries, grammar models, etc.
⚫ see for example babelfish.altavista.com
CSC 604 : Artificial Intelligence
Components of AI program
Artificial Intelligence has following components –
⚫ Learning
⚫ Reasoning
⚫ Problem solving
⚫ Perception
⚫ Language understanding

CSC 604 : Artificial Intelligence


32
Components of AI
program

CSC 604 : Artificial Intelligence


33
What Can AI systems do today?
⚫ Computer vision: face Recognition
⚫ Robotics: Autonomous automobile
⚫ Natural Language Processing – simple machine translation
⚫ Expert system -Medical Diagnosis in narrow domain

CSC 604 : Artificial Intelligence


35
What Can AI systems do today?
⚫ Spoken language – 1000 word continuous speech
⚫ Planning and Scheduling system- Hubble telescope system – gather data
⚫ Learning – text categorization into ~1000 topics
⚫ Games- Grand master level in chess (world champion),checkers etc.

CSC 604 : Artificial Intelligence


36
What AI cannot do yet?
⚫ Understand Natural language robustly( e.g. read and understand articles in a
newspaper)
⚫ Interpret an arbitrary visual scene
⚫ Learn a natural language
⚫ Construct plans in dynamic real time domains
⚫ Exhibit true autonomy and intelligence

CSC 604 : Artificial Intelligence


37
AI Applications
⚫ Computer vision
⚫ Image reorganization
⚫ Robotics
⚫ Speech processing
⚫ Autonomous vehicle
⚫ Expert system – medical diagnosis etc
⚫ Machine Learning
⚫ Automated Reasoning and Theorem
proving

CSC 604 : Artificial Intelligence


38
AI Playing Games

CSC 604 : Artificial Intelligence 39


AI Applications
⚫ RoboRocks Vaccum Cleaner Robots
⚫ Automated Car - Google Self driving car, Volvo’s Self- driving car in Sweden
⚫ ALVINN – Automatic Land Driven Vehicle in NN(1986)
⚫ Machine Translation – Carnegie Mellon university working with “ Speechlator” for
use in doctor-patient interviews.,
⚫ US military forces uses “Phraselator”(one-side translator) –
communicate with injured Iraqis, prisioners of war, travelers at
checkpoints etc

CSC 604 : Artificial Intelligence


Questions
⚫ List various equipment in day-to-day life, where AI is used?
⚫ List five things that AI can achieve in next five years.
⚫ List five things that AI cannot achieve in next five years.

CSC 604 : Artificial Intelligence


41
Have the following been achieved by AI?
⚫ World-class chess playing
⚫ Playing table tennis
⚫ Cross-country driving
⚫ Solving mathematical problems
⚫ Discover and prove mathematical theories
⚫ Engage in a meaningful conversation
⚫ Understand spoken language
⚫ Observe and understand human emotions
⚫ Express emotions
⚫ ……
CSC 604 : Artificial Intelligence
42
Questions
⚫ What is intelligence? How do you measure it?
⚫ What is AI? What are applications of AI?
⚫ What is Turing Test?
⚫ What are the five things AI could do in next five years?
⚫ What are the five things AI cannot do in next five years?
⚫ Identify AI Applications in following domain:
⚫ Image Processing
⚫ Sentimental analysis
⚫ Healthcare
⚫ Insurance
⚫ Environment

CSC 604 : Artificial Intelligence


43
Foundations of AI

Tutorial Point

CSC 604 : Artificial Intelligence


Pinterest
CSC 604 : Artificial Intelligence
Approaches to AI

Courtesy :
Russell & Norvig
CSC 604 : Artificial Intelligence
Courtesy : WordStream

CSC 604 : Artificial Intelligence

You might also like