SlideShare a Scribd company logo
Artificial Intelligence (CSIT 4th Sem)
Unit:5 Machine Learning
Prepared By : Narayan Dhamala
1
Introduction to Machine Learning
Prepared By : Narayan Dhamala
 Machine learning is the study of computer system that learn from
data and experience.
 Machine learning is subfield of artificial intelligence which gives
the computer ability to learn without being explicitly programmed.
 The goal of machine learning is to build computer system that
can adapt and learn from their experience.
 A computer program is said to be learn if it‟s performance P
improves over a task T with an experience E.
2
Concept of Learning
Prepared By : Narayan Dhamala
 Learning is a way of updating the knowledge.
 Learning is making useful changes in our mind.
 Learning is constructing or modifying representations of what is
being experienced.
 Learning denotes changes in the system that are adaptive in the
sense that they enable the system to do the same task (or tasks
drawn from the same population) more effectively the next time.
3
Types of Learning
Prepared By : Narayan Dhamala
The strategies for learning can be classified according to the amount of inference the system
has to perform on its training data. In increasing order we have
1. Rote learning – the new knowledge is implanted directly with no inference at all, e.g. simple
memorization of past events, or a knowledge engineer‟s direct programming of rules elicited
from a human expert into an expert system.
2. Supervised learning – the system is supplied with a set of training examples consisting of
inputs and corresponding outputs, and is required to discover the relation or mapping
between then, e.g. as a series of rules, or a neural network.
3. Unsupervised learning – the system is supplied with a set of training examples consisting
only of inputs and is required to discover for itself what appropriate outputs should be, e.g. a
Kohonen Network or Self Organizing Map.
4. Reinforcement learning- Is concerned with how intelligent agents ought to act in an
environment to maximize some notion of reward from sequence of actions.
4
Prepared By : Narayan Dhamala
5
Prepared By : Narayan Dhamala
6
Learning Framework
Prepared By : Narayan Dhamala
7
• There are four major components in a learning system:
Environment
Learning
Element
Performance
Element
Knowledge
Base
Learning Framework:
The Environment
Prepared By : Narayan Dhamala
• The environment refers the nature and quality of information given to the
learning element
• The nature of information depends on its level (the degree of generality wrt
the performance element)
– high level information is abstract, it deals with a broad class of problems
– low level information is detailed, it deals with a single problem.
• The quality of information involves
– noise free
– reliable
– ordered
8
Learning Framework:
Learning Elements
Prepared By : Narayan Dhamala
• Four learning situations
– Rote Learning
• environment provides information at the required level
– Learning by being told
• information is too abstract, the learning element must hypothesize missing data
– Learning by example
• information is too specific, the learning element must hypothesize more general rules
– Learning by analogy
• information provided is relevant only to an analogous task, the learning element must
discover the analogy
9
Learning Framework:
Learning Elements
Prepared By : Narayan Dhamala
• Four learning situations
– Rote Learning
• environment provides information at the required level
– Learning by being told
• information is too abstract, the learning element must hypothesize missing data
– Learning by example
• information is too specific, the learning element must hypothesize more general rules
– Learning by analogy
• information provided is relevant only to an analogous task, the learning element must
discover the analogy
10
Learning Framework:
The Knowledge Base
Prepared By : Narayan Dhamala
• Expressive
– the representation contains the relevant knowledge in an easy to get to
fashion
• Modifiable
– it must be easy to change the data in the knowledge base
• Extendibility
– the knowledge base must contain meta-knowledge (knowledge on how
the data base is structured) so the system can change its structure
11
Learning Framework:
The Performance Element
Prepared By : Narayan Dhamala
• Complexity
– for learning, the simplest task is classification based on a single rule while
the most complex task requires the application of multiple rules in
sequence
• Feedback
– the performance element must send information to the learning system to
be used to evaluate the overall performance
• Transparency
– the learning element should have access to all the internal actions of the
performance element
12
Statistical Based Learning: Naïve Bayes Model
Prepared By : Narayan Dhamala
• Statistical Learning is a set of tools for understanding
data. These tools broadly come under two classes:
supervised learning & unsupervised learning.
• Generally, supervised learning refers to predicting or
estimating an output based on one or more inputs.
• Unsupervised learning, on the other hand, provides a
relationship or finds a pattern within the given data
without a supervised output.
13
BAYESIAN METHODS
• Learning and classification (Supervised learning) method
based on probability theory.
• Baye‟s theorem plays a critical role in probabilistic
learning and classification.
• Uses prior probability of each category given no
information about an item.
• Categorization produces a posterior probability
distribution over the possible categories given a
description of an item.
P(A|B) =
BAYESIAN METHODS...
D =
AFTER TRAINING
Size<small, medium, large>
Color<red, blue, green>
Shape<circle, triangle, square>
Category<positive, negative>
BAYESIAN METHODS...
Naïve Bayesian Classifier: Training Dataset
Class:
C1:buys_computer = „yes‟
C2:buys_computer = „no‟
Data sample
X = (age <=30,
Income = medium,
Student = yes
Credit_rating = Fair)
Naïve Bayesian Classifier: An Example
• P(Ci): P(buys_computer = “yes”) = 9/14 = 0.643
P(buys_computer = “no”) = 5/14= 0.357
• Compute P(X|Ci) for each class
P(age = “<=30” | buys_computer = “yes”) = 2/9 = 0.222
P(age = “<= 30” | buys_computer = “no”) = 3/5 = 0.6
P(income = “medium” | buys_computer = “yes”) = 4/9 = 0.444
P(income = “medium” | buys_computer = “no”) = 2/5 = 0.4
P(student = “yes” | buys_computer = “yes) = 6/9 = 0.667
P(student = “yes” | buys_computer = “no”) = 1/5 = 0.2
P(credit_rating = “fair” | buys_computer = “yes”) = 6/9 = 0.667
P(credit_rating = “fair” | buys_computer = “no”) = 2/5 = 0.4
• X = (age <= 30 , income = medium, student = yes, credit_rating = fair)
P(X|Ci) : P(X|buys_computer = “yes”) = 0.222 x 0.444 x 0.667 x 0.667 = 0.044
P(X|buys_computer = “no”) = 0.6 x 0.4 x 0.2 x 0.4 = 0.019
P(X|Ci)*P(Ci) : P(X|buys_computer = “yes”) * P(buys_computer = “yes”) = 0.028
P(X|buys_computer = “no”) * P(buys_computer = “no”) = 0.007
Therefore, X belongs to class (“buys_computer = yes”)
Learning by genetic algorithm
Genetic algorithm is an evolutionary algorithm which is based
on the principle of natural selection and natural genetics.
Genetic algorithm plays an important role in search and
optimization problem.
The main purpose of genetic algorithm is to find the
individuals from the search space with the best genetic
materials.
The genetic algorithm process consists of following 4 steps:
1) Encoding (Representation)
2) Selection
3) Crossover &
4) Mutation
Learning by Neural Networks
Neural Network
 A neural network( also called artificial neural network) is a computing system made up of a
