A Simulation Study of Large Scale Swarms

Similar documents
Collective motion: from active matter to swarms in natural and engineered systems

Extension of cellular automata by introducing an algorithm of recursive estimation of neighbors

Hydrodynamic limit and numerical solutions in a system of self-pr

The Evolution of Animal Grouping and Collective Motion

Mathematical Aspects of Self-Organized Dynamics

arxiv: v1 [q-bio.qm] 6 Oct 2017

Models of collective displacements: from microscopic to macroscopic description

Self-Ordered Motion within Biological Systems

The Emergence of Polarization in Flocks of Starlings

Recent Advances in Consensus of Multi-Agent Systems

GUST RESPONSE ANALYSIS IN THE FLIGHT FORMATION OF UNMANNED AIR VEHICLES

Cultural Dissemination using a Quantum Model

arxiv:cond-mat/ v1 [cond-mat.stat-mech] 29 Nov 2006

REPORT DOCUMENTATION PAGE

A Simple Predator-Prey Swarming Model. Abstract

arxiv: v1 [cond-mat.stat-mech] 6 Mar 2008

Self-Organization Hypothesis. Lecture 18

Measuring Information Storage and Transfer in Swarms

Oscillatory Turing Patterns in a Simple Reaction-Diffusion System

Small-world structure of earthquake network

El Botellón: Modeling the Movement of Crowds in a City

arxiv: v2 [cond-mat.stat-mech] 6 Jun 2010

A case study for self-organized criticality and complexity in forest landscape ecology

Starling murmurations represent one of the most impressive

A pruning pattern list approach to the permutation flowshop scheduling problem

Changes in Migration Patterns of the Capelin as an Indicator of Temperature Changes in the Arctic Ocean

Time varying networks and the weakness of strong ties

Effect of Carrier Gas Flow Behavior on Performance of Separation by Using Ultrasonic Atomization

How Many Leaders Are Needed for Reaching a Consensus

Self-organized Criticality and Synchronization in a Pulse-coupled Integrate-and-Fire Neuron Model Based on Small World Networks

arxiv:chao-dyn/ v1 5 Mar 1996

A Simulation Study on the Form of Fish Schooling for Escape from Predator

arxiv: v1 [cond-mat.other] 14 May 2009

REPORT DOCUMENTATION PAGE

Local and long-range interactions for distributed control of a group of robots

Phase Transitions of an Epidemic Spreading Model in Small-World Networks

The Sandpile Model on Random Apollonian Networks

FORMULATION OF DRIVER JUDGMENT PROCESS AROUND CURVES FOR DEVIATED STATE DETECTION. Tokyo, Japan

Finding Social Webs in Swarms of Insects

PHYS 563 term Paper The Flocking Transition : A Review of The Vicsek Model

Lecture 11: Long-wavelength expansion in the Neel state Energetic terms

Particle swarm optimization (PSO): a potentially useful tool for chemometrics?

Implementing Per Bak s Sand Pile Model as a Two-Dimensional Cellular Automaton Leigh Tesfatsion 21 January 2009 Econ 308. Presentation Outline

Stable Flocking of Mobile Agents, Part I: Fixed Topology

Multiobjective Optimization of an Extremal Evolution Model

A Study of the Thermal Properties of a One. Dimensional Lennard-Jones System

Spatial and Temporal Behaviors in a Modified Evolution Model Based on Small World Network

Herd Behavior and Phase Transition in Financial Market

Behavioral Simulations in MapReduce

Quantitative Stability/Flexibility Relationships; Donald J. Jacobs, University of North Carolina at Charlotte Page 1 of 12

Transition from the macrospin to chaotic behaviour by a spin-torque driven magnetization precession of a square nanoelement

Fundamentals of Dynamical Systems / Discrete-Time Models. Dr. Dylan McNamara people.uncw.edu/ mcnamarad

RELAXATION AND TRANSIENTS IN A TIME-DEPENDENT LOGISTIC MAP

Effects of Interactive Function Forms in a Self-Organized Critical Model Based on Neural Networks

Situation. The XPS project. PSO publication pattern. Problem. Aims. Areas

Fig. 2. Growth process of a Ni attached cluster NiC 50.

Clustering. CSL465/603 - Fall 2016 Narayanan C Krishnan

DISTINGUISH HARD INSTANCES OF AN NP-HARD PROBLEM USING MACHINE LEARNING

Phase transition in a model for territorial development

Microscopic Deterministic Dynamics and Persistence Exponent arxiv:cond-mat/ v1 [cond-mat.stat-mech] 22 Sep 1999

