TOWARD THE AUTOMATED DETECTION OF EMERGENT BEHAVIOR

Claudia Szabo and Lachlan Birdsey

School of Computer Science, The University of Adelaide, Adelaide, SA, 5005, Australia

INTRODUCTION

Complex systems often exhibit behavior that cannot be reduced to the behavior of their individual components alone and require thorough analysis once unexpected properties are observed (Davis, 2005; Johnson, 2006; Mogul, 2006). These emergent properties are becoming crucial as systems grow both in size (with respect to the number of components and their behavior and states) and in coupling and geographic distribution (Johnson, 2006; Mogul, 2006; Bedau, 1997; Holland, 1999). Due to significant research interest in the past decades, a plethora of emergent properties examples, from flocks of birds, ant colonies, to the appearance of life and of traffic jams, has been observed and identified. In software systems, connection patterns have been observed in data extracted from social networks (Chi, 2009) and trends often emerge in big data analytics (Fayyad and Uthurusamy, 2002). More malign examples of emergent behavior include power supply variation in smart grids due to provider competition (Chan et al ., 2010), the Ethernet capture effect in computer networks (Ramakrishnan and Yang, 1994), and load-balancer failures in a multi-tiered distributed system (Mogul, 2006). As emergent properties may have undesired and unpredictable consequences (Mogul, 2006; Ramakrishnan and Yang, 1994; Floyd and Jacobson, 1993), systems that exhibit such behaviors become less credible and difficult to manage.

Although emergent properties have been the focus of research since the 1970s (Bedau, 1997; Holland, 1999; Cilliers, 1998; Gardner, 1970; Seth, 2008), very few methods for their identification, classification, and analysis exist (Seth, 2008; Chen et al ., 2007; Kubik, 2003; Szabo and Teo, 2012; Brown and Goodrich, 2014). Moreover, existing methods are usually employed only on simplified examples that are rarely found in real life. For example, the flock of birds model suggests that flocks result from the birds obeying three rules, as opposed to the myriad rules that affect flocking in real life. Approaches can be classified broadly from two orthogonal perspectives. In the first perspective, approaches propose to identify emergence as it happens (Kubik, 2003; Szabo and Teo, 2012) and aim to use formal or meta-models of calculated composed model states. Toward this, a key issue remains in the identification of variables or attributes that describe the system components, or the micro-level , and the system as a whole, or the macro-level , and the relationships and dependencies between these two levels. These definitions allow the specification of emergence as the set difference between macro-level and the micro-level but are difficult to capture and computationally expensive to calculate.

In contrast, the second perspective uses a definition of a known or observed emergent property and aims to identify its cause, in terms of the states of system components and their interaction (Seth, 2008; Chen et al ., 2007). A key issue when using this post-mortem perspective is that a prior observation of an emergent property is required and that emergent properties need to be defined in such a way that the macro-level can be reduced or traced back to the micro-level. Moreover, current approaches (Seth, 2008; Chen et al ., 2007; Kubik, 2003; Brown and Goodrich, 2014) are demonstrated using simple models such as Flock of Birds or Predator-Prey, which have limiting assumptions and constraints when applied to more complex systems. For example, most approaches do not consider mobile agents (Kubik, 2003), assume unfeasible a priori specifications and definitions of emergent properties (Szabo and Teo, 2012), or do not scale beyond models with a small number of agents (Teo et al ., 2013). In the multi-agent systems community, approaches focus more on the engineering of systems to exhibit beneficial emergent behavior and less on its identification (Bernon et al ., 2003; Jacyno et al ., 2009; Salazar et al ., 2011). Moreover, approaches that engineer emergent behavior do not ensure that no other side effects occur as a consequence.

In this chapter, we propose architecture to identify and analyze potential emergent behaviors in multi-agent systems as they happen. We analyze a multi-agent system as it is executing and record system snapshots. These snapshots are then compared with previously recorded instances of emergent behavior according to our pre-defined distance functions. If current snapshots are similar, then the system state is highlighted to the system expert for further analysis. Our proposed architecture is extensible and permits the collection and aggregation of several metrics that have been shown in the literature to indicate emergence (Kubik, 2003; Chan, 2011a; Shalizi, 2006; Szabo and Teo, 2013; Brown and Goodrich, 2014). Examples of such metrics include measures of interaction (Chan, 2011a) and Statistical Complexity (Shalizi, 2006) among others. In this chapter, we focus on three metrics, namely, Hausdorff distance (Birdsey and Szabo, 2014), Active Hausdorff distance, and Statistical Complexity.

In this chapter, we define and implement three metrics, namely, Hausdorff distance, Active Hausdorff distance, and Statistical Complexity, all of which can detect emergence. Hausdorff distance (Huttenlocher et al ., 1993) and Active Hausdorff distance determine the similarity of interaction graphs (IGs), with Active Hausdorff taking advantage of the interactions between agents. Statistical Complexity is used to determine the amount of information entropy in an interaction graph. To test Hausdorff distance, Active Hausdorff distance, and Statistical Complexity, we implemented the Flock of Birds, Game of Life, and Predator-Prey models and performed experiments over several configurations of these systems.

OVERVIEW OF EXISTING WORK

Complex systems are omnipresent in today's world. They exist in nearly every facet of life, from biological systems (Odell, 1998) to the technological (Odell, 1998; Johnson, 2006). Over the last few decades, a significant body of research has been undertaken to classify many of the unexpected behaviors that a complex system produces (Johnson, 2006; Mogul, 2006; Odell, 1998; Fromm, 2006). Early research into emergence carried out by Holland (1999) and Bedau (1997) has assisted in defining key terms such as weak and strong emergence as well as defining such terms in different degrees (Holland, 2007). In this chapter, we consider weak emergence as being the macro-level behavior that is a result of micro-level component interactions and strong emergence as the macro-level feedback or causation on the micro-level .

Bedau (1997) states that an emergent property can be defined as “a property of assemblage that could not be predicted by examining the components individually.” Emergence can be seen in many real-world systems such as technological and nature-driven systems. For example, the neurons in the brain individually fire impulses but together form an emergent state of consciousness (Odell, 1998). The flocking of birds is a well-known example of emergent behavior in nature. Independent birds aggregate around an invisible center and fly at the same speed for flock creation. The birds come together to create something that would be entirely indiscernible by studying only one or two birds. Two key examples of systems where emergent behavior is caused by interactions are the Flock of Birds model (Reynolds, 1987) and the cellular automata Game of Life model (Gardner, 1970). The former achieves its emergent properties through each bird flocking around a perceived flock center, whereas in the latter model, the emergent properties are achieved by the patterns that are formed by the cells' transitions between states. Studies that propose various processes of detecting and identifying emergent behavior mainly use either one or both of these systems to prove the validity of their proposed approach (Chan et al ., 2010; Seth, 2008; Szabo and Teo, 2013; Chan, 2011a).

Multi-agent systems are a useful formalism to model complex systems. The components present in a complex system can be modeled as agents that perform their respective actions and interactions. The modeling of these components as agents allows for unnecessary information to be abstracted away leaving only the actions and interactions needed for a particular outcome. These agent-based models are then used in simulations to assist with research and analysis (Johnson, 2006). Multi-agent systems can be engineered to exhibit emergent properties (Fromm, 2006; Savarimuthu et al ., 2007). Several formalisms have been proposed to obtain or engineer emergent behavior, such as the DEVS extension proposed by Mittal (2013) and Birdsey et al . (2016), but they have yet to be employed in practice. By creating models where emergence is an easily attainable product derived from agents' interactions, users are relieved from having to model every aspect of the complex system under study. Multi-agent systems that have been designed to exhibit emergence are usually engineered to focus on self-organization and co-operation between agents. These systems generally rely on a system expert to identify the emergent behavior (Jacyno et al ., 2009; Salazar et al ., 2011; Savarimuthu et al ., 2007). For example, human societies and the myriad ways that emergent properties can arise are generally modeled using this approach in order to study aspects such as norm emergence (Jacyno et al ., 2009; Savarimuthu et al ., 2007).

