{"id":244994,"date":"2025-07-07T10:13:11","date_gmt":"2025-07-07T10:13:11","guid":{"rendered":"https:\/\/www.europesays.com\/uk\/244994\/"},"modified":"2025-07-07T10:13:11","modified_gmt":"2025-07-07T10:13:11","slug":"neurogenomic-and-behavioral-principles-shape-freezing-dynamics-and-synergistic-performance-in-drosophila-melanogaster","status":"publish","type":"post","link":"https:\/\/www.europesays.com\/uk\/244994\/","title":{"rendered":"Neurogenomic and behavioral principles shape freezing dynamics and synergistic performance in Drosophila melanogaster"},"content":{"rendered":"<p>Ethics<\/p>\n<p>Experiments using transgenic Drosophila melanogaster stocks were approved under Chiba University Institutional Biosafety Committee protocol #G5-46.<\/p>\n<p>Fly strains and keeping conditions<\/p>\n<p>A cohort of 104 strains derived from the DGRP was used in our experiment. This panel consists of 205 inbred and genetically distinct strains of D. melanogaster, representing natural genetic diversity within a population captured in North Carolina, US. Flies were kept at 25\u2009\u00b0C with about 40\u201360% humidity in a 12\u2009L:12D cycle, with standard food (Bloomington Formulation, Nutri-Fly\u2122, #66-113, Genesee Scientific). A visually defective mutant strain, w[*] norpA[P12] (BDSC#9047)<a data-track=\"click\" data-track-action=\"reference anchor\" data-track-label=\"link\" data-test=\"citation-ref\" aria-label=\"Reference 62\" title=\"Pak, W. L., Grossfield, J. &amp; Arnold, K. S. Mutants of the visual pathway of Drosophila melanogaster. Nature 227, 518&#x2013;520 (1970).\" href=\"http:\/\/www.nature.com\/articles\/s41467-025-61313-z#ref-CR62\" id=\"ref-link-section-d10267634e1840\" target=\"_blank\" rel=\"noopener\">62<\/a>, was used to test the behavior of blind flies and the contribution of visual information in our assay. The following lines were used for functional assay of lamina neurons and Ptp99A: R9B08-GAL4 (w[1118]; P{y[+t7.7] w[+mC]=GMR9B08-GAL4}attP2\/TM3, Sb[1]; BDSC#41369), Ptp99A-GAL4 (w[1118]; Mi{GFP[E.3xP3]=ET1}Ptp99A[MB04947]; BDSC#24843), UAS-TNT (w[*]; P{w[+mC]=UAS-TeTxLC.tnt}G2; BDSC#28838), UAS-IMPTNT (w[*]; P{w[+mC]=UAS-TeTxLC.(-)V}A2; BDSC#28840), UAS-Ptp99ARNAi (y[1] v[1]; P{y[+t7.7] v[+t1.8]=TRiP.JF01858}attP2; BDSC#25840). All fly strains were obtained from the Bloomington Drosophila Stock Center (BDSC), and the list of used strains with the stock number is summarized in Supplementary Data\u00a0<a data-track=\"click\" data-track-label=\"link\" data-track-action=\"supplementary material anchor\" href=\"http:\/\/www.nature.com\/articles\/s41467-025-61313-z#MOESM9\" target=\"_blank\" rel=\"noopener\">7<\/a>. Adult flies of both sexes aged at 2\u20134 days since eclosion were tested in the first behavioral screening with DGRP strains and norpA mutant (n\u2009=\u200920 per sex and social circumstance for each strain). Given the observed chasing behavior among male flies in several strains as described later, which likely impacts their social interaction, we used only female flies in a subsequent mixed-strain group experiment (n\u2009=\u200910 for each pair of strains) and mutant assay (n\u2009=\u200920 for each condition of strains).<\/p>\n<p>To enable comparisons between the norpA mutant strain and DGRP strains, we backcrossed this mutant four times with DGRP208, a strain with intermediate behavioral phenotypes, while monitoring the norpA genotype using the following protocols. Genomic DNA was extracted from the whole body of a fly using the MightyPrep reagent (#9182, Takara Bio Inc., Japan) and amplified by PCR with MightyAmp DNA Polymerase (#R076A, Takara Bio Inc., Japan) and the primers targeting the mutated 240th residue<a data-track=\"click\" data-track-action=\"reference anchor\" data-track-label=\"link\" data-test=\"citation-ref\" aria-label=\"Reference 63\" title=\"Pearn, M. T., Randall, L. L., Shortridge, R. D., Burg, M. G. &amp; Pak, W. L. Molecular, biochemical, and electrophysiological characterization of Drosophila norpA mutants (&#x2217;). J. Biol. Chem. 271, 4937&#x2013;4945 (1996).\" href=\"http:\/\/www.nature.com\/articles\/s41467-025-61313-z#ref-CR63\" id=\"ref-link-section-d10267634e1912\" target=\"_blank\" rel=\"noopener\">63<\/a> (Table\u00a0<a data-track=\"click\" data-track-label=\"link\" data-track-action=\"supplementary material anchor\" href=\"http:\/\/www.nature.com\/articles\/s41467-025-61313-z#MOESM1\" target=\"_blank\" rel=\"noopener\">S1<\/a>). The thermal cycling conditions were as follows: 98\u2009\u00b0C for 1\u2009min, followed by 30\u2009cycles of 98\u2009\u00b0C for 10\u2009s, 59\u2009\u00b0C for 15\u2009s and 68\u2009\u00b0C for 1\u2009min. The amplified norpA cDNAs were digested with Cac8I (#R0579L, New England Biolabs Japan Inc., Japan) according to the manufacturer\u2019s instructions, resulting in products of different lengths depending on the norpA genotype. During the backcrossing, we successfully eliminated the white mutation which can also affect the flies\u2019 visual properties<a data-track=\"click\" data-track-action=\"reference anchor\" data-track-label=\"link\" data-test=\"citation-ref\" aria-label=\"Reference 64\" title=\"Ferreiro, M. J. et al. Drosophila melanogaster white mutant w1118 undergo retinal degeneration. Front. Neurosci. 11, 732 (2017).\" href=\"http:\/\/www.nature.com\/articles\/s41467-025-61313-z#ref-CR64\" id=\"ref-link-section-d10267634e1929\" target=\"_blank\" rel=\"noopener\">64<\/a>, through recombination. This resulted in a strain that isolates the effect of the norpAP12 mutation in the DGRP208 genetic background. The confirmed sequences of norpA and eye phenotypes are shown in Fig.\u00a0<a data-track=\"click\" data-track-label=\"link\" data-track-action=\"supplementary material anchor\" href=\"http:\/\/www.nature.com\/articles\/s41467-025-61313-z#MOESM1\" target=\"_blank\" rel=\"noopener\">S19<\/a>.<\/p>\n<p>Behavioral assay under looming stimuli<\/p>\n<p>Behavioral assays were conducted as previously described<a data-track=\"click\" data-track-action=\"reference anchor\" data-track-label=\"link\" data-test=\"citation-ref\" aria-label=\"Reference 65\" title=\"Sato, D. X., Okuyama, T. &amp; Takahashi, Y. Multifaceted and extensive behavioral trajectories of genomically diverse Drosophila lines. Sci. Data 12, 1&#x2013;6 (2025).\" href=\"http:\/\/www.nature.com\/articles\/s41467-025-61313-z#ref-CR65\" id=\"ref-link-section-d10267634e1952\" target=\"_blank\" rel=\"noopener\">65<\/a>. Briefly, flies were tested individually or in single-sex groups (n\u2009=\u20096) to avoid sexual behavior that could confound threat responses. We chose six individuals to be grouped since the previous study demonstrated the number to be enough to show group effect in the assay<a data-track=\"click\" data-track-action=\"reference anchor\" data-track-label=\"link\" data-test=\"citation-ref\" aria-label=\"Reference 26\" title=\"Ferreira, C. H. &amp; Moita, M. A. Behavioral and neuronal underpinnings of safety in numbers in fruit flies. Nat. Commun. 11, 4182 (2020).\" href=\"http:\/\/www.nature.com\/articles\/s41467-025-61313-z#ref-CR26\" id=\"ref-link-section-d10267634e1959\" target=\"_blank\" rel=\"noopener\">26<\/a>. Flies were placed in arenas with sloped walls (30\u2009mm in diameter, 2\u2009mm deep), and looming stimuli were presented on a 13.3-inch monitor tilted 45\u00b0 toward the plate, as detailed in our previous study<a data-track=\"click\" data-track-action=\"reference anchor\" data-track-label=\"link\" data-test=\"citation-ref\" aria-label=\"Reference 65\" title=\"Sato, D. X., Okuyama, T. &amp; Takahashi, Y. Multifaceted and extensive behavioral trajectories of genomically diverse Drosophila lines. Sci. Data 12, 1&#x2013;6 (2025).\" href=\"http:\/\/www.nature.com\/articles\/s41467-025-61313-z#ref-CR65\" id=\"ref-link-section-d10267634e1963\" target=\"_blank\" rel=\"noopener\">65<\/a>. The flies\u2019 behavior was recorded at approximately 50 frames per second using a USB3 camera (DMK33UX290, The Imaging Source, Germany) controlled by a custom python script. Recorded videos were trimmed per arena and tracked using Tracktor software<a data-track=\"click\" data-track-action=\"reference anchor\" data-track-label=\"link\" data-test=\"citation-ref\" aria-label=\"Reference 66\" title=\"Sridhar, V. H., Roche, D. G. &amp; Gingins, S. Tracktor: Image-based automated tracking of animal movement and behaviour. Methods Ecol. Evol. 10, 815&#x2013;820 (2019).\" href=\"http:\/\/www.nature.com\/articles\/s41467-025-61313-z#ref-CR66\" id=\"ref-link-section-d10267634e1967\" target=\"_blank\" rel=\"noopener\">66<\/a>, followed by additional error corrections with custom scripts<a data-track=\"click\" data-track-action=\"reference anchor\" data-track-label=\"link\" data-test=\"citation-ref\" aria-label=\"Reference 65\" title=\"Sato, D. X., Okuyama, T. &amp; Takahashi, Y. Multifaceted and extensive behavioral trajectories of genomically diverse Drosophila lines. Sci. Data 12, 1&#x2013;6 (2025).\" href=\"http:\/\/www.nature.com\/articles\/s41467-025-61313-z#ref-CR65\" id=\"ref-link-section-d10267634e1972\" target=\"_blank\" rel=\"noopener\">65<\/a>. To further reduce the calibration errors of tracking, the weighted moving average of coordinates over a time span (9 preceding time points including a time point of interest) was used for analysis. The coordinates were subsequently used to calculate the distance traveled from a previous time point, moving speed (traveled distance divided by frame intervals), and head angle (calculated by the movement between time points 50 ahead and behind the time point of interest) for each time point. These measures were averaged at 0.5-s intervals and used for subsequent analyses. Locomotor behavior was briefly dichotomized as walking when their speed was &gt; 4\u2009mm\/s or stopping otherwise<a data-track=\"click\" data-track-action=\"reference anchor\" data-track-label=\"link\" data-test=\"citation-ref\" aria-label=\"Reference 25\" title=\"Zacarias, R., Namiki, S., Card, G. M., Vasconcelos, M. L. &amp; Moita, M. A. Speed dependent descending control of freezing behavior in Drosophila melanogaster. Nat. Commun. 9, 3697 (2018).\" href=\"http:\/\/www.nature.com\/articles\/s41467-025-61313-z#ref-CR25\" id=\"ref-link-section-d10267634e1976\" target=\"_blank\" rel=\"noopener\">25<\/a>. Freezing was defined when a fly that stopped 0.5\u2009s after a stimulus continued to stop 10\u2009s after the stimulus, otherwise referred to as freezing exit.<\/p>\n<p>Calculation and analysis of behavioral indices<\/p>\n<p>The average moving speed during the first 5\u2009min with no stimuli was assessed to be an index of baseline locomotor activity. To quantify the level of the sociality of flies, we calculated the NND at a time point when all the flies in a given arena were expected to be at rest (i.e., a time point when the average moving speed across flies were minimum during the 5\u2009min). For comparison, pseudo-group data consisting of random combinations of single fly data were created and evaluated as a control with no social preference. In this process, an experimental date, time, and used plate and arena was randomly chosen from the information of constituting flies and used as covariates for the data. In the latter 5\u2009min of the experiment, the average time taken to restore the moving speed to the baseline level (i.e., the mean moving speed during the first 5\u2009min) after exposure to stimuli was used as an indicator of the fear response to threatening stimuli. In order to quantify the flies\u2019 response toward other individuals, we first calculated the \u201cmotion cue\u201d that each fly is expected to perceive from other flies for each time step, defined as follows (Fig.\u00a0<a data-track=\"click\" data-track-label=\"link\" data-track-action=\"figure anchor\" href=\"http:\/\/www.nature.com\/articles\/s41467-025-61313-z#Fig1\" target=\"_blank\" rel=\"noopener\">1d<\/a>; modified from ref. <a data-track=\"click\" data-track-action=\"reference anchor\" data-track-label=\"link\" data-test=\"citation-ref\" aria-label=\"Reference 26\" title=\"Ferreira, C. H. &amp; Moita, M. A. Behavioral and neuronal underpinnings of safety in numbers in fruit flies. Nat. Commun. 11, 4182 (2020).\" href=\"http:\/\/www.nature.com\/articles\/s41467-025-61313-z#ref-CR26\" id=\"ref-link-section-d10267634e1991\" target=\"_blank\" rel=\"noopener\">26<\/a>):<\/p>\n<p>$${M}_{i}=\\mathop{\\sum }\\limits_{j=1}^{5}{V}_{j}{\\theta }_{{ij}}$$<\/p>\n<p>\n                    (1)\n                <\/p>\n<p>$${\\theta }_{{ij}}=\\,2\\arctan \\left(\\frac{{{size}}_{{ij}}}{2\\,{{distance}}_{{ij}}}\\right)$$<\/p>\n<p>\n                    (2)\n                <\/p>\n<p>where for a focal fly i in a group, the motion cue it perceived (\\({M}_{i}\\)) was defined as the sum of other flies\u2019 speed multiplied by the visual angle. \\({V}_{j}\\) and \\({\\theta }_{{ij}}\\) represent the moving speed and the visual angle of the individual j on the retina of the individual i, respectively. The distance between individuals i and j (\\({{distance}}_{{ij}}\\)) was calculated from their centroids, and the visual size of the individual j to i (\\({{size}}_{{ij}}\\)) was calculated by projecting the individual j\u2019s body (represented by an ellipse with 1 and 2\u2009mm in a smaller and larger radius, respectively) on the body axis of the individual i as described in Fig.\u00a0<a data-track=\"click\" data-track-label=\"link\" data-track-action=\"figure anchor\" href=\"http:\/\/www.nature.com\/articles\/s41467-025-61313-z#Fig1\" target=\"_blank\" rel=\"noopener\">1d<\/a>. Next, we modeled the probability of freezing exit (\\({P}_{{{\\rm{FE}}}}\\)) explained by the increase in perceived motion cues in 10\u2009s after a stimulus with a following logistic regression:<\/p>\n<p>$${P}_{{{\\rm{FE}}}}=\\frac{1}{1+{e}^{-({\\beta }_{0}+{\\beta }_{1}x)}}$$<\/p>\n<p>\n                    (3)\n                <\/p>\n<p>Here, the intercept \u03b20 was used as an index of response threshold, representing flies\u2019 visual responsiveness toward motion cues of other conspecifics. To accurately estimate the logistic curve fitting to the visual response of each strain of flies, we pooled the data of all stimulating trials (6 individuals \u00d7 20 trials \u00d7 20 replicates = 2400 data points at maximum) and conducted above regression for each strain. In case for the dataset of GAL4\/UAS strains, we randomly sampled 500 data points from all the dataset of a given strain to perform logistic regression and repeated it for 20 times to obtain the \u03b20 estimates for the population. Considering that the primary focus of this study is on the responsiveness to conspecifics, we further quantified this by introducing an additional metric: the mean cumulated motion cues each individual received on freezing exit (defined as moving speed &gt; 4\u2009mm\/s). We then sought to identify genetic variants associated with this metric. The results similarly indicated genetic involvement of nervous system (Fig.\u00a0<a data-track=\"click\" data-track-label=\"link\" data-track-action=\"supplementary material anchor\" href=\"http:\/\/www.nature.com\/articles\/s41467-025-61313-z#MOESM1\" target=\"_blank\" rel=\"noopener\">S20<\/a> and Supplementary Data\u00a0<a data-track=\"click\" data-track-label=\"link\" data-track-action=\"supplementary material anchor\" href=\"http:\/\/www.nature.com\/articles\/s41467-025-61313-z#MOESM10\" target=\"_blank\" rel=\"noopener\">8<\/a>). Thus, given the high correlation between males and females, we decided to use the previously mentioned metric (\u03b20) as the main result.<\/p>\n<p>Given the significant observation of male chasing behavior across several strains, we quantified both the duration of chasing and chaining behavior (involving three or more individuals in a chain) within the initial 5\u2009min of experiment. Chasing is defined based on three criteria: (1) both individuals must be moving at a speed greater than 1\u2009mm\/s; (2) their orientations must be aligned within an angular difference of \u03c0\/4; and (3) the distance between them must be less than 3\u2009mm. Chaining behavior occurs when these chasing interactions form a sequence, such that individual A chases B, and B chases C, establishing a continuous chain of chases.<\/p>\n<p>Behavioral simulation with individual-based model<\/p>\n<p>To explore the mechanisms behind the observed changes in fear responses in fly groups and the diversity effect in mixed-strain groups, we conducted behavioral simulations using an IBM (Fig.\u00a0<a data-track=\"click\" data-track-label=\"link\" data-track-action=\"supplementary material anchor\" href=\"http:\/\/www.nature.com\/articles\/s41467-025-61313-z#MOESM1\" target=\"_blank\" rel=\"noopener\">S6a<\/a>). The arena size was set to 30\u2009mm, and the number of agents in the arena was set to one in the single condition and six in the group and mixed-strain group conditions. Like the actual experiments, each time step was set to 0.02\u2009s, replicating a 10-min experiment (i.e., 30,000 frames in total). The moving speed of the agent at time t (\\({V}_{t}\\)) followed a L\u00e9vy distribution with a mean speed of 3.8\u2009mm\/s, obtained from our experimental data, and a shape parameter \u03b1\u2009=\u20092, with a change in moving direction (\\({D}_{t}\\)) following a normal distribution with a mean of 0 and a standard deviation of \u03c0:<\/p>\n<p>$${V}_{t} \\sim {{\\rm{L}}} {\\acute{{\\rm{e}}}} {{\\rm{vy}}}(\\mu=3.8\\,{{\\rm{mm}}}\/{{\\rm{s}}},\\alpha=2)$$<\/p>\n<p>\n                    (4)\n                <\/p>\n<p>$${D}_{t} \\sim {{\\rm{Normal}}}(0,\\pi )$$<\/p>\n<p>\n                    (5)\n                <\/p>\n<p>The L\u00e9vy distribution was chosen to simulate the natural movement patterns observed in biological organisms. Let the vector representing the agent\u2019s heading direction be \\({\\mathbb{v}}\\), and the normal vector to the nearest wall from the agent\u2019s current position be \\({\\mathbb{n}}\\). The angle between these two vectors, representing agent\u2019s angle to wall, can be calculated as follows:<\/p>\n<p>$$\\theta={{\\rm{atan}}}2\\,({\\mathbb{v}}{\\mathbb{\\times }}{\\mathbb{n}}{\\mathbb{,}}{\\mathbb{v}}\\cdot {\\mathbb{n}})$$<\/p>\n<p>\n                    (6)\n                <\/p>\n<p>where \\({\\mathbb{v}}{\\mathbb{\\times }}{\\mathbb{n}}\\) represents the z component of cross product of \\({\\mathbb{v}}\\) and \\({\\mathbb{n}}\\), calculated as \\({v}_{x}{n}_{y}-{v}_{y}{n}_{x}\\), and \\({\\mathbb{v}}{\\mathbb{\\cdot }}{\\mathbb{n}}\\) represents the dot product of the two vectors. If the agent approaches the wall, it decelerates its moving speed in 50% and changes the direction to avoid wall. The updated moving speed (\\({V}_{t}^{\\prime}\\)) and direction (\\({D}_{t}^{\\prime}\\)) at time t are defined as follows:<\/p>\n<p>$${V}_{t}{\\prime}=\\left\\{\\begin{array}{c}0.5{V}_{t} \\quad {{\\rm{if}}}\\; {{\\rm{distance}}}\\; {{\\rm{to}}}\\; {{\\rm{wall}}} <\/p>\n<p>\n                    (7)\n                <\/p>\n<p>$${D}_{t}^{\\prime} \\sim {{\\rm{Normal}}}\\left({{\\rm{sign}}}(\\theta )\\left(\\frac{\\pi }{2}-\\left|\\theta \\right|\\right),\\frac{\\pi }{18}\\right)$$<\/p>\n<p>\n                    (8)\n                <\/p>\n<p>To introduce a temporal correlation in movement speed, we further incorporated a speed inheritance mechanism in the model. The speed at time t (\\({V}_{t}\\)) is calculated as a weighted sum of 60% of the speed from the previous timestep (\\({V}_{t-1}\\)) and 40% of the current adjusted speed (\\({V}_{t}^{\\prime}\\)):<\/p>\n<p>$${V}_{t}=0.6{V}_{t-1}+0.4{V}_{t}^{\\prime}$$<\/p>\n<p>\n                    (9)\n                <\/p>\n<p>Next, visual stimuli were introduced every 15\u2009s starting 5\u2009min into the experiment, defined by a fixed probability of stopping movement. Immediately after a stimulus is given at time t, there\u2019s a 90% chance that the moving speed becomes 0. This state is represented by \\({S}_{t}\\), where \\({S}_{t}=1\\) if the moving speed becomes 0, and \\({S}_{t}=0\\) otherwise.<\/p>\n<p>$${S}_{t}=\\left\\{\\begin{array}{cc}1 &amp; {{\\rm{with}}}\\; {{\\rm{probability}}}\\,0.9\\\\ 0 &amp; {{\\rm{otherwise}}}\\hfill\\end{array}\\right.$$<\/p>\n<p>\n                    (10)\n                <\/p>\n<p>$${V}_{t}=\\left\\{\\begin{array}{cc}0 &amp;\\!\\!\\!\\!\\!\\!{{\\rm{if}}}\\,{S}_{t}=1\\\\ {V}_{t} &amp; {{\\rm{otherwise}}}\\end{array}\\right.$$<\/p>\n<p>\n                    (11)\n                <\/p>\n<p>If the moving speed becomes 0 immediately after a stimulus (\\({S}_{t}=1\\)), the subsequent moving speed for up to 15\u2009s until the next stimulus follows a probability function as below, where a and b are constants, and t\u2019 is the time elapsed after the stimulus, up to 15\u2009s.<\/p>\n<p>$${{\\rm{For}}}\\,{t}^{{\\prime} }{{\\rm{seconds\\; after}}}\\,{S}_{t}=1\\,{{\\rm{where}}}\\,0\\, <\/p>\n<p>$$P\\left({V}_{t+{t}^{{\\prime} }}=0\\left|{S}_{t}=1\\right.\\right)=\\max (0,1-(a\\log \\left({t}^{{\\prime} }\\right)+b))$$<\/p>\n<p>\n                    (12)\n                <\/p>\n<p>The relationship and values of parameters \\(a\\) and \\(b\\) used in the log function were determined based on actual fly data. Specifically, we fitted a log function (\\(y=a\\log \\left(x\\right)+b\\)) to velocity data normalized by the average at 0.5\u2009s before looming stimuli (Fig.\u00a0<a data-track=\"click\" data-track-label=\"link\" data-track-action=\"supplementary material anchor\" href=\"http:\/\/www.nature.com\/articles\/s41467-025-61313-z#MOESM1\" target=\"_blank\" rel=\"noopener\">S7a<\/a>), and from this fitting derived the regression equation \\(b=1.02-2.45a\\) (Fig.\u00a0<a data-track=\"click\" data-track-label=\"link\" data-track-action=\"supplementary material anchor\" href=\"http:\/\/www.nature.com\/articles\/s41467-025-61313-z#MOESM1\" target=\"_blank\" rel=\"noopener\">S7b<\/a>). Considering the observed range of the empirical data, we applied \\(a\\)\u2009=\u20090.02 into the model for single-strain conditions and used \\(a\\)\u2009=\u2009[0.005, 0.006, 0.007, 0.008, 0.009, 0.01, 0.02, 0.03, 0.04, 0.05, 0.06, 0.07, 0.08, 0.09, 0.1] to represent 15 distinct strains differing in the extent of freezing, and conducted simulations of mixed-strain groups under these parameter settings. Lastly, we incorporated the change in motion cues of other individuals from time \\(t-2\\) to \\(t-1\\) into individual\u2019s moving speed at time \\(t\\), thereby updating their speed based on social interaction.<\/p>\n<p>$${V}_{t}=(1-s){V}_{t}+s({M}_{t-1}-{M}_{t-2})$$<\/p>\n<p>\n                    (13)\n                <\/p>\n<p>where \\({M}_{t-1}{-M}_{t-2}\\) represent the change in motion cues between previous time steps, and social factor \\(s\\) refers to the proportion of motion cues incorporated to adjust individual\u2019s speed to others. We have set this parameter in two patterns: \\(s=0.1\\) and \\(s=0\\) for agents with and without speed alignment mechanism, respectively.<\/p>\n<p>Additionally, to validate the suitability of these three parameters related to freezing and synchronization in movement, we performed a grid search for the parameters \\(a\\), \\(k\\), and \\(s\\) under the constraint \\(b=1-{ka}\\), thereby exploring parameter sets that best matched the actual behavioral patterns of the flies (Fig.\u00a0<a data-track=\"click\" data-track-label=\"link\" data-track-action=\"supplementary material anchor\" href=\"http:\/\/www.nature.com\/articles\/s41467-025-61313-z#MOESM1\" target=\"_blank\" rel=\"noopener\">S8<\/a>). The discrepancy between simulated and real data were calculated for each condition based on the time-series normalized velocity data described above.<\/p>\n<p>Statistical analysis for behavioral traits<\/p>\n<p>Statistical analysis of behavioral data was performed using R 4.4.2 with the car, lmerTest, and lme4 packages when necessary. Effects of strains, sex, social circumstances, and their interactions on behavioral measures were assessed with the linear mixed model (LMM) with experimental date, time, used plate and arena assumed to be random effects. To assess the significance of fixed effects in the LMM, we applied a Type II Wald chi-square test. The broad-sense heritability of traits was estimated by the formula described in previous studies<a data-track=\"click\" data-track-action=\"reference anchor\" data-track-label=\"link\" data-test=\"citation-ref\" aria-label=\"Reference 67\" title=\"Singh, M., Ceccarelli, S. &amp; Hamblin, J. Estimation of heritability from varietal trials data. Theor. Appl. Genet. 86, 437&#x2013;441 (1993).\" href=\"http:\/\/www.nature.com\/articles\/s41467-025-61313-z#ref-CR67\" id=\"ref-link-section-d10267634e4648\" target=\"_blank\" rel=\"noopener\">67<\/a>,<a data-track=\"click\" data-track-action=\"reference anchor\" data-track-label=\"link\" data-test=\"citation-ref\" aria-label=\"Reference 68\" title=\"Kruijer, W. et al. Marker-based estimation of heritability in immortal populations. Genetics 199, 379&#x2013;398 (2015).\" href=\"http:\/\/www.nature.com\/articles\/s41467-025-61313-z#ref-CR68\" id=\"ref-link-section-d10267634e4651\" target=\"_blank\" rel=\"noopener\">68<\/a> using mean squares for genotype (strain) and environment (residual error) obtained in analysis from variance (ANOVA). The results of ANOVA are shown in Table\u00a0<a data-track=\"click\" data-track-label=\"link\" data-track-action=\"supplementary material anchor\" href=\"http:\/\/www.nature.com\/articles\/s41467-025-61313-z#MOESM1\" target=\"_blank\" rel=\"noopener\">S2<\/a>.<\/p>\n<p>Genome-wide association analysis<\/p>\n<p>We first performed principal component analysis (PCA) to capture the genetic distance among strains, using a whole set of genotypes of 4,438,427 SNPs for 205 strains obtained from the DGRP2 website (<a href=\"http:\/\/dgrp2.gnets.ncsu.edu\" target=\"_blank\" rel=\"noopener\">http:\/\/dgrp2.gnets.ncsu.edu<\/a>) with PLINK v1.9<a data-track=\"click\" data-track-action=\"reference anchor\" data-track-label=\"link\" data-test=\"citation-ref\" aria-label=\"Reference 69\" title=\"Chang, C. C. et al. Second-generation PLINK: rising to the challenge of larger and richer datasets. Gigascience 4, 7 (2015).\" href=\"http:\/\/www.nature.com\/articles\/s41467-025-61313-z#ref-CR69\" id=\"ref-link-section-d10267634e4673\" target=\"_blank\" rel=\"noopener\">69<\/a>. Quality control of SNPs was carried out with conditions: (1) minor allele frequency &gt;0.05 and (2) SNP call rate &gt; 0.9, leaving 1,689,110 SNPs for subsequent analyses. Prior to GWAA, SNP-based heritability and genetic correlation among phenotypes were estimated by SCORE<a data-track=\"click\" data-track-action=\"reference anchor\" data-track-label=\"link\" data-test=\"citation-ref\" aria-label=\"Reference 70\" title=\"Wu, Y. et al. Fast estimation of genetic correlation for biobank-scale data. Am. J. Hum. Genet. 109, 24&#x2013;32 (2022).\" href=\"http:\/\/www.nature.com\/articles\/s41467-025-61313-z#ref-CR70\" id=\"ref-link-section-d10267634e4677\" target=\"_blank\" rel=\"noopener\">70<\/a>. We then performed GWAA to identify loci responsible for the three phenotypes (i.e., freezing duration, NND, and visual responsiveness) of flies. The behavioral phenotypes were regressed with the top 10 PCs as covariates using GCTA v1.94.0 with &#8211;fastGWA-mlm flag<a data-track=\"click\" data-track-action=\"reference anchor\" data-track-label=\"link\" data-test=\"citation-ref\" aria-label=\"Reference 71\" title=\"Jiang, L. et al. A resource-efficient tool for mixed model association analysis of large-scale data. Nat. Genet. 51, 1749&#x2013;1755 (2019).\" href=\"http:\/\/www.nature.com\/articles\/s41467-025-61313-z#ref-CR71\" id=\"ref-link-section-d10267634e4684\" target=\"_blank\" rel=\"noopener\">71<\/a>, based on a linear mixed model and a SNP-derived sparse genetic relationship matrix. The association analysis was performed independently for each sex, and loci with the P-values below the genome-wide significance level as P\u2009=\u20091.0 \u00d7 10\u20135 were detected to be candidates associated with the given phenotype. For visual responsiveness metrics, we have performed a meta-analysis of the GWAS results from both sexes using METAL<a data-track=\"click\" data-track-action=\"reference anchor\" data-track-label=\"link\" data-test=\"citation-ref\" aria-label=\"Reference 72\" title=\"Willer, C. J., Li, Y. &amp; Abecasis, G. R. METAL: Fast and efficient meta-analysis of genomewide association scans. Bioinformatics 26, 2190&#x2013;2191 (2010).\" href=\"http:\/\/www.nature.com\/articles\/s41467-025-61313-z#ref-CR72\" id=\"ref-link-section-d10267634e4697\" target=\"_blank\" rel=\"noopener\">72<\/a>, and genome-wide significance level was set to P\u2009=\u20091.0 \u00d7 10\u20136. GO enrichment analysis for candidate loci was conducted independently for both sexes using the clusterProfiler package in R.<\/p>\n<p>Single-cell transcriptomic analysis of Drosophila visual neurons<\/p>\n<p>Single-cell RNA-seq dataset of the developing visual neurons of D. melanogaster<a data-track=\"click\" data-track-action=\"reference anchor\" data-track-label=\"link\" data-test=\"citation-ref\" aria-label=\"Reference 53\" title=\"Kurmangaliyev, Y. Z., Yoo, J., Valdes-Aleman, J., Sanfilippo, P. &amp; Zipursky, S. L. Transcriptional programs of circuit assembly in the Drosophila visual system. Neuron 108, 1045&#x2013;1057.e6 (2020).\" href=\"http:\/\/www.nature.com\/articles\/s41467-025-61313-z#ref-CR53\" id=\"ref-link-section-d10267634e4724\" target=\"_blank\" rel=\"noopener\">53<\/a> was reanalyzed. The dataset included expression data of visual neurons from female offspring of W1118 crossed with various DGRP strains across nine developmental stages (0\u201396\u2009h APF). Due to differences in tissue composition and coverage<a data-track=\"click\" data-track-action=\"reference anchor\" data-track-label=\"link\" data-test=\"citation-ref\" aria-label=\"Reference 53\" title=\"Kurmangaliyev, Y. Z., Yoo, J., Valdes-Aleman, J., Sanfilippo, P. &amp; Zipursky, S. L. Transcriptional programs of circuit assembly in the Drosophila visual system. Neuron 108, 1045&#x2013;1057.e6 (2020).\" href=\"http:\/\/www.nature.com\/articles\/s41467-025-61313-z#ref-CR53\" id=\"ref-link-section-d10267634e4732\" target=\"_blank\" rel=\"noopener\">53<\/a>, we used the main dataset comprising 24\u201396\u2009h APF. Each cell was annotated based on the previous study<a data-track=\"click\" data-track-action=\"reference anchor\" data-track-label=\"link\" data-test=\"citation-ref\" aria-label=\"Reference 53\" title=\"Kurmangaliyev, Y. Z., Yoo, J., Valdes-Aleman, J., Sanfilippo, P. &amp; Zipursky, S. L. Transcriptional programs of circuit assembly in the Drosophila visual system. Neuron 108, 1045&#x2013;1057.e6 (2020).\" href=\"http:\/\/www.nature.com\/articles\/s41467-025-61313-z#ref-CR53\" id=\"ref-link-section-d10267634e4736\" target=\"_blank\" rel=\"noopener\">53<\/a>, and cell clusters were visualized using t-distributed stochastic neighbor embedding (t-SNE). We specifically focused on motion-detecting neurons<a data-track=\"click\" data-track-action=\"reference anchor\" data-track-label=\"link\" data-test=\"citation-ref\" aria-label=\"Reference 54\" title=\"Borst, A. &amp; Groschner, L. N. How flies see motion. Annu. Rev. Neurosci. 46, 17&#x2013;37 (2023).\" href=\"http:\/\/www.nature.com\/articles\/s41467-025-61313-z#ref-CR54\" id=\"ref-link-section-d10267634e4741\" target=\"_blank\" rel=\"noopener\">54<\/a>, including R1\/6, L1\u20135, Tm1\u20134, 9, and T4\/5 cells. To compared the expression levels of Ptp99A between the genotypes (C and T alleles of 3\u2009R:25292746) detected in GWAS, we used generalized linear mixed model with a gamma distribution, treating strains and replications as random effects, implemented with the glmer() function from the lme4 package in R. Finally, we conducted weighted gene coexpression network analysis (WGCNA) using the hdWGCNA package<a data-track=\"click\" data-track-action=\"reference anchor\" data-track-label=\"link\" data-test=\"citation-ref\" aria-label=\"Reference 73\" title=\"Morabito, S., Reese, F., Rahimzadeh, N., Miyoshi, E. &amp; Swarup, V. hdWGCNA identifies co-expression networks in high-dimensional transcriptomics data. Cell Rep. Methods 3, 100498 (2023).\" href=\"http:\/\/www.nature.com\/articles\/s41467-025-61313-z#ref-CR73\" id=\"ref-link-section-d10267634e4754\" target=\"_blank\" rel=\"noopener\">73<\/a> in R. The 2,000 most variably expressed genes across the above neurons were selected for analysis, resulting in five major coexpression modules. Eigengene expression levels for each module were compared between the Ptp99A genotypes using Wilcoxon\u2019s rank sum test.<\/p>\n<p>Mixed-strain group experiments and calculation of diversity effect<\/p>\n<p>Among the 104 strains used in GWAS, we selected genomically diverse 15 strains (cf., Fig.\u00a0<a data-track=\"click\" data-track-label=\"link\" data-track-action=\"supplementary material anchor\" href=\"http:\/\/www.nature.com\/articles\/s41467-025-61313-z#MOESM1\" target=\"_blank\" rel=\"noopener\">S7a<\/a>) and prepared groups of 6 female flies, composed of 3 individuals from each of the two different strains (i.e., 105 pairs of strain in total; n\u2009=\u200910 for each). Following the behavioral experiment, the average moving speed among individuals relative to that of first 5\u2009min in a mixed-strain group was compared with the average values of the two strains that constitute the group. Subsequently, visual stimuli were considered as hypothetical predators, and virtual behavioral performance was defined based on the flexible behavioral changes observed in response to the stimuli. Assuming that freezing under predatory pressure and exploration in its absence are adaptive strategies, we calculated a weighted sum of moving speed, assigning a negative coefficient to the freezing term and a positive coefficient to the exploration term (Fig.\u00a0<a data-track=\"click\" data-track-label=\"link\" data-track-action=\"figure anchor\" href=\"http:\/\/www.nature.com\/articles\/s41467-025-61313-z#Fig4\" target=\"_blank\" rel=\"noopener\">4a<\/a>). Given that flies\u2019 moving speed typically returned to baseline within 3\u2009seconds after a visual stimulus and based on subsequent experiments with predatory spiders, the freezing term was defined as 0\u20132.5\u2009seconds after stimulus, and the exploration term as 3\u201314\u2009seconds after stimulus. Weights were applied to account for the differing durations of these time periods in the calculation (Fig.\u00a0<a data-track=\"click\" data-track-label=\"link\" data-track-action=\"figure anchor\" href=\"http:\/\/www.nature.com\/articles\/s41467-025-61313-z#Fig4\" target=\"_blank\" rel=\"noopener\">4a<\/a>). The difference between the observed performance level of mixed-strain groups and the expected performance level (calculated as the average values of single-strain groups for the two strains) was defined as the diversity effect (Fig.\u00a0<a data-track=\"click\" data-track-label=\"link\" data-track-action=\"supplementary material anchor\" href=\"http:\/\/www.nature.com\/articles\/s41467-025-61313-z#MOESM1\" target=\"_blank\" rel=\"noopener\">S14<\/a>).<\/p>\n<p>Animal-computer interaction experiments with predatory spiders<\/p>\n<p>To explore the adaptive significance of behavioral switching from freezing to exploration, we conducted an animal-computer interaction experiment using jumping spiders (Hasarius adansoni), a well-known predator of fruit flies<a data-track=\"click\" data-track-action=\"reference anchor\" data-track-label=\"link\" data-test=\"citation-ref\" aria-label=\"Reference 27\" title=\"Parigi, A., Porter, C., Cermak, M., Pitchers, W. R. &amp; Dworkin, I. The behavioral repertoire of Drosophila melanogaster in the presence of two predator species that differ in hunting mode. PLoS One 14, e0216860 (2019).\" href=\"http:\/\/www.nature.com\/articles\/s41467-025-61313-z#ref-CR27\" id=\"ref-link-section-d10267634e4795\" target=\"_blank\" rel=\"noopener\">27<\/a>,<a data-track=\"click\" data-track-action=\"reference anchor\" data-track-label=\"link\" data-test=\"citation-ref\" aria-label=\"Reference 28\" title=\"de la Flor, M. et al. Drosophila increase exploration after visually detecting predators. PLoS One 12, e0180749 (2017).\" href=\"http:\/\/www.nature.com\/articles\/s41467-025-61313-z#ref-CR28\" id=\"ref-link-section-d10267634e4798\" target=\"_blank\" rel=\"noopener\">28<\/a>. A total of 20 trials were conducted with 14 wild-caught male spiders, starved for over 5 days, each placed in a Petri dish (84\u2009mm diameter, 1.5\u2009cm height) on a screen displaying a virtual fly. A black ellipse, 2\u2009mm in length, was used to mimic a fly as it is simple enough to attract jumping spiders<a data-track=\"click\" data-track-action=\"reference anchor\" data-track-label=\"link\" data-test=\"citation-ref\" aria-label=\"Reference 74\" title=\"De Agr&#xF2;, M., R&#xF6;&#xDF;ler, D. C., Kim, K. &amp; Shamble, P. S. Perception of biological motion by jumping spiders. PLoS Biol 19, e3001172 (2021).\" href=\"http:\/\/www.nature.com\/articles\/s41467-025-61313-z#ref-CR74\" id=\"ref-link-section-d10267634e4802\" target=\"_blank\" rel=\"noopener\">74<\/a>. The experiment was performed under the same environmental condition as previous fly experiments, with the spider\u2019s position tracked for 5\u2009min using the same camera and a custom python script, yielding 1200 frames of data per trial (summarized into 0.25-s bins). The virtual flies\u2019 movement followed a L\u00e9vy distribution with \u03b1\u2009=\u20091.5, with mean speeds set at three levels: slow (\u2009~2.5\u2009mm\/s), medium (\u2009~5.0\u2009mm\/s), and fast (\u2009~7.5\u2009mm\/s). To simulate the fly\u2019s freezing response, its movement stopped for specified durations (0, 1, 3, 6, or 12\u2009s) when the tracked spider approached within a proximity range (1 or 2\u2009cm). Each spider was sequentially exposed to all conditions, with the order of presentation randomized to minimize potential bias. To prevent perpetual inactivity caused by a stationary spider, the virtual fly resumed movement for 3\u2009seconds after each freezing period. A spider attack was defined as an instance where spider\u2019s moving speed exceeded 30\u2009mm\/s and approached within 1\u2009cm of the virtual fly in 3 consecutive frames. Given the spider\u2019s strong attraction to the virtual fly at the highest speed tested (7.5\u2009mm\/s) and the shorter proximity range (1\u2009cm) (Fig.\u00a0<a data-track=\"click\" data-track-label=\"link\" data-track-action=\"supplementary material anchor\" href=\"http:\/\/www.nature.com\/articles\/s41467-025-61313-z#MOESM1\" target=\"_blank\" rel=\"noopener\">S13a<\/a>), these conditions were selected for the main analysis. Trials in which the spider attacked less than once on average across all freezing conditions were excluded from the analysis. Spider ID, trial, and experimental order (Fig.\u00a0<a data-track=\"click\" data-track-label=\"link\" data-track-action=\"supplementary material anchor\" href=\"http:\/\/www.nature.com\/articles\/s41467-025-61313-z#MOESM1\" target=\"_blank\" rel=\"noopener\">S13b<\/a>) were included as random effects in LMM.<\/p>\n<p>To further evaluate the behavioral performance of fly groups, we conducted an additional experiment using six agents in the arena with the same environmental and feeding conditions. In this experiment, we employed the same locomotion speed (7.5\u2009mm\/s) and proximity range (1\u2009cm) as described above. Freezing durations were set to 1, 3, 6, and 12\u2009s, and we recreated mixed-strain fly groups by combining agents with different freezing durations (three agents of one value and three of another). We also varied whether or not alignment in moving speed occurred among the agents, resulting in 20 distinct movement conditions. As the above single-agent experiment, each virtual fly group was then exposed to a spider for five minutes in a random order, and we assessed their behavioral performance based on a principal component score integrating the longer distance traveled by the flies and the fewer number of spider attacks, corrected by the order of experiment. A total of 10 individual spiders were used, each tested twice in this grouped-fly experiment. For seven of these spiders (m1\u20135, m15, and m16 in Fig.\u00a0<a data-track=\"click\" data-track-label=\"link\" data-track-action=\"supplementary material anchor\" href=\"http:\/\/www.nature.com\/articles\/s41467-025-61313-z#MOESM1\" target=\"_blank\" rel=\"noopener\">S17a<\/a>), only the 3- or 6-s freezing durations were used in the first trial, meaning the number of experimental conditions for those spiders differed from that of the others.<\/p>\n<p>Identifying responsible loci for diversity effect with GHAS<\/p>\n<p>The diversity effect was computed per combination of strains and may be explained by the genetic differences (diversity) between the two strains. To comprehensively explore the responsible loci for the diversity effect, we calculated the nucleotide diversity (\u03c0) at each locus (1000\u2009bp windows) from the genome sequences of the two strains constituting the mixed group using vcftools<a data-track=\"click\" data-track-action=\"reference anchor\" data-track-label=\"link\" data-test=\"citation-ref\" aria-label=\"Reference 75\" title=\"Danecek, P. et al. The variant call format and VCFtools. Bioinformatics 27, 2156&#x2013;2158 (2011).\" href=\"http:\/\/www.nature.com\/articles\/s41467-025-61313-z#ref-CR75\" id=\"ref-link-section-d10267634e4834\" target=\"_blank\" rel=\"noopener\">75<\/a> and conducted an association analysis with the diversity effect, which we termed the GHAS. Genetic relatedness matrix of the analyzed strains was used as covariates. The same threshold as the above GWAA (P\u2009\u20135) was applied to determine candidate loci, and GO enrichment analysis on the adjacently located genes (\u2009\u00b1\u20091 kbp) was performed using the R package clusterProfiler.<\/p>\n<p>Reporting summary<\/p>\n<p>Further information on research design is available in the\u00a0<a data-track=\"click\" data-track-label=\"link\" data-track-action=\"supplementary material anchor\" href=\"http:\/\/www.nature.com\/articles\/s41467-025-61313-z#MOESM12\" target=\"_blank\" rel=\"noopener\">Nature Portfolio Reporting Summary<\/a> linked to this article.<\/p>\n","protected":false},"excerpt":{"rendered":"Ethics Experiments using transgenic Drosophila melanogaster stocks were approved under Chiba University Institutional Biosafety Committee protocol #G5-46. Fly&hellip;\n","protected":false},"author":2,"featured_media":244995,"comment_status":"","ping_status":"","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[3846],"tags":[95172,29111,27933,267,3965,3966,70,95173,16,15],"class_list":{"0":"post-244994","1":"post","2":"type-post","3":"status-publish","4":"format-standard","5":"has-post-thumbnail","7":"category-genetics","8":"tag-behavioural-ecology","9":"tag-behavioural-genetics","10":"tag-genetic-variation","11":"tag-genetics","12":"tag-humanities-and-social-sciences","13":"tag-multidisciplinary","14":"tag-science","15":"tag-social-behaviour","16":"tag-uk","17":"tag-united-kingdom"},"share_on_mastodon":{"url":"https:\/\/pubeurope.com\/@uk\/114811424217538059","error":""},"_links":{"self":[{"href":"https:\/\/www.europesays.com\/uk\/wp-json\/wp\/v2\/posts\/244994","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.europesays.com\/uk\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.europesays.com\/uk\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.europesays.com\/uk\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.europesays.com\/uk\/wp-json\/wp\/v2\/comments?post=244994"}],"version-history":[{"count":0,"href":"https:\/\/www.europesays.com\/uk\/wp-json\/wp\/v2\/posts\/244994\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.europesays.com\/uk\/wp-json\/wp\/v2\/media\/244995"}],"wp:attachment":[{"href":"https:\/\/www.europesays.com\/uk\/wp-json\/wp\/v2\/media?parent=244994"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.europesays.com\/uk\/wp-json\/wp\/v2\/categories?post=244994"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.europesays.com\/uk\/wp-json\/wp\/v2\/tags?post=244994"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}