Article | Open | Published:

# Interaction patterns and individual dynamics shape the way we move in synchrony

## Abstract

An important open problem in Human Behaviour is to understand how coordination emerges in human ensembles. This problem has been seldom studied quantitatively in the existing literature, in contrast to situations involving dual interaction. Here we study motor coordination (or synchronisation) in a group of individuals where participants are asked to visually coordinate an oscillatory hand motion. We separately tested two groups of seven participants. We observed that the coordination level of the ensemble depends on group homogeneity, as well as on the pattern of visual couplings (who looked at whom). Despite the complexity of social interactions, we show that networks of coupled heterogeneous oscillators with different structures capture well the group dynamics. Our findings are relevant to any activity requiring the coordination of several people, as in music, sport or at work, and can be extended to account for other perceptual forms of interaction such as sound or feel.

## Introduction

Motor coordination and synchronisation are essential features of many human activities, where a group of individuals performs a joint task. Examples include hands clapping in an audience1, walking in a crowd2, 3, music playing4, 5, sports6, 7 or dance8,9,10. Achieving synchronisation in the group involves perceptual interaction through sound, feel, or sight, and the establishment of mental connectedness and social attachment among group members11, 12. This human phenomenon has rarely been studied in the existing literature, in contrast to the large number of results on the dynamics of animal groups13,14,15,16.

Indeed, most available theoretical results on human coordination are concerned with the case of two individuals performing a joint action17,18,19,20, a recent example being that of the mirror game 21, presented as a paradigmatic case for the study of how people imitate each other’s movements in a pair22, 23.

For larger groups of individuals, available results are mostly experimental observations of group behaviour, including studies on rocking chairs24,25,26, rhythmic activities and marching tasks27, choir singers during a concert28, group synchronisation of arm movements and respiratory rhythms29, team rowing during a race30 and a few other sport situations31. These studies have analysed the emergent level of coordination in the group, but never in relation to the structure of interactions or the individual dynamics of group members.

Other studies have shown that the outcome and the quality of the performance in a number of situations strongly depend on how the individuals in the ensemble exchange visual, auditory and motor information4, 32,33,34,35,36. Here too, these studies lack information about how specific interaction patterns affect coordination in the group, and in general a systematic and quantitative evaluation is missing of how coupling structure and intrinsic homogeneity (or heterogeneity) in the group contribute to the emergence of synchronisation.

In this work, we address this open problem and confirm for the first time, experimentally and computationally, that different visual interaction patterns in the group affect the coordination level achieved by its members. We take as a paradigmatic example the case where participants are asked to generate an oscillatory hand motion and coordinate it with that of the others. In addition, we unfold the effects on group synchronisation of heterogeneities in the individual motion characteristics of the participants (measured in terms of the intrinsic frequency of oscillation they generate in isolation).

Specifically, we show that the level of coordination achieved by the group members is influenced by the combined action of the features characterising their motion in isolation (i.e., their natural oscillation frequency) and the specific interconnections (i.e., topological structure) among the players. We find that some topologies (e.g., all-to-all) give rise to higher levels of synchronisation (defined as an overall reduction in the phase mismatch among individuals) regardless of individual differences, whereas for other topologies (e.g., consecutive dyads) a better synchronisation is achieved through a higher homogeneity in individual dynamics.

We also propose a data-driven mathematical model that captures most of the coordination features observed experimentally. The model shows that, surprisingly, when performing a simple oscillatory movement, the group behaves as a network of nonlinearly coupled heterogeneous oscillators37, 38 despite the complexity of unavoidable social interactions in the group39,40,41,42. Also, the model reproduces the dependence of the coordination level of each individual in the group upon the intrinsic properties of its members and the interaction structure among them, notwithstanding the complex neural mechanisms behind the emergence of such coordination.

## Results

Two groups of seven players were considered, respectively named Group 1 and Group 2. Members of each group were asked to perform a simple oscillatory movement with their preferred hand and to synchronise their motion (see Methods). The oscillations produced by each individual, when isolated from the others, had a specific natural frequency. The two groups exhibited a different level of dispersion with regards to the natural oscillation frequencies of their respective members (measured in the absence of coupling, see Section 3 of Supplementary Information), as quantified by the ensembles’ coefficient of variations c v (Fig. 1a,b). In particular, the frequencies of the players of Group 2 ($${c}_{{v}_{2}}=\mathrm{21 \% }$$) showed a higher dispersion than the frequencies of those of Group 1 ($${c}_{{v}_{1}}=\mathrm{13 \% }$$). (See also Supplementary Tables 1 and 2).

Four different topologies of interactions were implemented through visual coupling for each group: Complete graph, Ring graph, Path graph and Star graph (Fig. 2). For more details on the implementation of such interaction patterns, refer to Section 1 of Supplementary Information.

A network of heterogeneous nonlinearly coupled Kuramoto oscillators37 was employed as mathematical model to capture the relevant features observed experimentally [equation (7)], given the oscillatory nature of the task participants were required to perform. For more details on how the parameters of such model were set, see Methods.

### Synchronisation levels depend on the combined action of group homogeneity and visual interactions

