Abstract
Motion vision underpins a wide range of adaptive behaviours essential for individual and species survival. In hoverflies, some visual behaviours are sexually dimorphic, including for example male high-speed pursuit of conspecifics, matched by improved optics, and faster photoreceptors. Other visual behaviours are sexually monomorphic, with for example similar foraging flight speeds in male and female hoverflies. However, whether the descending neurons responsible for sensorimotor transformation of optic flow are sexually dimorphic is unknown. To address this, we combined morphological analysis with electrophysiology of optic flow sensitive descending neurons and compared neural responses to the behavioural output in tethered hoverflies. We found that while optomotor flight behaviour is largely sexually monomorphic, the underlying neural responses are sexually dimorphic, especially at higher optic flow velocities. Additionally, behavioural responses were noticeably slower than neural responses. Together, our findings uncover a nuanced, sex- and stimulus- dependant sensorimotor transformation, shaped by both neural architecture and behavioural demands.
Introduction
Motion vision is a fundamental sensory modality across the animal kingdom, enabling animals to navigate, to maintain a straight trajectory, to avoid collisions, and to identify prey, predators or mates. Among the most potent cues for self-motion is widefield optic flow, the coherent motion of the entire visual field, generated by an animal’s own movement through the world. In insects, the neural mechanisms underlying optic flow processing have been studied extensively (for a review, see e.g. Ref 1), offering a powerful model for understanding how compact nervous systems extract behaviourally relevant information from dynamic visual scenes.
To generate appropriate responses to widefield optic flow, the visual input needs to be integrated across space. In flies, this spatial pooling occurs in 45-60 lobula plate tangential cells (LPTCs)2,3, each matched to a particular type of self-generated optic flow4, where the horizontal system (HS) and vertical system (VS) cells are the most well described. HS cells respond optimally to rotations around the yaw axis, whereas VS cells are tuned to pitch and roll rotations5. LPTCs project to the inferior posterior slope6, where they synapse with descending neurons7,8. In Drosophila at least 35 descending neuron types have their inputs in the posterior surface of the brain (named DNp1-35)9. Furthermore, in Drosophila and blowflies, three of these descending neurons have been shown to respond robustly to widefield optic flow. Their axons project to the dorsal part of the thoracic ganglion, where motor neurons controlling the neck, wings and halteres are located7,10–13.
DNp15, also called DNHS1, receives input from HS cells9–11 and is physiologically similar to the optic flow sensitive descending neuron type 1 (OFS DN1) in the hoverfly Eristalis tenax14, although direct LPTC coupling has not yet been demonstrated in the hoverfly.
DNHS1 projects to the neck and haltere motor neuropils9 and has been implicated in the control of head yaw movements, abdominal ruddering and flight stabilization via the haltere motor system10. DNp20, or DNOVS1, receiving input from the ocelli and VS cells7,9,10,15, is likely involved in rapid head movements9, possibly facilitating gaze stabilization during flight10. DNp22, or DNOVS2, also receives input from the ocelli but a different subset of VS cells7,9,10,16. DNOVS2 is physiologically similar to the Eristalis tenax optic flow sensitive descending neuron type 2 (OFS DN2)14, but synaptic coupling with VS cells has not been shown in hoverflies. DNOVS2 projects to the neck, wing and haltere motor neuropils9 and has been implied in the initiation of the fast body saccades that support rapid re-orientation10 during flight in response to dynamic visual cues.
Hoverflies are interesting in the context of motion vision, which they use both to maintain a hovering stance, and to fly at high speed17. Indeed, hoverflies show striking sexually dimorphic flight behaviour, where males establish territories which they guard rigorously from a hovering stance18, followed by high-speed flight to chase away any intruding insects and/or pursue conspecific females for courtship and mating17,19. Male hoverflies are also smaller than females20,21, which introduces an aerodynamic component by reducing inertia and enabling finer control over rapid flight adjustments22. Accompanying this sexually dimorphic pursuit behaviour, male E. tenax have larger lenses than females in a dorso-frontal bright zone23, with faster motion detection and increased signal-to-noise ratio24. In many fly species, the photoreceptors in this part of the eye are also faster in males25. In hoverflies, even if the LPTCs are typically implied in optomotor responses1, males have a smaller HSN receptive field26 and velocity tuning shifted to higher velocities23,27. These adaptations are likely useful in regulating optomotor responses during high-speed target pursuit28,29. Indeed, as target selective descending neurons (TSDNs) are suppressed when target and background move in the same direction28,30, the optic flow sensitive descending neurons may serve a complementary role in stabilizing flight under these conditions.
The differences in optics, photoreceptor dynamics, and LPTC receptive field size and velocity tuning, have been interpreted as required by males in the fast flight used during sexually dimorphic territorial behaviours. Interestingly, there is no sexual dimorphism in flight speed during behaviours likely to be governed primarily by the LPTCs, such as foraging between flowers31 and when flying within the confines of an indoor arena32. To investigate the discrepancy between sexually dimorphic visual processing and sexually monomorphic flight speed, we compared the electrophysiological response characteristics and morphology of optic flow sensitive descending neurons in male and female hoverflies and linked these findings to the behaviour of tethered hoverflies viewing similar stimuli. We used the wing beat amplitude (WBA) as a measure of the optomotor response, and found no sexual dimorphism at speeds up to 2 m/s for translation and 200°/s for rotation. While the head movements were largely sexually monomorphic, the extension of the fore- and hind legs exhibited clearer sexual dimorphism. Furthermore, while neural morphology, receptive fields and direction sensitivity of the descending neurons showed minimal sex differences, there was a significant and noticeable difference in the velocity response functions between males and females, especially at higher speeds. Critically, neural differences were not only velocity dependent but also varied between stimuli (occurring only for sideslip, lift and thrust, but not roll) and neuron type. These neuron-, stimulus-, and sex-specific differences uncovers a previously unrecognized complexity in the neural encoding of visual motion, revealing for the first time, a sex-dependent transformation from sensory input to motor output.
Results
Two distinct types of optic flow sensitive descending neurons can be identified by their receptive field location and preferred direction
Optic flow sensitive descending neurons can be readily identified by mapping their receptive field using small sinusoidal gratings14,23. Based on the receptive fields of 100 reference neurons recorded from 90 male hoverflies, we found that two key parameters, the azimuthal position of the receptive field centre and its preferred direction of motion, are sufficient to reliably ascertain neuron type (Fig. 1, Supplementary Fig. 1). OFS DN1 has a preferred direction up and away from the midline, either leftward (range from 137° to 171°) or rightward (range from 16° to 40°) for neurons on the left- and right-hand side of the visual field, respectively (Fig. 1a, b and c; green, Fig. 1g, h and i). OFS DN2 neurons respond preferentially to downward motion (range from 228° to 293°; Fig. 1d, e and f; yellow and orange, Fig. 1g, h and i) with the azimuthal position of the receptive field centre separating left-hand side (LHS) from right-hand side neurons (RHS, Fig. 1g, h and i).