number of simple, highly interconnected processing elements, which process information by
their dynamic state response to external inputs.
 An artificial neural network is an information processing paradigm that is inspired by
biological nervous system.
 It is composed of large number of highly interconnected processing elements called
neurons.
 Each neuron in ANN receives a number of inputs.
 An activation function is applied to these inputs which results the output value of the neuron.
Learning by Neural Networks
Biological neural network vs Artificial neural network
 The term "Artificial Neural Network" is derived from Biological neural networks that
develop the structure of a human brain. Similar to the human brain that has neurons
interconnected to one another, artificial neural networks also have neurons that are
interconnected to one another in various layers of the networks. These neurons are known
as nodes.
 Dendrites from Biological Neural Network represent inputs in Artificial Neural Networks, cell
nucleus represents Nodes, synapse represents Weights, and Axon represents Output.
Learning by Neural Networks
Biological neural network vs Artificial neural network
 The Relationship between Biological neural network and artificial neural network is as
follows
Learning by Neural Networks
Mathematical Model of ANN
Mathematical Model of ANN
Mathematical Model of ANN
Types of ANN
 The different types of ANN are as follows
1) Feed Forward ANN
 Feed forward neural network is the simplest form of neural networks where input data
travels in one direction only, passing through artificial neural nodes and exiting through
output nodes.
 The feed forward neural network does not contain loop or cycle.
 In feed forward neural network, the hidden layers may or may not be present but the input
and output layers are present there.
 Based on this, they can be further classified as a single-layered or multi-layered feed-
forward neural network.
Types of ANN
Types of ANN
Note:
• Single Layer Perceptron – This is the simplest feed forward neural network which does
not contain any hidden layer.
• Multi Layer Perceptron – A Multi Layer Perceptron has one or more hidden layers.
Advantages of Feed forward Neural Network
• Less complex, easy to design & maintain
• Fast and speedy [One-way propagation]
• Highly responsive to noisy data
Dis-advantages of Feed forward Neural Network
 Cannot be used for deep learning [due to absence of dense layers and back propagation]
Types of ANN
2) Recurrent (Feed back)Neural Network
 Recurrent neural network is a type of neural network in which the output from the previous
steps are feed as input to the current step.
 The recurrent neural network contains loop or cycle.
 The main and most important feature of RNN is Hidden state, which remembers some
information about a sequence.
Types of ANN
Advantages of Recurrent Neural Networks
• Model sequential data where each sample can be assumed to be dependent on historical
ones is one of the advantage.
• Used with convolution layers to extend the pixel effectiveness.
Disadvantages of Recurrent Neural Networks
• Training recurrent neural nets could be a difficult task
• Difficult to process long sequential data using ReLU(rectified linear ) as an activation
function.
Advantages and Dis-advantages of Neural Network
Advantages:
• A neural network can perform tasks in parallel,which a linear program cannot perform.
• When an element of the neural network fails, it can continue without any problem by their
parallel nature.
• A neural network does not need to be reprogrammed as it learns itself.
• It can be implemented in an easy way without any problem.
• As adaptive, intelligent systems, neural networks are robust and excel at solving complex
problems. Neural networks are efficient in their programming and the scientists agree that
the advantages of using ANNs outweigh the risks.
• It can be implemented in any application.
Disadvantages:
• The neural network requires training to operate.
• Requires high processing time for large neural networks.
• The architecture of a neural network is different from the architecture and history of
microprocessors so they have to be emulated.
Applications of ANN
Brain modeling:
Aid our understanding of how the brain works, how behavior emerges from the interaction of
networks of neurons, what needs to “get fixed” in brain damaged patients .
Real world applications :
 Financial modeling – predicting the stock market
 Time series prediction – climate, weather, seizures
 Computer games – intelligent agents, chess, backgammon
 Robotics – autonomous adaptable robots
 Pattern recognition – speech recognition, seismic activity, sonar signals
 Data analysis – data compression, data mining
Learning by Training ANN
 Training a Neural Network means finding the appropriate Weights of the Neural
Connections.
 Once a network has been structured for a particular application, that network is ready to be
trained. To start this process the initial weights are chosen randomly. Then, the training, or
learning, begins.
 There are two approaches to training - supervised and unsupervised.
 Supervised training involves a mechanism of providing the network with the desired output
either by manually "grading" the network's performance or by providing the desired outputs
with the inputs.
 Unsupervised training is where the network has to make sense of the inputs without
outside help.
Supervised Training
In supervised training, both the inputs and the outputs are provided. The network then
processes the inputs and compares its resulting outputs against the desired outputs. Errors
are then propagated back through the system, causing the system to adjust the weights
which control the network. This process occurs over and over as the weights are
continually tweaked. The set of data which enables the training is called the "training set."
During the training of a network the same set of data is processed many times as the
connection weights are ever refined.
Learning by Training ANN
Unsupervised Training
The other type of training is called unsupervised training. In unsupervised training, the
network is provided with inputs but not with desired outputs. The system itself must then
decide what features it will use to group the input data. This is often referred to as self-
organization or adaption.
Learning by Training ANN
Learning by Training ANN
Learning by Training ANN
Learning by Training ANN
Perceptron Learning
 Learning a perceptron means finding the right values for Weight. The hypothesis space of
