<!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>Towards an Application of Graph Structure Analysis to a MAS-based model of Proxemic Distances in Pedestrian Systems</article-title>
      </title-group>
      <contrib-group>
        <aff id="aff0">
          <label>0</label>
          <institution>Lorenza Manenti, Luca Manzoni, Sara Manzoni CSAI - Complex Systems Artificial &amp; Intelligence Research Center Dipartimento di Informatica, Sistemistica e Comunicazione Universita` degli Studi di Milano - Bicocca viale Sarca 336</institution>
          ,
          <addr-line>20126, Milano</addr-line>
          ,
          <country country="IT">Italy</country>
        </aff>
      </contrib-group>
      <abstract>
        <p>-This paper proposes the use of methods for network analysis in order to study the properties of a dynamic graph that model the interaction among agents in an agent-based model. This model is based on Multi Agent System definition and simulates a multicultural crowd in which proxemics theory and distance perception are taking into account. After a discussion about complex network analysis and crowd research context, an agent-based model based on SCA*PED (Situated Cellular Agents for PEdestrian Dynamics) approach is presented, based on two separated yet interconnected layers representing different aspects of the overall system dynamics. Then, an analysis of network derived from agent interactions in the Proxemic layer is proposed, identifying characteristic structures and their meaning in the crowd analysis. At the end an analysis related to the identification of those characteristic structures in some real examples is proposed.</p>
      </abstract>
    </article-meta>
  </front>
  <body>
    <sec id="sec-1">
      <title>I. INTRODUCTION</title>
      <p>
        The analysis of networks can be traced back to the first
half of the XX century [
        <xref ref-type="bibr" rid="ref1">1</xref>
        ], with some works dating back to
the end of the XIX century [
        <xref ref-type="bibr" rid="ref2">2</xref>
        ]. Network analysis has been
proved useful in the study of social phenomena and their
applications, like rumor spreading [
        <xref ref-type="bibr" rid="ref3">3</xref>
        ], opinion formation [
        <xref ref-type="bibr" rid="ref4">4</xref>
        ],
[
        <xref ref-type="bibr" rid="ref5">5</xref>
        ] and the structure of social relation [
        <xref ref-type="bibr" rid="ref6">6</xref>
        ]. Outside the social
sciences, network analysis has been applied to study and model
the epidemic spreading process [
        <xref ref-type="bibr" rid="ref7">7</xref>
        ], the interaction between
proteins [
        <xref ref-type="bibr" rid="ref8">8</xref>
        ] and the link structure in the World Wide Web [
        <xref ref-type="bibr" rid="ref9">9</xref>
        ].
      </p>
      <p>
        The analysis of social networks is an emerging topic also
in the Multi Agent System (MAS) area [
        <xref ref-type="bibr" rid="ref10">10</xref>
        ]. Some prominent
examples of this analysis can be found in reputation and trust
systems [
        <xref ref-type="bibr" rid="ref11">11</xref>
        ] with the aim of identifying how the propagation
of trust and reputation can influence system dynamics.
      </p>
      <p>In this paper we propose an analysis of the graph structures
of a social network derived from the interaction among agents
in a MAS with the aim to support the simulation of crowd and
pedestrian dynamics. This system is based on a model that is
an extension of an agent-based approach previously presented
in the pedestrian dynamics area: in particular, we refer to</p>
      <sec id="sec-1-1">
        <title>SCA*PED approach (Situated Cellular Agents for PEdestrian</title>
      </sec>
      <sec id="sec-1-2">
        <title>Dynamics [12]).</title>
        <p>
          In this approach, according to agent-based modeling and
simulation, crowds are studied as complex systems: other
approaches consider pedestrians as moving particles subjected
to forces (i.e., Social Force models [
          <xref ref-type="bibr" rid="ref13">13</xref>
          ]) or as cells in a
cellular automata (i.e., Cellular Automata models [
          <xref ref-type="bibr" rid="ref14">14</xref>
          ]). In
the first approach the dynamic of spatial features is studied
through spatial occupancy of individuals and each pedestrian
is attracted by its goal and repelled by obstacles modeled
as forces; in the second, the environment is represented as
a regular grid where each cell has a state that indicates the
presence/absence of pedestrians and environmental obstacles.
        </p>
        <p>
          These traditional modeling approaches focus on pedestrian
dynamics with the aim of supporting decision-makers and
managers of crowded spaces and events. Differently, in the
agent-based approach, pedestrians are instead explicitly
represented as autonomous entities, where the dynamics of the
system results from local behavior among agents and their
interactions with the environment. With respect to the particle
approach, the agent-based model can deal with individual
aspects of the crowd and differences between single agents
(or groups of agents) [
          <xref ref-type="bibr" rid="ref15">15</xref>
          ]. Since those aspect can influence
the behavior of the crowd, we consider this approach more
promising even if it is computationally intensive.
        </p>
        <p>
          In this way some multidisciplinary proposals have recently
been suggested to tackle the complexity of crowd dynamics by
taking into account emotional, cultural and social interaction
concepts [
          <xref ref-type="bibr" rid="ref16">16</xref>
          ]–[
          <xref ref-type="bibr" rid="ref18">18</xref>
          ].
        </p>
        <p>
          In this paper we focus on interactions among different
kinds of agents and we study how the presence of
heterogeneities in the crowd influence its dynamics. In particular,
the model we present explicitly represents the concept of
perceived distance: despite spatial distance, perceived distance
quantifies the different perception of the same distance by
pedestrians with different cultural attitudes. In the model we
assume that pedestrians keep a certain distance between each
other following the theory proposed by Elias Canetti [
          <xref ref-type="bibr" rid="ref19">19</xref>
          ].
This distance evolves according to the situation in which the
pedestrian is: free walking, inside a crowd, inside a group in
a crowd (i.e., crowd crystal).
        </p>
        <p>
          The concept of perceived distance is strictly related to
the concept of proxemic distance: the term proxemics was
first introduced by Hall with respect to the study of set of
measurable distances between people as they interact [
          <xref ref-type="bibr" rid="ref20">20</xref>
          ],
[
          <xref ref-type="bibr" rid="ref21">21</xref>
          ]. Perceived distances depend on some elements which
characterize relationships and interactions between people:
posture and sex identifiers, sociofugal-sociopetal1 (SFP) axis,
kinesthetic factor, touching code, visual code, thermal code,
olfactory code and voice loudness.
        </p>
        <p>In order to represents spatial and perceived distances, the
proposed model represents pedestrians behaving according to
local information and knowledge on two separated yet
interconnected layers where the first (i.e., Spatial layer) describes
the environment in which pedestrian simulation is performed
and the second (i.e., Proxemic layer) represents heterogeneities
in system members on the basis of cultural differences.</p>
        <p>The methods and algorithms related to social network
analysis can be applied on the network created from interaction
among agents in the Proxemic layer. This study allows the
evaluation of dynamic comfort properties (for each pedestrian
and for the crowd) given a multicultural crowd sharing a
structured environment.</p>
        <p>The paper is organized as follow: after a description of
general SCA*PED approach, we will describe deeply each
layer of the structure. Starting from the analysis of the social
network created at Proxemic layer, we will identify relevant
structures and properties of the corresponding graph. In the
end, we will propose some examples of those structures in
real world situations.</p>
      </sec>
    </sec>
    <sec id="sec-2">
      <title>II. TWO LAYERED MODEL</title>
      <p>In this section, the proposed multi-layered model is
presented: after an introduction on SCA*PED general approach,
we will describe the Spatial and Proxemic layer focusing on
the interaction between layers and among agents.</p>
      <p>In order to model spatial and perceived distances, we
defined a constellation of interacting MAS situated on a
twolayered structure (i.e., Spatial and Proxemic layers). Following
the SCA*PED approach definition the agents are defined
as reactive agents that can change their internal state or
their position on the environment according to perception of
environmental signals and local interactions with neighboring
agents. Each MAS layer is defined by a triple</p>
      <p>hSpace; F; Ai
where Space models the environment in which the set A of
agents is situated, acts autonomously and interacts through
the propagation/perception of the set F of fields. IN particular
Space is modeled as an undirected graph of nodes p 2 P .</p>
      <p>
        A network, or graph, is a pair G = (V; E) where V is a
set of nodes and E V V is a set of edges. A graph G is
called undirected if and only if for all u; v 2 V , (u; v) 2
E , (v; u) 2 E. Otherwise the graph is called directed.
A graph can be also represented as an adjacency matrix A,
where the elements au;v of the matrix are 1 if (u; v) 2 E and
1These terms were first introduced in 1957 by H. Osmond in [
        <xref ref-type="bibr" rid="ref22">22</xref>
        ] and refer
to the different degree of tolerance of crowding.
      </p>
      <p>In the Spatial layer, each spatial agent aspa 2 Aspa emits
and exports to Proxemic layer a field to signal changes on
physical distance with respect to other agents. This means
that when an agent ay 2 Aspa enters the neighborhood of an
agent ax 2 Aspa (considering nodes adjacent to pax ), both
agents emits a field fpro with an intensity id proportional
to the spatial distance between ax and ay. In particular, ax
starts to emit a field fpro(ay) with information related to
ay and intensity idxy, and ay starts to emit a field fpro(ax)
with information related to ax and intensity idyx. Obviously,
idxy = idyx due to the symmetry property of distance and the
definition of id.</p>
      <p>When physical condition changes and one of the agents exits
the neighborhood, the emitting of the fields ends.</p>
      <p>Fields are exported into Proxemic layer and influences the
relationships and interactions between proxemic agents. In
Figure 1, a representation of the interaction between Spatial
and Proxemic layers is shown. How this field is perceived and
influences the agent interactions in the Proxemic layer, will be
described in the next section.</p>
      <sec id="sec-2-1">
        <title>B. The Proxemic Layer</title>
        <p>As previously anticipated, Proxemic layer describes the
agents behavior taking into account the dynamic perception of
neighboring pedestrians according to Proxemics theory.
Proxemic layer hosts a heterogeneous system of agents Apro where
several kinds of agents 1; ::; n represent different attitudes
of a multicultural crowd. Each type i is characterized by a
perception function perci and a value of social attitude sai.
This value takes into account proxemic categories introduced
before and indicates the attitude to sociality for that type of
agent.</p>
        <p>In this layer, space is described as a set of nodes where
each node is occupied by a proxemic agent apro 2 Apro and
connected to the corresponding node at Spatial layer. Proxemic
agents are influenced by fields imported from Spatial layer by
means of their perception function. The latter interprets the
field fpro perceived, amplifying or reducing the value of its
intensity id on the basis of sa value.</p>
        <p>When in the Spatial layer ax 2 Aspa emits a field with
information on ay, in the Proxemic layer a0x 2 i perceives
the field fpro(ay):
perci(fpro(ay)) = sai
idxy = ipxy
and a0y 2 j perceives the field fpro(ax):
percj (fpro(ax)) = saj
idyx = ipyx</p>
        <p>Values ipxy and ipyx quantify the different way to perceive
the physical distance between ax and ay from the point of
view of ax and ay respectively.</p>
        <p>Each apro 2 Apro is also characterized by a state s 2
which dynamically evolves on the basis of the perceptions of
different fpro imported from the Spatial layer. The transition
of state represents the local change of comfort value for
each agent. State change may imply also a change in the
perception: this aspect may be introduced into the model by
specifying it into the perception function (i.e., perci(fpro; s) =
(1)
(2)
perci(fpro)). In this paper we do not consider this aspect:
future works will consider this issue.</p>
        <p>In general, the state evolves according to the composition of
the different ip calculated on the basis of interactions which
take place in the Spatial layer.
where a01; ::; a0n 2 Apro are the corresponding proxemic
agents of a1; ::an 2 Aspa which belong to the neighborhood
of az 2 Aspa.</p>
        <p>After the perception and modulation of fields perceived, it
is possible to consider the relationship between i and j in (1)
and (2).</p>
        <p>If i = j the two agents belong to the same type (i.e., i =
j ) and the values ipxy and ipyx resultant from the perception
are equal (i.e., sai = saj and idxy = idyx for definition).
Otherwise, if i 6= j the two agents belong to different kinds
(i.e., i 6= j ) and the values ipxy and ipyx resultant from
the perception are different (the agents perceive their common
physical distance in different way).</p>
        <p>Proxemic relationships among agents are represented as an
undirected graph P G = (A; E) where A is the set of nodes
(i.e., agents) and E is the set of edges. The edges of P G are
dynamically modified as effect of spatial interactions occurring
at Spatial layer and social attitude sa. In particular, when a
field fpro(ay) is perceived from agent a0x with information on
ay, an edge between a0x and a0y is created. When field emission
ends due to the exit of the neighborhood by one agent, the
edge previously created is eliminated. The edge (x; y) between
nodes x and y is characterized by a weight wxy:
wxy = jipxy
ipyxj
and represents the proxemic relationships between agents ax
and ay in the Spatial layer. Obviously, only if ipxy 6= ipyx the
wxy is non null.</p>
        <p>In the next section we will introduce the basic notions on
networks and the analysis of their properties.</p>
      </sec>
    </sec>
    <sec id="sec-3">
      <title>III. BASICS NETWORK ANALYSIS</title>
      <p>In this section we introduce the basic properties and kinds
of graph used in the analysis of networks.</p>
      <p>Starting with the previous definition of graph, we can
introduce the notion of node degree. The in-degree of a
node is the number of incoming edges in the node: for
v 2 V , in(v) = jf(u; v) 2 Egj. The out-degree of a node
is the number of outgoing edges in a node: for v 2 V ,
out(v) = jf(v; u) 2 Egj. The degree deg(v) of a node v 2 V
is the sum of its in-degree and out-degree. A first simple
characterization of graphs can be done using their degree
distribution. The degree distribution P (k) of a graph G is the
ratio of nodes in the graph that have degree equal to k. For
directed graph it is useful to distinguish between the in-degree
distribution Pin(k) and the out-degree distribution Pout(k).</p>
      <p>A first property of interest in a graph is the diameter,
indicated by Diam(G). Let d(v; u) be the shortest path from
the node u to the node v. The diameter is the maximum value
assumed by d(u; v). If the graph G is not connected then the
value of the diameter is infinite. Related to the diameter is the
average shortest path length, defined as:</p>
      <p>L =</p>
      <p>1
jV j(jV j
1)</p>
      <p>X
u;v2V;v6=u
d(u; v)
As with the diameter, the average shortest path length is
infinite when the graph is not connected.</p>
      <p>
        Another measure used in the analysis of networks is the
clustering coefficient introduced by Watts and Strogatz [
        <xref ref-type="bibr" rid="ref23">23</xref>
        ].
The clustering coefficent for the node v 2 V is defined as:
c(v) =
      </p>
      <p>Pu1;u2 av;u1 au1;u2 au2;v</p>
      <p>deg(v)(deg(v) 1)
The clustering coefficient of the graph G as a whole is the
means of the clustering coefficient of the single nodes:
C =
1</p>
      <p>
        X c(v)
jV j v2V
Many variations of the clustering coefficient has been
proposed, for example to remove biases [
        <xref ref-type="bibr" rid="ref24">24</xref>
        ].
      </p>
      <p>
        A structure of particular interest is the community
structure. The concept of community has been defined in social
sciences [
        <xref ref-type="bibr" rid="ref6">6</xref>
        ]. Since a community on a graph has to correspond
to a social community, it does not have a single definition.
Intuitively a community is a subgraph whose nodes are tightly
connected. The strongest definition is that a community is
a cliche (i.e., a maximal subgraph where all the nodes are
adjacent) or a k-cliche (i.e., a maximal subgraph where all
the nodes are at a distance bounded by k). Another definition
implies that the sum of the degree of the nodes towards
other community members is greater than the sum of the
degree of the nodes towards nodes outside the community.
Other definitions have been proposed to fit particular modeling
requirements.
      </p>
      <p>
        In the study of complex networks many kinds of network
structure have been proposed:
1) RANDOM GRAPH. This is the simplest type of graph,
where pairs of nodes where connected with a certain
probability p. Unfortunately it is not able of representing
many real world phenomena;
2) “SMALL WORLD” GRAPH. In many real world
networks there exists “shortcuts” in the communication
between nodes (i.e., edges connecting otherwise distant
parts of the graph). This property is called small world
property and is present when the average shortest path
of a graph is at most logarithmic in the number of nodes
in the graph. This property is usually associated with a
high clustering factor [
        <xref ref-type="bibr" rid="ref23">23</xref>
        ];
3) FREE SCALE NETWORKS. A more in-depth study of
real networks shows that the distribution of degrees
is not a Gaussian one. The distribution emerging in
biological [
        <xref ref-type="bibr" rid="ref25">25</xref>
        ] and technological [
        <xref ref-type="bibr" rid="ref26">26</xref>
        ] contests is the
power law distribution.
      </p>
      <p>The majority of the nodes in scale-free networks have a
low degree, while a small number of nodes have a very
high degree. Those nodes are called hubs.</p>
      <p>
        Since this kind of networks is ubiquitous, there are many
studies on their properties, the possible formation
processes and their resistance to attacks and damages [
        <xref ref-type="bibr" rid="ref27">27</xref>
        ].
      </p>
      <p>
        This short introduction to network analysis is certainly not
complete. To a more in-depth introduction it is possible to
refer to one of the many survey articles [
        <xref ref-type="bibr" rid="ref27">27</xref>
        ], [
        <xref ref-type="bibr" rid="ref28">28</xref>
        ].
      </p>
      <p>In the next section we will apply those properties definitions
to the graph of the Proxemic layer of the previously defined
agent-based model.</p>
    </sec>
    <sec id="sec-4">
      <title>IV. STRUCTURES IDENTIFICATION In this section we identify the structures of interests that we expect to find in the Proxemic layer of the previously defined MAS model.</title>
      <sec id="sec-4-1">
        <title>A. Borders</title>
        <p>A first interesting study is related to the identification of
“friction zones”, where a homogeneous group of agents of
type i is encircled by agents of different type j 6= i. We
are interested in the study of the border between a group and
other agents. This structure can be interesting since we can
identify the presence of homogeneous zones in a MAS and
how those structures evolve in time and interact with other
homogeneous groups or single agents (that can belong to the
same type or a different one).</p>
        <p>Let G = (V; E) and H = (U; F ) be two undirected graph,
f 1; : : : ; ng a partition of V and f : V 7! U an injective
function. Let A ; B V such that B = V n A and that exist
A A and B B with the following properties:
i. For all v 2 A , v 2 i for some i 2 f1; : : : ; ng;
ii. For all v 2 B, v 2= i;
iii. For all v 2 A there exists u 2 B such that (v; u) 2 E
and for all u0 2 B exists v0 2 A such that (u0; v0) 2 E;
iv. For all v 2 A n A, deg(v) = 0;
v. For all u; v 2 A there exist a sequence f (u) =
f (u0); f (u1); : : : ; f (un) = f (v) in H such that</p>
        <p>A subgraph GA;B = (VA;B = A [ B; EA;B) with EA;B =
f(u; v) 2 E j u 2 A; v 2 B or u 2 B; v 2 Ag that respects
all the previous properties will be called border for the group
A . We will also call A the inner border and B the outer
border. An example of a border structure is shown in Fig. 3.</p>
        <p>Every property of the definition has an associated semantical
motivation. The first property states that a group must be
composed of agents of the same kind. The second property
declares that the agents directly outside the group must be of
a different kind (otherwise they must be part of the group).
The third property states that for each agent inside the inner
(resp. outer) border must exist at least one agent inside the
outer (resp. inner) border that is aware of its presence. The
fourth property declares that the agents of the group that are
not in the border must be isolated from the outside social
interactions. The fifth property uses a mapping function (that
can be used to map agents in the Proxemic layer to loci in the
Spatial layer) to assure that all the elements of the group are
in the same spatial location. The last property assures that we
are taking the entire group and not one subset of it.</p>
        <p>Given a border GA;B = (VA;B; EA;B) and a weight function
w, we can be interested in computing the average weight of
the border:</p>
        <p>WA;B =
1</p>
        <p>X
jEA;Bj (u;v)2EA;B
wu;v</p>
        <p>We are also interested in the average comfort of the inner
border:</p>
        <p>Cinner =
1</p>
        <p>X sv
jAj v2A
We can define Couter in the same way. We assume that the
concept of comfort previously introduced can be translated
into a set of real values, where to higher values correspond to
an higher level of comfort.</p>
        <p>We can fix two values r 2 R (a discriminating value
between low and high weights) and c 2 R (a discriminating
value between comfortable and uncomfortable states) and
obtain 4 possible situations in which a border GA;B can stand:</p>
        <sec id="sec-4-1-1">
          <title>1) WA;B r and Cinner ' Couter c.</title>
          <p>In this case the group A is uncomfortable with the
agents outside it. The outside agents are also
uncomfortable with the presence of A . The expected reaction
of the group is to close itself and to move farther from
the other agents. The agents in the outer border will also
move away from the group;</p>
        </sec>
        <sec id="sec-4-1-2">
          <title>2) WA;B r and Cinner ' Couter &gt; c.</title>
          <p>In this case the group A is comfortable with the outer
agents and the outer agents are comfortable with A .
This is a situation in which it is possible for the group
to be open with respect to the rest of the agents;</p>
        </sec>
        <sec id="sec-4-1-3">
          <title>3) WA;B &gt; r and Cinner &gt; Couter.</title>
          <p>In this case the group A is comfortable with the outer
agents but the converse is false. In this situation the outer
agents are going to increase their distance from A ;</p>
        </sec>
        <sec id="sec-4-1-4">
          <title>4) WA;B &gt; r and Cinner Couter.</title>
          <p>In this case the outer agents are comfortable with the
group A but the converse is false. In this situation A
will probably increase the distance from the outer agents
and close itself.</p>
          <p>Note that the concept of border it is also useful to identify a
group inside the MAS graph P G. Since the set A is composed
by agents of the same type that occupy a certain space, we
can use A as our definition of group.</p>
        </sec>
      </sec>
      <sec id="sec-4-2">
        <title>B. Homogeneous Spatially Located Groups</title>
        <p>Another interesting study is the individuation of
homogeneous groups of agents that are in the same spatial location.
This homogeneous spatially located group (HSL-group) of
agents is expected to behave as a unique entity, so its
individuation allows us to understand better the complex dynamics of
the whole system (due to an abstraction process on the system
components).</p>
        <p>In order to identify the structure we use a subgraph of the
inverse graph of the perception representation in the Proxemic
layer. We are doing this transformation because two agents
of the same type i cannot be connected by an edge in the
Proxemic Layer. This means that in the inverse graph they will
be connected. It is necessary to note that we must take care
of agents that are not connected but only as a consequence of
the spatial distance. Those agents must remain unconnected.
In this way we generate a graph where an edge between an
agent u and an agent v has the following semantic: “u and v
are of the same type and their spatial distance is low”.</p>
        <p>Note that this definition of HSL-group is similar to the
definition of group given previously. In fact, the former is
a generalization of the latter since it is composed by spatially
adjacent groups (under the assumption that when two agents
u and v are spatially adjacent, u perceives v and v perceives
u).</p>
        <p>We will now proceed with a formal definition of HSL-group.</p>
        <p>Let G = (V; E) be an undirected graph and g : V V 7!
f0; 1g. We call the inverted graph with respect to g the graph
G0 = (V; E0) where E0 = f(u; v) 2 (V V ) n E j g(u; v) =
1g.</p>
        <p>The graph G0 is a subgraph of the inverse of G since
we have added an auxiliary condition g. This condition
can be defined in the following way: gip(u; v) = 1 ,
maxfipu;v; ipv;ug &gt; 0 (i.e., if at least one of the agents
perceives the other one).</p>
        <p>Given G and a function g, a HSL-group is a connected
component of G0. Note that in our MAS model the graph G
is the representation of perceptions in the Proxemic layer P G
and the function g is gip. An example of HSL-group is shown
in Fig. 4.</p>
        <p>Some interesting properties that can be studied inside a
single HSL-group are:
1) the small world property, since we are interested in
how the information can be propagated inside a single
HSL-group and the influence of information propagation
in the HSL-group dynamics. Recall that small world
property implies small diameter and high clustering
coefficient. For this reason, we expect that the presence
of this property can generate a cohesion mechanism
between the components of the HSL-group, otherwise
we expect the group to be uncoordinated and to have a
short lifespan as a single entity when the movement in
the spatial layer are consistent;</p>
      </sec>
      <sec id="sec-4-3">
        <title>2) the power law degree distribution, since it implies a</title>
        <p>scale-free structure of the HSL-group. Recall that a
scale-free structure is characterized by hubs (i.e., nodes
with high degree). Because of this, we expect the hubs
of the HSL-group to be hypothetical leaders. In fact,
when this condition appears, we expect to be able to
understand the group dynamics using only the leader
behaviour;</p>
        <p>In the next section we will show some real examples where
those structures can be identified.</p>
      </sec>
    </sec>
    <sec id="sec-5">
      <title>V. REAL WORLD EXAMPLES OF GROUPS In this section we are going to analyze some photographic examples to manually extract the presence of some of the structures previously defined.</title>
      <p>In the first part we will identify a border structure inside a
photo from the Hajj (i.e., the pilgrimage towards Mecca).</p>
      <p>In the second part we will identify small HSL-groups at the
entrance of the 1912 Democratic National Convention.</p>
      <p>In Fig. 5 a particular situation during the pilgrimage towards
Mecca is shown. During the Hajj, people of a lot of different
cultures attend to the different phases of the rite. For this
reason, a partitioning in cultural groups is expected. In the
lower right part of the image there is a group of women dressed
in dark, encircled by a cordon of men dressed in white. This
cordon represents an inner border while people near the inner
border compose the outer border. The group is composed of
the cordon of men and the women. Note that since every
HSLgroup is also a group, this structure is a simple example of
HSL-group.</p>
      <sec id="sec-5-1">
        <title>B. Small HSL-groups</title>
        <p>In Fig. 6 the entrance to the 1912 Democratic National
Convention is shown. In this picture we can identify some
HSL-groups: in particular, the most evident ones are the
following:</p>
        <p>A AND D. They are composed of four and three people
respectively. In the first case the people are organized on
two pair disposed on parallel lines while in the second
case the people are aligned;
B AND C. They are composed of only one person. This is
a degenerate version of a group but, nevertheless, it still
is an interesting case due to the effects of the interaction
between a single person and a full-fledged group.
In this picture it is difficult to see large groups, but we expect
those groups to be identifiable in simulations and in monitored
events with a large number of people.</p>
      </sec>
    </sec>
    <sec id="sec-6">
      <title>VI. CONCLUSIONS AND FUTURE WORKS</title>
      <p>In this paper we have introduced a new agent-based model
for the modeling of pedestrian dynamics that includes not
only spatial structures and distances but also perceived and
proxemic distances. We have also introduced and formalized
two structures of interest that can arise from the analysis of
the network of perceived distances.</p>
      <p>We plan to implement the proposed model and the
algorithms to find the introduced structures in order to
experimentally verify the consistence of the model and the hypothesis
on the behavior of the structure introduced.</p>
      <p>This work is part of an ongoing research project with
the aim to study interaction between people in multicultural
crowds.</p>
    </sec>
    <sec id="sec-7">
      <title>ACKNOWLEDGEMENT</title>
      <p>This work is partially funded by CRYSTALS project, a
collaboration between the Center of Research Excellence in
Hajj and Omrah headed by Dr. Nabeel Koshak and the</p>
      <sec id="sec-7-1">
        <title>CSAI - Complex Systems &amp; Artificial Intelligence Research</title>
        <p>Center headed by Prof. Stefania Bandini. The aim of the
study is to investigate how the presence of heterogeneous
groups influences emergent dynamics in the Hajj pilgrimage.
Other financial supports for this paper have been done by
the University of Milano-Bicocca within the project “Fondo
d’Ateneo per la Ricerca - anno 2009”.</p>
      </sec>
    </sec>
  </body>
  <back>
    <ref-list>
      <ref id="ref1">
        <mixed-citation>
          [1]
          <string-name>
            <given-names>B.</given-names>
            <surname>Wellman</surname>
          </string-name>
          , “
          <article-title>The school child's choice of companions</article-title>
          ,
          <source>” Journal of Educational Research</source>
          , vol.
          <volume>14</volume>
          , pp.
          <fpage>126</fpage>
          -
          <lpage>132</lpage>
          ,
          <year>1926</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref2">
        <mixed-citation>
          [2]
          <string-name>
            <given-names>J. J.</given-names>
            <surname>Sylvester</surname>
          </string-name>
          , “Chemistry and algebra,
          <source>” Nature</source>
          , vol.
          <volume>17</volume>
          , p.
          <fpage>284</fpage>
          ,
          <year>1878</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref3">
        <mixed-citation>
          [3]
          <string-name>
            <given-names>W.</given-names>
            <surname>Vogels</surname>
          </string-name>
          , R. van Renesse,
          <article-title>and</article-title>
          K. Birman, “
          <article-title>The power of epidemics: robust communication for large-scale distributed systems</article-title>
          ,
          <source>” SIGCOMM Comput. Commun. Rev.</source>
          , vol.
          <volume>33</volume>
          , no.
          <issue>1</issue>
          , pp.
          <fpage>131</fpage>
          -
          <lpage>135</lpage>
          ,
          <year>2003</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref4">
        <mixed-citation>
          [4]
          <string-name>
            <given-names>E.</given-names>
            <surname>Majorana</surname>
          </string-name>
          , “
          <article-title>Il valore delle leggi statistiche nella fisica e nelle scienze sociali</article-title>
          ,
          <source>” Scientia</source>
          , vol.
          <volume>36</volume>
          , no.
          <issue>58</issue>
          , pp.
          <fpage>58</fpage>
          -
          <lpage>66</lpage>
          ,
          <year>1942</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref5">
        <mixed-citation>
          [5]
          <string-name>
            <given-names>K.</given-names>
            <surname>Sznajd-Weron</surname>
          </string-name>
          and
          <string-name>
            <given-names>J.</given-names>
            <surname>Sznajd</surname>
          </string-name>
          , “
          <article-title>Opinion evolution in closed community</article-title>
          ,”
          <source>Internation Journal of Modern Physics C</source>
          , vol.
          <volume>11</volume>
          , pp.
          <fpage>1157</fpage>
          -
          <lpage>1165</lpage>
          ,
          <year>2000</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref6">
        <mixed-citation>
          [6]
          <string-name>
            <given-names>S.</given-names>
            <surname>Wasserman</surname>
          </string-name>
          and
          <string-name>
            <given-names>K.</given-names>
            <surname>Faust</surname>
          </string-name>
          ,
          <article-title>Social Network Analysis: methods and applications</article-title>
          . Cambridge Unoiversity Press,
          <year>1994</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref7">
        <mixed-citation>
          [7]
          <string-name>
            <given-names>N. T. J.</given-names>
            <surname>Bailey</surname>
          </string-name>
          ,
          <source>The Mathematical Theory of Infectious Diseases</source>
          , 2nd ed. New York: Hafner,
          <year>1975</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref8">
        <mixed-citation>
          [8]
          <string-name>
            <given-names>B.</given-names>
            <surname>Vogelstein</surname>
          </string-name>
          ,
          <string-name>
            <given-names>D.</given-names>
            <surname>Lane</surname>
          </string-name>
          ,
          <article-title>and</article-title>
          <string-name>
            <given-names>A. J.</given-names>
            <surname>Levine</surname>
          </string-name>
          , “
          <article-title>Surfing the p53 network,” Nature</article-title>
          , vol.
          <volume>408</volume>
          , pp.
          <fpage>307</fpage>
          -
          <lpage>310</lpage>
          ,
          <year>2000</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref9">
        <mixed-citation>
          [9]
          <string-name>
            <given-names>R.</given-names>
            <surname>Albert</surname>
          </string-name>
          ,
          <string-name>
            <given-names>H.</given-names>
            <surname>Jeong</surname>
          </string-name>
          , and A.
          <string-name>
            <surname>-L. Barabasi</surname>
          </string-name>
          , “
          <article-title>The diameter of the www</article-title>
          ,
          <source>” Nature</source>
          , vol.
          <volume>401</volume>
          , pp.
          <fpage>130</fpage>
          -
          <lpage>131</lpage>
          ,
          <year>1999</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref10">
        <mixed-citation>
          [10]
          <string-name>
            <given-names>P.</given-names>
            <surname>Iravani</surname>
          </string-name>
          ,
          <article-title>“Multi-level network analysis of multi-agent systems</article-title>
          ,” in RoboCup 2008:
          <article-title>Robot Soccer World Cup XII, ser</article-title>
          .
          <source>Lecture Notes in Computer Science</source>
          . Berlin: Springer,
          <year>2009</year>
          , pp.
          <fpage>495</fpage>
          -
          <lpage>506</lpage>
          .
        </mixed-citation>
      </ref>
      <ref id="ref11">
        <mixed-citation>
          [11]
          <string-name>
            <given-names>J.</given-names>
            <surname>Sabater</surname>
          </string-name>
          and
          <string-name>
            <given-names>C.</given-names>
            <surname>Sierra</surname>
          </string-name>
          , “
          <article-title>Reputation and social network analysis in multi-agent systems,” in AAMAS '02: Proceedings of the first international joint conference on Autonomous agents and multiagent systems</article-title>
          . New York, NY, USA: ACM,
          <year>2002</year>
          , pp.
          <fpage>475</fpage>
          -
          <lpage>482</lpage>
          .
        </mixed-citation>
      </ref>
      <ref id="ref12">
        <mixed-citation>
          [12]
          <string-name>
            <given-names>S.</given-names>
            <surname>Bandini</surname>
          </string-name>
          ,
          <string-name>
            <given-names>S.</given-names>
            <surname>Manzoni</surname>
          </string-name>
          , and G. Vizzari, “
          <article-title>Situated cellular agents a model to simulate crowding dynamics,” Special Issue on Cellular Automata</article-title>
          , vol. E87-D, pp.
          <fpage>669</fpage>
          -
          <lpage>676</lpage>
          ,
          <year>2004</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref13">
        <mixed-citation>
          [13]
          <string-name>
            <given-names>D.</given-names>
            <surname>Helbing</surname>
          </string-name>
          and P. Molna`r, “
          <article-title>Social force model for pedestrian dynamics</article-title>
          ,”
          <string-name>
            <surname>Phisical Review</surname>
            <given-names>E</given-names>
          </string-name>
          , vol.
          <volume>51</volume>
          (
          <issue>5</issue>
          ), pp.
          <fpage>4282</fpage>
          -
          <lpage>4286</lpage>
          ,
          <year>1995</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref14">
        <mixed-citation>
          [14]
          <string-name>
            <given-names>A.</given-names>
            <surname>Schadschneider</surname>
          </string-name>
          , Pedestrian and
          <string-name>
            <given-names>Evacuation</given-names>
            <surname>Dynamics</surname>
          </string-name>
          .
          <source>SpringerVerlag</source>
          ,
          <year>2002</year>
          , ch. Cellular Automaton Approach to Pedestrian DynamicsTheory, pp.
          <fpage>75</fpage>
          -
          <lpage>85</lpage>
          .
        </mixed-citation>
      </ref>
      <ref id="ref15">
        <mixed-citation>
          [15]
          <string-name>
            <given-names>F.</given-names>
            <surname>Klu</surname>
          </string-name>
          <article-title>¨gl and</article-title>
          G. Rindsfu¨ser, “
          <article-title>Large-scale agent-based pedestrian simulation</article-title>
          ,”
          <source>in MATES '07: Proceedings of the 5th German conference on Multiagent System Technologies</source>
          . Berlin, Heidelberg: Springer-Verlag,
          <year>2007</year>
          , pp.
          <fpage>145</fpage>
          -
          <lpage>156</lpage>
          .
        </mixed-citation>
      </ref>
      <ref id="ref16">
        <mixed-citation>
          [16]
          <string-name>
            <given-names>A.</given-names>
            <surname>Adamatzky</surname>
          </string-name>
          , Dynamics of Crowds Minds. World Scientific,
          <year>2005</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref17">
        <mixed-citation>
          [17]
          <string-name>
            <given-names>J.</given-names>
            <surname>Was</surname>
          </string-name>
          ,
          <article-title>“Multi-agent frame of social distances model,”</article-title>
          <source>in ACRI '08: Proceedings of the 8th international conference on Cellular Automata for Reseach and Industry</source>
          . Berlin, Heidelberg: Springer-Verlag,
          <year>2008</year>
          , pp.
          <fpage>567</fpage>
          -
          <lpage>570</lpage>
          .
        </mixed-citation>
      </ref>
      <ref id="ref18">
        <mixed-citation>
          [18]
          <string-name>
            <given-names>M.</given-names>
            <surname>Moussa</surname>
          </string-name>
          <article-title>¨ıd</article-title>
          , S. Garnier, G. Theraulaz, and
          <string-name>
            <given-names>D.</given-names>
            <surname>Helbing</surname>
          </string-name>
          , “
          <article-title>Collective information processing and pattern formation in swarms, flocks</article-title>
          , and crowds,
          <source>” Topics in Cognitive Science</source>
          , vol.
          <volume>1</volume>
          , no.
          <issue>3</issue>
          , pp.
          <fpage>1</fpage>
          -
          <lpage>29</lpage>
          ,
          <year>2009</year>
          . [Online]. Available: http://dx.doi.org/10.1111/j.1756-
          <fpage>8765</fpage>
          .
          <year>2009</year>
          .
          <volume>01028</volume>
          .x
        </mixed-citation>
      </ref>
      <ref id="ref19">
        <mixed-citation>
          [19]
          <string-name>
            <given-names>E.</given-names>
            <surname>Canetti</surname>
          </string-name>
          , Crowds and Power. New York: Paperback,
          <year>1984</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref20">
        <mixed-citation>
          [20]
          <string-name>
            <given-names>E. T.</given-names>
            <surname>Hall</surname>
          </string-name>
          ,
          <source>The Hidden Dimension. Doubleday</source>
          ,
          <year>1966</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref21">
        <mixed-citation>
          [21]
          <article-title>--, “A system for the notation of proxemic behavior</article-title>
          ,” American Antropologist, New Series, vol.
          <volume>65</volume>
          (
          <issue>5</issue>
          ), pp.
          <fpage>75</fpage>
          -
          <lpage>85</lpage>
          ,
          <year>1963</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref22">
        <mixed-citation>
          [22]
          <string-name>
            <given-names>H.</given-names>
            <surname>Osmond</surname>
          </string-name>
          , “
          <article-title>Function as the basis of psychiatric ward design,” Mental Hospitals</article-title>
          , vol.
          <volume>8</volume>
          , pp.
          <fpage>23</fpage>
          -
          <lpage>29</lpage>
          ,
          <year>1957</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref23">
        <mixed-citation>
          [23]
          <string-name>
            <given-names>D. J.</given-names>
            <surname>Watts</surname>
          </string-name>
          and
          <string-name>
            <given-names>S. H.</given-names>
            <surname>Strogatz</surname>
          </string-name>
          , “
          <article-title>Collective dynamics of “small-world” networks,”</article-title>
          <source>Nature</source>
          , vol.
          <volume>393</volume>
          , pp.
          <fpage>409</fpage>
          -
          <lpage>410</lpage>
          ,
          <year>1998</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref24">
        <mixed-citation>
          [24]
          <string-name>
            <given-names>S. N.</given-names>
            <surname>Soffer</surname>
          </string-name>
          and
          <string-name>
            <given-names>A.</given-names>
            <surname>Va</surname>
          </string-name>
          <article-title>´zquez, “Network clustering coefficient without degree-correlation biases</article-title>
          ,
          <source>” Phys. Rev. E</source>
          , vol.
          <volume>71</volume>
          , no.
          <issue>5</issue>
          , p.
          <fpage>057101</fpage>
          , May
          <year>2005</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref25">
        <mixed-citation>
          [25]
          <string-name>
            <given-names>H.</given-names>
            <surname>Jeong</surname>
          </string-name>
          ,
          <string-name>
            <given-names>S. P.</given-names>
            <surname>Mason</surname>
          </string-name>
          ,
          <string-name>
            <given-names>A. L.</given-names>
            <surname>Barabasi</surname>
          </string-name>
          , and
          <string-name>
            <given-names>Z. N.</given-names>
            <surname>Oltvai</surname>
          </string-name>
          , “
          <article-title>Lethality nad centrality in protein networks</article-title>
          ,
          <source>” Nature</source>
          , vol.
          <volume>411</volume>
          , pp.
          <fpage>41</fpage>
          -
          <lpage>42</lpage>
          ,
          <year>2001</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref26">
        <mixed-citation>
          [26]
          <string-name>
            <given-names>R.</given-names>
            <surname>Pastor-Satorras</surname>
          </string-name>
          and
          <string-name>
            <given-names>A.</given-names>
            <surname>Vespignani</surname>
          </string-name>
          ,
          <article-title>Evolution and Structure of the Internet: A Statistical Physics Approach</article-title>
          . Cambridge: Cambridge University Press,
          <year>2004</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref27">
        <mixed-citation>
          [27]
          <string-name>
            <given-names>S.</given-names>
            <surname>Boccaletti</surname>
          </string-name>
          ,
          <string-name>
            <given-names>V.</given-names>
            <surname>Latora</surname>
          </string-name>
          ,
          <string-name>
            <given-names>Y.</given-names>
            <surname>Moreno</surname>
          </string-name>
          ,
          <string-name>
            <given-names>M.</given-names>
            <surname>Chavez</surname>
          </string-name>
          , and D.-U. Hwang, “
          <article-title>Complex networks: Structure and dynamics</article-title>
          ,
          <source>” Physics Reports</source>
          , vol.
          <volume>424</volume>
          , no.
          <issue>4-5</issue>
          , pp.
          <fpage>175</fpage>
          -
          <lpage>308</lpage>
          ,
          <year>2006</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref28">
        <mixed-citation>
          [28]
          <string-name>
            <given-names>M. E. J.</given-names>
            <surname>Newman</surname>
          </string-name>
          , “
          <article-title>The structure and function of complex networks</article-title>
          ,
          <source>” SIAM Review</source>
          , vol.
          <volume>45</volume>
          , pp.
          <fpage>167</fpage>
          -
          <lpage>256</lpage>
          ,
          <year>2003</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref29">
        <mixed-citation>
          [29]
          <string-name>
            <given-names>S.</given-names>
            <surname>Bandini</surname>
          </string-name>
          ,
          <string-name>
            <given-names>S.</given-names>
            <surname>Manzoni</surname>
          </string-name>
          , and G. Vizzari,
          <source>Encyclopedia of Complexity and Systems Science</source>
          . Springer,
          <year>2009</year>
          , ch.
          <source>Agent Based Modeling and Simulation</source>
          , pp.
          <fpage>184</fpage>
          -
          <lpage>197</lpage>
          .
        </mixed-citation>
      </ref>
      <ref id="ref30">
        <mixed-citation>
          [30]
          <string-name>
            <given-names>A.</given-names>
            <surname>Demers</surname>
          </string-name>
          ,
          <string-name>
            <given-names>D.</given-names>
            <surname>Greene</surname>
          </string-name>
          ,
          <string-name>
            <given-names>C.</given-names>
            <surname>Hauser</surname>
          </string-name>
          ,
          <string-name>
            <given-names>W.</given-names>
            <surname>Irish</surname>
          </string-name>
          ,
          <string-name>
            <given-names>J.</given-names>
            <surname>Larson</surname>
          </string-name>
          ,
          <string-name>
            <given-names>S.</given-names>
            <surname>Shenker</surname>
          </string-name>
          ,
          <string-name>
            <given-names>H.</given-names>
            <surname>Sturgis</surname>
          </string-name>
          ,
          <string-name>
            <given-names>D.</given-names>
            <surname>Swinehart</surname>
          </string-name>
          , and
          <string-name>
            <given-names>D.</given-names>
            <surname>Terry</surname>
          </string-name>
          , “
          <article-title>Epidemic algorithms for replicated database maintenance,” in PODC '87: Proceedings of the sixth annual ACM Symposium on Principles of distributed computing</article-title>
          . New York, NY, USA: ACM,
          <year>1987</year>
          , pp.
          <fpage>1</fpage>
          -
          <lpage>12</lpage>
          .
        </mixed-citation>
      </ref>
    </ref-list>
  </back>
</article>