bioRxiv Science⌕ Search

Biology subjects

Troscianko, J.

Publications and source records attributed to Troscianko, J..

At least 19 recordsLinked to original sources

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

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.

animal behavior and cognition↗

Effects of artificial light colour, intensity, structure and contrast on moth flight behaviour

Nocturnal moths are severely affected by light pollution, most notoriously through fatal attraction to artificial lights, yet flight-to-light is not their only response. To investigate how artificial lights impact flight behaviour, we exposed over 1200 wild-caught moths of 62 species to LED lights with different characteristics, under varying background lighting conditions, and tracked over 500 flight paths in three dimensions. Flight-to-light behaviour and flight tortuosity both increased with light intensity, irrespective of spectrum, though tortuosity was affected by lower levels of white than amber light, suggesting white LEDs could impact moth trajectories from greater distances. Flight tortuosity was also higher upon exposure to a single light versus three producing equivalent illuminance. Conversely, higher background light levels led to reductions in both flight-to-light and tortuosity, but moths were also less likely to take flight in these conditions, suggesting that both point sources and diffuse background lighting disrupt moth movement. Finally, moths caught using light traps were less likely to fly and, if they did, more likely to fly towards light sources than those caught with butterfly nets. These findings suggest mitigation policies for light pollution should prioritize reducing light intensity, and point to new directions for future research.

animal behavior and cognition↗

BehaveAI: a framework for rapidly detecting and classifying objects and behaviour from motion

Here we introduce BehaveAI, a biologically inspired video analysis framework that integrates static and motion information through a novel colour-from-motion encoding strategy. This method translates object movement - direction, speed, and acceleration - into colour gradients, enabling both human annotators and pre-trained convolutional neural networks (CNNs) to infer motion patterns while retaining high-resolution spatial detail. Using a range of case studies, we demonstrate how the increased salience of motion information allows for the robust detection of objects that are challenging or impossible to identify reliably from static frames alone, particularly in complex natural scenes. We further demonstrate the reliable classification of different behaviours in animals and single-celled organisms. Additionally, the framework supports flexible hierarchical model structures that can separate the tasks of detection and classification for optimal efficiency, and provide individual tracking data that specifies what is present where and what it is doing in each frame. The framework makes use of the latest deep learning architecture (YOLO), combined with a semi-supervised annotation workflow. Together with salient motion information, these features can dramatically reduce the effort required for dataset annotation such that reliable models can often be made within an hour. Moreover, smaller annotation datasets mean that model training can be achieved on conventional computers without dedicated hardware, thereby improving accessibility. The motion encoding approach is also computationally lightweight, and can run in real-time on low-end edge devices such as a Raspberry Pi. We release the framework as a free, open source, and user-friendly package.

ecology↗

The ecology and adaptive function of clownfish color patterns

Anti-predator coloration strategies vary widely from conspicuous to cryptic, and everything between. Coloration serves multiple functions, and determining the selective pressures that drive this diversity is a long-standing mystery. Clownfishes display enormous inter- and intra-specific variation in coloration without the influence of sexual selection, providing an excellent system in which to explore these drivers in closely related and sympatric species. Across clownfishes, three color-pattern phenotypes have evolved convergently with host anemone use, implying adaptive functions linked to the hosts physical and chemical properties. Here we conducted a comprehensive study to infer the ultimate functions of clownfish color patterns. By integrating multiple levels of biological organization, including behavior, visual ecology, dietary niche, and microbiome, our data overwhelmingly indicate that specialist and generalist clownfish color patterns have different underlying ecologies and adaptive functions. Specialist clownfishes background match their anemones, remain near hosts, and have specialized diets and microbiomes. Generalists are highly contrasting with their anemones, remain far from hosts, and have variable diets and microbiomes. Taken together, specialist color patterns align with functional expectations of camouflage while generalists align with aposematic or disruptive coloration. Our study provides novel insights into how ecological conditions shape the evolution of multiple anti-predator coloration strategies.

ecology↗

Shining a light on camouflage evolution: using genetic algorithms to determine the effects of geometry and lighting on optimal camouflage

