Professional Documents
Culture Documents
AI For Business Applications Unit 1: Introduction To AI: Faculty Name: Dr. Shivangi Agarwal
AI For Business Applications Unit 1: Introduction To AI: Faculty Name: Dr. Shivangi Agarwal
Unit 1: Introduction to AI
Lec.-1: Dissemination of Institute & department vision-mission, PEO, POs, PSO, COs & POs
mapping
2
Lecture 4
Introduction to
Neural Network (NN) &
Deep Learning (DL)
What is NN?
Source: en.wikipedia.org/wiki/Biological_neuron_model
• Derived from Biological neural networks that develop the structure of a human
brain.
• Artificial neurons or nodes (ෝ
= neurons) interconnected to one another in various
layers of the networks.
Biological NN Artificial NN
Dendrites Inputs
Cell nucleus Nodes
Synapse Weights
Axon Output
1943, Warren McCulloch & Walter Pitts: Created a computational model for neural
networks.
1954, Farley & Wesley A. Clark: Simulate a Hebbian network using computational
machines ("calculators“).
1958, Frank Rosenblatt: Invented the perceptron, first artificial neural network.
1960, Kelley & 1961 Bryson: Derived the basics of continuous backpropagation using
principles of dynamic programming.
1965, Ivakhnenko and Lapa: Published first functional multi-layered networks, as the
Group Method of Data Handling.
1969, Minsky and Papert: Discovered that basic perceptrons were incapable of
processing the EXOR circuit & that computers lacked sufficient power to process useful
neural networks.
• A neural network with some convolutional layers (and some other layers).
Kernel function or
feature extractor
Filter
1 0 0 0 0 1 1 -1 -1
0 1 0 0 1 0 -1 1 -1 Filter 1
0 0 1 1 0 0 -1 -1 1 Each filter
detects a small
1 0 0 0 1 0 pattern.
-1 1 -1
0 1 0 0 1 0 Filter 2
-1 1 -1
0 0 1 0 1 0
-1 1 -1
Image
…
…
1 -1 -1 -1 1 -1
1 1 -1-1 -1-1 -1 1 -1
-1 1 -1 -1 -11 1-1 -1
-1-1 1 1 -1-1 -1 1 -1
-1 -1 1 Filter 1 -1 -11 1-1 -1 Filter 2
-1-1 -1-1 1 1 -1 1 -1
-1 1 -1
1 0 0 0 0 1
1 0 0 0 0 1
0 11 0 00
0 01 00 1
0 1 0 0 1 0
0 00 11 01 00 10 0
0 0 1 1 0 0
1 00 00 10 11 00 0
1 0 0 0 1 0
0 11 00 00 01 10 0
0 1 0 0 1 0
0 00 11 00 01 10 0
0 0 1 0 1 0
0 0 1 0 1 0
Color image
cat or dog
Convolution
Fully Connected
Feedforward network Max Pooling
Convolution
May
repeat
Next move
ANN (19 x 19
positions)
19 x 19 matrix
Black: 1
white: -1
none: 0
19 Lec-4: Introduction to NN & DL
AlphaGo’s policy network
Image Time
Spectrogram
Source: doi=10.1.1.703.6858
22 Lec-4: Introduction to NN & DL
Lecture 5
Introduction to
Natural Language Processing (NLP)
NLP in 5 min
• L1 : sound
• L2 : Dog - Dog(s), Dog(ged)
Lady – Lad(ies)
Should we store all forms of words in the lexicon?
• L3 : Ram goes to market (right)
goes Ram to the market (wrong)
• L4 : translation from unstructured to structured representation
go : (event)
agent : Ram
source : ?
destination : market
• Structural
o It is dealt with in parsing.
o “I saw the boy with a telescope”
• Referential
o Aries during the use of pronounces for referencing.
o “The father lost the boy in zoo. He was very worried.”
NLP - Tokenization
32 Lec.-5: Introduction to NLP
Stemming
Source: www.edureka.co/python-natural-language-processing-course
36 Lec.-5: Introduction to NLP
NLP- Training an AI to create poetry
Introduction to
Rule-based Expert Systems
Rule-based Expert system
• Highly responsive: Provides the result for any complex query within a
very short period of time.
A SET OF FACTS
• Assertions relevant to the beginning state of the system
• A collection of data and conditions.
A Set Of Rules
• All actions that should be taken within the scope of a problem specify
how to act on the assertion set
• Relates the facts in the IF part to some action in the THEN part
• Should contain only relevant rules & avoid the irrelevant ones
A TERMINATION CRITERION
• A condition that determines that a solution has been found or that none
exists
• Necessary to terminate some rule-based systems that find themselves in
infinite loops otherwise
41 Lec.-6: Introduction to Rule-based ES
Rule
• Directive
o IF the car is dead AND the ‘fuel tank’ is empty THEN the action is
‘refuel the car’
• Strategy
o IF the car is dead THEN the action is ‘check the fuel tank’; the action
is ‘check the fuel tank’; step1 is complete
IF step1 is complete AND the ‘fuel tank’ is full the ‘fuel tank’ is full
THEN the action is ‘check the battery’; the action is ‘check the
battery’; step2 is complete
• Heuristic
o IF the spill is liquid AND the ‘spill pH’ < 6 AND the ‘spill smell’ is
vinegar the ‘spill smell’ is vinegar THEN the ‘spill material’ is ‘acetic
acid’ the ‘spill material’ is ‘acetic acid’
Source: 10.1109/ISMSIT.2018.8567251
45 Lec.-6: Introduction to Rule-based ES
Complete structure of rule-based expert system
DATABASE
• Set of facts used to match against the IF (condition) parts of rules
INFERENCE ENGINE
• Carries out the reasoning whereby the expert system reaches a
solution
• Links the rules given in the knowledge base with the facts provided in
the database
EXPLANATION FACILITIES
• Enable the user to ask the expert system how a particular conclusion is
reached & why a specific fact is needed
• Explain its reasoning & justify its advice, analysis or conclusion
USER INTERFACE
• Communication between a user seeking a solution to the problem and
an expert system