The values of the individual synchronisation indices ρ k of the participants in the two different groups, equal to 1 in the ideal case of player k being perfectly coordinated within the ensemble and taking lower values for increasing coordination mismatches (see Methods), were first averaged over the total number of trials for each kth player and for each topology, and then underwent a 2(Group) X 4(Topology) Mixed ANOVA. Their mean value and standard deviation over the total number of participants in the group are represented for each topology in Fig. 1c in the experimental cases, and in Fig. 1d for the simulations, respectively.

The ANOVA performed with the Greenhouse–Geisser correction revealed a statistically significant effect of Topology ($$F\mathrm{(1.648},\mathrm{19.779)}=29.447$$, p < 0.01, $${\eta }^{2}=0.710$$), suggesting an advantage of both the Complete graph and the Star graph in generating higher individual synchronisation (Bonferroni post-hoc test, p < 0.01). The Group main effect was not in itself significant ($$F\mathrm{(1},\mathrm{12)}=0.053$$, p = 0.821, $${\eta }^{2}=0.004$$). More importantly, the significant Group X Topology interaction ($$F\mathrm{(1.648},\mathrm{19.779)}=3.908$$, p < 0.05, $${\eta }^{2}=0.246$$) revealed that the topology effect on synchronisation was more pronounced for the less homogenous group (Group 2), with for instance the Path graph in that group producing the lowest level of synchronisation (Bonferroni post-hoc test, p < 0.01). For further details, see Supplementary Tables 57.

In short, visual interaction between players was found to affect synchronisation indices, more so when natural individual motions differed largely from each other43.

### Remark 1.

One could argue that the group membersplasticity, as quantified by the individual standard deviations of their natural oscillation frequencies (higher for the participants of Group 1), might be the source of differences in the overall performance. However, further numerical simulations (see Section 8.1 of Supplementary Information) confirmed that the overall frequency dispersion, rather than the intra-individual variabilities of the natural oscillation frequencies, has a significant effect on the synchronisation levels achieved by the group members. One could also argue that the difference in the natural oscillation frequencies of the participants getting disconnected in a Ring graph (to form a Path graph), or the particular member chosen as central player in a Star graph, might have a significant effect on the synchronisation levels of the ensemble. Additional numerical simulations exclude both these possibilities (see Sections 8.2 and 8.3 of Supplementary Information for more details).

### A network of heterogeneous Kuramoto oscillators behaves like a human ensemble

A 2(Group) × 4(Topology) Mixed ANOVA was performed on the simulated data to evaluate the capacity of the model proposed in equation (7) to reproduce the topology and group effects observed on the experimental human data.

The ANOVA revealed a statistically significant effect of Topology ($$F\mathrm{(3},\mathrm{36)}=5.946$$, p < 0.01, $${\eta }^{2}=0.331$$), suggesting an advantage of the Complete graph in generating higher individual synchronisations (Bonferroni post-hoc test, p < 0.05). The Group main effect was not significant ($$F(1,\mathrm{12)}=0.031$$, p = 0.862, $${\eta }^{2}=0.003$$), and neither was the Group X Topology interaction ($$F\mathrm{(3},\mathrm{36)}=0.163$$, p = 0.920, $${\eta }^{2}=0.013$$). This shows that the model succeeds in replicating the statistical significant effect of Topology, with higher values of synchronisations obtained in Complete graph and Star graph, as observed experimentally. However, in its current form it fails in modulating the topology effect by variations in the group homogeneity. (See Supplementary Tables 8 and 9 for more details).

The ability of our model to capture the human synchronisation behaviour was further reinforced by the results of two Mixed ANOVAs performed with the Greenhouse–Geisser correction separately for Group 1 and for Group 2, showing no effect of Data origin (experiment vs. simulations, Group 1: $$F\mathrm{(1},\mathrm{12)}=0.206$$, p = 0.658, $${\eta }^{2}=0.017$$; Group 2: $$F\mathrm{(1},\mathrm{12)}=0.619$$, p = 0.447, $${\eta }^{2}=0.049$$), a statistical significant effect of Topology (Group 1: $$F\mathrm{(1.523},\mathrm{18.272)}=5.419$$, p < 0.05, $${\eta }^{2}=0.311$$; Group 2: $$F\mathrm{(1.875},\mathrm{22.504)}=12.406$$, p < 0.01, $${\eta }^{2}=0.508$$), and no interaction between these two factors (Group 1: $$F\mathrm{(1.523},\mathrm{18.272)}=0.893$$, p = 0.4, $${\eta }^{2}=0.069$$; Group 2: $$F\mathrm{(1.875},\mathrm{22.504)}=1.606$$, p = 0.223, $${\eta }^{2}=0.118$$). Specifically, higher synchronisations were found in the Complete graph and Star graph (Bonferroni post-hoc test, p < 0.01). For further details, see Supplementary Tables 1013.

Altogether, these results suggest that, for each interaction pattern, a human ensemble and a network of Kuramoto oscillators behave similarly. Specifically, the mathematical model proposed in equation (7) succeeds in replicating that individual synchronisation indices ρ k depend on the particular interaction pattern implemented, as observed experimentally.

### Effects of individual consistencies on synchronisation levels