Visual camouflage evolves within the bounds of lights interaction with the surroundings and the sensory limits of its observers. Rapid temporal variation in lighting from weather and its interaction with objects within the visual scene alters the contrast of the spatio-chromatic features of both backgrounds and animals, the latter through self-shading and received shadows from their surroundings. Despite the apparent effect of lighting on object appearance, the enormity of interactions and the diversity of animal phenotypic solutions present challenges to investigating the combined effects of lighting and habitat structure on camouflage effectiveness and design. Genetic algorithms and mathematical animal pattern generation provide a potential solution to investigating this high-dimensional feature space. Here, an online artificial evolution experiment was used to examine the effect of lighting and habitat geometry on camouflage. Lighting and geometry changed which prey phenotypes evolved, and the predictive power of common camouflage metrics. Crucially, lighting condition systematically altered prey-targets internal contrast and interacted with habitat geometry, affecting the evolved patterning, colour, and countershading. Our work demonstrates the importance of considering the relative geometry and lighting of an environment when determining the function of animal colouration and the adaptive value of camouflage.

ecology↗

The effects of habitat structure and lighting on object and background appearance

The color, geometry, and lighting of environments characterize their appearance to humans and other animals and, as a result, play an important role in the evolution of animal coloration. Yet despite this long-standing association, how changes in lighting from atmospheric conditions and three-dimensional geometry interact to alter the appearance of scenes and animals remains largely unexplored. To investigate these interactions, we quantified the appearance of natural backgrounds and standardized targets with color-calibrated photographs and 3-dimensional (3D) scans of 672 natural scenes taken under diffuse and direct lighting conditions. We find several instances where lighting and the local 3D environment systematically altered the colors and patterns of scenes and a target object, as well as their relationship with spatial scale. Shadows formed under direct lighting increased luminance and short-long wave (blue-yellow) contrast across spatial scales, especially at larger spatial scales for habitats with a greater 3D variation. Conversely, medium-long wave (green-red) information was highly stable to changes in lighting. Direct lighting and the 3D environment also influenced the directionality and orientation of patterns within the scenes and targets due to the formation of cast and self-shadows of different orientations. These analyses demonstrate the importance of considering the lighting and geometry of an environment when comparing the statistics of animals and their backgrounds.

ecology↗

Recent breeding experience improves egg ejection behaviour

Recognizing ones own eggs is crucial for birds, especially for hosts of brood parasites that must identify and reject different-looking parasitic eggs. While birds seem to possess a template image of their eggs, whether it is innate or learnt remains unclear. We addressed this question by experimentally inserting either artificial mimetic eggs (ME) or non-mimetic eggs (NME) into the nests of barn swallows (Hirundo rustica) during pre-laying stage. Our individually marked population allowed a unique comparison between naive first-time breeders and experienced females, as well as females with old (from a previous season) and recent (from the previous breeding attempt within the same season) experience allowing to investigate the role of memory. We found that both naive and experienced females ejected ME and NME at similar rates, indicating that the template image is neither innate nor learnt and does not play a primary role in egg recognition. Instead, our findings suggest that awareness of own egg-laying is the crucial mechanism at play, and may facilitate nest sanitation behaviour. Finally, we provide the first evidence that this mechanism improves with recent breeding experience. Future studies should investigate the role of non-visual factors that may modulate nest sanitation, such as endocrine regulation.

animal behavior and cognition↗

Machine learning outcompetes human assessment in identifying eggs of a conspecific brood parasite

Avian brood parasitism provides an exceptional system for studying coevolution. While conspecific brood parasitism (CBP) is more common than interspecific parasitism, it is less studied due to the challenge of detecting parasitic eggs, which closely resemble those of the host. Although molecular genotyping can accurately detect CBP, its high cost has led researchers to explore egg appearance as a more accessible alternative. Barn swallows (Hirundo rustica) are considered conspecific brood parasites, but identifying parasitic eggs has traditionally relied on human visual assessment. Here, we used UV-visible photographs of non-parasitized barn swallow clutches and simulated parasitism to compare the accuracy of human assessment with automated methods. In two games, participants and models identified parasitic eggs from six or two options. While humans performed better than chance (72% and 87% accuracy), they still made significant errors. In contrast, the automated supervised model was far more reliable, achieving 95% and 97% accuracy. We think that the model outperformed humans due to its ability to analyse a broader range of visual information, including UV reflectance, which humans cannot perceive. We recommend using supervised models over human assessment for identifying conspecific parasitic eggs and highlight their potential to advance research on evolution of egg colouration.

zoology↗

Enhanced conspicuousness of prey in warmer water mitigates the visual constraint of turbidity for predators

