Unit 1
Unit 1
Unit 1
Artificial Intelligence exists when a machine can have human based skills such
as learning, reasoning, and solving problems
With Artificial Intelligence you do not need to preprogram a machine to do
some work, despite that you can create a machine with programmed algorithms
which can work with own intelligence, and that is the awesomeness of AI.
Unit 1 1
It is believed that AI is not a new technology, and some people says that as per
Greek myth, there were Mechanical men in early days which can work and
behave like humans.
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
Cortana, 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.
Proving a theorem
Playing chess
5. Creating some system which can exhibit intelligent behavior, learn new
things by itself, demonstrate, explain, and can advise to its user.
Unit 1 2
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:
Mathematics
Biology
Psychology
Sociology
Computer Science
Neurons Study
Statistics
Unit 1 3
Advantages of Artificial Intelligence
Following are some main 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 reliability: AI machines are highly reliable and can perform the same
action multiple times with high accuracy.
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.
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.
Unit 1 4
attachment with human, and may sometime be harmful for users if the
proper care is not taken.
1. Reactive machines
These machines are the most basic form of AI applications. Examples of
reactive machines are Deep Blue, IBM's chess-playing supercomputer, and the
same computer that defeated the then-grand master of the world.
AI teams do not use training sets to feed the machines or store subsequent
data for future references. Based on the move made by the opponent, the
Unit 1 5
machine decides/predicts the next move.
2. Limited memory
These machines belong to the Category II category of AI applications, and
Self-propelled cars are the perfect example. Over time, these machines are fed
with data and trained on the speed and direction of other cars, lane markings,
traffic lights, curves of roads, and other important factors.
3. Theory of mind
It is where we are struggling to make this concept work. However, we are not
there yet. Theory of mind is the concept where bots will understand and react
to human emotions, thoughts.
If AI-powered machines are always mingling and moving around with us, then
understanding human behavior is imperative. And then, it is necessary to react
to such behaviors accordingly.
4. Self-awareness
These machines are an extension of class III type AI, and it is a step ahead of
understanding human emotions. It is the stage where AI teams build machines
with self-awareness factors programmed into them.
When someone is honking the horn from behind, the machines must sense the
emotion, and only then do they understand what it feels like when they horn
someone from behind.
Unit 1 6
Reactive Machines AI
Limited Memory AI
Theory Of Mind AI
Self-aware AI
This category of AI comprises devices that only use the data that is now
available and take into consideration the current circumstances.
Reactive AI systems are unable to conclude from the information to choose the
best course of action. They are only capable of a limited set of predetermined
duties.
Examples:
chess-playing supercomputer
spam detection
Artificial intelligence is one form that has limited memory. It speaks to an AI’s
capacity to retain past information and forecasts and use it to inform future
predictions.
The complexity of Machine Learning design increases slightly when memory is
constrained. Every ML model needs a little amount of memory to build, but the
model may be used as a reactive machine type, as this is the most fundamental
and straightforward kind of AI.
Example:
Self-Aware AI:
Unit 1 7
The evolution of AI has reached its conclusion, yet it only exists in theory for
now. Self-aware AI, as the name suggests, is an AI that has evolved to be so
like the human brain that it has developed self-awareness.
The main goal of all AI research has been and will always be developing this
kind of AI, which is decades, if not centuries, away from becoming a reality.
AI Techniques
Depending on the machine’s ability to utilize past experiences to anticipate
future judgments, memory, and self-awareness, artificial intelligence can be
classified into a variety of subcategories.
IBM created the chess program Deep Blue, which can recognize the pieces on
the chessboard. However, it lacks the memory necessary to anticipate future
behavior. Even if this approach is helpful, it cannot be modified for different
circumstances.
The decision-making capabilities of self-driving automobiles serve as an
illustration of this type of AI system. Here, observations aid in the quick
decisions that must be made since they change often and are not permanently
preserved.
The development of technology may also make it feasible to create machines
with a sense of awareness that can recognize the status of the world and
determine what has to be done. But there are no such systems.
Machine Learning:
Machines, in this use of AI, naturally learn from experience rather than being
explicitly taught to carry out certain tasks.
Unit 1 8
Artificial neural networks are the foundation of the subfield of machine learning
known as “Deep Learning” that is used for predictive analysis. Unsupervised
machine learning, supervised and unsupervised, and reinforcement learning
are only a few examples of the many machine learning algorithms.
The algorithm is unsupervised learning and does not employ categorized
information to make choices on its own without any direction.
Machine Vision:
Machines are capable of collecting and analyzing visual data. In this case,
cameras are utilized to record sensory information, which is then processed
using digital signal processing once the picture is converted from analog to
digital.
The data that is produced is then input into a computer. Sensitivity is the
capacity of the machine to recognize weak impulses and resolution. The
extent to which it can discriminate between objects—are two essential
components of machine vision.
Machine vision is used in a variety of applications, including object recognition,
medical picture analysis, and signature detection.
Unit 1 9
Automation and Robotics
Application of AI
Artificial Intelligence has various applications in today's society. It is becoming
essential for today's time because it can solve complex problems with an
efficient way in multiple industries, such as Healthcare, entertainment, finance,
education, etc. AI is making our daily life more comfortable and fast.
Following are some sectors which have the application of Artificial Intelligence:
Unit 1 10
1. AI in Astronomy
Artificial Intelligence can be very useful to solve complex universe
problems. AI technology can be helpful for understanding the universe such
as how it works, origin, etc.
2. AI in Healthcare
In the last, five to ten years, AI becoming more advantageous for the
healthcare industry and going to have a significant impact on this industry.
3. AI in Gaming
AI can be used for gaming purpose. The AI machines can play strategic
games like chess, where the machine needs to think of a large number of
possible places.
4. AI in Finance
AI and finance industries are the best matches for each other. The finance
industry is implementing automation, chatbot, adaptive intelligence,
algorithm trading, and machine learning into financial processes.
5. AI in Data Security
The security of data is crucial for every company and cyber-attacks are
growing very rapidly in the digital world. AI can be used to make your data
more safe and secure. Some examples such as AEG bot, AI2 Platform,are
used to determine software bug and cyber-attacks in a better way.
6. AI in Social Media
Social Media sites such as Facebook, Twitter, and Snapchat contain billions
of user profiles, which need to be stored and managed in a very efficient
way. AI can organize and manage massive amounts of data. AI can analyze
lots of data to identify the latest trends, hashtag, and requirement of
different users.
Unit 1 11
AI is becoming highly demanding for travel industries. AI is capable of
doing various travel related works such as from making travel arrangement
to suggesting the hotels, flights, and best routes to the customers. Travel
industries are using AI-powered chatbots which can make human-like
interaction with customers for better and fast response.
8. AI in Automotive Industry
Some Automotive industries are using AI to provide virtual assistant to their
user for better performance. Such as Tesla has introduced TeslaBot, an
intelligent virtual assistant.
9. AI in Robotics:
Artificial Intelligence has a remarkable role in Robotics. Usually, general
robots are programmed such that they can perform some repetitive task,
but with the help of AI, we can create intelligent robots which can perform
tasks with their own experiences without pre-programmed.
10. AI in Entertainment
We are currently using some AI based applications in our daily life with
some entertainment services such as Netflix or Amazon. With the help of
ML/AI algorithms, these services show the recommendations for programs
or shows.
11. AI in Agriculture
Agriculture is an area which requires various resources, labor, money, and
time for best result. Now a day's agriculture is becoming digital, and AI is
emerging in this field. Agriculture is applying AI as agriculture robotics,
solid and crop monitoring, predictive analysis. AI in agriculture can be very
helpful for farmers.
12. AI in E-commerce
Unit 1 12
AI is providing a competitive edge to the e-commerce industry, and it is
becoming more demanding in the e-commerce business. AI is helping
shoppers to discover associated products with recommended size, color, or
even brand.
13. AI in education:
AI can automate grading so that the tutor can have more time to teach. AI
chatbot can communicate with students as a teaching assistant.
AI in the future can be work as a personal virtual tutor for students, which
will be accessible easily at any time and any place.
Unit 1 13
Most consider driverless cars to be intelligent systems.
Molina added that his definition should not be taken as a "rigid characterization
to determine whether a system is intelligent or not." Instead, the definition
outlined the usual characteristics that might be present in an intelligent system.
For example, a system might be considered intelligent if it has perception and
can control action, even if it doesn't possess deliberative reasoning or a
capacity to learn.
He further stated that the "concept of intelligent system has emerged in
information technology as a type of system derived from successful
applications of artificial intelligence." In fact, AI is commonly cited as a central
Unit 1 14
characteristic of any intelligent system. Molina also said that one of the most
important aspects in the construction of an intelligent system is the selection
of AI methods which provide the system with the cognitive abilities necessary
to function as a complete system.
Some believe the intelligent systems should include AI methods that provide
them with cognitive abilities to function as complete systems.
However, an intelligent system is not the same thing as AI, although the terms
are sometimes used interchangeably. With AI, computers and other machines
attempt to simulate human intelligence, but its presence does not automatically
imply an intelligent system. For example, a computer running an AI-based
application does not mean that the computer itself is an intelligent system,
although it might contribute to such a system as one of its agents.
Unit 1 15
different industries. This is just a glimpse into the potential application of
intelligent systems.
Industry Examples
Unit 1 16
What is an Agent?
An agent can be anything that perceive its environment through sensors and
act upon that environment through actuators. An Agent runs in the cycle
of perceiving, thinking, and acting. An agent can be:
Human-Agent: A human agent has eyes, ears, and other organs which
work for sensors and hand, legs, vocal tract work for actuators.
Robotic Agent: A robotic agent can have cameras, infrared range finder,
NLP for sensors and various motors for actuators.
Before moving forward, we should first know about sensors, effectors, and
actuators.
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.
Actuators: Actuators are the component of machines that converts energy into
motion. The actuators are only responsible for moving and controlling a system.
An actuator can be an electric motor, gears, rails, etc.
Effectors: Effectors are the devices which affect the environment. Effectors
can be legs, wheels, arms, fingers, wings, fins, and display screen.
Intelligent Agents:
Unit 1 17
An intelligent agent is an autonomous entity which act upon an environment
using sensors and actuators for achieving goals. An intelligent agent may learn
from the environment to achieve their goals. A thermostat is an example of an
intelligent agent.
Following are the main four rules for an AI agent:
Rational Agent:
A rational agent is an agent which has clear preference, models uncertainty,
and acts in a way to maximize its performance measure with all possible
actions.
A rational agent is said to perform the right things. AI is about creating rational
agents to use for game theory and decision theory for various real-world
scenarios.
Rationality:
The rationality of an agent is measured by its performance measure. Rationality
can be judged on the basis of following points:
Unit 1 18
act accordingly, which is not possible in reality.
Structure of an AI Agent
The task of AI is to design an agent program which implements the agent
function. The structure of an intelligent agent is a combination of architecture
and agent program. It can be viewed as:
Following are the main three terms involved in the structure of an AI agent:
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
E: Environment
A: Actuators
S: Sensors
Unit 1 19
Let's suppose a self-driving car then PEAS representation will be:
• Patient
• Healthy
• • Tests
1. Medical patient Keyboard(Entry
Hospital •
Diagnose • of symptoms)
• Treatments
Minimized cost
Staff
Unit 1 20
• • Vacuum Cliff sensor
Security Carpet Extractor •
• Bump Sensor
Various •
obstacles Infrared Wall
Sensor
Unit 1 21