Correlation analysis between individual consistencies (across trials performed in isolation) and coordination levels (obtained from group trials) ruled out the hypothesis of higher individual synchronisation indices ρ k being related to higher individual variabilities $${c}_{v}({\omega }_{k})$$ of natural oscillation frequency (see Section 3 of Supplementary Information for more details). Indeed, correlations between these two variables tended to be negative in the experimental data for both groups (Complete graph: R = −0.69, p < 0.01; Ring graph: R = −0.14, p = 0.62; Path graph: $$R\simeq 0$$, p = 0.83; Star graph: R = −0.45, p = 0.11), and such relations were replicated by the simulated data (Complete graph: R = −0.88, p < 0.01; Ring graph: R = −0.66, p < 0.01; Path graph: R = −0.45, p = 0.11; Star graph: R = −0.55, p < 0.05).

In short, our findings show the existence of a negative relation between individual variabilities and synchronisation indices, at least significantly in the Complete graph, and that the model captures such relation.

### Visual coupling maximises synchronisation within connected dyads

For each participant of both groups, in most cases (99% for Group 1 and 94% for Group 2) the highest values of the dyadic synchronisation indices $${\rho }_{{d}_{h,k}}$$, defined similarly to ρ k but with respect to two generic participants h and k of the same group (see Methods), were observed for the visually connected dyads, a result that was found for all topologies (Fig. 3). Statistically, visually connected dyads across Group 1 and Group 2 were indeed found to exhibit higher synchronisation than non-visually coupled dyads, both in the experiments ($$t\mathrm{(117.970})=-8.872$$, p < 0.01) and in the simulations ($$t\mathrm{(153.326)}=-6.361$$, p < 0.01). For further details, refer to Section 5 of Supplementary Information.

The trend of $${\rho }_{{d}_{h,k}}$$ was thus similar in both groups, with the only exception of the Star graph in Group 1, where Player 7 failed to synchronise well with the central node (Fig. 3d, left panel). In some cases, a relatively high value of group synchronisation index ρ g , equal to 1 in the ideal case (see Methods), coexisted with low values of $${\rho }_{{d}_{h,k}}$$, as observed in the Path graph for Group 1 (Fig. 3c, left panel).

This suggests that the overall group synchronisation can be high in spite of occasional lower dyadic synchronisations in visually uncoupled players, as also replicated by the proposed mathematical model.

### Synchronisation dynamics over time differ between group interaction patterns

A closer look at the dynamics of the group synchronisation index ρ g (t) over time finally revealed interesting differences between topologies. For the Complete graph, as well as to a lesser extent for the Star graph, group synchronisation was quickly reached in most trials, though with transient losses, for both Group 1 and Group 2. The scenario is different for the Ring and Path graphs, for which ρ g (t) exhibited no clear shift between transient (low time-varying) and steady state (high constant) values, but a continuous variation in its values for both human ensembles. The mathematical model proposed in equation (7) reproduces such feature, as well as replicates the qualitative trend of ρ g (t) over time, for each group and topology (see Section 7 of Supplementary Information for further details).

These results suggest that players are not always able to maintain a high level of synchronisation over time once it is reached, particularly for the Ring and Path graphs, as also captured by the proposed mathematical model.

## Discussion

In this research, we studied synchronisation in multiplayer human ensembles. We asked two groups of seven volunteers to carry out a joint task in which they had to generate and synchronise an oscillatory motion of their preferred hand. We found that the coordination level of the participants in the two different ensembles varied over different topologies, and that such variations were more significant in the group characterised by a higher heterogeneity in terms of the natural oscillation frequency of its members.

Specifically, we observed that the synchronisation levels in Complete and Star graphs were higher than those in Path and Ring graphs, thus revealing, for the first time in a human ensemble, the key theoretical finding in Network Science 44, 45 that synchronisation depends on the structure of the interconnections between agents in a network46,47,48,49,50. In addition, we observed that the synchronisation level for a given topology was quantitatively different for the two groups characterised by a different dispersion of the agents’ frequencies. In the particular case of the Path graph, we found that the group whose members had natural frequencies closer to each other (Group 1) synchronised better. This extends to multiplayer scenarios the results of51, which showed that greater interpersonal synchrony in musical duo performances is achieved when the endogenous rhythms of two pianists are closer to each other.

Furthermore, we observed that individual consistency in the intrinsic oscillation frequency tends to enhance synchronisation, particularly in the Complete graph, and that players are not always able to maintain a high level of synchronisation over time, particularly for the Ring and Path graphs.

Note that there are other differences between the groups that might have an effect on the synchronisation levels observed experimentally (e.g., sex, weight, size, education, and so forth). In general, social factors and personality traits may affect some of the variables defined in Methods, and others. In fact, we are exploring the possibility of performing group synchronisation tasks where the same participants coordinate their motion in the presence as well as in the absence of social interaction, by means of a computer-based set-up recently proposed in52. Our preliminary results show that, also in the absence of social interaction, the topological structure of the interconnections among the groups members does have a statistically significant effect on their synchronisation levels.

Despite the incredible complexity of such human social interactions, we found that a rather simple mathematical model of coupled Kuramoto oscillators was able to capture most of the features observed experimentally. The availability of a mathematical description of the players’ dynamics can be instrumental for designing better architectures driving virtual agents (e.g., robots, computer avatars) to coordinate their motion within groups of humans53,54,55,56, as well as for predicting the coupling strength needed to restore synchronisation based on initial knowledge of individual consistency, group variance and topology.

