{'fraction_non_alphanumeric': 0.03441287806370206, 'fraction_numerical': 0.013000420601843001, 'mean_word_length': 4.9078382651908745, 'pattern_counts': {'":': 0, '<': 0, '<?xml version=': 0, '>': 0, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
Emigration dynamics of cockroaches under different disturbance regimes do not depend on individual personalities

Group-level properties, such as collective movements or decisions, can be considered an outcome of the interplay between individual behavior and social interactions. However, the respective influences of individual preferences and social interactions are not evident. In this research, we study the implications of behavioral variability on the migration dynamics of a group of gregarious insects (Periplaneta americana) subjected to two different disturbance regimes (one without disturbances and another one with high frequency of disturbances). The results indicate that individuals presented consistent behavior during the nighttime (active phase of cockroaches) in both conditions. Moreover, we used a modeling approach to test the role of personality during the migration process. The model considers identical individuals (no personality) without memory and no direct inter-attraction between individuals. The agreement between theoretical and experimental results shows that behavioral variability play a secondary role during migration dynamics. Our results showing individual personality during the nighttime (spontaneous decision to forage) but not during the emigration process (induced by environmental disturbances) highlight the plasticity of personality traits.


Results
Personality and group size effects during the active and resting phases. Groups of 20 cockroaches were tested in an arena with two identical shelters for a week (see methods). In the control or undisturbed condition (UD), the shelters remained undisturbed, while in the condition with frequent disturbances (D) the selected shelter for cockroaches on the first day was daily disturbed with light. First, we analyzed the behavioral consistency of cockroaches during the active phase (nighttime) when they explored the arena. For this purpose we took into account different parameters that have been previously described to be good proxies of shelter use and foraging activity. Cockroaches showed significant behavioral consistency for all of the parameters explored (Table 1) in the UD and D conditions. Indeed, the Kendall coefficients obtained for the Total Time Outside (TTO) and other temporal measures, such as the duration of the first exit, were greater than that expected by the Kendall random distribution (KRD), which assumes that all individuals are identical. High values of Kendall coefficient, ranging from 0 to 1, indicate consistency between days (see methods). Furthermore, we analyzed whether different social dynamics occurred within the groups. For this purpose, we created artificial or simulated groups from the experimental data. Each simulated group was composed of 20 individuals randomly selected from the pool of tested individuals' data (120 for the D condition and 140 for the UD condition). Using this method, individuals from the artificial groups maintained their behavioral consistency (its own TTO for 4 nights) but were mixed among groups. We compared the sum of the individuals' TTO within experimental groups with the sum of TTO of the artificial groups (Fig. 1), and significant differences were  Regarding the resting phase (daytime), we analyzed the effect of group size during the disturbances, and correlations were not observed between the time required to leave the S shelter after a disturbance and the size of the group at the beginning of the disturbance (regression test for the first disturbance of each day: R 2 = 0.01, F 1,233 = 73.63, P = 0.58), which indicated that the effect of group size on emigration behavior is negligible. A habituation process was not observed, and after a greater number of perturbations, individuals did not decrease their reaction time. Indeed, the mean individual time required to leave the shelter during disturbances was not correlated with the number of disturbances impacting the same individual (Kendall correlation test: R = 0.06, τ = 0.89, N = 113, P = 0.37).

Modeling emigration dynamics and choice stability in the disturbed and undisturbed conditions.
We propose a stochastic model in aim to predict the cockroaches' behavior over time and test whether a group of identical individuals without individual memory reproduce the global emigration dynamics and the behavioral response variance. Therefore, the model needs the mean probability of leaving and joining a shelter during the active and resting phases. For this purpose, we used the experimental results to quantify the fraction of individuals from all groups (UD and D condition separately) that were in a shelter at the beginning of a given phase and moved to another shelter at the end of it (active or resting phase). We calculated these mean probabilities for the Selected (S) and Non-Selected (NS) shelters during both phases and we implemented them in our model. The initial state for this model was asymmetric, which was the same as our observations because most cockroaches were under the S shelter at the beginning of the experiments. The same model was performed for the UD and D conditions with the respective probability values (see Fig. 2). In addition, for the D condition we show that individual's TTO did not influence the transition occurrences between shelters. In other words, that the individuals  transitioning from one shelter to the other or to the same one during the active phase, showed no significantly different TTO (see Table 2). Regarding the UD condition, due to the high number of occurrences between S to S shelter against other possible transitions (S to NS, NS to NS and NS to S), we could not perform any reliable statistical test. Figure 2 shows a diagram based on our results that describes the spatial dynamics of cockroaches over 24 h (resting + active phase) for the UD and D conditions. As the TTO did not influence the transition between shelters, this model neglects the nocturnal activities (such as TTO) and is only based on the individual probabilities of transition between shelters. Regarding the UD condition (Fig. 2a), the cockroaches never spontaneously left the shelters during the resting phase; therefore, the only movement between shelters occurred during the active phase. During this phase, there was a probability of moving to the opposite shelter, with Ψ (S, NS) and Ψ (NS, S) representing the probabilities of moving from the S to the NS shelter and from the NS to the S shelter during the night, respectively. In addition, Ψ (NS, NS) (= 1− Ψ (NS, S)) and Ψ (S, S) (= 1− Ψ (S, NS)) are the probabilities of returning to the previously occupied shelter. In our experimental case, the individual probability Ψ (NS, S) was greater than its opposite, meaning that the S shelter was more attractive than the NS shelter (Ψ (S, NS) = 0.1; Ψ (NS, S) = 0.4, KS test: D 1,3 = 1, P = 0.01; Fig. 2a).
Concerning the D condition (Fig. 2b), the schema becomes more complex because of the cockroaches moving between shelters during the resting phase. During the active phase, the cockroaches were able to move between the S and NS shelters, which was similar to the UD condition, although these probabilities for the D condition were not significantly different (Ψ (NS, S) = 0.3 and Ψ (S, NS) = 0.2, KS test: D 1,3 = 0.5, P = 0.53). A comparison of both conditions indicated that the Ψ (NS, S) was not significantly different (KS test: D 1,3 = 0.5, P = 0.53). Nevertheless, the Ψ (S, NS) was greater for the D condition than the UD condition (KS test: D 1,3 = 1, P = 0.01, see Fig. 2). Regarding the resting phase, individuals in the NS shelter did not move spontaneously, like in the UD condition. However, cockroaches in the S shelter had a probability of moving to the NS shelter when subjected to a disturbance. The probability of having moved (Δ (S, NS)) and remaining in the S shelter (Δ (S, S)) by the end of the resting phase are determined by eqs (1) and (2) respectively. In the UD condition, Δ (S, NS) = 0; and in the D condition, Δ (S, NS) = 0.1. In this case (eqs 1-2), θ is the conditional probability of moving between the S and NS shelter for each disturbance and l is the number of disturbances per day.
The experimental evolution of the number of cockroaches that settled inside each shelter in the UD and D conditions is reproduced by a simulation and eqs (3-5) (comparison with the observed results: KS test: D 1,4 = 0.4, P = 0.7). Eqs (3)(4)(5) considers the different transition probabilities between the S and NS shelters. P(n) (Q(n)) is the probability of cockroaches settling for the resting phase in the S (NS) shelter at day n and depends on the probabilities of moving during the resting and active phase. Tr is the resulting probability of remaining in the S shelter, as day n-1, and is related to the disturbance responses and the nocturnal activity of the cockroaches.
The solution of eqs (3-5) is as follows: The stationary state is given by eq. (7): r In the D condition, diurnal disturbances cause the population in the S shelter to diminish each day and the population in the NS shelter to increase until it reaches a value at the end of the week that is close to stationary state (= 0.54) predicted by the model after 5 days (see eq. 7 and Fig. 3a). In addition, eq. (7) predicts that greater  Table 2.

P values for the comparison of the experimental TTO distributions amongst all transitions between the S and NS shelters in the D condition (Mann-Whitney test).
Scientific RepoRts | 7:44528 | DOI: 10.1038/srep44528 Δ (S, NS) values lower the probability of residing in the S shelter at the stationary state, which means that the final proportion of the sheltered cockroaches in the S shelter will be close to Ψ (NS, S). In the UD condition, which does not present a diurnal migration (Δ (S, NS) = 0), Tr is equal to Ψ (S, S). Interestingly, the mean proportion of cockroaches that settled in the S shelter at the beginning of the experiment was already close to the predicted stationary state predicted by the model in the UD condition (= 0.8). This agreement suggests that without disturbances the stationary state is rapidly reached from the first day. Furthermore, we used eqs (8)(9) to estimate the number of individuals in the S shelter at the beginning of each resting phase. The probability of settling in the S shelter or NS shelter (P(n, i) and Q(n, i), respectively) at the beginning of day n and with i previous days in the S shelter is given by eqs (8)(9).
r The theoretical distribution of the total probability (P(n, i) + Q(n, i)) is similar to the experimental results for the UD and D conditions (KS test: D 1,5 = 0.17, P = 1 and KS test: D 1,5 = 0.33, P = 0.93, respectively, Fig. 3b,c). For both conditions, the number of cockroaches that spend between 5 and 0 days under the selected shelter decreases in a continuous way (Fig. 3b,c). This lack of differences between our model that considers identical individuals and our experimental frequencies strongly suggest that personality did not have an effect on site fidelity.
For the D condition, we analyzed the total number of disturbances experienced by each individual (Fig. 3d). Indeed, most of the cockroaches resting in the S shelter experienced all 6 disturbances per day. The probability of settling in the S shelter (P E (n, k)) or NS shelter (Q E (n, k)) at the end of day n after experiencing k disturbances is as follows (see SI 1 for a detailed explanation): The theoretical results obtained with eqs (10-12) and the observed disturbances experienced by each individual (Fig. 3d)   Discussion Nighttime dynamics and the role of personality. Our results show that stable inter-individual differences can be observed during nighttime but they are not observed during the migration process induced by frequent disturbances during the daytime. Regarding the active phase (nighttime), we measured the Total Time Outside (TTO) and a series of punctual events, such as the duration and the timing of the first exit, which showed a high inter-individual behavioral consistency over the week (Table 1).
These findings complement the results obtained in previous studies on domiciliary cockroach personalities and their effects on collective behavior 33,42,43 . Indeed, Laurent Salazar et al. 33 showed that behavior during the active phase could be explained without the use of social interactions. These results are consistent with the results of our study, in which the behavioral consistency observed during trials did not arise from group-level effects because a similar consistency was observed in artificially reshuffled groups as in experimental groups (see Fig. 1). Thus, we conclude that group personality (consistent between-groups behavioral differences) is not caused by different social interactions within groups and can only be achieved if individuals display consistent behavior. This finding supports studies that have focused on key individuals and the methods by which an individual's personality can drive the colony/group personality, which has been observed in other arthropods 44 .
Our results show that individuals behave consistently during the active phase, although how this behavioral consistency affects the emigration process remains unclear. Our hypothesis suggested that personality will have an effect on emigration dynamics, which has been demonstrated in spiders, for which personality was a better determinant of the collective foraging success than others factors 37 , and habitat alteration may have an effect on the group personality 45 . Therefore, an evolutionary perspective indicates that daily disturbances could divide the population 46 by selecting for shy personalities to remain sheltered and bold individuals to emigrate to a better shelter. Indeed, the foraging patch quality and social context as well as the individual's condition and its previous encounters with specific stressors can all influence the onset and intensity of any response 28,47 . As a result of such trade-offs, individuals might decide to tolerate a disturbance rather than flee from disturbed areas 29 . Over a long time scale, this phenomenon could generate two different populations that would show different collective dynamics 42 . We built a probability model to test the role of personality in the stability of aggregates (UD condition) and dynamics of emigration (D condition).

Modeling emigration dynamics and choice stability in the disturbed and undisturbed conditions.
The model that only considers equal individuals (without personality) predicts the stability observed in a group of cockroaches, the disturbance-induced emigration dynamics, and the variance of the behavioral responses, and these results invalidate our previous hypothesis that personality was the key driver of the emigration process. In addition, domiciliary cockroaches are subjected to social interactions during the aggregation and consensus decision-making processes 17,40,41,48 . Nevertheless, a recent article showed that these interactions are not necessary to explain the active nocturnal behavior of cockroaches 33 . In this study, the groups had already made a collective decision before the first day of experiment. Hence, the model did not consider direct inter-attraction between individuals and only considered the exploratory behavior during the active phase and the settlement process during the resting phase, which is affected by hydrocarbon deposition (indirect inter-attraction) 49 . Indeed, the probability Ψ (NS, S) was greater than the Ψ (S, NS) for the UD condition, thus favoring the occupation of the S shelter. This result agrees with past studies showing that greater hydrocarbon concentrations inside a shelter increased the attractiveness of the shelter 49 .
Regarding the D condition, the probabilities of moving between shelters (Ψ (NS, S) and Ψ (S, NS)) had similar values, contrarily to the UD condition. These differences between both conditions suggest that hydrocarbons marking the substrate play an important role in the stability of the aggregate. We assume that individuals had the same probabilities at the beginning of the experiments in the UD and D conditions because the cockroaches had not experienced prior disturbances. Following the disturbances, individuals emigrated from the S to the NS shelter, and the increased group size in the NS shelter increased the attractiveness (i.e., the concentration of hydrocarbons) of this shelter. Without such evolution of the probabilities of moving between shelters, a complete emigration would not succeed.
From an ecological perspective, cuticular hydrocarbons play an important role during the collective emigration towards a new shelter in domiciliary cockroaches. Nevertheless, this emigration process towards a new shelter occurs slowly. Hence, for an indeterminate interval, the aggregate diminishes in size, which increases the risks associated with such a decrease 50 . In addition, because the probability of staying in the same shelter during the active phase is greater than the probability of moving to the other shelter, we conclude that there is an individual memory or individual fidelity with regard to the shelters. However, these probabilities cannot be considered different between individuals. In other words, hydrocarbon marking acts as a global memory that drives population stability.
The model is able to reproduce disturbance-induced behaviors and gradual emigration dynamics. It neglects direct social interactions and only considers the probability of leaving during a disturbance and the probability of moving from one shelter to the other during the active phase (see Figs 2 and 3). Therefore, because the model only considers equal individuals, we conclude that personality does not affect the emigration process. Nevertheless, these results do not indicate that the behavioral consistency disappears during the resting phase; rather, it is overshadowed by the global emigration dynamics that occur during disturbances. Indeed, male cockroaches in a sleep-like state can be individually recognized by their specific respiratory behavior (P. Kestler, pers. com.). In such cases, behavioral consistency can be considered context dependent. The absence of personality during the disturbances can be explained by a different threshold response that occurs among individuals but it is overshadowed by the magnitude of the disturbance. A further experiment with different disturbance intensities could provide insights on this hypothesis. In several species, reaction times are influenced by the group size 3,41,51,52 , although in the current study, we observed that the time required to leave a shelter after a disturbance was not affected by the group size. These results are not inconsistent because reaction times depend on the group size but not the time required to exit the shelter 41 .
In this study, we show how groups that had selected a shelter the night before the experiment, were able to sense the degradation of the shelter quality and migrate to another one. The individual fitness of cockroaches has been reported to increase with the group size 53,54 . Therefore, the fitness of the emigrating cockroaches was dependent on the quality of the shelter (disturbed or not) and the size of the group. Individuals must be sensitive to both factors and react according to the trade-offs between staying in the disturbed shelter or moving towards the non-disturbed shelter, which brings increased risk. From an ecological and evolutionary perspective, the most fit communities are those capable of emigrating towards the NS shelter and maintaining the group size, which indicates that most of the group will have to emigrate together. However, during a slow emigration, cockroaches will be distributed between shelters, thereby reducing the group size. A diminishing group size might not have an effect in an environment exempt of predation risk, such as in birds, which show a tendency to reduce the flocking size on islands with relaxed predation 55 . Nevertheless, the individual fitness of species that benefit from aggregation (e.g., decreased physical stress, increased foraging and reproductive success or improved collective decisions) will be affected by decreases in the group size 34 .
In the present case, the composition of personalities within a group has a minor effect during the emigration process, which means that the important factor is the ability to emigrate at the group level regardless of the individuals within the group. Finally, we hypothesize that the observed personalities in males of the same age are related to different activity patterns (i.e., variability in activity patterns, such as locomotion or respiration) or threshold response levels (i.e., response to light or electric stimuli). New experiments that integrate genetic variability and epigenetics as well as physiological analyses with behavioral assays could provide insights into the behavioral plasticity and personality effects of social insects.

Methods
Biological model. Periplaneta americana follow a circadian rhythm that is characterized by an active phase (nighttime) and resting phase (daytime), during which it forms aggregates in dark, warm, and damp locations 56  The experiments were conducted in a room maintained at 25 °C ± 1 under a 12 h:12 h LD cycle (08:00-20:00; 20:00-08:00). To detect the cockroaches inside a shelter, a circular RFID lecture panel was situated under the shelters, and each individual was tagged on the pronotum with a RFID chip (diameter, 7.1 ± 0.2 mm; weight, 107 ± 3 mg; Spacecode ® ), which was glued in place by a drop of latex (Winsor & Newton ® ).
Experimental procedure and measurements. From the rearing room, we isolated into plastic containers (36 × 14 × 24 cm) adult male cohorts of the same age that were without external damage and had undergone their imaginal molting during the same month. The cockroaches had access to a piece of water-soaked cotton and dog pellets (Tom & Co. ® ). On the evening preceding the start of the experiment, we tagged the individual cockroaches with an RFID chip.
Twenty individuals were introduced into the arena one hour after tagging at approximately 19:00 h. The experiments started at 08:00 h the next day and lasted for 5 days and 4 nights. During each experiment, the RFIDs recorded (approximately every 3 seconds) (a) the number of individuals inside each shelter at every moment, (b) the total amount of time spent inside/outside shelters and (c) the number of visits to each shelter. In the Disturbed condition (N = 6), we disturbed the shelter in which the majority of the individuals were aggregated at 08:00 h the first day (more than half of the individuals in the aggregation). Hereafter, this shelter will be referred to as the selected shelter (S) and the other shelter will be referred to as the non-selected shelter (NS). If the shelters are denoted as "left" and "right", if the majority of individuals had aggregated inside the "left" shelter, then this shelter would be the only shelter that was disturbed, regardless on the number of cockroaches aggregated there through the remainder of the trial. The shelter was disturbed 6 times per day at 08:30, 10:30, 12:30, 14:30, 16:30, and 18:30 h. At those times, the exterior lights were turned off to leave the arena in the dark, and the LEDs of the shelter were turned on for 5 minutes, after which the setup was returned to the original state of illumination. In the Undisturbed condition (N = 7), none of the shelters were disturbed (see ref. 33 for more details).

Analysis.
We analyzed the RFID data to highlight the influence of disturbances on the nocturnal behavior and migration dynamics of cockroaches. For our analysis, we used parametric tests whenever the data met the normality and homogeneity of variance assumptions; otherwise, nonparametric tests were used. The R software (R Core Team, 2015), Graphpad Prism (Prism version 6.01©), and Python 3.4.1 (Python Software Foundation) platforms were used for the statistical and modeling analyses. The significance level was fixed at 0.05 for all of the tests.
To analyze the behavioral differences during the night between the Disturbed and Undisturbed conditions, we used the Kolmogorov-Smirnov test (KS test). The Total Time Outside (TTO) and the number of visits to the shelters by each individual during the active phase were used to measure the exploratory behavior. Moreover, we considered the precise moment that each individual left the shelter for the first time and the duration of this exit in further analyses.
To analyze the presence of personalities within groups, or the stability and repeatability of individual behavioral traits, we used the Kendall's coefficient of concordance (W) 57 . This test compares the stability of rank positions for each individual within trials and provides the W coefficient, which ranges from 0 (no concordance of ranks) to 1 (complete concordance). Because a general qualitative significance threshold is not available for all situations, we compared the observed W coefficients with the "Kendall Random Distribution" (KRD) as explained in Planas-Sitjà et al. 42 . The KRD is the theoretical distribution of W coefficients for random rank orders of the same number of individuals and repetitions (N = 1000). We performed a Z-test to test the significance between differences in the observed W coefficient distribution and the corresponding KRD 42,58 . In addition, we used a linear regression model to show the relationship between variables that resulted from the same active/resting period in both conditions. Finally, we used a probabilistic model to predict the cockroaches' behavior throughout the week (see Fig. 2). With this model, we were able to test for the presence and influence of different personalities with regard to the emigration dynamics. The procedure and parameters are explained in The Results section. The KS test was used to analyze deviances from the theoretical distribution obtained by the model and the experimental distributions.