O_LIChanges in environmental conditions impact predator-prey interactions by altering behaviour through sensory and non-sensory pathways. Elevated water temperature and turbidity are known to alter activity levels and anti-predator responses in prey fish, and are increasing globally as a result of anthropogenic activities. Less is known about how temperature and turbidity impact predators ability to detect prey directly, or indirectly via changes to prey behaviour. C_LIO_LIWe quantified the detectability of Trinidadian guppies (Poecilia reticulata) free-swimming in a large arena from the perspective of a stationary visual predator (simulated as an underwater camera). We used a fully factorial experimental design testing the independent and combined effects of increased temperature and turbidity. C_LIO_LIWe found that both stressors had a strong influence on the appearance of prey (objectively quantified as the mean magnitude of the optical flow in the videos). As expected, turbidity reduced the frequency of detection between the guppies and the simulated predator, i.e. the magnitude of optical flow exceeded the threshold for a detection event more often in clear water. Events were also shorter in duration in turbid water, reducing the time available for a predator to detect the prey. However, during an event, prey were more detectable in warmer water (i.e. the mean magnitude was greater). C_LIO_LIAlthough we found no evidence of interactive effects of turbidity and temperature on the response variables, their cumulative main effects suggest an antagonistic effect on the overall rate of prey capture. C_LI

animal behavior and cognition↗

Mutualisms within light microhabitats drive sensory convergence in a mimetic butterfly community

Niche partitioning within variable habitats can expose species to distinct sensory information. Vision is the primary sensory modality used by many animals to interact with their habitat. However, within diurnal terrestrial ecosystems, little is known if, and how, variation in light environments impact species assemblages and visual system evolution. By studying a diverse, sympatric community of mimetic butterflies, we demonstrate that forest architecture creates a mosaic of light microhabitats that drive adaptive sensory convergence and divergence in both peripheral and central sensory systems. Our study provides insights into the dynamic response of visual systems when confronted with similar ecological challenges, and illustrates the wide-reaching consequences of interspecific mutualisms, such as mimicry, on organismal evolution.

evolutionary biology↗

Hyperspectral open source imaging system

The spatial and spectral properties of the light environment underpin the appearance of scenes and objects. As such its measurement is crucial for understanding many aspects of animal behaviour, ecology and evolution, along with many more applications in fields ranging from optical physics, agriculture/plant sciences, human psychophysics, food science, architecture and materials sciences. The escalating threat of artificial light at night (ALAN) presents unique challenges for measuring the visual impact of light pollution, requiring measurement at low light levels across the human-visible and ultraviolet ranges, across all viewing angles, and often with high within-scene contrast. Here I present a hyperspectral open-source imaging system (HOSI), an innovative and low-cost solution for collecting full-field hyperspectral data. The system uses a Hamamatsu C12880MA micro spectrometer to take single-point measurements, together with a motorised gimbal for spatial control. The hardware uses off-the-shelf components and 3D printed parts, costing around {pound}350 in total. The system can run directly from a computer or smartphone with a graphical user interface, making it highly portable and user-friendly. The HOSI system can take panoramic hyperspectral images that meet the difficult requirements of ALAN research, sensitive to low light around 0.001 cd.m-2, across 320-880nm range with spectral resolution of [~]9nm (FWHM) and spatial resolution of [~]0.2 degrees. The independent exposure of each pixel also allows for an extremely wide dynamic range that can encompass typical natural and artificially illuminated scenes, with sample night-time scans achieving peak-to-peak dynamic ranges of >50,000:1. This systems adaptability, cost-effectiveness, and open-source nature position it as a valuable tool for researchers investigating the complex relationships between light, environment, behaviour, ecology, and biodiversity, with further potential uses in many other fields.

ecology↗

Adapting genetic algorithms for artificial evolution of visual patterns under selection from wild predators

Camouflage is a widespread and well-studied anti-predator strategy, yet identifying which patterns provide optimal protection in any given scenario remains challenging. Besides the virtually limitless combinations of colours and patterns available to prey, selection for camouflage strategies will depend on complex interactions between prey appearance, background properties and predator traits, across repeated encounters between co-evolving predators and prey. Experiments in artificial evolution, pairing psychophysics detection tasks with genetic algorithms, offer a promising way to tackle this complexity, but sophisticated genetic algorithms have so far been restricted to screen-based experiments. Here, we present methods to test the evolution of colour patterns on physical prey items, under selection from wild predators in the field. Our techniques expand on a recently-developed open-access pattern generation and genetic algorithm framework, modified to operate alongside artificial predation experiments. In this system, predators freely interact with prey, and the order of attack determines the survival and reproduction of prey patterns into future generations. We demonstrate the feasibility of these methods with a case study, in which free-flying birds feed on artificial prey deployed in semi-natural conditions, against backgrounds differing in three-dimensional complexity. Wild predators reliably participated in this experiment, foraging for 11 to 16 generations of artificial prey and encountering a total of 1,296 evolved prey items. Changes in prey pattern across generations indicated improvements in several metrics of similarity to the background, and greater edge disruption, although effect sizes were relatively small. Computer-based replicates of these trials, with human volunteers, highlighted the importance of starting population parameters for subsequent evolution, a key consideration when applying these methods. Ultimately, these methods provide pathways for integrating complex genetic algorithms into more naturalistic predation trials. Customisable open-access tools should facilitate application of these tools to investigate a wide range of visual pattern types in more ecologically-relevant contexts.

