Abstract
Romantic engagement can bias sensory perception. This ‘love blindness’ reflects a common behavioural principle across organisms: favouring pursuit of a coveted reward over potential risks1. In the case of animal courtship, such sensory biases may support reproductive success but can also expose individuals to danger, such as predation2,3. However, how neural networks balance the trade-off between risk and reward is unknown. Here we discover a dopamine-governed filter mechanism in male Drosophila that reduces threat perception as courtship progresses. We show that during early courtship stages, threat-activated visual neurons inhibit central courtship nodes via specific serotonergic neurons. This serotonergic inhibition prompts flies to abort courtship when they see imminent danger. However, as flies advance in the courtship process, the dopaminergic filter system reduces visual threat responses, shifting the balance from survival to mating. By recording neural activity from males as they approach mating, we demonstrate that progress in courtship is registered as dopaminergic activity levels ramping up. This dopamine signalling inhibits the visual threat detection pathway via Dop2R receptors, allowing male flies to focus on courtship when they are close to copulation. Thus, dopamine signalling biases sensory perception based on perceived goal proximity, to prioritize between competing behaviours.
Similar content being viewed by others
Main
Every day animals make decisions that require balancing opportunities and risks. This trade-off has been explored in humans4,5, rodents6,7 and invertebrates8,9,10,11,12,13,14. However, we still lack a detailed mechanistic understanding of how conflict is resolved in the brain, particularly when the dangers and benefits are crucial life choices.
One especially important trade-off is between survival and reproduction. Avoiding threats can be a life-saving decision, but excessive caution might result in missed mating opportunities. Recent work has revealed how sex drive and threat avoidance are independently signalled in the brain15,16,17,18,19,20,21, yet it remains unclear how these needs are prioritized when they are in conflict. How animals suppress courtship when it is better to run away, and how this is reversed when the rewards of courtship outweigh the risk of predation (for example, if mating is imminent) still remain unknown.
Dopamine is a key player in motivation, need and reward22,23,24. Beyond these functions, dopamine is thought to relay the value of sensory input and internal/behavioural states to decision-making centres, thus adapting behaviour23,25,26. Yet, how dopamine dynamically modulates sensory valence and influences decision-making during conflict remains poorly understood. This task could be mediated through sensory filter systems27, which block superfluous inputs and highlight relevant information to facilitate appropriate behaviours. Such filtering systems could thus serve as a means to shut down competing sensory inputs when animals are close to achieving a crucial goal. Here we describe a state-dependent filter system driven by dopamine that allows Drosophila males to filter out external threats and focus on courtship when they are close to mating.
Visual threats block courtship via LC16
Drosophila males engage in a series of stereotyped, progressive courtship steps to achieve copulation17 (Fig. 1a and Supplementary Videos 1 and 2). If the female is receptive, the male typically exhibits strong courtship motivation16,19,28, persisting until copulation is achieved. Yet, what happens when the urge to court is fraught with risk?
To dissect the neural circuitry that prioritizes between sex and survival, we established a sex–danger conflict assay, in which courting Drosophila males were presented with a visual threat: a predator-like moving shadow29 (Fig. 1b). Indeed, in the absence of females, the threat caused males to show defensive responses such as running away and freezing29 (Extended Data Fig. 1a,b). To eliminate confounding effects of female behaviour, we used immobile virgin females. As expected, in the absence of the threat, wild-type males vigorously courted the females and showed low defensive behaviours (Fig. 1c, Extended Data Fig. 1c and Supplementary Video 1). However, upon threat presentation, males immediately halted courtship and engaged in defensive responses (Fig. 1c, Extended Data Fig. 1c and Supplementary Videos 3 and 4).
We next asked which neurons detect the visual threat. Lobular columnar (LC) visual projection neurons connect early visual processing with central brain areas and respond to conspecifics and motion cues15,20,21,30. We therefore hypothesized that LC neurons might detect and convey visual threats to higher brain centres to inhibit courtship. Indeed, we found that LC16 neurons20,31 were required to prioritize defensive responses over courtship (Fig. 1d,e and Extended Data Fig. 1d). When LC16 neurons were silenced by expression of tetanus toxin light chain (TNT), males courted the female despite the threat (Fig. 1e and Extended Data Fig. 1d). Conversely, when LC16 neurons were optogenetically activated using CsChrimson in the absence of the threat, males stopped courting, mimicking the effect of the visual threat (Fig. 1f and Extended Data Fig. 1e). Blocking LC16 synaptic output disrupted visual threat responses in solitary males (Extended Data Fig. 1f) but did not alter responses to mechanical threats in courting males (Extended Data Fig. 1g). Males with silenced LC16 neurons showed normal courtship behaviours in the absence of threats (Fig. 1e, grey plot). Therefore, LC16 neurons suppress courtship in response to visual threats by modulating courtship-related circuits, rather than directly controlling courtship.
LC16 neurons are sensitive to both looming cues and moving bars20,32. To verify that LC16 neurons can also perceive the moving shadow stimulus, we performed in vivo two-photon calcium imaging (Fig. 1g). Visual threats induced substantial calcium influx in LC16 neurons, whereas non-threat stimuli such as light-only controls or female sensory cues did not (Fig. 1h,i, Extended Data Fig. 1h and Supplementary Table 2). Together, our findings show that LC16 neurons detect visual threats and prompt the flies to cease courtship and engage in defensive actions.
Prioritizing survival requires 5-HT
Previous research in fish and mammals has shown that serotonin (5-HT) signalling is increased by stress and modulates predator-associated fight-or-flight responses33,34. Therefore, we postulated that inhibition of courtship could be driven by 5-HT signalling. To test this hypothesis, we either silenced all 5-HT neurons or blocked 5-HT synthesis altogether using RNA interference (RNAi) against tryptophan hydroxylase (TRH), an enzyme required for 5-HT synthesis. In both cases, the threat did not increase walking speed in solitary males or stop courtship in males paired with females (Extended Data Fig. 2a–f). By contrast, optogenetically activating 5-HT neurons stopped courtship in the absence of the threat (Extended Data Fig. 2g,h). These experiments indicate that 5-HT neurons are important for prioritizing escape over courtship in response to visual threats.
5-HT inhibits central courtship nodes
In our search for the neurons involved in the courtship–escape choice, we examined the P1 cluster, a central mating regulation hub that initiates courtship in response to female sensory cues and internal states15,17,19,28,35,36 (Fig. 2a). Given that P1 neurons integrate other competing drives9,36,37,38, we hypothesized that they may also regulate the courtship–escape choice. Indeed, optogenetically activating P1 neurons in males during the exposure to the visual threat caused them to continue to court, overriding the threat response (Fig. 2b and Extended Data Fig. 3a). This result suggests that visual threats might block courtship by inhibiting P1 neurons.
Using the female Drosophila connectome39, we identified a 5-HT neuron (5-HTPMPD01) in the posterior medial dorsal (PMPD) cluster (Fig. 2c,d) that receives input from LC16 neurons through an intermediate neuron and that in turn synapses onto pC1, the female equivalent of P1 (Fig. 2c). Although the same connection is not guaranteed to exist on male P1 neurons, thanks to the sexual dimorphism of pC1/P1, these connectome data made 5-HTPMPD neurons attractive candidates for carrying threat signals from LC16 to P1.
To assess whether LC16 and 5-HTPMPD neurons are functionally connected, we optogenetically activated LC16 and monitored 5-HTPMPD responses by GCaMP6s calcium imaging (Fig. 2e). LC16 stimulation reliably increased the GCaMP6s signal in 5-HTPMPD neurons (Fig. 2e), whereas light stimulation in flies lacking CsChrimson had a slight but not significant effect (Extended Data Fig. 3b and Supplementary Table 2), placing the 5-HTPMPD cluster downstream of threat detecting neurons. Furthermore, threat exposure triggered significant calcium influx in 5-HTPMPD neurons (Fig. 5k), similar to the threat response of LC16 neurons.
To test the role of 5-HTPMPD neurons in threat-induced suppression of courtship, we used a split-GAL4 (TRHR23E12) targeting the 5-HTPMPD cluster and a subset of 5-HTLP neurons40 (Fig. 2d). Blocking TRHR23E12 synaptic output prevented solitary males from escaping threats (Extended Data Fig. 3c), implicating them in defensive responses. We further found that silencing TRHR23E12 neurons by either expressing TNT or knocking down the gene encoding the TRH enzyme led to persistent courtship activity in the presence of either a visual threat (Fig. 2f and Extended Data Fig. 3d–f) or a mechanical threat (Extended Data Fig. 1g). By contrast, optogenetic activation of TRHR23E12 in the absence of the threat caused male flies to terminate courtship and exhibit defensive behaviours (Fig. 2g and Extended Data Fig. 3g). Together, these data suggest that TRHR23E12 neurons may integrate threats of different modalities to act as general effectors of threat responses.
We next sought to identify the 5-HT receptor (or receptors) involved in inhibiting courtship. Drosophila have five highly conserved 5-HT G protein-coupled receptors (GPCRs)41. We individually downregulated each 5-HT receptor in P1 neurons using RNAi. Knocking down 5-HT1A, 5-HT2A or 5-HT1B did not significantly affect threat responses (Extended Data Fig. 3h). However, flies deficient in either 5-HT7 or 5-HT2B receptors in P1 responded less to the threat and showed higher courtship levels than controls (Fig. 2h and Extended Data Fig. 3h). Given that knocking down 5-HT7 gave the strongest phenotype, we focused our analysis on this receptor. In live-imaging experiments, applying 5-HT to the brain decreased GCaMP6s fluorescence in P1 neurons (Fig. 2i), an inhibitory effect that was abolished by decreasing 5-HT7 expression in P1 (Fig. 2j and Supplementary Table 2). These experiments suggest that 5-HT suppresses courtship by inhibiting P1 cells via 5-HT7 (note that we do not exclude a role for 5-HT2B).
Although Drosophila 5-HT7 can act as an excitatory receptor by increasing intracellular cAMP, the same GPCR can be excitatory or inhibitory depending on the associated G protein and the cell type41,42,43. To investigate the mechanism by which 5-HT7 triggers inhibition, we downregulated different G proteins and evaluated behavioural responses. Knocking down the inhibitory Gαi protein in P1 neurons prevented males from prioritizing defensive responses over courtship (Extended Data Fig. 3i) and abolished the inhibitory effect of 5-HT on P1 calcium activity (Extended Data Fig. 3j and Supplementary Table 2). Knocking down either 5-HT7 or Gαi in P1 neurons did not affect the response of solitary males to the threat (Extended Data Fig. 3k). These findings collectively suggest that, in response to visual threats, 5-HT inhibits P1 via 5-HT7–Gαi signalling, thereby suppressing courtship.
Given that inhibiting P1 suppresses courtship only transiently16, we reasoned that other neurons are involved in sustaining the threat-induced inhibition of courtship. One potential candidate is plP10 descending neurons, which target the wing motor region in the ventral nerve cord and are crucial for courtship song44 (Fig. 2k). Indeed, optogenetic activation of plP10 resulted in high, sustained courtship levels throughout threat delivery (Extended Data Fig. 4a,b), whereas optogenetic inhibition of plP10 via GtACR1 in the absence of the threat robustly suppressed courtship (Extended Data Fig. 4c,d).
We next asked whether — as with P1 neurons — plP10-mediated courtship inhibition is serotonergic. Knocking down the 5-HT2B receptor in plP10 neurons by RNAi resulted in males continuing courtship despite the threat (Fig. 2l and Extended Data Fig. 4e), although it did not affect defensive behaviours in solitary males (Extended Data Fig. 4f). Knocking down other 5-HT receptors did not significantly affect the behavioural choice (Extended Data Fig. 4e). In calcium imaging experiments, 5-HT application significantly decreased the activity of plP10 neurons (Fig. 2m), an inhibitory effect that was abolished by reducing 5-HT2B expression in plP10 neurons (Fig. 2n and Supplementary Table 2). Together, these results show that 5-HT inhibits plP10 neurons via 5-HT2B.
Like 5-HT7, 5-HT2B is not considered to be an inhibitory receptor41. To elucidate how 5-HT2B can inhibit plP10, we downregulated different G proteins. Depleting the inhibitory Gαo protein — but not Gαi — from plP10 neurons prevented males from prioritizing escape responses over courtship (Extended Data Fig. 4g) and abolished the inhibitory effect of 5-HT on plP10 calcium activity (Extended Data Fig. 4h and Supplementary Table 2). Together, these findings suggest that 5-HT2B inhibits plP10 via Gαo.
Although direct evidence for connections between 5-HTPMPD, P1 and plP10 neurons awaits confirmation, our findings suggest a model in which, upon threat detection, LC16 neurons activate 5-HTPMPD neurons via an intermediate neuron. The threat-driven release of 5-HT inhibits P1 and plP10 neurons, allowing flies to prioritize survival over sex (Fig. 2o). Of note, threat-driven inhibition of courtship was not fully prevented by blocking serotonergic signalling to either P1 or plP10 individually (Fig. 2h,l), indicating that either serotonergic pathway acting alone can partially suppress courtship upon threat detection.
Males ignore threats late in courtship
Our findings show that male flies abort courtship in response to threats presented directly after courtship onset. We next asked whether this is also the case in advanced stages, when they have already invested in courtship and are probably closer to achieving mating. Indeed, previous research has shown that the value of sensory information can be influenced by ongoing behaviour and the internal state15,22,23,25,26. Therefore, to test whether male flies respond differently to the visual threat at advanced stages, we delivered the visual threat at progressive courtship stages (Fig. 3a). As males advanced further in the courtship process, the threat became less effective at making them stop courting and show defensive behaviours (Fig. 3b,c and Extended Data Fig. 5a,b). Moreover, copulating male flies completely ignored visual threats, even after sperm transfer (Extended Data Fig. 5c,d), in contrast to heat-shock threats, which do terminate copulation after sperm transfer10. These results collectively suggest that as courtship progresses, males become increasingly unresponsive to visual threats.
Female flies signal acceptance and readiness to copulate by ceasing rejection behaviours and slowing down, allowing the male to bend its abdomen and mount them. Thus, abdomen bending may indicate proximity to expected copulation17. We asked whether the late-courtship reduction in threat response was linked to the execution of advanced courtship steps. Indeed, males engaged in abdomen bending before threat presentation were less likely to interrupt courtship, regardless of when the threat was delivered (Fig. 3d and Supplementary Video 5). In line with this, optogenetically inducing abdomen bending by activating a small subset of abdominal ganglion neurons (OvAbg)45 also diminished threat responses (Fig. 3e). Crucially, silencing OvAbg neurons made flies reduce courtship in response to the threat even during late courtship stages, indicating that OvAbg activity is required for late-courtship males to ignore the threat (Fig. 3f).
Dopamine ramps up during courtship
Having established that males become less responsive to threats as they advance in their courtship, we next explored how courtship progress is integrated within the neural circuitry that arbitrates between courtship and escape. Dopamine is linked with behaviour engagement and the perceived value and distance of a reward22,26,46,47. We therefore speculated that courtship progress might correlate with changes in dopamine neuron activity. To test this notion, we focused on dopamine neurons labelled by TH-C1-GAL4, some of which have been shown to modulate mating drive19 (Fig. 4a, Extended Data Fig. 7d and Supplementary Table 3). Activation of TH-C1 neurons during early courtship caused males to ignore threats and continue courting the female, although it did not affect courtship or visual threat detection per se (Fig. 4b and Extended Data Fig. 6a–c).
We thus asked whether TH-C1 dopamine activity might change with courtship progress. We developed a method for tracking neural activity as a male fly progresses through courtship under a two-photon microscope (Supplementary Video 6). When exposed to a virgin immobile female, tethered males displayed early and late courtship steps (for example, tapping, licking and abdomen bending). During the final 80 s of the experimental time window, males showed an increase in late courtship actions, such as abdomen bending (Extended Data Fig. 6d,e and Supplementary Video 6). GCaMP7b recordings revealed a gradual increase in calcium signal during courtship progression in a group of approximately seven dopamine neurons per hemisphere, named protocerebral posterior medial 1/2 (PPM1/2; Fig. 4c). This increase was absent when the focal male was paired with another male, which elicited minimal abdomen bending events (Extended Data Fig. 6f and Supplementary Table 2). The PPM1/2 calcium signal returned to baseline when the female was moved away (Extended Data Fig. 6g). In contrast to the ramping PPM1/2 signal, the GCaMP7b signal did not increase in adjacent cell bodies located in the same focal plane, or in TH-C1+PAL dopamine neurons (linked to mating drive19) or in TH-C1+PAM dopamine neurons (involved in courtship reward48) (Extended Data Fig. 6g–i and Supplementary Table 2). Together, these findings suggest that the calcium ramping observed in PPM1/2 neurons is specific to courtship progression.
In line with our behavioural findings, ramping PPM1/2 calcium levels were correlated with abdomen bending (Fig. 4c, bottom right, and Extended Data Fig. 6j), suggesting a direct link between abdomen bending and dopamine activity. Indeed, PPM1/2 calcium signals increased during courtship even in males with immobilized probiscises or legs, indicating that PPM1/2 is not driven by licking or tapping the female (Extended Data Fig. 6k,l, Supplementary Table 2 and Supplementary Videos 8 and 9; note that males do not display wing vibrations in our setup, see Methods for details). Moreover, PPM1/2 activity was increased by stimulation of abdomen bending via OvAbg activation in solitary males (Fig. 4d, top). This effect was dose dependent, as dopamine ramping was observed after prolonged LED stimulation, which elicited 4–7 bending events, but not short LED stimulation, which elicited 0–3 bending events (Fig. 4d, middle and bottom panels, Extended Data Fig. 6m and Supplementary Table 2). Of note, males exhibited abdominal bending events even after the long LED stimulation ceased, suggesting that this ongoing behaviour may sustain elevated PPM1/2 calcium levels (Extended Data Fig. 6m). Our findings indicate that PPM1/2 dopamine ramping is primarily driven by abdomen bending during courtship progression.
The dopamine activity ramp could be driven by either sensory information triggered by the abdomen-bending action (proprioception) or the predictive signal in anticipation of this movement (efferent copy). To address this, we immobilized the abdomen of males, preventing males from bending it while preserving other courtship behaviours such as tapping and licking (Fig. 4e, Extended Data Fig. 6n and Supplementary Video 6). Following this manipulation, the GCaMP7b signal in PPM1/2 neurons did not show the expected ramping behaviour. Instead, PPM1/2 activity decreased significantly over time (Fig. 4e and Supplementary Table 2), suggesting that proprioceptive feedback from abdomen bending, rather than efferent copy from a command circuit, is required to ramp up dopamine activity in PPM1/2 neurons. Consistent with these findings, dopamine ramping triggered by optogenetic activation of OvAbg neurons only occurred when solitary males were physically able to bend their abdomen (Fig. 4d, top and bottom panel, and Supplementary Table 2). These findings predict that late-courtship abdomen bending suppresses LC16 visual threat responses. Indeed, in live-imaging experiments, we found that LC16 neurons responded to threats in solitary males and during early courtship (Fig. 4f, first and second panels) but not during late courtship (Fig. 4f, third panel). Of note, when abdomen bending was mechanically blocked, LC16 threat calcium responses during late courtship were restored (Fig. 4f, fourth panel and Supplementary Table 2). Together, our findings indicate that abdomen bending ramps up dopaminergic activity levels, which integrate proprioceptive feedback and ultimately induce a late-courtship state.
Dopamine blocks visual threat detection
We next asked how increased dopamine levels might translate courtship progression into reduced threat responses. Using the female connectome39, we found that LC16 neurons receive direct input from PPM1/2 at their axon terminals but not from other dopaminergic clusters (Fig. 5a). Thus, we hypothesized that PPM1/2 neurons directly modulate the perception of visual threats.
To functionally test the PPM1/2–LC16 connection, we imaged dopamine release onto LC16 presynaptic terminals using a GPCR activation-based dopamine (GRABDA) sensor49. We found a steady increase in GRABDA fluorescence in males paired with a female, indicating a gradual increase in dopamine release onto LC16 presynaptic terminals (Fig. 5b), consistent with the steady increase in PPM1/2 activity (Fig. 4c). This dopamine ramping was not observed in males paired with another male (Extended Data Fig. 7a and Supplementary Table 2). These findings suggest that the gradual release of dopamine onto LC16 may help to reduce responses of LC16 axonal terminals to visual threats during courtship progress.
To directly test whether dopamine shuts down visual threat responses in LC16 neurons, we recorded activity in LC16 presynaptic terminals during threat delivery while simultaneously administering dopamine. Not only did application of dopamine reduce LC16 baseline calcium activity (Extended Data Fig. 7b) but it also completely suppressed the threat-driven LC16 response (Fig. 5c,d and Supplementary Table 2). Moreover, focal injection of dopamine using a micropipette directly onto LC16 presynaptic terminals caused a robust decrease in LC16 calcium activity, suggesting axo-axonal inhibition of LC16 output by dopamine (Extended Data Fig. 7c). In addition, optogenetically stimulating PPM1/2 dopamine neurons gradually decreased the GCaMP6s signal in LC16 neurons (Fig. 5e–g and Supplementary Table 2) and — consistent with dopamine administration — reduced threat responses in LC16 (Extended Data Fig. 7e and Supplementary Table 2).
This dopamine-induced inhibition seems to act through dopamine D2-like receptors (Dop2R), as expressing Dop2R-RNAi in LC16 neurons partially rescued the threat response and prevented LC16 inhibition by focal dopamine injection (Fig. 5h and Extended Data Fig. 7c). We confirmed Dop2R expression in LC16 using reconstitution of split-GFP, in which we tagged endogenous Dop2R with spGFP11 and expressed cytoplasmic spGFP1–10 under LC16 split-GAL4 (Fig. 5i and Extended Data Fig. 7f). Reconstituted GFP signal was significantly higher than in split-GFP1–10-only controls in LC16 presynapses, but not in LC16 cell bodies (Fig. 5i and Extended Data Fig. 7f), indicating that Dop2R receptors are localized in the axon terminals, proximal to PPM1/2 neurons. Crucially, when flies expressing Dop2R-RNAi in LC16 neurons were tested in the behavioural assay, their behaviour shifted from courtship to defensive responses during late courtship stages (Fig. 5j). Our findings predict that dopaminergic inhibition of outgoing activity from LC16 neurons would prevent 5-HTPMPD neuronal responses to the visual threat. Indeed, we found that although 5-HTPMPD activity increased following threat delivery (Fig. 5k), this response was abolished by adding dopamine (Fig. 5l and Supplementary Table 2). Moreover, this dopamine-driven inhibition of 5-HTPMPD threat responses was in turn blocked by knocking down Dop2R in LC16–GAL4 neurons (Extended Data Fig. 7g).
Together, our findings suggest that dopamine signalling from PPM1/2 acts through Dop2R to shut down LC16-mediated threat detection, allowing males to persist in courtship despite the presence of a threat.
Discussion
Amorous adventures can lead us to pursue risky actions. This ‘love blind’ state emerges from a fundamental function of life: weighing up risks against opportunities1. Our study showcases this balancing act by demonstrating that imminent mating success disrupts threat perception in Drosophila males, rendering them ‘love blind’. We have shown that, upon detecting a visual threat, LC16 visual neurons trigger 5-HT-mediated inhibition of key courtship nodes (P1 and plP10), prompting flies to abort courtship (Fig. 2o). However, as courtship progresses (as reported by abdomen bending), the activity within PPM1/2 dopamine neurons gradually increases. PPM1/2 activity in turn suppresses LC16 activity, allowing flies to persist in courtship and ignore external threats when close to mating (Fig. 5m). Thus, risk–benefit arbitration is dynamically modulated by goal proximity and is under dopaminergic control.
Similar examples of risk–reward trade-offs abound in the animal kingdom. Animals become less risk-averse when the opportunity cost of dying (foregone future mating opportunities) is lower or the expected reproductive rewards are higher. For example, male mice become less afraid of predator odours after smelling oestrous female odours2, while male moths following pheromone plumes ignore ultrasound cues that simulate an approaching bat3. Our results provide a mechanistic framework for these classic ethological questions by revealing how risk versus reward trade-offs are calculated based on mating success.
Our study suggests that abdomen bending triggers a late-courtship state via proprioceptive feedback ramping up dopaminergic activity. PPM1/2 neurons do not necessarily respond to discrete abdominal-bending events with phasic, time-locked responses. Instead, the observed gradual ramping of PPM1/2 activity suggests that PPM1/2 neurons integrate proprioceptive inputs over time, leading to a gradual increase in tonic calcium levels. We propose that this gradual rise in calcium activity within dopaminergic neurons stems from the continued integration of both female sensory cues and proprioceptive feedback from abdominal bending. It will be interesting to test candidate biophysical mechanisms underlying this integration, such as neuromodulatory regulation of spontaneous activity and intrinsic excitability50, in future studies.
In addition to dopamine ramping suppressing threat detection, other parallel modulatory mechanisms might work together to prioritize courtship when copulation is imminent. Indeed, PPM1/2 activation prevents threat responses in courting males but not in solitary males, suggesting that PPM1/2 inhibits but does not entirely silence LC16 output, such that the reduced output can still drive escape behaviour in solitary males but cannot outcompete courtship drive. Parallel mechanisms might reduce serotonergic threat responses or reduce the sensitivity of central courtship nodes to serotonergic inhibition. For example, sexual arousal due to increased P1 activity gates the perception of female-related visual cues during courtship15; after courtship begins, P1 activity is thought to be sustained by recurrent activation, facilitated by dopamine released from SMPa neurons16,19,28 (although P1 activity does not ramp up in the way PPM1/2 neurons do51). Future experiments should test whether this recurrent activity is facilitated by the same PPM1/2 neurons that ramp up as courtship progresses.
Studies in mammals have reported dopamine ramping in diverse behavioural trials that lead to reward, including goal-directed navigation and multi-step tasks24,25,46,47. Such ramping release profiles have been proposed to supply the motivational drive required to sustain goal pursuit, as they scale with distance to reward25,46,47,52,53,54. Our study showed that in addition to its well-established role in encoding reward expectation23,24, dopamine ramping also serves as a gradual sensory filter system, which shuts down the visual threat pathway as courtship progresses. This mechanism would put animals in a ‘love blind’ state, allowing them to pursue their reproductive goal despite the danger.
Dopaminergic modulation of sensory signalling has been shown in many species. In lampreys and zebrafish, dopaminergic neurons modulate responses to visual features such as looming cues55,56. In rodents, dopamine influences subcortical responses to unexpected auditory stimuli57. In humans, antipsychotic drugs are thought to act on D2-like receptors58, the mammalian homologue of Dop2R, suggesting that D2-like receptors may have a common role in top-down regulation of sensory perception, whether in generating hallucinations or ignoring visual threats. Given the striking similarities in the cellular biology of dopamine neurons across species26,57,58,59,60, dopamine-mediated filter systems may be a general mechanism for blocking sensory cues that compete with more important goals.
Methods
Resource availability
Requests for additional information and reagents should be addressed to the lead author (C.R.). All data generated in this paper can be shared on request.
Fly husbandry and strains
Flies were reared at 25 °C or 30 °C for RNAi experiments, with 40–50% humidity on a standard cornmeal-agar food in a 12-h light–dark cycle. Canton-S (CS) strain flies were used as wild type. Flies were sorted under CO2 anaesthesia within 6 h of emergence and housed in same-sex groups of 20, except for the males that were to be tested in the behavioural experiments, which were kept in groups of 4 per vial. Virgin females for the behavioural experiments were collected using the hs-hid conditional virginator transgenic line. L3 larvae were heat shocked at 37 °C for 1.5 h. Additional strains used and their sources61,62,63,64,65,66,67,68,69 are outlined in Supplementary Table 3.
Trans-retinal food
Trans-retinal (R2500-100MG, CAS number: 116-31-4, Sigma-Aldrich) was stored at –20 °C as a 50 mM stock solution diluted in ethanol and wrapped in foil. To blend retinal homogeneously into the food, 60 μl of stock solution was directly pipetted into 6-ml vials of liquid cornmeal-yeast food except for the experiment in Fig. 3e in which OvAbg flies were not exposed to food supplemented with trans-retinal factor.
Behaviour
Threat setup
Experiments were recorded at 27 frames per second using a Mako U-130B camera mounted with an infrared filter (BP735-40.5, Midopt). The visual threat was generated by repeatedly passing a 13 cm × 6 cm × 2 cm 3D-printed opaque oblong paddle through a blue-light beam (455 nm). This created an overhead shadow at periodic intervals of 0.3 Hz for 30 s. The paddle was set 5 cm above the courtship chambers (∅20 mm, 5 mm) at a 90o angle on a servo motor controlled by a custom-built Arduino code, which controlled the movement parameters of the paddle (frequency set to 0.3 Hz and number of cycles set to 9). The mechanical threat was generated using a Sony XP500-X speaker playing a loud 3-Hz binaural beat (https://www.youtube.com/watch?v=Y-urmCRs61I&t=713s) causing surface vibrations. Courtship chambers were illuminated from the bottom using an infrared backlight.
Behavioural assays
Behavioural assays were conducted at 25 °C under continuous blue light between 09:00 and 13:00. Tested males were 5–7 days of age and transferred to fresh food vials 1 day before experiments. For males used in optogenetic assays, flies were transferred to food enriched with trans-retinal 3 days before the experiment. Vials containing retinal were wrapped in foil. Virgin females were decapitated and used within a maximum of 3 h to preserve chemical signature and motor reflexes during the experiment.
Action selection assay
The action selection assay presented a naive male coupled with a decapitated hs-hid virgin female with a choice between continuing to court the female or interrupting the ritual in response to the threat. The threat was delivered after consistent courtship of at least 7 s (early), 2 min (middle) or 4 min (late). Only males that started to court during the first 5 min of the trial and until threat delivery were considered in the analysis. All assays were manually analysed using the behavioural analysis software BORIS70, and the following parameters were quantified to measure the effect of the threat on male courtship behaviour.
The courtship index is defined by the percentage of time (in seconds) the male spends courting the female over the total time of the threat delivery (30 s). We considered that males initiated courtship by demonstrating full wing extension and a persistent courtship behaviour of at least 7 s towards the female. We considered courtship as the display of stereotyped courtship events that include tapping of the female with the forelegs of the male, singing (wing extension and vibration), licking (male proboscis extension) and attempts at copulation in which the male bends the abdomen towards the female and attempts to mount her. See Fig. 1a for a schematical representation of these behaviours.
The defensive index is defined by the percentage of time (in seconds) the male spends displaying defensive behaviours (that is, escaping and freezing) over the total time of the threat delivery (30 s).
As a control, the behaviour was assessed in the absence of the visual threat during the same time window according to the same criteria.
Optogenetic assay
Flies were tested in a transparent circular chamber (∅ 20 mm, H = 5 mm for courtship; and ∅ 24 mm, H = 3 mm for the locomotion assay) and illuminated from underneath with either 660-nm (red) or 515-nm (green) light in the absence or presence of the threat. Refer to Supplementary Table 4 for the optogenetic experimental conditions corresponding to each figure. The light was turned ON 1 s before the first threat passed.
Locomotion assay
Individual flies were introduced into a circular chamber (∅24 mm, H = 3 mm) and left to acclimatize for 3 min. After the acclimatation period, flies were subjected to the threat (9 cycles and frequency of 0.3 Hz). The walking speed of the flies (thresholded at values larger than 4 mm s−1 to be considered as ‘walking’) was assessed using the Ethovision XT17 software. The change in walking speed was calculated by subtracting the average walking speed of the 30 s after threat from the 30-s average before threat delivery.
Two-photon functional imaging
Tethered male flies (3–6 days of age) had their head capsules dissected in a sugar-free HL3-like saline-filled imaging chamber with a central hole (for details on fly dissection, see ref. 71). Flies were then placed under a multiphoton microscope (Femto2D-Resonant by Femtonics), and expressed either the calcium indicator GCaMP or GRABDA in different sets of neurons (see Supplementary Table 3 for details on genotypes). Fluorescence was generated by a Ti-Sapphire laser centred on 920 nm (Chameleon Ultra II, Coherent). Images with a pixel size of 0.3 × 0.3 μm were acquired with a ×20, 1.0 NA water-immersion objective, controlled by the MESc v3.5 software (Femtonics). Fast recordings were taken at a speed of 30 Hz with a resonant scan head using MESc software (Femtonics). Analysis was performed using NOSA software v1.1.16 (neuro-optical signal analysis)72 and a customized R script or Graphpad Prism, Regions of interest (ROIs) were manually drawn for analysis. Data were converted into tiff files and processed using a Savitzky–Golay filter or moving average of 2 s when brain movement was strong (Figs. 4c and 5b). No baseline/photobleaching correction was applied to any of the imaging data. The final time resolution was 6 fps (Femtonics microscope data) or 2 fps (Optogenetic data from Nikon microscope). Mean intensity values were calculated as ΔF/F0 (in %), whereas F0 was defined as the mean F from baseline activity (first 30 s in Figs. 1h,i, 2i,j,m,n, 4e and 5c,d,h,k,l and Extended Data Figs. 3j, 4h, 7b,e; the first 20 s in Figs. 4c,f, and 5b and Extended Data Figs. 6f–i,k,l and 7a; the first 15 s in Fig. 5e,f and Extended Data Fig. 7e,g; and the first 2 s in Fig. 2e and Extended Data Fig. 3b).
Threat delivery under the two-photon microscope
The threat was delivered as previously described (see the ‘Threat setup’ section). The paddle and light source were placed below the microscope and inclined towards the chamber in a way that the passing shadow reached the tethered fly’s eye. Calcium signals in LC16 axons and PMPD neurons were recorded for 30 s before and 60 s immediately after the threat exposure (calculation windows in Figs. 1h,i and 5c,d,h,k,l: last 10 s before and first 10 s after; Fig. 4f and Extended Data Fig. 7e,g: last 15 s before and 30 s after). As LC16 neurons respond to laser onset, the first 2 s of each recording were excluded from the analysis. Conditions under the microscope were set to more than 20 °C and 40% humidity.
Application of serotonin or dopamine
100 µl of serotonin (H9523, Sigma-Aldrich) or dopamine (H8502, Sigma-Aldrich) diluted in sugar-free HL3 solution was applied directly onto the Drosophila brain through the open head capsule. The final concentration was 100 µM for serotonin and 500 µM for dopamine. Calcium signals were recorded 50 s before and 100 s immediately after application (first 30 s of pre-application and last 30 s of post-application were taken for quantification).
Courtship progression under the microscope
For examining courtship progression, 5–8-day-old virgin male flies were used. Flies were tethered and dissected as previously described, leaving legs and proboscis freely moveable (or fixed depending on the experiment indicated for each figure). Note that the fixation position of the male onto the imaging chamber does not allow for wing extension. Agitated males that did not stop moving for 10 s during the first 5 min under the microscope were discarded. Immediately upon recording initiation, a decapitated 3–5-day-old virgin female tethered onto a moveable arm controlled by a micromanipulator was presented to the male with her abdomen oriented towards the head of the male fly. Following male contact with the female, calcium or GRABDA signals were recorded for a total duration of 4 min, while the fly behaviour was simultaneously observed using a video camera (Thorlabs C1285R12M and SM1D12D iris diaphragm) recording at 7 fps. The first 20 s and last 20 s were taken for quantification (except Extended Data Fig. 6g: 1–20 s, 240–260 s and 400–420 s). Abdomen bending was manually analysed frame by frame. As tethered flies show typical behaviour that includes moving the abdomen back and forth, only full-bending events (the tip of the abdomen bending underneath the thorax) that lasted longer than 1 s or 6 frames were considered as part of courtship behaviour.
Optogenetic experiments during in vivo calcium imaging
Experiments were conducted using a Nikon A1R+ multiphoton microscope with a galvo scanner at a speed of 2 Hz. We used the two-photon 1,040-nm red laser of the microscope to activate CsChrimson while simultaneously recording the calcium activity within the ROI (see the details for the conditions in the main text figure legends and Supplementary Table 4). To activate OvAbg neurons, experiments were carried out using a Femtonics microscope with the same imaging parameters mentioned previously. A 590-nm LED positioned below and towards the tethered fly was used for optogenetic activation of CsChrimson (15 or 7 repetitions of 1-s LED-on and 1-s LED-off intervals) while recording simultaneously. To activate PPM1/2 neurons during threat delivery, 15 repetitions of red light were used overlapping the 30 s of threat exposure under the microscope. LED stimulation artefacts were removed for clarity. As the acquisition was carried out continuously, the post-sequence shown in the graph displays the fluorescence intensity immediately after the LED stopped (Fig. 4d).
Focal dopamine injection
Fly preparation and imaging were conducted as described previously40 using a Nikon A1R+ multiphoton microscope. The sugar-free HL3-like saline was added with 30 units of Papain (Roche) and applied to the head capsule for 10 min to digest the glial sheath of the brain and facilitate removal. Flies were subjected to local dopamine (10 mM diluted in saline) or saline injection via a micropipette (saline used for injection contained no CaCl2 or MgCl2). The injection solution was labelled with Texas Red (Invitrogen by Thermo Fisher Scientific, dextran, 10,000 MW) to visualize the pipette and the localization of the injections. Multiple (2–5) injections were given per experiment and averaged, resulting in a single average trace per experiment. Fluorescence traces were extracted using FIJI (ImageJ). F0 for the ΔF/F calculations was the average baseline fluorescence of the 10 frames immediately preceding the injection. Calculation windows for mean ΔF/F0 % was 10 s pre and last 10 s post. ROIs were selected manually.
Immunohistochemistry
Three-to-five-day-old male fly brains were dissected in ice-cold PBS and fixed in 4% paraformaldehyde solution at room temperature for 20 min. Fixed brains were then washed four times in PBST (0.5%) for 30 min and blocked with normal goat serum (5%) for 30–60 min. The brains were then incubated with primary antibodies (anti-GFP chicken, 1:1,000 or 1:2,000, 13970, Abcam; anti-dsRed rabbit, 1:250, 632496, Takara; and nC82 anti-Brp, 1:50, DSHB) for 2–3 days at 4 °C. After four 20-min washes in PBST, the brains were incubated overnight with secondary antibodies (Alexa Fluor 488 goat anti-chicken IgG, 1:1,000 (A28175) or 1:2,000 (A32931), Thermo Fisher Scientific); Alexa Fluor 546 goat anti-mouse, 1:2000, A11018, Thermo Fisher; and Alexa Fluor 546 goat anti-rabbit, 1:2,000, A11071, Thermo Fisher). After four 20-min washes in PBST, brains were mounted in Vectashield on a glass slide before scanning with a Leica SP8 confocal microscope, a Nikon A1 confocal microscope or a Zeiss LSM900 with AiryScan2 module.
Split-GFP immunohistochemistry
Three-to-seven-day-old male fly brains were dissected in room temperature PBS and fixed in 4% paraformaldehyde solution at room temperature for 20 min. Fixed brains were then washed in PBST (0.3%) three times for 20 min each and blocked with normal goat serum (5%) for 30 min. The brains were then incubated with anti-Brp (nC82, 1:50, DSHB) with 5% goat serum for 2 days at 4 °C. No anti-GFP antibody was used. After three 20-min washes in PBST, the brains were incubated with Alexa Fluor 546 goat anti-mouse (1:2,000, A11018, Thermo Fisher) for 2 days at 4 °C. After four 20-min washes in PBST, brains were mounted in Vectashield on a glass slide before scanning with a Nikon A1 confocal microscope.
Reconstituted split-GFP signal was quantified using ImageJ. The GFP signal was taken as the average pixel intensity within manually drawn volumes (freehand ROIs in multiple z-slices) around the LC16 axon terminals and cell bodies. The background fluorescence (from an ROI in a proximal brain region outside the LC16 neuron) was subtracted from the GFP signal. Statistical significance was evaluated by t-tests and two-way ANOVA in GraphPad Prism 9.
Connectomics search
We used the neuprint (hemibrain v1.2.1 dataset)39 platform to search for candidate neurons and subsequent connectivity (https://neuprint.janelia.org/).
-
Predicted link between LC16 and pC1a: Query Selection > General > Shortest paths > neuron A = LC16 # 1256830582 > Neuron B = pC1a # 359744514, Minimum weight = 3.
-
3D visualization of 5-HTPMPD01 and pC1 neurons: ‘dataset’:‘hemibrain:v1.2.1’,‘bodies’[‘297230760’,‘\n297908801’,‘\n359744514’,‘\n5813046951’,‘\n267214250’,‘\n267214250’,‘\n392821837’,‘\n359744514’,‘\n5813046951’,‘\n514850616’].
-
3D visualization of LC16 neurons and PPM1/2 neurons: ‘dataset’:‘hemibrain:v1.2.1’,‘bodies’[‘1350945956’,‘1288897930’,‘1319927345’,‘1319587380’,‘1319579391’,‘1254037524’,‘1288893503’,‘1289238972’,‘1319586861’,‘1319919918’,‘1412989088’,‘950229431’,‘792040520’,‘5813054384’].
Statistics and reproducibility
See Supplementary Tables 1 and 2 for details on statistics. All statistical tests were performed using R v2023.03.1 + 446 or GraphPad Prism 9. Each behavioural experiment was repeated at least three times over a minimum of 3 days. Individuals were tested only once. The sample size for the behavioural experiments always represents biologically independent animals. Behavioural indexes and calcium imaging quantification are displayed as boxplots. Boxes represent the lower (25th) and upper (75th) interquartile, respectively, and the horizontal line represents the median. Each dot on the plot represents a single fly. Courtship progression behavioural data and locomotion data do not follow a normal distribution, thus non-parametric Mann–Whitney or Kruskal–Wallis tests, followed by a Conover–Iman multiple pairwise comparisons post-hoc test, have been applied on raw data (P = 0.05, with a Bonferroni correction) for one factor experiments. To test the interaction between the genetic manipulations and the treatments, we applied two-way ANOVA. Significant differences are indicated by different letters at the level of P < 0.05. We used a one-sample Wilcoxon signed-rank test (μ = 0) to assess whether the speed change (∆) in Extended Data Fig. 5e significantly deviated from 0. We indicated significance using an asterisk at the level of P < 0.05.
Calcium imaging traces over time are represented as the mean ∆F/F0 (%; solid lines) with s.e.m. (shaded area). Quantification plots are shown as minimum/maximum plots and the median as the horizontal line. After verification of normality, a paired t-test or paired Wilcoxon signed-rank test was applied on mean ∆F/F0 (%) data from individual flies on specific time windows indicated in the figures and/or in the Methods. Significant differences are indicated by different letters (P < 0.05). For inter-group comparisons, mean pre values were subsracted from mean post values and differences between genotypes and treatments were tested using one-way ANOVA, Kruskal-Wallis, t-test or Mann-Withney test as approriate. Experimenters were not blinded to the conditions of the experiments during data collection. Genotypes used for one experiment were tested simultaneously and in random order as well as random times during the day to avoid any influence of circadian timepoints and order of the experimental trials. We repeated all statistical tests excluding data points that were identified as outliers using the ROUT method in Prism with Q = 0.5%, and always obtained the same results, so we did not exclude outlier data points. Expression pattern of TH-C1-GAL4 and split-GAL4 lines, including LC16, P1, TRHR23E12 and plP10, were all imaged in n = 4 flies and were reliable across samples.
Randomization and blinding
Animals were never pre-assigned to a treatment or control group before the experiments. Behavioural and imaging experiments were performed in conjunction with their respective control cohorts. Randomization of animals was not implemented in this design.
Reporting summary
Further information on research design is available in the Nature Portfolio Reporting Summary linked to this article.
Data availability
Source data are available at https://github.com/lczl64/Cazale-Debat-Scheunemann-et-al.
Code availability
Codes are available at https://github.com/lczl64/Cazale-Debat-Scheunemann-et-al and https://github.com/jthueringer/NosaAnalysis.
References
Stearns, S. C. Trade-offs in life-history evolution. Funct. Ecol. 3, 259–268 (1989).
Kavaliers, M., Choleris, E. & Colwell, D. D. Brief exposure to female odors “emboldens” male mice by reducing predator-induced behavioral and hormonal responses. Horm. Behav. 40, 497–509 (2001).
Svensson, G. P., Löfstedt, C. & Skals, N. Listening in pheromone plumes: disruption of olfactory-guided mate attraction in a moth by a bat-like ultrasound. J. Insect Sci. 7, 59 (2007).
Chew, B. et al. Endogenous fluctuations in the dopaminergic midbrain drive behavioral choice variability. Proc. Natl Acad. Sci. USA 116, 18732–18737 (2019).
Bach, D. R., Moutoussis, M., Bowler, A., Neuroscience in Psychiatry Network consortium & Dolan, R. J. Predictors of risky foraging behaviour in healthy young people. Nat. Human Behav. 4, 832–843 (2020).
Richman, E. B., Ticea, N., Allen, W. E., Deisseroth, K. & Luo, L. Neural landscape diffusion resolves conflicts between needs across time. Nature 623, 571–579 (2023).
de Araujo Salgado, I. et al. Toggling between food-seeking and self-preservation behaviors via hypothalamic response networks. Neuron 111, 2899–2917.e6 (2023).
Chen, D. et al. Genetic and neuronal mechanisms governing the sex-specific interaction between sleep and sexual behaviors in Drosophila. Nat. Commun. 8, 154 (2017).
Cheriyamkunnel, S. J. et al. A neuronal mechanism controlling the choice between feeding and sexual behaviors in Drosophila. Curr. Biol. 31, 4231–4245.e4 (2021).
Crickmore, M. A. & Vosshall, L. B. Opposing dopaminergic and GABAergic neurons control the duration and persistence of copulation in Drosophila. Cell 155, 881–893 (2013).
Ghosh, D. D. et al. Neural architecture of hunger-dependent multisensory decision making in C. elegans. Neuron 92, 1049–1062 (2016).
Kovac, M. & Davis, W. Neural mechanism underlying behavioral choice in Pleurobranchaea. J. Neurophysiol. 43, 469–487 (1980).
Lewis, L. P. et al. A higher brain circuit for immediate integration of conflicting sensory information in Drosophila. Curr. Biol. 25, 2203–2214 (2015).
Senapati, B. et al. A neural mechanism for deprivation state-specific expression of relevant memories in Drosophila. Nat. Neurosci. 22, 2029–2039 (2019).
Hindmarsh Sten, T., Li, R., Otopalik, A. & Ruta, V. Sexual arousal gates visual processing during Drosophila courtship. Nature 595, 549–553 (2021).
Jung, Y. et al. Neurons that function within an integrator to promote a persistent behavioral state in Drosophila. Neuron 105, 322–333.e5 (2020).
Lenschow, C. & Lima, S. Q. In the mood for sex: neural circuits for reproduction. Curr. Opin. Neurobiol. 60, 155–168 (2020).
Wu, Q. & Zhang, Y. Neural circuit mechanisms involved in animals’ detection of and response to visual threats. Neurosci. Bull. https://doi.org/10.1007/s12264-023-01021-0 (2023).
Zhang, S. X., Rogulja, D. & Crickmore, M. A. Dopaminergic circuitry underlying mating drive. Neuron 91, 168–181 (2016).
Wu, M. et al. Visual projection neurons in the Drosophila lobula link feature detection to distinct behavioral programs. eLife 5, e21022 (2016).
Klapoetke, N. C. et al. Ultra-selective looming detection from radial motion opponency. Nature 551, 237–241 (2017).
Barron, A. B., Søvik, E. & Cornish, J. L. The roles of dopamine and related compounds in reward-seeking behavior across animal phyla. Front. Behav. Neurosci. 4, 163 (2010).
Waddell, S. Dopamine reveals neural circuit mechanisms of fly memory. Trends Neurosci. 33, 457–464 (2010).
Watabe-Uchida, M., Eshel, N. & Uchida, N. Neural circuitry of reward prediction error. Annu. Rev. Neurosci. 40, 373–394 (2017).
Kim, H. R. et al. A unified framework for dopamine signals across timescales. Cell 183, 1600–1616.e25 (2020).
Siju, K., De Backer, J.-F. & Grunwald Kadow, I. C. Dopamine modulation of sensory processing and adaptive behavior in flies. Cell Tissue Res. 383, 207–225 (2021).
Noudoost, B., Chang, M. H., Steinmetz, N. A. & Moore, T. Top-down control of visual attention. Curr. Opin. Neurobiol. 20, 183–190 (2010).
Zhang, S. X., Rogulja, D. & Crickmore, M. A. Recurrent circuitry sustains Drosophila courtship drive while priming itself for satiety. Curr. Biol. 29, 3216–3228.e9 (2019).
Gibson, W. T. et al. Behavioral responses to a repetitive visual threat stimulus express a persistent state of defensive arousal in Drosophila. Curr. Biol. 25, 1401–1415 (2015).
Ferreira, C. H. & Moita, M. A. Behavioral and neuronal underpinnings of safety in numbers in fruit flies. Nat. Commun. 11, 4182 (2020).
Panser, K., Tirian, L., Schulze, F., Villalba, S., Jefferis, G. S., Bühler, K. & Straw, A. D. Automatic segmentation of Drosophila neural compartments using GAL4 expression data reveals novel visual pathways. Curr. Biol. 26, 1943–1954 (2016).
Städele, C., Keleş, M. F., Mongeau, J.-M. & Frye, M. A. Non-canonical receptive field properties and neuromodulation of feature-detecting neurons in flies. Curr. Biol. 30, 2508–2519.e6 (2020).
Seo, C. et al. Intense threat switches dorsal raphe serotonin neurons to a paradoxical operational mode. Science 363, 538–542 (2019).
Winberg, S. & Nilsson, G. E. Roles of brain monoamine neurotransmitters in agonistic behaviour and stress reactions, with particular reference to fish. Comp. Biochem. Physiol. C 106, 597–614 (1993).
Kohatsu, S., Koganezawa, M. & Yamamoto, D. Female contact activates male-specific interneurons that trigger stereotypic courtship behavior in Drosophila. Neuron 69, 498–508 (2011).
Rings, A. & Goodwin, S. F. To court or not to court — a multimodal sensory decision in Drosophila males. Curr. Opin. Insect Sci. 35, 48–53 (2019).
Duhart, J. M., Baccini, V., Zhang, Y., Machado, D. R. & Koh, K. Modulation of sleep–courtship balance by nutritional status in Drosophila. eLife 9, e60853 (2020).
Hoopfer, E. D., Jung, Y., Inagaki, H. K., Rubin, G. M. & Anderson, D. J. P1 interneurons promote a persistent internal state that enhances inter-male aggression in Drosophila. eLife 4, e11346 (2015).
Scheffer, L. K. et al. A connectome and analysis of the adult Drosophila central brain. eLife 9, e57443 (2020).
Pooryasin, A. & Fiala, A. Identified serotonin-releasing neurons induce behavioral quiescence and suppress mating in Drosophila. J. Neurosci. 35, 12792–12812 (2015).
Tierney, A. J. Invertebrate serotonin receptors: a molecular perspective on classification and pharmacology. J. Exp. Biol. 221, jeb184838 (2018).
Bielopolski, N. et al. Inhibitory muscarinic acetylcholine receptors enhance aversive olfactory learning in adult Drosophila. eLife 8, e48264 (2019).
Rozenfeld, E., Lerner, H. & Parnas, M. Muscarinic modulation of antennal lobe GABAergic local neurons shapes odor coding and behavior. Cell Rep. 29, 3253–3265.e4 (2019).
Von Philipsborn, A. C. et al. Neuronal control of Drosophila courtship song. Neuron 69, 509–522 (2011).
Oliveira-Ferreira, C., Gaspar, M. & Vasconcelos, M. L. Neuronal substrates of egg-laying behaviour at the abdominal ganglion of Drosophila melanogaster. Sci. Rep. 13, 21941 (2023).
Howe, M. W. & Dombeck, D. A. Rapid signalling in distinct dopaminergic axons during locomotion and reward. Nature 535, 505–510 (2016).
Howe, M. W., Tierney, P. L., Sandberg, S. G., Phillips, P. E. & Graybiel, A. M. Prolonged dopamine signalling in striatum signals proximity and value of distant rewards. Nature 500, 575–579 (2013).
Shen, P. et al. Neural circuit mechanisms linking courtship and reward in Drosophila males. Curr. Biol. 33, 2034–2050.e8 (2023).
Sun, F. et al. Next-generation GRAB sensors for monitoring dopaminergic activity in vivo. Nat. Methods 17, 1156–1166 (2020).
Yamada-Hanff, J. & Bean, B. P. Persistent sodium current drives conditional pacemaking in CA1 pyramidal neurons under muscarinic stimulation. J. Neurosci. 33, 15011–15021 (2013).
Clowney, E. J., Iguchi, S., Bussell, J. J., Scheer, E. & Ruta, V. Multimodal chemosensory circuits controlling male courtship in Drosophila. Neuron 87, 1036–1049 (2015).
Collins, A. L. & Saunders, B. T. Heterogeneity in striatal dopamine circuits: form and function in dynamic reward seeking. J. Neurosci. Res. 98, 1046–1069 (2020).
Mikhael, J. G., Kim, H. R., Uchida, N. & Gershman, S. J. The role of state uncertainty in the dynamics of dopamine. Curr. Biol. 32, 1077–1087.e9 (2022).
Mohebi, A. et al. Dissociable dopamine dynamics for learning and motivation. Nature 570, 65–70 (2019).
Yao, Y. et al. Visual cue-discriminative dopaminergic control of visuomotor transformation and behavior selection. Neuron 89, 598–612 (2016).
Pérez-Fernández, J., Kardamakis, A. A., Suzuki, D. G., Robertson, B. & Grillner, S. Direct dopaminergic projections from the SNc modulate visuomotor transformation in the lamprey tectum. Neuron 96, 910–924.e5 (2017).
Valdés-Baizabal, C., Carbajal, G. V., Pérez-González, D. & Malmierca, M. S. Dopamine modulates subcortical responses to surprising sounds. PLoS Biol. 18, e3000744 (2020).
Kalisch, R., Gerlicher, A. M. & Duvarci, S. A dopaminergic basis for fear extinction. Trends Cogn. Sci. 23, 274–277 (2019).
Felsenberg, J. et al. Integration of parallel opposing memories underlies memory extinction. Cell 175, 709–722.e15 (2018).
Luo, R. et al. A dopaminergic switch for fear to safety transitions. Nat. Commun. 9, 2483 (2018).
Sweeney, S. T., Broadie, K., Keane, J., Niemann, H. & O’Kane, C. J. Targeted expression of tetanus toxin light chain in Drosophila specifically eliminates synaptic transmission and causes behavioral defects. Neuron 14, 341–351 (1995).
Albin, S. D. et al. A subset of serotonergic neurons evokes hunger in adult Drosophila. Curr. Biol. 25, 2435–2440 (2015).
Lee, P.-T. et al. Serotonin–mushroom body circuit modulating the formation of anesthesia-resistant memory in Drosophila. Proc. Natl Acad. Sci. USA 108, 13794–13799 (2011).
Mohammad, F. et al. Ancient anxiety pathways influence Drosophila defense behaviors. Curr. Biol. 26, 981–986 (2016).
Ding, Y. et al. Neural evolution of context-dependent fly song. Curr. Biol. 29, 1089–1099.e7 (2019).
Xie, T. et al. A genetic toolkit for dissecting dopamine circuit function in Drosophila. Cell Rep. 23, 652–665 (2018).
Berry, J. A., Cervantes-Sandoval, I., Chakraborty, M. & Davis, R. L. Sleep facilitates memory by blocking dopamine neuron-mediated forgetting. Cell 161, 1656–1667 (2015).
Kondo, S. et al. Neurochemical organization of the Drosophila brain visualized by endogenously tagged neurotransmitter receptors. Cell Rep. 30, 284–297.e5 (2020).
Liu, Q., Liu, S., Kodama, L., Driscoll, M. R. & Wu, M. N. Two dopaminergic neurons signal to the dorsal fan-shaped body to promote wakefulness in Drosophila. Curr. Biol. 22, 2114–2123 (2012).
Friard, O. & Gamba, M. BORIS: a free, versatile open-source event-logging software for video/audio coding and live observations. Methods Ecol. Evol. 7, 1325–1330 (2016).
Owald, D. et al. Activity of defined mushroom body output neurons underlies learned olfactory behavior in Drosophila. Neuron 86, 417–427 (2015).
Oltmanns, S. et al. NOSA, an analytical toolbox for multicellular optical electrophysiology. Front. Neurosci. 14, 712 (2020).
Acknowledgements
We thank J. Felsenberg and M. Parnas for insightful comments and critical assessment of the manuscript; I. Goshen, T. Hauser, N. Romero, M. Moita and her laboratory for helpful discussions; B. Dickson, G. Rubin, M. Wu, E. Kravitz, J. Simpson, A. Fiala, A. Von Philipsborn, D. Stern, M. Laturney, S. Lin, Y. Rao, B. Deng, S. Sprecher, H. Tanimoto, J. Pielage and D. Galili for sharing fly stocks; E. McCallion, O. Cronin, J. Stanley-Ahmed, M. Narzary and A. Kewin for help with fly and data collection; the Charité AMBIO Imaging Facility for support with live imaging; J. Thüringer, M. L. Vasconcelos and S. Rose for valuable discussions and help with data analysis; and members of the Rezaval and Scheunemann laboratories for useful comments on the manuscript. This work was supported by Marie Curie Sklodowska IF-EF-ST (101023536) to L.C.-D.; by the DFG, under Germany’s Excellence Strategy (EXC-2049) 390688087 to L.S. and D.O., 495407463 to L.S., 282979116 to D.O., TP B04 of TRR265 (402170461) to D.O., TP A07 of SFB1315 (327654276) to D.O. and support to L.S.; the ERC (101088502) to D.O.; the Einstein Center for Neurosciences Berlin to D.O. and T.F.-d.V.A.; the Wellcome Trust (225814/Z/22/Z) and the BBSRC (BB/S016031/1, BB/X000273/1 and BB/X014568/1) to A.C.L.; and the BBSRC (BB/W016249/1 and BB/S009299/1) and the Leverhulme Trust (RPG-2023-009) to C.R.
Author information
Authors and Affiliations
Contributions
L.C.-D. and C.R. conceived and designed the study. L.C.-D., M.D. and L.A.B. performed the behavioural experiments. L.S. performed the functional imaging experiments. L.C.-D. performed the fly genetics. Y.Z, A.D. and K.G.-W. performed the Dop2R split-GFP reconstitution experiment. T.F.-d.V.A. performed part of the functional imaging experiments using the threat and serotonin applications. E.R. performed the focal dopamine injection in live imaging. C.B. developed the software. M.D., A.D., Y.Z., L.A.B. and A.C.L. provided support with fly collections and genetics. L.C.-D., L.S., M.D., T.F.-d.V.A., K.G.-W., E.R., A.C.L., D.O. and C.R. analysed the data. L.C.-D., A.C.L. and C.R. wrote the manuscript with input from L.S. and D.O. L.C.-D. supervised M.D., A.D., L.A.B. and Y.Z. A.C.L. supervised K.G.-W. D.O. supervised E.R. and T.F.-d.V.A. L.S. supervised T.F.-d.V.A. C.R. provided supervision to L.C.-D., M.D., Y.Z., A.D. and L.A.B., as well as overall supervision. L.C.-D., L.S., D.O. and A.C.L. provided resources. C.R. acquired funding. D.O. and A.C.L. contributed equally and are listed alphabetically.
Corresponding author
Ethics declarations
Competing interests
The authors declare no competing interests.
Peer review
Peer review information
Nature thanks Ilona Grunwald Kadow and the other, anonymous, reviewer(s) for their contribution to the peer review of this work.
Additional information
Publisher’s note Springer Nature remains neutral with regard to jurisdictional claims in published maps and institutional affiliations.
Extended data figures and tables
Extended Data Fig. 1 LC16 neurons detect visual threats and trigger defensive behaviours in male Drosophila.
A, Locomotion traces of solitary wild-type males before and after threat (n = 8). B, Change in walking speed of wild-type males before and after threat (n = 39). C, Percentage of wild-type males leaving the female (C1) and freezing index (C2) without (grey bar, n = 59) or with the threat (blue bars, n = 59). D, Defensive index of LC16 > TNT males and controls without (grey bars, n = 30,18,38) or with the threat (blue bars, n = 32,16,37). E, Defensive index after artificial activation of LC16>CsChrimson without the threat (nred light OFF = 17,16,15; nred light ON = 27,21,20) and controls. F, Change in walking speed of LC16 > TNT males and controls before and after threat (n = 28,23,28). G, Courtship indexes of wild type and transgenic males exposed to a mechanical threat (n = 13,17,17,14,14,27,28,17,15,18). H, Left: ∆F/F0% of LC16 > GCaMP7b signal pre and post exposure to a female fly. Right: mean ∆F/F0% comparing pre and post time windows (n = 5). The sample sizes represent biologically independent animals. Solid line and shaded area of live-imaging traces show mean ± s.e.m respectively. Boxes delimit the lower (25th) and upper interquartile (75th), and the horizontal line represents the median. Calcium imaging quantification plots are shown as min/max plots and median as horizontal line. Each dot represents a single fly. Significant differences are indicated by different letters at the level of p < 0.05 (e.g: a is different from b but not from ab). See Supplementary Table 1 for details on statistics.
Extended Data Fig. 2 5-HT neurons are required to prioritize survival over courtship.
A,B, Courtship and defensive indexes TRH > TNT males without (grey plots, n = 33,25,24) or with the threat (blue plots, n = 30,25,32) and controls. C, Change in walking speed TRH > TNT males and controls before and after threat. (n = 32,30,28). D,E, Courtship and defensive indices TRH > TRH-RNAi males and controls without (grey plots, n = 17,17,26) or with a threat (blue plots, n = 14,19,26). F, Change in walking speed of TRH > TRH-RNAi males and controls before and after threat (n = 27,28,28). G,H, Courtship and defensive indexes of TRH>CsChrimson upon artificial activation without the threat (nred light OFF = 32,30,25; nred light ON = 31,25,26) and controls. See legend to Extended Data Fig. 1 for details on graphics and statistics.
Extended Data Fig. 3 Visually-driven 5-HTPMPD neurons inhibit the P1 central courtship node via 5-HT7- Gαi signalling.
A, Courtship index of P1>CsChrimson males without (grey bars, n = 27,31,25) or with (blue bars, n = 34,31,35) the threat (red light OFF). B, ∆F/F0% of TRHPMPD > GCaMP6m signal upon laser stimulation. Left: mean ∆F/F0% signal comparing baseline to stimulation (n = 9). Right: focal plane showing ROI during imaging (scale bar: 15 µm) refer to Fig. 2e. C, Change in walking speed of TRHR23E12 > TNT males and controls before and after threat (n = 31,33,40). D, Defensive index of TRHR23E12 > TNT males and controls without (grey bars, n = 15,15,17) or with the threat (blue bars, n = 14,19,24). E,F, Courtship and defensive indexes of TRH > TRH-RNAi males and controls without (grey plots, n = 18,21,25) or with threat (blue plots, n = 18,23,25). G, Defensive index of TRHR23E12>CsChrimson males upon artificial activation without threat (nred light OFF = 17,19,25; nred light ON = 14, 22, 19) and controls. H, Behavioural effects of knocking-down 5-HT receptors in P1 neurons using RNAi, in control (n = 38) and experimental males (n = 18,15,12,29). I, Behavioural effects of knocking-down Gαi and Gαo proteins in P1 neurons using RNAi (n = 9,12,15), and controls (n = 17). J, Upper: ∆F/F0% of P1 > GCaMP6s signal pre and post application of 100 µM 5-HT and with simultaneous knock-down of Gαi protein (lower). Right: mean ∆F/F0% comparing the pre and post time windows (n = 6,7). K, Change in walking speed of P1 > 5-HT7-RNAi and P1>Gαi-RNAi males before and after threat (n = 58,64,70). See legend to Extended Data Fig. 1 for details on graphics and statistics.
Extended Data Fig. 4 5-HT neurons inhibit plP10 courtship neurons via 5-HT2B-Gαo signalling.
A,B, Courtship (A) and defensive (B) indices without red light (left panel) or after artificial activation of plP10>CsChrimson (right panel) without (grey bars, nlight OFF = 20,16,26; nlight ON = 22,15.17) or with (blue bars, nlight OFF = 15,22,15; nlight ON = 15,16,20) the threat. C,D, Courtship (C) and defensive (D) indices of plP10 > GtACR1 males upon artificial inhibition without the threat (ngreen light OFF = 22,22,25; ngreen light ON = 21,24,20) and controls. E, Behavioural effects of knocking-down 5-HT receptors in plP10 neurons using RNAi, in control (n = 35) and experimental males (n = 21,7,17,9). F, Change in walking speed of plP10 > 5-HT2B-RNAi males and controls before and after threat (n = 18,20,18). G, Behavioural effects of knocking down Gαi and Gαo proteins in plP10 neurons using RNAi and controls (n = 12,14,15,18). H, Upper: ∆F/F0% of plP10 > GCaMP6s signal pre and post application of 100 µM 5-HT and with simultaneous knock-down of Gαo protein (lower). Left: mean ∆F/F0% comparing the pre and post time windows (n = 5,7) See legend to Extended Data Fig. 1 for details on graphics and statistics.
Extended Data Fig. 5 Late courtship stages and copulation decrease threat responses.
A,B, Fraction of flies exhibiting courtship or defensive behaviour in response to an early (A) or late (B) threat, delivered after 7 s or 4 min of sustained courtship (nearly = 47, nlate = 52). C, Behavioural protocol: the threat is delivered at either 30 s, 5, 10 or 15 min after copulation initiation. Controls for copulation have been observed at the same time point in absence of the threat. (Note that sperm transfer takes ~10 min10.) D, Percentage of flies engaged in copulation 30 s, 5, 10 or 15 min after mating initiation in absence (n = 10,10,10,10) or presence (n = 16,24,21,18) of the threat. See legend to Extended Data Fig. 1 for details on graphics and statistics.
Extended Data Fig. 6 PPM1/2 dopamine neuron activity ramps up as courtship progresses.
A, Courtship index of TH-C1-GAL4>CsChrimson without artificial activation, without (grey, n = 20,21,15) or with (blue, n = 23,17,18) threat. B, Defensive index of TH-C1>CsChrimson males without or with artificial activation, without (grey, nlight OFF = 20, 21, 15; nlight ON = 19, 17, 20) or with (blue, nlight OFF = 23, 17, 18; nlight ON = 16, 16, 21) threat. C, Change in walking speed before and after threat of TH-C1>CsChrimson males and females (light OFF (grey), n = 55-64, light ON (magenta), n = 60-28). D, Abdominal bending events of males TH-C1 > GCaMP7b paired with a female under the microscope. E, Abdominal bending events during the first, second, and third tiers of 4 min of male courting a female under the microscope (n = 10). F,G, ∆F/F0% of TH-C1PPM1/2 > GCaMP7b signal in males paired with a male (F) or female (G). F, Mean ∆F/F0% during 1st min (0-20 s) vs. at 4 min (220-240 s) (n = 5). Right: abdomen bending events (n = 10). G, ∆F/F0% in males paired with a female (blue) and control of adjacent ROI (grey). Right: mean ∆F/F0% during 1st (0-20), at 4 (220-240 s), and at 7 min (400-420 s) (n = 6). H,I, ∆F/F0% of TH-C1PAL (H) and TH-C1PAM > GCaMP7b (I) signal of males paired with a female. Right: comparing mean ∆F/F0% during 1st to 4 min time windows (n = 6). Below: representative fluorescence heatmap (scale bar 6 µm). J, ∆F/F0% and alignment of abdominal bending events during recording of PPM1/2 neurons in TH-C1 > GCaMP7b males paired with a female. K,L, ∆F/F0% of TH-C1PPM1/2 > GCaMP7b signal in males with either a fixed proboscis (K) or fixed front legs (L) paired with a female. Right: mean ∆F/F0% during 1st min and at 4 min (n = 6,5). M, LED stimulation protocol of Fig. 4e and number of evoked abdominal bendings of males THC1 > GCaMP6s; OvAbg>CsChrimson within the pre, during and post-stimulus windows (n = 5-6). N, Number of tapping or licking events of TH-C1 > GCaMP7b males paired with a female without or with fixed abdomen (n = 6-10). See legend to Extended Data Fig. 1 for details on graphics and statistics.
Extended Data Fig. 7 Copulation attempts drive dopaminergic inhibition of the visual threat pathway.
A, ∆F/F0% of LC16 > GRABDA signal of males paired with a male fly. Right: mean ∆F/F0% during 1st min (0-20 s) and at 4 min (220-240 s) (n = 5). B, ∆F/F0% of LC16 > GCaMP6f signal of males pre and post application of 500 µM dopamine. Right: mean ∆F/F0% pre and post time windows (n = 10). C, ∆F/F0% of LC16 > GCaMP7b signal after focal injection of dopamine (blue), saline (grey), or dopamine in LC16 > GCaMP7b; Dop2R-RNAi males (magenta). Scale bar: 5 µm. Right: mean ∆F/F0% pre and post-injection. Saline (n = 5, 3 flies) vs. Dopamine (n = 6, 4 flies) vs. Dop2R-RNAi (n = 5, 3 flies). D, TH genomic region showing sequences upstream of Gal4 for lines C1 and C’. Exons are black boxes. ATG, stop, and i1-i6 mark translational start, stop, and intron sites. “+”, “+/−”, and “−” in the table indicate expression in most, a subset, or none of the neurons in the clusters, respectively. See69. Panel D is adapted from ref. 69, Elsevier. E1-3, ∆F/F0% of LC16>LexAop-GCaMP6f; TH-C1>CsChrimson signal pre and post: E1 threat, E2 threat with LED stimulation, or E3 threat and LED stimulation in control flies only expressing UAS-GCaMP6f in LC16 neurons. Right: Mean ∆F/F0% pre and post time windows (n = 8,8,7). F, Left: LC16 Split-GAL4 driving UAS-spGFP1-10 without (left) or with (right) tagging endogenous Dop2R::GFP11. Right: quantified GFP fluorescence in LC16 cell bodies (left) or axon terminals (right) with or without Dop2R::GFP11. anti-brp (nC82; magenta). (n = 8,10,7,11 brains). GFP fluorescence was normalised to the average fluorescence in the LC16 axon terminals in LC16 > GFP1-10,Dop2R::GFP11 flies. Scale bar: 25 μm. G1-3, ∆F/F0% TRHPMPD > GCaMP6s pre and post threat (G1), threat with 500 µM dopamine (G2), and threat with 500 µM dopamine with additional knockdown of Dop2R in LC16 neurons (G3). Right: mean ∆F/F0% of pre and post-time windows (n = 5,5,7). See legend to Extended Data Fig. 5 for details on graphics and statistics.
Supplementary information
Supplementary Information
This file contains table of contents for figures 2, 4 & 5; Supplementary Tables 1–4 and Supplementary Videos 1–9
Supplementary Table 1
Statistics for behavioural, live calcium imaging and anatomical data (main and extended figures)
Supplementary Table 2
live calcium imaging inter-group comparisons
Supplementary Table 3
list of strains and genotypes
Supplementary Table 4
list of the optogenetic conditions per genotype and figure
Supplementary Video 1
Wild-type CS male displaying early courtship steps toward an immobile female.
Supplementary Video 2
Wild-type CS male displaying late courtship steps toward an immobile female.
Supplementary Video 3
Wild-type CS male displaying freezing behaviour in response to an early threat, delivered 7 s after courtship initiation
Supplementary Video 4
Wild-type CS male running away in response to an early threat, delivered 7 s after courtship initiation
Supplementary Video 5
Wild-type CS male pursuing courtship and displaying abdominal bending in the presence of a late threat, delivered 4 min after courtship initiation
Supplementary Video 6
Tethered wild-type male CS displaying abdominal bending toward a female under the two-photon microscope
Supplementary Video 7
Tethered TH-C1> GCaMP7bmale with fixed abdomen paired with a female under the two-photon microscope
Supplementary Video 8
Tethered TH-C1>GCaMP7b male with a fixed proboscis paired with a female under a two-photon microscope.
Supplementary Video 9
Tethered TH-C1>GCaMP7b male with fixed front legs paired with a female under a two-photon microscope.
Rights and permissions
Open Access This article is licensed under a Creative Commons Attribution 4.0 International License, which permits use, sharing, adaptation, distribution and reproduction in any medium or format, as long as you give appropriate credit to the original author(s) and the source, provide a link to the Creative Commons licence, and indicate if changes were made. The images or other third party material in this article are included in the article’s Creative Commons licence, unless indicated otherwise in a credit line to the material. If material is not included in the article’s Creative Commons licence and your intended use is not permitted by statutory regulation or exceeds the permitted use, you will need to obtain permission directly from the copyright holder. To view a copy of this licence, visit http://creativecommons.org/licenses/by/4.0/.
About this article
Cite this article
Cazalé-Debat, L., Scheunemann, L., Day, M. et al. Mating proximity blinds threat perception. Nature (2024). https://doi.org/10.1038/s41586-024-07890-3
Received:
Accepted:
Published:
DOI: https://doi.org/10.1038/s41586-024-07890-3
Comments
By submitting a comment you agree to abide by our Terms and Community Guidelines. If you find something abusive or that does not comply with our terms or guidelines please flag it as inappropriate.