Chan et al . (2010) highlights that agent-based simulation is the most suitable method for modeling systems containing unexpected or emergent behaviors because it emphasizes that the actions and interactions between agents are the main causes for emergent behaviors. Several works support the use of agent-based modeling for studying emergent behaviors (Salazar et al ., 2011; Fromm, 2006; Pereira et al ., 2012; Serugendo et al ., 2006). In addition to the Flock of Birds and Game of Life models, Chan et al . (2010) show that other complex systems such as social networks and electricity markets, implemented within an agent-based simulation, can exhibit emergent properties, which can then be identified. The methods in Chan et al . (2010) for detecting emergence rely upon the presence of a system expert, who can identify the emergent behavior.

Considerable research has been done in developing methods for the detection of emergence, and as discussed above, existing methods assess emergence in either a post-mortem setting or a live setting (Szabo and Teo, 2012). Post-mortem analysis methods are applied after the system under study has finished executing and use data that were recorded during the execution (Szabo and Teo, 2012, 2013). In contrast, live analysis methods are used while the system under study is executing (Szabo and Teo, 2012; Chan, 2011a). Most existing works focus on post-mortem analysis methods (Szabo and Teo, 2013; Chen et al ., 2009; Tang and Mao, 2014). In addition to post-mortem and live analysis, methods can be classified into three main types (Teo et al ., 2013): grammar-based (Szabo and Teo, 2013; Kubik, 2003), event-based (Chen et al ., 2007), or variable-based (Seth, 2008; Szabo and Teo, 2013; Tang and Mao, 2014).

Some forms of live analysis involve grammar-based methods . These attempt to identify emergence in multi-agent systems by using two grammars, c011-math-0001 and c011-math-0002 . Kubik (2003) defines that c011-math-0003 describes the properties of the system as a whole and c011-math-0004 describes the properties obtained from the reunion of the parts and, in turn, produces emergence as the difference between the two solutions. c011-math-0005 and c011-math-0006 can be easily calculated as the sets of words that are constructed from the output of agent behavior descriptions. This method does not require a prior observation of the system in order to identify possible emergent properties or behaviors, which therefore makes it suitable for large-scale models where such observations are notoriously difficult (Teo et al ., 2013). However, as grammars require a formation of words , the process through which these words are formalized can suffer badly as the model grows in scope, leading to computational issues, especially for large-scale systems (Teo et al ., 2013; Kubik, 2003). To address this, some works attempt to identify micro -level properties and model interaction and performing reconstructability analysis on this data (Szabo and Teo, 2013); however, this analysis is required to take place in a post-mortem context.

Some forms of post-mortem analysis involve event-based methods , in which behavior is defined as a series of both simple and complex events that changed the system state, as defined by Chen et al . (2007). Complex events are defined as compositions of simple atomic events where a simple event is a change in state of specific variables over some non-negative duration of time. These state changes, or state transitions, are also defined by a set of rules. Each emergent property is defined manually by a system expert as a complex event. It is the particular sequence of both complex and simple events in a system that leads to emergence occurring in the system. However, this method relies heavily on the system experts and their specific definitions. Furthermore, it can suffer from both agent and state-space explosion, making it unsuitable for large systems.

In variable-based methods , a specific variable or metric is chosen to describe emergence. Changes in the values of this variable signify the presence of emergent properties (Seth, 2008). The center of mass of a bird flock could be used as an example of emergence in bird flocking behavior, as shown in Seth (2008). Seth's approach uses Granger causality to establish the relationships between a macro-variable and micro-variables and proposes the metric of G-Emergence, a near- live analysis method. This has the advantage of providing a process for emergence identification that is relatively easy to implement. However, the approach requires system expert knowledge as observations must be defined for each system. Szabo and Teo (2013) proposed the use of reconstructability analysis to determine which components interacted to cause a particular emergent property (defined through a set of variables). They identified the interactions that cause birds to flock (Reynolds, 1987), the cells that cause the glider pattern in Conway's Game of Life (Gardner, 1970), and the causes of traffic jams. However, their method is heavily dependent on the choice of the variable set that represents the micro- and macro-levels and requires the intervention of a system expert.

Variable-based methods from other fields, such as information theory and machine learning, have been adapted with the goal of emergence detection. Information theory approaches for detecting emergence have also been proposed by using such techniques as Shannon Entropy (Gershenson and Fernandez, 2012; Prokopenko et al ., 2009; Tang and Mao, 2014) and variety (Holland, 2007; Yaneer, 2004). These have advantages over other variable-based methods in that they can process large amounts of data efficiently. Tang and Mao (2014) proposed measures of relative entropy that depend on the main emergent property of a system under study. However, these methods require the input of a system expert because they rely on the emergent property of a system being classified along with a specific function to be defined for that particular property. Machine learning classification techniques have also been proposed as a way of detecting emergence. A variant of Bayesian classification (Brown and Goodrich, 2014) has been used to successfully detect swarming and flocking behavior in biological systems such as the flock of birds model (Reynolds, 1987). This approach involves identifying key features of an agent, such as how many neighbors an agent has, and uses this information to determine the likelihood that a random set of agents is exhibiting emergence. Other methods from machine learning have been utilized, such as Conditional Random Fields and Hidden Markov Models in Vail et al . (2007), but with the goal of activity recognition in domain-specific contexts. Vail et al . used Conditional Random Fields and Hidden Markov Models somewhat successfully to determine if agents were performing a particular distinct action based on their relational position to other agents.

In summary, a substantial number of methods for detecting emergence both in a live or post-mortem capacity exists. However, prior research has three main shortcomings. Firstly, many of the devised methods rely on a system expert for a definition of emergent behavior. This implies that a true autonomous method for detection has not yet been achieved. Secondly, the testing and validation of these methods is always performed on a restricted number of models, usually the Flock of Birds model and the Game of Life model. Although these are two important models in the study of emergence, there are many types of multi-agent systems that possess extremely different properties and therefore the methods may prove to be limited. Thirdly, although there has been research into developing an integrated approach for detection of emergence (Teo and Szabo, 2008), it has focused on post-mortem methods. It is clear that live methods possess benefits over post-mortem methods. Aside from being able to detect emergence as it is occurring, live methods do not require a prior observation of an emergent property in the system under study and require very little system expert input.

IDENTIFYING EMERGENCE USING INTERACTION GRAPHS