Even though we studied a specific laboratory-oriented joint task, our approach reveals general principles behind the emergence of movement coordination in human groups that can relate to a large variety of contexts. A specific example where our results find confirmation is the coordination level, measured with the same group synchronisation index, of players in a football team. As shown in36, this index depends on the defensive playing method, giving rise to different interaction patterns among the players, as well as on the players’ dynamics when considering different teams. A similar tendency was found for the synchronisation of people dancing during a club music set, which was found to depend on the features of the songs being played10.

More generally, our study provides a criterion to determine the best players’ arrangement in multi-agent scenarios (in terms of their individual behaviour), and to designate the most appropriate interconnections among them (structure of their interactions) in order to optimise coordination when required. This is the case for instance in music and sport, where achieving a high level of coordination is indeed a matter of crucial importance.

In music, the quality of the performance in an orchestra is related to the musicians playing in synchrony42. During an orchestral show (Star graph, with the central node being the conductor) the ensemble composition, in addition to classic orchestra rules, can be decided according to group heterogeneity and individual consistencies.

In collective sports, the overall performance can be improved when participants coordinate their movements36. For instance, in team rowing (Path graph), it is important to decide who is sitting behind whom in order to maximise group homogeneity, hence synchronisation. In group ice-skating, where usually athletes split into sub-groups while performing, choosing the right composition of each subset based on individual dynamics could help increase the overall coordination. In synchronised swimming (Ring and all-to-all graphs), our findings can provide useful hints to adapt the choreographic sequence to the type of visual coupling available in these graphs. In recreational activities (e.g., our social Sunday jogging), health benefits and social affiliation might be greater when the group members synchronise their pace57.

As we further observed that high values of ρ g can coexist with low values of $${\rho }_{{d}_{h,k}}$$ for some pairs of agents, a good performance in certain group activities can be achieved by increasing specific dyadic couplings. This is, for example, the case of people performing the Mexican wave, also known as La Ola 58. The effect of a human wave travelling across the crowd can be improved by locating side by side people who are similar in their physical characteristics as well as reaction times.

## Methods

### Participants

A total of 14 volunteers participated in the experiments: 5 females and 9 males (5 participants were left handed). The majority of the participants were graduate and PhD students from the EuroMov centre at the University of Montpellier in France. The experiments were held in two different sessions: seven participants took part in the first one and formed Group 1, the other seven participated in the second session and formed Group 2.

The study was carried out according to the principles expressed in the Declaration of Helsinki and was approved by the local ethical committee (EuroMov, University of Montpellier). All participants provided written informed consent for both study participation and publication of identifying information and images. Such consent was also approved by the ethical committee.

Participants were asked to sit in a circle and move their preferred hand as smoothly as possible back and forth (i.e., away from and towards their bodies), along a direction required to be straight and parallel to the floor. Four different interaction patterns among players were implemented by asking each participant to focus their gaze on the motion of only a designated subset of other participants (for more details about the equipment employed and on how the different interaction structures were implemented see Section 1 of Supplementary Information).

• Complete graph (Fig. 2a,e): participants were asked to keep their gaze focused on the middle of the circle in order to see the movements of all other participants.

• Ring graph (Fig. 2b,f): each player was asked to maintain in her/his field of view the hand motion of only two other players, called partners.

• Path graph (Fig. 2c,f): similar to the Ring graph, but two participants, defined as external participants, were asked to maintain in their field of view the hand motion of only one partner (different for the two players).

• Star graph (Fig. 2d,g): all participants but one sat side-by-side facing the remaining participant. The former, defined as peripheral players, were asked to focus their gaze on the motion of the latter, defined as central player, who in turn was asked to maintain in her/his field of view the hand motion of all others.

Each group performed the experiments in two different conditions:

1. 1.

Eyes-closed condition. Participants were asked to oscillate their preferred hand at their own comfortable tempo for 30-second trials (16 trials for Group 1 and 10 trials for Group 2) while keeping their eyes closed.

2. 2.

Eyes-open condition. Participants were asked to synchronise the motion of each other’s preferred hands during 30-second trials. For each topology, 10 trials lasting 30s each were performed.

### Data acquisition and analysis

In order to detect the motion of the participants’ hands, circular markers were attached on top of their index finger. Eight infrared cameras (Nexus MX13 Vicon System ©) were located around the experimental room to record the position of the markers. For further details on how the experimental data was acquired and processed refer to Section 2 in Supplementary Information.

### Synchronisation metrics

Let $${x}_{k}(t)\in {\mathbb{R}}\,\forall t\in [0,T]$$ be the continuous time series representing the motion of each agent’s preferred hand, with $$k\in [1,N]$$, where N is the number of individuals and T is the duration of the experiment. Let $${x}_{k}[{t}_{i}]\in {\mathbb{R}}$$, with $$k\in [1,N]$$ and $$i\in [1,{N}_{T}]$$, be the respective discrete time series of the kth agent, obtained after sampling x k (t) at time instants t i , where N T is the number of time steps of duration $${\rm{\Delta }}T:=\frac{T}{{N}_{T}}$$, that is the sampling period. Let $${\theta }_{k}(t)\in [-\pi ,\pi ]$$ be the phase of the kth agent, which can be estimated by making use of the Hilbert transform of the signal x k (t)59. The cluster phase or Kuramoto order parameter is defined, both in its complex form $$q^{\prime} (t)\in {\mathbb{C}}$$ and in its real form $$q(t)\in [-\pi ,\pi ]$$ as

