Вы находитесь на странице: 1из 3

COMPUTER

Neural Networks
in Control
neurocomputers are here
By Owen Bishop

Most of the actions of most animals are controlled by a network of nerve


cells, or neurons. In this article Owen Bishop looks at the possibilities of
implementing the neurocomputer.

Neurons are usually organised into physical connections existing built in. It soon adds to these connections by
well-defined structures, such as the between the neurons and the inten- experience as it learns useful responses to a
brain, the spinal cord and the periph- sity (or strength) of each connection. range of outside stimuli. Learning involves
eral nerves. Each neuron is a centre The number of possible connections not only making totally new connections, but
of information transfer (Note: trans- is far greater than the number of also by strengthening some existing connec-
fer, not storage). It can receive infor- neurons present. We estimate that a tions and weakening others. Learning is thus
mation as electrical signals from a human brain may contain as many an essential feature of a neural network. The
number of other neurons in the net- as 1016 connections, an enormous animal learns how to act in a given set of cir-
work, process this information, and resource for memory and intelligent cumstances. It also learns patterns, as when
pass it on to other neurons. In the action. we learn to recognise friend or foe, or to iden-
human brain, for instance, a neuron tify the smell of a well-barbecued steak. Parts
connects to as many as 10,000 other of the network are sites of higher thought
neurons. The extent to which infor- Learning processes.
mation is transferred from neuron to A young animal begins life with a Given that the neural network of an animal
neuron depends on the number of given set of network connections is capable of complex recognition and control
actions, researchers have tried to build the
artificial equivalent, an artificial neural net-
work or ANN. An ANN consists of neuron
units mimicking the action of animal neurons.
They have input, processing and output
stages. The earliest electronic ANNs were
based on valve circuitry, but little progress
was made until the advent of VLSI. Now, with
output level
input level

the enormous computing power of even the


smallest of bench-top computers, we model
ANNs mathematically. This can be done in a
system based on conventional microproces-
sors, as illustrated by the software described
later. There are also custom-designed proces-
sors used to build true neurocomputers.
These are designed to excel in the particular
kinds of processing that are needed to model
hidden 010027 - 11 ANNs, which is done most efficiently by using
level(s)
parallel processing.
It is important to realise that, although
Figure 1. An artificial neural net consists of at least three levels of connected neurons. ANNs are built from neurons (electronic or

10/2001 Elektor Electronics 57


COMPUTER

Figure 2. This ANN models the control system of a platform robot.

mathematical), the action of which superfi- one direction from the input level, its drive motors are running. How-
cially resembles that of animal neurons, the through the hidden levels, to the out- ever, if it deviates from the line, or
analogy goes no further. We know a lot about put level. This is known as feedfor- where the line bends, one sensor or
the structure and activities of animal neurons ward architecture, and is the one the other is stimulated and the
but very little about how they interact. A neu- most commonly used. Certain appli- appropriate drive motor is switched
rocomputer operates in a way that is proba- cations may have other architectures off to cause the robot to return to the
bly very different from the operation of a involving feedback, connections line. When there is a branch line, the
brain. Nevertheless, it can perform similar between neurons on the same level, extra width of the tracks stimulates
functions. and other configurations. both sensors at the same time. Then
the robot may ignore the main track
and branch off to the left toward the
Architecture Modelling an ANN workstation, but it only does this if
The structure of a typical ANN (electronic or A number of computer programs are its ‘call’ optical sensor is receiving a
mathematical) is illustrated in Figure 1. It available for modelling ANNs, beam of light directed at the robot
consists of at least three layers (or levels) of including a PC program known as from the workstation.
neurons, and there may be any number of Easy NN, by Stephen Wolstenholme. The robot also has a touch sensor
neurons in each level. The input level consists To study an ANN in action, we set at the front, to detect a barrier when
of neurons that receive input from sensors. In up a control network for a hypothet- it reaches the workstation. Then it
a control system, these might include ther- ical platform robot. The robot circu- sounds an alert and stops while
mal, optical, proximity or pressure sensors. In lates the workstations in a factory, to items are unloaded or loaded, until
a visual pattern recognition system, the collect completed workpieces and to the barrier is moved aside. It then
inputs might be from specified areas in the deliver spare parts. Its route is deter- continues along the branch track
field of a video camera. The output level con- mined by a white line painted on the until it rejoins the main track. The
sists of the neurons that drive actuators, such floor. The line is a complete loop with touch sensor also detects obstacles
as motors, solenoids and lamps. On the other branches to each of the worksta- it may encounter. Then it stops and
hand, maybe they generate bits in a digital tions. The robot straddles the line sounds the alert until the obstacle is
code that is then interpreted by a computer. and has two optical sensors at the removed.
Between the input and output levels are one front, which scan the floor to the left This is an oversimplified control
or more hidden levels, which are not directly and right of the line. When the robot system that would probably not
connected to the outside world. is moving along the line, neither of work well in practice, but it serves
In the network of Figure 1, signals pass in the sensors detects the line and both to illustrate the nature of an ANN.

58 Elektor Electronics 10/2001


COMPUTER