animal behavior and cognition↗

OSpRad; an open-source, low-cost, high-sensitivity spectroradiometer

Spectroradiometery is a vital tool in a wide range of biological, physical, astronomical and medical fields, yet its cost and accessibility are frequent barriers to use. Research into the effects of artificial light at night (ALAN) further compounds these difficulties with requirements for sensitivity to extremely low light levels across the ultraviolet to human-visible spectrum. Here I present a open-source spectroradiometry (OSpRad) system that meets the design challenges of typical ALAN research. The system utilises an affordable miniature spectrometer chip: the Hamamatsu C12880MA, and combines it with an automated shutter and cosine-corrector, microprocessor controller, and graphical user interface "app" that can be used with smartphones or desktop computers. The system is designed to be user-friendly, adaptable, and suitable for automation/data-logging. All code and 3D printed parts are made available open-source. I constructed 5 units and tested their linearity, spectral sensitivity, cosine-corrector performance, and low-light performance. There were modest unit-specific differences in spectral sensitivity, implying calibration is required for maximal accuracy. However, depending on the application, it may be acceptable to use a default calibration template together with careful experimental design considerations to mitigate unit-specific differences. All other performance characteristics were highly consistent. The OSpRad system was able to measure spectral irradiance down to around 0.005 lx, and spectral radiance down to 0.001 cd.m-2, meaning it would be able to measure night-time lighting under the vast majority of real-world conditions. The OSpRad systems low cost and high sensitivity make it well suited to a range of spectrometry tasks in general, and ALAN research in particular. The project is hosted on GitHub here: https://github.com/troscianko/OSpRad

ecology↗

A model of colour appearance based on efficient coding of natural images

An objects colour, brightness and pattern are all influenced by its surroundings, and a number of visual phenomena and "illusions" have been discovered that highlight these often dramatic effects. Explanations for these phenomena range from low-level neural mechanisms to high-level processes that incorporate contextual information or prior knowledge. Importantly, few of these phenomena can currently be accounted for when measuring an objects perceived colour. Here we ask to what extent colour appearance is predicted by a model based on the principle of coding efficiency. The model assumes that the image is encoded by noisy spatio-chromatic filters at one octave separations, which are either circularly symmetrical or oriented. Each spatial bands lower threshold is set by the contrast sensitivity function, and the dynamic range of the band is a fixed multiple of this threshold, above which the response saturates. Filter outputs are then reweighted to give equal power in each channel for natural images. We demonstrate that the model fits human behavioural performance in psychophysics experiments, and also primate retinal ganglion responses. Next we systematically test the models ability to qualitatively predict over 35 brightness and colour phenomena, with almost complete success. This implies that contrary to high-level processing explanations, much of colour appearance is potentially attributable to simple mechanisms evolved for efficient coding of natural images, and is a basis for modelling the vision of humans and other animals.

neuroscience↗

Automatic identification of bird females using egg phenotype

O_LIIdentification of individuals greatly contributes to understanding animal ecology and evolution, and in many cases can only be achieved using expensive and invasive techniques. Advances in computing technology offer alternative cost-effective techniques which are less invasive and can discriminate between individuals based on visual and/or acoustic cues. Here, we employ human assessment and an automatic analytical approach to predict the identity of common cuckoo (Cuculus canorus) females based on the appearance of their eggs. The cuckoos secretive brood parasitic strategy makes studying its life history very challenging. Eggs were analysed using calibrated digital photography for quantifying spotting pattern, size and shape, and spectrometry for measuring colour. Cuckoo females were identified from genetic sampling of their nestlings, allowing us to determine the accuracy of human and automatic female assignment. Finally, we used a novel same-different approach that uses both genetic and phenotypic information to assign eggs that were not genetically analysed. C_LIO_LIOur results supported the constant egg-type hypothesis, showing that individual cuckoo females lay eggs with a relatively constant appearance and that eggs laid by different females differ more than eggs laid by the same female. The accuracy of unsupervised hierarchical clustering was comparable to assessments of experienced human observers. Supervised random forest analysis showed better results, with higher cluster accuracy. Same-different analysis was able to assign 22 of 87 unidentified cuckoo eggs to seven already known females. C_LIO_LIOur study showed that egg appearance on its own is not sufficient for identification of individual cuckoo females. We therefore advocate genetic analysis to be used for this purpose. However, supervised analytical methods reliably assigned a relatively high number of eggs without genetic data to their mothers which can be used in conjunction with genetic testing as a cost-effective method for increasing sample sizes for eggs where genetic samples could not be obtained. C_LI