$$q^{\prime} (t):=\frac{1}{N}\sum _{k=1}^{N}\,{e}^{j{\theta }_{k}(t)},\quad q(t):={\rm{atan}}2\,(\Im (q^{\prime} (t)),\Re (q^{\prime} (t)))$$
(1)

which can be regarded as the average phase of the group at time t.

Let $${\varphi }_{k}(t):={\theta }_{k}(t)-q(t)\in [-\pi ,\pi ]$$ be the relative phase between the kth participant and the group phase at time t. The relative phase between the kth participant and the group averaged over the time interval [0, T] is defined, both in its complex form $${\bar{\varphi }}_{k}^{^{\prime} }\in {\mathbb{C}}$$ and in its real form $${\bar{\varphi }}_{k}\in [-\pi ,\pi ]$$ as

$${\bar{\varphi }}_{k}^{^{\prime} }:=\frac{1}{T}{\int }_{0}^{T}\,{e}^{j{\varphi }_{k}(t)}\,dt\simeq \frac{1}{{N}_{T}}\sum _{i=1}^{{N}_{T}}\,{e}^{j{\varphi }_{k}[{t}_{i}]},\quad {\bar{\varphi }}_{k}:={\rm{atan}}2\,(\Im ({\bar{\varphi }}_{k}^{^{\prime} }),\Re ({\bar{\varphi }}_{k}^{^{\prime} }))$$
(2)

In order to quantify the degree of synchronisation of the kth participant with respect to the group, the following parameter

$${\rho }_{k}:=|{\bar{\varphi }}_{k}^{^{\prime} }|\quad \in [0,1]$$
(3)

is defined as the individual synchronisation index: the closer ρ k is to 1, the smaller the average phase mismatch between agent k and the group over the whole duration T of the experiment.

Similarly, in order to quantify the synchronisation level of the entire group at time t, the following parameter

$${\rho }_{g}(t):=\frac{1}{N}|\sum _{k=1}^{N}\,{e}^{j({\varphi }_{k}(t)-{\bar{\varphi }}_{k})}|\quad \in [0,1]$$
(4)

is defined as the group synchronisation index: the closer ρ g (t) is to 1, the smaller the average phase mismatch among the agents in the group at time t. Its value can be averaged over the whole time interval [0, T] in order to have an estimate of the mean synchronisation level of the group during the total duration of the performance:

$${\rho }_{g}:=\frac{1}{T}{\int }_{0}^{T}\,{\rho }_{g}(t)\,dt\simeq \frac{1}{{N}_{T}}\sum _{i=1}^{{N}_{T}}\,{\rho }_{g}[{t}_{i}]\quad \in [0,1]$$
(5)

Moreover, by denoting with $${\varphi }_{{d}_{h,k}}(t):={\theta }_{h}(t)-{\theta }_{k}(t)\in [-\pi ,\pi ]$$ the relative phase between two participants in the group at time t, it is possible to define the following parameter

$${\rho }_{{d}_{h,k}}:=|\frac{1}{T}{\int }_{0}^{T}\,{e}^{\{j{\varphi }_{{d}_{h,k}}(t)\}}\,dt|\simeq |\frac{1}{{N}_{T}}\sum _{i=1}^{{N}_{T}}\,{e}^{\{j{\varphi }_{{d}_{h,k}}({t}_{i})\}}|\quad \in [0,1]$$
(6)

as their dyadic synchronisation index: the closer $${\rho }_{{d}_{h,k}}$$ is to 1, the lower the phase mismatch between agents h and k over the whole trial.

### Networks of heterogeneous Kuramoto oscillators

A network of heterogeneous nonlinearly coupled Kuramoto oscillators was employed to capture the group dynamics observed experimentally37:

$${\dot{\theta }}_{k}={\omega }_{k}+\frac{c}{N}\sum _{h=1}^{N}\,{a}_{kh}\,\sin \,({\theta }_{h}-{\theta }_{k}),\quad k=1,2,\ldots ,N$$
(7)

where θ k represents the phase of the motion of the preferred hand of the kth human participant in the ensemble, $${\omega }_{k}$$ her/his own preferred oscillation frequency when not connected to any other agent (estimated from the eyes-closed trials), and N the number of participants. Each player is modelled with a different value of $${\omega }_{k}$$, thus accounting for human-to-human variability, and is affected by the interaction with her/his neighbours modelled by the second term in the right hand side of equation (7). Specifically, $${a}_{kh}=1$$ if there is a connection between players k and h (they are looking at each other in the eyes-open trials), while $${a}_{kh}=0$$ if there is not.

Parameter c, here assumed to be constant and equal for all nodes in the network, models the interaction strength among the players, i.e., the strength of their mutual visual coupling. Such coupling strength was set for the proposed mathematical model to match the values of group synchronisation indices ρ g observed experimentally, that is c = 1.25 for Group 1 and c = 4.40 for Group 2 (Fig. 4).

