73
Inthisstagetwobestneuralnetworksarechosen
anditsgeneticmaterialiscrossed‐overtocreatetwo
newindividuals.Cross ‐overofdisparatetopologiesis
processed in a meaningful way by pairing up genes
withthe same historical markings, calledinnovation
numbers. With this approach the offspring may
be
formedinoneofthreeways:
In uniform crossover, matching genes are
randomly chosen for the offspring genome, with
higherprobabilityforbetterfittedparent.
In blended crossover, the connection weights of
matchinggenesareaveraged.
Inelitecrossoverdisjointsandexcesses are taken
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
otherparent’sinnovationnumbersarecalleddisjoints
(when they occur within the genome) or excesses
(whentheyoccuroutsideofthegenome).
These three
types of crossover were found to be
most effective in neuroevolutionary algorithms in
comparisontoothercrossovermethods(Stanleyand
Risto,2002).
Genes that have been disabled in previous
generationshave asmall chance of being re‐enabled
during new offspring creation, allowing ANNs to
makeuseofoldersolutions
onceagain(Łącki,2012).
Evolutionary neural network can keep historic
trails of the origin of every gene in the population,
allowing matching genes to be found and identified
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.
Thenumberofinputsandoutputsisfixed.During
evolution, in mutation stage, the number of internal
neurons and connections may change. In classic
NEATmethodthenumberofnodes
andconnections
may only increase over time, with possibility to
temporarydisabletheconnection.Thisguarantiesto
transfer learning experience from ancestors to new
offspring and fast learning of new tasks for new
population but it may be disadvantageous in such
dynamic environments as ship maneuvering in
restricted waters. In this
case an experience of old
populationmaybeinsufficientanditslearningability
toslow, due to sizeofexperiencedANN’s.Through
mutation, the genomes in modified NEAT will
graduallygetlargerforcomplextasksandlowertheir
size in simpler ones. Genomes of varying sizes will
result, sometimes with
different connections at the
samepositions.
Historical markings represented by innovation
numbers allow neuroevolutionary algorithm to
perform crossover operation without analyzing
topologies. Genomes of different organizations and
sizes stay compatible throughout evolution, thus
allowingthem to interchange genes in a meaningful
way. This procedure allows for used method to
increase complexity
of the structure while different
networksstillremaincompatible.
During elite selection process the system
eliminates the 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 its
quality shall
improveaccordingtoassumedgoalsandrestrictions
ofthetask.
3 NEUROEVOLUTIONWITHINDIRECT
ENCODING
First effective indirect encoding of artificial neural
networks, called Cellular Encoding,was proposed
by Gruau in his PhD thesis (Gruau, 1994). In this
method each neuron was represented by a cell
connected to other
cells. Each cell was able to
duplicate in parallel or serial connection of its two
offspring. In that approach the neural networks can
be generated and developed with modularity.
Modular structure is made of several subnetworks,
arranged in a hierarchical way. In some cases the
samesubnetworkcanberepeated.
Generallyinindirectencodingagenomespecifies
how to build a topology. It allows to create more
compact representation of genes in comparison to
directencodinggenomes.
The general set of instruction include commands
thatallowtocreateatopologyinameaningfulway,
i.e.:
Splitconnection,
Addconnection,
Addnode,
Copyconnection,
Removeconnection.
The weights of evolved neural networks
architectures are trained using backpropagation
method.
4 INPUTSANDOUTPUTSOFTHENETWORKS
Input and output signals of ANN’s must be
determinedatthebeginningofdesigningphaseofthe
system.Propersetofsignals
consideredinthemodel
iscrucialforefficientperformanceofthemethodand
foritsfidelityandaccuracyincomparisontothereal
navigationalsituation.
Inputsignalsinthesystem,withthreedegreesof
freedomofthevesselmovement,areasfollows:
Ships’courseoverground,
Ships’angularvelocity,
Ships’speedoverground,
Ships’position,
Angleandvelocityofacurrent,
Angleandvelocityofawind.
Mainpropellerrevolutions(currentandpreset),
Rudders’deflection(currentandpreset).
Infutureresearchothersignalsfromenvironment
maybetakenintoaccount,i.e.waves,cargo,
trimand
roll.