Unit 5 PR
Unit 5 PR
Unit 5 PR
Neural Pattern
Recognition
Syllabus
• Introduction to Neural Networks: Neurons and Neural Nets, Neural
Network Structures for PR Applications, Physical Neural Networks,
The Artificial Neural Network Model.
• Introduction to Neural Pattern Associators and Matrix Approaches:
Neural Network Based Pattern Associators, Matrix Approaches (Linear
Associative Mappings) and Examples .
Introduction to Neural Networks
• Neural network is the fusion of artificial intelligence and brain-
inspired design that reshapes modern computing.
• With intricate layers of interconnected artificial neurons, these
networks emulate the workings of the human brain, enabling
remarkable feats in machine learning.
• .There are different types of neural networks, from feedforward to
recurrent and convolutional, each tailored for specific tasks.
• This unit covers its real-world applications across industries like
image recognition, natural language processing, and more.
What are Neural Networks?
• Neural networks mimic the basic functioning of the human brain and
are inspired by how the human brain interprets information.
• They solve various real-time tasks because of its ability to perform
computations quickly and its fast responses.
• Artificial Neural Network has a huge number of interconnected processing
elements, known as Nodes.
• These nodes are connected with other nodes using a connection link.
• The connection link contains weights, these weights contain the information
about the input signal. Each iteration and input in turn leads to updation of
these weights.
• After inputting all the data instances from the training data set, the final
weights of the Neural Network along with its architecture is known as the
Trained Neural Network. This process is called Training of Neural Networks.
• These trained neural networks solve specific problems as defined in the
problem statement.
• Types of tasks that can be solved using an artificial neural network include
Classification problems, Pattern Matching, Data Clustering, etc.
What is Neuron?
• An artificial neuron is a connection point in an artificial neural network.
• Artificial neural networks, like the human body's biological neural
network, have a layered architecture and each network node
(connection point) has the capability to process input and forward
output to other nodes in the network.
• In both artificial and biological architectures, the nodes are called
neurons and the connections are characterized by synaptic weights,
which represent the significance of the connection.
• As new data is received and processed, the synaptic weights change and
this is how learning occurs.
What is Neural Nets?
• A neural network is a method in artificial intelligence that teaches
computers to process data in a way that is inspired by the human
brain.
• It is a type of machine learning process, called deep learning, that
uses interconnected nodes or neurons in a layered structure that
resembles the human brain.
Importance of Neural Networks
• Input: The input should be an initial state from which the model will
start
• Output: There are many possible outputs as there are a variety of
solutions to a particular problem
• Training: The training is based upon the input, The model will return a
state and the user will decide to reward or punish the model based on
its output.
• The model keeps continues to learn.
• The best solution is decided based on the maximum reward.
What is Artificial Neural Network?
The given figure illustrates the typical diagram of Biological Neural Network.
• The typical Artificial Neural Network looks something like the given
figure.
:
Dendrites Inputs
Synapse Weights
Axon Output
The architecture of an artificial neural network:
• Input Layer:As the name suggests, it accepts inputs in several different formats
provided by the programmer.
• Hidden Layer:The hidden layer presents in-between input and output layers. It
performs all the calculations to find hidden features and patterns.
• Output Layer: The input goes through a series of transformations using the hidden
layer, which finally results in output that is conveyed using this layer. The artificial
neural network takes input and computes the weighted sum of the inputs and
includes a bias. This computation is represented in the form of a transfer function.
• If the t’s are different from the s’s, the net is hetero-associative.
• Example 1: Mapping from 4-inputs to 2-outputs. Whenever the net
is shown a 4-bit input pattern, it produces a 2-bit output pattern
• Input Output
1000 10
1100 10
0001 01
0011 01
• Example 2: Input similar to a training input
• The net has been trained on the mapping:
Input Output
1000 10
1100 10
0001 01
0011 01
We can train the net to learn the mapping from the larger patterns to the smaller patterns, pairwise
Now, if the input is noisy in some places, the net still produces the
same map. Here up to 1/3rd of the input bits are erroneous
Example of Auto-association
• Example 1: We can train a 4 input, 4 output network to store just one vector
• s = (1 1 1 -1)
• It will remember this vector s, i.e., if we give s as input it will produce s as output.
• In addition, if there are some errors in the input, it will be able to map it to s as
well.
• For example, it does the following maps:
• (-1 1 1 -1 ) à (1 1 1 -1)
• (1 -1 1 -1 ) à (1 1 1 -1)
• (1 1 -1 -1 ) à (1 1 1 -1)
Auto Associative Memory
• This is a single layer neural network in which the input training vector and the
output target vectors are the same. The weights are determined so that the
network stores a set of patterns.
Training Algorithm
For training, this network is using the Hebb or Delta learning rule.