513
Figure3.Influenceofbiascoefficient
jtovalueofsigmoid
function
Inthisstagetwobestneuralnetworksarechosen
anditsgeneticmaterialiscrossed‐overtocreatetwo
new individuals. Cross‐over of disparate topologies
is processed in a meaningful way by pairing up
genes with the same historical markings, called
innovation numbers. With this approach the
offspringmaybe
formedinoneofthreeways:
In uniform crossover, matching genes are
randomlychosenfor the offspringgenome,with
higherprobabilityforbetterfittedparent.
In blended crossover, the connection weights of
matchinggenesareaveraged.
Inelitecrossoverdisjointsandexcessesaretaken
from more fit parent only, all redundant genes
from less fit parent are discarded. All matching
genesareaveraged.
Genes that do not match with the range of the
other parent’s innovation numbers are called
disjoints (when they occur within the genome)
or
excesses(whentheyoccuroutsideofthegenome).
These three types of crossoverwere found to be
most effective in neuroevolutionary algorithms in
comparisontoothercrossovermethods(Stanleyand
Risto,2002b).
Genes that have been disabled in previous
generationshaveasmallchanceofbeingre‐enabled
during new
offspring creation, allowing ANNs to
makeuseofoldersolutionsonceagain(Łącki,2012).
Evolutionary neural network can keep historic
trails of the origin of every gene in the population,
allowingmatchinggenestobefoundandidentified
even in different genome structures. Old behaviors
encodedinthepre‐
existingnetworkstructurehavea
chance to not to be destroyed and pass their
properties through evolution to the new structures,
thus provide an opportunity to elaborate on these
originalbehaviors.
The number of inputs and outputs is fixed.
During evolution, inmutation stage, the number of
internal neurons and connections
may change. In
classic NEAT method the number of nodes and
connections may only increase over time, with
possibilitytotemporarydisabletheconnection.This
guaranties to transfer learning experience from
ancestorsto newoffspringandfast learningof new
tasks for new population but it may be
disadvantageous in
such dynamic environments as
shipmaneuveringinrestrictedwaters.Inthiscasean
experienceofoldpopulationmaybeinsufficientand
itslearningabilitytoslow,duetosizeofexperienced
ANN’s.Throughmutation,thegenomesinmodified
NEAT will gradually get larger for complex tasks
and lower their size in
simpler ones. Genomes of
varying sizes will result, sometimes with different
connectionsatthesamepositions.
Historical markings represented by innovation
numbers allow neuroevolutionary algorithm to
perform crossover operation without analyzing
topologies. Genomes of different organizations and
sizesstay compatiblethroughoutevolution, andthe
variable‐length genome problem is essentially
solved. This procedure allows for used method to
increase complexity of the structure while different
networksstillremaincompatible.
During elite selection process the system
eliminatesthe lowest performing members of every
specializedgroupofindividualsfromthepopulation.
In the next step the offspring replaces eliminated
worst individuals. Thus the
quantity of the
population remains the same while itsquality shall
improveaccordingtoassumedgoalsandrestrictions
ofthetask.
3 INPUTSANDOUTPUTSOFNETWORKS
Input and output signals of ANN’s must be
determined at the beginning of designing phase of
the system. Proper set of signals considered
in the
model is crucial for efficient performance of the
system and for its fidelity and accuracy in
comparisontotherealnavigationalsituation.
Inputsignalsinthesystem,withthreedegrees of
freedomvesselmovement,areasfollows:
Ships’courseoverground,
Ships’angularvelocity,
Ships’speedoverground,
Ships’position,
Angleandvelocityofacurrent,
Angleandvelocityofawind.
Mainpropellerrevolutions (currentandpreset),
Rudders’angle(currentandpreset).
Infutureresearchothersignalsfromenvironment
maybetakenintoaccount,i.e.waves,cargo,trimand
roll.
OutputsignalsofANNsshallgeneratethevalues
for important parameters that may change after
certain amount of time. Most important signals in
predictionprocessare:
Ships’position,
Ships’courseoverground,
Ships’speedoverground,
Ships’angularvelocity.
Alloftheinputandoutputsignalsareencodedas
realvaluesbetween0and1.
Computational flexibility and ability to adapt a
network topology to a given task allows to design
complexsetsofinputsandoutputsofANN’s.
Since the neural network with multiple outputs
learns slower than one with only one output, the
proposal of the author is to divide a population of
ANNsintodifferentspecializedgroupsofnetworks,
designed to calculate a predicted value of a single
particularoutputsignal(Figure4).