Our proposed architecture for identifying emergent behavior as it happens focuses on employing a wide variety of metrics in the analysis of unexpected behavior. The proposed architecture relies on the use of multi-agent system simulation as the fundamental methodology for system analysis and is divided into three main components, namely, (i) Modeling and Simulation , (ii) Metric Collection , and (iii) Analysis and Visualization , as shown in Figure 11.1 .

  1. Modeling and simulation : The system under study is implemented as an agent-based model for use in agent-based simulation software tools, for example, Repast (2017). This requires the explicit definition of agents, agent states, and agent interactions. Connected to the simulation software is a tool, the SnapshotTaker , that takes snapshots at certain specified time periods.

  2. Metric collection : The Metric Collection modules are responsible for the acquisition and interpretation of snapshot data collected by the SnapshotTaker . A meta-model describing the data and how it is collected and calculated drive this process. As our architecture is designed to be used with different simulation software, the Metric Collection phase requires a configuration file. This file dictates how the data received by the SnapshotTaker is to be transformed into an appropriate format to be used by the Analysis and Visualization modules. For example, if the simulation software outputs read-only log data, the configuration file informs the SnapshotTaker how to transform the data to conform to the system meta-model.

  3. Interaction graphs : In any multi-agent system, it is possible to discern and place interactions into three categories independent of the system under study (Chan, 2011b):

    1. 1. Information poll :

      Agent c011-math-0007 needs to obtain information about c011-math-0008 to make a calculation. c011-math-0009 acquires the information without c011-math-0010 being informed.

    2. 2. Communication :

    3. Agent c011-math-0011 sends a message to c011-math-0012 . Upon receiving this message, agent c011-math-0013 may either:

      1. 1. Perform some computation leading to a state change, or
      2. 2. Perform some computation without changing state.

      Both c011-math-0014 and c011-math-0015 are aware of the interaction.

    4. 3. Indirect :

      An agent c011-math-0016 may perform an action on the Environment c011-math-0017 , which in turn will affect agent c011-math-0018 . c011-math-0019 may be represented as an agent. c011-math-0020 can also perform interactions on any agent. The two agents indirectly interacted may or may not be aware of each other.

    For a multi-agent system c011-math-0021 comprised of c011-math-0022 agents c011-math-0023 , we define an interaction graph to capture the interactions between agents over a given time interval c011-math-0024 , where c011-math-0025 is the size of the interval in time units and remains the same for a simulation run. The term interactions will capture all types of interactions as defined above. An interaction graph is a directed graph where each vertex represents an agent, c011-math-0026 , and each arc represents a interaction between two agents, c011-math-0027 , and carries a weight c011-math-0028 . This is formally defined as:

    11.1 equation

    11.2 equation

    11.3 equation

    The weight c011-math-0032 of the arc c011-math-0033 c011-math-0034 c011-math-0035 is incremented every time an interaction between c011-math-0036 and c011-math-0037 takes place. Currently, this calculation increments the weight, regardless of what type of interaction occurs between agents, but future formulae can be refined to assign different weights to various interaction types. This could be the case, for example, if more importance was assigned to indirect interaction as a cause of emergence (Szabo and Teo, 2013).

    Snapshot Calculation : Snapshots consist of information about agents, the environment, and instances of the specified metric formalism over the time interval c011-math-0038 , where c011-math-0039 is the time when the snapshot was taken. As such, the snapshot for time c011-math-0040 contains all interaction information from [ c011-math-0041 , c011-math-0042 ]. The snapshots are metric agnostic, thus allowing for the calculation of various emergent behavior metrics without the need to re-execute the simulation run. Each snapshot will include interaction graphs and all agent and environment states. This allows the system expert to perform various additional calculations in the analysis and visualization stage over a particular snapshot of interest. For example, if the distance calculation over two interaction graphs shows an emergent property, the system expert may want to analyze the Statistical Complexity of that snapshot as it has evolved over the previous snapshots. Formally,

    11.4 equation

    11.5 equation

    where c011-math-0045 defines the snapshot for the time interval c011-math-0046 and c011-math-0047 is the set of all collected snapshots.

Scheme for Architecture overview.

Figure 11.1 Architecture overview.

Analysis and Visualization

In the Analysis and Visualization step, snapshots from the executing system are analyzed using the selected metrics to determine if an emergent property is present. Each metric requires access to previously acquired snapshots that are known to contain emergent properties, which are stored in the Emergent Properties Repository . The Analysis and Visualization step can be further divided into two steps, namely, Comparison and Analysis . The Comparison step applies distance functions to the collected metrics. For example, when using an interaction metric and its associated interaction graph, the distance function calculates the similarity between the interaction graph as captured in the current snapshot and interaction graphs of systems that have been previously shown to exhibit emergent behavior. The Analysis step highlights the snapshot to the user if any significant similarities are detected.

We define three metrics for detection of emergence in multi-agent systems: Hausdorff Distance, Active Hausdorff Distance, and Statistical Complexity.

Hausdorff Distance

The Hausdorff distance ( c011-math-0048 ) is a metric that is used to determine the similarity between two graphs with respect to shape (Huttenlocher et al ., 1993). For two interaction graphs c011-math-0049 and c011-math-0050 , the Hausdorff distance is defined as

11.6 equation

where

11.7 equation

and c011-math-0053 is the distance between vertices c011-math-0054 and c011-math-0055 , with c011-math-0056 and c011-math-0057 , respectively. For points in a two-dimensional Euclidian space, the distance c011-math-0058 could be calculated as the Euclidian distance between points c011-math-0059 and c011-math-0060 as c011-math-0061 , where c011-math-0062 and c011-math-0063 are the Cartesian coordinates of points c011-math-0064 and c011-math-0065 , respectively. However, any distance can be used. It is important to highlight that the use of this definition implies that the vertices of the interaction graphs need to be assigned coordinates in a two-dimensional Euclidian space. This can be performed by assigning coordinates to the interaction graph nodes without any semantic meaning. If the system under study already employs some coordinate abstraction, then the associated distance calculation can be employed. For example, in a bird flocking model defined in “Flock of Birds”, the coordinates could be those of the birds. Intuitively, the Hausdorff distance between interaction graphs c011-math-0066 and c011-math-0067 measures how close c011-math-0068 and c011-math-0069 are to each other, where “close” means that every vertex in c011-math-0070 is close to some vertex in c011-math-0071 , using some distance function such as the two-dimensional Euclidian distance. When other distances are used, domain ontologies can be employed to further refine the meaning of similarity.

The Hausdorff distance focuses on the position of the agents and only considers agents that are interacting, that is, are included in the interaction graph. This implies that this metric will not give useful results in cases where agents are stationary or agent interactions are sparse. In cases where the agents are stationary, the agents' positions across all interaction graphs are unchanging, which would lead to results with constant values. If agent interactions are sparse, the interaction graphs would contain wildly different information at each interval as few agents would be captured. This could be remedied by careful selection of the snapshot interval size. Moreover, as the coordinate information is recorded at the end of the snapshot interval and the metric does not consider interaction beyond the presence of the nodes in the IG, the distance function ignores cases in which the emergent behavior happens in the middle of the interval. This further makes the metric dependent on the size of the snapshot interval. For example, if a flock formed at the start of a snapshot interval but was broken midway through the snapshot interval, the agents' positions at the end of the snapshot would likely not represent a flock.

Active Hausdorff Distance

To address the drawbacks of HD identified above, we define a variation of HD, namely the Active Hausdorff Distance (HDA), which is calculated in a similar manner as the HD, but following a pre-processing step: c011-math-0072 , where c011-math-0073 is obtained from c011-math-0074 using a pre-processing algorithm.

The pre-processing algorithm aims to move agents closer to the agents with which they had been interacting the most, as shown in Figure 11.2 . Edges in the interaction graph are sorted in descending order of their weights (line 1). Nodes are then moved toward other agents by considering the inverse strength of their interaction (line 6). This is done by looking at the node's positions and determining the correct direction in which the move should take place (line 8 – onward). The purpose of this pre-processing step is to position agents closer together geometrically based on the frequency and strength of the interactions of each agent over the snapshot interval.

Illustration of Pre-processing agents based on their interactions.

Figure 11.2 Pre-processing agents based on their interactions.

HDA can be modified further to penalize interactions that actively discourage emergent behavior. For example, in the flock of birds model, if a large proportion of the birds were to use the separation interaction over a given interval, it would discourage emergent behavior from happening.

Statistical Complexity

Statistical Complexity (SC) is a metric that determines the amount of information entropy, or complexity, in a particular graph. As the entropy of a system decreases, it can be shown that collective behavior increases (Tang and Mao, 2014). As emergence can be construed as being a collective behavior, it makes sense to consider measures of entropy to capture emergence. The simplest way to determine Statistical Complexity is by using Shannon Entropy (Gershenson and Fernandez, 2012; Prokopenko et al ., 2009), which is defined as

11.8 equation

where c011-math-0076 is the probability mass function with respect to agent c011-math-0077 , and c011-math-0078 is the total number of agents. While generic probabilistic mass functions can be defined to cover all systems, more accurate results may be obtained by specifying it for each particular system. For example, for the Flock of Birds model the probability mass function, c011-math-0079 , could be defined as:

11.9 equation

where c011-math-0081 , c011-math-0082 is the snapshot size, c011-math-0083 is the total number of agents in the snapshot, c011-math-0084 is the total number of interactions that occurred in the snapshot, and c011-math-0085 is the number of interaction rules for the system. This particular c011-math-0086 calculation represents the proportion of total interactions across the snapshot interval in which agent c011-math-0087 is involved.

As statistical complexity operates on a single interaction graph, a threshold or series of thresholds must be defined so as to allow for comparison between a candidate interaction graph and a reference interaction graph. A simple way of achieving this is by taking the difference of the result for the candidate IG and the reference interaction graph ( c011-math-0088 ).

11.10 equation

