Abstract
Animal behavior is individually variable, and this variability is often consistent over time, a phenomenon called individuality or personality when multiple traits are involved. However, most studies test individuality in only one environment, even though behavior is known to be context-dependent. Analogous to the human 'person-situation debate,' we asked whether and to what extent behavioral individuality persists across changing environmental situations in Drosophila melanogaster. Using established and new behavioral assays, we examined three individual traits, namely exploration, attention, and anxiety, across varying environmental contexts, including temperature, visual cues, and arena shape, in both walking and flying flies. We found that individuality is strongly context-dependent, but even under substantial environmental changes, at least one behavioral trait retained individual-specific variation. Different environmental features did not affect individuality equally; instead, they formed a hierarchy in their influence on behavioral consistency. This hierarchy was supported by generalized linear modeling and hierarchical linear mixed-model analysis. Our results show that, as in humans, individuality in flies persists across different situations, although less strongly than across repeated tests in the same context. These findings establish Drosophila as a model for dissecting the developmental, neural, and genetic mechanisms underlying consistent individual differences in behavior across variable environments.