For both human ensembles, the group synchronisation indices observed experimentally (Fig. 4a,d) is shown together with that obtained numerically by simulating the model proposed in equation (7) with two different values of coupling strength c. It is possible to appreciate how a lower (higher) value of c in the model reproduces well the experimental observations in the case of lower (higher) heterogeneity in the natural oscillation frequencies of the agents (as quantified by the coefficient of variation c v , Fig. 4b,e). On the other hand, experiments are not well reproduced when:

• The natural oscillation frequencies of the agents are close to each other and the coupling strength is too high (c = 4.40 in Group 1, the coordination level in Complete graph and Star graph should be higher than that in Ring graph and Path graph, Fig. 4c);

• The natural oscillation frequencies of the agents are far from each other and the coupling strength is too low (c = 1.25 in Group 2, the coordination level in Ring, Path and Star graph is not comparable with that obtained experimentally, Fig. 4f).

As expected from theory60, in order to reproduce the experiments (see also Supplementary Tables 3 and 4 for further details) the coupling strength c among the nodes in the model needs to take higher values for higher dispersions of the oscillation frequencies. Further information on how the model was initialised and parameterised can be found in Section 3 of Supplementary Information.

Publisher's note: Springer Nature remains neutral with regard to jurisdictional claims in published maps and institutional affiliations.

## References

1. 1.

Néda, Z., Ravasz, E., Brechet, Y., Vicsek, T. & Barabási, A.-L. Self-organizing processes: The sound of many hands clapping. Nature 403(6772), 849–850 (2000).

2. 2.

Moussad, M., Perozo, N., Garnier, S., Helbing, D. & Theraulaz, G. The walking behaviour of pedestrian social groups and its impact on crowd dynamics. PLoS One 5(4), e10047 (2010).

3. 3.

Rio, K. & Warren, W. H. The visual coupling between neighbors in real and virtual crowds. Transport. Res. Proc. 2, 132–140 (2014).

4. 4.

D’Ausilio, A. et al. Leadership in orchestra emerges from the causal relationships of movement kinematics. PLoS One 7(5), e35757 (2012).

5. 5.

Badino, L., D’Ausilio, A., Glowinski, D., Camurri, A. & Fadiga, L. Sensorimotor communication in professional quartets. Neuropsychologia 55, 98–104 (2014).

6. 6.

Duch, J., Waitzman, J. S. & Amaral, L. A. N. Quantifying the performance of individual players in a team activity. PLoS One 5(6), e10937 (2010).

7. 7.

Silva, P. et al. Practice effects on intra-team synergies in football teams. Hum. Movement Sci. 46, 39–51 (2016).

8. 8.

Leonard, N. E. et al. In the Dance Studio: An Art and Engineering Exploration of Human Flocking. Springer, Controls and Art, 27–49 (2014).

9. 9.

Dey, B., Lazier, R. J., Trueman, D. & Leonard, N. E. Investigating group behavior in dance: an evolutionary dynamics approach. Proc. IEEE American Control Conf. Boston, Massachusetts, USA, 6465–6470 (2016).

10. 10.

Ellamil, M., Berson, J., Wong, J., Buckley, L. & Margulies, D. S. One in the dance: Musical correlates of group synchrony in a real-world club environment. PLoS One 11(10), e0164783 (2016).

11. 11.

Van Baaren, R. B., Holland, R. W., Kawakami, K. & Van Knippenberg, A. Mimicry and prosocial behavior. Psychol. Sci. 15(1), 71–74 (2004).

12. 12.

Wiltermuth, S. S. & Heath, C. Synchrony and cooperation. Psychol. Sci. 20(1), 1–5 (2009).

13. 13.

Couzin, I. D., Krause, J., Franks, N. R. & Levin, S. A. Effective leadership and decision-making in animal groups on the move. Nature 433(7025), 513–516 (2005).

14. 14.

Nagy, M., Ákos, Z., Biro, D. & Vicsek, T. Hierarchical group dynamics in pigeon flocks. Nature 464(7290), 890–893 (2010).

15. 15.

Nagy, M. et al. Context-dependent hierarchies in pigeons. Proc. Natl. Acad. Sci. USA 110(32), 13049–13054 (2013).

16. 16.

Zienkiewicz, A., Barton, D. A. W., Porfiri, M. & di Bernardo, M. Leadership emergence in a data-driven model of zebrafish shoals with speed modulation. Eur. Phys. J. Spec. Top. 224(17–18), 3343–3360 (2015).

17. 17.

Oullier, O., De Guzman, G. C., Jantzen, K. J., Lagarde, J. & Scott Kelso, J. A. Social coordination dynamics: Measuring human bonding. Soc. Neurosci. 3(2), 178–192 (2008).

18. 18.

Schmidt, R. C. & Turvey, M. T. Phase-entrainment dynamics of visually coupled rhythmic movements. Biol. Cybern. 70(4), 369–376 (1994).

19. 19.

Varlet, M., Marin, L., Lagarde, J. & Bardy, B. G. Social postural coordination. J. Exp. Psychol. Hum. Percept. Perform. 37(2), 473–483 (2011).

20. 20.