Coevolution of learning and niche construction. Reiji Suzuki, Yasunori Noba and Takaya Arita

Supplemental Material Controlled Self-Assembly of Periodic and Aperiodic Cluster Crystals

Before we consider two canonical turbulent flows we need a general description of turbulence.

STUDY ON CORROSION P HENOMENA OF STEELS IN PB-BI FLOW

BOUNDED CONFIDENCE WITH REJECTION: THE INFINITE POPULATION LIMIT WITH PERFECT UNIFORM INITIAL DENSITY

arxiv: v1 [physics.comp-ph] 14 Nov 2014

Exploring Spatial Relationships for Knowledge Discovery in Spatial Data

Self-organization of network structure in coupled-map systems

Readiness in Formation Control of Multi-Robot System

EVOLUTION OF COMPLEX FOOD WEB STRUCTURE BASED ON MASS EXTINCTION

Avalanches in Fractional Cascading

Molecular Dynamic Simulations in JavaScript

Citation PHYSICAL REVIEW E (2002), 65(6) RightCopyright 2002 American Physical So

PHYS 410/555 Computational Physics Solution of Non Linear Equations (a.k.a. Root Finding) (Reference Numerical Recipes, 9.0, 9.1, 9.

Engineering Structures

compound Cs 2 Cu 2 Mo 3 O 12

Clusters and Percolation

Supplemental Material Controlled Self-Assembly of Periodic and Aperiodic Cluster Crystals

Maxwell s Sea of Molecular Vortices

Assignment 2 Atomic-Level Molecular Modeling

550 XU Hai-Bo, WANG Guang-Rui, and CHEN Shi-Gang Vol. 37 the denition of the domain. The map is a generalization of the standard map for which (J) = J

arxiv: v2 [q-bio.pe] 18 Dec 2007

Heterogeneity and Value-Sensitive Collective Decision-Making

The Unit Electrical Matter Substructures of Standard Model Particles. James Rees version

Chiral selection in wrapping, crossover, and braiding of DNA mediated by asymmetric bend-writhe elasticity

Consensus seeking on moving neighborhood model of random sector graphs

Development of high vorticity structures in incompressible 3D Euler equations.

Distributed Particle Swarm Optimization

Density-Based Clustering

Enabling Human Interaction with Bio-Inspired Robot Teams: Topologies, Leaders, Predators, and Stakeholders. BYU-HCMI Technical Report

Motivation, Basic Concepts, Basic Methods, Travelling Salesperson Problem (TSP), Algorithms

Criticality in Earthquakes. Good or bad for prediction?

Flocking of Discrete-time Multi-Agent Systems with Predictive Mechanisms

On Krause s Multi-Agent Consensus Model With State-Dependent Connectivity

Phase Transitions in Artificial Intelligence

Physics 562: Statistical Mechanics Spring 2003, James P. Sethna Homework 5, due Wednesday, April 2 Latest revision: April 4, 2003, 8:53 am

Optimal Shape and Topology of Structure Searched by Ants Foraging Behavior

Stable Flocking Motion of Mobile Agents Following a Leader in Fixed and Switching Networks

Generalized Manna Sandpile Model with Height Restrictions

ST-DBSCAN: An Algorithm for Clustering Spatial-Temporal Data

Transcription:

SWARM 2015: The First International Symposium on Swarm Behavior and Bio-Inspired Robotics October 28-30, Kyoto, Japan A Simulation Study of Large Scale Swarms Yhoichi Mototake 1 and Takashi Ikegami 1 1 Graduate School of Arts and Sciences, The University of Tokyo, Tokyo, Japan (Tel: +81-3-5454-6014; E-mail: mototake@sacral.c.u-tokyo.ac.jp Abstract: Reynolds s boid model (1987) is one of the first models to successfully produce swarming behavior. However, the size of the swarms was limited to a few hundred individuals. The present study is reformulated based on the original model to simulate the swarm size up to 500,000 individuals by utilizing the GPGPU technique. The preliminary study reports a qualitative change in swarm formation in larger swarms. We focused on a particular set of parameters that enables complex swarming behavior and showed: (i) a new classification of swarm groups are tested, (ii) a correlation strength gradually increases as the size of swarm increases, (iii) 10 percent of the members are exchanged but the size of the swarm is kept constant as a large swarm, and (iv) the maximum size of the swarm grows with a power law as a function of the system size. Keywords: Selected keywords relevant to the subject. 1. INTRODUCTION Studying collective behavior by using a simple abstract model is important in order to understand the mechanism of swarming. When we want to know the larger swarm s behavior, simple constructive models are particularly useful. Reynolds s boid model is a typical simulation model [1]. It is one of the oldest and most successful models to simulate collective swarm behavior and has three simple forces: attractive, repulsive and alignment. Since his pioneering work, different realizations of the boid model have been proposed and discussed. For example, Vicsek s model [2] was concerned with the alignment rule to show rich complex swarming behavior. The model has been studied in the sense of statistical physics [3]. Couzin, 2002 [4] used the differential equation corresponding to Reynolds s original model and classified the swarming behavior into four phases. Other simulation models also considered the three simple rules (or variations) and took environmental factors into account as noise terms (Aoki, 1982[5]; Okubo, 1986[6]; Reynolds, 1987[1]; Huth and Wissel, 1992[7]; Couzin, 2003[8]). Other than simplifying the generalization of a boid model, a new computational method called GPGPU has been developed to run large-scale simulations. For example, Sampson et al. (2009) elaborated a large scale simulation by using a new parallelization with GPGPU. We adopted a simple parallelization method by using a local neighbor matrix associated with each agent in order to update their states (see e.g., [9]). Then we used a GPGPU system to simulate a large scale model with parallelized differential equations. The details of the model and parallelizing method will be given in the below sections. 2. REYNOLDS BOID MODEL Reynolds s boid model is characterized by three distinct rules; attraction, repulsion, and alignment, i.e., (i) each boid is attracted to but (ii) also repulsive to the cen- Yhoichi Mototake is the presenter of this paper. ter of mass of the swarm, and (iii) they mutually align their headings in a parallel way. We translate them into a differential equation based on the velocity of each boid: v j S i = W att ( x i att n att x j ) + W rep ( ( x i x j ) ( x i x j ) ) j S rep +W ali ( v i The position of each void is updated by the computed velocity x i iteratively. The attraction and repulsion terms are represented by the first and second term, respectively. Each rule has an interaction range around each agent and is denoted by S att, S rep, and S ali, respectively. In the equation, we also introduce the amplitudes of those interactions by W att, W rep, and W ali, respectively. In order to avoid the excess speeding up or down, we bound the amplitude of speed in between V min and V max. 3. GPU IMPLEMENTATION The computational cost of the original boid model can be estimated as O(n 2 ) as the worst case while taking the total number of individuals as n. When parallelizing the computational steps by using the GPGPU method, we don t have to consider every possible pair of agents. Fortunately, our boid model has a finite interaction range, so that the computation cost can be reduced. We divide the whole space into a small size mesh (200 x 200 x 200) and each individual will be registered to the corresponding mesh ID. In this way, we divide the entire simulation process into independent ones [9]. By using this method, we achieved approximately 500,000 agents by 1 fps in our simulations. The 3-dimensional periodic boundary condition was applied here, but this is an unrealistic condition. The actual parameters used in the simulation are listed in Table 1. j S ali v j ) n ali C SWARM 2015 All Rights Reserved. 446

Parameter Value Parameter Value range of cohesion 0.05 [unit] angle of cohesion π/2 range of alignment 0.05 [unit] angle of alignment π/3 range of separation 0.01 [unit] angle of separation π/2 field size 0.5-3.0 [unit] number of individuals 2,048-524,288 max speed 0.005 [unit/step] density 16,384 [num/unit 3 ] min speed 0.001 [unit/step] initial velocity randomly distributed W att 0.008 initial position randomly distributed W rep 0.002 time step increment 1 W ali 0.06 boundary condition 3D periodic Table 1 Parameters of this simulation 4. RESULTS : COEXISTENCE OF DIFFERENT SWARMING PATTERNS 4.1. observations Couzin (2002) studied the original boid model, changing the interaction range of attraction and alignment [4]. With the total number of individuals equal to 100, he classified rather stable swarming motion into four types: swarming, torus, a dynamically parallel motion (all individuals move in the same direction without spatial coherence), and a highly parallel motion (all individuals move in the same direction). Following Couzin s work, we were mainly concerned with using a large number of individuals to find a new type of swarm movement on a large scale. We ran a simulation with randomly distributed individuals. The parameters of the simulation were explored in the area of the dynamic parallel phase in Couzin s work. A criterion for finding a parameter set was to have an unstable swarm in the lower individual scale. We then increased the number of individuals to see how swarm organization develops. In order to maintain a constant density of the number of individuals, we expanded the space size as we increased the population size. In case of 16,384 individual boids (Figure 1), a single large swarm was discovered to exist rather stably. Stretched filaments or snake-like patterns (hereafter called fragmented filaments) coexist with the large swarm. By further increasing the number of individuals, swarm dynamics become radically complex when the individual size equals 131,072 (see Figure 2). Some swarms are composed of a very large number of individuals and accompanied by small size filaments and unstable swarms. The larger swarms were moving very slowly. On the other hand, the filaments were moving rapidly, changing their patterns in unexpected ways. Furthermore, by increasing the individual size up to 524,288, larger size swarms structures were observed (see Figure 3). We used a slightly larger density size to produce Figure 3 compared with Figure 1 and Figure 2. 4.2. Analysis The stability of swarm dynamics is dependent on the swarm size and on the neighboring swarms. An initially prepared large-scale swarm will be broken up into smaller filaments and swarms; however, they will re-organize into large swarms after a while. This collapse and reorganization process will be repeated i.e., swarms can exist by exchanging individual boids. These observations suggest that (i) we need to refine the definition of a single swarm, and (ii) an order parameter is required to characterize swarm dynamics. Below, we show that DBSCAN is the most effective way to cluster different swarms. By elaborating some clustering techniques, we could finally identify distinct swarms. After identifying each swarm, we computed an average velocity and the fluctuation of velocities within a single swarm. We show that the correlation length goes up when the size of swarms goes up. 4.2.1. Clustering Swarm We first studied the number density distribution (n.d.d.) of individuals to distinguish qualitatively different swarms. By reducing the entire grid into a 60 60 60 coarse grained mesh, we computed the n.d.d. on this coarse grained mesh, as shown in Fig.4. This n.d.d. be- Fig. 1 The simulated result with 16,384 individuals. A single large size swarm exists across the periodic boundary. Some filament patterns are visible. 447

comes stable at least after 10,000 steps, which is regarded as a combination of a power and the Gaussian distribution. By fitting the distribution with Ax γ + Be (x b) 2 2σ 2, we can say that the distribution consists of large scale swarms centering around the Gaussian distribution and smaller scale swarms, including filaments, obeying a power law distribution. A clustering technique called density-based spatial clustering (DBSCAN) ([10]) was found to be the most effective. It is more intuitive and precise than, for example, standard k-means clustering. While k-means classifies based on the distance between individuals and the center of the mass, DBSCAN classifies based on the neighboring individuals connected within a certain distance. We thus used it to distinguish swarms by using the standard deviation 2 σ from the fitted Gaussian curve as the critical threshold. The additional parameter used by DBSCAN is a minimum cluster size, which is set at 2. In the analysis below, we only focused on the case of 131,072 individuals. The system slowly relaxes to an equilibrium state, and the statistical properties seemed to stabilize after 10,000 steps. In Figure 5, we show the result of clustering at 20,000 steps. From this result, we see that larger swarms were extracted successfully but smaller swarms were not clustered. Individuals in the internal region of swarms were clustered as a member of the same swarm, but those on the surface of the swarm were not. Indeed, they temporally come and go from a swarm too frequently to be classified as the member. Figure 6 is the distribution of the distinct swarm Fig. 2 The simulated result with 131,072 individuals. Some swarms are composed of a very large number of individuals with small filament patterns. Large and midsize swarms are slowly moving. Fig. 4 the number density distribution (n.d.d.) of individuals to distinguish qualitatively different swarms. By reducing the entire grid into a 60 60 60 coarse grained mesh, we computed the n.d.d. on this coarse grained mesh. This n.d.d. is regarded as a combination of a power and the Gaussian distribution. Fig. 3 The simulated result with 524,288 individuals. More complex swarms are observed. Fig. 5 This graph shows the clustering result. Extracting swarms by using a clustering technique called DB- SCAN. Large and midsize swarms were nicely extracted by the method. 448

sizes. The larger swarms (around 10 4 individuals) and the smaller swarms (around 10 3 individuals) were separated to between 1,000 and 10,000 individuals. Note that this swarm size distribution is only obtained after applying DBSCAN. It should be noted that even for the same swarm, the surface individuals can be replaced constantly. Figure 7 shows that at least 10 percent of the individuals were replaced with others (left figure), but its size deviation remained constant. 4.2.2. Fluctuation, velocity and size To quantitatively characterize the different swarm, we computed the average velocity 1 N N i=1 v i (t). Figure 8 denotes the relationship between the size of swarms and their velocities. The larger swarms did not move significantly, but the smaller swarm had larger velocities, and its distribution had two peaks. We noticed that this velocity distribution bifurcates from a single peak to double peaks between a size of 10 and 100 individuals. Smaller swarms tended not to belong to any of the swarms and Fig. 6 A size distribution of swarms. A large swarms were around size = 10 4 and those of smaller swarms were around size = 10 3. The distribution form obeys power law after 20,000 steps. rapidly moved around. Then we compute the spatial fluctuation of velocities within a same swarm 1 N j S δ v i δ v j where δ v i = v i < v > ave was computed (Figure 10). The spatial fluctuation can be related to susceptibility that measures potential response against external disturbance. The larger the swarm s susceptibility, the more sensitive the swarm is to perturbation. The larger fluctuation expresses less stability, but it is more adaptive and evolvable in the evolutionary context. We also measure the correlation length between velocities within a same swarm by C(r) = δ φ i δφ j δ(r r ij) N i j N δ(r rij) i j where δφ i =. it decays exponentially δ v i 1 N k (δ v k 2 ) and we take the first zero crossing point C(r 0 ) = 0 as a correlation length r 0. Figure 9 represents the relationship between the size of swarm and the correlation length. It grew gradually (logarithmically) as the size increased. This means that larger swarms become more coherent than the smaller swarms; meanwhile, the susceptibility decreases as the swarm size increases. Apparently, there exists a global correlation among swarms. In the end, Figure 11 shows the largest swarm found in the given system size. Since the size of the largest swarm increases by the power law, we claim that (i) a larger size swarm can emerge by increasing the number of individuals, and (ii) it s max size grows with a power law (Figure 6). Since the power law implies that there exists a global correlation among swarms, we speculate that the swarms are maintained by interacting with others, i.e., smaller ones are filled from the larger swarms, and the larger swarms are re-organized from smaller ones. Therefore, a single swarm cannot be extracted alone. 5. SUMMARY AND DISCUSSION Due to the parallelization method using GPGPU, we have successfully simulated larger scale swarms. Our re- Fig. 7 The number of individual boids exchanged per time (left bar) and the swarm size fluctuation around the mean value (right bar) Fig. 8 A relationship between velocities and swarm sizes. Large and midsize swarms do not move significantly as discussed earlier. 449

sults imply that the original Reynolds model can have much more complex swarming by merely increasing the number of individuals for some parameter regions at least. Furthermore, from quantitative analysis, we re- Fig. 9 A correlation length calculated for each swarm size. Fig. 10 The relationship between susceptibility and swarm size. Midsize swarms had relatively large susceptibility but larger swarms had smaller values. vealed that different size swarms coexist together and actually they are maintained by replicating individual members. There exist two qualitatively different swarms: one with a power law distribution and one with the Gaussian distribution with respect to the number densities. The former corresponds to smaller swarms and the latter one to larger swarms. We also found that smaller swarms move at much higher speed than larger ones. We speculate that this tendency is caused by the fact that larger swarms can only exist by constantly exchanging with other swarms and cannot keep its member by themselves. This is also confirmed by the power law distribution of the swarm sizes and by simulating the system from an initial single swarm. The present study reveals the unstable nature of the original Reynolds s model by increasing the system size. We have already confirmed more varieties in swarm behaviors with different parameter settings. The present study only deals with a special set of parameters, but we believe that the present results implies how larger swarms behave when they are organized and developed in a general sense. REFERENCES [1] C. W. Reynolds, ACM SIGGRAPH Computer Graphics 21, 25 (1987). [2] T. Vicsek, A. Czirók, E. Ben-Jacob, I. Cohen, and O. Shochet, Phys. Rev. Lett. 75, 1226 (1995). [3] H. Chaté, F. Ginelli, G. Grégoire, F. Peruani, and F. Raynaud, European Physical Journal B 64, 451 (2008). [4] I. D. Couzin, J. Krause, R. James, G. D. Ruxton, and N. R. Franks, Journal of theoretical biology 218, 1 (2002). [5] I. Aoki, Bull. Japan. Soc. Sci. Fish. 48 (1982). [6] A. Okubo, Advances in biophysics 22, 1 (1986). [7] A. Huth and C. Wissel, Journal of theoretical biology 156, 365 (1992). [8] I. D. Couzin and J. Krause, Advances in the Study of Behavior 32, 1 (2003). [9] A. R. da Silva, W. Lages, and L. Chaimowicz, Proceedings of SBGames 08: Computing Track, Computers in Entertainment (CIE), 41 (2008). [10] M. Ester, H.-P. Kriegel, J. Sander, and X. Xu, A density-based algorithm for discovering clusters in large spatial databases with noise., in Kdd, volume 96, pp. 226 231, 1996. Fig. 11 The largest swarm size found in the different system size (i.e., the total number of individuals). 450