By taking the difference, the change in information entropy between the candidate and reference interaction graphs becomes evident. If we were to use the individual c011-math-0090 result, it may not highlight an emergent behavior, as some systems do not show emergent behavior when this result tends to zero (Tang and Mao, 2014).

This method, unlike the Hausdorff methods, does not focus on the position of the agents. Instead it relies entirely on interactions between agents and discrete representations of those interactions. Previous applications of Shannon Entropy in multi-agent systems have focused on the states of the agents and environment, rather than the interactions between the agents (Tang and Mao, 2014; Cavalin et al ., 2014).

EXPERIMENTAL ANALYSIS

To analyze the suitability of Hausdorff distance, Active Hausdorff distance, and Statistical Complexity, we apply them to well-known models that have been shown to exhibit emergence, namely, Flock of Birds, Game of Life, and Predator-Prey models. The Flock of Birds and Game of Life models are suitable for assessing the qualities of the proposed metrics as they are both simple models and also exhibit direct and indirect interactions. The Predator-Prey model is more complicated as it features two distinct types of mobile agents, both of which have rules for being removed or added to the system. For each experiment, we compare between the snapshots acquired during the current execution and the snapshots of the same model exhibiting emergence. As discussed above, these snapshots are stored in the Emergent Properties Repository .

Table 11.1 presents an overview of each model, focusing on agent type, initial population size, environment, and interaction types. We focus on both mobile and stationary agents that have interactions of type information poll and communication.

Table 11.1 Differences in Model Features

ModelAgent TypeInitial Population SizesEnvironmentInteraction Types
Flock of BirdsMobile20, 50Unbounded, closedInformation poll
Game of LifeStationary225, 400Bounded, closedInformation poll
Predator-PreyMobile12, 16Unbounded, openInformation poll, communication

In the following, we present a brief overview of our prototype implementation followed by an overview of the three models we used for our experiments: Flock of Birds, Game of Life, and Predator-Prey.

Prototype Implementation

The current prototype implementation of the architecture consists of three separate components: Modeling and Simulation , the MetricAggregator , and the MetricSuite . All the three components are written in Java. The visualization of graphs is currently achieved using the graphing tool (Medusa, 2017). The Modeling and Simulation component includes the Repast simulation suite (Repast, 2017), which is the execution environment for our models. Repast's back-end handles the agent simulation, including time management, while also having a visual representation of the currently running simulation. Repast's scheduling system allows for methods to be run at arbitrary times, which is an approach that is highly suitable for a time-based snapshot system. The MetricAggregator captures and stores the snapshots. The MetricSuite consists of implementations for the three metrics and our Emergent Properties Repository . This component allows for the Emergent Properties Repository to execute selected metrics depending on snapshots that have been received and to compare them with the previously annotated snapshots stored in the repository. If a metric returns a result indicating that a new snapshot possesses emergence, the Emergent Properties Repository annotates that snapshot and stores it for future comparisons.

Model Overview

Flock of Birds

The Flock of Birds model (Reynolds, 1987) captures the motion of bird flocking and is a seminal example in the study of emergence. At the macro-level, a group of birds tends to form a flock, as shown in Figure 11.4 b. Flocks have aerodynamic advantages, obstacle avoidance capabilities, and predator protection, regardless of the initial positions of the birds. At the micro-level, each bird obeys three simple rules (Reynolds, 1987):

  1. 1. separation – steer to avoid crowding neighbors
  2. 2. alignment – steer toward average heading of neighbors
  3. 3. cohesion – steer toward average position of neighbors

We model this as a multi-agent system in which each bird is an agent that has the three-movement rules defined above. Other bird attributes include initial position and initial velocities. In our experiments, the initial bird positions can be either fixed or assigned randomly at start up. Bird velocities are assigned randomly. The model parameters can also influence emergent behavior analysis. As such, we collect and analyze interaction graphs of Flock of Birds models with sizes of 20 and 50 birds, with fixed and randomly assigned position values and randomly assigned velocity values.

Game of Life

Conway's Game of Life model (Gardner, 1970) represents cells that interact with their neighbors to determine in what state they should be at the next time step, either alive or dead. At the macro-level, patterns emerge between groups of cells, such as the Pulsar pattern as shown in Figure 11.3 . At the micro-level, the rules for each cell are as follows, where c011-math-0091 , c011-math-0092 , and c011-math-0093 are the parameters for the Game of Life model (Gardner, 1970; Chan et al ., 2010):

  1. 1. A live cell with at least c011-math-0094 and at most c011-math-0095 live neighbors will remain alive in the next time step.
  2. 2. A dead cell with exactly c011-math-0096 live neighbors will become alive in the next time step.
  3. 3. Otherwise, the cell will die in the next time step where c011-math-0097 and c011-math-0098 , where c011-math-0099 is the maximum number of neighbors, which in a two-dimensional configuration is 8.

Certain combinations of c011-math-0100 and c011-math-0101 settings can reveal emergent behavior such as patterns, like the glider (Szabo and Teo, 2013), and shapes appearing in the cellular structure (Chan et al ., 2010).

Illustration of Game of life with pulsar pattern.

Figure 11.3 Game of life with pulsar pattern.

We model the Game of Life as a multi-agent system where each cell is an agent. A two-dimensional grid of cells, of size c011-math-0102 , is established and the initial state of each cell is either fixed or chosen at random on start up. The attributes recorded for each cell are the cell state and the states of the cell's eight neighbors at the start of the time step. Snapshots are taken of Game of Life models with sizes of both c011-math-0103 cells and c011-math-0104 cells are collected and analyzed, each cell having a total of two possible states. Their initial states are either randomized or set to allow the creation of a particular pattern (Chan et al ., 2010). For our experiments, we followed Conway's initial c011-math-0105 , c011-math-0106 , and c011-math-0107 rules, which are 2, 3, and 3, respectively.

Predator-Prey

The Predator-Prey model has been used in studying emergent behavior, with varying rule sets (Chen et al ., 2007). The Predator-Prey model has two types of agents, namely, Predators and Prey. As in nature, both types of agents wish to survive to create a new generation. Survival for the Predators is to eat, whereas survival for the Prey is to avoid being eaten. The main difference of this model from the previous two is that agents can be added to or removed from the system during execution and that the different agent types obey different rules. Specifically, Predators obey four rules, whereas the Prey obeys two rules. The rules of the Predators are as follows:

  1. 1. If a Prey is detected within distance d , kill the Prey with probability p(predKill) . If successful, the Prey is removed from the system immediately.
  2. 2. If some Prey is killed, a new Predator is born at the Prey's location, after one time step has passed.
  3. 3. If a Predator is not within distance d , it dies with probability p(predDeath) .
  4. 4. Move one step in any random direction if no Prey was killed and the Predator has not died.

The rules of the Prey are:

  1. 1. Move one step in any random direction.
  2. 2. Give birth to a new Prey at a random location with probability p(preBirth) .

In our multi-agent system implementation, Predator and Prey are assigned initial random positions. Their velocities are also randomized at initialization as well as for each time step. The three-rule probabilities, predKill , predDeath , and preBirth are decided by the system expert. Both agent types have a common set of states, life, and procreation, but the Predator has extra states to indicate if it has seen and/or killed some prey. If an agent is removed from the simulation, that is, upon death, their life state is set to “dead.” This is to ensure that no information generated by the system is lost as it may prove valuable to a particular metric.

We collect snapshots of Predator-Prey systems with varying grid sizes and number of Predators. The variation of the grid sizes is shown by Chen et al . (2007) to have an impact on the occurrence of emergent behaviors. Due to the stochastic nature of the Predator-Prey model with respect to agent destruction and procreation, creating a baseline for comparison is somewhat problematic. Chen et al . (2007) define emergence occurring in the Predator-Prey model as when starvation affects a Predator that is caused by either one or more Predators “over-hunting.”

Experimental Results

We present key results from our experiments alongside figures of the interaction graph that achieved the best result for three of our metrics: Hausdorff, Active Hausdorff, and Statistical Complexity. Each result is achieved by comparing each candidate graph (IG) with a reference interaction graph ( c011-math-0108 ) that shows an emergent state. Each experimental result shows the minimum, median, mean, standard deviation, and average runtime.