ecology↗

Sensory-based quantification of male colour patterns in Trinidadian guppies reveals nonparallel phenotypic evolution across an ecological transition in multivariate trait space

Parallel evolution, in which independent populations evolve along similar phenotypic trajectories, offers insights into the repeatability of adaptive evolution. Here, we revisit a classic example of parallelism, that of repeated evolution of brighter males in the Trinidadian guppy. In guppies, colonisation of low predation habitats is associated with emergence of more colourful phenotypes since predator-induced viability selection for crypsis weakens while sexual selection by female preference for conspicuity remains strong. Our study differs from previous investigations in three respects. First, we adopt a multivariate phenotyping approach to characterise parallelism in multi-trait space. Second, we use ecologically-relevant colour traits defined by the visual systems of the two selective agents (i.e. guppy, predatory cichlid). Third, we estimate population genetic structure to test for adaptive (parallel) evolution against a model of neutral phenotypyc divergence. We find strong phenotypic differentiation that is inconsistent with a neutral model, but only limited support for the predicted pattern of greater conspicuity at low predation. Effects of predation regime on each trait were in the expected direction, but weak, largely non-significant, and explained little among-population variation. In multi-trait space, phenotypic trajectories of lineages colonising low from high predation regimes were not parallel. Our results are consistent with reduced predation risk facilitating adaptive differentiation by female choice, but suggest that this proceeds in (effectively) independent directions of multi-trait space across lineages. Pool-sequencing data also revealed SNPs showing greater differentiation than expected under neutrality and/or associations with known colour genes in other species, presenting opportunities for future genetic study.

evolutionary biology↗

No evidence for motion dazzle in an evolutionary citizen science game

The motion dazzle hypothesis posits that high contrast geometric patterns can cause difficulties in tracking a moving target, and has been argued to explain the patterning of animals such as zebras. Research to date has only tested a small number of patterns, offering equivocal support for the hypothesis. Here, we take a genetic programming approach to allow patterns to evolve based on their fitness (time taken to capture) and thus find the optimal strategy for providing protection when moving. Our Dazzle Bug citizen science game tested over 1.5 million targets in a touch screen game at a popular visitor attraction. Surprisingly, we found that targets lost pattern elements during evolution and became closely background matching. Modelling results suggested that targets with lower motion energy were harder to catch. Our results indicate that low contrast, featureless targets offer the greatest protection against capture when in motion, challenging the motion dazzle hypothesis.

evolutionary biology↗

The conspicuousness of the toxic Heliconius butterflies across time and habitat

Forests are a mosaic of light spectra, and colour signal efficiency might change in different light environments. Local adaptation in Heliconius butterflies is linked to microhabitat use and the colourful wing colour patterns may be adapted for signalling in different light environments. These toxic butterflies exhibit conspicuous colours as a warning to predators that they should be avoided, but also find and choose potential mates based on colour signals. The two selection pressures of predation and mate preference are therefore acting together. Colour conspicuousness should show habitat-specific contrast for the butterflies, which would facilitate detection and species identification. On the other hand, selection for signal stability would be stronger in the avian visual system. In this study we analysed the contrast of two Heliconius mimicry rings in their natural habitats under varying degrees of forest fragmentation and light conditions. We used digital image analyses and mapped the bird and butterfly vision colour space in order to examine whether warning colours have greater contrast and if they transmit a consistent signal across time of the day and habitat in a tropical forest. We tested conspicuousness using opponent colour channels against a natural green background. For avian vision, colours are generally very stable through time and habitat. For butterfly vision, there is some evidence that species are more contrasting in their own habitats, where conspicuousness is higher for red and yellow bands in the border and for white in the forest. Light environment affects Heliconius butterflies warning signal transmission to a higher degree through their own vision, but to a lesser degree through avian predator vision. This work provides insight into the use of colour signals in sexual and natural selection in the light of ecological adaptation.

ecology↗