a perceptron is the space of all weight vectors.
 The perceptron learning algorithm can be stated as below.
1. Assign random values to the weight vector
2. Apply the weight update rule to every training example
3. Are all training examples correctly classified?
a. Yes. Quit
b. b. No. Go back to Step 2.
 There are two popular weight update rules.
i) The perceptron rule, and
ii) Delta rule
Perceptron Learning
Perceptron Learning
Perceptron Learning
Perceptron Learning
Perceptron Learning
Perceptron Learning
Perceptron Learning
For example of back propagation algorithm (see notes
provided in class)
Prepared By : Narayan Dhamala
54
END

More Related Content

What's hot

Analytical learning
Analytical learningAnalytical learning
Analytical learning
swapnac12
 
Feedforward neural network
Feedforward neural networkFeedforward neural network
Feedforward neural network
Sopheaktra YONG
 
ISSUES IN AD HOC WIRELESS NETWORKS
ISSUES IN  AD HOC WIRELESS  NETWORKS ISSUES IN  AD HOC WIRELESS  NETWORKS
ISSUES IN AD HOC WIRELESS NETWORKS
Dushhyant Kumar
 
Max net
Max netMax net
Geo-Cast Routing Protocol
Geo-Cast Routing ProtocolGeo-Cast Routing Protocol
Geo-Cast Routing Protocol
chirag bhatt
 
ADABoost classifier
ADABoost classifierADABoost classifier
ADABoost classifier
SreerajVA
 
Learning rule of first order rules
Learning rule of first order rulesLearning rule of first order rules
Learning rule of first order rules
swapnac12
 
Basics of Soft Computing
Basics of Soft  Computing Basics of Soft  Computing
Basics of Soft Computing
Sangeetha Rajesh
 
Multi verse optimization
Multi verse optimizationMulti verse optimization
Multi verse optimization
Anuja Joshi
 
Mac protocols of adhoc network
Mac protocols of adhoc networkMac protocols of adhoc network
Mac protocols of adhoc network
shashi712
 
Robotics and agents
Robotics and agentsRobotics and agents
Robotics and agents
ritahani
 
Brief Introduction to Boltzmann Machine
Brief Introduction to Boltzmann MachineBrief Introduction to Boltzmann Machine
Brief Introduction to Boltzmann Machine
Arunabha Saha
 
Genetic algorithms vs Traditional algorithms
Genetic algorithms vs Traditional algorithmsGenetic algorithms vs Traditional algorithms
Genetic algorithms vs Traditional algorithms
Dr. C.V. Suresh Babu
 
Probabilistic Reasoning
Probabilistic ReasoningProbabilistic Reasoning
Probabilistic Reasoning
Junya Tanaka
 
Artifical Neural Network and its applications
Artifical Neural Network and its applicationsArtifical Neural Network and its applications
Artifical Neural Network and its applications
Sangeeta Tiwari
 
Fuzzy expert system
Fuzzy expert systemFuzzy expert system
Fuzzy expert system
Hsuvas Borkakoty
 
Ada boost
Ada boostAda boost
3.5 model based clustering
3.5 model based clustering3.5 model based clustering
3.5 model based clustering
Krish_ver2
 
Fuzzy inference systems
Fuzzy inference systemsFuzzy inference systems
Counter propagation Network
Counter propagation NetworkCounter propagation Network
Counter propagation Network
Akshay Dhole
 

What's hot (20)

Analytical learning
Analytical learningAnalytical learning
Analytical learning
 
Feedforward neural network
Feedforward neural networkFeedforward neural network
Feedforward neural network
 
ISSUES IN AD HOC WIRELESS NETWORKS
ISSUES IN  AD HOC WIRELESS  NETWORKS ISSUES IN  AD HOC WIRELESS  NETWORKS
ISSUES IN AD HOC WIRELESS NETWORKS
 
Max net
Max netMax net
Max net
 
Geo-Cast Routing Protocol
Geo-Cast Routing ProtocolGeo-Cast Routing Protocol
Geo-Cast Routing Protocol
 
ADABoost classifier
ADABoost classifierADABoost classifier
ADABoost classifier
 
Learning rule of first order rules
Learning rule of first order rulesLearning rule of first order rules
Learning rule of first order rules
 
Basics of Soft Computing
Basics of Soft  Computing Basics of Soft  Computing
Basics of Soft Computing
 
Multi verse optimization
Multi verse optimizationMulti verse optimization
Multi verse optimization
 
Mac protocols of adhoc network
Mac protocols of adhoc networkMac protocols of adhoc network
Mac protocols of adhoc network
 
Robotics and agents
Robotics and agentsRobotics and agents
Robotics and agents
 
Brief Introduction to Boltzmann Machine
Brief Introduction to Boltzmann MachineBrief Introduction to Boltzmann Machine
Brief Introduction to Boltzmann Machine
 
Genetic algorithms vs Traditional algorithms
Genetic algorithms vs Traditional algorithmsGenetic algorithms vs Traditional algorithms
Genetic algorithms vs Traditional algorithms
 
Probabilistic Reasoning
Probabilistic ReasoningProbabilistic Reasoning
Probabilistic Reasoning
 
Artifical Neural Network and its applications
Artifical Neural Network and its applicationsArtifical Neural Network and its applications
Artifical Neural Network and its applications
 
Fuzzy expert system
Fuzzy expert systemFuzzy expert system
Fuzzy expert system
 
Ada boost
Ada boostAda boost
Ada boost
 
3.5 model based clustering
3.5 model based clustering3.5 model based clustering
3.5 model based clustering
 
Fuzzy inference systems
Fuzzy inference systemsFuzzy inference systems
Fuzzy inference systems
 
Counter propagation Network
Counter propagation NetworkCounter propagation Network
Counter propagation Network
 

Similar to AI Unit 5 machine learning

learning.ppt
learning.pptlearning.ppt
learning.ppt
BadWork
 
Intro to machine learning
Intro to machine learningIntro to machine learning
Intro to machine learning
Akshay Kanchan
 
LearningAG.ppt
LearningAG.pptLearningAG.ppt
LearningAG.ppt
butest
 