Słowiński, P. et al. Dynamic similarity promotes interpersonal coordination in joint action. J. R. Soc. Interface 13(116), 20151093 (2016).

21. 21.

Noy, L., Dekel, E. & Alon, U. The mirror game as a paradigm for studying the dynamics of two people improvising motion together. Proc. Natl. Acad. Sci. USA 108(52), 20947–20952 (2011).

22. 22.

Zhai, C., Alderisio, F., Tsaneva-Atanasova, K. & di Bernardo, M. A novel cognitive architecture for a human-like virtual player in the mirror game. Proc. IEEE Conf. Syst., Man, Cybern. San Diego, California, USA, 754–759 (2014).

23. 23.

Zhai, C., Alderisio, F., Słowiński, P., Tsaneva-Atanasova, K. & di Bernardo, M. Design of a virtual player for joint improvisation with humans in the mirror game. PLoS One 11(4), e0154361 (2016).

24. 24.

Frank, T. D. & Richardson, M. J. On a test statistic for the Kuramoto order parameter of synchronization: an illustration for group synchronization during rocking chairs. Phys. D 239(23), 2084–2092 (2010).

25. 25.

Richardson, M. J., Garcia, R. L., Frank, T. D., Gergor, M. & Marsh, K. L. Measuring group synchrony: a cluster-phase method for analyzing multivariate movement time-series. Front. Physiol. 3 (2012).

26. 26.

Alderisio, F., Bardy, B. G. & di Bernardo, M. Entrainment and synchronization in networks of Rayleigh–van der Pol oscillators with diffusive and Haken–Kelso–Bunz couplings. Biol. Cybern. 110(2), 151–169, doi:10.1007/s00422-016-0685-7 (2016).

27. 27.

Iqbal, T. & Riek, L. A method for automatic detection of psychomotor entrainment. IEEE T. Affect. Comput. 7(1), 3–16 (2016).

28. 28.

Himberg, T. & Thompson, M. Group synchronization of coordinated movements in a cross-cultural choir workshop. 7th Triennial Conference of European Society for the Cognitive Sciences of Music 175–180 (2009).

29. 29.

Codrons, E., Bernardi, N. F., Vandoni, M. & Bernardi, L. Spontaneous group synchronization of movements and respiratory rhythms. PLoS One 9(9), e107538 (2014).

30. 30.

Wing, A. M. & Woodburn, C. The coordination and consistency of rowers in a racing eight. J. Sports Sci. 13(3), 187–197 (1995).

31. 31.

Yokoyama, K. & Yamamoto, Y. Three people can synchronize as coupled oscillators during sports activities. PLoS Comput. Biol. 7(10), e1002181 (2011).

32. 32.

Healey, P. G. T., Leach, J. & Bryan-Kinns, N. Inter-play: Understanding group music improvisation as a form of everyday interaction. Proceedings of Less is More–Simple Computing in an Age of Complexity (2005).

33. 33.

Kauffeld, S. & Meyers, R. A. Complaint and solution-oriented circles: Interaction patterns in work group discussions. Eur. J. Work Organ. Psy. 18(3), 267–294 (2009).

34. 34.

Passos, P. et al. Networks as a novel tool for studying team ball sports as complex social systems. J. Sci. Med. Sport 14(2), 170–176 (2011).

35. 35.

Duarte, R. et al. Intra-and inter-group coordination patterns reveal collective behaviors of football players near the scoring zone. Hum. Mov. Sci. 31(6), 1639–1651 (2012).

36. 36.

Duarte, R., Travassos, B., Araújo, D. & Richardson, M. J. The influence of manipulating the defensive playing method on collective synchrony of football teams. Performance Analysis of Sport IX. Routledge, Taylor & Francis Group London (2013).

37. 37.

Kuramoto, Y. Chemical Oscillations, Waves and Turbulence. Springer, Heidelberg (1984).

38. 38.

Strogatz, S. H. From Kuramoto to Crawford: exploring the onset of synchronization in populations of coupled oscillators. Physica D 143(1), 1–20 (2000).

39. 39.

Baumeister, R. F. & Leary, M. R. The need to belong: desire for interpersonal attachments as a fundamental human motivation. Psychol. Bull. 117(3), 497–529 (1995).

40. 40.

Mäs, M., Flache, A. & Helbing, D. Individualization as driving force of clustering phenomena in humans. PLoS Comput. Biol. 6(10), e1000959 (2010).

41. 41.

Stark, T. H., Flache, A. & Veenstra, R. Generalization of positive and negative attitudes toward individuals to outgroup attitudes. Pers. Soc. Psychol. B. 39(5), 608–622 (2013).

42. 42.

Volpe, G., D’Ausilio, A., Badino, L., Camurri, A. & Fadiga, L. Measuring social interaction in music ensembles. Phil. Trans. R. Soc. B. 371, 20150377 (2016).

43. 43.

Scafuti, F., Takaaki, A. & di Bernardo, M. Heterogeneity induces emergent functional networks for synchronization. Phys. Rev. E 91(6), 062913 (2015).

44. 44.

Albert, R. & Barabási, A.-L. Statistical mechanics of complex networks. Rev. Mod. Phys. 74(1), 47–97 (2002).

45. 45.

Newman, M., Barabási, A.-L & Watts, D. J. The structure and dynamics of networks. Princeton University Press (2011).

