Abstract
Innate behaviors are frequently comprised of ordered sequences of component actions that progress to satisfy essential drives. Progression is governed by specialized sensory cues that induce transitions between components within the appropriate context. Here we have characterized the structure of the egg-laying behavioral sequence in Drosophila and found significant variability in the transitions between component actions that affords the organism an adaptive flexibility. We identified distinct classes of interoceptive and exteroceptive sensory neurons that control the timing and direction of transitions between the terminal components of the sequence. We also identified a pair of motor neurons that enact the final transition to egg expulsion. These results provide a logic for the organization of innate behavior in which sensory information processed at critical junctures allows for flexible adjustments in component actions to satisfy drives across varied internal and external environments.
Subject terms: Decision, Motor control, Sensory processing, Sexual behaviour
Behaviors often consist of sequences of component actions. Cury and Axel identify distinct classes of sensory neurons that control the transitions between the components of egg laying in the fly that afford this behavior an adaptive flexibility.
Main
Organisms have evolved a repertoire of innate behaviors, comprised of sequences of component actions, to satisfy essential drives1–3. Progression along an innate behavioral sequence is regulated by distinct stimuli, or ‘releasers’, to ensure that transitions between component actions occur in a suitable context at the appropriate time3. This mechanism imparts behavioral flexibility by introducing decision points that allow innate behaviors to adapt to variation in the organism’s internal and external environment. Control at the junctures of component actions is a fundamental property of many instinctive behaviors.
The drive to reproduce is a dominant motivator of behavior in all species. Diverse behavioral programs dedicated to courtship, copulation and the production and care of offspring have evolved to optimize reproductive success. For oviparous animals that do not brood, such as the fruit fly Drosophila melanogaster, egg deposition represents the culmination of this array of reproductive behaviors. Considerable pressure is imposed on the selection of the appropriate time and place to deposit eggs. Fruit flies express strong, species-specific preferences for the site of egg deposition based, in part, on odor, taste, texture and the spatial dimension of the environment4–12. During egg laying, females evaluate the local environment before expressing an ordered motor sequence (abdominal bending, ovipositor (hypogynium) burrowing and egg expulsion) that culminates in egg deposition subterraneously within a nutritive substrate10,13–18. After egg expulsion, the female comes to rest, this final phase of the behavioral sequence is coupled to ovulation and fertilization, and the cycle repeats.
Egg laying in the fly is initiated by a seminal fluid peptide, sex peptide, introduced into the uterus (genital chamber) during mating19. Sensory information from neurons responsive to sex peptide is relayed to the brain, inhibiting a subset of the pC1 cluster of neurons15,20–23. This disinhibits the oviposition descending neurons (oviDNs), a collection of descending interneurons that project to the ventral nerve cord and are necessary and causal for the expression of the ordered egg deposition motor sequence15. One model posits that ramping activity in these descending neurons determines the progression of this terminal motor sequence15,24. Progression along the sequence, however, is likely to be dictated by the ongoing acquisition of sensory information, allowing the motor pattern to adapt to variability in the internal and external environment.
In this study, we have characterized the detailed structure of egg-laying behavior and identify that the transitions between component actions are variable and can be flexibly adjusted to accommodate diverse environmental conditions. Moreover, we have identified three classes of neurons that control the timing and direction of specific transitions within the terminal egg deposition motor sequence. These results provide both a behavioral logic and a neural basis for the imposition of adaptive flexibility on an innate and stereotyped sequence of motor actions.
Results
Variable transitions in the egg-laying behavioral sequence
Females lay eggs one at a time in a repeating cycle, continually transitioning between three distinct phases of a behavioral sequence. Each egg-laying cycle is comprised of an active exploratory phase, deposition and a more stationary phase (‘reset’) that includes ovulation, after which the cycle repeats (Supplementary Fig. 1)10,13,14,17,18. We have studied the composition of this sequence in detail by filming individual gravid females at high resolution in small egg-laying chambers on a 1% agarose substrate and manually scoring the component behaviors (Supplementary Fig. 2, Supplementary Video 1 and Supplementary Table 1). Before deposition, flies explored the substrate with their proboscis and legs. During this phase, flies extended their proboscis to make brief contact with the substrate and walked to a new location (Fig. 1a). They then transitioned to deposition and bent their abdomen to bring the ovipositor in contact with the surface, initiated substrate burrowing (a rhythmic behavior in which the ovipositor digs into the substrate and expels the egg) and ultimately deposited the egg subterraneously. After egg expulsion, the flies abruptly stopped burrowing, detached from the egg and then lifted and groomed their ovipositor (Fig. 1a). The females then remained stationary for an extended period of time, intermittently grooming and exhibiting abdominal contortions likely to result from ovulation (the reset phase)17. The behavioral sequence then repeated. This ordering of component actions was highly conserved across repeated egg-laying events (Fig. 1b). We independently rescored a subset of data using a second human annotator to demonstrate the consistency and reproducibility of our manual labels. Human–human labeling agreement, as determined using the F1 scoring metric25,26, was above 90% for most behaviors and above 95% for all behaviors combined (Extended Data Fig. 1). We further validated these behavioral observations by implementing an unsupervised behavioral classification analysis based on a pose estimation model to automatically identify stereotyped, recurring behavioral actions27,28. There was high correspondence between the unsupervised classifier and our manually defined behavioral categories and labels (Supplementary Fig. 3, Extended Data Fig. 2, Supplementary Videos 2 and 3 and Methods). Thus, egg-laying behavior appears to be organized as an ordered sequence of behavioral components.
Although the sequential organization of these behaviors is conserved, the timing, frequency and duration of the individual components within this behavioral sequence exhibit considerable variability (Fig. 1c,d). Moreover, the behavioral sequence was conserved, but transitions could occur in both directions (Fig. 1e and Supplementary Table 2). This variability in transitions was not only apparent for exploration but also observed for deposition behaviors. Although burrowing was always preceded by abdominal bending, bending was not always followed by burrowing. Instead, walking or proboscis contact were observed. Likewise, 35% of burrowing episodes did not persist to egg expulsion but were aborted in favor of additional bouts of burrowing or further exploration. Persistent burrowing invariably preceded egg expulsion, and behavioral transitions following expulsion exhibited little variability and proceeded along the ordered sequence to the reset phase. Thus, during both exploration and deposition, the egg-laying sequence is comprised of multiple junctures between component actions that may serve as decision points. These junctures may allow the fly to advance or reinitiate the sequence contingent on sensory information obtained during a component action.
Egg deposition sequence adjusts to changes in substrate firmness
We therefore asked whether abdominal bending and ovipositor burrowing, component actions obligatory for the subterraneous deposition of the egg, adapt to changes in the properties of the substrate. We initially scored both the count and the depth of penetration of eggs laid on agarose substrates of increasing firmness (agarose concentrations from 0.75% to 2.5%; Fig. 2a,b)7,11,16. As substrate firmness was increased, flies were less successful at achieving subterraneous egg deposition (Fig. 2a). Above 1.75% agarose, total egg output dropped significantly, with a mean of 11 eggs laid in 4 h on 2.0% agarose compared to 18–21 eggs on 0.75% to 1.75% agarose (Fig. 2b), and flies deposited a significantly larger fraction of eggs on the substrate surface (Fig. 2a). These data suggest that the ability to achieve subterraneous egg placement is sensitive to substrate firmness and may positively gate egg output.
We filmed egg-laying behavior on different substrates and observed that progression along the deposition sequence was dramatically reduced as the firmness of the agarose substrate was increased (Fig. 2c). The probability of transitioning from bending to burrowing was highest on 1% agarose and was reduced by 29% on 1.75% agarose (Fig. 2d). Moreover, burrowing-to-expulsion transitions reduced by 65% as the agarose concentration increased from 0.75% to 1.75% (Fig. 2e). These data suggest that abdominal bending is not simply a means of initiating burrowing. Rather, bending may allow substrate sampling by sensory organs on the abdominal terminalia that permits the recognition of tactile cues that regulate the transition to burrowing. Burrowing is also likely to be gated by tactile feedback as the fly makes contact with and engages the substrate in an effort to achieve subterraneous egg deposition. Burrowing may be unsuccessful on firmer substrates and can be aborted in search of a more favorable location. The variability in the sequence of these behaviors is likely to reflect the search for an optimal location to deposit eggs subterraneously.
Terminalia sensory bristles regulate sequence progression
Peripheral touch sensation in Drosophila is mediated by tactile hairs, or bristles, that cover the surface of the fly29. The bristles of the ovipositor valves and adjacent segments of the abdominal terminalia make contact with the substrate during egg deposition in Drosophila (Fig. 3a)30–32. In flies that express pan-neuronal green fluorescent protein (GFP), we observed that the vast majority of terminalia bristles are innervated by a single bipolar neuron, a canonical feature of purely mechanosensory bristles (elav-GAL4>mCD8–GFP; Extended Data Fig. 3a)29,31. Moreover, the base of all terminalia bristles stains with an antibody directed to NOMPC, a force-sensitive ion channel present in mechanosensory neurons (Extended Data Fig. 3b,c)33–35. These observations suggest that the terminalia bristles harbor mechanosensory neurons that play a role in tactile sensing during the egg deposition sequence.
We searched literature and image databases and used the split-GAL4 intersectional strategy to generate two restrictive driver lines (ATB-1 and ATB-2) that target the sensory neurons that innervate the abdominal terminalia bristles (ATB neurons; Fig. 3b–e, Extended Data Fig. 4 and Supplementary Table 3)36–39. ATB-1 also drives expression in a sparse population of neurons in the brain, whereas ATB-2 drives reliable expression in the forelegs but not in the brain. However, the only consistently labeled neurons common to these two lines are those that innervate the approximately 150 terminalia bristles (88% and 76% innervated overall, including 81% and 79% of ovipositor bristles, in ATB-1 and ATB-2, respectively; Supplementary Table 3). The axons of these neurons project to a ventral domain of the abdominal neuromere (Fig. 3e and Extended Data Fig. 4b) and are thus poised to inform local circuits about tactile properties of the substrate during egg deposition18,40.
We asked whether ATB neurons are functionally involved in egg laying by expressing the potassium channel Kir2.1 in these neurons to inhibit their activity (ATB-1>Kir2.1; Extended Data Fig. 4d)41. We initially filmed egg-laying behavior on 1% and 1.25% agarose substrates in control and ATB-silenced flies. Control flies exhibited reduced progression from bending to burrowing as we increased the firmness of the substrate (Fig. 3f). By contrast, ATB-silenced flies progressed from bending to burrowing with high probability on all substrates examined (Fig. 3f). These flies also showed aberrant burrowing behavior on agarose substrates; burrowing episodes were shorter in duration and more frequently aborted than in control flies (Fig. 3g,h and Extended Data Fig. 5a,b). Furthermore, ATB-silenced flies atypically deposited eggs on the rigid chamber walls; when burrowing on the wall, ATB-silenced flies expeled eggs during 15% of the burrowing episodes, whereas burrowing on the wall in control flies rarely persisted to egg expulsion (Fig. 3g–i).
Together, these results suggest that tactile feedback from ATB neurons modulates the egg deposition sequence, affording an adaptive response to the firmness of the substrate. While bending on a firm substrate, the tactile response of ATB neurons may suppress the transition to burrowing (Fig. 3f). During burrowing, tactile feedback from the ATB neurons may promote the persistence of burrowing on ideal substrates and elicit the abortion of burrowing on inappropriate substrates (Fig. 3g). Absent this feedback, bending transitions to burrowing with high frequency, and burrowing transitions to egg expulsion with low frequency, independent of the substrate firmness (Fig. 3f,g).
We next examined the consequences of ATB silencing on both the count and the depth of penetration of eggs across a wider range of substrate firmness. Flies with silenced ATB neurons exhibit a diminished ability to achieve subterraneous egg deposition on substrates firmer than 0.5% agarose, whereas control flies deposit subterraneously until 1.25% (Fig. 3j and Extended Data Fig. 5c,d; ATB-2>Kir2.1 silenced flies on 1% agarose). ATB-silenced flies continued to release a large number of eggs on firmer substrates despite the failure to achieve subterraneous egg placement (Fig. 3j,k and Extended Data Fig. 5c,d). By contrast, control flies began to show a reduction in egg output at 1.25% (Fig. 3j,k). In flies in which Kir2.1 expression was restricted to the subset of brain neurons labeled by ATB-1, subterraneous egg deposition was largely unaffected (ATB-1>Otd-nls:FLP; UAS(FRT.mCherry)Kir2.1-GFP; Extended Data Fig. 6)42. Thus, ATB neurons may coordinate penetration of the substrate by the ovipositor and positively gate egg expulsion after successful penetration.
ATB silencing yields a complex array of phenotypes that strongly implicate ATB neurons in providing tactile feedback during egg laying that modulates the progression from bending to burrowing to egg expulsion. The mechanisms by which ATB neurons exert this control may rely on the spatial and morphological heterogeneity of terminalia bristles32. Individual sets of bristles may exhibit unique tuning properties and may function independently to modulate different phases of the behavioral progression29,33,43,44.
Burrowing behavior adjusts to changes in substrate firmness
The pivotal role of subterraneous egg placement in the progression of component behaviors led us to closely examine the substructure of burrowing (Fig. 4a). A burrowing episode is comprised of discrete cycles that begins with rhythmic ovipositor digging. As the surface is scored, the ovipositor extends into the substrate, and the egg emerges out of the uterus and into the ovipositor. Rhythmic pushing expels the egg out of the ovipositor and into the substrate, just beneath the surface. Completed egg expulsion halts the rhythm, terminating the burrowing episode, and the fly then detaches the ovipositor from the egg.
In chambers containing 1% agarose, egg expulsion required a minimum of three cycles and could require as many as ten cycles within a burrowing episode (Fig. 4b). The number of cycles was significantly lower in aborted episodes in which flies did not persist to egg expulsion (mean of three cycles for aborted episodes and five cycles for expulsion; P < 0.001, Wilcoxon rank-sum test), and burrowing could be aborted after any cycle within an episode (minimum of one and maximum of eight; Fig. 4b). This suggests that the decision to persist in burrowing may be determined after each individual cycle. Burrowing can therefore be extended or aborted and then reinitiated to achieve successful egg deposition.
We observed that the substructure of burrowing behavior was dramatically altered as the firmness of the agarose substrate was increased. The total number of burrow cycles required for egg expulsion increased over twofold (Fig. 4c) as the agarose concentration increased from 0.75% to 1.75%. Thus, additional burrowing cycles are required to dig and push the egg into the firmer substrates. Burrow episodes that were aborted also displayed a twofold increase in cycle count on firmer substrates (Fig. 4c). If the egg cannot be successfully deposited after an extended attempt, burrowing is aborted in search of a more favorable location. These data suggest that the transition to egg expulsion (‘egg out’) and the reset phase is contingent on the decision to persist in burrowing until the egg is completely expelled. The decision to persist in burrowing for additional cycles is likely to be informed by ongoing sensory feedback regarding the position of the egg as it is pushed through the uterus and ovipositor into the substrate.
Internal sensory neurons activated by the progression of the egg
We next screened a library of transgenic lines45 to identify candidate sensory neurons that innervate the lower reproductive tract and detect the passage of the egg through the uterus during burrowing4,46–48. We identified a cluster of sensory neurons whose cell bodies flank the posterior uterus and whose processes arborize along the outer surface of the distal-most fibers of the muscle that encircles the uterus (posterior uterine (PU) sensory neurons; Fig. 5a–d)49. We used the split-GAL4 intersectional strategy to generate two lines that labeled a pair of PU neurons on each side of the uterus (PU-1, 1.9 ± 0.5 cells per side, n = 17 sides in 13 flies; PU-2, 2.1 ± 0.3 cells, n = 11 sides in 8 flies; mean ± s.d.; Fig. 5a–c and Extended Data Fig. 7a,b). These neurons send projections centrally that terminate in the ventral-most neuropil of the abdominal neuromere, a sensory domain associated with multidendritic sensory neuron inputs50,51 (Fig. 5e and Extended Data Fig. 7a,c). We confirmed the polarity of PU neurons by targeted expression of both synaptotagmin–GFP52, a presynaptic marker, and DenMark53, a somatodendritic marker. Synaptotagmin–GFP was restricted to the central projections in the abdominal neuromere, while DenMark localized to the peripheral processes encircling the posterior uterus (Extended Data Fig. 7d). This pattern of dendritic innervation suggests that PU neurons may sense the passage of an egg through the posterior uterus into the ovipositor.
We therefore monitored the activity of PU neurons as the egg is expelled from the uterus. GCaMP6f was expressed in PU neurons, and calcium activity was recorded in flies mounted ventral-side up (Fig. 5f and Methods)54,55. Snapshots from a typical video recording over a 90-s window encompassing egg expulsion are shown in Fig. 5g, along with the corresponding activity of the four PU axons and behavioral measurements of the movement of the egg and ovipositor (Supplementary Video 4). Initially, we observed an incomplete expulsion event (Fig. 5g), where the egg advanced from the uterus (first frame) into the extruded ovipositor (second frame), after which the egg retreated into the uterus and the ovipositor retracted (third frame). During this event, calcium activity in PU neurons increased from baseline after the egg entered the ovipositor and returned to baseline when the egg retreated into the uterus. A second, complete expulsion event then occurred (fourth frame), and the PU neurons again responded after the egg entered the ovipositor, and the activity returned to baseline after the egg was completely expelled (fifth frame). These response properties were observed in all 28 PU neurons recorded from eight flies (Fig. 5h,i and Supplementary Fig. 4). PU neurons were not activated when the egg was at rest in the uterus. Moreover, PU neuron response was specific to the advancement of the egg into the ovipositor and not simply to the extrusion of the ovipositor. PU neurons did not respond to ovipositor extrusion events in flies lacking an egg (Fig. 5j–l and Supplementary Video 5). These observations demonstrate that PU neurons respond shortly after the egg passes through the posterior uterus into the ovipositor and may therefore inform circuits in the abdominal neuromere about the position of the egg during burrowing18,40.
Silencing PU neurons disrupts the egg-laying sequence
We silenced PU sensory neurons to examine their role in egg-laying behavior by the targeted expression of Kir2.1 (PU-1>Kir2.1). In PU-silenced flies, we observed a dramatic reduction in egg output (mean of 9 eggs in 4 h compared to 23 and 34 in the two genetic controls; Fig. 6a and Supplementary Fig. 5a). Moreover, the majority of the eggs in PU-silenced flies were not deposited subterraneously on a 1.0% agarose substrate (29% deposited subterraneously versus 95% and 93% in both genetic controls; Fig. 6b and Supplementary Fig. 5b). This reduction in egg count was not a consequence of a mating defect. PU-silenced virgins showed no deficit in mating but exhibited a reduction in egg count after a single mating event (Supplementary Fig. 5c,d).
PU-silenced flies expelled 51% of the eggs in the typical fashion following burrowing but exhibited a 67% reduction in the progression from burrowing to egg expulsion (PU-1>Kir2.1, probability of 0.25 versus 0.75 for both genetic controls; Fig. 6c,e). Burrowing episodes were comprised of fewer cycles than burrowing episodes in control flies (Fig. 6f,g). Moreover, burrowing episodes culminating in egg expulsion resulted in the premature release of the egg on the substrate surface. These data suggest that PU neurons sense the passage of the egg into the ovipositor during a burrowing episode, promoting persistent burrowing to achieve subterraneous egg deposition.
The remaining 49% of eggs in PU-silenced flies were spontaneously dropped without burrowing or expression of any of the other behavioral components that typically precede egg expulsion (Fig. 6c). These eggs spontaneously emerged while the ovipositor was in midair and were removed by hindleg grooming. This phenotype was exhibited by 19 of 22 PU-silenced flies but was rarely observed in control flies (0% in 12 GAL4-only control flies and 2% in 3 of 30 UAS-only control flies; Fig. 6d). This distinct phenotype may implicate PU feedback in the regulation of musculature required for egg retention. Thus, the silencing of PU neurons resulted in deficits in burrowing and diminished and aberrant egg output.
PU neurons control timing and direction of burrow transitions
We next explored the function of PU neurons by targeted expression of the red-light-activated channelrhodopsin CsChrimson (PU-1>CsChrimson)56. We devised a physiological paradigm in which we photostimulated PU neurons in the context of egg laying. We have shown that PU neurons are activated after passage of the egg through the uterus into the ovipositor and that their activity returns to baseline after completed expulsion. We reasoned that prolonged PU neuron activation beyond egg expulsion may mimic the continued presence of the egg within the posterior uterus and ovipositor and delay progression along the behavioral sequence. In normal egg-laying behavior, burrowing ceases after egg expulsion, and the fly detaches from the egg, grooms its ovipositor and transitions to the reset phase. We photostimulated PU neurons during burrowing with a pulse of light that was triggered immediately before the completion of egg expulsion and remained on after egg expulsion for different durations (2.5, 5 or 20 s; light onset 0.9 ± 1.1 s before complete egg expulsion; n = 215 photostimulation events; mean ± s.d.; Fig. 7a). Prolonged PU neuron activation beyond egg expulsion resulted in the aberrant persistence of burrowing without transitioning to detachment despite the absence of an egg in the uterus (Fig. 7b). With 20-s photostimulation, flies stopped burrowing an average of 5.5 ± 1.3 s beyond egg expulsion (n = 15 flies; Fig. 7b). Flies that burrowed throughout the photostimulation period ceased burrowing after light offset (Fig. 7b and Extended Data Fig. 8a). As expected, given our observations with 20-s photostimulation, burrowing persisted until light offset frequently for 2.5-s stimulations, in approximately half of 5-s stimulations and almost never for 20-s stimulations (52 of 60 stimulations, 45 of 80 and 5 of 75, respectively). In the remaining events, burrowing persisted for variable durations but stopped before light offset. These data suggest that PU activation promotes burrowing persistence. However, persistent burrowing is not sustained, suggesting an intrinsic temporal control on the duration of burrowing.
Flies that persist in burrowing throughout photostimulation abruptly stopped burrowing after light offset and transitioned to the behavioral sequence normally triggered by egg expulsion (Fig. 7c). This behavior was observed for all three stimulus durations (Fig. 7b, Extended Data Fig. 8b,c and Supplementary Video 6). These data support the argument that PU neurons are activated by the passage of the egg into the ovipositor and drive the persistence of burrowing. These observations also suggest that a decrease in PU activity signals the completion of egg expulsion, resulting in the transition to detachment, grooming and the reset phase (Fig. 7d).
In the photostimulation events where burrowing stopped before light offset, flies exhibited exploration and deposition behaviors in new locations despite the fact that they had already expelled an egg (Fig. 7b,c, Extended Data Fig. 8b–d and Supplementary Video 7). This behavior appears to recapitulate the behavior observed after aborting a burrowing episode in normal egg-laying behavior. In wild-type flies, prolonged burrowing and PU activation without expulsion may signal the inability to deposit an egg, resulting in abortion of the episode (Fig. 7d). In the photostimulation experiment, the flies may be unaware of having laid an egg, and the prolonged activation of PU neurons may also signal the inability to deposit an egg, resulting in abortion (Fig. 7d). These flies persistently expressed exploration and deposition behaviors and exhibited numerous burrowing episodes for up to several minutes beyond light offset despite the absence of an egg in the uterus (Extended Data Fig. 8e,f). After the decision to abort and revert, a decrease in PU activity (photostimulation offset) no longer triggers the transition to reset.
These experiments demonstrate a role for PU activation and inactivation in the context of a burrowing episode. We therefore asked whether photostimulation of PU neurons could impact behavior outside the context of burrowing. We photostimulated PU neurons for 20 s at 90-s intervals, independent of the ongoing behavioral state of the fly. Neither the photostimulation period nor its offset induced an overt behavioral response (Extended Data Fig. 9). Thus, optogenetic activation only results in persistent burrowing during an ongoing burrowing episode. Moreover, a decrease in PU neuron activity only signals the completion of egg expulsion and the transition to postdeposition behaviors in the context of an ongoing burrowing episode.
A pair of uterine motor neurons expels the egg during burrowing
The transition from burrowing to egg expulsion represents the final decision point in the egg-laying sequence and results in the transition to reset. We screened an image database45 to identify transgenic lines that target motor neurons innervating the uterus and involved in expelling the egg. We identified a symmetric pair of large neurons in the abdominal neuromere that project into the abdominal nerve trunk and ramify along the ipsilateral length of the muscle that encircles the uterus49. We used the split-GAL4 intersectional strategy to generate four lines with restricted expression in these neurons (circular muscle of the uterus (CMU) neurons; Fig. 8a–c, Extended Data Fig. 10a and Supplementary Table 4). Their axon terminals exhibit abundant boutons that stain with an antibody to Drosophila VGLUT, a marker for glutamatergic motor neuron synapses (Fig. 8a)57,58.
We asked whether stimulation of CMU neurons could trigger egg expulsion by expressing the channelrhodopsin CsChrimson in these neurons. Optogenetic activation reliably induced egg expulsion in gravid females (Fig. 8d). Moreover, following activation of CMU neurons, histological analysis revealed that the uterus was dramatically constricted (Extended Data Fig. 10b). Egg expulsion did not occur after photostimulation of control flies harboring only UAS-CsChrimson or the split-GAL4.
We used two-photon imaging to demonstrate that CMU neurons are indeed active when a fly expels an egg. GCaMP6f was expressed in CMU neurons, and calcium activity was recorded, as in Fig. 5f. We observed an acute increase in calcium activity concurrent with egg expulsion (Fig. 8e,f). These observations suggest that the CMU neurons are active during natural egg laying, expelling the egg during burrowing.
We also expressed the anion channelrhodopsin GtACR1 (ref. 59) to silence CMU neurons and examine their functional role in egg-laying behavior. In CMU-silenced flies, we observed a dramatic reduction in egg output compared to control flies (Fig. 8g and Supplementary Fig. 6). Moreover, CMU-silenced flies spontaneously dropped 89% of their eggs without burrowing (Fig. 8h). Egg-laying behavior was intact in these flies, and they engaged in a comparable number of burrowing episodes as control flies (Fig. 8i,j). However, burrowing almost never culminated in egg expulsion in flies with silenced CMU neurons (Fig. 8k). Thus, CMU neuron activity is necessary to progress from burrowing to egg expulsion, the final decision point in the egg-laying sequence (Fig. 8l).
Discussion
We have characterized the structure of egg-laying behavior in the fly and demonstrate that it consists of a sequence of component actions analogous to Nikolaas Tinbergen’s ‘reaction chain’3. Tinbergen portrayed innate behaviors as a reaction chain, in which each component action of the sequence enhances the probability of encountering releasers, or ‘sign stimuli’, that promote progression to a subsequent component. This organization of component actions provides decision points at the junctures of component behaviors that ensure the successful progression toward the consummate act that satisfies the drive.
Our data demonstrate that the individual components of egg-laying behavior are not simply motor acts but also acts of sensory evaluation of the external and internal world that govern behavioral progression. During exploration, substrate cues are encountered while walking and proboscis sampling that may identify a suitable location for egg deposition6,11,17. The flies then initiate more refined local exploration involving abdominal bending to permit sampling with the abdominal terminalia. We have identified a class of external sensory neurons (ATB neurons) that innervate tactile hairs on the abdominal terminalia29,31, which contact the substrate and regulate the transition from bending to burrowing. During burrowing, the ovipositor is used to score the surface, extend into the substrate and expel the egg subterraneously. We further describe a pair of uterine motor neurons (CMU neurons) that enact this critical transition of burrowing to egg expulsion. The expulsion of the egg triggers egg detachment and the transition to the final behavioral phase, grooming and ovulation, facilitating the reinitiation of the sequence. We also identified a cluster of interoceptive sensory neurons (PU neurons), likely to be proprioceptive4,46–48, that signal the passage of the egg through the uterus into the ovipositor during burrowing and coordinate the transition to the final reset phase. Behavioral analysis along with genetic manipulation suggest that information from the PU neurons can either drive the persistence of burrowing, resulting in egg expulsion, or prompt the cessation of burrowing if the egg cannot be expelled after an extended attempt. Finally, diminished activity in PU neurons during burrowing signals the completion of egg expulsion and initiates the transition to the reset phase. These results provide a logic for a reaction chain in which sensory information at critical junctures guides flexible adjustments in component behaviors to achieve subterraneous egg deposition across varied environmental conditions.
The organization of innate behaviors into a sequence of component actions may confer additional adaptive advantages. Individual components in an innate behavioral sequence may be differentially responsive to the distinct sensory stimuli that promote transitions along the sequence. A given stimulus may behaviorally impact only one of the components in the sequence. Each component therefore establishes a context that filters relevant sensory input. For example, during the hunting of bees, digger wasps first visually identify a target bee. The odor of bees has no impact during this visual search, but once a bee has been spotted, the bee odor triggers an acute strike3,60. Similarly, we observe context-dependent behavioral responses to the activation of PU neurons. Photostimulation of PU neurons during a burrowing episode results in persistent burrowing, whereas activation at other times in the sequence does not elicit a behavioral response. Moreover, only during burrowing does a decline in PU neuron activity result in the transition to the reset phase. Thus, the behavioral impact of sensory stimuli differs for each of the components in a sequence. Each component therefore displays selective attention to distinct stimuli that structures the transition between behaviors to accommodate a complex and variable sensory environment.
In addition, each component in the sequence affords an entry point for adaptive evolutionary change. Changes in specific components of egg-laying behavior that accommodate a new ecological niche can occur without perturbing the overall sequence. For example, changes in substrate preferences during exploration may occur as an evolutionary adaptation to a changing environment7,8,61. Alterations in subsequent components, such as burrowing, may then be necessary to accommodate changes in the properties of the novel substrate. D. melanogaster and D. suzukii have different preferences for the site of egg laying7. D. suzukii females prefer to deposit eggs within firmer ripe fruit, whereas D. melanogaster favors softer rotting fruit. Egg-laying behavior is comprised of the same sequence of component actions in the two species, but D. suzukii females exhibit dramatically prolonged burrowing episodes14. Episodes in D. suzukii can persist for over 100 s, whereas D. melanogaster burrowing on the same substrate does not extend for more than 9 s. Interestingly, D. suzukii has also evolved an enlarged and serrated ovipositor62. These changes do not alter the sequence of behaviors but illustrate evolutionary adaptations that allow D. suzukii to deposit eggs within firmer fruits. A similar logic holds for male Drosophila courtship behavior, where adjustments in different steps in a conserved sequence (for example, foreleg pheromone sampling and singing) can be independently altered, and these modifications play critical roles in the sexual isolation of related species63–65.
An innate behavioral repertoire is thought to be initiated by higher-order brain centers that represent a specific motivational state or drive3,66–71. These centers are activated by stimuli relevant to the drive and then select an appropriate motor program for action15,72–74. A signal is then transmitted to preconfigured circuits in the ventral nerve cord or spinal cord that are capable of producing a coordinated sequence of motor actions18,40,75–78. Pivotal intermediaries in this pathway are the descending interneurons that link the output of higher brain centers with the appropriate local circuits in the ventral nerve cord15,18,24,40,72,74,79–83. One intermediary eliciting components of egg laying in D. melanogaster has been recently identified, the descending oviDN cluster of neurons15. OviDNs are necessary and causal for the expression of the terminal components of the egg-laying sequence: abdominal bending, ovipositor burrowing and egg expulsion. Higher-order brain centers disinhibit the oviDN cluster following mating and modulate oviDN activity in response to mechanical and gustatory stimuli presented to the legs15,17. Thus, oviDNs are poised to induce the transition from exploration (walking and proboscis sampling) to later steps in the sequence, resulting in egg deposition. Although activation of the oviDNs is capable of eliciting the complete sequence from abdominal bending to egg expulsion, our observations demonstrate that transitions along this late sequence are exquisitely sensitive to ongoing sensory feedback. We observe that abdominal bending does not always lead to burrowing and identify that this transition is modulated by tactile feedback from ATB neurons. Furthermore, the duration of burrowing and the transition to the reset phase are informed by feedback from PU neurons that sense the presence of the egg in the ovipositor. Thus, once the activation of oviDNs initiates the egg deposition motor program, sensory information acquired during the ensuing behavioral sequence governs the progression of the component actions to satisfy the drive.
Methods
Fly stocks and genotypes
All experiments were performed using 3- to 20-d-old females. For detailed fly stock sources and genotypes, see Supplementary Tables 5 and 6.
Fly husbandry
Flies were reared at 25 °C and 55% relative humidity on a 12-h light/12-h dark cycle in vials containing cornmeal-agarose food. Females used in egg-laying experiments were genotyped under CO2 anesthesia within 1 d of eclosion and transferred to a vial containing an enriched medium (Nutri-Fly GF, Genesci Scientific) in a ratio of 4 females to 5 males, with a minimum of 12 and a maximum of 20 females per vial48. Egg-laying experiments were performed 5 to 7 d after eclosion. All experiments were initiated ±2 h of lights off. For optogenetic experiments, flies were reared and maintained in complete darkness, and all-trans-retinal (0.4 mM; Santa Cruz Biotechnology) was included in the enriched medium.
Wild-type and loss-of-function behavior
For quantifying behavior at high resolution, single females were filmed in parallel within a custom three-dimensional-printed assembly containing six chambers (Shapeways). Individual chambers were 4.1 mm deep and tapered from top to bottom (7.3 mm × 5.8 mm to 6.7 mm × 4.3 mm). One side of the chamber was open to a reservoir, within which the agarose-based substrate (Affymetrix Agarose-LE, 32802) plus 3% acetic acid (vol/vol; Sigma-Aldrich, 338826) was poured and allowed to set for 30 min. Flies were introduced by gentle aspiration, the assembly was placed at the center of a 5-cm off-axis ring light (530 nm; Metaphase Technologies), and video recording was performed using a GigE camera (Basler Ace acA2000-50gmNIR) attached to a ×0.5 telecentric lens (Edmund Optics, 54-798) at 20 Hz (682 × 540 pixels per chamber) via pylon Viewer software (Basler). Experiments lasted 2 h.
The study of egg depth of penetration was performed in a custom acrylic assembly with 16 individual chambers (18.5 mm × 18.5 mm × 6 mm). Flies were introduced by gentle aspiration and allowed to habituate to the chamber. Forty milliliters of substrate containing agarose and 3% acetic acid was poured into a 120-mm square petri dish (Greiner) and allowed to set for 30 min. The experiment was initiated by removal of the thin plastic barrier separating the flies from the substrate, and the whole assembly was then placed in the dark for 4 h.
Immunostaining and confocal microscopy
Flies were anesthetized with CO2 and fixed (2% paraformaldehyde in 75 mM lysine and 37 mM sodium phosphate buffer, pH 7.4) for 2 h at room temperature. The flies were then removed, and the brains, ventral nerve cord and lower reproductive tract were dissected in PBS containing 0.3% Triton X-100 (PBST), blocked with 10% normal goat serum diluted in PBST for 30 min and incubated in a primary antibody mix overnight at 4 °C. Subsequently, the tissue was washed for multiple rounds with PBST before being incubated in a secondary antibody mix overnight at 4 °C. A final round of PBST washing occurred before the tissue was mounted using VectaShield (Vector Laboratories) and imaged using an LSM 710 laser-scanning confocal microscope with a ×25/0.8 DIC or ×40/1.2 W objective (Zeiss). Primary antibodies used were mouse anti-bruchpilot (nc82; 1:10; Developmental Studies Hybridoma Bank), chicken anti-GFP (1:1,000; Aves Labs), rabbit anti-DsRed (1:500; Clontech), rabbit anti-NOMPC (1:5,000)35 and rabbit anti-DVGLUT (1:10,000)57. Secondary antibodies used were Alexa Fluor 633 goat anti-mouse, Alexa Fluor 488 goat anti-chicken, Alexa Fluor 488 goat anti-rabbit and Alexa Fluor 555 goat anti-rabbit (all at 1:200; Life Technologies). To visualize F-actin, Alexa Fluor 633 phalloidin was included in the secondary antibody mix (1:200; Life Technologies). Acquired images were processed using the Fiji distribution of ImageJ (NIH).
Thoracic dissection for calcium imaging
Three- to 20-d-old females were anesthetized on ice, and the wings were removed before being mounted (ventral-side up) on a square acrylic platform using UV-curable glue (AA 3104, Loctite) and UV illumination (LED-200, Electro-Lite). The head and abdomen were lightly pressed down to ensure complete mounting from the head to just anterior of the analia. All legs were cut at the trochanter before, using a 30-gauge needle, a thin well was created with petroleum jelly that encompassed the remaining leg coxa and ranged from the neck connective to the anterior abdomen. A custom imaging platform with a hole (1 mm × 750 μm) at the bottom of a pyramidal basin was positioned using putty such that the hole was centered on the hindleg coxa. The basin was filled with external saline (108 mM NaCl, 5 mM KCl, 2 mM CaCl2, 4 mM MgCl2, 4 mM NaHCO3, 1 mM NaH2PO4, 5 mM trehalose, 10 mM sucrose and 5 mM HEPES, adjusted to pH 7.3) before the remaining coxa of the middle and rear legs were removed, along with the surrounding preepisternum, the internal sternal apophysis and any visible trachea, revealing a rectangular window above the abdominal neuromere and proximal extent of the abdominal nerve trunk. Finally, the basin was drained, and fresh saline was gently flushed over the window.
Two-photon functional imaging
Pilot experiments revealed that gravid females mounted ventral-side up reliably expel an egg in midair within 30–60 min. Experiments were initiated immediately after completion of the dissection. The acrylic platform was secured adjacent to a camera and high-magnification lens setup (Point Grey USB3 camera, CM3-U3-13S2M-CS; InfiniProbe S-80 right angle video microscope lens) and infrared band-pass filter (Thorlabs, FGB25S) that, when illuminated by a nearby infrared (850-nm) LED lamp, allowed for high-resolution video recordings of the posterior abdomen concurrent with two-photon imaging.
Two-photon experiments were performed using an Ultra Microscope (Bruker) coupled to a Ti:Sapphire laser (Chameleon Vision, Coherent) via PrairiewView software (Bruker), with a GaAsp detector (Hamamatsu Photonics) for GCaMP6f and a photomultipier tube for tdTomato imaging. A ×40/0.80-NA water immersion objective (Nikon) was used, and the laser was tuned to 925 nm; the power measured after the objective ranged from 5 to 7 mW. The abdominal neuromere and abdominal nerve trunk were located using the microscope oculars and positioned near the center of the field of view by two-photon imaging. Using the tdTomato anatomical marker, a stretch of the abdominal nerve trunk where the axons were separated and ran in parallel was selected for the coronal section55. Coronal section imaging was performed at 10 Hz, covering 42.4 μm in x and 60 μm in z (512 × 85 pixels per image; 1.2-μs pixel dwell time). Small adjustments in the x and z dimensions were made as needed throughout the experiment to compensate for drift.
Axons corresponding to PU or CMU neurons were determined by two-photon imaging at the conclusion of the experiment. Axon projections were traced anteriorly, identifying PU or CMU axons by their expression pattern within the abdominal neuromere.
Optogenetic perturbations during behavior
For the optogenetic stimulation of PU neurons during egg-laying behavior, the high-resolution filming apparatus described above was slightly modified. Chambers were illuminated with an infrared 5-cm off-axis ring light (880 nm; Metaphase Technologies), a single 655-nm high-power LED (Luxeon Star) was installed adjacent to the video lens to deliver red-light stimulation, and an infrared band-pass filter was mounted in front of the lens. A custom MATLAB graphical user interface (GUI) was used to select the stimulus condition and control the timing of the light stimulus via an Arduino UNO (Arduino) and LED controller (BuckPuck 700 mA, Luxeon Star). Experiments were performed on a 0.8% agarose substrate plus 3% acetic acid. As the egg neared complete expulsion during burrowing, a trigger was pressed that turned the light stimulus on. The instant the egg was fully expelled, a second trigger was pressed, initiating a countdown timer for stimulus offset whose duration was determined by the selected stimulus condition. Individual flies contributed a minimum of 15 events (5 events each for control and two experimental conditions) and a maximum of 20 events (5 events each for control and all three experimental conditions) to the final data set. At the beginning and end of a behavioral session, 20-s light pulses were delivered at 90-s intervals to examine the impact of photostimulation outside the context of burrowing. The aberrant persistence of burrowing and/or reversion in the behavioral sequence following egg expulsion were reliably observed using the second PU split-GAL4 line in response to 5-s stimulation at 8 µW mm–2 (PU-2>CsChrimson, 60/60, n = 12). Genetic control flies did not exhibit these aberrant behaviors in response to 5 s of stimulation at 8 µW mm–2 (PU-1>smGFP, 0/50, n = 10 flies; empty-split-GAL4>CsChrimson, 0/50, n = 10).
For the optogenetic stimulation of CMU neurons in gravid females, up to 12 flies were transferred to a small, circular acrylic chamber (28 mm in diameter and 2 mm in height) and placed atop an infrared panel light (850 nm; Smart Vision Lights). Video recordings were performed using a USB3 camera (Basler Ace acA2040-90umNIR) attached to a ×0.377 telecentric lens (Edmund Optics, 34-015) at 40 Hz (2,048 × 2,048 pixels). Photostimulation was controlled by a custom MATLAB GUI and delivered by four 655-nm LEDs. A single volley of five light pulses of the selected duration was delivered with 1 s between pulse offset and onset, and the fraction of flies that expelled an egg at any point before 4 s following the last pulse offset was scored.
For the optogenetic silencing of CMU neurons during egg-laying behavior, all experiments were performed in the assembly used for high-resolution filming. Flies were filmed under constant green light (6 μW, 530 nm) delivered by the off-axis ring light.
Wild-type and loss-of-function behavior data analysis
For the high-resolution assay, the video was segmented in one of three ways. Wild-type flies on 1% agarose and PU-silenced flies were analyzed over ±60 s of egg expulsion. Wild-type flies on substrates of various firmness and ATB-silenced flies were analyzed over a contiguous video segment spanning three to eight egg-laying events beginning immediately after the first egg was deposited. CMU-silenced flies were analyzed over the entire 2-h recording session.
Segmented videos were manually annotated frame by frame in a custom MATLAB GUI. Manual scoring of behavior required 640.5 ± 275.1 s (mean ± s.d.) per 2-min video (n = 25 videos). Detailed annotation criteria are provided in Supplementary Table 1. The timing and count of burrow cycles were determined by observing individual episodes in real time. The cycle count per burrowing episode was highly positively correlated with the duration of the episode (r = 0.91). Manual annotations were validated by independently rescoring behavior on a subset of data using a second human annotator and were also compared to the output of a supervised learning algorithm (DeepEthogram26). Agreement was determined by calculating the F1 score25,26, a standard metric that ranges from 0 (poor agreement) to 1 (perfect agreement), calculated as
with
and
DeepLabCut (DLC; a feature detection algorithm)28 was used to track the x–y position of the posterior tip of the scutellum on the thorax, and the speed was estimated by comparing the distance between this position across ten frames (500 ms). A fly was considered to be walking if its speed, smoothed by a 1-s moving average, was greater than a threshold of 0.29 mm s–1.
For the determination of behavioral transition probabilities, the probability of start-to-start transitions was calculated as in ref. 24. Proboscis extension was only considered when expressed at distinct locations spaced greater than 500 μm apart. Proboscis extension events that occurred during other behaviors were omitted from this analysis. Bend onset was only scored once if burrowing was aborted and then reinitiated during a sustained abdominal bend. Transition probabilities were determined separately for behaviors happening before and after egg expulsion (egg out). The statistical significance of each transition was determined by comparison to a distribution of transition probabilities derived from 10,000 shuffled permutations of the original sequences. Transitions not shown were not significant and of low probability (<0.04; initial behavior distribution and complete transition matrices are shown in Supplementary Table 2).
For quantifying normalized egg depth of penetration, an egg was given a score of 1 if it was deposited entirely beneath the substrate surface, with only the egg’s spiracles exposed. If only part of the egg was beneath the surface, it was given a score of 0.5, whereas if it was entirely resting on the surface, it was scored as 0. The average normalized egg depth was calculated per fly for all flies that laid one or more eggs.
Supervised behavioral classification analysis
A DeepEthogram-slow model26 was trained using 518 manually annotated 2-min videos surrounding egg-laying events (±1 min of completed egg expulsion). Test data consisted of a subset of 30 randomly selected 2-min videos corresponding to 72,000 frames, which were held out from the training data set. Proboscis extension and egg out labels were expanded from one frame to three frames in both train and test datasets.
Unsupervised behavioral classification analysis
Our approach was based on ref. 27 and implemented using custom MATLAB code. Using key points from a DLC pose estimation model, 17 features were extracted from each video frame that represent postural and motion features relevant to egg laying. These features were velocity (movement of the scutellum over time, ‘vel’; Supplementary Video 2), movement of the proboscis relative to the ocellus (‘pe’), the z-score-normalized angle formed between a line connecting the ventral abdominal stripes and a line connecting the ocellus and scutellum (‘ba’), the angular velocity of this angle (‘velba’), movement of the leg joint from each leg (three features; ‘T1’–‘T3’), the DLC prediction confidence for egg emergence (‘Pegg’), the magnitude of two bands of the Morlet wavelet spectrogram of the pixel intensity of a circular region of interest (ROI) of radius 10 pixels surrounding the ovipositor (0.8 to 1.3 Hz and 1.3 to 2.3 Hz; ‘w1ovi’ and ‘w2ovi’) and the log of the magnitude of seven bands of the Morlet wavelet spectrogram of the movement of the dorsal arch of the stripe on abdominal segment A5 (ranging from 0.5 Hz to 10 Hz; ‘cwt1’–‘cwt7’). For a complete description of this analysis, see Supplementary Methods.
Functional imaging data analysis
Imaging data were first segmented into cell-specific ROIs. The location and shape of ROIs corresponding to all labeled axons across all frames was determined from the tdTomato channel using a semiautomated pipeline. DLC was used to track the center position of all identified axons, appearing as ellipsoids, in the tdTomato image stack. DLC predictions were then used to select foreground ROIs from a binary thresholded image stack. The raw fluorescence, F, was then calculated as the mean pixel value within the ROI bounds for each frame. The raw fluorescence was converted to ΔF/F0 using a baseline determined as the median fluorescence value from recording onset to 20 s before completed egg expulsion, excluding ±20 s surrounding ovipositor extrusion events. Example ΔF/F0 traces shown in figures and videos were smoothed by a three-point moving average.
The timing of egg expulsion events and ovipositor extrusion events was determined via an automated analysis of the distances between DLC-tracked key points (the dorsal–posterior edge of T6, the posterior tip of the egg and the midpoint of the ovipositor). T6:egg distance and T6:ovipositor distance were used to detect behavioral events before and after egg expulsion, respectively.
Raw distance traces were high-pass filtered (0.001 Hz) before total variation regularization, with events identified as threshold crossings of one-fifth the maximum regularized signal. Distances were within-fly normalized by the median distance between T6 and the posterior edge of the analia base, which was set to 1. Calcium response events (Supplementary Fig. 4) were determined similarly.
To compare response magnitude across events and flies, the fluorescence data were integrated and normalized as follows. The integration window for both egg expulsion and ovipositor extrusion events was defined as t = 0 to t = 3 s after event onset. For comparing incomplete to complete egg expulsion, the baseline 0 value was determined as the median 3-s integral over the first contiguous stretch of 60 s leading up to complete egg expulsion, excluding ±20 s surrounding any egg expulsion event. The postexpulsion value was determined as the median 3-s integral from t = 10 to t = 20 s after complete egg expulsion. The maximum ‘1’ value for normalization was the maximum 3-s integral observed throughout. For comparing incomplete egg expulsion to postexpulsion ovipositor extrusion events, the minimum ‘0’ value was determined as the median of the first 60 s (non-contiguous) starting 10 s after egg expulsion and excluding ±20 s surrounding ovipositor extrusion events. For flies that expressed multiple events, the mean was used in plots and all analyses. Calcium imaging was performed using both PU-1 and PU-2 split-GAL4 lines, and the data were combined.
Optogenetic activation data analysis
For every egg-laying event, the timing of completed egg expulsion and burrow termination was manually annotated in a custom MATLAB GUI. The time of completed egg expulsion was defined as the first frame where the egg reached maximum depth within the substrate. Burrow termination was defined as the frame associated with the onset of ovipositor detachment or lifting. The transition to the reset phase was determined if no additional burrowing episode occurred within 65 s of egg expulsion. If additional burrowing episodes did occur, the onset timing of the last burrowing episode before reset was similarly determined as the last burrowing episode to precede a 65-s window free of burrowing. For stimulation events presented in Fig. 7c and Extended Data Fig. 7b, t = 0 corresponds to the onset of the countdown timer, which approximately coincided with completed egg expulsion.
Reporting summary
Further information on research design is available in the Nature Portfolio Reporting Summary linked to this article.
Online content
Any methods, additional references, Nature Portfolio reporting summaries, source data, extended data, supplementary information, acknowledgements, peer review information; details of author contributions and competing interests; and statements of data and code availability are available at 10.1038/s41593-023-01332-5.
Supplementary information
Acknowledgements
We thank L.F. Abbot, C.M. Root and W.B. Grueber for comments on the paper; D. Hattori, B. Noro, J.A. Browning–Kamins, J.T. Remark, A.D. Pourmorady, R.A. Mosneanu, C.E. Haoud and A. Zangiabadi for technical assistance; N. Gompel, E.A. Lumpkin, A. Vina–Albarracin, R. Behnia, K. Kay, L.Y. Tian, K. Wang, F. Wang, B.J. Dickson, A. Mathis, B. de Bivort, G.G. de Polavieja, R. Benton, V. Ruta and members of the Axel laboratory for discussions; G.M. Rubin, B. Noro, D. Hattori, T.R. Shirangi and B.J. Dickson for fly stocks and M. Gutierrez, C.H. Eccard and A. Nemes for general laboratory support. Stocks from the Bloomington Drosophila Stock Center (NIH P40OD018537) were used in this study. Financial support was provided by the Howard Hughes Medical Institute and the Simons Foundation.
Extended data
Author contributions
K.M.C. and R.A. conceptualized the study. K.M.C. developed the methodology and performed the experiments, formal analysis and data visualization. K.M.C. and R.A. interpreted results and wrote the paper.
Peer review
Peer review information
Nature Neuroscience thanks the anonymous reviewers for their contribution to the peer review of this work.
Data availability
Data from this study are available at https://github.com/axellaboratory/Cury_and_Axel_2023 and upon request. Trained pose estimation models and the supervised behavioral classifier can be accessed via Dropbox (https://www.dropbox.com/sh/jh4422f3ld95j1a/AAAHVb-pFsmcEk40BgSHm1TEa?dl=0).
Code availability
Code used for processing the data is available at https://github.com/axellaboratory/Cury_and_Axel_2023.
Competing interests
The authors declare no competing interests.
Footnotes
Publisher’s note Springer Nature remains neutral with regard to jurisdictional claims in published maps and institutional affiliations.
Contributor Information
Kevin M. Cury, Email: kc2746@columbia.edu
Richard Axel, Email: ra27@columbia.edu.
Extended data
is available for this paper at 10.1038/s41593-023-01332-5.
Supplementary information
The online version contains supplementary material available at 10.1038/s41593-023-01332-5.
References
- 1.Bastock M, Manning A. The courtship of Drosophila melanogaster. Behaviour. 1955;8:85–110. doi: 10.1163/156853955X00184. [DOI] [Google Scholar]
- 2.Noirot E. Serial order of maternal responses in mice. Anim. Behav. 1969;17:547–550. doi: 10.1016/0003-3472(69)90162-6. [DOI] [PubMed] [Google Scholar]
- 3.Tinbergen, N. The Study of Instinct (Clarendon Press, 1951).
- 4.Cury KM, Prud’homme B, Gompel N. A short guide to insect oviposition: when, where and how to lay an egg. J. Neurogenet. 2019;33:75–89. doi: 10.1080/01677063.2019.1586898. [DOI] [PubMed] [Google Scholar]
- 5.Dweck HKM, et al. Olfactory preference for egg laying on citrus substrates in Drosophila. Curr. Biol. 2013;23:2472–2480. doi: 10.1016/j.cub.2013.10.047. [DOI] [PubMed] [Google Scholar]
- 6.Joseph RM, Devineni AV, King IFG, Heberlein U. Oviposition preference for and positional avoidance of acetic acid provide a model for competing behavioral drives in Drosophila. Proc. Natl Acad. Sci. USA. 2009;106:11352–11357. doi: 10.1073/pnas.0901419106. [DOI] [PMC free article] [PubMed] [Google Scholar]
- 7.Karageorgi M, et al. Evolution of multiple sensory systems drives novel egg-laying behavior in the fruit pest Drosophila suzukii. Curr. Biol. 2017;27:847–853. doi: 10.1016/j.cub.2017.01.055. [DOI] [PMC free article] [PubMed] [Google Scholar]
- 8.Prieto-Godino LL, et al. Evolution of acid-sensing olfactory circuits in drosophilids. Neuron. 2017;93:661–676. doi: 10.1016/j.neuron.2016.12.024. [DOI] [PubMed] [Google Scholar]
- 9.Rockwell RF, Grossfield J. Drosophila: behavioral cues for oviposition. Am. Midl. Nat. 1978;99:361–368. doi: 10.2307/2424813. [DOI] [Google Scholar]
- 10.Yang C-h, Belawat P, Hafen E, Jan LY, Jan Y-N. Drosophila egg-laying site selection as a system to study simple decision-making processes. Science. 2008;319:1679–1683. doi: 10.1126/science.1151842. [DOI] [PMC free article] [PubMed] [Google Scholar]
- 11.Zhang L, et al. Parallel mechanosensory pathways direct oviposition decision-making in Drosophila. Curr. Biol. 2020;30:3075–3088. doi: 10.1016/j.cub.2020.05.076. [DOI] [PubMed] [Google Scholar]
- 12.Schwartz NU, Zhong L, Bellemer A, Tracey WD. Egg laying decisions in Drosophila are consistent with foraging costs of larval progeny. PLoS ONE. 2012;7:e37910. doi: 10.1371/journal.pone.0037910. [DOI] [PMC free article] [PubMed] [Google Scholar]
- 13.Aranha MM, Vasconcelos ML. Deciphering Drosophila female innate behaviors. Curr. Opin. Neurobiol. 2018;52:139–148. doi: 10.1016/j.conb.2018.06.005. [DOI] [PubMed] [Google Scholar]
- 14.Bräcker LB, et al. Quantitative and discrete evolutionary changes in the egg-laying behavior of single Drosophila females. Front. Behav. Neurosci. 2019;13:118. doi: 10.3389/fnbeh.2019.00118. [DOI] [PMC free article] [PubMed] [Google Scholar]
- 15.Wang F, et al. Neural circuitry linking mating and egg laying in Drosophila females. Nature. 2020;579:101–105. doi: 10.1038/s41586-020-2055-9. [DOI] [PMC free article] [PubMed] [Google Scholar]
- 16.Takamura T. Behavior genetics of choice of oviposition sites in Drosophila melanogaster. IV. Differentiation of oviposition force in the melanogaster species sub-group. Jpn. J. Genet. 1984;59:71–81. doi: 10.1266/jjg.59.71. [DOI] [Google Scholar]
- 17.Vijayan, V., et al. A rise-to-threshold signal for a relative value deliberation. Preprint at bioRxiv10.1101/2021.09.23.461548 (2021).
- 18.Oliveira-Ferreira, C., Gaspar, M. & Vasconcelos, M. L. Neuronal control of suppression, initiation and completion of egg deposition in Drosophila melanogaster. Preprint at bioRxiv10.1101/2021.08.23.457359 (2021).
- 19.Chen PS, et al. A male accessory gland peptide that regulates reproductive behavior of female D. melanogaster. Cell. 1988;54:291–298. doi: 10.1016/0092-8674(88)90192-4. [DOI] [PubMed] [Google Scholar]
- 20.Feng K, Palfreyman MT, Häsemeyer M, Talsma A, Dickson BJ. Ascending SAG neurons control sexual receptivity of Drosophila females. Neuron. 2014;83:135–148. doi: 10.1016/j.neuron.2014.05.017. [DOI] [PubMed] [Google Scholar]
- 21.Häsemeyer M, Yapici N, Heberlein U, Dickson BJ. Sensory neurons in the Drosophila genital tract regulate female reproductive behavior. Neuron. 2009;61:511–518. doi: 10.1016/j.neuron.2009.01.009. [DOI] [PubMed] [Google Scholar]
- 22.Yang C, et al. Control of the postmating behavioral switch in Drosophila females by internal sensory neurons. Neuron. 2009;61:519–526. doi: 10.1016/j.neuron.2008.12.021. [DOI] [PMC free article] [PubMed] [Google Scholar]
- 23.Yapici N, Kim Y-J, Ribeiro C, Dickson BJ. A receptor that mediates the post-mating switch in Drosophila reproductive behaviour. Nature. 2008;451:33–37. doi: 10.1038/nature06483. [DOI] [PubMed] [Google Scholar]
- 24.McKellar CE, et al. Threshold-based ordering of sequential actions during Drosophila courtship. Curr. Biol. 2019;29:426–434. doi: 10.1016/j.cub.2018.12.019. [DOI] [PubMed] [Google Scholar]
- 25.Segalin C, et al. The mouse action recognition system (MARS) software pipeline for automated analysis of social behaviors in mice. eLife. 2021;10:e63720. doi: 10.7554/eLife.63720. [DOI] [PMC free article] [PubMed] [Google Scholar]
- 26.Bohnslav JP, et al. DeepEthogram, a machine learning pipeline for supervised behavior classification from raw pixels. eLife. 2021;10:e63377. doi: 10.7554/eLife.63377. [DOI] [PMC free article] [PubMed] [Google Scholar]
- 27.Berman GJ, Choi DM, Bialek W, Shaevitz JW. Mapping the stereotyped behaviour of freely moving fruit flies. J. R. Soc. Interface. 2014;11:20140672. doi: 10.1098/rsif.2014.0672. [DOI] [PMC free article] [PubMed] [Google Scholar]
- 28.Mathis A, et al. DeepLabCut: markerless pose estimation of user-defined body parts with deep learning. Nat. Neurosci. 2018;21:1281–1289. doi: 10.1038/s41593-018-0209-y. [DOI] [PubMed] [Google Scholar]
- 29.Tuthill JC, Wilson RI. Mechanosensation and adaptive botor control in insects. Curr. Biol. 2016;26:R1022–R1038. doi: 10.1016/j.cub.2016.06.070. [DOI] [PMC free article] [PubMed] [Google Scholar]
- 30.Bryant, P. J. in The Genetics and Biology of Drosophila (eds Ashburner, M. & Wright, T. R. F.) 255–260 (Academic Press, 1978).
- 31.Crava CM, et al. Structural and transcriptional evidence of mechanotransduction in the Drosophila suzukii ovipositor. J. Insect Physiol. 2020;125:104088. doi: 10.1016/j.jinsphys.2020.104088. [DOI] [PubMed] [Google Scholar]
- 32.Tsacas L. Fine structure and functioning of the ovipositor of Drosophila melanogaster Meigen (Diptera, Drosophilidae) Arch. de Zool. Exp. Génér. 1975;116:431–436. [Google Scholar]
- 33.Walker RG, Willingham AT, Zuker CS. A Drosophila mechanosensory transduction channel. Science. 2000;287:2229–2234. doi: 10.1126/science.287.5461.2229. [DOI] [PubMed] [Google Scholar]
- 34.Lee J, Moon S, Cha Y, Chung YD. Drosophila TRPN(= NOMPC) channel localizes to the distal end of mechanosensory cilia. PLoS ONE. 2010;5:e11012. doi: 10.1371/journal.pone.0011012. [DOI] [PMC free article] [PubMed] [Google Scholar]
- 35.Zhang W, et al. Ankyrin repeats convey force to gate the NOMPC mechanotransduction channel. Cell. 2015;162:1391–1403. doi: 10.1016/j.cell.2015.08.024. [DOI] [PMC free article] [PubMed] [Google Scholar]
- 36.Luan H, Peabody NC, Vinson CR, White BH. Refined spatial manipulation of neuronal function by combinatorial restriction of transgene expression. Neuron. 2006;52:425–436. doi: 10.1016/j.neuron.2006.08.028. [DOI] [PMC free article] [PubMed] [Google Scholar]
- 37.Pavlou HJ, et al. Neural circuitry coordinating male copulation. eLife. 2016;5:e20713. doi: 10.7554/eLife.20713. [DOI] [PMC free article] [PubMed] [Google Scholar]
- 38.Pfeiffer BD, et al. Refinement of tools for targeted gene expression in Drosophila. Genetics. 2010;186:735–755. doi: 10.1534/genetics.110.119917. [DOI] [PMC free article] [PubMed] [Google Scholar]
- 39.Tuthill JC, Wilson RI. Parallel transformation of tactile signals in central circuits of Drosophila. Cell. 2016;164:1046–1059. doi: 10.1016/j.cell.2016.01.014. [DOI] [PMC free article] [PubMed] [Google Scholar]
- 40.Kimura K, Sato C, Koganezawa M, Yamamoto D. Drosophila ovipositor extension in mating behavior and egg deposition involves distinct sets of brain interneurons. PLoS ONE. 2015;10:e0126445. doi: 10.1371/journal.pone.0126445. [DOI] [PMC free article] [PubMed] [Google Scholar]
- 41.Baines RA, Uhler JP, Thompson A, Sweeney ST, Bate M. Altered electrical properties in Drosophila neurons developing without synaptic transmission. J. Neurosci. 2001;21:1523–1531. doi: 10.1523/JNEUROSCI.21-05-01523.2001. [DOI] [PMC free article] [PubMed] [Google Scholar]
- 42.Asahina K, et al. Tachykinin-expressing neurons control male-specific aggressive arousal in Drosophila. Cell. 2014;156:221–235. doi: 10.1016/j.cell.2013.11.045. [DOI] [PMC free article] [PubMed] [Google Scholar]
- 43.Zhou Y, Cao L-H, Sui X-W, Guo X-Q, Luo D-G. Mechanosensory circuits coordinate two opposing motor actions in Drosophila feeding. Sci. Adv. 2019;5:eaaw5141. doi: 10.1126/sciadv.aaw5141. [DOI] [PMC free article] [PubMed] [Google Scholar]
- 44.Belanger JH, Orchard I. The role of sensory input in maintaining output from the locust oviposition digging central pattern generator. J. Comp. Physiol. A. 1992;171:495–503. doi: 10.1007/BF00194582. [DOI] [Google Scholar]
- 45.Jenett A, et al. A GAL4-driver line resource for Drosophila neurobiology. Cell Rep. 2012;2:991–1001. doi: 10.1016/j.celrep.2012.09.011. [DOI] [PMC free article] [PubMed] [Google Scholar]
- 46.Clark J, Lange AB. Evidence of a neural loop involved in controlling spermathecal contractions in Locusta migratoria. J. Insect Physiol. 2001;47:607–616. doi: 10.1016/S0022-1910(00)00149-9. [DOI] [PubMed] [Google Scholar]
- 47.Thomas A. Nervous control of egg progression into the common oviduct and genital chamber of the stick-insect Carausius morosus. J. Insect Physiol. 1979;25:811–823. doi: 10.1016/0022-1910(79)90084-2. [DOI] [Google Scholar]
- 48.Gou B, Liu Y, Guntur AR, Stern U, Yang C-H. Mechanosensitive neurons on the internal reproductive tract contribute to egg-laying-induced acetic acid attraction in Drosophila. Cell Rep. 2014;9:522–530. doi: 10.1016/j.celrep.2014.09.033. [DOI] [PMC free article] [PubMed] [Google Scholar]
- 49.Demerec, M. Biology of Drosophila (Wiley, 1950).
- 50.Court R, et al. A systematic nomenclature for the Drosophila ventral nerve cord. Neuron. 2020;107:1071–1079. doi: 10.1016/j.neuron.2020.08.005. [DOI] [PMC free article] [PubMed] [Google Scholar]
- 51.Tsubouchi A, et al. Topological and modality-specific representation of somatosensory information in the fly brain. Science. 2017;358:615–623. doi: 10.1126/science.aan4428. [DOI] [PubMed] [Google Scholar]
- 52.Zhang YQ, Rodesch CK, Broadie K. Living synaptic vesicle marker: synaptotagmin–GFP. Genesis. 2002;34:142–145. doi: 10.1002/gene.10144. [DOI] [PubMed] [Google Scholar]
- 53.Nicolai LJJ, et al. Genetically encoded dendritic marker sheds light on neuronal connectivity in Drosophila. Proc. Natl Acad. Sci. USA. 2010;107:20553–20558. doi: 10.1073/pnas.1010198107. [DOI] [PMC free article] [PubMed] [Google Scholar]
- 54.Chen T-W, et al. Ultrasensitive fluorescent proteins for imaging neuronal activity. Nature. 2013;499:295–300. doi: 10.1038/nature12354. [DOI] [PMC free article] [PubMed] [Google Scholar]
- 55.Chen C-L, et al. Imaging neural activity in the ventral nerve cord of behaving adult Drosophila. Nat. Commun. 2018;9:4390. doi: 10.1038/s41467-018-06857-z. [DOI] [PMC free article] [PubMed] [Google Scholar]
- 56.Klapoetke NC, et al. Independent optical excitation of distinct neural populations. Nat. Methods. 2014;11:338–346. doi: 10.1038/nmeth.2836. [DOI] [PMC free article] [PubMed] [Google Scholar]
- 57.Daniels RW, et al. Increased expression of the Drosophila vesicular glutamate transporter leads to excess glutamate release and a compensatory decrease in quantal content. J. Neurosci. 2004;24:10466–10474. doi: 10.1523/JNEUROSCI.3001-04.2004. [DOI] [PMC free article] [PubMed] [Google Scholar]
- 58.Jan, L. Y. & Jan, Y. N. l-glutamate as an excitatory transmitter at the Drosophila larval neuromuscular junction. J. Physiol.262, 215–236 (1976). [DOI] [PMC free article] [PubMed]
- 59.Mohammad F, et al. Optogenetic inhibition of behavior with anion channelrhodopsins. Nat. Methods. 2017;14:271–274. doi: 10.1038/nmeth.4148. [DOI] [PubMed] [Google Scholar]
- 60.Tinbergen N. Über die orientierung des bienenwolfes II. Die bienenjagd. Z. Vgl. Phys. 1935;21:699–716. doi: 10.1007/BF00340916. [DOI] [Google Scholar]
- 61.Auer TO, et al. Olfactory receptor and circuit evolution promote host specialization. Nature. 2020;579:402–408. doi: 10.1038/s41586-020-2073-7. [DOI] [PMC free article] [PubMed] [Google Scholar]
- 62.Atallah J, Teixeira L, Salazar R, Zaragoza G, Kopp A. The making of a pest: the evolution of a fruit-penetrating ovipositor in Drosophila suzukii and related species. Proc. Biol. Sci. 2014;281:20132840. doi: 10.1098/rspb.2013.2840. [DOI] [PMC free article] [PubMed] [Google Scholar]
- 63.Seeholzer LF, Seppo M, Stern DL, Ruta V. Evolution of a central neural circuit underlies Drosophila mate preferences. Nature. 2018;559:564–569. doi: 10.1038/s41586-018-0322-9. [DOI] [PMC free article] [PubMed] [Google Scholar]
- 64.Ding Y, et al. Neural evolution of context-dependent fly song. Curr. Biol. 2019;29:1089–1099. doi: 10.1016/j.cub.2019.02.019. [DOI] [PubMed] [Google Scholar]
- 65.Ding Y, Berrocal A, Morita T, Longden KD, Stern DL. Natural courtship song variation caused by an intronic retroelement in an ion channel gene. Nature. 2016;536:329–332. doi: 10.1038/nature19093. [DOI] [PubMed] [Google Scholar]
- 66.Anderson DJ. Circuit modules linking internal states and social behaviour in flies and mice. Nat. Rev. Neurosci. 2016;17:692–704. doi: 10.1038/nrn.2016.125. [DOI] [PubMed] [Google Scholar]
- 67.Saper CB, Lowell BB. The hypothalamus. Curr. Biol. 2014;24:R1111–R1116. doi: 10.1016/j.cub.2014.10.023. [DOI] [PubMed] [Google Scholar]
- 68.Sternson SM. Hypothalamic survival circuits: blueprints for purposive behaviors. Neuron. 2013;77:810–824. doi: 10.1016/j.neuron.2013.02.018. [DOI] [PMC free article] [PubMed] [Google Scholar]
- 69.Swanson, L. W. Brain Architecture: Understanding the Basic Plan (Oxford Univ. Press, 2012).
- 70.Deutsch D, et al. The neural basis for a persistent internal state in Drosophila females. eLife. 2020;9:e59502. doi: 10.7554/eLife.59502. [DOI] [PMC free article] [PubMed] [Google Scholar]
- 71.Schretter CE, et al. Cell types and neuronal circuitry underlying female aggression in Drosophila. eLife. 2020;9:e58942. doi: 10.7554/eLife.58942. [DOI] [PMC free article] [PubMed] [Google Scholar]
- 72.Kohatsu S, Koganezawa M, Yamamoto D. Female contact activates male-specific interneurons that trigger stereotypic courtship behavior in Drosophila. Neuron. 2011;69:498–508. doi: 10.1016/j.neuron.2010.12.017. [DOI] [PubMed] [Google Scholar]
- 73.Clowney EJ, Iguchi S, Bussell JJ, Scheer E, Ruta V. Multimodal chemosensory circuits controlling male courtship in Drosophila. Neuron. 2015;87:1036–1049. doi: 10.1016/j.neuron.2015.07.025. [DOI] [PMC free article] [PubMed] [Google Scholar]
- 74.Wang K, et al. Neural circuit mechanisms of sexual receptivity in Drosophila females. Nature. 2021;589:577–581. doi: 10.1038/s41586-020-2972-7. [DOI] [PubMed] [Google Scholar]
- 75.Grillner S. Biological pattern generation: the cellular and computational logic of networks in motion. Neuron. 2006;52:751–766. doi: 10.1016/j.neuron.2006.11.008. [DOI] [PubMed] [Google Scholar]
- 76.Harris RM, Pfeiffer BD, Rubin GM, Truman JW. Neuron hemilineages provide the functional ground plan for the Drosophila ventral nervous system. eLife. 2015;4:e04493. doi: 10.7554/eLife.04493. [DOI] [PMC free article] [PubMed] [Google Scholar]
- 77.Marder E, Bucher D, Schulz DJ, Taylor AL. Invertebrate central pattern generation moves along. Curr. Biol. 2005;15:R685–R699. doi: 10.1016/j.cub.2005.08.022. [DOI] [PubMed] [Google Scholar]
- 78.Büschges A, Scholz H, El Manira A. New moves in motor control. Curr. Biol. 2011;21:R513–R524. doi: 10.1016/j.cub.2011.05.029. [DOI] [PubMed] [Google Scholar]
- 79.Bidaye SS, Machacek C, Wu Y, Dickson BJ. Neuronal control of Drosophila walking direction. Science. 2014;344:97–101. doi: 10.1126/science.1249964. [DOI] [PubMed] [Google Scholar]
- 80.Cande J, et al. Optogenetic dissection of descending behavioral control in Drosophila. eLife. 2018;7:e34275. doi: 10.7554/eLife.34275. [DOI] [PMC free article] [PubMed] [Google Scholar]
- 81.Hsu CT, Bhandawat V. Organization of descending neurons in Drosophila melanogaster. Sci. Rep. 2016;6:20259. doi: 10.1038/srep20259. [DOI] [PMC free article] [PubMed] [Google Scholar]
- 82.Lemon RN. Descending pathways in motor control. Annu. Rev. Neurosci. 2008;31:195–218. doi: 10.1146/annurev.neuro.31.060407.125547. [DOI] [PubMed] [Google Scholar]
- 83.Namiki S, Dickinson MH, Wong AM, Korff W, Card GM. The functional organization of descending sensory-motor pathways in Drosophila. eLife. 2018;7:e34272. doi: 10.7554/eLife.34272. [DOI] [PMC free article] [PubMed] [Google Scholar]
Associated Data
This section collects any data citations, data availability statements, or supplementary materials included in this article.
Supplementary Materials
Data Availability Statement
Data from this study are available at https://github.com/axellaboratory/Cury_and_Axel_2023 and upon request. Trained pose estimation models and the supervised behavioral classifier can be accessed via Dropbox (https://www.dropbox.com/sh/jh4422f3ld95j1a/AAAHVb-pFsmcEk40BgSHm1TEa?dl=0).
Code used for processing the data is available at https://github.com/axellaboratory/Cury_and_Axel_2023.