CSA 3702 machine learning module 1
CSA 3702 machine learning module 1CSA 3702 machine learning module 1
CSA 3702 machine learning module 1
Nandhini S
 
machine learning algorithm.pptx
machine learning algorithm.pptxmachine learning algorithm.pptx
machine learning algorithm.pptx
SasmitaDash28
 
Learning Methods in a Neural Network
Learning Methods in a Neural NetworkLearning Methods in a Neural Network
Learning Methods in a Neural Network
Saransh Choudhary
 
Lec 18-19.pptx
Lec 18-19.pptxLec 18-19.pptx
Lec 18-19.pptx
vijaita kashyap
 
AI_06_Machine Learning.pptx
AI_06_Machine Learning.pptxAI_06_Machine Learning.pptx
AI_06_Machine Learning.pptx
Yousef Aburawi
 
Cognitive Science Unit 4
Cognitive Science Unit 4Cognitive Science Unit 4
Cognitive Science Unit 4
CSITSansar
 
Learning in AI
Learning in AILearning in AI
Learning in AI
Minakshi Atre
 
nncollovcapaldo2013-131220052427-phpapp01.pdf
nncollovcapaldo2013-131220052427-phpapp01.pdfnncollovcapaldo2013-131220052427-phpapp01.pdf
nncollovcapaldo2013-131220052427-phpapp01.pdf
GayathriRHICETCSESTA
 
nncollovcapaldo2013-131220052427-phpapp01.pdf
nncollovcapaldo2013-131220052427-phpapp01.pdfnncollovcapaldo2013-131220052427-phpapp01.pdf
nncollovcapaldo2013-131220052427-phpapp01.pdf
GayathriRHICETCSESTA
 
Machine Learning an Exploratory Tool: Key Concepts
Machine Learning an Exploratory Tool: Key ConceptsMachine Learning an Exploratory Tool: Key Concepts
Machine Learning an Exploratory Tool: Key Concepts
achakracu
 
Artificial Intelligence Approaches
Artificial Intelligence  ApproachesArtificial Intelligence  Approaches
Artificial Intelligence Approaches
Jincy Nelson
 
Introduction to machine learning
Introduction to machine learningIntroduction to machine learning
Introduction to machine learning
Oluwasegun Matthew
 
Machine Learning - Deep Learning
Machine Learning - Deep LearningMachine Learning - Deep Learning
Machine Learning - Deep Learning
Oluwasegun Matthew
 
Chapter 6 - Learning data and analytics course
Chapter 6 - Learning data and analytics courseChapter 6 - Learning data and analytics course
Chapter 6 - Learning data and analytics course
gideymichael
 
EssentialsOfMachineLearning.pdf
EssentialsOfMachineLearning.pdfEssentialsOfMachineLearning.pdf
EssentialsOfMachineLearning.pdf
Ankita Tiwari
 
Artificial_Neural_Network.pdf
Artificial_Neural_Network.pdfArtificial_Neural_Network.pdf
Artificial_Neural_Network.pdf
ssuser136534
 
32_Nov07_MachineLear..
32_Nov07_MachineLear..32_Nov07_MachineLear..
32_Nov07_MachineLear..
butest
 

Similar to AI Unit 5 machine learning (20)

learning.ppt
learning.pptlearning.ppt
learning.ppt
 
Intro to machine learning
Intro to machine learningIntro to machine learning
Intro to machine learning
 
LearningAG.ppt
LearningAG.pptLearningAG.ppt
LearningAG.ppt
 
CSA 3702 machine learning module 1
CSA 3702 machine learning module 1CSA 3702 machine learning module 1
CSA 3702 machine learning module 1
 
machine learning algorithm.pptx
machine learning algorithm.pptxmachine learning algorithm.pptx
machine learning algorithm.pptx
 
Learning Methods in a Neural Network
Learning Methods in a Neural NetworkLearning Methods in a Neural Network
Learning Methods in a Neural Network
 
Lec 18-19.pptx
Lec 18-19.pptxLec 18-19.pptx
Lec 18-19.pptx
 
AI_06_Machine Learning.pptx
AI_06_Machine Learning.pptxAI_06_Machine Learning.pptx
AI_06_Machine Learning.pptx
 
Cognitive Science Unit 4
Cognitive Science Unit 4Cognitive Science Unit 4
Cognitive Science Unit 4
 
Learning in AI
Learning in AILearning in AI
Learning in AI
 
nncollovcapaldo2013-131220052427-phpapp01.pdf
nncollovcapaldo2013-131220052427-phpapp01.pdfnncollovcapaldo2013-131220052427-phpapp01.pdf
nncollovcapaldo2013-131220052427-phpapp01.pdf
 
nncollovcapaldo2013-131220052427-phpapp01.pdf
nncollovcapaldo2013-131220052427-phpapp01.pdfnncollovcapaldo2013-131220052427-phpapp01.pdf
nncollovcapaldo2013-131220052427-phpapp01.pdf
 
Machine Learning an Exploratory Tool: Key Concepts
Machine Learning an Exploratory Tool: Key ConceptsMachine Learning an Exploratory Tool: Key Concepts
Machine Learning an Exploratory Tool: Key Concepts
 
Artificial Intelligence Approaches
Artificial Intelligence  ApproachesArtificial Intelligence  Approaches
Artificial Intelligence Approaches
 
Introduction to machine learning
Introduction to machine learningIntroduction to machine learning
Introduction to machine learning
 
Machine Learning - Deep Learning
Machine Learning - Deep LearningMachine Learning - Deep Learning
Machine Learning - Deep Learning
 
Chapter 6 - Learning data and analytics course
Chapter 6 - Learning data and analytics courseChapter 6 - Learning data and analytics course
Chapter 6 - Learning data and analytics course
 
EssentialsOfMachineLearning.pdf
EssentialsOfMachineLearning.pdfEssentialsOfMachineLearning.pdf
EssentialsOfMachineLearning.pdf
 
Artificial_Neural_Network.pdf
Artificial_Neural_Network.pdfArtificial_Neural_Network.pdf
Artificial_Neural_Network.pdf
 