The experiments use three different interval sizes, namely, c011-math-0109 , c011-math-0110 , and c011-math-0111 ticks, over a simulation run of 1000 ticks. The snapshots that are considered for comparison occur at ticks 100, 500, and 1000. These are chosen because they represent the system shortly after beginning, mid-way through its execution, and at the end of its execution, respectively. The time interval c011-math-0112 refers to the time interval that finished at tick c011-math-0113 . Our comparisons involve snapshots that contain differing interval and population sizes and properties exclusive to each system.

Hausdorff Distance

We use the Euclidian distance function as the secondary distance function across all the experiments. We study the Flock of Birds and Predator-Prey models. As the Hausdorff Distance only considers an agent's position in space, the results derived for the Game of Life model, in which all the agents are stationary, are meaningless for detecting emergence.

Flock of Birds : Table 11.2 presents the values of HD for a model of 20 birds, c011-math-0120 , and Figure 11.4 a is the companion interaction graph with the best result. The experiment compares interaction graphs at different time steps with c011-math-0115 , shown in Figure 11.4 b, which, for this experiment, is taken to be the interaction graph of a model with 20 birds that have the same starting positions. For both models, the initial velocities are randomly assigned. It is important to note here that a validation run in which c011-math-0116 represents exactly the same model, that is, the velocities have the same values, leads to distance values of zero. The large variance shown in this particular experiment, and across many of the experiments, is caused by the initialization of bird velocities always being random. As the Flock of Birds experiments take place in an unbounded environment, it is highly likely that a small number of birds may be situated a large distance away from the flock, therefore influencing the distance calculations.

Table 11.2 c011-math-0114 : 20 Birds, c011-math-0115

Time IntervalMinMedianMeanc011-math-0116Runtime (ms)
c011-math-0117109.77161.62165.6231.340.43
c011-math-0118110.49173.93203.1584.860.28
c011-math-0119154.44273.62381.78211.880.31

Illustration of Comparison between IG(B20) and IGe(B20).

Figure 11.4 Comparison between c011-math-0123 and c011-math-0124 . (a) Flock of birds: c011-math-0125 with minimum HD: 109.77. (b) Flock of birds: reference graph: c011-math-0126

Table 11.3 presents the result for a comparison where both the reference and candidate graphs contain 50 birds. Figure 11.5 presents both the candidate interaction graph with best result and the reference graph, with birds in dark gray and interactions in light gray. Visual comparison between candidate graph with the best result and the reference clearly shows that emergence is present in multiple subsets of agents.

Table 11.3 c011-math-0127 : 50 Birds, c011-math-0128

Time IntervalMinMedianMeanc011-math-0129Runtime (ms)
c011-math-0130143.13171.7915.32188.510.08
c011-math-0131101.33139.8458.60249.960.08
c011-math-013286.84215.8388.08346.390.08

Illustration of Comparison between IG(B50) and IGe(B50).

Figure 11.5 Comparison between c011-math-0133 and c011-math-0134 . (a) Flock of birds: c011-math-0135 with minimum HD: 86.84. (b) Flock of birds: reference graph: c011-math-0136 .

Table 11.4 c011-math-0137 : 8 Predators, 8 Prey, c011-math-0138 grid, c011-math-0139

Time IntervalMinMedianMeanc011-math-0140Runtime (ms)
c011-math-014114.14223.33524.8910.2460.145
c011-math-014233.94160.81159.82117.8770.196
c011-math-014355.15476.36878.20623.5330.464

Predator-Prey : Tables 11.4 and 11.5 present the values of HD for a Predator-Prey model with 4 predators and 8 prey, and a grid size of c011-math-0144 and c011-math-0145 , respectively. The interaction graphs, shown in Figure 11.6 (dark gray – lion, light gray – antelope), contain the best results presented in these tables (5.657 and 14.142, respectively) and do not resemble the reference graph at all.

Table 11.5 c011-math-0144 : 4 Predators, 8 Prey, c011-math-0145 Grid, c011-math-0146

Time IntervalMinMedianMeanc011-math-0147Runtime (ms)
c011-math-01505.65710.60711.1723.7980.093
c011-math-01515.65712.02117.53615.4950.1
c011-math-01528.48516.97133.37534.4240.129

Illustration of Comparison between IG(P4,8) and IGe(P4,8).

Figure 11.6 Comparison between c011-math-0153 and c011-math-0152 . (a) Predator-Prey: c011-math-0153 with minimum HD: 5.657. (b) Predator-Prey: reference graph: c011-math-0154 .

Active Hausdorff Distance

Although normal Hausdorff is capable of detecting when emergence has occurred for some systems, it has two major flaws. First, it can only detect emergence that is a result of the agents' positions in space. Second, it only considers the positions recorded at the end of the snapshot interval. Active Hausdorff distance (HDA) utilizes a pre-processing phase that re-positions the agents based on the quantity and type of interactions they were involved in over the snapshot interval. To highlight the benefits of HDA over HD, we also perform comparisons where the snapshot interval sizes are different between the comparison and reference graph.

Flock of Birds : Table 11.6 presents the results for HDA for a model of 20 birds. Figure 11.7 a is the interaction graph with the minimum HDA value. This result clearly shows that we are also able to capture the system state in which only a subset of the birds are flocking.

Table 11.6 c011-math-0157 : 20 Birds, c011-math-0158

Time IntervalMinMedianMeanc011-math-0159Runtime (ms)
c011-math-016064.21103.0399.8526.601.16
c011-math-016181.31213.69221.42134.020.74
c011-math-01623.5891.06161.85212.471.41

Illustration of Comparison between Flock of Birds IG(B20), IG(B50) and IGe(B20).

Figure 11.7 Comparison between Flock of Birds c011-math-0163 , c011-math-0164 and c011-math-0165 . (a) Flock of Birds: c011-math-0166 with minimum HDA: 3.58. (b) Flock of Birds: reference graph: c011-math-0167 . (c) Flock of Birds: c011-math-0168 with minimum HDA: 72.35.

Similar results are obtained for models with 50 birds, in that HDA is able to identify emergence when comparing between c011-math-0169 and c011-math-0170 . Moreover, HDA achieves great results when comparing models of different sizes and this can be seen in Figure 11.7 c, which shows the interaction graph for the snapshot with the smallest HDA for c011-math-0171 .

This is an important advance as this emergent behavior might have been missed had only metrics captured at the end of the interval been used. Moreover, our experiments show that HDA is less dependent on the size of the snapshot interval than HD. Specifically, in a comparison where the snapshot interval size is significantly different between the comparison and reference graphs, HDA is capable of identifying emergence. We are also able to show that emergence is occurring in a comparison graph representing a system that contains two types of birds, whereas the reference graph still contains one type. Figure 11.8 presents the graph with the best result for a comparison graph with two types of birds with a total population of 50.

Illustration of IG(B50) with minimum HDA.

Figure 11.8 IG c011-math-0172 with minimum HDA: 43.06.

Predator-Prey : Table 11.7 presents the values of HDA for a Predator-Prey model with 4 predators, 8 prey, and a grid size of c011-math-0173 .

Table 11.7 c011-math-0174 : 4 Predators, 8 Prey, c011-math-0175 Grid, c011-math-0176

Time IntervalMinMedianMeanc011-math-0177Runtime (ms)
c011-math-01784.1239.89910.0293.4510.55
c011-math-01794.12317.67826.43426.140.551
c011-math-01804.12335.35545.66741.2770.706

The results generated from the Active Hausdorff distance experiments are identical to the ones generated in the Hausdorff distance experiments. This suggests that despite containing mobile agents, the interactions between agents are far too infrequent to provide the Active Hausdorff pre-processing phase with any information. This is consistent across all the normal Hausdorff and Active Hausdorff Predator-Prey experiments. The c011-math-0199 grid size is the most condensed space configuration used in our experiments and as the grid size increases, we see that the Hausdorff and Active Hausdorff distances grow in proportion to the grid size. This is caused by the agents being able to traverse across more space, thereby making the interactions more infrequent.

Statistical Complexity

