Ann Cae-3
Ann Cae-3
Ann Cae-3
à Single-layer Perceptron
Single Layer Perceptron has just two layers of input and
output. It only has single layer hence the name single layer
perceptron. It does not contain Hidden Layers as that of
Multilayer perceptron.
A multi-layer perceptron has one input layer and for each input, there is one
neuron(or node), it has one output layer with a single node for each output
and it can have any number of hidden layers and each hidden layer can have
any number of nodes. A schematic diagram of a Multi-Layer Perceptron
(MLP) is depicted below.
In the multi-layer perceptron diagram above, we can see that there are three
inputs and thus three input nodes and the hidden layer has three nodes. The
output layer gives two outputs, therefore there are two output nodes. The
nodes in the input layer take input and forward it for further process, in the
diagram above the nodes in the input layer forwards their output to each of
the three nodes in the hidden layer, and in the same way, the hidden layer
processes the information and passes it to the output layer.
Every node in the multi-layer perception uses a sigmoid activation function.
The sigmoid activation function takes real values as input and converts them
to numbers between 0 and 1 using the sigmoid formula.
In some applications of data mining, the accuracy of a prediction is the only thing
that really matters. It may not be important to know how the model works. In
others, the ability to explain the reason for a decision can be crucial. For example, a
Marketing professional would need complete descriptions of customer segments in
order to launch a successful marketing campaign. The Decision Tree algorithm is
ideal for this type of application.
Rules provide model transparency, a window on the inner workings of the model.
Rules show the basis for the model's predictions. Oracle Data Mining supports a high
level of model transparency. While some algorithms provide rules, all algorithms
provide model details. You can examine model details to determine how the
algorithm handles the attributes internally, including transformations and reverse
transformations.
à What is a feature?
When you see a mango image, how can you identify it as a mango?
By analysing the colour, shape, and texture you can say that it is a mango.
The clues which are used to identify or recognize an image are called
features of an image. In the same way, computer functions, to detect
various features in an image.
Note: The images we give into these algorithms should be in black and
white. This helps the algorithms to focus on the features more.
Image in use:
Method 1: Harris corner detection
Harris corner detection is a method in which we can detect the corners of the
image by sliding a slider box all over the image by finding the corners and it
will apply a threshold and the corners will be marked in the image. This
algorithm is mainly used to detect the corners of the image.
Syntax:
cv2.cornerHarris(image, dest, blockSize, kSize, freeParameter, borderType)
Parameters:
• Image – The source image to detect the features
• Dest – Variable to store the output image
• Block size – Neighborhood size
• Ksize – Aperture parameter
• Border type: The pixel revealing type.
Backpropagation Algorithm:
⎡ ∂E ⎤ ⎢∂w⎥
d
∇E(w) = E(w) = ⎢ 1 ⎥ ⎢ ∂E ⎥
dw
⎢ ∂w ⎥ ⎣2⎦
⎢ 2 ⎥ 1 2
d ∂w ∂w∂w H = ∇∇E(w) =
2
2
E(w) = ⎢ 1 ⎥ ⎢∂2E∂2E⎥
dw
In machine learning
, there is always the need to test the stability of the model. It means based only on the training
dataset; we can't fit our model on the training dataset. For this purpose, we reserve a
particular sample of the dataset, which was not part of the training dataset. After that, we test
our model on that sample before deployment, and this complete process comes under cross-
validation. This is something different from the general train-test split.
Network Pruning
Applications
• Image processing, segmentation, and analysis
• Speech Recognition
All of us have heard the names Siri, Alexa, and Cortona. These are all the
applications of speech recognition. Pattern recognition plays a huge part in this
technique.
• Fingerprint Identification
Many recognition approaches are there to perform Fingerprint Identification.
But pattern recognition system is the most used approach.
• Medical Diagnosis
Algorithms of pattern recognition deal with real data. It has been found that
pattern recognition has a huge role in today’s medical diagnosis. From breast
cancer detection to covid-19 checking algorithms are giving results with more
than 90% accuracy.
From the block diagram, we can say that an associative memory consists of a memory
array and logic for 'm' words with 'n' bits per word.
The functional registers like the argument register A and key register K each
have n bits, one for each bit of a word. The match register M consists of m bits, one
for each memory word.
The words which are kept in the memory are compared in parallel with the content of
the argument register.
The key register (K) provides a mask for choosing a particular field or key in the
argument word. If the key register contains a binary value of all 1's, then the entire
argument is compared with each memory word. Otherwise, only those bits in the
argument that have 1's in their corresponding position of the key register are
compared. Thus, the key provides a mask for identifying a piece of information which
specifies how the reference to memory is made.
Let’s say that an input data of size ( m, n ) where m is the number of training
examples and n is the number of features in each example and a label vector
of size ( m, 1 ). First, it initializes the weights of size ( n, c ) from the first c
number of training samples with different labels and should be discarded
from all training samples. Here, c is the number of classes. Then iterate over
the remaining input data, for each training example, it updates the winning
vector ( weight vector with the shortest distance ( e.g Euclidean distance )
from the training example ).
The weight updation rule is given by:
if correctly_classified:
wij(new) = wij(old) + alpha(t) * (xik - wij(old))
else:
wij(new) = wij(old) - alpha(t) * (xik - wij(old))
where alpha is a learning rate at time t, j denotes the winning vector, i
denotes the ithfeature of training example and k denotes the kth training
example from the input data. After training the LVQ network, trained weights
are used for classifying new examples. A new example is labelled with the
class of the winning vector.
Algorithm
- The ability to create arbitrary decision regions means that they have
the potential to be applied to fault detection problems. Exploiting this
property, a possible use of ANNs is as control managers, deciding
which control algorithm to employ based on current operational
conditions.
1. In the workplace
Examples of office tasks digital assistants are, or will be, able to perform:7
• Search for reports or documents on your computer
• Create a graph or tables using data
• Dictate the information you want to be incorporated into a document
• Print documents on request
• Start video conferences
• Schedule meetings
• Record minutes
• Make travel arrangements
2. In banking
The aim of the banking and financial industry is for speech recognition to reduce
friction for the customer.8 Voice-activated banking could largely reduce the need for
human customer service, and lower employee costs. A personalised banking
assistant could in return boost customer satisfaction and loyalty.9
3. In marketing
Voice-search has the potential to add a new dimension to the way marketers reach
their consumers. With the change in how people are going to be interacting with their
devices, marketers should look for developing trends in user data and behaviour.11
• Data – With speech recognition, there will be a new type of data available for
marketers to analyse. People’s accents, speech patterns, and vocabulary can
be used to interpret a consumers location, age, and other information
regarding their demographics, such as their cultural affiliation.13
• Behaviour – While typing necessitates a certain extent of brevity, speaking
allows for longer, more conversational searches.14 Marketers and optimisers
may need to focus on long-tail keywords and producing conversational
content to stay ahead of these trends.15
This type of fast search could make users more impatient and increasingly
dependent on choosing to use the internet as their main source of information.16 Due
to this, the amount of time users spend looking at a screen might decrease.
Marketers should consider what this might mean for predominantly visual content, as
there may be a shift towards focussing on auditory and information-heavy content.
4. In Healthcare
In an environment where seconds are crucial and sterile operating conditions are a
priority, hands-free, immediate access to information can have a significantly positive
impact on patient safety and medical efficiency.17
Benefits include:18
The most significant concern using speech recognition in healthcare is the content
the digital assistant has access to.22 It has been recognised that the content will
need to be supplied and validated by recognised medical institutions, in order for it to
be a viable option in this field.
16. What are neural networks in image processing?
à Convolutional neural networks are deep learning algorithms that are
very powerful for the analysis of images.
3) Fully-Connected layer: Fully Connected Layers form the last few layers in
the network. The input to the fully connected layer is the output from the
final Pooling or Convolutional Layer, which is flattened and then fed into
the fully connected layer.