Colour and motion affect a dune wasp’s ability to detect its cryptic spider predators

Ambush predators depend on cryptic body colouration, stillness and a suitable hunting location to optimise the probability of prey capture. Detection of cryptic predators, such as crab spiders, by flower seeking wasps may also be hindered by wind induced movement of the flowers themselves. In a beach dune habitat, Microbembex nigrifrons wasps approaching flowerheads of the Palafoxia lindenii plant need to evaluate the flowers to avoid spider attack. Wasps may detect spiders through colour and movement cues. We tracked the flight trajectories of dune wasps as they approached occupied and unoccupied flowers under two movement conditions; when the flowers were still or moving. We simulated the appearance of the spider and the flower using psychophysical visual modelling techniques and related it to the decisions made by the wasp to land or avoid the flower. Wasps could discriminate spiders only at a very close range, and this was reflected in the shape of their trajectories. Wasps were more prone to making errors in threat assessment when the flowers are moving. Our results suggest that dune wasp predation risk is augmented by abiotic conditions such as wind and compromises their early detection capabilities.

Prey strategies to avoid attack by ambush predators are more effective in the early part of the predation sequence 1 . Ambush predators are often cryptic, with their body colouration matching their environment 2 . They are usually still since movement can break their crypsis 3 ; they often have venom to debilitate their prey 4 and most importantly they hunt at a moment when the prey is vulnerable, i.e., during foraging or mating-when prey awareness is compromised 1 . Therefore, for a prey to overcome an ambush predator's strategy, evaluation of a risky site is crucial.
A prey's ability to detect an ambush predator is constrained by its perceptual capabilities through chemical, vibratory or visual mechanisms 3 . Visual detection of a predator depends on the spectral sensitivity of the prey's eye (the ability of the eye to respond to specific wavelengths of the light spectrum 5 ), spatial acuity (the capacity to discriminate shape and pattern details 6 and temporal resolution (time taken to process visual information 5 ). Furthermore, abiotic factors such as wind or obstacles can add to the visual clutter in a habitat 7,8 and consequently hinder predator detection.
The problem of detecting ambush predators is commonly faced by pollinating insects that approach flowers harbouring crab spiders (Araneae: Thomisidae) 13 . Crab spiders are famously cryptic-their body colouration blends into the background of the flowers 9 . Some species can change their colour to match the flower 10 and others are mottled in various shades 11 . This crypsis may serve to avoid detection by potential prey 12,13 , perhaps by interfering with search image formation. However, there is still controversy whether the intended receivers of the crypsis are the spider's prey or predators. Crypsis was found to be ineffective when considering the entire community of flower visiting potential prey 14 and a recent study argued that crypsis in crab spiders reduce their risk of predation by birds 15 . Though some crab spiders can increase the number of potential pollinators approaching the flower using deceptive signalling that exploit an insect's ability to perceive UV colouration [16][17][18] , several studies have shown that the presence of a spider on a flower deters pollinators 19,20 . Clearly, some pollinators are capable of detecting these spiders 21,22 and minimise their risk by evaluating the flower before landing 23 . What is not known, especially in natural conditions, is if insects can respond to a predation risk by altering their flight trajectories before landing and whether motion of the flowers affects their evaluation.
In this study, we evaluated the predator detection strategies of dune wasps (Microbembex nigrifrons; Hymenoptera: Crabronidae) as they approached a spider occupied Palafoxia lindenii flowerhead under two conditions www.nature.com/scientificreports/ of wind induced movement, i.e., when the flower was still and when it was moving. We measured the appearance of the flower and spider using psychophysical visual modelling from the perspective of a hymenopteran visual system and related the appearance to changes in wasp flight trajectories and landing decisions. If a wasp can detect the presence of the spider, we expected that their flight characteristics would reflect it and that the wasp would be able to detect spiders more easily when the flowers were still.

Results
Visual modelling. We generated pseudo-colour images of the spiders on the flowerhead (Fig. 1A) that took into account both spectral sensitivity as well as visual acuity. The log Receptor Noise Limited (RNL) cluster modelling of the chromatic distances (∆S), perceptual thresholds (1 Just-Noticeable Difference), and visual acu- www.nature.com/scientificreports/ ity of the wasp visual system showed that spiders may be detected only at a distance of around 5 cm from the flowerhead (Fig. 1B). When comparing the overlap of the colour maps ( Fig. S1) that represent the perception of the spider on the flowerhead by the wasp visual system with respect to the spider position, we found that the perceptual overlap is higher when the spider is on the top of the flowerhead (F = 19.7, df = 1; p < 0.001) and at a larger distance away from the flowerhead (F = 5.23, df = 3; p = 0.004; Fig. 1C). When the overlap is higher, the wasp would find it harder to visually separate the spider from the flower background. The interaction between position and distance was not significant. Thus, the perceptual overlap was significantly higher between 2 cm and 15 (p = 0.014) or 10 cm (p = 0.004), while there is no difference between the other pairwise comparisons.
The unsupervised Dynamic Time Warp (DTW, see methods) cluster analysis showed that the distance profiles (see  Speed. Wasps slowed down as they approached the flower (e.g., Fig. 3a3,b3), and the average slowdown in speed was significantly different between the flower treatments (Fig. 6A). Wasps approaching moving flowers reduced their speed at a steeper slope than those approaching still flowers (Repeated Measures ANOVA: Effect size (η 2 ) = 0.037, F 1,520 = 20.1, p < 0.001). Post hoc analysis showed that wasps approaching still flowers were significantly faster than those approaching moving flowers only at the 2 (Repeated Measures ANOVA post hoc test, t = 4.22, df = 520, p < 0.001) and 5 cm distances (Repeated Measures ANOVA post hoc test, t = -9.9, df = 520, p < 0.001; Fig. 6B).

Discussion
Dune wasps evaluate flowers for crab spider predators based on colour and motion cues, and their flight characteristics reflect their decision-making process. We found that though dune wasps locate and approach the flower from a distance, their decisions to land or avoid the flower occurs at a very close distance and this is due to the constraints of their perceptual system. When approaching moving flowers, wasps were more likely to land, had a straighter distance profile, steeper speed reduction and higher peaks in their body axis angle distribution targeting the flower. www.nature.com/scientificreports/ Flight trajectories of insects are a useful window into their decision-making process and can be used to understand their response to predation risk 19,24 . For example, bumblebees that were trained to approach artificial flowers with cryptic or conspicuous artificial spiders showed a decrease in flight speed and an increase in inspection time after their first encounter with an attack 24 . Bees were equally likely to avoid cryptic or conspicuous spiders, but their inspection times were longer for cryptic spiders 24 . Wasp flight has so far been studied extensively, but largely from the perspective of learning flights, i.e., how a wasp learns the position of its nest [25][26][27] and comparatively little information is available about foraging decisions in free flying wasps. Wasps probably use the motion of the typical zig-zag flight to acquire visual depth information of the object in question [28][29][30] . In hoverflies, the zig zag flight (termed 'hesitation behaviour') was more often seen when they approached flowers with a dead spider, and the authors attribute this to wasp flight mimicry, but it is more likely that this flight pattern allows the insect to gather more visual information regarding the predator 20,31 and the motion parallax generated which would also aid the insect in range estimation 32 .
We expected that wasps would detect the presence of the spider at a larger distance when approaching still flowers. We did not find a statistically significant effect but in general the trend suggests that wasp do have difficulty in evaluating moving flowers. However, our study was based on 2D trajectories and a 3D reconstruction of flight trajectories should give better measurements of distances. Furthermore, the fact that wasps responded to the presence of the spiders at a very close distance suggests there might be multimodal processes at play here, such as chemical detection. In an experiment looking at honeybee response to spider occupied flowers, it was shown that bees were less likely to land on flowers that had been previously been exposed to spider cues, even when the spider was not present at the time of approach 22 . The spider's crypsis may be overcome by chemical www.nature.com/scientificreports/ detection, but since there is likely to be substantial variation in odour plume range and strength in natural conditions, a multimodal detection strategy is essential. From the point of view of the spiders, there is an extensive literature on the effect of crab spider crypsis on potential pollinators 33 . The main lines of thought are as follows (sensu 14 ): 1. Spiders are cryptic to prey, 2. They are cryptic to predators, 3. They attract prey due to deceptive signalling, or 4. They can be detected and avoided by prey (i.e., no effect of crypsis). There is evidence for and against all four hypotheses, but using different crab spider species and different prey types. This variation in insect response to crab spiders 34 can be attributed to the diversity in perceptual systems of the insects themselves. One would expect that if the main prey is of hymenopteran origin, then there would be a higher likelihood of successful evasion of predation in comparison to other insects that do not perform an inspection behaviour such as certain flies. Our study emphasises the need to take a species centric approach (sensu von Uexhill's umwelt 35,36 ) to understand these interactions at a fine scale.
One of the unexpected results from our study was the relatively low frequency of wasp landings on unoccupied still flowers. We suggest that wasps are evaluating flowers, using both visual and olfactory cues (which we did not test), perhaps for traces of earlier visits by conspecifics or predators. Evaluating flowers for predation 90º -90º 0º Moving Still Figure 5. Frequency distribution of all wasp body axis angles as they approached moving (orange bars) or still (blue bars) flower heads with spiders. 0 degrees implies that the wasp's body axis angle coincided with the flowerhead. Note that since wasps never turned around, the maximum extent of the body axis angle was always lesser than ± 90º. Body axis angle distributions was significantly different between the two conditions, with higher peaks when wasps approached the moving flowerheads with spiders. www.nature.com/scientificreports/ risk is significantly influenced by flower motion, suggesting that the cognitive processes needed to integrate all this information is compromised under certain abiotic conditions 31 .
Our study shows that prey response to predators occurs at fine scales and the prey's perceptual biases play a significant role in assessing risk. To avoid an attack, wasps need to detect the predator at a close range and then respond by manoeuvring out of range before the attack occurs in order to maximise their escape rate.

Methods
Study site and species. The study was conducted in February and May 2019 at the Centro de Investigaciones Costeras La Mancha (CICOLMA), situated on the coast of the Gulf of Mexico (19° 36′ N and 96° 22′ W). Palafoxia lindenii A. Gray (Asteraceae) is an endemic dune pioneer species with white and purple inflorescences (hereafter 'flowerhead' 37 ). Mecaphesa dubia (Araneae: Thomisidae) is a colour-polymorphic spider that is frequently found on these flowerheads, either on top or to the side (i.e., on the receptacle). The most frequent colour morphs were white and purple 11 . Microbembex nigrifrons (Hymenoptera: Crabronidae) nests in dunes near vegetation 38 , and feed on the pollen and nectar of P. lindenii flowers. These wasps are known to use visual cues to locate their nests and adult wasps provision their nests with dead arthropods 39 .
Visual Modelling. We quantified the visual appearance of the spiders as perceived by the wasp visual system at different distances using multispectral standardized images of female Mecaphesa dubia (n = 8) spiders positioned on the side and the top of the Palafoxia lindenii flowerhead. To do so, we took photos of the spider in both parts of the flowerhead using an Olympus Pen E-PM2 camera (converted to full-spectrum) with a UV transmitting EL-Nikkor 80 mm f/5.6 lens attached. We took two type of photos: one using a Baader Venus UV pass and the other with UV/IR cut filters, to obtain images in the ultraviolet (~ 300-400 nm) and in the human visible part of the spectrum (~ 400 to 700 nm) respectively. Each photo included two reflectance standards of 93% and 7% as well and a scale, and for a light source, we used an Iwasaki EYE Color arc lamp (70 W 1.0 A; Venture Lighting Europe Ltd., Hertfordshire, UK) with the UV block filter manually removed. The photos were saved in RAW format and processed using the Multispectral Image Calibration and Analysis (MICA) toolbox 40 for ImageJ (v 1.52a), resulting in multispectral files with reflectance values of the spiders in the different position of the flowerhead.
Each multispectral file was converted to quantum catch files used in an integrative analysis by means of Quantitative Pattern Colour Analysis (QCPA) of the MICA toolbox. This is a framework based on the Receptor Noise Limited (RNL) model 41 and includes spectral sensitivity and visual acuity 5 . Since there is no information about the visual system of M. nigrifrons with respect to the visual traits mentioned above, we approximated a model wasp visual system using the data available for closely related species. Thus, for the colour vision we used a reconstruction of the spectral sensitivity of Philanthus triangulum Fabricius (Sphecidae) with sensitivity peaks at: UV = 344, SW = 444, and MW = 524 42 . For the RNL model, we used the Weber fraction (w = 0.13) and the relative density for each receptor class (1:0.471:4.412 ratios for the UV:SW:MW receptors, respectively) based on the honeybee vision 21 . To model the visual acuity, we used the minimal resolvable angle value reported for Bembix palmata Smith (Crabronidae) equal to 1.22 cycles per degree 43 .
We used the 'Colour Maps' approach to represent and delimit the entire visual scene combining visual acuity and spectral sensitivity data in a perceptually calibrated Hymenopteran trichromatic colour space 44 . We estimated the portion of overlap between the spider and the flowerhead as perceived by the wasp. The higher the overlap, the less likely it is for the viewer to perceive differences between the spider and the flowerhead. Finally, to have a representation of the pixel noise reduction subsequent to visual acuity correction and recovering chromatic and luminance edge information, we included a RNL Ranked Filter based false colour image 44 which is a representation of the colours using the wasp visual system we created. However, due to a lack of behavioural validation of the detection thresholds in the wasp, we use this image for visualisation purposes only. We compared the perceptual overlap of the colour maps generated for the spider and the flowerhead at different distances, in each position, by means of a Kruskal-Wallis test with a Post-Hoc Wilcoxon test done in the R statistics package.
Flight trajectories of M. nigrifrons. We filmed wasps approaching P. lindenii flowerheads with a highspeed camera (Chronos 1.4, 500 fps, Krontech.com) with two flower treatments (Moving or Still) and the following conditions: 1. Flowerheads without spiders (Control, Moving: n = 9; Still, n = 6), 2. Flowerheads with live spiders tethered on the side (Side, Moving: n = 6; Still, n = 8, Fig. 1A), 3. Flowerheads with live spiders tethered on the top (Top, Moving: n = 8; Still, n = 6, Fig. 1B). Live spiders were tethered to the flowerheads by means of a dental floss strand affixed to their ventral side with a non-toxic glue and placed into position with a pin. Spiders were thus restrained and could not move away from the flower. We assumed that micromovements were possible and the position of the spider closely matched natural conditions. We stabilized flowers with a stick tied parallel to the stalk for the Still treatment and used freely moving stalks for the Moving treatment. This ensured that the constant sea breeze generated flower movement in the Moving treatment, but we did not control for extent of movement. The mean fluctuation of the flowers, as measured by the distance between the centre of the flower between frames, was significantly lower (Mann Whitney test statistic = 78, p < 0.0001) in the Still treatment in comparison with the Moving treatment. The cameras were placed at a distance of 1 m above the flowerheads, with the focal flower always centred; and the number of flowerheads per plant were similar. From the videos, the position of the centre of the flowerhead, head and abdomen of the wasp were manually tracked in 2D, using the MTrackJ plugin in ImageJ 45 .
We recorded the decision distance i.e., the point where the wasp chose to land on or avoid the flower; this was recorded by visual inspection by one experienced observer of the high-speed video in a frame-by-frame manner; see the red dot in Fig. 2  www.nature.com/scientificreports/ trajectories, it was not feasible to generate an algorithmic approach to determine this point. The main criteria used for determining the choice distance point were as follows: in the cases where the wasps avoided landing on the flower, we used the point of closest approach before the wasp turned away. In the case when the wasp landed, we identified the choice point as when there was a subtle increase in wasp speed as it stopped inspection and approached the flower to land. We also recorded the Inspection time (duration of flower observation, i.e., zig-zag flight, at close range within 10 cm distance of the flower), Outcome (whether the wasp avoided the flower or landed). From the coordinates of wasp position, we calculated the following metrics: Sinuosity index (a measure of deviation from a straight line) using the R package trajr 46 , the wasp's body axis angle with respect to the flower (0º implies that the wasp was pointing directly at the flower) and speed. Distance profile curves, i.e., distance between the wasp's position and the flower's position at every point of the trajectory, were compared with an unsupervised cluster analysis based on the Dynamic Time Warping distance method which retains shape information 47-49 using Mathematica ver. 12. In order to compensate for differences in length of trajectories (i.e., some wasps flew for a longer time than others), we interpolated and standardized them such that all trajectories were of the same length. Trajectory data were coloured according to the distance to the flower, identifying four circular regions (at 2 cm, 5 cm, 10 cm, > 10 cm) centred at the flower's position (Fig. 2). We then analysed the frequency of distance profile shapes with respect to the different treatments with contingency tests.
To determine the direction of flight, we generated a line extending from the wasp's abdomen and head (in the direction of the head; i.e., body axis). We subsequently compared the body axis angles of wasps approaching still and moving spider-occupied flowers with a Watson-Wheeler Two sample test using the circular package in R 50 .