32_Nov07_MachineLear..
32_Nov07_MachineLear..32_Nov07_MachineLear..
32_Nov07_MachineLear..
 

Recently uploaded

Applications of artificial Intelligence in Mechanical Engineering.pdf
Applications of artificial Intelligence in Mechanical Engineering.pdfApplications of artificial Intelligence in Mechanical Engineering.pdf
Applications of artificial Intelligence in Mechanical Engineering.pdf
Atif Razi
 
Asymmetrical Repulsion Magnet Motor Ratio 6-7.pdf
Asymmetrical Repulsion Magnet Motor Ratio 6-7.pdfAsymmetrical Repulsion Magnet Motor Ratio 6-7.pdf
Asymmetrical Repulsion Magnet Motor Ratio 6-7.pdf
felixwold
 
Assistant Engineer (Chemical) Interview Questions.pdf
Assistant Engineer (Chemical) Interview Questions.pdfAssistant Engineer (Chemical) Interview Questions.pdf
Assistant Engineer (Chemical) Interview Questions.pdf
Seetal Daas
 
DEEP LEARNING FOR SMART GRID INTRUSION DETECTION: A HYBRID CNN-LSTM-BASED MODEL
DEEP LEARNING FOR SMART GRID INTRUSION DETECTION: A HYBRID CNN-LSTM-BASED MODELDEEP LEARNING FOR SMART GRID INTRUSION DETECTION: A HYBRID CNN-LSTM-BASED MODEL
DEEP LEARNING FOR SMART GRID INTRUSION DETECTION: A HYBRID CNN-LSTM-BASED MODEL
ijaia
 
1FIDIC-CONSTRUCTION-CONTRACT-2ND-ED-2017-RED-BOOK.pdf
1FIDIC-CONSTRUCTION-CONTRACT-2ND-ED-2017-RED-BOOK.pdf1FIDIC-CONSTRUCTION-CONTRACT-2ND-ED-2017-RED-BOOK.pdf
1FIDIC-CONSTRUCTION-CONTRACT-2ND-ED-2017-RED-BOOK.pdf
MadhavJungKarki
 
Bituminous road construction project based learning report
Bituminous road construction project based learning reportBituminous road construction project based learning report
Bituminous road construction project based learning report
CE19KaushlendraKumar
 
Introduction to Computer Networks & OSI MODEL.ppt
Introduction to Computer Networks & OSI MODEL.pptIntroduction to Computer Networks & OSI MODEL.ppt
Introduction to Computer Networks & OSI MODEL.ppt
Dwarkadas J Sanghvi College of Engineering
 
Levelised Cost of Hydrogen (LCOH) Calculator Manual
Levelised Cost of Hydrogen  (LCOH) Calculator ManualLevelised Cost of Hydrogen  (LCOH) Calculator Manual
Levelised Cost of Hydrogen (LCOH) Calculator Manual
Massimo Talia
 
Impartiality as per ISO /IEC 17025:2017 Standard
Impartiality as per ISO /IEC 17025:2017 StandardImpartiality as per ISO /IEC 17025:2017 Standard
Impartiality as per ISO /IEC 17025:2017 Standard
MuhammadJazib15
 
Digital Twins Computer Networking Paper Presentation.pptx
Digital Twins Computer Networking Paper Presentation.pptxDigital Twins Computer Networking Paper Presentation.pptx
Digital Twins Computer Networking Paper Presentation.pptx
aryanpankaj78
 
原版制作(Humboldt毕业证书)柏林大学毕业证学位证一模一样
原版制作(Humboldt毕业证书)柏林大学毕业证学位证一模一样原版制作(Humboldt毕业证书)柏林大学毕业证学位证一模一样
原版制作(Humboldt毕业证书)柏林大学毕业证学位证一模一样
ydzowc
 
Tools & Techniques for Commissioning and Maintaining PV Systems W-Animations ...
Tools & Techniques for Commissioning and Maintaining PV Systems W-Animations ...Tools & Techniques for Commissioning and Maintaining PV Systems W-Animations ...
Tools & Techniques for Commissioning and Maintaining PV Systems W-Animations ...
Transcat
 
An Introduction to the Compiler Designss
An Introduction to the Compiler DesignssAn Introduction to the Compiler Designss
An Introduction to the Compiler Designss
ElakkiaU
 
Mechanical Engineering on AAI Summer Training Report-003.pdf
Mechanical Engineering on AAI Summer Training Report-003.pdfMechanical Engineering on AAI Summer Training Report-003.pdf
Mechanical Engineering on AAI Summer Training Report-003.pdf
21UME003TUSHARDEB
 
一比一原版(爱大毕业证书)爱荷华大学毕业证如何办理
一比一原版(爱大毕业证书)爱荷华大学毕业证如何办理一比一原版(爱大毕业证书)爱荷华大学毕业证如何办理
一比一原版(爱大毕业证书)爱荷华大学毕业证如何办理
nedcocy
 
Zener Diode and its V-I Characteristics and Applications
Zener Diode and its V-I Characteristics and ApplicationsZener Diode and its V-I Characteristics and Applications
Zener Diode and its V-I Characteristics and Applications
Shiny Christobel
 
Call For Paper -3rd International Conference on Artificial Intelligence Advan...
Call For Paper -3rd International Conference on Artificial Intelligence Advan...Call For Paper -3rd International Conference on Artificial Intelligence Advan...
Call For Paper -3rd International Conference on Artificial Intelligence Advan...
ijseajournal
 
Open Channel Flow: fluid flow with a free surface
Open Channel Flow: fluid flow with a free surfaceOpen Channel Flow: fluid flow with a free surface
Open Channel Flow: fluid flow with a free surface
Indrajeet sahu
 
AI + Data Community Tour - Build the Next Generation of Apps with the Einstei...
AI + Data Community Tour - Build the Next Generation of Apps with the Einstei...AI + Data Community Tour - Build the Next Generation of Apps with the Einstei...
AI + Data Community Tour - Build the Next Generation of Apps with the Einstei...
Paris Salesforce Developer Group
 
