Artificial Intelligence
Artificial Intelligence
ts
the computers or machines as intelligent as human beings.
Va
What is Artificial Intelligence?
According to the father of Artificial Intelligence, John McCarthy, it is “The
p
ee
Philosophy of AI
While exploiting the power of the computer systems, the curiosity of
human, lead him to wonder, “Can a machine think and behave like humans
do?”
Thus, the development of AI started with the intention of creating similar
intelligence in machines that we find and regard high in humans.
Goals of AI
To Create Expert Systems − The systems which exhibit intelligent behavior,
learn, demonstrate, explain, and advice its users.
ts
functions associated with human intelligence, such as reasoning, learning,
and problem solving.
Va
Out of the following areas, one or multiple areas can contribute to build an
p
intelligent system.
ee
rd
Pa
ts
Va
p
ee
rd
Pa
Modification is not quick and easy. It may lead to affecting Quick and Easy
the program adversely. program modification.
What is AI Technique?
ts
In the real world, the knowledge has some unwelcomed properties −
Va
Its volume is huge, next to unimaginable.
p
It is not well-organized or well-formatted.
ee
Applications of AI
AI has been dominant in various fields such as −
Gaming − AI plays crucial role in strategic games such as chess, poker, tic-tac-
toe, etc., where machine can think of large number of possible positions based
on heuristic knowledge.
Natural Language Processing − It is possible to interact with the computer
that understands natural language spoken by humans.
ts
o Police use computer software that can recognize the face of criminal with
the stored portrait made by forensic artist.
Va
Speech Recognition − Some intelligent systems are capable of hearing and
comprehending the language in terms of sentences and their meanings while a
p
human talks to it. It can handle different accents, slang words, noise in the
ee
Intelligent Robots − Robots are able to perform the tasks given by a human.
They have sensors to detect physical data from the real world such as light,
heat, temperature, movement, sound, bump, and pressure. They have efficient
processors, multiple sensors and huge memory, to exhibit intelligence. In
addition, they are capable of learning from their mistakes and they can adapt to
the new environment.
History of AI
Here is the history of AI during 20th century −
Year Milestone / Innovation
1923 Karel Kapek's play named “Rossum's Universal Robots” (RUR) opens in
London, first use of the word "robot" in English.
1945 Isaac Asimov, a Columbia University alumni, coined the term Robotics.
1950 Alan Turing introduced Turing Test for evaluation of intelligence and
published Computing Machinery and Intelligence. Claude Shannon
published Detailed Analysis of Chess Playing as a search.
ts
1956 John McCarthy coined the term Artificial Intelligence. Demonstration of the
Va
first running AI program at Carnegie Mellon University.
p
1958 John McCarthy invents LISP programming language for AI.
ee
correctly.
1965 Joseph Weizenbaum at MIT built ELIZA, an interactive problem that carries
on a dialogue in English.
1973 The Assembly Robotics group at Edinburgh University built Freddy, the
Famous Scottish Robot, capable of using vision to locate and assemble
models.
1979 The first computer-controlled autonomous vehicle, Stanford Cart, was built.
1985 Harold Cohen created and demonstrated the drawing program, Aaron.
Case-based reasoning
Multi-agent planning
Scheduling
ts
Vision, Virtual Reality
Games
Va
1997 The Deep Blue Chess Program beats the then world chess champion, Garry
p
Kasparov.
ee
2000 Interactive robot pets become commercially available. MIT displays Kismet,
rd
a robot with a face that expresses emotions. The robot Nomad explores
remote regions of Antarctica and locates meteorites.
Pa
Artificial Intelligence - Intelligent
Systems
While studying artificially intelligence, you need to know what intelligence
is. This chapter covers Idea of intelligence, types, and components of
intelligence.
What is Intelligence?
The ability of a system to calculate, reason, perceive relationships and
analogies, learn from experience, store and retrieve information from
memory, solve problems, comprehend complex ideas, use natural language
fluently, classify, generalize, and adapt new situations.
Types of Intelligence
ts
Va
As described by Howard Gardner, an American developmental psychologist,
the Intelligence comes in multifold −
p
Intelligence Description Example
ee
mechanisms of phonology
(speech sounds), syntax
(grammar), and semantics
(meaning).
ts
problems or fashion
Va
products, control over fine
and coarse motor skills,
and manipulate the
objects.
p
ee
motivations.
Learning
Problem Solving
Perception
Linguistic Intelligence
ts
Va
Let us go through all the components briefly −
p
ee
Reasoning
ts
Va
Learning − It is the activity of gaining knowledge or skill by studying,
practising, being taught, or experiencing something. Learning enhances the
p
awareness of the subjects of the study.
ee
Problem Solving − It is the process in which one perceives and tries to arrive
ts
at a desired solution from a present situation by taking some path, which is
blocked by known or unknown hurdles.
Va
Problem solving also includes decision making, which is the process of selecting
p
the best suitable alternative out of multiple alternatives to reach the desired
ee
Humans can figure out the complete object even if some part of it is missing or
distorted; whereas the machines cannot do it correctly.
ts
Va
p
ee
rd
Pa
ts
Va
p
ee
rd
Pa
Machine does not need training for Speech This recognition system needs
Recognition as it is not speaker dependent. training as it is person oriented.
ts
Working of Speech and Voice Recognition Systems
Va
The user input spoken at a microphone goes to sound card of the system.
The converter turns the analog signal into equivalent digital signal for the
speech processing. The database is used to compare the sound patterns to
p
recognize the words. Finally, a reverse feedback is given to the database.
ee
converts it to the target language text. They are supported with interactive
Pa
1 Expert Systems
3 Neural Networks
4 Robotics
ts
Examples − Industrial robots for moving,
spraying, painting, precision
Va
checking,
drilling, cleaning, coating, carving, etc.
p
ee
rd
Pa
Task Classification of AI
The domain of AI is classified into Formal tasks, Mundane
tasks, and Expert tasks.
ts
Va
p
ee
rd
Pa
Language Ckeckers
Generation
Language
Translation
Planing Creativity
ts
Robotics
Va
Locomotive
p
Humans learn mundane (ordinary) tasks since their birth. They learn by
ee
For humans, the mundane tasks are easiest to learn. The same was
Pa
Later, it turned out that the machine requires more knowledge, complex
knowledge representation, and complicated algorithms for handling
mundane tasks. This is the reason why AI work is more prospering in
the Expert Tasks domain now, as the expert task domain needs expert
knowledge without common sense, which can be easier to represent and
handle.
AI - Agents & Environments
An AI system is composed of an agent and its environment. The agents act
in their environment. The environment may contain other agents.
A human agent has sensory organs such as eyes, ears, nose, tongue and skin
parallel to the sensors, and other organs such as hands, legs, mouth, for
effectors.
ts
A robotic agent replaces cameras and infrared range finders for the sensors,
and various motors and actuators for effectors.
Va
A software agent has encoded bit strings as its programs and actions.
p
ee
rd
Pa
Agent Terminology
Performance Measure of Agent − It is the criteria, which determines how
successful an agent is.
Behavior of Agent − It is the action that agent performs after any given
sequence of percepts.
Percept − It is agent‟s perceptual inputs at a given instance.
Percept Sequence − It is the history of all that an agent has perceived till
date.
Rationality
Rationality is nothing but status of being reasonable, sensible, and having
good sense of judgment.
ts
What is Ideal Rational Agent? Va
An ideal rational agent is the one, which is capable of doing expected
actions to maximize its performance measure, on the basis of −
p
ee
A rational agent always performs right action, where the right action means
the action that causes the agent to be most successful in the given percept
sequence. The problem the agent solves is characterized by Performance
Measure, Environment, Actuators, and Sensors (PEAS).
The Structure of Intelligent Agents
Agent‟s structure can be viewed as −
They are rational only if a correct decision is made only on the basis of current
precept.
ts
Condition-Action Rule − It is a rule that maps a state (condition) to an
action. Va
p
ee
rd
Pa
ts
Va
p
ee
rd
Pa
ts
They choose actions based on a preference (utility) for each state. Goals
Va
are inadequate when −
p
There are conflicting goals, out of which only few can be achieved.
ee
Goals have some uncertainty of being achieved and you need to weigh likelihood
of success against the importance of a goal.
rd
Pa
Nature of Environments
Some programs operate in the entirely artificial environment confined to
keyboard input, database, computer file systems and character output on a
screen.
ts
This is a very challenging environment as it is highly difficult for a software
agent to perform as well as a human.
Va
Turing Test
p
The success of an intelligent behavior of a system can be measured with
ee
Turing Test.
rd
This test aims at fooling the tester. If the tester fails to determine
machine‟s response from the human response, then the machine is said to
be intelligent.
Properties of Environment
The environment has multifold properties −
Single agent / Multiple agents − The environment may contain other agents
which may be of the same or different kind as that of the agent.
ts
completely determined by the current state and the actions of the agent, then
Va
the environment is deterministic; otherwise it is non-deterministic.
on the episode itself. Subsequent episodes do not depend on the actions in the
previous episodes. Episodic environments are much simpler because the agent
rd
ts
The other examples of single agent pathfinding problems are Travelling
Salesman Problem, Rubik‟s Cube, and Theorem Proving.
Va
Search Terminology
p
Problem Space − It is the environment in which the search takes place. (A set
ee
Branching Factor − The average number of child nodes in the problem space
graph.
Depth − Length of the shortest path from initial state to goal state.
Requirements −
State description
Initial state
Breadth-First Search
ts
It starts from the root node, explores the neighboring nodes first and
moves towards the next level neighbors. It generates one tree at a time
Va
until the solution is found. It can be implemented using FIFO queue data
structure. This method provides shortest path to the solution.
p
ee
Disadvantage − Since each level of nodes is saved for creating next one,
it consumes a lot of memory space. Space requirement to store nodes is
exponential.
As the nodes on the single path are stored in each iteration from root to leaf
ts
node, the space requirement to store nodes is linear. With branching
Va
factor band depth as m, the storage space is bm.
cut-off isd, and if chosen cut-off is lesser than d, then this algorithm may
fail. If chosen cut-off is more than d, then execution time increases.
rd
nodes.
Bidirectional Search
It searches forward from initial state and backward from goal state till both
meet to identify a common state.
The path from initial state is concatenated with the inverse path from the
goal state. Each search is done only up to half of the total path.
Disadvantage − There can be multiple long paths with the cost ≤ C*.
ts
Uniform Cost search must explore them all.
found.
rd
It never creates a node until all lower nodes are generated. It only saves a
Pa
stack of nodes. The algorithm ends when it finds a solution at depth d. The
number of nodes created at depth d is bd and at depth d-1 is bd-1.
Comparison of Various Algorithms Complexities
Let us see the performance of algorithms based on various criteria −
Time bd bm bd/2 bd bd
Space bd bm bd/2 bd bd
ts
Va
Informed (Heuristic) Search Strategies
To solve large problems with large number of possible states, problem-
p
ee
They calculate the cost of optimal path between two states. A heuristic
function for sliding-tiles games is computed by counting number of moves
that each tile makes from its goal state and adding these number of moves
for all tiles.
In each iteration, a node with a minimum heuristic value is expanded, all its
child nodes are created and placed in the closed list. Then, the heuristic
function is applied to the child nodes and they are placed in the open list
according to their heuristic value. The shorter paths are saved and the
longer ones are disposed.
A * Search
It is best-known form of Best First search. It avoids expanding paths that
are already expensive, but expands most promising paths first.
ts
It expands the node that is estimated to be closest to goal. It expands
Va
nodes based on f(n) = h(n). It is implemented using priority queue.
Hill-Climbing Search
It is an iterative algorithm that starts with an arbitrary solution to a
problem and attempts to find a better solution by changing a single element
of the solution incrementally. If the change produces a better solution, an
incremental change is taken as a new solution. This process is repeated
until there are no further improvements.
end
ts
successors is the maximum value of the objective function, then the
algorithm stops. Va
Otherwise the (initial k states and k number of successors of the states =
p
2k) states are placed in a pool. The pool is then sorted numerically. The
ee
highest k states are selected as new initial states. This process continues
until a maximum value is reached.
rd
Simulated Annealing
Annealing is the process of heating and cooling a metal to change its
internal structure for modifying its physical properties. When the metal
cools, its new structure is seized, and the metal retains its newly obtained
properties. In simulated annealing process, the temperature is kept
variable.
We initially set the temperature high and then allow it to „cool' slowly as the
algorithm proceeds. When the temperature is high, the algorithm is allowed
to accept worse solutions with high frequency.
Start
k = k + 1;
End
ts
Travelling Salesman Problem Va
In this algorithm, the objective is to find a low-cost tour that starts from a
city, visits all cities en-route exactly once and ends at the same starting
p
city.
ee
rd
Start
Find out all (n -1)! Possible solutions, where n is the total number of cities.
Pa
Determine the minimum cost by finding out the cost of each of these (n -1)! solutions.
Finally, keep the one with the minimum cost.
end
ts
Artificial Intelligence - Fuzzy Logic
Va
Systems
p
Fuzzy Logic Systems (FLS) produce acceptable but definite output in
ee
The conventional logic block that a computer can understand takes precise
input and produces a definite output as TRUE or FALSE, which is equivalent
to human‟s YES or NO.
The inventor of fuzzy logic, Lotfi Zadeh, observed that unlike computers,
the human decision making includes a range of possibilities between YES
and NO, such as −
CERTAINLY YES
POSSIBLY YES
CANNOT SAY
POSSIBLY NO
CERTAINLY NO
The fuzzy logic works on the levels of possibilities of input to achieve the
definite output.
Implementation
It can be implemented in systems with various sizes and capabilities ranging
from small micro-controllers to large, networked, workstation-based control
systems.
ts
It can be implemented in hardware, software, or a combination of both.
Va
Why Fuzzy Logic?
Fuzzy logic is useful for commercial and practical purposes.
p
ee
LP x is Large Positive
MP x is Medium Positive
S x is Small
MN x is Medium Negative
LN x is Large Negative
ts
Va
p
ee
rd
Pa
ts
Va
All membership functions for LP, MP, S, MN, and LN are shown as below −
p
ee
rd
Pa
Here, the input to 5-level fuzzifier varies from -10 volts to +10 volts. Hence
the corresponding output also changes.
Example of a Fuzzy Logic System
Let us consider an air conditioning system with 5-lvel fuzzy logic system.
This system adjusts the temperature of air conditioner by comparing the
room temperature and the target temperature value.
ts
Va
p
ee
rd
Pa
Algorithm
Logic Development
Step 1: Define linguistic variables and terms
Linguistic variables are input and output variables in the form of simple
words or sentences. For room temperature, cold, warm, hot, etc., are
linguistic terms.
ts
Every member of this set is a linguistic term and it can cover some portion
of overall temperature values.
Va
Step 2: Construct membership functions for them
p
ee
ts
Very_Hot Cool Cool
Va
Cool Cool No_Change
p
Build a set of rules into the knowledge base in the form of IF-THEN-ELSE
ee
structures.
rd
ts
Va
p
ee
rd
Automotive Systems
Automatic Gearboxes
Four-Wheel Steering
Hi-Fi Systems
Photocopiers
Domestic Goods
Microwave Ovens
Refrigerators
Toasters
Vacuum Cleaners
Washing Machines
Environment Control
Air Conditioners/Dryers/Heaters
Humidifiers
Advantages of FLSs
ts
Va
Mathematical concepts within fuzzy reasoning are very simple.
You can modify a FLS by just adding or deleting rules due to flexibility of fuzzy
p
logic.
ee
Fuzzy logic Systems can take imprecise, distorted, noisy input information.
rd
Disadvantages of FLSs
There is no systematic approach to fuzzy system designing.
They are suitable for the problems which do not need high accuracy.
AI - Natural Language Processing
Natural Language Processing (NLP) refers to AI method of communicating
with an intelligent systems using a natural language such as English.
The field of NLP involves making computers to perform useful tasks with the
natural languages humans use. The input and output of an NLP system can
be −
Speech
Written Text
ts
Components of NLP Va
There are two components of NLP as given −
p
Natural Language Understanding (NLU)
ee
It involves −
Difficulties in NLU
NL has an extremely rich form and structure.
For example, “He lifted the beetle with red cap.” − Did he use cap to lift the
beetle or he lifted a beetle that had red cap?
ts
Referential ambiguity − Referring to something using pronouns. For example,
Va
Rima went to Gauri. She said, “I am tired.” − Exactly who is tired?
NLP Terminology
rd
Pa
Steps in NLP
There are general five steps −
ts
among the words. The sentence such as “The school goes to boy” is rejected by
English syntactic analyzer.
Va
p
ee
rd
Pa
ts
Va
p
ee
rd
Pa
Context-Free Grammar
Top-Down Parser
Context-Free Grammar
It is the grammar that consists rules with a single symbol on the left-hand
side of the rewrite rules. Let us create grammar to parse a sentence − “The
bird pecks the grains”
ts
Nouns − bird | birds | grain | grains
Va
Noun Phrase (NP) − Article + Noun | Article + Adjective + Noun
p
ee
The parse tree breaks down the sentence into structured parts so that the
computer can easily understand and process it. In order for the parsing
algorithm to construct this parse tree, a set of rewrite rules, which describe
what tree structures are legal, need to be constructed.
These rules say that a certain symbol may be expanded in the tree by a
sequence of other symbols. According to first order logic rule, ff there are
two strings Noun Phrase (NP) and Verb Phrase (VP), then the string
combined by NP followed by VP is a sentence. The rewrite rules for the
sentence are as follows −
S → NP VP
VP → V NP
Lexocon −
DET → a | the
ts
Va
p
ee
rd
Pa
ts
Va
p
ee
rd
Pa
Now consider the above rewrite rules. Since V can be replaced by both,
"peck" or "pecks", sentences such as "The bird peck the grains" with wrong
subject-verb agreement are also permitted.
Demerits
They are not highly precise. For example, “The grains peck the bird”, is a
syntactically correct according to parser, but even if it makes no sense, parser
takes it as a correct sentence.
To bring out high precision, multiple sets of grammar need to be prepared. It
may require a completely different sets of rules for parsing singular and plural
variations, passive sentences, etc., which can lead to creation of huge set of
rules that are unmanageable.
Top-Down Parser
Here, the parser starts with the S symbol and attempts to rewrite it into a
sequence of terminal symbols that matches the classes of the words in the
input sentence until it consists entirely of terminal symbols.
These are then checked with the input sentence to see if it matched. If not,
the process is started over again with a different set of rules. This is
repeated until a specific rule is found which describes the structure of the
sentence.
ts
Merit − It is simple to implement.
Va
Demerits
p
It is inefficient, as the search process has to be repeated if an error occurs.
ee
High performance
ts
Understandable
Reliable
Va
Highly responsive
Advising
Pa
Demonstrating
Deriving a solution
Diagnosing
Explaining
Interpreting input
Predicting results
Knowledge Base
Interface Engine
User Interface
ts
Va
p
ee
rd
Pa
Knowledge Base
It contains domain-specific and high-quality knowledge. Knowledge is
required to exhibit intelligence. The success of any ES majorly depends
upon the collection of highly accurate and precise knowledge.
What is Knowledge?
The data is collection of facts. The information is organized as data and
facts about the task domain. Data, information, and past
experience combined together are termed as knowledge.
ts
Factual Knowledge − It is the information widely accepted by the Knowledge
Va
Engineers and scholars in the task domain.
Knowledge representation
rd
Knowledge Acquisition
The success of any expert system majorly depends on the quality,
completeness, and accuracy of the information stored in the knowledge
base.
Interface Engine
Use of efficient procedures and rules by the Interface Engine is essential in
deducting a correct, flawless solution.
Applies rules repeatedly to the facts, which are obtained from earlier rule
ts
application.
−
ee
Forward Chaining
rd
Backward Chaining
Pa
Forward Chaining
It is a strategy of an expert system to answer the question, “What can
happen next?”
Here, the interface engine follows the chain of conditions and derivations
and finally deduces the outcome. It considers all the facts and rules, and
sorts them before concluding to a solution.
ts
On the basis of what has already happened, the interface engine tries to
find out which conditions could have happened in the past for this result.
Va
This strategy is followed for finding out cause or reason. For example,
diagnosis of blood cancer in humans.
p
ee
rd
Pa
User Interface
User interface provides interaction between user of the ES and the ES itself.
It is generally Natural Language Processing so as to be used by the user
who is well-versed in the task domain. The user of the ES need not be
necessarily an expert in Artificial Intelligence.
It explains how the ES has arrived at a particular recommendation. The
explanation may appear in the following forms −
The user interface makes it easy to trace the credibility of the deductions.
Its technology should be adaptable to user‟s requirements; not the other way
ts
round.
Application Description
ts
stock market trading, Airline scheduling, cargo
scheduling. Va
Expert System Technology
p
ee
o Large databases.
Tools − They reduce the effort and cost involved in developing an expert
system to large extent.
o Java Expert System Shell (JESS) that provides fully developed Java API
for creating an expert system.
ts
The process of ES development is iterative. Steps in developing the ES
include − Va
Identify Problem Domain
p
ee
Know and establish the degree of integration with the other systems and
databases.
Realize how the concepts can represent the domain knowledge best.
The knowledge engineer uses sample cases to test the prototype for any
deficiencies in performance.
Test and ensure the interaction of the ES with all elements of its environment,
including end users, databases, and other information systems.
Maintain the ES
ts
Keep the knowledge base up-to-date by regular review and update.
Va
Cater for new interfaces with other information systems, as those systems
evolve.
Speed − They offer great speed. They reduce the amount of work an individual
puts in.
Objective
Robots are aimed at manipulating the objects by perceiving, picking,
moving, modifying the physical properties of object, destroying it, or to
have an effect thereby freeing manpower from doing repetitive functions
without getting bored, distracted, or exhausted.
What is Robotics?
ts
Va
Robotics is a branch of AI, which is composed of Electrical Engineering,
Mechanical Engineering, and Computer Science for designing, construction,
and application of robots.
p
ee
Aspects of Robotics
The robots have mechanical construction, form, or shape designed to
rd
They have electrical components which power and control the machinery.
They contain some level of computer program that determines what, when
and how a robot does something.
AI Programs Robots
They usually operate in computer- They operate in real physical world
stimulated worlds.
They need general purpose They need special hardware with sensors and
computers to operate on. effectors.
Robot Locomotion
Locomotion is the mechanism that makes a robot capable of moving in its
environment. There are various types of locomotions −
ts
Legged
Wheeled
Va
Combination of Legged and Wheeled Locomotion
p
Tracked slip/skid
ee
Legged Locomotion
rd
This type of locomotion consumes more power while demonstrating walk, jump,
trot, hop, climb up or down, etc.
Pa
It comes with the variety of one, two, four, and six legs. If a robot has multiple
legs then leg coordination is necessary for locomotion.
The total number of possible gaits (a periodic sequence of lift and release
events for each of the total legs) a robot can travel depends upon the
number of its legs.
In case of k=6 legs, there are 39916800 possible events. Hence the
complexity of robots is directly proportional to the number of legs.
ts
Va
p
ee
rd
Pa
Wheeled Locomotion
It requires fewer number of motors to accomplish a movement. It is little
easy to implement as there are less stability issues in case of more number
of wheels. It is power efficient as compared to legged locomotion.
Standard wheel − Rotates around the wheel axle and around the contact
Castor wheel − Rotates around the wheel axle and the offset steering joint.
Swedish 45° and Swedish 90° wheels − Omni-wheel, rotates around the
contact point, around the wheel axle, and around the rollers.
Ball or spherical wheel − Omnidirectional wheel, technically difficult to
implement.
Slip/Skid Locomotion
In this type, the vehicles use tracks as in a tank. The robot is steered by
ts
moving the tracks with different speeds in the same or opposite direction. It
Va
offers stability because of large contact area of track and ground.
p
ee
rd
Pa
Components of a Robot
Robots are constructed with the following −
Power Supply − The robots are powered by batteries, solar power, hydraulic,
or pneumatic power sources.
Computer Vision
This is a technology of AI with which the robots can see. The computer
ts
vision plays vital role in the domains of safety, security, health, access, and
Va
entertainment.
This involves −
a processor
a software
Autonomous vehicles
ts
Biometrics
Character recognition Va
Forensics, security, and surveillance
p
Industrial quality inspection
ee
Face recognition
Gesture analysis
rd
Geoscience
Pa
Medical imagery
Pollution monitoring
Process control
Remote sensing
Robotics
Transport
Applications of Robotics
The robotics has been instrumental in the various domains such as −
Industries − Robots are used for handling material, cutting, welding, color
coating, drilling, polishing, etc.
Military − Autonomous robots can reach inaccessible and hazardous zones
during war. A robot named Daksh, developed by Defense Research and
Development Organization (DRDO), is in function to destroy life-threatening
objects safely.
Medicine − The robots are capable of carrying out hundreds of clinical tests
simultaneously, rehabilitating permanently disabled people, and performing
complex surgeries such as brain tumors.
Exploration − The robot rock climbers used for space exploration, underwater
drones used for ocean exploration are to name a few.
ts
Va
p
ee
rd
Pa
Artificial Intelligence - Neural Networks
Yet another research area in AI, neural networks, is inspired from the
natural neural network of human nervous system.
ts
Va
The idea of ANNs is based on the belief that working of human brain by
making the right connections, can be imitated using silicon and wires as
living neuronsand dendrites.
p
ee
Each link is associated with weight. ANNs are capable of learning, which
takes place by altering weight values. The following illustration shows a
simple ANN −
ts
Va
p
ee
FeedForward ANN
The information flow is unidirectional. A unit sends information to other unit
from which it does not receive any information. There are no feedback
loops. They are used in pattern generation/recognition/classification. They
have fixed inputs and outputs.
ts
Va
p
ee
rd
FeedBack ANN
Pa
Here, feedback loops are allowed. They are used in content addressable
memories.
ts
Va
p
ee
rd
Working of ANNs
Pa
For example, pattern recognizing. The ANN comes up with guesses while
recognizing. Then the teacher provides the ANN with the answers. The network
then compares it guesses with the teacher‟s “correct” answers and makes
adjustments according to errors.
ts
a decision by observing its environment. If the observation is negative, the
Va
network adjusts its weights to be able to make a different required decision the
next time.
p
Back Propagation Algorithm
ee
changes the network‟s weights so that it can produce desired output for a
Pa
Back Propagation networks are ideal for simple Pattern Recognition and
Mapping Tasks.
Range of prepositions
ts
Probability assigned to each of the prepositions.
Is the patient exposed to air pollution? If yes, what sort of air pollution?
What values can they take? In which state can they be?
For now let us consider nodes, with only discrete values. The variable must
take on exactly one of these values at a time.
ts
Boolean nodes − They represent propositions, taking binary values TRUE (T)
and FALSE (F).
Va
Ordered values − A node Pollution might represent and take values from {low,
p
medium, high} describing degree of a patient‟s exposure to pollution.
ee
Integral values − A node called Age might represent patient‟s age with
rd
possible values from 1 to 120. Even at this early stage, modeling choices are
being made.
Pa
ts
variables.
Va
For example, what causes a patient to have lung cancer? - Pollution and
smoking. Then add arcs from node Pollution and node Smoker to
p
node Lung-Cancer.
ee
Similarly if patient has lung cancer, then X-ray result will be positive. Then
rd
Specify Topology
Conventionally, BNs are laid out so that the arcs point from top to bottom.
rd
Conditional Probabilities
First, for each node we need to look at all the possible combinations of
values of those parent nodes. Each such combination is called
an instantiation of the parent set. For each distinct instantiation of parent
node values, we need to specify the probability that the child will take.
ts
Va
p
ee
rd
Pa
ts
systems, machine maintenance analysis, project bidding, planning, and
management. Va
Medical − Cancer cell analysis, EEG and ECG analysis, prosthetic design,
p
transplant time optimizer.
ee
Time Series Prediction − ANNs are used to make predictions on stocks and
natural calamities.
Control − ANNs are often used to make steering decisions of physical vehicles.
Anomaly Detection − As ANNs are expert at recognizing patterns, they can
also be trained to generate an output when something unusual occurs that
misfits the pattern.
ts
Threat to Privacy Va
An AI program that recognizes speech and understands natural language is
theoretically capable of understanding each conversation on e-mails and
p
telephones.
ee
industries. It should not replace people in the sectors where they are
holding dignified positions which are pertaining to ethics such as nursing,
surgeon, judge, police officer, etc.
Threat to Safety
The self-improving AI systems can become so mighty than humans that
could be very difficult to stop from achieving their goals, which may lead to
unintended consequences.
Artificial Intelligence - Terminology
Here is the list of frequently used terms in the domain of AI:
Term Meaning
Autonomous Robot Robot free from external control or influence and able to
control itself independently.
ts
Backward Chaining Strategy of working backward for Reason/Cause of a
problem. Va
Blackboard It is the memory inside computer, which is used for
p
communication between the cooperating expert systems.
ee
the agent.
Pa
ts
Va
p
ee
rd
Pa