Abstract
In network models of propagation processes, the individual, microscopic level perspective is the norm, with aggregations studied as possible outcomes. On the contrary, we adopted a mesoscale perspective with groups as the core element and in this sense we present a novel agentgroup dynamic model of propagation in networks. In particular, we focus on ephemeral groups that dynamically form, create new links, and dissolve. The experiments simulated 160 model configurations and produced results describing cases of consecutive and nonconsecutive dynamic grouping, bounded or unbounded in the number of repetitions. Results revealed the existence of complex dynamics and multiple behaviors. An efficiency metric is introduced to compare the different cases. A Null Model analysis disclosed a pattern in the difference between the group and random models, varying with the size of groups. Our findings indicate that a mesoscopic construct like the ephemeral group, based on assumptions about social behavior and absent any microscopic level change, could produce and describe complex propagation dynamics. A conclusion is that agentgroup dynamic models may represent a powerful approach for modelers and a promising new direction for future research in models of coevolution between propagation and behavior in society.
Introduction
In this work, we study the effects of the spontaneous formation of ephemeral groups during the declining part of a SIRtype propagation process^{1} and the possibility that those temporary groups could ignite a new propagation dynamic. The model takes inspiration from what we learned during the COVID19 pandemic: increased urban mobility and gatherings have been observed not just as a consequence of the decision of health authorities to remove social restrictions; instead the phenomena has been documented starting right after the peak of the infection and increasing while approaching the lifting of social restrictions^{2}. This spontaneous behavior, seemingly anticipating the decisions of health authorities, has effects that make the epidemic dynamics in the declining part a coevolutionary process with a rich behavioral component still largely unaccounted in research. Most likely reasons for ephemeral groups formation could be the increasing psychological fatigue in complying with rules of social isolation following a period of compulsory seclusion and deprivation of social gatherings and activities^{3,4,5}, distrust in health authorities and decay in risk awareness^{6}, socioeconomic disparities^{7}, or seasonality effects like amenable weather conditions favoring gatherings in public places. It is probably safe to assume that a combination of several factors is at play in what appears in many cases a recurrent pattern: generalized strict social distancing has proved to be unattainable during the declining epidemic phase, even in presence of unsafe contagion rates. More generally, a large body of scientific literature exists on collective behaviors that epidemic models still do not fully address^{8,9} and the case of the COVID19 pandemic makes no exception^{10,11}.
Several recent COVID19 works have shifted their focus on the conditions characterizing the declining part of an epidemic process, when the rate of contagions sensibly drops and social restriction measures are lifted, and on the combination of causes allowing for a relapse of the epidemic dynamics^{12,13}. However, the vastness of the interplay between epidemic dynamics and behavioral responses remains still largely unexplored. Similarly, in the more general domain of coevolutionary models of propagation and behavior, the study of dynamic network adaptations and the sheer variety of possible temporal phenomenon is still limited to few cases. This work moves in the direction of integrating an instance of collective behavior into agentbased network models of epidemics, with the specific focus on ephemeral groups, as we have dubbed the particular mesoscale structure of our interest. Two research goals have especially driven the work: first, to demonstrate the feasibility of our dynamic grouping technique in simulating network effects able to capture the behaviors produced by ephemeral groups of different characteristics. Secondly, to study and compare the effects of large and small ephemeral groups on the dynamics. In particular, we compare effects produced by scenarios with many small groups, which with the decreasing of their size are less likely to include an infected agent, with scenarios with few large groups.
Results show that a rich variety of dynamics could be reproduced with the combination of two network components, one static representing the traditional aggregated propagation based on slow social network changes and one dynamic representing the dynamic formation of ephemeral groups. Results also suggest that effects of a large group could be equally produced by simultaneous small groups, even in presence of a high rate of nonspreading groups. In the following sections, we first introduce and motivate the notion of ephemeral groups, then we describe the methodology and relevant simulation results for the different model configurations, each representing a stylized case study. We conclude discussing our findings and with some final remarks. This manuscript is completed by Supplementary Information presenting details about network characteristics, model states, and algorithms. In addition and of particular relevance is the Null Model analysis evaluating our ephemeral groups model with respect to two random models and a special case considering a nonoverlapping version of our model.
Ephemeral groups formation
The adoption of dynamic networks in epidemic models has frequently focused the attention of researchers on two main aspects: first, how network metrics developed for static networks should be modified when a dynamic network is considered^{14}; second, the characteristic burstiness of human contact networks, which has been thoroughly investigated in different domains, from human mobility and communication, to physical contacts as the contagion vector^{15,16,17,18}. Group formation, instead, has been extensively studied in network science, mostly in the form of generative models and community detection algorithms^{19,20,21}. However, with respect to the study of microscopic structural features (agent specific), mesoscopic structural features (group specific) influencing a propagation dynamic have generally received less attention^{22,23,24}. However, some notable works with specific focus on mesoscopic features have recently appeared: in COVID19 research^{25}, for the most general case of highorder interactions in complex systems^{26}, and regarding highresolution models of human mixing patterns and mobility, which define contact patterns and adopt mesoscopic descriptions^{27,28}. Highresolution models, in particular, being datadriven, could be the ideal complement of a theoretical work like ours, providing the much needed case studies and real examples of mesoscopic structures necessary for realistic simulations and further model refinements and extensions.
In our model, ephemeral groups are mesoscopic structural components defined as spontaneous, temporary, and unstructured. They are mostly composed by unrelated individuals casually gathering together with no central planning, coordination, or organizational rules. They are typically smalltomedium sized and may represent, for instance, occasional parties or other unplanned assemblage in public or private spaces aimed at gregarious activities or random people finding themselves in close proximity, for a limited time span, near pointsofinterests, in public transportation, or commercial locations. Ephemeral groups share the properties of possibly form simultaneously, repeatedly, and temporarily mixing individuals, often at random. Different is for large gatherings, which are likely to happen for special social events or circumstances, like conventions, sport competitions, fairs, or seasonal touristic influx in traditional locations. Usually, they are unique events, at least in a certain place and within a time period. Several cases of large social events have been studied with respect to their possible impact on contagions as superspreader events^{29,30,31}. Ephemeral groups, individually, are not superspreader events, whereas it is possible for their combined effect. In addition, they are more difficult to study empirically than single large events. The relatively few exceptions have mostly regarded the case of people in public transportation, with data collected from turnstiles^{32,33,34,35}, and scientific experiments involving limited groups of participants equipped with tracking devices (e.g., students on campus, visitors of museum exhibitions)^{36,37}. We are interested to study the possible effects that those ephemeral groups may have on a possible new surge in a propagation process. The model has two components, which coevolve producing mutually dependent network effects on the dynamic:

