Documenti di Didattica
Documenti di Professioni
Documenti di Cultura
Neural Networks
Background
The ADALINE (Adaptive Linear Neuron or later Adaptive Linear Element) is an early single-
layer artificial neural network and the name of the physical device that implemented this
network. The network uses memistors. It was developed by Professor Bernard Widrow and
his graduate student Ted Hoff at Stanford University in 1960. It is based on the McCulloch–
Pitts neuron. It consists of a weight, a bias and a summation function [1].
Besides, the perceptron is an algorithm for supervised learning of binary classifiers. A binary
classifier is a function which can decide whether or not an input, represented by a vector of
numbers, belongs to some specific class.[1] It is a type of linear classifier, i.e. a classification
algorithm that makes its predictions based on a linear predictor function combining a set of
weights with the feature vector [2].
Objective
To know how use two different neurons depending on the problem we need to solve.
Besides, it is important that we, as mechatronics engineers, know how to implement a
Perceptron and Adaline neurons in a software like MATLAB, because some problems may
require specific characteristics with specific parameters.
Development
The Adaline (Adaptive Linear Element) and the Perceptron are both linear classifiers when
considered as individual units. They both take an input, and based on a threshold, output e.g.
either a 0 or a 1.
The main difference between the two, is that a Perceptron takes that binary response (like a
classification result) and computes an error used to update the weights, whereas
an Adaline uses a continuous response value to update the weights (so before the binarized
output is produced).
The fact that the Adaline does this, allows its updates to be more representative of the actual
error, before it is thresholded, which in turn allows a model to converge more quickly.
The Figure 1 contains all the code implemented in MATLAB that trains Perceptron and
Adaline as well.
Results
In this first result figure, the red line in the first axis is the corresponding to Perceptron
and the black line corresponds to Adaline.
The blue points correspond to the patterns the ‘x’ points are the rabbits and the ‘o’ points
are the bears.
I can be appreciated that Perceptron finds a solution in the first iteration out of 10.
In addition, we observed how different these two types if neurons are, one is more efficient but
less accurate than the other. Perceptron found a faster solution, but this solution is not as smooth
as the ADALINE’s response.