Another point is that this network neuron are summed by the neuron in input. The network is trained to identify a
has only binary inputs and outputs. proportion to the weightings. In specimen of one of three species of Iris,
However, mathematical models of most systems a number of weak sig- given only the length and width of the petals
ANNs are perfectly capable of work- nals arriving at a neuron are ignored. and sepals. The network has four input neu-
ing with analogue values. Only when the total of signals rons, one for each of the four input quanti-
exceed a given threshold, does the ties. It has three output neurons, one for
neuron generate an output signal. each of the species, I.setosa, I.versicolor and
Training Figure 2 represents one particular I.virginica. The computer generates seven
The first stage in setting up the net- combination of inputs and the corre- neurons in the hidden layer.
work using Easy NN is to specify sponding outputs. Parameters at With analogue input, the network can not
that there are to be four input neu- each neuron are shown by bar charts be trained by tabulating all possible combi-
rons, three output neurons, and a sin- of which the second bar down repre- nations of inputs. Instead, it is given a sam-
gle level of hidden neurons. The soft- sents the activation state. To investi- ple of analogue data to work on. The four
ware was left to decide how many gate the behaviour of the network measurements taken from each of a sample of
hidden neurons there should be. (and the robot) we call up a ‘Query’ flowers are keyed in to the data table. ‘True’
Next, the network was taught how to panel and key in the level of each is entered in one of the three output columns
behave by keying in a table, showing sensor signals (0 or 1). The resulting to indicate to which species each set of data
a selection of possible input values output is automatically calculated refers. ‘False’ is entered in the other two
and what output values are expected and a version of Fig. 2 with the new columns. The table holds data from 50 flow-
in each case. Since this is a binary inputs and outputs is displayed. In ers of each species, which is considered suf-
example, we keyed in all sixteen pos- Fig. 2, for example, the activation ficient for training.
sible combinations of the four inputs states have been set so that the right Although the correspondence between
at levels 0 (false) and 1 (true). We opto-sensor and the touch sensor are dimensions and species is by no means easy
also keyed in the expected output both ‘1’. The left opto-sensor and call to distinguish by inspection, the network
responses for each combination of sensors are both ‘0’. The correspond- quickly learns to identify the species of other
inputs. We simply decided what the ing output is ‘0’ for both drives and specimens of Iris of these three species from
robot is to do and keyed in ‘0’s and ‘1’ for the alert. The robot has met an these four basic measurements.
‘1’s accordingly. This is known as obstacle on its path, has stopped and A similar but much larger network is able
training by supervision and is the is sounding the alert. If we alter the to distinguish between sixteen species of
equivalent of programming an expert inputs to make all opto-sensors ‘1’ cichlid fish, using 10 input neurons receiving
system. Because the system is work- and the touch sensor ‘’0’, the output analogue data on body features.
ing on binary values, the table is the instantly changes to left drive ‘1’
equivalent of a truth table. (ON), right drive ‘0’ (OFF) and alert
When the computer is told to gen- ‘0’ (OFF). The robot is turning right at Applications
erate the network, it first decides a junction. Trying various combina- Given a certain pattern of input, an ANN
how many neurons are needed in the tions of inputs always gives the learns to produce an appropriate pattern of
hidden layer. Then it connects all the result expected according to the output. This makes ANNs. We have shown
neurons (as in Figure 1) and gives training that was given. examples in the fields of control and taxon-
each connection random but rela- This simple controller could have omy. ANNs are often used for scanning
tively low weighting. It then puts in been built from three or four hardwire masses of data looking for patterns. It is
the combinations of inputs, com- logic gates, or programmed as a few reported that data on credit card fraud
putes the corresponding outputs and lines of logic commands in a BASIC revealed that fraud is especially common
compares them with the expected program. On the other hand, we among young women buying shoes. Visual
outputs. This process is repeated could have programmed the ‘truth recognition is important in security systems
and, because each neuron has a table’ as a lookup table and searched and robotics. ANNs are finding many appli-
memory associated with it, the it to find the correct outputs. Instead, cations in these fields. The flexibility of
weightings can be adjusted to pro- we made use of algorithms that ANNs and their ability to respond to
duce an output that more closely describe the action of a neuron and changes in input make them useful in tuning
matches the expected output. The what happens when several such the parameters of fuzzy logic systems. In the
processing continues until stable neurons are connected in a network. future, we may find that many devices in the
values are obtained. The network is The only causal connection between home are controlled by a combination of
then displayed as a diagram (Fig- input and output is through the ANN. fuzzy logic and an artificial neural network.
ure 2). From this, we can see that the Incidentally, the network does only
computer has elected to have six what we have trained it to do. If we
hidden neurons. The inter-neuron train it to respond differently, it will Software
connections are shown as lines of learn the new pattern of behaviour. At the time of writing, full details of Easy NN
varying width, depending on the are published at
weightings. Some of these are dis- http://www.tropheus.demon.co.uk/.
played in green to indicate positive Analogue input (010027-1)
(excitatory) action. The others are in One of the examples available at
red to indicate negative (inhibitory) the Easy NN site shows how well
action. The signals arriving at each an ANN can cope with analogue

10/2001 Elektor Electronics 59

Вам также может понравиться