Statistical Complexity (SC) does not consider the agent's position in space but instead focuses the interactions between the agents. SC can be used in two main ways. First, the SC of an interaction graph gives details about the quantity of information of interactions across the entire snapshot interval. This can signify the presence of self-organization in the system. However, a large or small quantity of information does not give us a clear indication of emergence present. To alleviate this issue, the SC of two interaction graphs is compared. This will show us how similar the information present in a candidate snapshot is compared to the information present in a reference snapshot. We use the same probability mass function across these experiments:

11.11 equation

Flock of Birds : Figure 11.9 a presents the 20 bird model that has the smallest difference between itself and the reference graph, c011-math-0183 . It is clear that several subsets of birds have moved away from each other. Despite this, the numerous edges (interactions) between the subsets and the main flock suggest that at some point over the snapshot interval, all the subsets were part of one flock. Table 11.8 presents the results for the comparison between c011-math-0182 and c011-math-0183 . Figure 11.9 b presents the 50 bird model that has the smallest difference between itself and the reference graph, c011-math-0184 . Similar to the comparison involving c011-math-0184 , the large number of interactions indicates that the birds were flocked at some point during the snapshot interval.

Illustration of Comparison between IG(B20), IG(B50) and IGe(B20).

Figure 11.9 Comparison between c011-math-0184 , c011-math-0187 and c011-math-0201 . (a) c011-math-0205 with c011-math-0192 closest to 0: c011-math-0193 0.53. (b) c011-math-0194 with c011-math-0195 closest to 0: 0.003. (c) Flock of Birds: reference graph: c011-math-0196 .

Table 11.8 c011-math-0190 : 50 Birds, c011-math-0191

Time IntervalMinMedianMeanc011-math-0192Runtime (ms)
c011-math-2000.8051.1541.1360.2020.42
c011-math-201c011-math-202 0.1770.5310.5420.5660.64
c011-math-203c011-math-204 0.948c011-math-205 0.0560.0780.7730.95

Table 11.9 presents the results of a comparison where the comparison graph is derived from a larger snapshot interval and contains more birds and more bird types than the reference graph. Figure 11.10 displays the graph that obtained a result closest to zero; that is, the Statistical Complexity of the comparison graph is as close to the Statistical Complexity of the reference as possible. It is visually discernible that several flocks have occurred.

Table 11.9 c011-math-206 : 50 Birds, c011-math-0207

Time IntervalMinMedianMeanc011-math-0208Runtime (ms)
c011-math-02090.9331.6211.5720.2810.21
c011-math-02100.3521.0520.9640.2820.42
c011-math-02110.070.9340.8920.420.45

Illustration of IG(B50) for two bird types.

Figure 11.10 IG c011-math-0212 for two bird types with c011-math-0213 closest to c011-math-0214 : 0.07.

Table 11.10 c011-math-0215 : c011-math-0216 Cells, c011-math-0217 ; Glider Pattern

Time IntervalMinMedianMeanc011-math-0218Runtime (ms)
c011-math-0219c011-math-0220 431.515c011-math-0221 431.515c011-math-0222 431.5150.0001.539
c011-math-0223c011-math-0224 431.515c011-math-0225 431.515c011-math-0226 431.5150.0001.553
c011-math-0227c011-math-0228 431.515c011-math-0229 431.515c011-math-0230 431.5150.0001.661

Game of Life : Table 11.10 contains the c011-math-0231 values obtained from the same models as used in the HD and HDA experiments. These values are more significant than the values acquired from executing HD and HDA on the same comparison. The probability mass function, c011-math-0232 , used in c011-math-0233 is the same as the probability mass function used in the Flock of Birds experiments. Similar to the c011-math-0234 calculations in the Flock of Birds model, we present the difference in c011-math-0235 between the reference and comparison graph. Table 11.11 contains the c011-math-0236 values obtained from a comparison where the candidate graph is taken from a model where another emergent pattern, the glider pattern, occurs. The minimum results attained in Tables 11.10 and 11.11 are possible when the reference snapshot contains no interactions. This suggests that all the cells are dead at these time steps.

Table 11.11 c011-math-0231 : c011-math-0232 Cells, c011-math-0233 ; Random Initialization

Time IntervalMinMedianMeanc011-math-0240Runtime (ms)
c011-math-0241c011-math-0242 431.515c011-math-0243 382.405c011-math-0244 371.52952.2034.064
c011-math-0245c011-math-0246 431.515c011-math-0247 404.496c011-math-0248 400.07536.4621.829
c011-math-0249c011-math-0250 431.515c011-math-0251 404.496c011-math-0252 401.08534.1771.866

Tables 11.12 and 11.13 contain the c011-math-0253 values obtained from a comparison where the comparison graph was extracted from a model that was designed to force the pulsar pattern to occur. Figure 11.11 displays the graph with the SC result closest to zero. These results confirm our idea that the information stored in a snapshot is enough to determine that emergence is occurring in these particular models, despite a significantly different number of agents in the case of the c011-math-0254 comparison graph. The zero-valued results of these experiments also highlight that the models in the comparison graphs were showing emergence in the form of the pulsar pattern and also that the proportion of interactions to the snapshot interval size was identical between the comparison and reference graphs. We found similar results in comparisons where both the comparison and the reference graphs contained the glider model.

Table 11.12 c011-math-0255 : c011-math-0248 Cells, c011-math-0257 ; Pulsar Pattern

Time IntervalMinMedianMeanc011-math-0258Runtime (ms)
c011-math-02610.0000.0000.0000.0002.913
c011-math-0260c011-math-0261 106.286c011-math-0262 106.286c011-math-0263 106.2860.0002.923
c011-math-02640.0000.0000.0000.0002.948

Table 11.13 c011-math-0265 : c011-math-0266 Cells, c011-math-0267 ; Pulsar Pattern

Time IntervalMinMedianMeanc011-math-0268Runtime (ms)
c011-math-02690.0000.0000.0000.0002.156
c011-math-0270c011-math-0271 106.286c011-math-0272 106.286c011-math-0273 106.2860.0002.159
c011-math-02740.0000.0000.0000.0002.101

Illustration of Game of life: IG(G20) with SCSE closest to 0: 0f0000.

Figure 11.11 Game of life: c011-math-0275 with c011-math-0276 closest to 0: 0.000.

Predator-Prey : As both HD and HDA have not succeeded to show the presence of emergence in our Predator-Prey model, likely due to the large separation between all agents, considering only the interactions may highlight when emergence is occurring. Table 11.14 presents the values of c011-math-0277 for a Predator-Prey model with 4 predators and 8 prey, and a grid size of c011-math-0278 . We find that the Statistical Complexity metric has solely indicated that there is more activity present within the c011-math-0279 than the c011-math-0280 . This suggests that the Statistical Complexity metric cannot detect emergence for our Predator-Prey model.

Table 11.14 c011-math-0281 : 4 Predators, 8 Prey, c011-math-0282 Grid, c011-math-0283

Time IntervalMinMedianMeanc011-math-0284Runtime (ms)
c011-math-0285c011-math-0286 5.111c011-math-0287 4.182c011-math-0288 4.4610.4490.008
c011-math-0289c011-math-0290 6.04c011-math-0291 4.182c011-math-0292 4.3680.5870.008
c011-math-0293c011-math-0294 10.684c011-math-0295 5.111c011-math-0296 6.3182.3190.018

Discussion

Across the Flock of Birds and Game of Life experiments, we were able to show that our architecture and metrics are effective at detecting emergence. Unfortunately, our metrics were not able to determine emergence in the Predator-Prey model. Figure 11.12 shows the interaction graphs of a 20 bird model that has the closest similarity to the reference graph, c011-math-0297 , obtained using Hausdorff distance, Active Hausdorff distance, and Statistical Complexity.

Illustration of results from HD, HDA, and SCSE when compared to the reference graph IGe(B20).

Figure 11.12 Best results from HD, HDA, and c011-math-0298 when compared to the reference graph c011-math-0299 . (a) Reference graph: c011-math-0300 . (b) HD: c011-math-0301 . (c) HDA: c011-math-0302 . (d) c011-math-0303 : c011-math-0304 .

