<!DOCTYPE article PUBLIC "-//NLM//DTD JATS (Z39.96) Journal Archiving and Interchange DTD v1.0 20120330//EN" "JATS-archivearticle1.dtd">
<article xmlns:xlink="http://www.w3.org/1999/xlink">
  <front>
    <journal-meta />
    <article-meta>
      <title-group>
        <article-title>A Conceptual Framework of Starlings Swarm Intelligence Intrusion Prevention for Software De ned Networks</article-title>
      </title-group>
      <contrib-group>
        <contrib contrib-type="author">
          <string-name>Karatu Musa Tanimu</string-name>
          <xref ref-type="aff" rid="aff0">0</xref>
        </contrib>
        <contrib contrib-type="author">
          <string-name>Wei Pang</string-name>
          <xref ref-type="aff" rid="aff0">0</xref>
        </contrib>
        <contrib contrib-type="author">
          <string-name>George M. Coghill</string-name>
          <xref ref-type="aff" rid="aff0">0</xref>
        </contrib>
        <aff id="aff0">
          <label>0</label>
          <institution>Department of Computing Science, University of Aberdeen</institution>
          ,
          <country country="UK">United Kingdom</country>
        </aff>
      </contrib-group>
      <fpage>2</fpage>
      <lpage>7</lpage>
      <abstract>
        <p>The idea of using the defense mechanism observed in some bird species such as starlings has not yet been exploited in the development of Intrusion Prevention Systems (IPS). Starlings are self-organized with a characteristic of collective response. Starlings as prey have a way of detecting single or multiple predatory attacks and responding to danger that may be visible to only a small fraction of individuals in the ock [1]. The ability of starlings to evade predators is associated with several factors, including murmuration, collective response and confusion e ect. These factors are detailed as follows: (1) Murmuration: this is a phenomenon that hampers predation success [2]. It follows three simple rules, namely cohesion, alignment, and separation; other rules include predator avoidance and ee behaviour [3]. (2) Collective response: this is the way the whole group responds to its environment. For gregarious animals under strong predatory pressure collective response is vital and in fact it is the hallmark of self-organized order as opposed to centralized order [4]. (3) Confusion E ect: this is a phenomenon describing that decreasing predator attack success is associated with increasing prey group size in the eye of the predator. Benedict et al [5] used a computer game style experiment to investigate the confusion e ect in threedimensions, but the authors used human predators to track and capture a target starling. In this research we conducted a similar experiment in two-dimensions with both prey and predator simulated instead of (human) predator to further investigate the confusion e ect and collective response.</p>
      </abstract>
    </article-meta>
  </front>
  <body>
    <sec id="sec-1">
      <title>Introduction</title>
      <p>{ What are the essential features of starlings that reduce success rate of
predators on them?
{ Can these features be adapted to develop a framework for Software De ned</p>
      <p>
        Network Security?
{ Can the starlings attack evasion feature inform an algorithm for intrusion
prevention in Software De ned Networks?
{ How best can this algorithm be implemented and evaluated?
Bio-inspired approaches have proved e ective as arti cial alternatives in
mitigating the de ciencies of conventional models in areas such as robotics, optimization
problems, classi cation, computer security and prediction [
        <xref ref-type="bibr" rid="ref7">7</xref>
        ]. Inherent to their
self-organisation and adaptive capabilities, bio-inspired approaches are generally
suitable for robust platforms design.
      </p>
      <p>
        Predator-prey systems (PPS) demonstrate complex relationships and
interactions between entities in which one depends on the other for food and
protection [
        <xref ref-type="bibr" rid="ref8">8</xref>
        ]. Current research on the predator-prey domain on one hand seeks to
explore the importance of behavioural and interaction attributes between two
entities and their implications. On the other hand, it focuses on functions of
individual depending on attributes within them. The former concerns evolution;
how biological systems change and adapt in time, for example the kinetochore
system's ability to learn and memorise new information, typi ed in organic
selforganisation and individual diversity [
        <xref ref-type="bibr" rid="ref9">9</xref>
        ]. In contrast, the latter relates to
exploring the dynamics in entities within a biological system, including how they
associate. Through extreme and diverse living environments, animals in nature
have developed equally extreme and diverse defense mechanism through
adaptation and collective response, to ensure their continued survival.
4
      </p>
    </sec>
    <sec id="sec-2">
      <title>Computational Modeling</title>
      <p>
        Simulation was carried out in 2D, by means of processing jar library 1,
Version 3.2 with Java NetBeans Integrated Development Environment (IDE).
Experiments were conducted with 100 starlings and one predator (peregrine
falcon). Collective response was simulated following [
        <xref ref-type="bibr" rid="ref6">6</xref>
        ], and the confusion e ect
was simulated following [
        <xref ref-type="bibr" rid="ref1">1</xref>
        ]. Here, we encode certain information in each
starling that enable it detect a predator and transmit that encoded information
with neighbours within its euclidean distance. When these neighbours receive
such information (i.e. location and velocity), they calculate the location of the
bird under predator attack and re-compute their speed and change it from
murmuration speed to conf use speed, and move in the direction and
location of the birds with the distress call. By doing so the starlings become too
many in the eye of the predator, thus, confusing the predator. The speed of the
birds depicted their tness which followed a log normal distribution Equations
as in [
        <xref ref-type="bibr" rid="ref10">10</xref>
        ]. Each Starling could identify its friends (nearest neighbours) and the
predator, and they can respond to attack situations. Once an individual
starling detects a predator it ees and if in danger of attack, it alerts neighbours
within its topological range, which triggers collective response and confusion
effect. There are two prompters to the speed of the starlings: conf usion speed =
starlingsM eanSpeed (n+1); where starlingsM eanSpeed represents average of
      </p>
      <sec id="sec-2-1">
        <title>1 https://processing.org/download/</title>
        <p>the normalized speed of the starlings population and n represents a factor that
increase the starlingsM eanSpeed and murmuration speed = starlingsM eanSpeed.
The conf usion speed is an incentive through which the starlings acquire a
certain speed due to predator attack. Once the danger is eliminated or contained
the starlings revert to murmuration speed.
5</p>
      </sec>
    </sec>
    <sec id="sec-3">
      <title>Result Analysis</title>
      <p>
        First question: What is the extent to which confusion e ect reduces predator
attack success rate?
Ten di erent experiments were carried out using di erent parameters in ten
trials, each of which has twenty attacks (F igure 1) and we tuned the parameters
of starlings interaction and adaptation to an attack situation (confusion-e ect)
to optimal values. These are: global scale, neighbourhood radius, crowd radius,
avoidance radius, cohesion radius, separation radius, predator radius, eat
radius, catch radius, starlings speed, predator speed and we ran ten experiments,
as shown in F igure 1. Also, we set our starlings speed to follow a log-normal
distribution with 2 standard deviation of their mean speed. The decision to use
log normal distribution is based on the study by Eastwood et al [
        <xref ref-type="bibr" rid="ref10">10</xref>
        ], where
the authors postulate the radar ring angle phenomenon, and proved that these
rings were produced by the dispersal of starlings from their roost at sunrise and
showed that the time interval between such departure waves varies in accordance
with a log-normal distribution. The value on each bar is the average number of
successful attack in each ten trials.
      </p>
      <p>The error bars de ne variability in the experiments which we attribute to:
physical tness of the individual bird, daily form of the bird and current wind speed.</p>
      <p>From F igure 1, we infer that there is a strong evidence that the results of our
simulation is consistent because, the error bars of the ten experiments overlap
and almost all the overlap includes the mean of the error bars, which is a strong
evidence that the results of our experiment (i.e. success rate due to confusion
e ect) is consistent. Therefore, we compute predator attack success rate as:
m
a
S =
100%;
(1)
where S denotes success in predator attack, m denotes the mean number of
attacks from the average values of ten di erent trials, and a denotes the average
number of attacks.</p>
      <p>Based on the results, we identi ed that confusion e ect reduced the success
rate of predation by about 85% in starlings simulation with Standard Error of
the Mean (SEM) = 0:297. In comparison, if a predator has 17% success rate in
twenty attempts, a predator (i.e. peregrine falcon) will have a 0.85% success rate
in a single attempt to capture a starling in a swarm, in a ratio of one to twenty.
Second question: is there an optimal neighbourhood radius at which the
confusion e ect is more e ective in reducing predator success rate and starlings
conserve energy?
Five di erent experiments were carried out using di erent parameters in ten
trials, each of which last for ve minutes as shown in F igure 2 using di erent
radii to set the topological range of the swarm. We used connectivity (graph
theory) to know the average group size within the starlings at each draw during
the experiment, and this enabled us to nd the number of successful predator
attacks and the corresponding neighbourhood size. See F igure 2 for more details.
The result shows the average predator success rate with corresponding
neighbourhood size at each radius. The error bars on the average predator success
shows the variability in the average success (SD) while those on the
neighbourhood size shows the precision of the group size (SEM). Results in F igure 2 shows
that there is an optimal neighbourhood size through which starlings can e
ectively confuse the predator without dissipating much energy (F igure 2). This
size is observed to be between seven and fourteen, which is the number that
starlings use in keeping update with the entire swarm. Therefore, we conclude
that there is a positive correlation between the optimal neighbourhood size and
the confusion e ect and that this relationship contributes to reducing predation
success rate.
6</p>
    </sec>
    <sec id="sec-4">
      <title>Conclusion and Future Work</title>
      <p>In conclusion, this research presents an in depth investigation of the starlings
murmuration and defence mechanisms particularly the confusion e ect through
computer simulation. We have discovered novel underlying information such as
the positive correlation between group size and neighbourhood radii, the rate at
which confusion e ect contribute to reduced predator success rate.
Further to this research, we will develop a meta-heuristic algorithm and set up
an experiment using virtual environment to identify the network attacks that
can best be mitigated using the algorithm to validate the performance of our
intrusion prevention framework for Software De ned Networks.</p>
      <p>Software-De ned Network (SDN) is a new and emerging area that promises
to change the way networks are designed, build and operated. It is a paradigm
shift from the traditional network architecture that is proprietary to a non
proprietary, simple and programmable network architecture. 2</p>
      <sec id="sec-4-1">
        <title>2 https://www.opennetworking.org/sdn-resources/sdn-de nition</title>
      </sec>
    </sec>
  </body>
  <back>
    <ref-list>
      <ref id="ref1">
        <mixed-citation>
          1.
          <string-name>
            <surname>Bialek</surname>
            ,
            <given-names>W.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Cavagna</surname>
            ,
            <given-names>A.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Giardina</surname>
            ,
            <given-names>I.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Mora</surname>
            ,
            <given-names>T.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Silvestri</surname>
            ,
            <given-names>E.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Viale</surname>
            ,
            <given-names>M.</given-names>
          </string-name>
          and
          <string-name>
            <surname>Walczak</surname>
            ,
            <given-names>A.M.</given-names>
          </string-name>
          ,
          <article-title>Statistical mechanics for natural ocks of birds</article-title>
          ,
          <source>Proceedings of the National Academy of Sciences of the United States of America</source>
          ,
          <volume>109</volume>
          (
          <issue>13</issue>
          ),
          <fpage>4786</fpage>
          -
          <lpage>4791</lpage>
          , (
          <year>2012</year>
          ).
        </mixed-citation>
      </ref>
      <ref id="ref2">
        <mixed-citation>
          2.
          <string-name>
            <surname>Procaccini</surname>
            ,
            <given-names>A.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Orlandi</surname>
            ,
            <given-names>A.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Cavagna</surname>
            ,
            <given-names>A.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Giardina</surname>
            ,
            <given-names>I.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Zoratto</surname>
            ,
            <given-names>F.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Santucci</surname>
            ,
            <given-names>D.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Chiarotti</surname>
            ,
            <given-names>F.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Hemelrijk</surname>
            ,
            <given-names>C.K.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Alleva</surname>
            ,
            <given-names>E.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Parisi</surname>
            ,
            <given-names>G.</given-names>
          </string-name>
          and
          <string-name>
            <surname>Carere</surname>
            ,
            <given-names>C.</given-names>
          </string-name>
          ,
          <article-title>Propagating waves in Starlings(Sturnus vulgaris), ocks under predation</article-title>
          ,
          <source>Animal Behaviour</source>
          ,
          <volume>82</volume>
          (
          <issue>4</issue>
          ),
          <fpage>759</fpage>
          -
          <lpage>765</lpage>
          , (
          <year>2011</year>
          ).
        </mixed-citation>
      </ref>
      <ref id="ref3">
        <mixed-citation>
          3.
          <string-name>
            <surname>Craig</surname>
            <given-names>W.</given-names>
          </string-name>
          <string-name>
            <surname>Reynolds</surname>
          </string-name>
          , Flocks, Herds, and
          <string-name>
            <surname>Schools</surname>
            :
            <given-names>A Distributed</given-names>
          </string-name>
          <string-name>
            <surname>Behavioural</surname>
            <given-names>Model</given-names>
          </string-name>
          ,
          <source>ACM SIGGRAPH '87 Conference Proceedings</source>
          , Anaheim, California,
          <volume>21</volume>
          (
          <issue>4</issue>
          ),
          <fpage>25</fpage>
          -
          <lpage>34</lpage>
          , (
          <year>1987</year>
          ).
        </mixed-citation>
      </ref>
      <ref id="ref4">
        <mixed-citation>
          4.
          <string-name>
            <surname>Bialek</surname>
            <given-names>W.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Cavagna</surname>
            <given-names>A.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Giardina</surname>
            <given-names>I.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Mora</surname>
            <given-names>T.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Silvestri</surname>
            <given-names>E.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Viale</surname>
            <given-names>M.</given-names>
          </string-name>
          and
          <string-name>
            <surname>Walczak A.M.</surname>
          </string-name>
          <article-title>Scale-free correlation in bird ocks</article-title>
          .
        </mixed-citation>
      </ref>
      <ref id="ref5">
        <mixed-citation>
          5.
          <string-name>
            <surname>Benedict</surname>
            <given-names>G. H.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Hanno</surname>
            <given-names>H.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Nicholas</surname>
            <given-names>E. S.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Innes</surname>
            <given-names>C. C.</given-names>
          </string-name>
          and
          <string-name>
            <surname>Charlotte</surname>
            <given-names>K. H.</given-names>
          </string-name>
          ,
          <article-title>The confusion e ect when attacking simulated three-dimensional starling ock</article-title>
          ,
          <source>Royal Society Open Science</source>
          ,
          <volume>4</volume>
          ,
          <fpage>160</fpage>
          -
          <lpage>564</lpage>
          (
          <year>2017</year>
          ).
        </mixed-citation>
      </ref>
      <ref id="ref6">
        <mixed-citation>
          6.
          <string-name>
            <surname>Reynolds</surname>
            ,
            <given-names>C.W.</given-names>
          </string-name>
          : . Flocks,
          <article-title>herds and schools: A distributed behavioral model</article-title>
          .
          <source>ACM SIGGRAPH computer graphics</source>
          ,
          <volume>21</volume>
          (
          <issue>4</issue>
          ),
          <fpage>25</fpage>
          -
          <lpage>34</lpage>
          (
          <year>1987</year>
          ).
        </mixed-citation>
      </ref>
      <ref id="ref7">
        <mixed-citation>
          7.
          <string-name>
            <surname>Beni</surname>
            <given-names>G.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Wang</surname>
            <given-names>J.</given-names>
          </string-name>
          :
          <article-title>Swarm Intelligence in Cellular Robotic Systems</article-title>
          . In: Dario P.,
          <string-name>
            <surname>Sandini</surname>
            <given-names>G.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Aebischer</surname>
            <given-names>P.</given-names>
          </string-name>
          : (eds)
          <article-title>Robots and Biological Systems: Towards a New Bionics?</article-title>
          . Springer, Berlin, Heidelberg,
          <volume>102</volume>
          (
          <issue>4</issue>
          ),
          <fpage>703</fpage>
          -
          <lpage>712</lpage>
          (
          <year>1993</year>
          ).
        </mixed-citation>
      </ref>
      <ref id="ref8">
        <mixed-citation>
          8.
          <string-name>
            <surname>Colomer</surname>
          </string-name>
          , M..,
          <string-name>
            <surname>Margalida</surname>
            ,
            <given-names>A.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Sanuy</surname>
            ,
            <given-names>D.</given-names>
          </string-name>
          and
          <string-name>
            <surname>Perez-Jimenez</surname>
            ,
            <given-names>M.J.:</given-names>
          </string-name>
          <article-title>A bio-inspired computing model as a new tool for modeling ecosystems: the avian scavengers as a case study</article-title>
          .
          <source>Ecological modelling</source>
          ,
          <volume>222</volume>
          (
          <issue>1</issue>
          ),
          <fpage>33</fpage>
          -
          <lpage>47</lpage>
          (
          <year>2011</year>
          )
        </mixed-citation>
      </ref>
      <ref id="ref9">
        <mixed-citation>
          9.
          <string-name>
            <surname>Zhou</surname>
            ,
            <given-names>X.</given-names>
          </string-name>
          ,
          <year>2009</year>
          , June. Research on
          <article-title>immune pathology in arti cial immune system</article-title>
          .
          <source>In Control and Decision Conference</source>
          , CCDC'
          <fpage>09</fpage>
          .
          <string-name>
            <surname>Chinese</surname>
          </string-name>
          ,
          <volume>1366</volume>
          -
          <fpage>1370</fpage>
          (
          <year>2009</year>
          )
        </mixed-citation>
      </ref>
      <ref id="ref10">
        <mixed-citation>
          10.
          <string-name>
            <surname>Eastwood</surname>
            ,
            <given-names>E.N.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Isted</surname>
            ,
            <given-names>G.A.</given-names>
          </string-name>
          and
          <string-name>
            <surname>Rider</surname>
          </string-name>
          , G.C.
          <article-title>Radar ring angels and the roosting behaviour of starlings</article-title>
          .
          <source>Proc. R. Soc. Lond. B</source>
          ,
          <volume>156</volume>
          (
          <issue>963</issue>
          ),
          <fpage>242</fpage>
          -
          <lpage>267</lpage>
          (
          <year>1962</year>
          ).
        </mixed-citation>
      </ref>
    </ref-list>
  </back>
</article>