SENTIMENT ANALYSIS ON PPT AND Project template_.pptx
SENTIMENT ANALYSIS ON PPT AND Project template_.pptxSENTIMENT ANALYSIS ON PPT AND Project template_.pptx
SENTIMENT ANALYSIS ON PPT AND Project template_.pptx
b0754201
 

Recently uploaded (20)

Applications of artificial Intelligence in Mechanical Engineering.pdf
Applications of artificial Intelligence in Mechanical Engineering.pdfApplications of artificial Intelligence in Mechanical Engineering.pdf
Applications of artificial Intelligence in Mechanical Engineering.pdf
 
Asymmetrical Repulsion Magnet Motor Ratio 6-7.pdf
Asymmetrical Repulsion Magnet Motor Ratio 6-7.pdfAsymmetrical Repulsion Magnet Motor Ratio 6-7.pdf
Asymmetrical Repulsion Magnet Motor Ratio 6-7.pdf
 
Assistant Engineer (Chemical) Interview Questions.pdf
Assistant Engineer (Chemical) Interview Questions.pdfAssistant Engineer (Chemical) Interview Questions.pdf
Assistant Engineer (Chemical) Interview Questions.pdf
 
DEEP LEARNING FOR SMART GRID INTRUSION DETECTION: A HYBRID CNN-LSTM-BASED MODEL
DEEP LEARNING FOR SMART GRID INTRUSION DETECTION: A HYBRID CNN-LSTM-BASED MODELDEEP LEARNING FOR SMART GRID INTRUSION DETECTION: A HYBRID CNN-LSTM-BASED MODEL
DEEP LEARNING FOR SMART GRID INTRUSION DETECTION: A HYBRID CNN-LSTM-BASED MODEL
 
1FIDIC-CONSTRUCTION-CONTRACT-2ND-ED-2017-RED-BOOK.pdf
1FIDIC-CONSTRUCTION-CONTRACT-2ND-ED-2017-RED-BOOK.pdf1FIDIC-CONSTRUCTION-CONTRACT-2ND-ED-2017-RED-BOOK.pdf
1FIDIC-CONSTRUCTION-CONTRACT-2ND-ED-2017-RED-BOOK.pdf
 
Bituminous road construction project based learning report
Bituminous road construction project based learning reportBituminous road construction project based learning report
Bituminous road construction project based learning report
 
Introduction to Computer Networks & OSI MODEL.ppt
Introduction to Computer Networks & OSI MODEL.pptIntroduction to Computer Networks & OSI MODEL.ppt
Introduction to Computer Networks & OSI MODEL.ppt
 
Levelised Cost of Hydrogen (LCOH) Calculator Manual
Levelised Cost of Hydrogen  (LCOH) Calculator ManualLevelised Cost of Hydrogen  (LCOH) Calculator Manual
Levelised Cost of Hydrogen (LCOH) Calculator Manual
 
Impartiality as per ISO /IEC 17025:2017 Standard
Impartiality as per ISO /IEC 17025:2017 StandardImpartiality as per ISO /IEC 17025:2017 Standard
Impartiality as per ISO /IEC 17025:2017 Standard
 
Digital Twins Computer Networking Paper Presentation.pptx
Digital Twins Computer Networking Paper Presentation.pptxDigital Twins Computer Networking Paper Presentation.pptx
Digital Twins Computer Networking Paper Presentation.pptx
 
原版制作(Humboldt毕业证书)柏林大学毕业证学位证一模一样
原版制作(Humboldt毕业证书)柏林大学毕业证学位证一模一样原版制作(Humboldt毕业证书)柏林大学毕业证学位证一模一样
原版制作(Humboldt毕业证书)柏林大学毕业证学位证一模一样
 
Tools & Techniques for Commissioning and Maintaining PV Systems W-Animations ...
Tools & Techniques for Commissioning and Maintaining PV Systems W-Animations ...Tools & Techniques for Commissioning and Maintaining PV Systems W-Animations ...
Tools & Techniques for Commissioning and Maintaining PV Systems W-Animations ...
 
An Introduction to the Compiler Designss
An Introduction to the Compiler DesignssAn Introduction to the Compiler Designss
An Introduction to the Compiler Designss
 
Mechanical Engineering on AAI Summer Training Report-003.pdf
Mechanical Engineering on AAI Summer Training Report-003.pdfMechanical Engineering on AAI Summer Training Report-003.pdf
Mechanical Engineering on AAI Summer Training Report-003.pdf
 
一比一原版(爱大毕业证书)爱荷华大学毕业证如何办理
一比一原版(爱大毕业证书)爱荷华大学毕业证如何办理一比一原版(爱大毕业证书)爱荷华大学毕业证如何办理
一比一原版(爱大毕业证书)爱荷华大学毕业证如何办理
 
Zener Diode and its V-I Characteristics and Applications
Zener Diode and its V-I Characteristics and ApplicationsZener Diode and its V-I Characteristics and Applications
Zener Diode and its V-I Characteristics and Applications
 
Call For Paper -3rd International Conference on Artificial Intelligence Advan...
Call For Paper -3rd International Conference on Artificial Intelligence Advan...Call For Paper -3rd International Conference on Artificial Intelligence Advan...
Call For Paper -3rd International Conference on Artificial Intelligence Advan...
 
Open Channel Flow: fluid flow with a free surface
Open Channel Flow: fluid flow with a free surfaceOpen Channel Flow: fluid flow with a free surface
Open Channel Flow: fluid flow with a free surface
 
AI + Data Community Tour - Build the Next Generation of Apps with the Einstei...
AI + Data Community Tour - Build the Next Generation of Apps with the Einstei...AI + Data Community Tour - Build the Next Generation of Apps with the Einstei...
AI + Data Community Tour - Build the Next Generation of Apps with the Einstei...
 
SENTIMENT ANALYSIS ON PPT AND Project template_.pptx
SENTIMENT ANALYSIS ON PPT AND Project template_.pptxSENTIMENT ANALYSIS ON PPT AND Project template_.pptx
SENTIMENT ANALYSIS ON PPT AND Project template_.pptx
 