Classification of optic flow sensitive (OFS) descending neurons (DN) in Eristalis tenax.
a Receptive field of a representative OFS DN1 recorded from a male hoverfly. Colour coding indicates the local maximum spike frequency (red, inset, panel b), the direction of the arrows shows the local preferred direction (LPD, red arrowhead, panel c) and their length the local motion sensitivity (LMS, red, panel c). As the stimuli were not perspective corrected, the receptive field map reflects the visual monitor. b Contour line representing the 50% receptive field boundary based on local maximum spike frequency (colour coding, panel a). Inset: example response at one central location to eight directions of motion (black circles), showing local maximum spike frequency (local max, red line) above spontaneous rate (spont, black dotted line). c Local preferred direction (LPD) map of the same example neuron at locations where local motion sensitivity (LMS) exceeds 50% of the maximum. Inset: example response at one location to eight directions of motion with a sinusoidal fit (black line), illustrating LMS (red line) and LPD (red arrowhead). The data in the inset corresponds to the red arrow. d Receptive field of a representative male OFS DN2. e 50% receptive field contour and receptive field centre of the neuron shown in panel d. f Preferred direction map of the same OFS DN2. g Distribution of receptive field preferred directions across 100 male reference neurons, colour-coded by neuron classification. Dashed lines in corresponding colours indicate the thresholds used for neuron type classification. h Receptive field centres of the same 100 reference neurons, using the same colour coding. i Relationship between preferred direction and receptive field centre for the 100 neurons. Note that the scale is the same for the azimuth and elevation, and the scale bar in panels a, d, h and i correspond to both the x- and y-axis.
We used the maximum local motion sensitivity (LMS, Fig. 1c, f), the extent of the receptive fields (number of positions with LMS over 50%, arrows in Fig. 1c, f) and the local preferred direction (LPD, Fig. 1c, f) variance from these 100 reference neurons (grey data, Supplementary Fig. 2a, b and c) to set strict exclusion criteria (dashed red, Supplementary Fig. 2a, b and c) of the neurons used in the rest of the paper. This resulted in the exclusion of two neurons from males and seven from females (grey, Supplementary Fig. 2d, e) due to either low LMS (less than 20 spikes/s, Supplementary Fig. 2a), a small number of locations where LMS exceeded 50% of the maximum (four positions or less, Supplementary Fig. 2b) or high LPD variance (above 30°, Supplementary Fig. 2c).
We found no sexual dimorphism in either neuron type when comparing receptive field width and height of the remaining 33 male and 29 female neurons (Supplementary Fig. 2f, unpaired t-test, p = 0.52 and 0.09 for width and height of OFS DN1, and p = 0.19 and 0.13 for width and height of OFS DN2).
Directional tuning of optic flow sensitive descending neurons exhibits limited sexual dimorphism
Some LPTCs, which are upstream of optic flow sensitive descending neurons, show distinct sexual dimorphism, whilst others do not23,26. The receptive field data used for classifying OFS DN1 and DN2 showed that they are strongly directional (Fig. 1g, i). To investigate if this direction tuning is sexually dimorphic, we used a separate experiment quantifying responses to full-screen sinusoidal grating stimuli (wavelength 7°, 5 Hz, Supplementary Fig. 3). We found that the resulting preferred direction of both OFS DN1 and OFS DN2 matched their receptive field preferred directions (compare polar plots in Supplementary Fig. 2d, e with Supplementary Fig. 3g, h), i.e. up and away from the visual midline for OFS DN1 (range from 359° to 52°) or downwards for OFS DN2 (range from 273° to 297°, Fig. 2a). Whilst OFS DN1 showed no difference in preferred direction between the sexes (Watson-Williams two-sample test, p = 0.38), male OFS DN2 had a slightly more lateral preferred direction compared to females (Fig. 2a; median = 285.4° compared to 281.5°, Watson-Williams two-sample test, p = 0.046).

Sex-based comparison of direction sensitivity in OFS DNs.
a Polar plot showing the preferred direction of male (blue) and female (red) OFS DNs in response to a full-screen, full-contrast sinusoidal grating (spatial wavelength 7°, temporal frequency 5 Hz) moving in eight different directions (see also Supplementary Fig. 3). Individual data points represent the response amplitude and preferred direction of each OFS DN (red, Supplementary Fig. 3j). Larger, salient circles indicate the population median, with error bars showing the interquartile range. The dashed lines indicate the directional thresholds used to classify neuron type, as OFS DN1 (male: N = 9; female: N = 12) or OFS DN2 (male: N = 20; female: N = 14). Asterisk indicates a statistically significant difference (p < 0.05, Watson-Williams two-sample test). b Comparison of male and female OFS DN1 responses to translational optic flow at 0.5 m/s: sideslip, lift and thrust; and rotational optic flow at 50 °/s: pitch, yaw and roll (male: N = 9; female: N = 12). c Comparison of male and female OFS DN2 responses to the same optic flow stimuli (male: N = 20; female: N = 14). Data presented as median and interquartile range.
We quantified the spontaneous rate and found that neither this nor the responses of OFS DN1 to a stationary starfield pattern differed between the sexes (circles, Supplementary Fig. 4a, two-way ANOVA, p = 0.29). Conversely, OFS DN2 exhibited significant sexual dimorphism, with females displaying a higher spontaneous rate and response to stationary stimuli than males (circles, Supplementary Fig. 4b, two-way ANOVA, p < 0.001). The response to a stationary stimulus was larger than spontaneous rate in males (p = 0.015), but not in females (red circles, Supplementary Fig. 4b, p = 0.35, two-way ANOVA).
We next looked at the responses to moving full-screen 3-dimensional starfield stimuli simulating the type of optic flow that would be generated by self-motion through space33 (at 0.5 m/s for translations and 50°/s for rotations), after subtracting the response to the stationary stimulus (filled circles, Supplementary Fig. 4a, b). As predicted from the receptive fields (Fig. 1) OFS DN1 was excited by stimuli moving either up or away from the midline, such as rightward sideslip and yaw, and upwards lift and pitch (Fig. 2b), whilst OFS DN2 showed the strongest responses to downwards lift and pitch (Fig. 2c). Both neuron types respond strongly to clockwise roll (Fig. 2b, c), as predicted by their receptive fields (Fig. 1a, b) and shown previously for males14. However, neither neuron type showed any sexual dimorphism (Fig. 2b, c, two-way ANOVA, p = 0.81 and 0.92, OFS DN1 and OFS DN2, respectively).
Sexual dimorphism in optic flow descending neurons is velocity dependent
As the velocity tuning of some LPTCs is sexually dimorphic23,27, we tested the responses of optic flow sensitive descending neurons using a continuous velocity step stimulus (Fig. 3, Supplementary movie 1). Six velocities for each direction of the stimuli (e.g. anticlockwise roll -10 to -200°/s and clockwise roll +10 to +200°/s) and a stationary control were presented three times each in random order for 2 s each (see example, Fig. 3a).

Velocity response functions in male and female OFS DNs.
a Example stimulus profile over time, with roll velocity on the y-axis. b Representative spike histogram from a single trial from a male OFS DN2, smoothed using a 100 ms square-wave filter with 0.025 ms resolution, and time-aligned to the stimulus shown in panel a. Grey shading in panels a and b highlight the analysis windows used to calculate response. c Example extracellular raw data traces extracted from the analysis windows in panel b, illustrating neuronal responses to roll velocities of –150, 10, and 200 °/s. d Average spike frequency (grey circles) was calculated for each repetition from each neuron (N = 1 neuron, n = 18 repetitions), and the median of these (black) was used for further analysis. e Velocity response functions of OFS DN1 in male (blue) and female (red) hoverflies in response to roll (N = 4 males, 5 females), sideslip (N = 5, 6), lift (N = 4, 4), and thrust (N = 3, 5). f Velocity response functions of OFS DN2 to roll (N = 10 males, 8 females), sideslip (N = 6, 7), lift (N = 6, 7), and thrust (N = 6, 7). Data in panels e and f are presented as median and interquartile range. Asterisks indicate statistically significant differences, two-way ANOVA with Šídák’s multiple comparisons test (** p < 0.01 and **** p < 0.0001), see also Table 1.

Statistical summary of neural velocity response functions.
Results from two-way ANOVA analyses evaluating the effects of stimulus velocity and sex on neural responses (OFS DN1 and DN2). Asterisks denote levels of statistical significance: *** p < 0.001, **** p < 0.0001.
We confirmed that the spontaneous rate and response to stationary stimuli was significantly higher in females compared to males for OFS DN2 but not for OFS DN1 (triangles, Supplementary Fig. 4a, b, two-way ANOVA, p = 0.18 and p < 0.001, OFS DN1 and OFS DN2, respectively). As above, we subtracted the average response to the stationary stimulus from the responses to moving optic flow. The resulting data show that both neuron types exhibit sexual dimorphism to certain types of optic flow (Fig. 3e, f and Table 1). For example, the OFS DN1 response to thrust show a significant interaction between sex and velocity, with female neurons responding stronger to positive thrust compared to males (Fig. 3e and Table 1). The OFS DN2 response to sideslip was significantly different between males and females, and there was a significant interaction between sex and velocity in the responses to sideslip, lift, and thrust, with males responding stronger to sideslip, lift and thrust (Fig. 3f and Table 1).
Morphological reconstruction suggests optic flow sensitive descending neurons could control the wings
By recording from the descending neurons intracellularly we could iontophoretically fill them with 3% neurobiotin following identification based on receptive field (as in Fig. 1). We found that OFS DN1 and OFS DN2 of either sex receive their input in the part of the brain where LPTCs have their output (Fig. 4a, b, d, e and f). Both neuron types project along the length of the thoracic ganglion, with several fine branches along the way (Fig. 4a, b, c, g, h and i), like Drosophila DNHS1 and DNOVS234. In Drosophila, DNOVS2 projects more medially than DNHS1, which also has a more distal projection, close to the haltere nerve (HN)34. However, we saw no such differences between the projections of OFS DN1 and DN2 (Fig. 4a, b, c, g, h and i). In addition, both hoverfly neuron types have prominent outputs where the prothoracic and pterothoracic nerves likely get their inputs (T1 LN and PtN, Fig. 4a, b, c, g, h and i), which is more similar to the outputs of Drosophila DNOVS134. These outputs suggest that OFS DN1 and DN2 could contribute to controlling the neck, wings and/or the forelegs.