Microscopic static features An extension of the traditional SusceptibleInfectedRecovered (SIR) model based on a static proximity network and simple contagion mechanism. This part has been originally presented in Ref.^{38} to study the epidemic dynamics under the assumption of different rates of Mild/Acute infected. It provides the base epidemic model and static contact network. Details about the basic epidemic model and model epidemic states are provided in Supplementary Information, Section S1 and S2.

Mesoscopic dynamic features The dynamic formation of ephemeral groups is modeled as a choice of randomly selected agents that, starting from a given time point in the declining epidemic phase (more on the criteria for selecting when to start ephemeral groups in Supplementary Information, Section S2, subsection Ephemeral groups creation pseudocode), dynamically link pairwise in groups having the following characteristics: a variable rate of agents is involved in groups; groups are randomly created and possibly repeated for more time steps, each group may or may not include infectious agents (i.e., the probability to include spreading agents is increasing with the group size).
Figure 1 shows a schematic representation of ephemeral groups effects studied in this work.
On the timeline of simulation steps (time steps), the network dynamic is described with the progression of three characteristic steps:

Before ephemeral groups formation (time step \(T01\)) The system configuration is the product of the static contact network evolution and agents’ state transitions. Specifically, by focusing on the declining part of the dynamic, we consider the system as slowly evolving, with few agents still changing state. In the example of Fig. 1, the two red agents (Infected, for simplicity) are no longer spreading because connected only to green agents (Recovered). In the bottom right corner, a blue agent (Susceptible) appears as disconnected from the visible portion of network.

During ephemeral groups dynamic linking (time step T0) Two groups of five agents with two new links for each agent are showed marked in orange in the central vignette. Node selection for each group is random, in this version of the model. Dynamic links are assumed to be intragroup and randomized as well. Propagation from red (I) to blue (S) agents is, therefore, a first order effect of grouping only between agents belonging to the same group. Propagation to external agents is a second order effect. For simplicity, no social learning or herding effects on propagation have been assumed. Ephemeral groups are assumed to have a typical single time step lifetime. Different configurations based on the repetition of the dynamic grouping for more time steps have been simulated and studied.