Figure 11.13 compares the graphs of cells that show the closest similarity to the reference graph, c011-math-0305 . As Hausdorff distance and Active Hausdorff distance cannot detect emergence for the Game of Life model, we present the best Statistical Complexity results, which is when the result is closest to zero.

Illustration of results from SCSE for Game of Life models with different agent amounts when compared to the reference graph IGe(G20). c11f013b

Figure 11.13 Best results from c011-math-0306 for Game of Life models with different agent amounts when compared to the reference graph c011-math-0307 . (a) Reference graph: c011-math-0308 . (b) c011-math-0309 : IG c011-math-0310 . (c) c011-math-0311 : c011-math-0312 .

For the Active Hausdorff and normal Hausdorff experiments that consider non-stationary agents with regular interactions, namely the Flock of Birds model, the Active Hausdorff metric has two distinct advantages. First, in addition to considering only nodes that are actually involved in interaction, the Active Hausdorff distance analyzes the strength of that interaction by including edge weights. This can be customized to alter the weights based on the interaction type, depending on the system under study. Second, the Active Hausdorff distance captures the behavior of the system over the entire snapshot interval, and it is therefore capable of identifying whether the system has been in an emergent state during the interval and has ceased at the end of the snapshot interval. This makes the use of an interaction metric less dependent on the size of the snapshot interval. Moreover, as shown in the runtime results, the calculation of the Active Hausdorff distance is only marginally slower, due to the amount of pre-processing required.

For the Predator-Prey model that contains agents that interact infrequently, the Hausdorff and Active Hausdorff distance metrics were ineffective. This was still the case when the agent space was reduced. There are two main reasons why this may have occurred. First, in the designing of the model, we only considered five types of interactions that could occur, as well as five possible states for the Predator and two for the Prey. There could have been extra states and interactions to be considered. Second, in our aim to run the simulation for a long period of time, we had to reduce the possibility of a population burst from the Prey. This led to the reduction of the initial population that further led to the reduction of possible interactions from occurring.

The Statistical Complexity experiments show that an agent's position in space may not necessarily be the main contributing factor to a system exhibiting emergent behavior. It highlights the knowledge that on the micro -level, emergent behavior is derived from interactions. In the case of the Game of Life model, Statistical Complexity was the only metric that gave any suggestion of emergence occurring. For other systems where this is also the case, such as with social networks and power-grids, we believe that Statistical Complexity would provide indications as to whether emergence was occurring.

For the Flock of Birds model, we successfully detected emergence across several model configurations using a reference graph that contained only 20 birds. Despite the different model configurations ostensibly very similar semantically, they are very distinct from an automated emergence identification perspective with respect to numbers of birds, number of types, and their position and velocity values. For the Game of Life model, we were able to detect a particular type of emergence occurring, the pulsar pattern, using a reference graph that contained 400 cells. As the Game of Life model features stationary agents, each with only two states, each particular configuration is quite similar to each other. Despite this, we were able to single out a particular type of emergent behavior occurring.

We also found that graphs that were obtained at different time intervals could be compared successfully. In extreme cases, we theorize that the interval gap would be a problem, but use of certain metrics may lessen this issue as well as how much information is present in the comparison and reference graphs. We also found that comparisons where the reference graph and candidate graph represented different numbers of agents did not influence the results significantly. In the Flock of Birds experiments, we were able to detect emergence with a reference graph of just 20 birds in a system that contained 2 types of birds and 50 birds overall. In the Game of Life model, we were able to detect emergence with a reference graph that contained nearly double the amount of cells than in the comparison graph.

As Hausdorff distance and Active Hausdorff distance employ a Euclidian distance, they rely on correctly representing an agent's position in space. Thus, it is crucial that the positional data are validated through checking whether the triangle inequality is maintained between all points in the interaction graph. The agent-based implementations of our three models are of course subject to validation concerns, as are any future agent-based models used with our architecture.

Our proposed metrics rely on comparisons between candidate and reference graphs and thus our Emergent Properties Repository is required to contain at least one reference graph before any calculations can occur. The initial reference graphs in the repository must have their emergent properties validated before they can be considered for use in analysis. This could be achieved using methods such as Complex Events (Chen et al ., 2007) or reconstructability analysis (Szabo and Teo, 2013).

CONCLUSION

This chapter studies the assumption that emergence is determined by the interactions that take place between the micro-level agents and thus weak emergence occurs. This assumption is based on previous findings and discussions (Bedau, 1997; Holland, 2007, 1999; Gore and Reynolds, 2008; Pereira et al ., 2012; Chan, 2011a). We did not identify or utilize indirect interactions and interactions that involved the environment. Despite these types of interactions being able to lead to emergence, considering them lies outside the scope of our architecture. Although we could have modeled indirect interactions as chains of direct interactions, this has been seldom covered by previous research and also lies outside the scope of our research.

Identifying emergent behavior as it happens in multi-agent systems, without prior knowledge of emergence, is a challenging yet intriguing problem that could bring significant benefits. In this chapter, we propose an architecture that is able to identify emergent behavior as it happens by comparing snapshots of the current system with those taken in previous executions of other systems following existing insight (Birdsey and Szabo, 2014; Mittal and Rainey, 2015). The snapshots of the execution of the multi-agent system are collected at various snapshot intervals and those significantly similar to reference snapshots are highlighted to the user. To facilitate an exhaustive comparison, and as no metric has been shown to perfectly capture emergent behavior, our architecture is designed to include a variety of metrics and secondary distance functions. By analyzing the interactions between agents by way of our metrics, our proposed interaction graphs and associated differences have been used to showcase our proposed approach. The metrics with which we performed our experiments have shown promising results. Hausdorff and Active Hausdorff were able to successfully show various stages of flocking in systems with differing population sizes as well as bird types. Statistical Complexity was able to precisely show when the cells in the Game of Life model achieved a particular pattern.

Future work includes further analysis of our approach by using models from different domains and different metrics. It may prove useful to store a snapshot as a binary string representing the system and agents states that could therefore allow measures such as information entropy and the Levenshtein distance (Navarro, 2001). The Levenshtein distance determines how different two strings are by counting the minimum number of operations it would take to turn one into the other. This could be used as a secondary distance function for a particular metric in a system that places great reliance on emergence being a product of agent states. Several validation concerns remain as formal proofs of the correctness of the Active Hausdorff distance, Statistical Complexity, and other proposed metrics in identifying emergence are needed. Lastly, enhancing the Emergent Properties Repository to enable complete self-population of reference snapshots, thereby alleviating the initial input of a system expert, is a major challenge that would greatly improve our architecture and may be solved using more complex emergence detection methods.