AI Unit 5 machine learning

  • 1. Artificial Intelligence (CSIT 4th Sem) Unit:5 Machine Learning Prepared By : Narayan Dhamala 1
  • 2. Introduction to Machine Learning Prepared By : Narayan Dhamala  Machine learning is the study of computer system that learn from data and experience.  Machine learning is subfield of artificial intelligence which gives the computer ability to learn without being explicitly programmed.  The goal of machine learning is to build computer system that can adapt and learn from their experience.  A computer program is said to be learn if it‟s performance P improves over a task T with an experience E. 2
  • 3. Concept of Learning Prepared By : Narayan Dhamala  Learning is a way of updating the knowledge.  Learning is making useful changes in our mind.  Learning is constructing or modifying representations of what is being experienced.  Learning denotes changes in the system that are adaptive in the sense that they enable the system to do the same task (or tasks drawn from the same population) more effectively the next time. 3
  • 4. Types of Learning Prepared By : Narayan Dhamala The strategies for learning can be classified according to the amount of inference the system has to perform on its training data. In increasing order we have 1. Rote learning – the new knowledge is implanted directly with no inference at all, e.g. simple memorization of past events, or a knowledge engineer‟s direct programming of rules elicited from a human expert into an expert system. 2. Supervised learning – the system is supplied with a set of training examples consisting of inputs and corresponding outputs, and is required to discover the relation or mapping between then, e.g. as a series of rules, or a neural network. 3. Unsupervised learning – the system is supplied with a set of training examples consisting only of inputs and is required to discover for itself what appropriate outputs should be, e.g. a Kohonen Network or Self Organizing Map. 4. Reinforcement learning- Is concerned with how intelligent agents ought to act in an environment to maximize some notion of reward from sequence of actions. 4
  • 5. Prepared By : Narayan Dhamala 5
  • 6. Prepared By : Narayan Dhamala 6
  • 7. Learning Framework Prepared By : Narayan Dhamala 7 • There are four major components in a learning system: Environment Learning Element Performance Element Knowledge Base
  • 8. Learning Framework: The Environment Prepared By : Narayan Dhamala • The environment refers the nature and quality of information given to the learning element • The nature of information depends on its level (the degree of generality wrt the performance element) – high level information is abstract, it deals with a broad class of problems – low level information is detailed, it deals with a single problem. • The quality of information involves – noise free – reliable – ordered 8
  • 9. Learning Framework: Learning Elements Prepared By : Narayan Dhamala • Four learning situations – Rote Learning • environment provides information at the required level – Learning by being told • information is too abstract, the learning element must hypothesize missing data – Learning by example • information is too specific, the learning element must hypothesize more general rules – Learning by analogy • information provided is relevant only to an analogous task, the learning element must discover the analogy 9
  • 10. Learning Framework: Learning Elements Prepared By : Narayan Dhamala • Four learning situations – Rote Learning • environment provides information at the required level – Learning by being told • information is too abstract, the learning element must hypothesize missing data – Learning by example • information is too specific, the learning element must hypothesize more general rules – Learning by analogy • information provided is relevant only to an analogous task, the learning element must discover the analogy 10
  • 11. Learning Framework: The Knowledge Base Prepared By : Narayan Dhamala • Expressive – the representation contains the relevant knowledge in an easy to get to fashion • Modifiable – it must be easy to change the data in the knowledge base • Extendibility – the knowledge base must contain meta-knowledge (knowledge on how the data base is structured) so the system can change its structure 11
  • 12. Learning Framework: The Performance Element Prepared By : Narayan Dhamala • Complexity – for learning, the simplest task is classification based on a single rule while the most complex task requires the application of multiple rules in sequence • Feedback – the performance element must send information to the learning system to be used to evaluate the overall performance • Transparency – the learning element should have access to all the internal actions of the performance element 12
  • 13. Statistical Based Learning: Naïve Bayes Model Prepared By : Narayan Dhamala • Statistical Learning is a set of tools for understanding data. These tools broadly come under two classes: supervised learning & unsupervised learning. • Generally, supervised learning refers to predicting or estimating an output based on one or more inputs. • Unsupervised learning, on the other hand, provides a relationship or finds a pattern within the given data without a supervised output. 13
  • 14. BAYESIAN METHODS • Learning and classification (Supervised learning) method based on probability theory. • Baye‟s theorem plays a critical role in probabilistic learning and classification. • Uses prior probability of each category given no information about an item. • Categorization produces a posterior probability distribution over the possible categories given a description of an item. P(A|B) =
  • 15. BAYESIAN METHODS... D = AFTER TRAINING Size<small, medium, large> Color<red, blue, green> Shape<circle, triangle, square> Category<positive, negative>
  • 17. Naïve Bayesian Classifier: Training Dataset Class: C1:buys_computer = „yes‟ C2:buys_computer = „no‟ Data sample X = (age <=30, Income = medium, Student = yes Credit_rating = Fair)
  • 18. Naïve Bayesian Classifier: An Example • P(Ci): P(buys_computer = “yes”) = 9/14 = 0.643 P(buys_computer = “no”) = 5/14= 0.357 • Compute P(X|Ci) for each class P(age = “<=30” | buys_computer = “yes”) = 2/9 = 0.222 P(age = “<= 30” | buys_computer = “no”) = 3/5 = 0.6 P(income = “medium” | buys_computer = “yes”) = 4/9 = 0.444 P(income = “medium” | buys_computer = “no”) = 2/5 = 0.4 P(student = “yes” | buys_computer = “yes) = 6/9 = 0.667 P(student = “yes” | buys_computer = “no”) = 1/5 = 0.2 P(credit_rating = “fair” | buys_computer = “yes”) = 6/9 = 0.667 P(credit_rating = “fair” | buys_computer = “no”) = 2/5 = 0.4 • X = (age <= 30 , income = medium, student = yes, credit_rating = fair) P(X|Ci) : P(X|buys_computer = “yes”) = 0.222 x 0.444 x 0.667 x 0.667 = 0.044 P(X|buys_computer = “no”) = 0.6 x 0.4 x 0.2 x 0.4 = 0.019 P(X|Ci)*P(Ci) : P(X|buys_computer = “yes”) * P(buys_computer = “yes”) = 0.028 P(X|buys_computer = “no”) * P(buys_computer = “no”) = 0.007 Therefore, X belongs to class (“buys_computer = yes”)
  • 19. Learning by genetic algorithm Genetic algorithm is an evolutionary algorithm which is based on the principle of natural selection and natural genetics. Genetic algorithm plays an important role in search and optimization problem. The main purpose of genetic algorithm is to find the individuals from the search space with the best genetic materials. The genetic algorithm process consists of following 4 steps: 1) Encoding (Representation) 2) Selection 3) Crossover & 4) Mutation
  • 20.
  • 21.
  • 22.
  • 23.
  • 24.
  • 25.
  • 26. Learning by Neural Networks Neural Network  A neural network( also called artificial neural network) is a computing system made up of a number of simple, highly interconnected processing elements, which process information by their dynamic state response to external inputs.  An artificial neural network is an information processing paradigm that is inspired by biological nervous system.  It is composed of large number of highly interconnected processing elements called neurons.  Each neuron in ANN receives a number of inputs.  An activation function is applied to these inputs which results the output value of the neuron.
  • 27. Learning by Neural Networks Biological neural network vs Artificial neural network  The term "Artificial Neural Network" is derived from Biological neural networks that develop the structure of a human brain. Similar to the human brain that has neurons interconnected to one another, artificial neural networks also have neurons that are interconnected to one another in various layers of the networks. These neurons are known as nodes.  Dendrites from Biological Neural Network represent inputs in Artificial Neural Networks, cell nucleus represents Nodes, synapse represents Weights, and Axon represents Output.
  • 28. Learning by Neural Networks Biological neural network vs Artificial neural network  The Relationship between Biological neural network and artificial neural network is as follows
  • 29. Learning by Neural Networks
  • 33. Types of ANN  The different types of ANN are as follows 1) Feed Forward ANN  Feed forward neural network is the simplest form of neural networks where input data travels in one direction only, passing through artificial neural nodes and exiting through output nodes.  The feed forward neural network does not contain loop or cycle.  In feed forward neural network, the hidden layers may or may not be present but the input and output layers are present there.  Based on this, they can be further classified as a single-layered or multi-layered feed- forward neural network.
  • 35. Types of ANN Note: • Single Layer Perceptron – This is the simplest feed forward neural network which does not contain any hidden layer. • Multi Layer Perceptron – A Multi Layer Perceptron has one or more hidden layers. Advantages of Feed forward Neural Network • Less complex, easy to design & maintain • Fast and speedy [One-way propagation] • Highly responsive to noisy data Dis-advantages of Feed forward Neural Network  Cannot be used for deep learning [due to absence of dense layers and back propagation]
  • 36. Types of ANN 2) Recurrent (Feed back)Neural Network  Recurrent neural network is a type of neural network in which the output from the previous steps are feed as input to the current step.  The recurrent neural network contains loop or cycle.  The main and most important feature of RNN is Hidden state, which remembers some information about a sequence.
  • 37. Types of ANN Advantages of Recurrent Neural Networks • Model sequential data where each sample can be assumed to be dependent on historical ones is one of the advantage. • Used with convolution layers to extend the pixel effectiveness. Disadvantages of Recurrent Neural Networks • Training recurrent neural nets could be a difficult task • Difficult to process long sequential data using ReLU(rectified linear ) as an activation function.
  • 38. Advantages and Dis-advantages of Neural Network Advantages: • A neural network can perform tasks in parallel,which a linear program cannot perform. • When an element of the neural network fails, it can continue without any problem by their parallel nature. • A neural network does not need to be reprogrammed as it learns itself. • It can be implemented in an easy way without any problem. • As adaptive, intelligent systems, neural networks are robust and excel at solving complex problems. Neural networks are efficient in their programming and the scientists agree that the advantages of using ANNs outweigh the risks. • It can be implemented in any application. Disadvantages: • The neural network requires training to operate. • Requires high processing time for large neural networks. • The architecture of a neural network is different from the architecture and history of microprocessors so they have to be emulated.
  • 39. Applications of ANN Brain modeling: Aid our understanding of how the brain works, how behavior emerges from the interaction of networks of neurons, what needs to “get fixed” in brain damaged patients . Real world applications :  Financial modeling – predicting the stock market  Time series prediction – climate, weather, seizures  Computer games – intelligent agents, chess, backgammon  Robotics – autonomous adaptable robots  Pattern recognition – speech recognition, seismic activity, sonar signals  Data analysis – data compression, data mining
  • 40. Learning by Training ANN  Training a Neural Network means finding the appropriate Weights of the Neural Connections.  Once a network has been structured for a particular application, that network is ready to be trained. To start this process the initial weights are chosen randomly. Then, the training, or learning, begins.  There are two approaches to training - supervised and unsupervised.  Supervised training involves a mechanism of providing the network with the desired output either by manually "grading" the network's performance or by providing the desired outputs with the inputs.  Unsupervised training is where the network has to make sense of the inputs without outside help. Supervised Training In supervised training, both the inputs and the outputs are provided. The network then processes the inputs and compares its resulting outputs against the desired outputs. Errors are then propagated back through the system, causing the system to adjust the weights which control the network. This process occurs over and over as the weights are continually tweaked. The set of data which enables the training is called the "training set." During the training of a network the same set of data is processed many times as the connection weights are ever refined.
  • 41. Learning by Training ANN Unsupervised Training The other type of training is called unsupervised training. In unsupervised training, the network is provided with inputs but not with desired outputs. The system itself must then decide what features it will use to group the input data. This is often referred to as self- organization or adaption.
  • 46. Perceptron Learning  Learning a perceptron means finding the right values for Weight. The hypothesis space of a perceptron is the space of all weight vectors.  The perceptron learning algorithm can be stated as below. 1. Assign random values to the weight vector 2. Apply the weight update rule to every training example 3. Are all training examples correctly classified? a. Yes. Quit b. b. No. Go back to Step 2.  There are two popular weight update rules. i) The perceptron rule, and ii) Delta rule
  • 54. For example of back propagation algorithm (see notes provided in class) Prepared By : Narayan Dhamala 54 END