PPT Unit 1
PPT Unit 1
PPT Unit 1
INTELLIGENCE
KCA-301
UNIT 1
Artificial Intelligence: Introduction to artificial
intelligence, Historical development and
foundation areas of artificial intelligence, Tasks
and application areas of artificial intelligence.
Introduction, types and structure of intelligent
agents, Computer Vision, Natural language
processing.
Introduction To AI
• Artificial Intelligence is composed of two
words Artificial and Intelligence, where Artificial defines "man-
made," and intelligence defines "thinking power", hence AI means "a
man-made thinking power.“
• "It is a branch of computer science by which we can create intelligent
machines which can behave like a human, think like humans, and able
to make decisions."
• It is believed that AI ,there were Mechanical men in early days which
can work and behave like humans.
Why Artificial Intelligence?
• With the help of AI, you can create such software or devices which
can solve real-world problems very easily and with accuracy such as
health issues, marketing, traffic issues, etc.
• With the help of AI, you can create your personal virtual Assistant,
such as Google Assistant, Siri, etc.
• With the help of AI, you can build such Robots which can work in an
environment where survival of humans can be at risk.
• AI opens a path for other new technologies, new devices, and new
Opportunities.
Goals of Artificial Intelligence
• Replicate human intelligence
– Playing chess
• Creating some system which can exhibit intelligent behavior, learn new
Foundation of Artificial Intelligence (What
Comprises to Artificial
Intelligence?)
Artificial Intelligence is not just a part of computer science
even it's so vast and requires lots of other factors which can
contribute to it. To create the AI first we should know that
how intelligence is composed, so the Intelligence is an
intangible part of our brain which is a combination of
Reasoning, learning, problem-solving perception, language
understanding, etc.
To achieve the above factors for a machine or software Artificial
Intelligence requires the following discipline:
o Mathematics
o Biology
o Psychology
o Sociology
o Computer Science
o Neurons Study
Advantages of Artificial Intelligence
• High Accuracy with less errors: AI machines or systems are prone to less errors
and high accuracy as it takes decisions as per pre-experience or information.
• High-Speed: AI systems can be of very high-speed and fast-decision making,
because of that AI systems can beat a chess champion in the Chess game.
• High reliability: AI machines are highly reliable and can perform the same action
multiple times with high accuracy.
• Useful for risky areas: AI machines can be helpful in situations such as defusing a
bomb, exploring the ocean floor, where to employ a human can be risky.
• Digital Assistant: AI can be very useful to provide digital assistant to the users
such as AI technology is currently used by various E-commerce websites to show
the products as per customer requirement.
• Useful as a public utility: AI can be very useful for public utilities such as a self-
driving car which can make our journey safer and hassle-free, facial recognition for
security purpose, Natural language processing to communicate with the human in
human-language, etc.
Disadvantages of Artificial Intelligence
• High Cost: The hardware and software requirement of AI is very costly as it requires
lots of maintenance to meet current world requirements.
• Can't think out of the box: Even we are making smarter machines with AI, but still
they cannot work out of the box, as the robot will only do that work for which they are
trained, or programmed.
• No feelings and emotions: AI machines can be an outstanding performer, but still it
does not have the feeling so it cannot make any kind of emotional attachment with
human, and may sometime be harmful for users if the proper care is not taken.
• Increase dependency on machines: With the increment of technology, people are
getting more dependent on devices and hence they are losing their mental capabilities.
• No Original Creativity: As humans are so creative and can imagine some new ideas
but still AI machines cannot beat this power of human intelligence and cannot be
creative and imaginative.
Application of AI
Artificial Intelligence (AI) at Present
• "It is the ability of machines or computer-controlled robot to perform
task that are associated with intelligence." So, AI is computer science,
which aims to develop intelligent machines that can mimic human behavior.
• Based on capabilities, AI can be divided into three types that are:
E-commerce:
• Artificial Intelligence will play a vital role in the e-commerce sector shortly. It will
positively impact each aspect of the e-commerce sector, ranging from user experience
to marketing and distribution of products. We can expect e-commerce with automated
warehouse and inventory, shopper personalization, and the use of chatbots in future.
Continue………
Employment:
• Nowadays, employment has become easy for job seekers and simple
for employers due to the use of Artificial Intelligence. AI has already
been used in the job search market with strict rules and algorithms
that automatically reject an employee's resume if it does not fulfill the
requirement of the company. It is hoping that the employment process
will be driven by most AI-enabled applications ranging from marking
the written interviews to telephonic rounds in the future.
Languages used in Artificial Intelligence
1. Python
• Python is one of the most powerful and easy programming languages that anyone can
start to learn. Python is initially developed in the early stage of 1991. Python also comes
with some default sets of standards libraries and also provides better community support
to its users. Further, Python is a platform-independent language and also provides an
extensive framework for Deep Learning, Machine Learning, and Artificial Intelligence.
• Python is also a portable language as it is used on various platforms such as Linux,
Windows, Mac OS, and UNIX.
• Python is an ideal programming language used for Machine Language, Natural
Processing Language (NLP), and Neural networks, etc. Due to the flexible nature of
Python, it can be used for AI development. It contains various pre-existing libraries
such as Pandas, SciPy etc. Further, Python also contains simple syntax and easy
coding, which makes Python the first choice of AI developers and programmers.
Languages used in Artificial Intelligence
Features of Python
• It is easy to learn than any other programming language.
• It is also a dynamically-typed language.
• Python is an Object-oriented language.
• It provides extensive community support and a framework for ML
and DL.
• Open-source.
• Large standard sets of libraries.
• Interpreted language.
Languages used in Artificial Intelligence
2. Java
• Similar to Python, Java is also a platform-independent language as it can also be easily
implemented on various platforms. Further, Java is an object-oriented and scalable
programming language. The best thing about Java is once it is written and compiled on one
platform, then you do not need to compile it again and again. This is known as WORA (Once
Written Read/Run Anywhere) principle.
Features of Java
• Portability
• Cross-platform.
• Easy to learn and use.
• Easy-to-code Algorithms.
• Built-in garbage collector.
• Better user interaction.
Languages used in Artificial Intelligence
3. Prolog
• Prolog is one of the oldest programming languages used for Artificial Intelligence
solutions. Prolog stands for "Programming in Logic", which was developed by
French scientist Alain Colmerauer in 1970.
• For AI programming in Prolog, developers need to define the rules, facts, and the
end goal. After defining these three, the prolog tries to discover the connection
between them.
• Prolog may not be a great programming language to build something big, but it's a
great language to study and think about problems in more logical ways rather than
procedural.
Features of Prolog
• Supports basic mechanisms such as
• Pattern Matching,
• Tree-based data structuring, and
• Automatic backtracking.
• Prolog is a declarative language rather than imperative.
Languages used in Artificial Intelligence
4. Lisp
• Lisp was originally created as a practical mathematical notation for programs but
eventually became a top choice of developers in the field of AI.
• Although Lisp programming language is the second oldest language after Fortran, it is still
being used because of its crucial features.
• It has various deficiencies, such as lack of well-known libraries, not so-human-friendly
syntax, etc. Due to this reason, it is not preferred by the programmers.
Features of LISP
• The program can be easily modified, similar to data.
• Make use of recursion for control structure rather than iteration.
• Garbage Collection is necessary.
• We can easily execute data structures as programs.
Languages used in Artificial Intelligence
5. R
• R is one of the great languages for statistical processing in programming. However,
R supports free, open-source programming language for data analysis purposes. It
may not be the perfect language for AI, but it provides great performance while
dealing with large numbers.
Features of R programming
• R is an open-source programming language, which is free of cost, and also you can
add packages for other functionalities.
• R provides strong & interactive graphics capability to users.
Features of Julia
• Common numeric data types.
• Arbitrary precision values.
• Robust mathematical functions.
• Tuples, dictionaries, and code introspection.
• Built-in package manager.
• Dynamic type system.
• Ability to work for both parallel and distributed computing.
• Macros and metaprogramming capabilities.
• Support for multiple dispatches.
• Support for C functions.
Languages used in Artificial Intelligence
7. C++
• C++ language has been present for so long around, but still being a top and popular
programming language among developers. It provides better handling for AI models
while developing.
• Although C++ may not be the first choice of developers for AI programming, various
machine learning and deep learning libraries are written in the C++ language.
Features of C++
• C++ is one of the fastest languages, and it can be used in statistical techniques.
• It can be used with ML algorithms for fast execution.
• Most of the libraries and packages available for Machine learning and AI are written
in C++.
• It is a user friendly and simple language.
Types of Artificial Intelligence:
Artificial Intelligence can be divided in various types, there are mainly two types of main
categorization which are based on capabilities and based on functionally of AI. Following
is flow diagram which explain the types of AI.
AI type-1: Based on Capabilities
1. Weak AI or Narrow AI:
o Narrow AI is a type of AI which is able to perform a dedicated task with
intelligence. The most common and currently available AI is Narrow AI in
the world of Artificial Intelligence.
o Narrow AI cannot perform beyond its field or limitations, as it is only
trained for one specific task. Hence it is also termed as weak AI. Narrow AI
can fail in unpredictable ways if it goes beyond its limits.
•
Apple Siri is a good example of Narrow AI, but it operates with a limited
pre-defined range of functions.
o IBM's Watson supercomputer also comes under Narrow AI, as it uses an
Expert system approach combined with Machine learning and natural
language processing.
o Some Examples of Narrow AI are playing chess, purchasing suggestions on
e-commerce site, self-driving cars, speech recognition, and image
recognition.
2. General AI:
o General AI is a type of intelligence which could perform any
intellectual task with efficiency like a human.
o The idea behind the general AI to make such a system which
could be smarter and think like a human by its own.
o Currently, there is no such system exist which could come under
general AI and can perform any task as perfect as a human.
o The worldwide researchers are now focused on developing
machines with General AI.
o As systems with general AI are still under research, and it will
take lots of efforts and time to develop such systems.
3. Strong AI:
o Strong AI is a level of Intelligence of Systems at
which machines could surpass human intelligence,
and can perform any task better than human with
cognitive properties. It is an outcome of general AI.
o Some key characteristics of strong AI include
capability include the ability to think, to reason, solve
the puzzle, make judgments, plan, learn, and
communicate by its own.
o Super AI is still a hypothetical concept of Artificial
Intelligence. Development of such systems in real is
still world changing task.
Artificial Intelligence type-2: Based on functionality
1. Reactive Machines
o Purely reactive machines are the most basic types of Artificial
Intelligence.
o Such AI systems do not store memories or past
experiences for future actions.
o These machines only focus on current scenarios and react
on it as per possible best action.
o IBM's Deep Blue system(supercomputer developed by
IBM specifically for playing chess) is an example of
reactive machines.
o Google's AlphaGo is also an example of reactive machines.
2. Limited Memory
o Limited memory machines can store past experiences or
some data for a short period of time.
o These machines can use stored data for a limited time
period only.
o Self-driving cars are one of the best examples of Limited
Memory systems. These cars can store recent speed of
nearby cars, the distance of other cars, speed limit, and
other information to navigate the road.
3. Theory of Mind
o Theory of Mind AI should understand the human
emotions, people, beliefs, and be able to interact socially
like humans.
o This type of AI machines are still not developed, but
researchers are making lots of efforts and improvement
for developing such AI machines.
4. Self-Awareness
o Self-awareness AI is the future of Artificial Intelligence.
These machines will be super intelligent, and will have
their own consciousness, sentiments, and self-awareness.
o These machines will be smarter than human mind.
o Self-Awareness AI does not exist in reality still and it is a
hypothetical concept.
AI Agents
• Artificial Intelligence is defined as the study of rational agents. A
rational agent may take the form of a person, firm, machine, or
software to make decisions.
• An AI system is made up of an agent and its environment. Agents
work in their environment, and the environment may include other
agents. The agents sense the environment through sensors and act on
their environment through actuators. An AI agent can have mental
properties such as knowledge, belief, intention, etc.
Sensor: Sensor is a device which detects the change in the
environment and sends the information to other electronic
devices. An agent observes its environment through sensors.
Goals of Agents:
1. High Performance
2. Optimized Result
3. Rational Action
3. Goal-based agents
• These types of agents make decisions based on how far
they are currently from their goals (details of desired
conditions). Their every action is aimed at reducing its
distance from the target. This gives the agent a way to
choose from a number of possibilities, leading to a
target position. The behavior of a target-based agent can
be easily changed. Goal based agents based on
Types of Agents
4. Utility-based agents
• Adaptability
• Memory
• Feedback Sensitivity
• Decision Making Ability
• Exploration
• Generalization
• Performance Improvement Over Time
PEAS Representation
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. It is made up of four words:
P: Performance measure – It is the output we get from
an agent i.e. results obtained after agent processing
E: Environment- All surrounding things and
conditions.
A: Actuators- Devices like hardware /software
through which agents performs actions on
environment
S: Sensors – Devices from which the agents perceives
observation from environment
Here performance measure is the objective for
PEAS for self-driving cars
pedestrian
8. Accessible vs Inaccessible
• The most famous artificial environment is the Turing test environment, in which a
real and other artificial agents are tested on an equal basis. This is a very
challenging environment as it is extremely difficult for a software agent to perform
side-by-side with a human.
Turing Test
• The success of a system's intelligent behavior can be measured with the Turing test.
• Two persons and a machine to be evaluated participate in the test. One of the two
persons plays the role of the examiner. Each of them is sitting in different rooms.
The examiner is unaware of who is a machine and who is a human. He inquires by
typing the questions and sending them to both intelligences, for which he receives
typed responses.
• The purpose of this test is to fool the tester. If the tester fails to determine the
response of the machine from the human response, the machine is said to be
intelligent.
PEAS Description for
Internet Shopping Agent
PEAS Description for Internet Shopping Agent
PEAS description
Environment Characteristics:
Fully observable: No
Deterministic: Partly // partially observable
Episodic: No // sequential
Static: Semi // the world changes partly while the agent is thinking
Discrete: Yes
Single-agent: No // multi-agent
NLP (Natural Language Processing)
• Natural language processing strives to build machines that understand
and respond to text or voice data—and respond with text or speech of
their own—in much the same way humans do.
Here’s an example:
Customer service couldn’t be better! = “customer service”
“could” “not” “be” “better”.
In this case, the example above would look like this:
There are two main techniques that can be used for word sense
disambiguation (WSD): knowledge-based (or dictionary
approach) or supervised approach. The first one tries to infer
meaning by observing the dictionary definitions of ambiguous
terms within a text, while the latter is based on natural language
processing algorithms that learn from training data.
Email filters
Virtual assistants, voice assistants, or smart speakers
Online search engines
Predictive text and autocorrect
Monitor brand sentiment on social media
Sorting customer feedback
Automating processes in customer support
Chatbots
Automatic summarization
Machine translation
Natural language generation
Computer vision
Much like a human making out an image at a distance, a CNN first discerns
hard edges and simple shapes, then fills in information as it runs iterations of its
predictions. A CNN is used to understand single images. A recurrent neural
network (RNN) is used in a similar way for video applications to help
computers understand how pictures in a series of frames are related to one
another.
Computer vision applications
• IBM used computer vision to create My Moments for the 2018 Masters golf
tournament. IBM Watson watched hundreds of hours of Masters footage and
could identify the sights (and sounds) of significant shots. It curated these
key moments and delivered them to fans as personalized highlight reels.