After ephemeral groups dissolve and dynamic links expire (time step \(T0+1\)): The creation of new links inside ephemeral groups logically reshuffles the topology of the contact network, leading to different effects based on the group composition. In the example of Fig. 1, one group has a red (I) agent among its members, therefore possibly spreading the phenomena, while the other has none, being inactive. Spreading could be enhanced by shortening paths, connecting agents previously disconnected, or offering new contacts to isolated spreading agents, as the third vignette shows with the red agent, previously isolated between two green ones, been able to turn red the disconnected bottom right blue agent and another blue agent, from which the propagation could start over on the static network.
Materials and methods
Model
We present a stochastic groupbased network model focusing on the declining part of a schematic SIRtype propagation process in a society and considering the formation of ephemeral groups creating new dynamic links. The model is an extension and a generalization of a previously presented model^{38}. It extends the previous model by studying the conditions of ephemeral groups leading to a second epidemic dynamic under different scenarios. It is a generalization because the analysis and conclusions have a broader aim than previous COVID19 research, discussing cases of coevolution between propagation and behavior, when the behavioral component is expressed by a combination of individual (microscale model) and dynamic groups (mesoscale model). We have also simplified the analysis of agents’ state transition dynamics in order to better focus on the role of ephemeral groups from the previous extended SIR model (more details in Supplementary Information, Section S2). This way, combined with the assumption of fixed population, we have also restricted the effects produced by ephemeral groups only to a second propagation dynamic. Removing one of these assumptions and allowing for a renewal of the subpopulation of agents that could turn into spreading ones (i.e., susceptible turning infected) would make possible to sustain a series of propagation dynamics through the formation of ephemeral groups. For this study, we adopt a constant population of agents \(N=10,000\) connected on an abstract network with scalefree characteristics (Supplementary Information, Section S1 provides specific information about the network generation algorithm, the degree distribution, and some typical network centrality measures). The results of 160 different model configurations are presented, all referring to cases producing a recognizable response on the overall dynamic. They have been run through simulations and for each one we took a sample of 50 valid trials. A trial is considered invalid when the second wave was absent or insufficient to represent an epidemic dynamic (i.e., we assumed as the exclusion criteria to have less than 100 additional infected agents at the peak).
Figure 2 shows two panels, A and B, representing the general classes of propagation dynamics studied in this work, and a table containing the characteristic parameters analyzed for all the configurations and presented in the results. The main difference between panel A and panel B lays in the pattern of grouping repetition: the grouping frequency (i.e., the number of grouping time steps over a certain interval) and the total number of grouping time steps. For the grouping frequency we have considered two cases: continuous when grouping occurs at consecutive time steps and periodic when grouping occurs at nonconsecutive time steps. For the number of grouping time steps, we have considered two cases as well: bounded when a fixed number of grouping time steps is set and unbounded when grouping is allowed until the exhaustion of the propagation dynamics. In Fig. 2, panel A represents a continuous and bounded propagation dynamic, in this case 16 are the consecutive grouping time steps, indicated with \(n=16\). Instead, panel B shows a periodic and unbounded propagation dynamic, with grouping occurring at a rate of one every three time steps, indicated as \(f=1/3\), which produces the typical sawtooth shape of dynamic processes characterized by cyclic reinforcements followed by decline phases.
Panels A and B introduce several elements of the dynamics we have studied. The first part of the propagation dynamic, marked with the grey area, is useful only to have a general overview of the full process and of the typical proportions between the two phases of the propagation dynamics (several other cases with a second dynamics smaller than the first have been simulated, but in this work we focus specifically on those producing a large response). Other than that, the first part of the dynamic is not particularly relevant, representing equal initial conditions for ephemeral groups among all cases. Average number, with 95% CI, of Infected, Susceptible and Recovered agents at the start of ephemeral grouping are in Supplementary Table S2 of Supplementary Information. In following figures, the first epidemic wave will be omitted. A detail to highlight is that we studied the second propagation dynamic as the result of a continuous propagation process that produces a first dynamic, then, when a threshold on the number of spreading agents (I) is reached in the declining phase, it triggers the dynamic grouping mechanism and a flex is produced, starting the second dynamic. To be more specific, for each configuration, we have aligned all trials with respect to the flex point in order to normalize the timedependent variability and then averaged over the trials. The first dynamic (i.e., the grayed area up to the flex of panels A and B ) is independent from the grouping mechanism and shared by all configurations, with a variability within narrow stochastic bounds.
The cases we analyzed have been categorized in scenarios, each defined by the number of ephemeral groups produced per time step (\(\#G\)), and for each scenario in configurations. Together, group size, number of new links per agent, the already introduced grouping pattern, and the number of groups uniquely identify each configuration presented in the results. More specifically,

Group size represents the number of agents belonging to a group. In this study, we assume that every configuration has groups of equal size. When grouping is repeated for more time steps, at each time step groups are recreated randomly. Overlaps between groups are possible and in general highorder coupling could have relevant effects on the dynamics. For this reason, we tested a nonoverlapping variant. The model analysis of statistical significance is presented in Supplementary Information, Section S4, showing that, in our case, group overlaps seems to have a negligible effect.

New links per agent represents the number of new links each agent randomly creates. Dynamic links are only intragroup and have a lifetime of one time step. When grouping is repeated, continuously or periodically, dynamic links are recreated every grouping time step. In this study, we assume same number of new links per agent for each configuration. Dynamic links are removed when a group dissolves.

Number of groups represents how diffuse the ephemeral grouping behavior is assumed to be in the population. As a rule of thumb, we assume an inverse proportion between number of groups and their size, that is, we investigated cases of many small groups and of few large groups in order to compare the behavior. The total number of agents involved in ephemeral groups is then calculated as N. of groups \(\cdot \) group size, while the total number of dynamic links for each grouping time step is N. of groups \(\cdot \) group size \(\cdot \) new links per agent.
Pseudocode describing the algorithms could be found in Supplementary Information, Section S2.
Results
Model configurations have been divided in four scenarios, each one assuming a different number of groups per time step, \(\#G =(1,10,100,1000)\). The choice of these values has been driven by the extremes: on the one side we wish to test the case of a single large group (\(\#G=1\)), which mimics a large gathering of loosely connected agents, and on the other the case of a multitude of small groups (\(\#G=1000\)), tightly connected by dynamic links but in large majority inactive because without spreading agents. The other two values (\(\#G=(10,100)\)) represent intermediate scenarios. For each scenario, eight grouping patterns have been considered, six bounded with number of time steps \(n=(1,2,4,8,12,16)\) and two unbounded with frequency \(f=(1/3, 1/1)\).
Base epidemic and ephemeral groups simulation settings are listed in Supplementary Table S2 of Supplementary Information. For convenience, we report here the initial conditions of agent states when ephemeral groups start. Values are calculated from the trials taken from a sample of configurations and are in the form average [CI 95%]: Infected: 140 [142.25, 137.75]; Susceptible: 7087 [7122.24, 7051.76]; Recovered: 2773 [2806.25, 2739.85]. For each scenario, eight grouping patterns have been considered, six bounded with number of time steps \(n=(1,2,4,8,12,16)\) and two unbounded with frequency \(f=(1/3, 1/1)\).
Consecutive grouping, bounded and unbounded
We first look at results from configurations with consecutive grouping time steps, bounded in the number of repetitions of group formation with \(n=(1,2,4,8,12,16)\) and unbounded (frequency \(f=1/1\)). Configurations with nonconsecutive grouping (frequency \(f=1/3\)) have peculiar characteristics we discuss later. Results are first presented in Fig. 3 to give a broad overview of the outcome from all configurations and to present observations based on peak values mostly. Then, a more detailed analysis focusing on a subset of configurations and introducing productivity based and time based metrics is summarized in Table 1.
Peak analysis
By considering peak values of Infected agents reached by the different cases, we compare the performances in different scenarios, grouping patterns, and number of dynamic links created up to the peak value.
Very large peak values, in our experiments close or above 6000, mean that the propagation process reached the maximum extension and was capped by the population size and the proportion of agents that cannot be turned into spreading ones (Recovered). Configurations in all scenarios have easily reached such strong responses in a range of parameter values (group size, number of new links per agent, and number of grouping time steps), either with few loosely connected groups (e.g., lesser than 1/10 for the ratio of new links per agent over the group size) or with many small tightly connected groups (e.g., ratio of new links per agent over the group size greater than 1/10).
Therefore, from Fig. 3, a first observation is that a strong propagation dynamic cannot be excluded or it cannot be considered more or less likely only by observing whether the scenario is composed by few large but loosely connected groups (as for panels C and D) or many small but tightly connected groups (as for panels A and B).
Secondly, a plateau is not been reached only as a consequence of bounded network size, but it could be the result of a spontaneous behavior of the propagation process. This is showed in panels C (see configuration 200; 60) and particularly in panel D (see the whole series 1000; 100, 1000; 200, and 1000; 500), where peaks reach a medium level around 4000, far from the dominant effect of the limited network size (at that level, the rate of Recovered and Susceptible agents is around 30%). More specifically, in panel D, the series with group size equals to 1000 shows that the peak stays around 4000 for a large range of new links per agent (from 100 to 500). It also exhibits a striking correspondence with the behavior of the series with 5000 as group size reaching the peak value with 8 consecutive grouping time steps and similar number of total new links produced by the group, then plateaued. Other cases in different scenarios behave similarly (e,g, the 50; 10 of panel A or the 100; 60 of panel C). Another set of cases (i.e., 20; 5 of panel A; 100; 10, 50; 20 and 50; 10 of panel B; 200; 40 and 100; 60 of panel C) have a slower growth and reach the peak value only when we tested with an unbounded number of grouping time steps (for those cases, more than 20 and up to 40 consecutive grouping time steps were necessary to reach the peak).
A positive correlation between the peak level and the total number of links created by groups up to the peak (\(\#G \cdot group\; size\; \cdot new\; links\; per\; agent \cdot time\; to\; peak\)) could be observed, but the relation is not linear and could be capped. Series presented in panel B of Fig. 3 have an almost perfect correlation for all grouping patterns (i.e., 50; 40, 100; 20, and 200; 10 overlaps, as well as 100; 10 and 50; 20). In panel A and C, the correlation is still clear but, for each configuration, only up to the grouping pattern that plateaued. To this regard, panel D is the most interesting, with the capped peak of the 1000 series. Configuration 200, 40 of panel C provides another example of series that plateaued at midrange of peak values.
Efficiency of dynamic linking
Efficiency is a typical property of a process measured as the ratio between the output of the process to the input, representing which fraction of output could be obtained by consuming a unit of input. Expressed as costs or assets for the input, and number of items produced by the process for the output, an efficiency metric is useful for comparing processes and rank them based on how efficiently they use the resources, monetary or operation. Said differently, an efficiency metrics measures the marginal gain of resources.
In our model, we have observed that the peak of the epidemic propagation depends on the number of dynamic links up to the peak time step. Therefore, a measure of efficiency of ephemeral grouping processes could be done by considering the total number of Infected agents created during the time to peak phase as the output, and the total number of dynamic links created during the time to peak phase as the input. The model configuration that needs fewer dynamic links to achieve a new Infected agent is the most efficient. Eq. 1 shows the formula.
More precisely, the \(K_{Efficiency}\) metric is an approximation of the grouping process efficiency, because it does not distinguish between new Infected agents directly produced by dynamic links and those instead created by the epidemic dynamics on the static contact network. However, considering that it is only thanks to the ephemeral groups mechanism that the epidemic has produced a second wave, in first approximation we assume that all new Infected agents are, directly or indirectly, produced by the grouping process.
Table 1 presents the values of \(K_{Eff} (\times 1000)\) (in the first five rows of each quadrant), so that different model settings (pattern, configurations, scenarios) could be compared in terms of efficiency of the conversion of dynamic links into Infected agents. The last four rows of each quadrant give information related to the pattern first reaching the peak (peak value, time to peak, time to end, and links to peak).
Values \(K_{Eff}(\times 1000)<1\) represent cases of slow and ineffective propagation, whereas values \(K_{Eff}(\times 1000)>2\) are associated to fast and efficient cases. Next, the positive correlation between the peak value and the number of dynamic links created in the time to peak interval is confirmed for all series with one exception: (1000; 500). As a matter of fact, the whole (1000; *) series is a special case, because it shows how the marginal gain in Infected at the peak could decrease with the increasing density of dynamic links: (1000; 100) produces the lowest peak but with highest \(K_{Eff}\), then the peak increases for (1000; 200) but with a reduced marginal gain, until the (1000; 500) case that shows a small marginal gain and a clearly inefficient propagation, up to the point of losing the positive correlation showed by the other cases.
Another correlation that is observed is that time to peak and time to end are negatively correlated with the peak value and the links to peak (\(\times \) 1000). This is not a new result in general, on the contrary, it is typical of SIRtype dynamics^{1,39}. What is possibly interesting is the fact that the relation between peak value, number of links and duration of the propagation process could be controlled, to some extent, by the grouping mechanism. This offers interesting possibilities, that we further investigate in the next section.
Nonconsecutive grouping
Table 2 shows some results from a slightly different set of experiments aimed at investigating the effects of periodic ephemeral groups that activate with a nonconsecutive pattern. What we present is our first take, initial results, and analysis of an unexplored group model of propagation dynamics and behavior, to the best of our knowledge, which, we guess, could have numerous interesting variants and applications to many areas. Nonconsecutive grouping obviously reduces the total number of dynamic links created in a certain time span with respect to the consecutive case, but we know that the peak is correlated with the number of links created up to the peak, so a first result was to compare the peak analyses in the two cases, consecutive and nonconsecutive. Secondly, periodic grouping may produce, as we have showed in Fig. 2 for \(f=1/3\), the typical sawtooth shape of a function that alternates fast growth with a slower decline due to the fast rise of new spreading agents produced by groups followed by the slower dynamic on the static contact network where the rate of conversion from spreading agents (I) to inactive agents (R) is higher than those from potentially spreading (S) to spreading. Therefore, an interesting question regards the possibility to prolong or even fully sustain a propagation dynamic by means of a proper tuning of periodic grouping. Table 2 offers some insights. Comparing peaks analyses:

with \(f=1/3\), for each group size, the peak value and the number of links up to the peak are still positively correlated, but the correlation is lost among series of different group size;

considering the difference with consecutive cases, peaks for \(f=1/3\) fall faster than the link numbers, with the exception of cases with \(\#G=1\); this implies a reduced marginal efficacy of new links, confirmed by negative differences of the \(K_{Eff}\) index;

in \(\#G=1\), \(K_{Eff}\) differences are all positive, except for (1000; 100) and peaks do not fall faster than link numbers.
Instead, with respect to the ability of a nonconsecutive grouping pattern to extend the duration of the propagation, results show time to peak having increments from 50 to more than 100%. This was expected because it mostly depends from the reduced total number of links from start to peak. The more interesting result is that time to end has large increments, from 30 to more than 100%. Notable is that those are increments with respect to the consecutive case \(f=1/1\) that repeats grouping until the end of propagation and creates three times the number of links of \(f=1/3\). Again an important case where more links do not produce more propagation, in fact after the peak \(f=1/1\) has a negative marginal gain with respect to \(f=1/3\).
Discussion
In this work, we have proposed a new dynamic groupbased network model of a propagation process, specifically focusing on modeling mesoscopic constructs. Ephemeral groups are the composite subjects of our model. Model simulations, analysis of results and Null Model analysis (presented in Supplementary Information, Section S3) permit us to draw some conclusions.
First, by considering where we started from, an epidemic model inspired by COVID19 pandemic, we observe that ephemeral groups could be a relevant factor in epidemic dynamics when people return to socialize freely. Large gatherings resulting in superspreading events have been frequently discussed, as well as repetitive gatherings protracted for long periods, such as in schools or workplaces. Ephemeral groups are instead more elusive to a rigorous assessment of the risk they pose. To this regard, future models may shed new light on the relevance of groups on epidemic dynamics. An outcome of our work is that, at least in theory, for several and diverse configurations, ephemeral groups have the power to restart and sustain an epidemic dynamic when it was headed to expiration, in the absence of contextual changes (e.g., new more transmissible pathogens). Health authorities should exercise prudence in face of the inevitable uncertainty regarding the effects of gatherings and the difficulty of scientists in collecting precise measurements to feed epidemic models.
Secondly, the time to end metric seemingly confirms the hypothesis that a periodic dynamic grouping mechanism could deeply influence the propagation process and could sustain it for an extended period. This result could remind of known behavioral and cognitive effects from social learning theory^{40} or awareness models^{41}, all implying that periodic reinforcements could sustain an otherwise decaying process. A novelty of our work is to have derived some initial quantitative results through simulations of a group model, with the analysis suggesting that balancing the alternation of growth and decay phases, rather than simply the number of reinforcement events, is a key factor and it would be the basis for new and possibly interesting future research in this area.
Another outcome that looks interesting comes from the Null Model analysis. It suggests a change of the relevance of groups through the different scenarios. Many small groups, most of them with no internal epidemic propagation because without infected members, seem to act similarly to a random linking model. But they could be nevertheless effective in sustaining an epidemic dynamic. In real settings, they could possibly join to form larger groups. In larger groups the difference with random linking models emerges increasingly clear. Simulation data show that the ephemeral groups model reaches often a slightly higher peak with fewer active links (i.e, links between an Infected and a Susceptible agent) than corresponding random cases. This seems to indicate that groups seed and sustain a more efficient epidemic propagation. A dynamic of groups aggregating to form larger compounds represents a behavioral phenomena potentially at the base of particularly meaningful propagation models. On the practical side, not just the creation of ephemeral groups and their characteristics are relevant in a propagation phenomena, but the temporal evolution of groups organization is important as well.
Other observations are probably less relevant, but still worth mentioning. From Table 1, we obtained a detailed description of the dynamics produced by the different cases of consecutive grouping. The total number of links created up to the peak is the factor that determines the peak level (positively correlated) and the time needed to reach it (negatively correlated), which implies the existence of feedback loops in the dynamic. An important limit to the correlation between peak and number of links is the case of a propagation process that plateaued, which happens when the ability of dynamic links to produce new spreading agents drops to values of the \(K_{Eff} (\times 1000)<1\). That could happen due to the limited size of the population (i.e., the trivial case of saturation) or for contextual conditions of the propagation process for which, up from a certain level, increasing densities of dynamic links accentuate inefficiency in propagation and a decreasing marginal gain of links. The correlation is lost if the total number of links produced from the start of grouping to the end of propagation is considered, rather than only those up to the peak. Finally, nonconsecutive grouping reveals interesting scenarios. The analysis of results from Table 2 disclosed a complex interplay between the two dynamics running in parallel, the one on the static contact network and the one of dynamic grouping. On the one side, the reduced marginal efficacy of dynamic links of the nonconsecutive cases produces less new infected agents, and on the other it changes the balance between the two dynamics, shifting the weight in favor of the rate of agents recovering. This makes peaks falling, with a rate that accelerates with the loss of efficacy of dynamic links.
A concluding remark is that by studying this model, we had the clear feeling of how vast and rich could become models based on dynamic groups. Moving from typical epidemic models to models designed for the propagation of ideas, news, or products will keep some common features, but will introduce new set of assumptions, radically changing the dynamics. Highorder coupling, here barely touched in Supplementary Information, group membership persistence, heterogeneous groups, time dependent agent behavior and social reinforcement, the influx and outflux of new agents, as well as the representation of different cultures in agent populations could all become key factors of future challenging as well as interesting models.
Code availability
Data are available at https://zenodo.org/record/5626804.
References
Hethcote, H. W. The mathematics of infectious diseases. SIAM Rev. 42, 599–653 (2000).
Alfaro, L., Faia, E., Lamersdorf, N. & Saidi, F. Social interactions in pandemics: Fear, altruism, and reciprocity. Tech. Rep, National Bureau of Economic Research (2020).
Conte, M. N., Gordon, M. & Sims, C. Quarantine fatigue thins fattailed coronavirus impacts in US cities by making epidemics inevitable. medRxiv (2021).
Wirtz, K. W. Decline in mitigation readiness facilitated second waves of SARSCoV2. medRxiv (2021).
Shearston, J. A., Martinez, M. E., Nunez, Y. & Hilpert, M. Socialdistancing fatigue: Evidence from realtime crowdsourced traffic data. Sci. Total Environ. 792, 148336. https://doi.org/10.1016/j.scitotenv.2021.148336 (2021).
Giuliano, P., Rasul, I., Ciccone, A. & Ismailov, A. Compliance with social distancing during the Covid19 crisis. IZA Discuss. Pap. 13114. https://voxeu.org/article/compliancesocialdistancingduringcovid19crisis (2020).
Chang, S. et al. Mobility network models of COVID19 explain inequities and inform reopening. Nature 589, 82–87 (2021).
Templeton, A., Drury, J. & Philippides, A. From mindless masses to small groups: Conceptualizing collective behavior in crowd modeling. Rev. Gen. Psychol. 19, 215–229 (2015).
Neville, F. G. & Reicher, S. D. Crowds, social identities, and the shaping of everyday social relations. In Polit Psychol: Soc. Psychol. approach 231–252 (John Wiley & Sons, Ltd, 2018).
Van Bavel, J. J. et al. Using social and behavioural science to support COVID19 pandemic response. Nat. Hum. Behav. 4, 460–471 (2020).
Dezecache, G., Frith, C. D. & Deroy, O. Pandemics and the great evolutionary mismatch. Curr. Biol. 30, R417–R419 (2020).
Thompson, R. N. et al. Key questions for modelling COVID19 exit strategies. Proc. R. Soc. B 287, 20201405 (2020).
Ruktanonchai, N. W. et al. Assessing the impact of coordinated COVID19 exit strategies across Europe. Science 369, 1465–1470 (2020).
Holme, P. & Saramäki, J. Temporal networks. Phys. Rep. 519, 97–125 (2012).
Read, J. M., Eames, K. T. & Edmunds, W. J. Dynamic social networks and the implications for the spread of infectious disease. J. R. Soc. Interface 5, 1001–1007 (2008).
Stehlé, J., Barrat, A. & Bianconi, G. Dynamical and bursty interactions in social networks. Phys. Rev. E 81, 035101 (2010).
Rocha, L. E. & Blondel, V. D. Bursts of vertex activation and epidemics in evolving networks. PLoS Comput. Biol. 9, e1002974 (2013).
Hiraoka, T., Masuda, N., Li, A. & Jo, H.H. Modeling temporal networks with bursty activity patterns of nodes and links. Phys. Rev. Res. 2, 023073 (2020).
Girvan, M. & Newman, M. E. Community structure in social and biological networks. Proc. Natl. Acad. Sci. 99, 7821–7826 (2002).
Fortunato, S. Community detection in graphs. Phys. Rep. 486, 75–174 (2010).
Mucha, P. J., Richardson, T., Macon, K., Porter, M. A. & Onnela, J.P. Community structure in timedependent, multiscale, and multiplex networks. Science 328, 876–878 (2010).
Reichardt, J., Alamino, R. & Saad, D. The interplay between microscopic and mesoscopic structures in complex networks. PLoS One 6, e21282 (2011).
Jeub, L. G., Balachandran, P., Porter, M. A., Mucha, P. J. & Mahoney, M. W. Think locally, act locally: Detection of small, mediumsized, and large communities in large networks. Phys. Rev. E 91, 012821 (2015).
Stegehuis, C., Van Der Hofstad, R. & Van Leeuwaarden, J. S. Epidemic spreading on complex networks with community structures. Sci. Rep. 6, 1–7 (2016).
Lippold, D. et al. Spatiotemporal modeling of first and second wave outbreak dynamics of COVID19 in Germany. Biomech. Model. Mechanobiol. https://doi.org/10.1007/s1023702101520x (2021).
Battiston, F. et al. The physics of higherorder interactions in complex systems. Nat. Phys. 17, 1093–1098 (2021).
Truszkowska, A. et al. Highresolution agentbased modeling of COVID19 spreading in a small town. Adv. Theory Simul. 4, 2000277 (2021).
Mistry, D. et al. Inferring highresolution human mixing patterns for disease modeling. Nat. Commun. 12, 1–12 (2021).
Wing, C., Simon, D. H. & Carlin, P. Effects of large gatherings on the COVID19 epidemic: Evidence from professional and college sports. SSRN 3657625 (2020).
Mangrum, D. & Niekamp, P. Jue insight: College student travel contributed to local COVID19 spread. J. Urban Econ. https://doi.org/10.1016/j.jue.2020.103311 (2020).
Dave, D., McNichols, D. & Sabia, J. J. The contagion externality of a superspreading event: The Sturgis Motorcycle Rally and COVID19. South. Econ. J. 87, 769–807 (2021).
Goscé, L. & Johansson, A. Analysing the link between public transport use and airborne transmission: Mobility and contagion in the London underground. Environ. Health 17, 1–11 (2018).
Bailey, M., Farrell, P., Kuchler, T. & Stroebel, J. Social connectedness in urban areas. J. Urban Econ. 118, 103264 (2020).
Harris, J. E. The subways seeded the massive coronavirus epidemic in New York City. In NBER working paper (2020).
Qian, X., Sun, L. & Ukkusuri, S. V. Scaling of contact networks for epidemic spreading in urban transit systems. Sci. Rep. 11, 1–12 (2021).
Barrat, A. & Cattuto, C. Temporal networks of facetoface human interactions. In Temporal Networks 191–216 (Springer, 2013).
Sekara, V., Stopczynski, A. & Lehmann, S. Fundamental structures of dynamic social networks. Proc. Natl. Acad. Sci. 113, 9977–9982 (2016).
Cremonini, M. & Maghool, S. The unknown of the pandemic: An agentbased model of final phase risks. J. Artif. Soc. Soc. Simul. 23(4), 8 (2020).
Cadoni, M. & Gaeta, G. Size and timescale of epidemics in the SIR framework. Phys. D 411, 132626 (2020).
Bandura, A. & Walters, R. H. Social Learning Theory, vol. 1 (Englewood cliffs Prentice Hall, 1977).
Endsley, M. R. Toward a theory of situation awareness in dynamic systems. Hum. Factors 37, 32–64 (1995).
Acknowledgements
This research was partly supported by the EU H2020 Project CONCORDIA (contract number 830927).
Author information
Authors and Affiliations
Contributions
M.C. and S.M. conceived the model and simulations, S.M. conducted the simulations, M.C. analyzed the results and wrote the manuscript. All authors reviewed the manuscript.
Corresponding authors
Ethics declarations
Competing interests
The authors declare no competing interests.
Additional information
Publisher's note
Springer Nature remains neutral with regard to jurisdictional claims in published maps and institutional affiliations.
Supplementary Information
Rights and permissions
Open Access This article is licensed under a Creative Commons Attribution 4.0 International License, which permits use, sharing, adaptation, distribution and reproduction in any medium or format, as long as you give appropriate credit to the original author(s) and the source, provide a link to the Creative Commons licence, and indicate if changes were made. The images or other third party material in this article are included in the article's Creative Commons licence, unless indicated otherwise in a credit line to the material. If material is not included in the article's Creative Commons licence and your intended use is not permitted by statutory regulation or exceeds the permitted use, you will need to obtain permission directly from the copyright holder. To view a copy of this licence, visit http://creativecommons.org/licenses/by/4.0/.
About this article
Cite this article
Cremonini, M., Maghool, S. The dynamical formation of ephemeral groups on networks and their effects on epidemics spreading. Sci Rep 12, 683 (2022). https://doi.org/10.1038/s41598021045897
Received:
Accepted:
Published:
DOI: https://doi.org/10.1038/s41598021045897
Comments
By submitting a comment you agree to abide by our Terms and Community Guidelines. If you find something abusive or that does not comply with our terms or guidelines please flag it as inappropriate.