ContentslistsavailableatScienceDirect
Ecological
Indicators
jou rn al h om ep a g e :w w w . e l s e v i e r . c o m / l o c a t e / e c o l i n d
Novel
application
of
a
quantitative
spatial
comparison
tool
to
species
distribution
data
Esther
L.
Jones
a,b,∗,
Luke
Rendell
a,
Enrico
Pirotta
c,
Jed
A.
Long
daSeaMammalResearchUnit,ScottishOceansInstitute,UniversityofStAndrews,StAndrewsKY168LB,UnitedKingdom
bCentreforResearchintoEcologicalandEnvironmentalModelling,TheObservatory,BuchananGardens,UniversityofStAndrews,StAndrewsKY169LZ, UnitedKingdom
cSchoolofMathematics,WashingtonStateUniversity,Vancouver98686,WA,USA
dDepartmentofGeographyandSustainableDevelopment,SchoolofGeographyandGeosciences,IrvineBuilding,UniversityofStAndrews,StAndrews,Fife, ScotlandKY169AL,UnitedKingdom
a
r
t
i
c
l
e
i
n
f
o
Articlehistory:
Received5January2016
Receivedinrevisedform11May2016 Accepted31May2016
Keywords:
Edgeeffects Mapcomparison Movingwindow Spermwhale SSIMindex Uncertainty
a
b
s
t
r
a
c
t
Comparinggeographicallyreferencedmapshasbecomeanimportantaspectofspatialecology(e.g. assessingchangeindistributionovertime).Whilsthumansareadeptatrecognisingandextracting struc-turefrommaps(i.e.identifyingspatialpatterns),quantifyingthesestructurescanbedifficult.Here,we showhowtheStructuralSimilarity(SSIM)index,aspatialcomparisonmethodadaptedfromtechniques developedincomputersciencetodeterminethequalityofimagecompression,canbeusedtoextract additionalinformationfromspatialecologicaldata.WeenhancetheSSIMindextoincorporate uncer-taintyfromtheunderlyingspatialmodels,andprovideasoftwarealgorithmtocorrectforinternaledge effectssothatlossofspatialinformationfromthemapcomparisonislimited.TheSSIMindexusesa spatially-localwindowtocalculatestatisticsbasedonlocalmean,variance,andcovariancebetweenthe mapsbeingcompared.AnumberofstatisticscanbecalculatedusingtheSSIMindex,rangingfromasingle summarystatistictoquantifysimilaritiesbetweentwomaps,tomapsofsimilaritiesinmean,variance, andcovariancethatcanprovideadditionalinsightintounderlyingbiologicalprocesses.Wedemonstrate theapplicabilityoftheSSIMapproachusingacasestudyofspermwhalesintheMediterraneanSeaand identifyareaswherelocal-scaledifferencesinspace-usebetweengroupsandsingletonwhalesoccur. Weshowhownovelinsightsintospatialstructurecanbeextracted,whichcouldnotbeobtainedby visualinspectionorcell-by-cellsubtraction.Asanapproach,SSIMisapplicabletoabroadrangeofspatial ecologicaldata,providinganovel,implementabletoolformapcomparison.
©2016TheAuthor(s).PublishedbyElsevierLtd.ThisisanopenaccessarticleundertheCCBYlicense (http://creativecommons.org/licenses/by/4.0/).
1. Introduction
Ecologicalsystemstypicallyexhibitspatialheterogeneity aris-ingfromunderlyingprocessesthatinfluencespeciesoccurrence, abundance,anddiversity.Characterisingspatialheterogeneity,and changestoit,areessentialtounderstandingthestructureof ecolog-icalsystems(FortinandDale,2005).Spatialecologicaldatarange fromspatiallydiscreteeventsorindividuals,representedasbasic plotsoflocationsinspacereferencedbyapoint(e.g.vegetation assemblagesingeographicalspace,Penttinenetal.,1992),to dis-tributionsofspeciesacrosshabitats,characterisedbycontinuous densitymaps(McKinneyetal.,2012).Geographicallyreferenced mapsareaneffectivewaytoconveycomplexspatialinformation
∗Correspondingauthorat:SeaMammalResearchUnit,ScottishOceansInstitute, UniversityofStAndrews,StAndrewsKY168LB,UnitedKingdom.
E-mailaddress:[email protected](E.L.Jones).
because the human visual system excels at recognising struc-tureinthesefamiliarandintuitivelyreadimages.However,visual interpretationofspatialpatternsinsuchmapsissubjective(Da
Silva-Buttkusetal.,2009),which canbefurthercomplicatedby
thecharacteristicsofthemappeddata,suchasscale(e.g.grain andextent) andtheparticularcartographicrepresentationused (e.g.projection,colour,symbology)(MacEachren,1995).Therefore, methodshavemovedtowardsobjectivelyquantifyingthepatterns observed inmappeddata toproduceconsistentand repeatable analyses(FortinandDale,2005).
The comparison of two (or more)geographically referenced mapsaimstocharacterisedifferencesinspatialheterogeneityand structure,andcalculatedefinedspatialmetricsbetweenthem.The problemofmapcomparison(Jacquez,1995)hasbeenstudiedfor decadesbygeographers(Tobler,1965),aswellasecologists(Levine etal.,2009).Therearemanyecologicalapplicationswheremap comparisoncanleadtonewinsights.Ecologicaldataoftenhave intrinsicpropertiesthatmakethemchallengingtocompare
spa-http://dx.doi.org/10.1016/j.ecolind.2016.05.051
tially: datatend tobe continuous-valued (e.g.spatially explicit modelpredictions)andhaveunderlyingspatialdependencies(e.g. neighbouringcellsarenotindependent).However,therearefew establishedspatialcomparisontechniquesdocumentedinthe eco-logicalliteraturedirectlyrelatingtothetypeofproblemsoutlined above,asavailablemethodsgenerallyonlyaddressoneorotherof theseproperties.
Inrecentyears,emphasishasbeenplacedoncomparisonsof mapped categorical data (Hagen-Zanker and Lajoie, 2008) and methodsforassessingspatialstructureinmapsofcontinuous val-ueddataorspatiallyexplicitmodelpredictionsonaregularspatial latticeremainlimited inboth scopeand sophistication(
Hagen-Zanker,2006a).Cell-by-cellcomparisonsandnon-spatiallyexplicit
indexesweightedbygridcellarewidelyusedinremotesensing,but donotaccountforspatialdependenciesbetweencells(Horn,1966;
Leitãoetal.,2011).Likewise,Moran’sIorGeary’sCtests(Cliffand
Ord,1970)assessspatialautocorrelationbutprovidesingleindices acrossspace,whichdonotretainlocationalinformation.Metrics usedtoinvestigatenichesimilaritybetweenspeciesdistributions predictedwithEnvironmentalNicheModelsalsolosespatial infor-mationtogiveasinglemeasureofoverlaporequivalency(Warren etal.,2008).Overlapindicesandtestsforspatialautocorrelation measureonlyoneformofspatialstructureinthedata,and this maynotbesufficientfortheecologicalquestionbeingposed.
AStructuralSimilarityIndex(SSIMindex)wasproposed origi-nallybyWangetal.(2004)forcomparingcompressiontechniques usedindigitalimaging(e.g.JPEGcompression).Theindexusesa spatially-localmovingwindowtogenerateindependent compo-nentsrelatingtolocalsimilaritiesinthemean,variance,andspatial correlationbetweenthetwomapsbeingcompared.SSIMcanassess continuousdataandsimultaneouslyconsiderslocalmagnitudeand spatialstructure,makingitsuitabletobeadaptedforthe applica-tionofcomparingspatialecologicaldata.Mapcomparisonmethods toecologicalproblemsshouldallowuncertaintyassociatedwith thedataormodelpredictionstobeincludedinthemap compar-isontoaidinterpretation.Ecologicalmapsoftenhaveuncertainty estimatesassociatedwitheachgridcellwhenvaluesareobtained usingspatiallyexplicitpredictivemodels(Rocchinietal.,2011),and theseshouldbeincorporatedinamapcomparisonapproach. Addi-tionally,localstatisticssuchastheSSIMindexaresusceptibleto edgeeffectsarisingfromtheuseofaspatiallylocalneighbourhood
(Boots,2002).Edgeeffects(i.e.theinclusionofnullareasoutside
thestudy)areexacerbatedbyirregularlyshapedboundariescaused byarbitrarilyshapedadministrativeunitsorgeographicalfeatures (e.g.islands).Thesemayormaynotinfluencethespatialprocess understudy.Ecologicalprocessesoftenchangeonornear bound-aries(Wiensetal.,1985),forexample,theboundaryoftheAntarctic CircumpolarCurrent affects the surroundingmarine ecosystem
(Tynan,1998),andsotheseareascanbeofspecificinterest.
There-fore,weproposetwoenhancementstotheSSIMindextoaddress commonissuesfacedinspatialecologicalanalysisby incorporat-inguncertaintyassociatedwiththeunderlyingdataintothemap comparison,andcorrectingforedgeeffects.Wedemonstrateuse oftheSSIMmethodologyandourenhancementsbyapplyingthem toacasestudytocomparehabitatpreferencebygroupsand sin-gletonsofspermwhales(Physetermacrocephalus,Linneaus1758) intheMediterraneanSea(Pirottaetal.,2011).
2. Methods
2.1. Mapcomparison
Considertwocontinuous valuedmaps(Aand B)each repre-sentedas regular grids. For each cell, a localneighbourhood is definedby(n)neighbouringspatialunitsgivenaweighting(w).
Thesizeoftheneighbourhoodisuser-defined,hasalowerlimitof 3×3cells andcantakeanynon-evenvalue.Wangetal.(2004)
proposedtheuseof a(circular)Gaussian weightingfunctionof
w=
wi|i=1,2...,nwherewiisobtainedfromaGaussian
ker-nelcentredonthefocalcell.Thestandarddeviation,=n/3,is normalisedsothatn
i=1wi=1.
Theindexiiteratesthroughallncellswithineachlocalregion toproducemeansandvariancesforeachmapaswellascovariance betweenthetwogriddedmaps.
a=
n
i=1
wiai (1)
2a=
n
i=1
wi(ai−a)2 (2)
ab=
n
i=1
wi(ai−a)(bi−b) (3)
a, b2,and ab represent spatially local measuresof mean,
varianceandcovariance,computedforeachcell,whereaiandbi
representthevaluesin cellifor mapsAandBrespectively.The threecomponentsoftheSSIMmethodarethencalculatedfrom thesestatistics,givingspatiallylocalmeasuresofsimilarityinthe mean,variance,andcovarianceofthetwomaps.
SIM(A,B)= 2ab+c1
2
a+2b+c1
(4)
SIV(A,B)= 2ab+c2
2
a+b2+c2
(5)
SIP(A,B)= ab+c3
ab+c3
(6)
Thestatisticsare namedSimilarityin Mean(SIM),Similarity inVariance(SIV),andSimilarityinPattern(SIP)ofspatial covari-ance,sothattheycanbeinterpretedintuitivelyinecologicalterms
(Table1).Constants(c1–c3)areusedinequations(4)–(6)toaid
sta-bilitywhenthedenominatorsoftheequations,sumofthesquared
means
2a+2b
,sumof thesquaredvariances
2a+b2
,and productofthestandarddeviations (ab) arecloseto0.
Follow-ingguidelinesproposedbyWangetal.(2004),theconstantscan beestimatedheuristicallyfromtherangeofvaluesofthe underly-ingmapsbeingcompared(R)togetherwithk1=0.01andk2=0.03.
Therefore,c1=(k1R)2,c2=(k2R)2,andc3=c2/2.
Anoverall measurefor comparison canbe computedasthe productofallthreecomponents.
SSIM(A,B)=[SIM(A,B)]˛·[SIV(A,B)]ˇ·[SIP(A,B)] (7)
Table1
DescriptionoflocalstatisticscalculatedinSSIMindex,usingpairsofimages(mapsAandB)todemonstratehighandlowsimilarity.Theinterpretationcolumnprovidesa generalecologicalinterpretationofeachmetricusingthecaseexampleofonespeciesinMapAandadifferentspeciesinMapB.
Index Description Bounds Interpretation MapA MapB
Similarityinmeans
(SIM)
Ratiooftwicethe
productofthelocal
meanstotheir
summedsquares.
(0,1) 0=MapAhashighvalues;mapBlowvalues.
Themeansaredissimilar(e.g.specieshave
differentlocalabundances).
1=BothmapsAandBhavesimilarlyhigh(or
low)values(e.g.specieshavesimilarlocal
abundances).
Similarityinvariance
(SIV)
Ratiooftwicethe
productofthelocal
standarddeviationsto
theirsummed
variances.
(0,1) 0=MapAhashighvariance;mapBlow
variance.Thevariancesaredissimilar(e.g.one
speciesisspatiallyclustered,theotherhasa
homogeneousdistribution).
1=BothmapsAandBhavesimilarlyhigh(or
low)variance(e.g.bothspecieshavesimilar
degreesofspatialclustering,orbothhave
homogeneouslocaldistributions).
Similarityinpattern
(SIP)ofspatial
covariance
Ratioofthelocal
covariancetothe
productofthelocal
standarddeviations.
(−1,1) −1=MapAhashighvaluesinsomecells;Map
Bhashighvaluesinalternatecells.Spatial
correlationisnegative(e.g.speciesexhibit
spatialpartitioning).
0=MapAandBexhibitnospatialcorrelation
(e.g.speciesdistributionsareindependent).
1=MapAandBhavehighandlowvaluesin
thesamecells.Spatialcorrelationispositive
(e.g.speciesareusingthesameresources,or
havepredator-preyinteractions).
formofecologicalinteraction,suchaspredation,areoccurring.The
meansofeachmetriccanbecalculatedtoproducesummary
statis-tics(SIM,SIV ,SIP)ifrequired.ThemeanofSSIM(SSIM)willprovide
anoverall metricof mapcomparison, capturingthesimilarities
betweenmeans,variances,andcovarianceinasinglevalue.
Themeanandvarianceofeachgridcellintheunderlyingmaps
areresampledtogenerateaseriesofrealisations(N).SSIMstatistics
arecalculatedforeachsetofrealisations(1···N)ofthetwomaps
beingcompared.Avariance-adjustedmeasureofSSIMiscalculated
bytakingthemeanofeachstatisticovertheresultingcomparisons.
Upperandlower95%confidencelimitsofthestatisticscanbe
cal-culatedfromthemeanandvarianceofthesampledcomparisons.
Tocorrectforedgeeffects,areflectionalgorithmisimplemented
togeneratesyntheticbuffersandensurethespatialextentofthe
mapcomparisonispreserved(AppendixAinSupplementary).
2.2. Casestudy:spermwhalesintheMediterranean
2.2.1. Introduction
IntheMediterranean,asmallpopulationofspermwhales
per-sist.Spermwhalesshowsexuallydimorphicbehaviourasadults:
malesbecomeincreasinglysolitaryastheymature,andsegregate
fromlong-termsocialunitsofadultfemalesandtheiroffspring,
exceptingshorttermassociationsformatingpurposes(Whitehead,
2003).It is unclear what drives this segregationand
hypothe-sesinclude:groupsoffemalesoutcompetingsolitarymaleswhen exploitingmid-watersquidpatches,malesandfemaleshaving dif-ferentdietaryandhencehabitatpreferences,orhighermalegrowth ratesthat requirewider searchareastolocatehighprey
densi-ties(Whitehead,2003).Understandinghabitatuseinareaswhere
Fig.1. Predictedprobabilityofoccurrenceforbothsocialassemblages:(a)groups;(b)singletons(c)varianceingrouppresence;and(d)varianceinsingletonpresence.(a) and(b)aremodifiedfromPirottaetal.(2011).GlobalSelf-consistent,Hierarchical,High-resolutionGeographyDatabase(GSHHG)shorelinedatafromNOAAwereused, availabletodownloadfromhttp://www.ngdc.noaa.gov/mgg/shorelines/gshhs.htmlhttp://www.ngdc.noaa.gov/mgg/shorelines/gshhs.html.
providenovelbiologicalinsightsnotreadilyapparentfromvisual assessmentsalone.
2.2.2. Data
Thestudyareawaslocatedfrom38to41◦Nand0.5–5◦E,centred ontheislandsof Ibiza,Mallorcaand Menorca(Fig.1). Informa-tiononspermwhaleoccurrencewascollectedduringdedicated summerresearchcruisescoveringthewatersaroundtheBalearic archipelago.Each cruise lasted for approximatelya month and wasrepeatedover6consecutiveyears(2003–2008).Whaleswere locatedand tracked acoustically from theirecholocation clicks, andanencounterwasdefinedasaperiodofcontinuous acous-ticcontactwithoneormoreanimals.Pirottaetal.(2011)useda GeneralisedAdditiveModelling(GAM)approachtomodelsperm whaleoccurrenceasafunctionofseveralenvironmentaland tem-poralpredictors,combinedwithGeneralisedEstimatingEquations (GEEs) to account for autocorrelation in the residuals. Further detailsontheenvironmentaldatasetsandanalyticalapproachcan befoundinPirottaetal.(2011)andaresummarisedhere:Separate analyseswerecarriedoutforsingletonsandgroupstodetermine whetherhabitatpreferencewascharacterisedbydifferentextrinsic drivers.Thefinalmodelforspermwhalegroupsincludedlatitude, longitude,weeklyseasurface temperature(SST)and slope gra-dient.Forsingletons, latitude, longitude,year,monthlySST and slopeaspectwereretainedbymodelselection.Theauthorsnoted
qualitativelydifferentspatialpatternsemergingforthetwosocial assemblagesinthefinalpredictionmaps,quantitativelysupported byaninverserelationshipwithSST,andsuggestedthatthesemight betheresultoffine-scalehabitatsegregation.
2.2.3. Analysis
Thepredictedprobabilityofpresenceofgroupsandsingletons, andcorrespondingestimatesofvarianceweremappedataspatial resolutionof 2nauticalmiles (NM)ona regulargrid.To calcu-lateSSIMstatistics,thesizeofthelocalneighbourhoodforboth mapsshouldbedefinedbytakingthenatureoftheunderlyingdata andecologicalprocessinquestionintoaccount.Lewisetal.(2007)
examinedthenearest-neighbourdistancesbetweenspermwhales intheMediterraneanSeausingasimilaracousticsurveyapproach
todatausedinPirottaetal.(2011)andfoundthatanimalsdefined
asbelongingtoa‘cluster’mostlyhadanupperlimitof2.7NMof perpendiculardistancebetweenthem,whereasdispersed (single-ton)animalswereseparatedbydistancesbeyondthisthreshold. Thesizeofthelocalneighbourhoodwasdefinedina3×3(n=9) cellwindow(6NMx6NM),suchthattheedgeofthewindowwas atleast2NM(1gridcell)fromanyanimalsencounteredinthe cen-trecell.AcircularGaussianweightingkernel(w={wi|i=1,2...,9})
Fig.2.Mapcomparisonbetweenthepredictedprobabilityofoccurrencesofgroupandsingletonspermwhales.Areflectionalgorithmwasusedtocounteractinternaledge effects:(a)SimilarityInMeans(0–1);(b)SimilarityInVariance(0–1);(c)SimilarityInPatternofspatialcovariance(−1to1);and(d)StructuralSimilarityindex(−1to1).
fromthecasestudy(Section2.2.4andAppendixBin Supplemen-tary).Uncertaintyfromtheunderlyingdatawasincludedinthe mapcomparisonsusingparametricbootstrapping.Samplesfroma multivariatenormaldistributionweregeneratedusingmodel coef-ficientsandeachcovariancematrixtoproduce500realisationsof modelcoefficientsforthegroupandsingletonmodels.Thesewere usedtopredict500setsofprobabilitiesforthegroupand single-tonmodels.SSIMstatisticswerecalculatedforeachpairofmaps generatedfrombootstrappeddata.Meanandvarianceofpredicted probabilitiesineach gridcellweretakenforeachstatistic(SIM, SIV,SIP,andSSIM).Allanalysiswasconductedusingthestatistical softwarepackageR(RCoreTeam,2014),andcodeanddataused forcalculatingtheSSIMindexcanbeobtainedfromAppendicesC andDinSupplementaryrespectively.
2.2.4. Sensitivitytesting
Setsofsensitivitytestswereconductedtodemonstratehow varyingspecific(user-defined)parameterscouldpotentiallyaffect resultsofthemapcomparisonanalysisforthespermwhaledata: (1)AcircularGaussianweightingkernelwasappliedtothelocal neighbourhoodwindowvs.noweighting;(2)thesizeofthelocal neighbourhoodwasvaried,using3×3,5×5,and7×7gridcells; and(3)areflectionalgorithmtocorrectforedgeeffectswasapplied vs.noedgecorrection.ForGaussianweightingtests,thesizeofthe localneighbourhood(w)wassetat3×3gridcellsandthereflection algorithmwasimplemented.Forlocalneighbourhoodtests, Gaus-sianweightingandthereflectionalgorithmwereapplied.Foredge
effectstests,thesizeofthelocalneighbourhood(w)wassetat3×3 gridcellsandGaussianweightingwasapplied.Inalltests,=n/3 andonlymeanvaluesfromtheunderlyingmapsbeingcompared wereused.SSIMstatisticswerecalculatedforeachsetoftestsand meansandvariancesofeachstatistic(SIM,SIV,SIP,SSIM)were cal-culatedtoprovidesummarystatistics.Welchtwo-samplet-tests wereusedtocomparetheSSIMstatisticforeachsetoftests.
3. Results
Fig.3. Mapcomparisonbetweenthepredictedprobabilityofoccurrenceofgroupandsingletonspermwhalesusingbootstrappeduncertaintyfromthehabitatpreference modelsofbothsocialassemblages.Areflectionalgorithmwasusedtocounteractinternaledgeeffects:(a)SimilarityInMeans(0–1);(b)SimilarityInVariance(0–1);(c) SimilarityInPatternofspatialcovariance(−1to1);and(d)StructuralSimilarityindex(−1to1).
probabilityofoccurrence,andvaluescloseto0(red)showareas wherethevarianceisdifferent.Forexample,theareatothenorth ofMenorcashowsatransitionzonewheregroupsandsingletons areusingspacedifferently—groupshaveheterogeneous,sporadic spaceuse(i.e.highvariance),singletonsareutilisingspacein a consistent,homogeneousway(i.e.lowvariance).Fig.2cshowsthe similarityinpatterns(SIP)ofspatialcovariancebetweenthemaps. TheSIPmetricisthemostdifficulttocapturethroughvisual com-parisonofhabitatusebetweengroupsandsingletons(c.f.Figs.1a andb).Valuescloseto1(yellow)denotelocalregionswherethe spatialstructure betweenpredictedprobabilityofoccurrenceof groupsandsingletonsissimilar,meaninggridcellswithrelative highandlowvarianceareinthesamelocationsineachunderlying map.Underlyingmechanismsofdirectcompetitionforresources couldbeoccurring,for example tothenorth,east and west of Menorca,andnorthandwestofMallorca.Valuescloseto−1(red) indicateareaswherelocalspatialstructureisdissimilar,suggesting spatialpartitioningmaybeoccurring(northofMenorcainthe tran-sitionzonediscussedpreviously,andthesouthernedgeofthestudy area).Fig.2dshowsSSIM,whichistheproductoftheotherthree statistics.DifferencesinspatialstructuredetectedinSIV(Fig.2b) andSIP (Fig.2c)atthesouthernedgeof thestudyarearemain apparentintheSSIMindex.Somespatial structuralsimilarities seenthroughoutFigs.2a–ctothenorth-westandeastofMallorca, andsouth-eastofFormenteraarealsoretainedinSSIM.Themean
valueofSSIMwascalculated(SSIM=0.22),showingpositivespatial structurebetweentheunderlyingmaps.
Results incorporatinguncertainty from theunderlyingmaps intothecomparisoncalculationareprovidedinFig.3,andshow similarinferences to those in Fig.2, although each of thefour comparisonmetricsexhibitlessextremevalues.Anareaof par-ticularinterestis southof Mallorca(Fig.3c), whereSIP isclose to−1(red),characterisingdifferentspatialpatternsinhabitatuse betweengroupsandsingletons.Fig.4focusesonthisarea,whichis situatedoverthecontinentalslopeandhaspreviouslybeen iden-tifiedasafeedinggroundforspermwhales(GannierandPraca,
2007;Gannieretal.,2002).AlthoughFig.4ashowsthatbothsocial
assemblageshavesimilar(high)habitatpreference(SIMiscloseto 1),thereisstrongnegativeSIPinspecificareas(Fig.4c), indicat-inglocal-scalespatialpartitioningbetweengroupsandsingletons. Thesepatternsoccurmostlyalongbathymetriccontoursatdepths rangingbetween1000to2000m.Thespatialstructurecanbeseen inSSIM(Fig.4d).
Table 2 Results determining sensitivity of the SSIM index when user-defined parameters were varied: applying Gaussian weighting to the local neighbourhood vs. no weighting; varying the size of the local neighbourhood; and implementing the reflection algorithm vs. not countering for edge effects. Sensitivity analysis Parameters SIM SIV SIP SSIM t-test on SSIM Mean Low 95%CI Upp 95%CI Mean Low 95%CI Upp 95%CI Mean Low 95%CI Upp 95%CI Mean Low 95%CI Upp 95%CI t; p -value Weighting Gaussian weighting 0.432 − 0.183 1.048 0.741 0.169 1.313 0.654 − 0.127 1.434 0.218 − 0.293 0.729 0.06; 0.95 No Gaussian weighting 0.432 − 0.183 1.048 0.740 0.167 1.313 0.652 − 0.130 1.435 0.218 − 0.294 0.729 Local neighbourhood 3 × 3 cells 0.432 − 0.183 1.048 0.741 0.169 1.313 0.654 − 0.127 1.434 0.218 − 0.293 0.729 4.14; 0.00 5 × 5 cells 0.433 − 0.174 1.041 0.706 0.104 1.308 0.567 − 0.229 1.362 0.191 − 0.284 0.666 7 × 7 cells 0.435 − 0.169 1.039 0.684 0.063 1.306 0.515 − 0.284 1.314 0.177 − 0.279 0.633 2.34; 0.02 a Edge effects Reflection algorithm 0.432 − 0.183 1.048 0.741 0.169 1.313 0.654 − 0.127 1.434 0.218 − 0.293 0.729 0.79; 0.43 No reflection algorithm 0.435 − 0.177 1.047 0.734 0.155 1.314 0.639 − 0.150 1.427 0.212 − 0.287 0.712 a 5 × 5 Window vs. 7 × 7 were compared to give this t -test result.
whencomparing5×5and7×7tests,thereis asignificant dif-ferencebetweenSSIM(t=2.34,p-value=0.02).Whenthereflection algorithmwasnotapplied,thevalueofSSIMwasnotaffected sig-nificantlybutthere wasa reductioninthespatialextentofthe mapcomparison(asvaluesforedgecellscouldnotbecalculated) (AppendixBinSupplementary).
4. Discussion
Wehavedescribedanapproachtoobjectivelycomparespatial patternsbetweentwocontinuousvaluedmaps.Weenhancedthe originalSSIMindex(Wangetal.,2004)byincorporating uncer-taintyfromunderlyingmapsintothecomparisoncalculationand correcting for edge effects. Application of the SSIM approach, includingourenhancements,wasdemonstratedwithacasestudy using spermwhale distributiondata in theMediterranean Sea. Quantitativemapcomparisontoolsarecurrentlylimitedintheir extentandapplicationintheecologicalliterature(Hagen-Zanker,
2006b;Robertson etal.,2014), possiblybecauseecologicaldata
havecharacteristicpropertiessuchascontinuousvaluesand inher-ent spatialdependencies that make quantifyingthe underlying spatialstructure betweengeographically referencedmaps chal-lenging.Aswellasaccountingforthesecharacteristics,theSSIM indexhasseveralkeyadvantagesmakingitidealforbroader ecolog-icalapplications.First,themethodologycanbeeasilyimplemented regardlessofthepredictionorestimationmethodusedtoobtain the underlying maps. For instance, a useful application of the methodwouldbetocomparetwomapswheredifferent statisti-calmethodswereusedtoaddresssimilarquestions.Second,the SSIMindex producesa number of underlyingstatistics,as well asanoverallmeasureofsimilarityinspatialstructure. By com-paringlocalmeans,variances,andcovariancebetweenunderlying maps,differentaspectsofspatialpatternsarecharacterised, poten-tiallyprovidinginsightintounderlyingprocessesthatdrivethese patterns.Finally,thesizeofthelocalneighbourhoodinthemap comparisoncalculationisuser-defined.Priorknowledgeofspatial scaleofthedatacanbeusedtoinformthemapcomparisonanalysis, providingmoremeaningfulresults.
Dependentonthesizeofthelocalneighbourhood,edgeeffects occurwhencomparingmapsbecausenon-valuedcellsbeyondthe boundaryofthestudyareaareincluded.Toensurethemap com-parisonproducedthesamespatialextentastheunderlyingmaps,a reflectionalgorithmwaschosentocorrectforedgeeffectsbecause ofitsabilitytodealwithcomplexedgesandeaseof implementa-tion.Thealgorithmreflectedknowndataalongedgestoextrapolate outsideofthestudyarea.Alimitationofthismethodisthatitcan emphasisefine-scaleorlocalpatternsinareaswhereitis imple-mented,andsocareshouldbetakenwheninterpretingresultsclose toedgesinthestudyarea.
Thedefinitionofspatiallylocalneighbourhoodsandtheeffects oftheirsizehavebeenwellstudied(Chefaoui,2014;Longetal.,
2010;Zurlinietal.,2007).Inecology,localneighbourhoodsizemust
ecolog-Fig.4. Mapcomparisonbetweenthepredictedprobabilityofoccurrenceofgroupandsingletonspermwhalesusingbootstrappeduncertaintyfromthehabitatpreference modelsofbothsocialassemblages.Areflectionalgorithmwasusedtocounteractinternaledgeeffects.FocusingontheareaofinterestsouthofMallorca:(a)SimilarityIn Means(0–1);(b)SimilarityInVariance(0–1);(c)SimilarityInPatternofspatialcovariance(−1to1);and(d)StructuralSimilarityindex(−1to1).
ically.WerecommenduseofalocalneighbourhoodintheSSIM indexthatbearsrelationto:(1)thescaleofunderlyingdata(e.g. movementofanimals)representedinthemapsbeingcompared, (2)ecologicalquestionsbeinginvestigatedthroughmap compar-isons,and,(3)scale-dependentpatternsofunderlyingecological processesbeinginvestigated.
4.1. Casestudy
Themapcomparisonshoweddifferencesinspaceusebetween groupsandsingletonsperm whales.Theareasouth ofMallorca wasalsoidentifiedbyPirottaetal.(2011)asimportanttoboth social assemblages.Data samplingeffortwasgreatesthere and thereforegroupsandsingletonmodelssufferedlessfromsampling biasthaninotherareas.Inthisarea,bothsocialassemblageshad highpredictedprobabilityofoccurrence.Statisticaldifferencesin patternsofspace-usewereassociatedwithfine-scalefeaturesat depthsbetween1000and2000m,andtheprobabilityof occur-renceforbothsocialassemblageswaspreviouslyfoundtobedriven bybathymetricfeatures(Pirottaetal.,2011).Althoughthesexof animalsincludedinthestudywasnotverified,singletonsshowed divingbehaviourtypicalof solitarymales,andgroups ofsperm whalesaregenerallyassociatedwithadultfemalesandtheir imma-tureoffspring(Drouotetal.,2004;Whitehead,2003).Whitehead
(2003)suggestedthatreducedforagingsuccessformalesinareas
wherebothsocialassemblagesexistmaybearesultofresource
competition.Ourresultsrevealthatgroupsandsingletonsdo inter-actspatiallyinsomemutuallyexclusiveway.Thishasimplications forbothunderstandinglocalspaceuse,andinformingmore gen-eralhypothesesabouttheevolutionofextremebehaviouralsexual dimorphisminspermwhales(WhiteheadandWeilgart,2000).The resultsprovidea specific targetareasothat efficientresources canbeputinto studyingsexualsegregationof groupsand sin-gletons.Hypothesescouldbeinvestigatedtodeterminewhether patternsofmutuallyexclusive(presumed)foragingofgroupsand individualsshowstableresourcepartitioning(inwhichcaseboth socialassemblagesmaybeforagingoptimally),orwhether pat-ternsaretheresultofonesocialassemblagebeingoutcompeted andforcedtoutilisesub-optimalhabitat.Sensitivitytestsindicated thatcomparisonresultswereaffectedbyneighbourhoodsize,and anyinterpretationshouldtakeaccountofthis.
4.2. Broaderapplicationsandfurtherdevelopment
space-use. There are many applications to spatial ecology problems suchasidentifyingareasofconflictbetweenanthropogenic activ-itiesandwildlife:depredationondomesticlivestockandfarmed speciesbyapexpredators(Berlandetal.,2008;Rippleetal.,2014;
Suryawanshietal.,2013).Animportantapplicationisthe
assess-mentofchangeindistributionbetweenandwithinspecies,suchas comparingdensitymapsobtainedusingdifferentmethods(Bailey etal.,2014),assessingcompetitionandspatialsegregationbetween species (Suryawanshiet al.,2013; Wilson, 2010), and seasonal changesindistribution(Millspaughetal.,2015).
TheMarineStrategyFrameworkDirectiveusesan ecosystem-basedapproachtomanagementofanthropogenicactivitieswithin themarineenvironment(Oleninetal.,2010).Underthis frame-work,ecosystems are assessed through a set of environmental abundanceanddistributionindicatorstodetermineconservation status. Spatially-explicit indicators such as biodiversity indices (speciesrichness and diversity)present mean values over time
(Piroddietal.,2015).TheSSIMindexandenhancementspresented
herecanbeusedtoelevatetheseindicatorstoaspatio-temporal contextandassessbiodiversityovertime.Whenusedin conjunc-tionwithabundanceestimates,thesecanfurtherinformthespatial managementprocess.
Themethodologycouldbedevelopedfurther.Currently,spatial resolutionandextentofthemapsbeingcomparedmustbe regu-larlyspacedandidentical,andthecasestudyusedtodemonstrate the methodology benefitted from having these characteristics. However,comparinganimaldistributions(e.g.usinglinetransect datafromanimal sightingssurveys) mayresult invarying spa-tialresolutionandextentbecausesamplingeffortandsurveyarea canchangeovertime. AdaptingSSIMmethodologytoallowfor mapswithnon-regularlatticesandpoint-processpatternstobe compared,wouldbebeneficialfor effectiveanalyses.Forlonger time-series(Baileyetal.,2014)ormultiplespeciescomparisons
(Wilson,2010),mapcomparisonfunctionalitycouldbeextended
tocomparemorethantwomapsatonce,eithersequentially,or throughpair-wisecomparisons.
5. Conclusions
TheSSIMindexandenhancementspresentedhereoffera com-prehensivetooltoobjectivelycomparespatiallyexplicitecological datawithinan implementableframework. Anadvantageofthe SSIMindexisthatdifferentaspectsofspatialcomparisoncanbe investigated:mapsofSIM,SIV,andSIP(relatingtosimilaritiesin localmeans,variances,andcovariance,respectively)canbe calcu-latedtorevealspatialpatternsthatcannotbeseenthroughvisual inspectionoftheunderlyingmaps.TheSSIMmetricsummarises SIM,SIV,and SIP intoone mapbecausesummary statistics are oftenrequiredtocondenseinformation.Thiscanbefurther sum-marisedbycalculatingthemeanoverSSIMtogiveasinglevalue representingsimilaritybetweentheunderlyingmaps.
WepresentedenhancementstotheSSIMindexby incorporat-inguncertaintyfromtheunderlyingmapsandcorrectingforedge effectssothatthemethodologycanbebroadlyappliedtomany typesofspatialecologicaldata.Usinganecologicalcasestudyto comparegroupsandsingletonsspermwhaledistributioninthe MediterraneanSea,wedemonstratedthepresenceoflocal-scale spatialstructurethatcouldnotbedetectedeithervisuallyorusing mapsubtractiontechniques.Wefoundthatintheseareaswhere (presumed)foragingwastakingplace,singletonsand groupsof whaleswerespatiallymutuallyexclusive.Thisenabledusto rec-ommendthatfuturebehaviouralstudiesfocusingoninteractions betweensingletonsandgroups ofwhales whilstforaging could mosteffectivelybecarriedout intheareasofinterest wehave identified.
Acknowledgements
E.L.J. was funded under Scottish Government grant
MMSS001/11. Sperm whale data were collected with support from One World Wildlife, the Natural Environment Research Council(NER/I/S/2002/00632),Whaleand DolphinConservation (WDC), and J.M. Brotons of the Balearic Government Office of FisheriesManagement.L.R.wassupportedbytheMASTSpooling initiative,fundedbytheScottishFundingCouncil(HR09011)and contributinginstitutionsandtheirsupportaregratefully acknowl-edged.ThankyoutoJ.B.Illian,G.D.Ruxton,andtwoanonymous reviewersforreviewinganearlierversionofthemanuscriptand providingvaluablefeedback.Thismanuscriptpartiallyfulfilsthe PhDsubmissionofE.L.J,part-fundedbyCREEM,UniversityofSt Andrews.
Appendices. SupplementaryMaterial
Supplementarydataassociatedwiththisarticlecanbefound, intheonlineversion,athttp://dx.doi.org/10.1016/j.ecolind.2016.
05.051.
References
Bailey,H.,Hammond,P.S.,Thompson,P.M.,2014.Modellingharboursealhabitat bycombiningdatafrommultipletrackingsystems.J.Exp.Mar.Biol.Ecol.450, 30–39,http://dx.doi.org/10.1016/j.jembe.2013.10.011.
Berland,A.,Nelson,T.,Stenhouse,G.,Graham,K.,Cranston,J.,2008.Theimpactof landscapedisturbanceongrizzlybearhabitatuseintheFoothillsModelForest, Alberta,Canada.For.Ecol.Manage.256,1875–1883,http://dx.doi.org/10.1016/ j.foreco.2008.07.019.
Boots,B.,2002.Localmeasuresofspatialassociation.Ecoscience9,168–176.
Chefaoui,R.M.,2014.Landscapemetricsasindicatorsofcoastalmorphology:a multi-scaleapproach.Ecol.Indic.45,139–147,http://dx.doi.org/10.1016/j. ecolind.2014.04.004.
Cliff,A.D.,Ord,K.,1970.Spatialautocorrelation:areviewofexistingandnew measureswithapplications.Econ.Geogr.46,269–292.
DaSilva-Buttkus,P.,Marcelli,G.,Franks,S.,Stark,J.,Hardy,K.,2009.Inferring biologicalmechanismsfromspatialanalysis:predictionofalocalinhibitorin theovary.Proc.Natl.Acad.Sci.U.S.A.106,456–461,http://dx.doi.org/10. 1073/pnas.0810012106.
Drouot,V.,Gannier,A.,Goold,J.C.,2004.Summersocialdistributionofsperm whales(Physetermacrocephalus)intheMediterraneanSea.J.Mar.Biol.Assoc. UK84,675–680,http://dx.doi.org/10.1017/S0025315404009749h.
Fortin,M.J.,Dale,M.R.T.,2005.SpatialAnalysis:AGuideforEcologists.Cambridge UniversityPress,Cambridge.
Gannier,A.,Praca,E.,2007.SSTfrontsandthesummerspermwhaledistributionin thenorth-westMediterraneanSea.J.Mar.Biol.Assoc.UK87,187–193,http:// dx.doi.org/10.1017/S0025315407054689.
Gannier,A.,Drouot,V.,Goold,J.C.,2002.Distributionandrelativeabundanceof spermwhalesintheMediterraneanSea.Mar.Ecol.Prog.Ser.243,281–293.
Hagen-Zanker,A.,Lajoie,G.,2008.Neutralmodelsoflandscapechangeas benchmarksintheassessmentofmodelperformance.LandscapeUrbanPlann. 86,284–296,http://dx.doi.org/10.1016/j.landurbplan.2008.04.002.
Hagen-Zanker,A.,2006a.ComparingcontinuousValuedRasterData:ACross DisciplinaryLiteratureScan,NetherlandsEnvironmentalAssessmentAgency. ResearchInstituteforKnowledgesystems,Maastricht,TheNetherlands.
Hagen-Zanker,A.,2006b.Mapcomparisonmethodsthatsimultaneouslyaddress overlapandstructure.J.Geogr.Syst.8,165–185,http://dx.doi.org/10.1007/ s10109-006-0024-y.
Horn,H.S.,1966.Measurementofoverlapincomparativeecologicalstudies.Am. Nat.100,419–424,http://dx.doi.org/10.2307/2678832.
Jacquez,G.M.,1995.Themapcomparisonproblem:testsfortheoverlapof geographicboundaries.Stat.Med.14,2343–2361.
Leitão,P.J.,Moreira,F.,Osborne,P.E.,2011.Effectsofgeographicaldatasampling biasonhabitatmodelsofspeciesdistributions:acasestudywithsteppebirds insouthernPortugal.Int.J.Geogr.Inf.Sci.25,439–454,http://dx.doi.org/10. 1080/13658816.2010.531020.
Levine,R.S.,Yorita,K.L.,Walsh,M.C.,Reynolds,M.G.,2009.Amethodfor statisticallycomparingspatialdistributionmaps.Int.J.HealthGeogr.8,7,
http://dx.doi.org/10.1186/1476-072X-8-7.
Lewis,T.,Gillespie,D.,Lacey,C.,Matthews,J.,Danbolt,M.,Leaper,R.,McLanaghan, R.,Moscrop,a.,2007.Spermwhaleabundanceestimatesfromacousticsurveys oftheIonianSeaandStraitsofSicilyin2003.J.Mar.Biol.Assoc.UK87, 353–357,http://dx.doi.org/10.1017/S0025315407054896.
MacEachren,A.M.,1995.HowMapsWork:Representation,Visualization,and Design.TheGuilfordPress,NewYork.
McKinney,J.,Hoffmayer,E.,Wu,W.,Fulford,R.,Hendon,J.,2012.Feedinghabitatof thewhalesharkRhincodontypusinthenorthernGulfofMexicodetermined usingspeciesdistributionmodelling.Mar.Ecol.Prog.Ser.458,199–211,http:// dx.doi.org/10.3354/meps09777.
Millspaugh,J.J.,Rittenhouse,C.D.,Montgomery,R.a.,Matthews,W.S.,Slotow,R., 2015.Resourceselectionmodelingrevealspotentialconflictsinvolving reintroducedlionsinTembeElephantPark,SouthAfrica.J.Zool.296,124–132,
http://dx.doi.org/10.1111/jzo.12224.
Nelson,T.,Boots,B.,2008.Detectingspatialhotspotsinlandscapeecology. Ecography31,556–566.
Olenin,S.,Alemany,F.,Cardoso,A.,Gollasch,S.,Goulletquer,P.,Lehtiniemi,M., McCollin,T.,Minchin,D.,Miossec,L.,Ambrogi,A.,Ojaveer,H.,2010.Marine StrategyFrameworkDirective.TaskGr.2.
Penttinen,A.,Stoyan,D.,Henttonen,H.M.,1992.Markedpointprocessesinforest statistics.For.Sci.38,806–824.
Piroddi,C.,Teixeira,H.,Lynam,C.P.,Smith,C.,Alvarez,M.C.,Mazik,K.,Andonegi,E., Churilova,T.,Tedesco,L.,Chifflet,M.,Chust,G.,Galparsoro,I.,Garcia,A.C., Kämäri,M.,Kryvenko,O.,Lassalle,G.,Neville,S.,Niquil,N.,Papadopoulou,N., Rossberg,A.G.,Suslin,V.,Uyarra,M.C.,2015.Usingecologicalmodelstoassess ecosystemstatusinsupportoftheEuropeanMarineStrategyFramework Directive.Ecol.Indic.58,175–191,http://dx.doi.org/10.1016/j.ecolind.2015.05. 037.
Pirotta,E.,Matthiopoulos,J.,Mackenzie,M.L.,Scott-Hayward,L.,Rendell,L.,2011. Modellingspermwhalehabitatpreference:anovelapproachcombining transectandfollowdata.Mar.Ecol.Prog.Ser.436,257–272,http://dx.doi.org/ 10.3354/meps09236.
RCoreTeam,2014.R:Alanguageandenvironmentforstatisticalcomputing. Ripple,W.J.,Estes,J.A.,Beschta,R.L.,Wilmers,C.C.,Ritchie,E.G.,Hebblewhite,M.,
Berger,J.,Elmhagen,B.,Letnic,M.,Nelson,M.P.,Schmitz,O.J.,Smith,D.W., Wallach,A.D.,Wirsing,A.J.,2014.Statusandecologicaleffectsoftheworld’s largestcarnivores.Science343,http://dx.doi.org/10.1126/science.1241484
(1241484).
Robertson,C.,Long,J.A.,Nathoo,F.S.,Nelson,T.A.,Plouffe,C.C.F.,2014.Assessing qualityofspatialmodelsusingthestructuralsimilarityindexandposterior predictivechecks.Geogr.Anal.46,53–74,http://dx.doi.org/10.1111/gean. 12028.
Rocchini,D.,Hortal,J.,Lengyel,S.,Lobo,J.M.,Jimenez-Valverde,a.,Ricotta,C., Bacaro,G.,Chiarucci,a.,2011.Accountingforuncertaintywhenmapping speciesdistributions:theneedformapsofignorance.Prog.Phys.Geogr.35, 211–226,http://dx.doi.org/10.1177/0309133311399491.
Suryawanshi,K.R.,Bhatnagar,Y.V.,Redpath,S.,Mishra,C.,2013.People,predators andperceptions:patternsoflivestockdepredationbysnowleopardsand wolves.J.Appl.Ecol.50,550–560,http://dx.doi.org/10.1111/1365-2664.12061. Tessarolo,G.,Rangel,T.F.,Araujo,M.B.,Hortal,J.,2014.Uncertaintyassociatedwith surveydesigninspeciesdistributionmodels.Divers.Distrib.20,1258–1269,
http://dx.doi.org/10.1111/ddi.12236.
Tobler,W.R.,1965.Computationofthecorrespondenceofgeographicalpatterns. Pap.Reg.Sci.Assoc.15,131–139.
Turner,M.G.,1989.Landscapeecology:theeffectofpatternonprocess.Annu.Rev. Ecol.Syst.20,171–197,http://dx.doi.org/10.1146/annurev.es.20.110189. 001131.
Tynan,C.T.,1998.EcologicalimportanceofthesouthernboundaryoftheAntarctic circumpolarfront.Nat.Lett.392,708–710,http://dx.doi.org/10.1016/j.infsof. 2008.09.005.
Wang,Z.,Bovik,A.C.,Sheikh,H.R.,Member,S.,Simoncelli,E.P.,Member,S.,2004.
Imagequalityassessment:fromerrorvisibilitytostructuralsimilarity.IEEE Trans.ImageProcess.13,600–612.
Warren,D.L.,Glor,R.E.,Turelli,M.,2008.Environmentalnicheequivalencyversus conservatism:quantitativeapproachestonicheevolution.Evolution(N.Y.)62, 2868–2883,http://dx.doi.org/10.1111/j.1558-5646.2008.00482.x.
Whitehead,H.,Weilgart,L.,2000.Cetaceansocieties:fieldstudiesofdolphinsand whales.In:Mann,J.,Connor,R.,Tyack,P.,Whitehead,H.(Eds.),Cetacean Societies:FieldStudiesofDolphinsandWhales.UniversityofChicagoPress, Chicago,IL,USA,pp.154–172.
Whitehead,H.,2003.SpermWhales:SocialEvolutionintheOcean.Universityof ChicagoPress,Chicago,IL,USA.
Wiens,J.A.,Crawford,C.S.,Gosz,J.R.,1985.Boundarydynamics:aconceptual frameworkforstudyinglandscapeecosystems.Oikos45,421–427,http://dx. doi.org/10.2307/3565577.
Wiens,J.A.,1989.Spatialscalinginecology.Funct.Ecol.3,385–397,http://dx.doi. org/10.2307/2389612.
Wilson,R.P.,2010.Resourcepartitioningandnichehyper-volumeoverlapin free-livingPygoscelidpenguins.Funct.Ecol.24,646–657,http://dx.doi.org/10. 1111/j.1365-2435.2009.01654.x19.
Wu,J.,2004.Effectsofchangingscaleonlandscapepatternanalysis:scaling relations.LandscapeEcol.19,125–138,http://dx.doi.org/10.1023/B:LAND. 0000021711.40074.ae.
Zurlini,G.,Riitters,K.H.,Zaccarelli,N.,Petrosillo,I.,2007.Patternsofdisturbanceat multiplescalesinrealandsimulatedlandscapes.LandscapeEcol.22,705–721,