REFERENCES

  1. Bedau, M. (1997) Weak emergence. Nous , 31 (11), 375–399.
  2. Bernon, C., Gleizes, M.-P., Peyruqueou, S., and Picard, G. (2003) ADELFE: a methodology for adaptive multi-agent systems engineering, in Engineering Societies in the Agents World III. ESAW 2002 , Lecture Notes in Computer Science, vol. 2577 (eds P. Petta, R. Tolksdorf, and F. Zambonelli), Springer-Verlag, Berlin, Heidelberg, pp. 156–169.
  3. Birdsey, L. and Szabo, C. (2014) An architecture for identifying emergent behavior in multi-agent systems. Proceedings of the 13th International Conference on Autonomous Agents and Multiagent Systems, pp. 1455–1456.
  4. Birdsey, L., Szabo, C., and Falkner, K. (2016) CASL: a declarative domain specific language for modeling complex adaptive systems. Winter Simulation Conference (WSC), 2016, IEEE, pp. 1241–1252.
  5. Brown, D.S. and Goodrich, M.A. (2014) Limited bandwidth recognition of collective behaviors in bio-inspired swarms. Proceedings of the 13th International Conference on Autonomous Agents and Multiagent Systems, pp. 405–412.
  6. Cavalin, P., Neto, S.B., Pinhanez, C., Gribel, D., and Appel, A.P. (2014) Large-scale multi-agent-based modeling and simulation of microblogging-based online social network, in International Workshop on Multi-Agent Systems and Agent-Based Simulation , Lecture Notes in Computer Science, vol. 8235 , Springer-Verlag, Berlin, Heidelberg, pp. 17–33.
  7. Chan, W.K.V. (2011a) Interaction metric of emergent behaviors in agent-based simulation. Proceedings of the Winter Simulation Conference, Phoenix, AZ, USA, pp. 357–368.
  8. Chan, W.K.V. (2011b) Interaction metric of emergent behaviors in agent-based simulation, in Winter Simulation Conference (eds S. Jain, R.R. Creasey Jr., J. Himmelspach, K.P. White, and M.C. Fu), IEEE.
  9. Chan, W., Son, Y.S., and Macal, C.M. (2010) Simulation of emergent behavior and differences between agent-based simulation and discrete-event simulation. Proceedings of the Winter Simulation Conference, pp. 135–150.
  10. Chen, C., Nagl, S.B., and Clack, C.D. (2007) Specifying, detecting and analysing emergent behaviours in multi-level agent-based simulations. Proceedings of the Summer Computer Simulation Conference.
  11. Chen, C.C., Nagl, S.B., and Clack, C.D. (2009) A formalism for multi-level emergent behaviours in designed component-based systems and agent-based simulations, in From System Complexity to Emergent Properties , edited by Aziz-Alaoui, M. A., and C. Bertelle, Springer, pp. 101–114.
  12. Chi, L. (2009) Transplating social capital to the online world: insights from two experimental studies. Journal of Organizational Computing and Electronic Commerce , 19 , 214–236.
  13. Cilliers, P. (1998) Complexity & Postmodernism , Routledge, London.
  14. Davis, P. (2005) New paradigms and challenges. Proceedings of the Winter Simulation Conference, Orlando, FL, USA.
  15. Fayyad, U. and Uthurusamy, R. (2002) Evolving data into mining solutions for insights. Communications of the ACM , 45 (8). doi: 10.1145/545151.545174.
  16. Floyd, S. and Jacobson, V. (1993) The synchronization of Periodic Routing Messages. Proceedings of Special Interest Group on Data Communication, pp. 33–44.
  17. Fromm, J. (2006) On engineering and emergence. arXiv preprint nlin/0601002.
  18. Gardner, M. (1970) Mathematical games: the fantastic combinations of John Conway's new solitaire game “Life”. Scientific American , 223 , 120–123.
  19. Gershenson, C. and Fernandez, N. (2012) Complexity and information: measuring emergence, self-organization, and homeostatis at multiple scales. Complexity , 18 (2), 29–44.
  20. Gore, R. and Reynolds, P. (2008) Applying causal inference to understand emergent behavior. Proceedings of the Winter Simulation Conference, Miami, USA, pp. 712–721.
  21. Holland, J. (1999) Emergence, From Chaos to Order , Basic Books.
  22. Holland, O.T. (2007) Taxonomy for the modeling and simulation of emergent behavior systems. Proceedings of the 2007 Spring Simulation Multiconference, pp. 28–35.
  23. Huttenlocher, D.P., Klanderman, G.A., and Rucklidge, W.J. (1993) Comparing images using the Hausdorff distance. IEEE Transactions on Pattern Analysis and Machine Intelligence , 15 , 850–863.
  24. Jacyno, M., Bullock, S., Luck, M., and Payne, T.R. (2009) Emergent service provisioning and demand estimation through self-organizing agent communities. Proceedings of the International Conference on Autonomous Agents and Multiagent Systems, vol. 1, pp. 481–488.
  25. Johnson, C.W. (2006) What are emergent properties and how do they affect the engineering of complex systems? Reliability Engineering & System Safety , 12 , 1475–1481.
  26. Kubik, A. (2003) Towards a formalization of emergence. Journal of Artificial Life , 9 , 41–65.
  27. Medusa (2017) Medusa-Visualization, https://sites.google.com/site/medusa3visualization/home (accessed 13 November 2017).
  28. Mittal, S. (2013) Emergence in stigmergic and complex adaptive systems: a formal discrete event systems perspective. Cognitive Systems Research , 21 , 22–39.
  29. Mittal, S. and Rainey, L. (2015) Harnessing emergence: the control and design of emergent behavior in system of systems engineering. Proceedings of the Conference on Summer Computer Simulation, SummerSim '15, San Diego, CA, USA, Society for Computer Simulation International, pp. 1–10.
  30. Mogul, J.C. (2006) Emergent (mis)behavior vs. complex software systems. Proceedings of the 1st ACM SIGOPS/EuroSys European Conference on Computer Systems, New York, USA, pp. 293–304.
  31. Navarro, G. (2001) A guided tour to approximate string matching. ACM Computing Surveys , 33 (1), 31–88.
  32. Odell, J. (1998) Agents and emergence. Distributed Computing , 12 , 51–53.
  33. Pereira, L.M., Santos, F.C. et al. (2012) The emergence of commitments and cooperation. Proceedings of the 11th International Conference on Autonomous Agents and Multiagent Systems, vol. 1, International Foundation for Autonomous Agents and Multiagent Systems, pp. 559–566.
  34. Prokopenko, M., Boschetti, F., and Ryan, A.J. (2009) An information-theoretic primer of complexity, self-organization and emergence. Complexity , 15 , 11–28.
  35. Ramakrishnan, K.K. and Yang, H. (1994) The ethernet capture effect: analysis and solution. Proceedings of the IEEE Local Computer Networks Conference, Minneapolis, MN, USA.
  36. Repast (2017) The Repast Suite, http://repast.sourceforge.net/ (accessed 13 November 2017).
  37. Reynolds, C. (1987) Flocks, herds, and schools: a distributed behavioral model. Proceedings of ACM SIGGRAPH, pp. 25–34.
  38. Salazar, N., Rodriguez-Aguilar, J.A., Arcos, J.L., Peleteiro, A., and Burguillo-Rial, J.C. (2011) Emerging cooperation on complex networks. Proceedings of the International Conference on Autonomous Agents and Multiagent Systems, pp. 669–676.
  39. Savarimuthu, B., Purvis, M., Cranefield, S., and Purvis, M. (2007) Mechanisms for norm emergence in multiagent societies. Proceedings of the 6th International Joint Conference on Autonomous Agents and Multiagent Systems, AAMAS '07, pp. 173:1–173:3.
  40. Serugendo, G.D.M., Gleizes, M.P., and Karageorgos, A. (2006) Self-organisation and emergence in MAS: an overview. Informatica (Slovenia) , 30 (1), 45–54.
  41. Seth, A.K. (2008) Measuring emergence via nonlinear granger causality. Proceedings of the Eleventh International Conference on the Simulation and Synthesis of Living Systems, pp. 545–553.
  42. Shalizi, C.R. (2006) Methods and techniques of complex systems science: an overview, in Complex Systems Science in Biomedicine , Springer, New York, pp. 33–114.
  43. Szabo, C. and Teo, Y. (2012) An integrated approach for the validation of emergence in component-based simulation models. Proceedings of the Winter Simulation Conference, pp. 2412–2423.
  44. Szabo, C. and Teo, Y.M. (2013) Post-mortem analysis of emergent behavior in complex simulation models. Proceedings of the 2013 ACM SIGSIM Conference on Principles of Advanced Discrete Simulation, ACM, pp. 241–252.
  45. Tang, M. and Mao, X. (2014) Information entropy-based metrics for measuring emergences in artificial societies. Entropy , 16 , 4583–4602.
  46. Teo, Y. and Szabo, C. (2008) CODES: an integrated approach to composable modeling and simulation. Proceedings of the 41st Annual Simulation Symposium, Ottawa, Canada, pp. 103–110.
  47. Teo, Y.M., Luong, B.L., and Szabo, C. (2013) Formalization of emergence in multi-agent systems. Proceedings of the 2013 ACM SIGSIM Conference on Principles of Advanced Discrete Simulation, ACM, pp. 231–240.
  48. Vail, D.L., Veloso, M.M., and Lafferty, J.D. (2007) Conditional random fields for activity recognition. Proceedings of the 6th International Joint Conference on Autonomous Agents and Multiagent Systems, AAMAS '07, pp. 235:1–235:8.
  49. Yaneer, B.-Y. (2004) A mathematical theory of strong emergence using multiscale variety. Complexity , 9 , 15–24.