Search bioRxiv⌕ Search

bioRxiv · 10.64898/2026.10.02.755892

DigiFish: A flexible open-source tool for animating realistic virtual fish and reconstructing visual fields from tracking data

Abstract

1. For many animals, vision represents the primary sensory modality governing a vast diversity of behaviours. Creating 'virtual twins', or visually realistic digital reconstructions of real individuals interacting within their environments, offers a promising approach for understanding how visual information guides an animal's decisions, behaviours, and interactions. Such systems enable the creation of video scenes from any view, including the viewpoint of the animals themselves. This allows receiver information to then be analysed from the perspective of species-specific visual systems, or for the accurate reconstruction of a real animal's movement to provide social stimuli for behavioural experiments. 2. Despite advances in 3D modelling, photorealistic scene rendering, and animal tracking, efficiently creating realistic digital reconstructions of movement remains challenging for many species. In fishes, a continuously-deforming body due to the absence of discrete joints make it particularly difficult to map tracked body keypoints onto articulated digital models, often resulting in unnatural or erratic animations. 3. Here, we introduce DigiFish, an add-on for the open-source animating software Blender, that generates realistic fish animations from tracking data. By integrating anatomical keypoint tracking with spline-based body curvatures, DigiFish reconstructs biologically-realistic swimming postures and movements of fishes within customisable virtual aquatic environments. The system also supports virtual 'point-of-view' cameras that can be placed arbitrarily within a scene, or dynamically driven by eye-tracking data, enabling unlimited perspectives on how individuals, conspecifics, or landmarks appear against complex backgrounds and how these views change with realistic swimming and eye movements. 4. We provide the Blender add-on and user guide and use DigiFish to reconstruct two different contexts: staged predator-prey interactions in the laboratory and natural schooling of wild fish in the field. Using a further reconstruction of fish swimming in an arena, we also use an Elementary Motion Detector model to show that our virtual reconstructions successfully capture perceptually-realistic movements and postures of individual fish within a digitally reconstructed scene. 5. By integrating photo-realistic scenes with biologically-realistic, simulated motion, DigiFish offers a flexible and accessible platform for investigating visually guided behaviour, perception, and cognition in complex and dynamic environments.

Explore related subjects

Keep this discovery

Explore connections, maps & timelines

BibTeXRIS

Dunkley, K., Troscianko, J., Ahlberg, A., Neville, L., Ioannou, C. C., Heathcote, R. J. P.. 2026-10-06. DigiFish: A flexible open-source tool for animating realistic virtual fish and reconstructing visual fields from tracking data. https://doi.org/10.64898/2026.10.02.755892

Cite the original work for its findings. Save a collection to share your selection of sources.

KEEP EXPLORING

Related preprints

Development of the Highly Sensitive Horse questionnaire to assess horses' sensory processing sensitivity

It is well established that individuals vary in how they respond to situations, but might they also perceive their environment differently? Sensory Processing Sensitivity (SPS) is a multidimensional trait describing individual variation in the perception and response to sensory, emotional, and social stimuli. While extensively studied in humans, its presence in animals remains underexplored. We investigated whether horses might exhibit a comparable trait and developed the Highly Sensitive Horse questionnaire to assess equine SPS. A 104-item questionnaire was developed and refined using data from an online survey of 121 horses. The remaining 45 items were evaluated in an independent survey of 561 horses. Exploratory and confirmatory factor analyses identified a robust two-factor, 12-item structure reflecting dimensions similar to the human SPS dimensions of: Overstimulation, describing a tendency to become overwhelmed by intense or prolonged stimuli, and Sensitivity to subtleties, describing heightened perception of subtle environmental changes. The scale showed high internal consistency, excellent intra-rater and moderate inter-rater reliability. Although eSPS was associated with established behavioural traits, including fearfulness, it also explained unique behavioural variation beyond these traits. These findings suggest that horses differ in how they perceive their environment, providing a foundation to better understand equine behaviour, and opening new avenues for comparative sensory-processing research.

animal behavior and cognition↗

Behavioral divergence across replicated predation regimes is species-specific in two sympatric poeciliid fishes

Predation is a potent driver of behavioral divergence across prey populations, yet whether shared predation regimes generate similar responses in coexisting prey species remains unclear. Species differences in reproductive and foraging traits may alter vulnerability to predators, generating species-specific responses. We compared behavior and cognition of two poeciliid fishes (Gambusia affinis and Poecilia latipinna) that differ in body size, the presence of male ornamentation, and mating tactics. We sampled both species across replicate high- and low-predation regimes and measured exploration, shyness, boldness, social motivation, and detour solve latency (N = 509). Multivariate behavior and cognition differed between predation regimes, and the magnitude of divergence varied with species but not body size. Consistent with the multivariate pattern, the more conspicuous P. latipinna exhibited higher boldness and overall lower exploration under high-predation, while high- and low-predation populations of G. affinis did not differ. These findings suggest either that the more conspicuous species experiences greater predation risk or that the less conspicuous species reduces its predation risk through alternative phenotypic responses. More broadly, species differences in reproductive phenotypes associated with sexual selection may help explain why shared predation regimes generate variable patterns of behavioral divergence across taxa.

animal behavior and cognition↗

Capturing the rhythm: methodological choices shape inference from circadian activity data

Abstract 1. Statistical tools and analytical decisions for analysing animal activity data are often limited and poorly justified, particularly with respect to model choice, sampling design and temporal aggregation. These shortcomings can constrain our ability to draw accurate and biologically meaningful inferences about behaviour. 2. We interrogated 24 h activity data taken from individual males and females derived from five Drosophila melanogaster populations to generate a general framework for collecting and analysing activity data that systematically compares common model classes, continuous verses fragmented sampling strategies, and alternative temporal aggregation choices (time-bin sizes). 3. Our analyses identified generalised additive mixed models (GAMMs) applied to high-frequency continuous data with small-moderate bin sizes (1-5 minutes) as providing the most robust and interpretable inference for our complex, high-frequency activity data. 4. However, our interrogation of the data set confirmed that analytical and sampling decisions need to be tailored to the study species, the timing of activities and the nature of the behaviour of interest. Accordingly, polynomial and cosinor generalised linear models, increased but biologically targeted snapshot sampling, and bin sizes smaller than one hour yielded adequate analyses with similar biological conclusions when appropriately matched to the system. 5. Our approach provides an accessible decision-making framework for activity analyses that allows researchers across behavioural, ecological and evolutionary studies to justify and optimise choices about data collection and modelling. Such an approach improves the biological relevance of inference and supporting the use of modern tracking and analytical technologies.

animal behavior and cognition↗