46. 46.

Arenas, A., Daz-Guilera, A., Kurths, J., Moreno, Y. & Zhou, C. Synchronization in complex networks. Phys. Rep. 469(3), 93–153 (2008).

47. 47.

Assenza, S., Gutiérrez, R., Gómez-Gardeñes, J., Latora, V. & Boccaletti, S. Emergence of structural patterns out of synchronization in networks with competitive interactions. Sci. Rep. 1 (2011).

48. 48.

Moreno, Y. & Pacheco, A. F. Synchronization of Kuramoto oscillators in scale-free networks. Europhys. Lett. 68(4), 603 (2004).

49. 49.

Santos, F. C., Rodrigues, J. F. & Pacheco, J. M. Graph topology plays a determinant role in the evolution of cooperation. Proc. R. Soc. Lond. [Biol] 273(1582), 51–55 (2006).

50. 50.

Antonioni, A. & Cardillo, A. Coevolution of synchronization and cooperation in costly networked interactions. Phys. Rev. Lett. 118 (2017).

51. 51.

Zamm, A., Wellman, C. & Palmer, C. Endogenous rhythms influence interpersonal synchrony. J. Exp. Psychol. Hum. Percept. Perform. 42 (2016).

52. 52.

Alderisio, F., Lombardi, M., Fiore, G., & di Bernardo, M. A novel computer-based set-up to study movement coordination in human ensembles. Front. Psychol. 8 (2017).

53. 53.

Boucenna, S., Cohen, D., Meltzoff, A. N., Gaussier, P. & Chetouani, M. Robots learn to recognize individuals from imitative encounters with people and avatars. Sci. Rep. 6 (2016).

54. 54.

Iqbal, T., Rack, S. & Riek, L. D. Movement coordination in human-robot teams: a dynamical systems approach. arXiv preprint arXiv:1605.01459 (2016).

55. 55.

Alderisio, F., Antonacci, D., Zhai, C., & di Bernardo, M. Comparing different control approaches to implement a human-like virtual player in the mirror game. Proc. European Control Conference, Aalborg, Denmark, 216–221 (2016).

56. 56.

Zhai, C., Alderisio, F., Słowiński, P., Tsaneva-Atanasova, K. & di Bernardo, M. Design and validation of a virtual player for studying interpersonal coordination in the mirror game. IEEE Trans. Cybern., doi:10.1109/TCYB.2017.2671456 (2017).

57. 57.

Marsh, K. L., Richardson, M. J. & Schmidt, R. C. Social connection through joint action and interpersonal coordination. Top. Cogn. Sci. 1(2), 320–339 (2009).

58. 58.

Farkas, I., Helbing, D. & Vicsek, T. Social behaviour: Mexican waves in an excitable medium. Nature 419(6903), 131–132 (2002).

59. 59.

Kralemann, B., Cimponeriu, L., Rosenblum, M., Pikovsky, A. & Mrowka, R. Phase dynamics of coupled oscillators reconstructed from data. Phys. Rev. E 77(6), 066205 (2008).

60. 60.

DeLellis, P., di Bernardo, M. & Liuzza, D. Convergence and synchronization in heterogeneous networks of smooth and piecewise smooth systems. Automatica 56, 1–11 (2015).

## Acknowledgements

The authors wish to acknowledge support from the European Project AlterEgo FP7 ICT 2.9–Cognitive Sciences and Robotics, Grant Number 600610. The authors wish to thank Simon Pla (Montpellier University) for the help provided in running some of the experiments, Mathieu Gueugnon (Montpellier University) for providing some of the MATLAB code necessary to analyse the data, Dr. Chris Kent (the University of Bristol) for advice on how to analyse some of the data, and Prof. John Hogan (the University of Bristol), Dr. Daniel Alberto Burbano Lombana (the University of Naples Federico II) and Dr. Filippo Menolascina (the University of Edinburgh) for stimulating discussions and critical reading of the manuscript.

## Author information

### Affiliations

1. #### Department of Engineering Mathematics, Merchant Venturers Building, University of Bristol, Woodland Road, Clifton, Bristol, BS8 1UB, United Kingdom

• Francesco Alderisio
• , Gianfranco Fiore
•  & Mario di Bernardo
2. #### EuroMov, Montpellier University, 700 Avenue du Pic Saint-Loup, 34090, Montpellier, France

• Robin N. Salesse
•  & Benoît G. Bardy
3. #### Institut Universitaire de France, 1 rue Descartes, 75231, Paris Cedex 05, France

• Benoît G. Bardy
4. #### Department of Electrical Engineering and Information Technology, University of Naples Federico II, Via Claudio 21, 80125, Naples, Italy

• Mario di Bernardo

### Contributions

Conceived and designed the experiments: F.A., R.S., B.B., M.d.B. Performed the experiments: F.A., R.S. Analysed the data: F.A., G.F. Contributed reagents/materials/analysis tools: F.A., G.F., R.S. Wrote the paper: F.A., G.F., B.B., M.d.B.

### Competing Interests

The authors declare that they have no competing interests.

### Corresponding author

Correspondence to Mario di Bernardo.

## Electronic supplementary material

### DOI

https://doi.org/10.1038/s41598-017-06559-4