Morphological reconstruction of OFS DNs.
a Schematic diagram of the hoverfly central brain and thoracic ganglia showing the projections of OFS DN1 (green) and OFS DN2 (orange). Key anatomical landmarks are labelled: CB, central brain; OL, optic lobe; CC, cervical connective; T1 LN, prothoracic leg nerve; T2 LN, mesothoracic leg nerve; T3 LN, metathoracic leg nerve; TAG, thoracic-abdominal ganglion; FN, frontal nerve; PtN, pterothoracic nerve; HN, haltere nerve; AbN, abdominal nerve. b Confocal image of a reconstructed male OFS DN2. White boxes indicate regions magnified in panels d - i. c A magnification of the thoracic ganglion in panel b. d Input dendrites of the same OFS DN2 around the sub-oesophageal ganglion. e Input dendrites of a female OFS DN2. f Input dendrites of a male OFS DN1. g Output projections of the same OFS DN2 neuron as in panels b, c and d. f Output projections within the thoracic ganglia of the neuron in panel e. h Output projections of the neuron in panel f.
Whilst there was no indication of extensive sexual dimorphism in the structural morphology of these neurons, OFS DN2 appears to be slightly wider along the length of the cervical connective in females (Supplementary Fig. 5a, b). In part, this may be due to female hoverflies being bigger20,21 and therefore having a wider cervical connective (Supplementary Fig. 5c).
Wing beat amplitude changes are velocity dependent but not sexually dimorphic
Given that the morphological data suggest that both neuron types could control the wings (Fig. 4), we conducted behavioural experiments in an open-loop tethered flight arena using the same continuous velocity stimulus as in electrophysiology (see Fig. 3a). We tracked the wing beat amplitude (WBA) for each wing (Fig. 5a, b, Supplementary movie 2) using DeepLabCut models35,36 while the tethered animal was viewing different starfield velocities (Fig. 5c, d, e and f). Changes in the sum of the left and right WBA (WBAS, Fig. 5b) reflect variations in flight force generation, potentially contributing to either lift or thrust, while the difference between left and right WBA (WBAD) indicates yaw turning behaviour37–39 or adjustments to body orientation40.

WBA velocity response functions in male and female hoverflies.
a A single frame from a video labelled with trained DeepLabCut models35,36,55. Coloured dots correspond to those in panel b, used to extract the wing beat amplitude (WBA). b Pictogram illustrating a higher wing beat amplitude on the left wing (WBAL) compared to the right wing (WBAR), suggesting a turn to the right. Equations used to calculate wing beat amplitude difference (WBAD) and wing beat amplitude sum (WBAS). c Example stimulus with sideslip velocity on the y-axis. d Representative WBA for the left (pale colour) and right (salient colour) wings from a single trial, time-aligned with the stimulus shown in panel c. Grey shading in panels c and d indicate the analysis windows used to calculate WBAD and WBAS. e Magnified view of example WBA, showing behavioural responses to sideslip velocities of -2, 0.2, and 2 m/s. f Average WBAS (grey circles) calculated across repetitions (N = 1 animal, n = 19-36 repetitions). Black circles represent the median WBAS per stimulus velocity, used for further analysis. g WBAD in male (blue) and female (red) hoverflies in response to different optic flow velocities: roll (N = 5 males, 7 females), sideslip (N = 6, 6), lift (N = 7, 5), and thrust (N = 6, 5). h WBAS to the same stimuli in the same animals. Data in panels g and h are presented as median and interquartile range.
The male WBAS is higher when viewing stationary stimuli compared with pre-stimulation (“pre stim” in Fig. 5c, d; blue, Supplementary Fig. 4c, two-way ANOVA followed by Uncorrected Fisher’s LSD test, p < 0.01). However, there was no sexual dimorphism in the WBAS during pre-stimulation, nor when viewing stationary stimuli (Supplementary Fig. 4c, two-way ANOVA, p = 0.35). When comparing responses to each type of optic flow, after subtracting the response to stationary stimuli, both the WBAD and WBAS depended strongly on velocity, however, there was no sexual dimorphism (Fig. 5g, h and Table 2).

Statistical summary of behavioural velocity response functions.
Results from two-way ANOVA analyses evaluating the effects of stimulus velocity and sex on behavioural responses (WBAS, WBAD, head angle, foreleg extension, hind leg extension and hind leg difference). Asterisks denote levels of statistical significance: ** p < 0.01, *** p < 0.001, **** p < 0.0001, after performing a Bonferroni correction54 for 6 comparisons of data from the same videos.
The lack of sexual dimorphism observed in behaviour (Fig. 5g, h and Table 2) contrasts with the neural responses (Fig. 3e, f and Table 1). Additionally, it is difficult to align the WBA responses to different types of optic flow with the neuronal input. For example, in response to higher clockwise roll velocities of (100 - 200°/s), hoverflies exhibit a decreased WBAD (positive roll, Fig. 5g) and a slightly increased WBAS (positive roll, Fig. 5h) indicating either a leftward turn or an anticlockwise body correction. Similarly, both RHS neuron types give strong responses to clockwise roll (positive roll, Fig. 3e, f). However, sideslip moving leftwards also elicits a decreased WBAD (negative sideslip, Fig. 5g) and an increased WBAS (negative sideslip, Fig. 5h) but neither neuron type responds strongly to this (negative sideslip, Fig. 3e, f).
We found that neither lift nor thrust evoke large turning responses (Fig. 5g), however, large and significant increases in the WBAS were observed in hoverflies experiencing the sensation of falling (positive lift, Fig. 5h and Table 2) or being pushed backwards (negative thrust, Fig. 5h and Table 2). Interestingly, each neuron type responds to lift and thrust in a different manner, with OFS DN1 being excited by upwards lift and approaching thrust (Fig. 3e), whereas OFS DN2 is excited by downwards lift and receding thrust (Fig. 3f).
In electrophysiology we used a horizontally oriented visual monitor (Supplementary Fig. 6a), whereas in behaviour the monitor was rotated 90° (Supplementary Fig. 6b and Ref 36). To ensure that this did not substantially affect the shape of the velocity-response functions, we reduced the stimuli to the central square in both behaviour and electrophysiology. This reduction caused a slight but significant change in neuronal (central square; Supplementary Fig. 6c, two-way ANOVA, p = 0.04) and WBAS responses (central square; Supplementary Fig. 6d, two-way ANOVA, p = 0.04). However, it did not alter the shape of the velocity response function nor produce a significant interaction between velocity and screen size (two-way ANOVA, p = 0.36 and 0.49, OFS DN2 and WBAS, respectively).
Response onset depends on stimulus type
It has been previously shown that while neuronal responses are fast33 behavioural responses occur on a much slower time scale and differ depending on stimulus type41,42. We here found that there is no significant effect of sex on either neuronal or WBAS response onset (Fig. 6, two-way ANOVA, p = 0.21, 0.79 and 0.31, OFS DN1, OFS DN2 and WBAS, respectively). However, the onset for roll compared to lift is significantly longer for OFS DN2 and WBAS but not for OFS DN1 (Fig. 6, two-way ANOVA, p < 0.0001 for both OFS DN2 and WBAS compared to p = 0.08 for OFS DN1). Note that we recorded the WBA from above (Fig. 5a), and as such did not quantify wing rotations and adjustments outside of the horizontal plane. The WBA response onset to roll optic flow (Fig. 6c) should thus be viewed as highly conservative.

Response onset to roll and lift stimuli in male and female hoverflies.
a Time to response onset in OFS DN1 to roll (+50 °/s) or lift (+0.5 m/s) stimuli in males (blue, N = 5) and females (red, N = 8). b Response onset in OFS DN2 to roll (+50 °/s) or lift (-0.5 m/s) measured in males (N = 20) and females (N = 14). c Onset of WBAS responses to roll (-200 °/s) and lift (+2 m/s) in males (N = 5 for roll, 9 for lift) and females (N = 7 for roll, 5 for lift). Data are presented from individual neurons (a, b) or animals (c) with lines indicating median. Asterisks indicate statistically significant differences, two-way ANOVA with uncorrected Fisher’s LSD test (** p < 0.01 and *** p < 0.001).
Sideslip and lift optic flow generate strong head, fore- and hind leg movements
The lack of sexual dimorphism in WBA suggests that behavioural responses to optic flow are the same between the sexes. To investigate this further, we next extracted the head angle (Fig. 7a, b), and the extension of the fore- (Fig. 7a, c) and hind legs (Fig. 7a, d). We found that the head turned significantly when viewing sideslip (Supplementary movie 2 and 3, Fig. 7e and Table 2, two-way ANOVA, p < 0.001 for velocity), but there was no response to the other three types of optic flow. We found no sexual dimorphism (Fig. 7e and Table 2).

Velocity response functions of the head, fore- and hind legs in male and female hoverflies.
a A single frame highlighting the points used to track the head (yellow and dark green), thorax (orange), forelegs (pale and dark blue), and hind legs (magenta and pale green). b The head angle (HA) was defined as the angle between the medio-posterior head and the longitudinal thorax axis. c The foreleg extension was defined as the distance between the proximal and distal point, after calculating the average for the left and the right leg. d The hind leg extension was defined as the distance between the knee and a lateral point on the mid-abdomen, after calculating the average for the left and the right leg. We also calculated the difference between the right and the left hind leg. e The head angle in male (blue) and female (red) hoverflies in response to different optic flow velocities: roll (N = 5 males, 7 females), sideslip (N = 6, 6), lift (N = 7, 5), and thrust (N = 6, 5). f The foreleg extension to the same stimuli in the same animals. g The hind leg extension in the same animals. h The difference between the left and right hind leg extension in the same animals. The data in panels e, f, g and h are presented as median and interquartile range. Asterisks indicate statistically significant differences, two-way ANOVA with Šídák’s multiple comparisons test (* p < 0.05, ** p < 0.01), see also Table 2.
We found that while the forelegs could not be seen in the dorsal view for most of the flight (see e.g. Fig. 5a), they extended anteriorly in response to high velocity sideslip, lift and thrust, but not to roll (Fig. 7f , Table 2 and Supplementary movie 2-9). The foreleg extension to sideslip was sexually dimorphic, with significant interaction between sex and velocity for sideslip and lift motions (Fig. 7f and Table 2, two-way ANOVA, p = 0.04, 0.01, 0.03, respectively). Post hoc pairwise comparisons revealed females extended their forelegs further than males to upwards lift at 1.5 m/s (Fig. 7f, Šídák’s multiple comparisons test, p = 0.01).
The hind legs were generally extended during flight (Fig. 5a, Fig. 7a) with males extending their legs further than females (Supplementary Fig. 4d, two-way ANOVA, p = 0.032). After subtracting the hind leg extension when viewing the stationary starfield (filled symbols, Supplementary Fig. 4d), we found similar patterns to foreleg extension (Fig. 7f), with a significant interaction between sex and velocity only in response to sideslip (Fig. 7g and Table 2, two-way ANOVA, p = 0.02). We quantified the difference between the right and the left hind leg and found that there was a significant interaction between sex and velocity in response to roll and thrust (Fig. 7h and Table 2, two-way ANOVA, p = 0.02 for roll and p < 0.0001 for thrust).
Looking at the different body parts together we noted that in response to upwards lift (generating a falling sensation) the WBAS increases substantially (Fig. 5h), and the fore-(Fig. 7f) and hind legs (Fig. 7g) all extend, potentially to brace for impact (Supplementary movie 4 and 5). We also noted that in response to sideslip, the WBAS increases (Fig. 5h), the WBAD indicates a turn in the direction of the optic flow (Fig. 5g), the head rotates (Fig. 7e), and both the forelegs and hind legs extend (Fig. 7f, g). The hind legs appear to be ruddering, with the right leg extending more when the animal is turning right (Fig. 5g, 7h, Supplementary movie 2 and 3). There was no significant difference in the response onset of these body parts, nor was there any sexual dimorphism (Supplementary Fig. 7).
Discussion
In the hoverfly, the optics, photoreceptors, and HS cells exhibit clear sexual dimorphism23,24,26,27. In line with this, our findings reveal that optic flow sensitive descending neurons also show sexually dimorphic velocity response functions (Fig. 3). Yet, despite the multi-level anatomical and neural sexual dimorphism, the wing beat amplitude (Fig. 5) and head movements (Fig. 7) remain mostly monomorphic, while leg movements exhibit clear sex-specific differences. Moreover, differences between neural and behavioural velocity response functions (Fig. 3, 5, 7) and response latency (Fig. 6) highlight the likely involvement of downstream processing mechanisms that could reconcile sex-specific sensory encoding with conserved flight control.
Some hoverfly flight behaviours are strongly sexually dimorphic, such as those related to courtship and mating. For example, male hoverflies defend territories from a hovering stance from which they pursue and capture female conspecifics at high speeds19. In contrast, other behaviours, including cruising speeds in field31 and indoor settings32 do not differ between sexes, and are much slower (median around 0.3 m/s31,32) than the 10 m/s that can be reached during outdoor pursuit19. In comparison, our results show limited sex-related differences in WBA in response to optic flow speeds up to 2 m/s (Fig. 5), yet we detected pronounced sexual dimorphism in neural responses at velocities as low as 0.5 m/s (Fig. 3, Table 1). This suggests that sensory processing differences emerge at lower velocities than the velocities where motor output diverges. Moreover, the WBAS response latencies were much longer than the corresponding neural activity (Fig. 6), implying that temporal integration or additional circuit-level modulation may delay and refine motor execution. Together, these findings suggest a complex transformation between sex-specific sensory encoding and conserved motor behaviour, potentially mediated by downstream integration or additional alternate neural pathways that bypass the descending neurons studied here.
In Drosophila there are around 1000 descending neurons, of which at least 35 types receive their input in the posterior surface of the brain, which includes the inferior posterior slope, where the LPTC outputs are found6,7,9. However, only a subset of these constitute the 29 descending neuron types that project to the wing motor neuropil9. It is thus likely that the WBA that we recorded here (Fig. 5) reflects contributions from descending neurons beyond the two that we have characterised (Fig. 1, 3) in this study. For example, many looming sensitive neurons also respond to widefield optic flow14,43 and could therefore play a role in the WBA changes that we detected (Fig. 5). While the morphology of both neurons (Fig. 4) suggested involvement in wing motor control, there is currently no direct evidence implicating them in the control of wingbeat amplitude. Interestingly, DNOVS2 in Drosophila, a physiologically similar neuron to OFS DN214, has been indirectly linked to rapid turning behaviour10. Furthermore, silencing HS and VS cells, the presumed presynaptic LPTCs to these descending neurons, results in reductions in WBA only at higher stimulus speeds44. These findings suggest that HS and VS cells, along with their downstream targets, may be specialized for driving fast optomotor responses under high-speed visual motion (>180°/s), rather than broadly regulating WBA across all velocities, including those examined in this study.
Beyond their potential involvement in wingbeat amplitude modulation, OFS DNs may play a role in coordinating head and body positioning during flight, especially in contexts requiring precise visual alignment and rapid manoeuvring. Indeed, the Drosophila physiological homologs of OFS DN1 and OFS DN214, DNHS1 and DNOVS2, project to the neck motor neuropil9, and have been implicated in controlling head movements, abdominal ruddering, and engagement with the haltere motor system for flight stabilization10. While we did not quantify abdominal or haltere movements, we found that the head turned when viewing sideslip optic flow (Fig. 7e), and that the velocity dependence was similar to neural (Fig. 3e) and WBAD (Fig. 5g) responses. While we did not detect any head movements to roll, lift or thrust, this could be a technical limitation of recording from above (Fig. 5a). Indeed, many of the 29 descending neuron types that project to the wing motor neuropil, also project to the neck motor neuropil9, suggesting that synchronized responses are not unexpected. Neither are the similar responses of the fore- and hind legs surprising (Fig. 7, f and g), considering that in Drosophila many of the ∼30 descending neuron types that project to the forelegs, also project to the mid- and hind legs9.
Our WBA recordings would also be affected by filming from above and thus lacking other nuanced changes in wing angles. Thus, the sexual dimorphism in neural responses (Fig. 3) could reflect an evolutionary tuning of visuomotor pathways in males, optimized for fast, directional adjustments rather than gross changes in WBA in the horizontal plane. For instance, whilst changes in WBAS are similar when generating either lift or thrust (Fig. 5h), body pitch dynamically adjusts their ratio, driving behavioural variation45. Thus, OFS DNs may serve as integral components of a broader flight control architecture, interfacing optic flow detection with dynamic body and head positioning systems to support complex, sex-specific behavioural outcomes, particularly in males engaging in high-speed pursuits.
Indeed, flight speed in insects results from a complex integration of multiple kinematic parameters, not solely from changes in wingbeat amplitude. Many species refine their aerodynamic output by modulating wingbeat frequency, angle of attack, wing tip trajectory, deviations from the mean stroke plane and through precise adjustments to the timing and duration of the up- and downstrokes46. These control strategies support agile manoeuvring, particularly during visually guided behaviours such as the high-speed pursuits undertaken by male hoverflies. Furthermore, the smaller body size of male hoverflies compared to females20,21 may confer biomechanical advantages, including reduced mass, facilitating faster acceleration, heightened responsiveness, and lower metabolic costs for executing flight manoeuvres22,47, which do not appear in a tethered flight set-up. Such enhanced agility is likely crucial for rapid direction changes required during courtship and may enable male hoverflies to outperform female flies without relying on increased wingbeat amplitude.
Taken together, our findings reveal significant differences between sexually dimorphic sensory encoding and conserved motor output in hoverfly flight at cruising speeds. Although OFS DNs and their upstream visual circuits display clear sex-specific tuning, wingbeat amplitude and head angle changes in response to optic flow stimuli remain relatively similar between the sexes, suggesting additional mechanisms downstream of sensory input. This likely reflects a complex interplay of biomechanical properties, multisensory integration and circuit-level modulation, each shaping and refining behavioural outcomes to meet distinct demands, preserving the consistency of low-speed manoeuvres whilst enabling sex-specific tuning during high-speed pursuits.
Methods
Animals
For all experiments, male and female Eristalis tenax were reared and housed as described previously21. Briefly, eggs were collected from females captured under permit in Wittunga Botanic Garden, Adelaide, South Australia. Upon hatching, larvae were reared in a rabbit dung slurry until third instar larvae emerged to pupate. Eclosion occurred 1-2 weeks post-pupation. Adult hoverflies were used for behavioural experiments at 17-87 days post-eclosion, for intracellular electrophysiology and subsequent morphological reconstruction at 38-54 days, and for extracellular electrophysiology at 8-204 days.
Electrophysiology
Before recording the animal was immobilised, mounted dorsal side down (Supplementary Fig. 6a) and secured using a mixture of beeswax and resin. A small region of cuticle was removed at the anterior end of the thorax to expose the cervical connective. If required, any excessive gut or tracheal tissue obstructing the recording site was removed and a small volume of PBS was added to prevent drying within the ventral cavity. A fine wire hook was positioned under the cervical connective for mechanical support, and a silver wire was inserted into the cavity to serve as a reference electrode and grounding wire14.
For extracellular recordings, a sharp tungsten microelectrode (2 MΩ, polyimide-insulated; Microprobes) was inserted into the cervical connective14. Signals were amplified 1000 times and band-pass filtered between 10–3000 Hz using a DAM50 differential amplifier (World Precision Instruments), followed by noise reduction with a HumBug (Quest Scientific). Data were digitized via a PowerLab 4/30 interface (ADInstruments) and acquired at 40 kHz. Spike sorting was performed in LabChart 7 Pro (ADInstruments) based on the amplitude and width of individual action potentials.
For intracellular recordings, aluminosilicate electrodes were pulled using a Sutter P-1000 micropipette puller, achieving a resistance of approximately 40-70 MΟ. Electrode tips were filled with 3% neurobiotin (Vector Laboratories), then backfilled with 1 M KCl using a syringe, leaving a small air bubble between the two solutions. Electrodes were inserted into the cervical connective for recording, and the resulting signal was amplified using an Axoclamp-2B amplifier (Axon Instruments), followed by 50 Hz noise reduction with a HumBug (Quest Scientific). Data acquisition and digitization were performed at 10 kHz using an NI USB-6210 16-bit data acquisition card (National Instruments) and the MATLAB Data Acquisition Toolbox (Mathworks), using in house software (https://github.com/HoverflyLab/SampSamp).
Morphological reconstructions
Following intracellular recordings, neurons were stained iontophoretically with neurobiotin using currents in the 1 nA range for 3–12 minutes. The nervous system was then carefully dissected and fixed in 4% paraformaldehyde overnight. Tissue was incubated with a Cy3-streptavidin conjugate (1:100; Jackson ImmunoResearch) for 2 hours, then dehydrated through an ethanol series (50–100%) for 15-20 minutes per step. After washing in PBT, the tissue was cleared in RapiClear (SUNJIN Lab) and mounted with spacers. Imaging was performed using a Zeiss LSM 880 Fast Airyscan confocal microscope at the institutional microscopy facility. Neuron morphology and cervical connective width were quantified using ImageJ48.
Tethered flight
Prior to flight recordings, hoverflies were tethered at a 32° angle (Supplementary Fig. 6b) using a beeswax–resin mixture to a small pin inserted into a hypodermic needle (BD Microlance, 23G × 1¼"). Flight was initiated by manually providing airflow for 1–10 minutes until consistent flight behaviour was observed. Once positioned facing the centre of the visual monitor (Supplementary Fig. 6b), hoverflies were filmed from above at 100 Hz using a Sony PlayStation 3 Move Eye Camera (SLEH- 00448, Sony) with the IR filter removed, and equipped with an infrared pass filter (R72 INFRARED, 49 mm, HOYA; for details see Ref36). Illumination was provided by infrared LEDs inserted into USB lights (JANSJÖ LED USB lamp, IKEA) and a Musou Black (Shin Kokushoku Musou black, KOYO Orient Japan) surface was placed beneath the hoverfly to enhance contrast and minimize optical interference.
We used DeepLabCut (DLC) version 2.3.335 to train a model to track the thorax, the peak downstroke angle, referred to as the wing beat amplitude (WBA), of the left and right wing (WBAL and WBAR; Fig. 5a, b), as described previously36. In addition, we tracked the dorso-medial head (yellow, green, Fig. 7a, b), the proximal and distal points of the forelegs (blue, Fig. 7a, c), the hind leg knee and the lateral, mid-abdomen (magenta, green, Fig. 7a, d). For this purpose, we first manually labelled the anatomical landmarks (Fig. 5a and Fig. 7a), across 16 extracted video frames per individual from four hoverflies (2 males, 2 females). In addition to examples where the hoverfly was not flying, these frames included responses to yaw rotation and forward translation. The DLC model was trained for 300,000 iterations, yielding train and test errors of 1.2 and 1.16 pixels, respectively.
To identify potential tracking errors from DLC, we smoothed the WBA time series using MATLAB’s smooth function with both loess and rloess methods. Because rloess is more resistant to outliers, we used it to detect abnormal data points. For each wing, if the absolute difference between the loess- and rloess-smoothed signals exceeded 5% for more than 1 s, the data were excluded due to suspected tracking artifacts. The smoothing was used only for error detection; all subsequent analyses were performed on the unsmoothed data. In addition, we excluded data if the WBA of either wing dropped below 40° for at least 0.5 s, as this indicated a cessation of flight. Finally, entire trials were excluded if the hoverfly was not flying for more than 50% of the trial duration. Head and leg kinematic data were excluded whenever the corresponding WBA data were excluded, ensuring consistent trial inclusion across behavioural metrics.
Visual stimuli
Visual stimuli were generated using custom software (https://github.com/HoverflyLab/FlyFly/releases/tag/v4.2.3) written in MATLAB, incorporating the Psychophysics Toolbox49,50. All screens had a refresh rate of 165 Hz and a linearized contrast with a mean illuminance of 200 Lux. For intracellular recordings, the hoverfly was placed 13 cm away from a ViewSonic screen with a resolution of 2560 × 1440 pixels, corresponding to 143° × 107° of the visual field. For extracellular recordings, the hoverfly was placed 6.5 cm away from a 2560 × 1440 pixel Asus screen, yielding a projected visual field of 155° × 138° (Supplementary Fig. 6a). For behavioural recordings, the hoverfly was placed 10 cm from a vertically orientated Asus screen (1440 × 2560 pixel, Supplementary Fig. 6b) producing a projected size of 118° × 142°. To evaluate the impact of different screen orientations in electrophysiology and behaviour, visual stimuli were presented either full-screen or using the central 1440 × 1440 pixel square (Supplementary Fig. 6c, d).
Receptive field mapping
To map each neuron’s receptive field, we presented local sinusoidal gratings (average 38 × 38°) drifting in 8 directions for 0.36 s each, across 48 overlapping locations, as described in detail previously14. Stimuli were full contrast, with an average spatial frequency of 0.14 cycles/° and a temporal frequency of 5 Hz. At each location, we calculated the local maximum spike frequency (red, inset, Fig. 1b, e). After subtracting the spontaneous rate, calculated for 0.8 s preceding stimulus onset (dotted line, inset, Fig. 1b, e), we interpolated the resulting local maximum responses to a ten-fold higher spatial resolution (colour coding, Fig. 1a, d). We then quantified the 50% response maximum using Matlab’s contour function (black, Fig. 1b, e). We created a polygon-shape of this 50% contour line using Matlab’s polyshape function to calculate the receptive field size, defined as its width and height (Supplementary Fig. 2f), and used the centroid function to identify the centre of this polyshape (red circle, Fig. 1b, e). As recordings were performed with the animal ventral side up (Supplementary Fig. 3a, 6a), receptive fields were rotated to display them with the dorsal visual field up.
Next, at each location, we fit a cosine function to the responses to the different directions of motion, to extract the local preferred direction (LPD) and local motion sensitivity (LMS; inset, Fig. 1c, f). These were visualized as vectors where angle indicates LPD and length indicates LMS (arrows, Fig. 1a, d). We defined the receptive field preferred direction as the median of LPDs at locations where LMS exceeded 50% of the maximum (black and red arrows; Fig. 1c, f), using circ_median from the CircStat toolbox for MATLAB51. We calculated the LPD variance using the circ_var functions from CircStat toolbox for MATLAB51, of LPDs at locations where LMS exceeded 50% of the maximum (black and red arrows; Fig. 1c, f).
We extracted unpublished receptive field data from 100 reference neurons (other data from five of these optic flow sensitive descending neurons has been published previously28) to set exclusion criteria (red shading, Supplementary Fig. 2a, b and c) and to classify the OFS DNs used in the rest of this study. OFS DN1 LHS neurons were defined by receptive field preferred directions between 120° and 200° (light green, Fig. 1g, i). OFS DN1 RHS neurons were defined by receptive field preferred directions between 340° and 60° (dark green, Fig. 1g, i). OFS DN2 neurons were classified by receptive field preferred directions between 220° and 320° (yellow and orange, Fig. 1g, i), with the azimuthal location of the receptive field centre determining whether they were LHS or RHS (yellow and orange, Fig. 1h).
A polar plot where the distance from origo indicates azimuthal position, and the location along the radius the preferred direction, confirms that the LHS and RHS of OFS1 and OFS2 cluster distinctly (Supplementary Fig. 1a). To test whether incorporating additional receptive field parameters would reveal further neuronal subtypes, we performed k-means clustering in Matlab using z-score normalised data. The additional parameters included receptive field centre elevation, receptive field height and width (see Supplementary Fig. 2f), maximum LMS (see Supplementary Fig. 2a), the number of positions with LMS values exceeding 50% of the maximum (see Supplementary Fig. 2b), and LPD variance (see Supplementary Fig. 2c). However, the Callinski-Harabasz52 values indicate that adding additional receptive field parameters actually reduced clustering performance (Supplementary Fig. 1b). In contrast, clustering based solely on preferred direction and azimuthal location yielded four well-defined groups (Supplementary Fig. 1c), and produced the highest Callinski-Harabasz value (Supplementary Fig. 1b).
Directional sensitivity
Full-screen sinusoidal gratings were presented at full contrast, using the same spatial (0.14 cycles/°) and temporal (5 Hz) frequencies as in receptive field mapping. For each stimulus direction, mean spike frequency was calculated over the 1 s stimulus duration, excluding the first 100 ms to avoid onset transients53.We fit a cosine function to the responses to the eight different directions of motion, to extract the preferred direction and response amplitude (Supplementary Fig. 3b), and then plotted these values for OFS DN1 (Supplementary Fig. 3c) and DN2 neurons (Supplementary Fig. 3d). To account for the ventral-side-up recording position (Supplementary Fig. 3a) directional responses were rotated 180° (Supplementary Fig. 3f, g and h). In addition, to display all neurons as RHS, and assuming mirror-symmetry, we flipped LHS neurons across the midline (Supplementary Fig 2i, j, k and l).
Responses to optic flow
We used a starfield stimulus to generate the type of perspective-corrected optic flow that would have been seen by the hoverfly if it was moving through a space of 2 cm diameter spheres (for details, see Ref14,33). These simulated translations at 0.5 m/s (sideslip, lift, and thrust) or rotations (pitch, yaw, and roll), at 50°/s. To quantify neural responses, the mean spike frequency was calculated over the 0.97 s stimulus duration, excluding the first 0.1 s to avoid onset-related transients53. The spontaneous firing rate, averaged across 0.48 s immediately preceding stimulus onset (open circles, Supplementary Fig 4a, b), was subtracted from the response.
Velocity response functions
We used four types of optic flow: three translations (sideslip, lift and thrust, Supplementary movie 2-7) and one rotation (roll, Supplementary movie 1, 8, 9). Translations were presented at velocities of −2, −1.5, −1, −0.4, −0.2, −0.1, 0, 0.1, 0.2, 0.4, 1, 1.5, and 2 m/s, while rotations were presented at 200, −150, −100, −40, −20, −10, 0, 10, 20, 40, 100, 150, and 200°/s. The sign of the velocity indicates the direction of motion as seen by the fly when corrected for its position, with positive values corresponding to counterclockwise roll, leftward sideslip, downward lift, and thrust moving away. Conversely, negative values indicate clockwise roll, rightward sideslip, upward lift, and thrust moving toward the hoverfly. The upper limit was defined by the movement of the individual dots within the starfield stimulus between frames, i.e. was limited by the refresh rate of the screen.
Each trial consisted of 39 stimuli (13 unique velocities × 3 repetitions), presented in a random order, with each stimulus lasting 2 s, immediately followed by the next velocity. Trials began with a 1 s blank screen, which served as the pre-stimulation baseline (Fig. 3a and Fig. 5c).
Each optic flow condition was repeated multiple times, resulting in at least nine repetitions for each velocity and neuron, and five repetitions for each velocity and animal in behaviour.
For neuronal recordings, velocity response function trials were interleaved with the optic flow stimuli described above. In behavioural experiments, a flight refresher sequence interspersed each velocity tuning trial. This consisted of sinusoidal gratings (200° wavelength, 5 Hz) drifting rightward, leftward, and rightward again for 4 s each.
Neural responses were quantified as the mean spike frequency during the final second of stimulation (grey shaded areas, Fig. 3a–c). We then calculated the median across trials for each velocity (Fig. 3d). Pre-stimulation activity (spontaneous rate) was measured over a 2 s window immediately preceding stimulus onset. Neural responses are displayed after subtracting the response when viewing a stationary stimulus (filled symbols, Supplementary Fig. 4a, b).
In behavioural experiments, we extracted the mean wing beat amplitude of the left and right wings (


WBA responses are displayed after subtracting the response when viewing a stationary stimulus (filled symbols, Supplementary Fig. 4c).
We defined the head angle as the angle between a straight line joining the 2 tracked points on the head (using polyfit in matlab, Fig. 7a, b) and the longitudinal axis of the thorax (Fig. 7a, b). As we filmed in one plane only, this measurement can be caused by a combination of head rotations, but seem to be dominated by roll rotations (Supplementary movie 2-9). We measured the distance between the proximal and distal points of the forelegs (Fig. 7a, c).
Note that the forelegs were mostly hidden under the animal from our dorsal view, and could only be seen when extended anteriorly (e.g. Fig. 5a, see also Supplementary movie 2-9). Data are displayed as the mean extension of the left and right foreleg. We measured the distance between the hind leg knee and a lateral point on the mid-abdomen (Fig. 7a, d). Hind leg data are displayed as the mean or the difference of the left and right hind leg. All body parts data are displayed after subtracting the response when viewing a stationary stimulus (filled symbols show hindleg data, Supplementary Fig. 4d).
Response onset
For neuronal recordings, we compared onset times for clockwise roll (+50°/s) and either upwards lift (+0.5 m/s) for OFS DN 1 or downwards lift (-0.5 m/s) for OFS DN2, stimuli which generated strong responses in these neurons (Fig. 3 e, f). Mean spike frequency was calculated over the 0.97 s stimulus duration, excluding the first 0.1 s to avoid onset transients53. Onset was defined as the first time point after the first 0.1 s, where spike rate exceeded 80% of the mean.
For behaviour, we used WBA responses to roll (-200°/s) and lift (+2 m/s). Mean WBAS was defined as the average response during the final second of stimulation, and onset was defined as the first time point where WBAS exceeded 80% of this mean. We also quantified WBAS, head, fore-and hind leg onsets to sideslip (+2 m/s). For each body part, we quantified the mean response during the final second of stimulation, and onset was defined as the first time point where the response exceeded 80% of this mean.
Statistics
Throughout the text n refers to individual repetitions, whereas N refers to individual neurons (electrophysiology) or animals (behaviour). All data are presented as median and interquartile range, unless otherwise indicated.
Statistical analyses were performed in Prism 10.4.0 (GraphPad Software), except for circular statistics, which were conducted using the CircStat toolbox for MATLAB51. The results of the statistical tests are given in the text, figure legends and in Table 1 and Table 2. For behavioural data the p-values were Bonferroni adjusted54 for multiple comparisons (Table 2).
Supplementary figures

a The four clusters as identified by us (see Fig. 1g, h and i) displayed on a polar plot where the distance from origo illustrates the azimuthal position and the position along the circumference the preferred direction, colour coded as in the main paper (pale green: OFS DN1 LHS; dark green: OFS DN1 RHS; yellow: OFS DN2 LHS; orange: OFS DN2 RHS). b The Calinski-Harabasz value52 as a function of cluster number when using only the azimuthal location of the receptive field centre and the preferred direction (red), or when adding one other receptive field criterion (grey, receptive field centre elevation, receptive field height or width, maximum LMS, the number of positions with LMS values exceeding 50% of the maximum, or LPD variance, see Methods), or all receptive field criteria (blue). c The resulting z-score for azimuthal location and preferred direction, and the four clusters using k-means clustering in Matlab.

Exclusion criteria and receptive field comparisons in male and female OFS DNs.
a Distribution of maximum local motion sensitivity (LMS) in 100 male reference neurons (grey histogram, N = 100) compared to the neurons used for quantification in the rest of the paper (N = 35 males, 36 females). Six neurons with a maximum LMS below 20 spikes/s (red cross-hatched region or dashed line) were excluded from further analysis. b Number of stimulus positions with LMS greater than 50% of the neuron’s maximum LMS (black and red arrows in Fig. 1c and f). Neurons with fewer than 4 positions were excluded. c Distribution of LPD variance. Neurons with directional variance exceeding 30° were excluded. d Classification of male neurons based on receptive field centre and preferred direction. The top panel shows the preferred directions across neurons, with dashed lines indicating the directional thresholds used for neuron type classification. The middle panel shows receptive field centre locations, and the bottom panel illustrates the relationship between receptive field centre and the receptive field preferred direction for all 35 male neurons, with 2 neurons excluded from further analysis (grey). Note that the scale is the same for the azimuth and elevation, and the scale bar corresponds to both the x- and y-axis. e Same classification criteria applied to 36 female neurons, with 7 neurons excluded (grey). f The receptive field width and height at the 50% contour line for the remaining OFS DN 1 (N = 10 males, 12 females) and OFS DN2 (N = 23 males, 17 females). Individual data points from independent neurons, with black lines representing the median.

Schematic illustration showing the steps used to standardize data across recordings.
a. Top panel, ventral-side-up position of hoverfly during electrophysiology recordings. b Response of an example OFS DN2 neuron to a full-screen, full-contrast sinusoidal grating (spatial wavelength 7°; temporal frequency 5 Hz) moving in eight different directions. The red arrowhead shows the neuron’s preferred direction, and the red line indicates response amplitude. c Preferred direction of male hoverfly OFS DNs (N = 29). Neurons are colour coded by classification. d Preferred direction of female hoverfly OFS DNs (N = 26). Neurons are colour coded by classification. e We rotated the data 180° to display the dorsal visual field up. f Direction sensitivity of the same neuron as in panel b after rotating the data 180°. g Preferred direction of male hoverfly OFS DNs after rotating the data 180°. Neurons are colour coded by classification, with dashed lines indicating the receptive field thresholds. h Preferred direction of female hoverfly OFS DNs after rotating the data 180°. i To display all neural data as RHS neurons, we flipped LHS neurons along the midline (yellow to black). i Resulting direction sensitivity after flipping along the midline of the same neuron as in panels b and f. k Preferred direction of male hoverfly OFS DNs when displayed as RHS only. l Preferred direction of female hoverfly OFS DNs when displayed as RHS only.

Comparison of spontaneous activity and responses to stationary stimuli.
a Spontaneous activity (open shapes) and responses of a male OFS DN1 to the stationary starfield (filled shapes), from data extracting directional sensitivity (as in Fig. 2; circles) or velocity response functions (as in Fig. 3; triangles). b Spontaneous activity and responses of OFS DN2, displayed as in panel a. c WBAS before stimulus presentation (open squares) or when viewing the stationary starfield (filled squares), quantified during velocity response function experiments (as in Fig. 5). d Hind leg extension before stimulus presentation (open diamonds) or when viewing the stationary starfield (filled diamonds), quantified during velocity response function experiments (shown in Fig. 7). The data points show data from individual neurons (a and b) or animals (c and d), with lines representing the median. Asterisks denote statistical significance, two-way ANOVA with uncorrected Fisher’s LSD test: * p < 0.05, ** p < 0.01 and *** p < 0.001.

Morphological quantification of OFS DN2.
a Schematic diagram of the hoverfly central brain and thoracic ganglia showing locations where the cervical connective (CC) and the OFS DN2 (orange) widths were measured. b Width measurements of OFS DN2 axons along the cervical connective at four anatomical landmarks: (1) immediately posterior to the central brain, (2) upper third of the CC, (3) lower third of the CC, and (4) immediately anterior to the thoracic ganglion. Data are shown for 3 male (blue) and 3 female (red) hoverflies. c Width of the anterior end of the cervical connective in the same individuals. All data are presented as individual animals with the horizontal lines indicating median.

Impact of stimulus size on neural and behavioural velocity response functions.
a Electrophysiological recordings were performed with the hoverfly orientated ventral side up, facing the centre of a horizontally oriented visual display. b In behavioural experiments, the hoverfly was tethered at 32° angle, parallel to the ground, facing the centre of a vertically aligned visual display. c Velocity response functions of male OFS DN2 neurons when the stimulus covered either the full screen (blue) or the central square (black, N = 7). d Velocity response functions of WBAS in male hoverflies when the stimulus covered either the full screen (blue) or the central square (black, N = 5). All data are presented as median and interquartile range.

Response onset to sideslip.
Onset of head angle, WBAS, fore- and hind legs to sideslip (+2 m/s) in males (N = 6) and females (N = 6). There was no significant difference between body parts, nor males and females (two-way ANOVA, p = 0.08, p = 0.67 and p = 0.84, for body parts, sex and interaction respectively). All data are presented as individual animals with the horizontal lines indicating median.
Data availability
All data and analysis scripts have been submitted to DataDryad (10.5061/dryad.tb2rbp0fd).
Acknowledgements
We thank Biomedical Engineering at SAHLN and the Botanic Gardens of Adelaide for their ongoing support. We thank the editor and the two Reviewers for their feedback which greatly improved our paper. This research was funded by the US Air Force Office of Scientific Research (AFOSR, FA9550-19-1-0294 and FA9550-23-1-0473) and the Australian Research Council (ARC, DP210100740, DP230100006 and DP250104770).
Additional information
CRediT author statement
Sarah Nicholas: conceptualization, methodology, validation, formal analysis, investigation, data curation, writing – original draft, visualization, project administration; Katja Sporar Klinge: methodology, validation, formal analysis, investigation, data curation, writing – review and editing, visualization; Luke Turnbull: methodology, validation, investigation, writing – review and editing; Annabel Moran: investigation, writing – review and editing; Aika Young: investigation, writing – review and editing; Yuri Ogawa: methodology, validation, formal analysis, investigation, data curation, writing – original draft, visualization, supervision, project administration; Karin Nordström: conceptualization, validation, formal analysis, resources, writing – original draft, visualization, supervision, project administration, funding acquisition.
Funding
US Air Force of Scientific Research (FA9550-19-1-0294)
Karin Nordström
US Air Force of Scientific Research (FA9550-23-1-0473)
Karin Nordström
Yuri Ogawa
Department of Education and Training | Australian Research Council (ARC) (DP210100740)
Karin Nordström
Department of Education and Training | Australian Research Council (ARC) (DP230100006)
Karin Nordström
Department of Education and Training | Australian Research Council (ARC) (DP250104770)
Yuri Ogawa
Additional files
References
- 1Optic flow-based course control in insectsCurr Opin Neurobiol 60:21–27https://doi.org/10.1016/j.conb.2019.10.007PubMedGoogle Scholar
- 2A look into the cock-pit of the fly. The architecture of the lobular plateCell Tissue Res 171:101–122https://doi.org/10.1007/bf00219703PubMedGoogle Scholar
- 3A comprehensive neuroanatomical survey of the Drosophila Lobula Plate Tangential Neurons with predictions for their optic flow sensitivity.bioRxiv https://doi.org/10.1101/2023.10.16.562634PubMedGoogle Scholar
- 4Wide-field, motion-sensitive neurons and matched filters for optic flow fieldsBiol Cybern 83:185–197https://doi.org/10.1007/s004220000163PubMedGoogle Scholar
- 5Dendritic structure and receptive-field organization of optic flow processing interneurons in the flyJ Neurophysiol 79:1902–1917https://doi.org/10.1152/jn.1998.79.4.1902PubMedGoogle Scholar
- 6The diversity of lobula plate tangential cells (LPTCs) in the Drosophila motion vision systemJournal of Comparative Physiology A 206:139–148https://doi.org/10.1007/s00359-019-01380-yPubMedGoogle Scholar
- 7Lobula plate and ocellar interneurons converge onto a cluster of descending neurons leading to neck and leg neuropil in Calliphora erythrocephalaCell Tissue Res 240:617–640https://doi.org/10.1007/bf00216351Google Scholar
- 8Convergence of visual, haltere, and prosternai inputs at neck motor neurons of Calliphora erythrocephalaCell and Tissue Research 240:601–615https://doi.org/10.1007/bf00216350Google Scholar
- 9The functional organization of descending sensory-motor pathways in DrosophilaeLife 7:e34272https://doi.org/10.7554/eLife.34272PubMedGoogle Scholar
- 10An Array of Descending Visual Interneurons Encoding Self-Motion in DrosophilaJ Neurosci 36:11768–11780https://doi.org/10.1523/JNEUROSCI.2277-16.2016PubMedGoogle Scholar
- 11A competitive disinhibitory network for robust optic flow processing in Drosophila.bioRxiv https://doi.org/10.1101/2023.08.06.552150Google Scholar
- 12Optogenetic control of fly optomotor responsesJ Neurosci 33:13927–13934https://doi.org/10.1523/jneurosci.0340-13.2013PubMedGoogle Scholar
- 13Bilateral interactions of optic-flow sensitive neurons coordinate course control in fliesNat Commun 15https://doi.org/10.1038/s41467-024-53173-wPubMedGoogle Scholar
- 14Visual motion sensitivity in descending neurons in the hoverflyJ Comp Physiol A 206:149–163https://doi.org/10.1007/s00359-020-01402-0PubMedGoogle Scholar
- 15Integration of lobula plate output signals by DNOVS1, an identified premotor descending neuronJ Neurosci 27:1992–2000https://doi.org/10.1523/jneurosci.4393-06.2007PubMedGoogle Scholar
- 16Nonlinear integration of binocular optic flow by DNOVS2, a descending neuron of the flyJ Neurosci 28:3131–3140https://doi.org/10.1523/jneurosci.5460-07.2008PubMedGoogle Scholar
- 17Visual control of flight behaviour in the hoverfly, Syritta pipiens LJ Comp Physiol A 99:1–66https://doi.org/10.1007/bf01464710Google Scholar
- 18Territoriality in the drone fly, Eristalis tenax (Diptera, Syrphidae)Can Entomol 113:695–704https://doi.org/10.4039/Ent113695-8Google Scholar
- 19How hoverflies compute interception coursesJournal of comparative physiology 125:191–204https://doi.org/10.1007/BF00656597Google Scholar
- 20Temperature during pupal development affects hoverfly developmental time, adult life span, and wing lengthEcol Evol 13:e10516https://doi.org/10.1002/ece3.10516PubMedGoogle Scholar
- 21Rearing and long-term maintenance of Eristalis tenax hoverflies for research studiesJoVE :e57711https://doi.org/10.3791/57711PubMedGoogle Scholar
- 22Mechanisms and implications of animal flight maneuverabilityIntegr Comp Biol 42:135–140https://doi.org/10.1093/icb/42.1.135PubMedGoogle Scholar
- 23A ’bright zone’ in male hoverfly (Eristalis tenax) eyes and associated faster motion detection and increased contrast sensitivityJ Exp Biol 209:4339–4354https://doi.org/10.1242/jeb.02517PubMedGoogle Scholar
- 24The bright zone, a specialized dorsal eye region in the male blowfly Chrysomyia megacephalaJ Comp Physiol A 164:297–308https://doi.org/10.1007/bf00612990PubMedGoogle Scholar
- 25Sexual dimorphism matches photoreceptor performance to behavioural requirementsProc R Soc Lond B Biol Sci 267:2111–2117https://doi.org/10.1098/rspb.2000.1257Google Scholar
- 26Sexual dimorphism in the hoverfly motion vision pathwayCurr Biol 18:661–667https://doi.org/10.1016/j.cub.2008.03.061PubMedGoogle Scholar
- 27Motion adaptation and the velocity coding of natural scenesCurr Biol 20:994–999https://doi.org/10.1016/j.cub.2010.03.072PubMedGoogle Scholar
- 28Facilitation of neural responses to targets moving against optic flowProc Natl Acad Sci U S A 118https://doi.org/10.1073/pnas.2024966118PubMedGoogle Scholar
- 29Understanding the mechanism of facilitation in hoverfly TSDNsPLOS Computational Biology 21:e1012986https://doi.org/10.1371/journal.pcbi.1012986PubMedGoogle Scholar
- 30Integration of small- and wide-field visual features in Target-Selective Descending Neurons of both predatory and non-predatory dipteransJ Neurosci 38:10725–10733https://doi.org/10.1523/jneurosci.1695-18.2018PubMedGoogle Scholar
- 31Visual approach computation in feeding hoverfliesJ Exp Biol 221https://doi.org/10.1242/jeb.177162PubMedGoogle Scholar
- 32Hoverfly (Eristalis tenax) pursuit of artificial targetsJ Exp Biol 226https://doi.org/10.1242/jeb.244895PubMedGoogle Scholar
- 33The impulse response of optic flow-sensitive descending neurons to roll m-sequencesJ Exp Biol 224https://doi.org/10.1242/jeb.242833PubMedGoogle Scholar
- 34An array of descending visual interneurons encoding self-motion in DrosophilaJ Neurosci 36https://doi.org/10.1523/jneurosci.2277-16.2016PubMedGoogle Scholar
- 35DeepLabCut: markerless pose estimation of user-defined body parts with deep learningNat Neurosci 21:1281–1289https://doi.org/10.1038/s41593-018-0209-yPubMedGoogle Scholar
- 36Combining Unity with machine vision to create low latency, flexible and simple virtual realitiesMethods in Ecology and Evolution 16:126–144https://doi.org/10.1111/2041-210X.14449Google Scholar
- 37Flight control in Drosophila by visual perception of motionKybernetik 4:199–208https://doi.org/10.1007/bf00272517PubMedGoogle Scholar
- 38Active flight increases the gain of visual motion processing in DrosophilaNat Neurosci 13:393–399https://doi.org/10.1038/nn.2492PubMedGoogle Scholar
- 39Spatial organization of visuomotor reflexes in DrosophilaJ Exp Biol 207:113–122https://doi.org/10.1242/jeb.00724PubMedGoogle Scholar
- 40Discovering the flight autostabilizer of fruit flies by inducing aerial stumblesProc Natl Acad Sci U S A 107:4820–4824https://doi.org/10.1073/pnas.1000615107PubMedGoogle Scholar
- 41Cellular mechanisms for integral feedback in visually guided behaviorProc Natl Acad Sci U S A 111:5700–5705https://doi.org/10.1073/pnas.1400698111PubMedGoogle Scholar
- 42Dynamics of optomotor responses in Drosophila to perturbations in optic flowJ Exp Biol 213:1366–1375https://doi.org/10.1242/jeb.037945PubMedGoogle Scholar
- 43Dual receptive fields underlying target and wide-field motion sensitivity in looming-sensitive descending neuronseNeuro 10:ENEURO.0188-0123.2023https://doi.org/10.1523/eneuro.0188-23.2023PubMedGoogle Scholar
- 44Quantitative Predictions Orchestrate Visual Signaling in DrosophilaCell 168:280–294https://doi.org/10.1016/j.cell.2016.12.005PubMedGoogle Scholar
- 45The Wing Beat of Drosophila-Melanogaster .3. Control.Philos T R Soc B 327:45–64https://doi.org/10.1098/rstb.1990.0042Google Scholar
- 46The aerodynamics of insect flightJournal of Experimental Biology 206:4191–4208https://doi.org/10.1242/jeb.00663PubMedGoogle Scholar
- 47Do insect metabolic rates at rest and during flight scale with body mass?Biol Letters 1:346–349https://doi.org/10.1098/rsbl.2005.0311PubMedGoogle Scholar
- 48NIH Image to ImageJ: 25 years of image analysisNat Methods 9:671–675https://doi.org/10.1038/nmeth.2089PubMedGoogle Scholar
- 49The Psychophysics ToolboxSpat Vis 10:433–436https://doi.org/10.1163/156856897x00357PubMedGoogle Scholar
- 50The VideoToolbox software for visual psychophysics: transforming numbers into moviesSpat Vis 10:437–442https://doi.org/10.1163/156856897x00366PubMedGoogle Scholar
- 51CircStat: A MATLAB toolbox for circular statisticsJournal of Statistical Software 31:1–21https://doi.org/10.18637/jss.v031.i10Google Scholar
- 52A dendrite method for cluster analysisCommunications in Statistics 3:1–27https://doi.org/10.1080/03610927408827101Google Scholar
- 53Persistent Firing and Adaptation in Optic-Flow-Sensitive Descending NeuronsCurr Biol 30:2739–2748https://doi.org/10.1016/j.cub.2020.05.019PubMedGoogle Scholar
- 54Encyclopedia of measurement and statisticsSage Google Scholar
- 55Real-time, low-latency closed-loop feedback using markerless posture trackingeLife 9https://doi.org/10.7554/eLife.61909PubMedGoogle Scholar
Article and author information
Author information
Version history
- Preprint posted:
- Sent for peer review:
- Reviewed Preprint version 1:
- Reviewed Preprint version 2:
Cite all versions
You can cite all versions using the DOI https://doi.org/10.7554/eLife.109795. This DOI represents all versions, and will always resolve to the latest one.
Copyright
© 2026, Nicholas et al.
This article is distributed under the terms of the Creative Commons Attribution License, which permits unrestricted use and redistribution provided that the original author and source are credited.
Metrics
- views
- 362
- downloads
- 7
- citations
- 0
Views, downloads and citations are aggregated across all versions of this paper published by eLife.