Abstract
Females exhibit complex, dynamic behaviours during mating with variable sexual receptivity depending on hormonal status1–4. However, how their brains encode the dynamics of mating and receptivity remains largely unknown. The ventromedial hypothalamus, ventrolateral subdivision contains oestrogen receptor type 1-positive neurons that control mating receptivity in female mice5,6. Here, unsupervised dynamical system analysis of calcium imaging data from these neurons during mating uncovered a dimension with slow ramping activity, generating a line attractor in neural state space. Neural perturbations in behaving females demonstrated relaxation of population activity back into the attractor. During mating, population activity integrated male cues to ramp up along this attractor, peaking just before ejaculation. Activity in the attractor dimension was positively correlated with the degree of receptivity. Longitudinal imaging revealed that attractor dynamics appear and disappear across the oestrus cycle and are hormone dependent. These observations suggest that a hypothalamic line attractor encodes a persistent, escalating state of female sexual arousal or drive during mating. They also demonstrate that attractors can be reversibly modulated by hormonal status, on a timescale of days.
Subject terms: Sexual behaviour, Dynamical systems
An oestrus cycle-dependent hypothalamic line attractor is discovered to encode the dynamics of female mating behaviour.
Main
Mating is a complex social interaction whose success is essential to the survival of a species. In rodents, female mating receptivity has been considered as a binary behaviour defined by lordosis7–10, a reflexive acceptance posture. In fact, however, female receptivity is highly dynamic, exhibiting variability both within a mating interaction and across different physiological states2. Nevertheless, the important contribution of a female to the dynamics of successful mating has been underappreciated and understudied, relative to the male.
Recent progress has identified circuits that control female receptivity1,3,4,11. The ventrolateral subdivision of the ventromedial hypothalamic nucleus (VMHvl) contains a subset of Esr1+ neurons that controls mating behaviours in female mice5,6,12–15. Recent findings have revealed hormone-dependent changes in the anatomy and physiology of these neurons. The axonal arborizations of VMHvl progesterone receptor (Pgr)-expressing neurons in the anteroventral periventricular nucleus (AVPV) increase in receptive females, in an oestrogen-dependent manner16. In addition, a small subset of Esr1+ neurons, defined by expression of the cholecystokinin A receptor (Cckar)6,17, has been shown to be necessary and sufficient for female receptivity and to exhibit oestrus cycle-dependent changes in excitability ex vivo and in response dynamics during the investigation phase of mating interactions in vivo6. Although these studies have identified important circuit-level changes associated with the state of receptivity, how the dynamics of female behaviour during mating are encoded in the brain is largely unknown.
To address this issue, we have characterized neural population representations in female VMHvl during interactions with males across the oestrus cycle, using longitudinal miniscope imaging of calcium activity18. We imaged a subpopulation of Esr1+ neurons that are Npy2r− that we called ‘α-cells’, which causally control sexual receptivity5; these cells overlap with the aforementioned Cckar+ cells6,7. Unsupervised modelling of VMHvl α-cell activity using a dynamical systems approach19 revealed an approximate line attractor in neural state space, which disappeared during non-receptive phases of the oestrus cycle and was hormone dependent. Analysis of female mating behaviour and line-attractor dynamics suggest that the attractor integrates male contact cues and may represent a persistent, escalating internal state of female sexual arousal or receptivity during mating.
Dynamics of female behaviours in mating
Female mating behaviour has been studied more extensively in rats than in mice4,20. To detail mouse female mating behaviour under our standard conditions, we manually annotated video recordings of sexually receptive females interacting with a male (Fig. 1a). We identified ten female motor behaviours and classified them as appetitive (approaching and sniffing the male), accepting (lordosis and wiggling) or resisting (darting, top up, kicking and turning), based on the apparent intent of the behaviour6. The behaviours were dynamic, with the probability of accepting behaviours gradually increasing, whereas resistance behaviours initially increased and then slowly decreased (Fig. 1b and Extended Data Fig. 1a). Thus, receptivity is not binary but graded and dynamic.
We categorized mating behaviours as ‘self-initiated’ (appetitive and check genital area) or ‘male-responsive’ (accepting, resistance and staying in response to male attempts). Females spent six times longer displaying male-responsive (83.9%) versus self-initiated behaviours (16.1%; Fig. 1c). Owing to this asymmetry, we also quantified male-initiated behaviours (sniffing, mounting and intromission). Male spent 11.3 times more time displaying self-initiated mating behaviours than females (Fig. 1d), indicating that males largely drive mating interaction. The number and duration of male copulation bouts and interbout intervals (IBIs) varied across interactions (Fig. 1e and Extended Data Fig. 1b).
Next, we compared female behaviours during male copulation bouts versus IBIs (Fig. 1f). Behaviours were classified as ‘social’ (accepting, resisting and appetitive) or ‘disengaged’ (rearing, digging and chewing). During copulation bouts, females primarily exhibited social behaviours (62% of the duration for each bout) and rarely disengaged behaviours (Fig. 1g, left). During IBIs, when females were separated from the males, they continued social behaviours initiated during the preceding bout (Fig. 1g, right; 23% of IBI duration). A behaviour probability plot aligned to copulation offset showed that females continued accepting or resisting behaviours and performed appetitive approaches and sniffing during IBIs (Fig. 1h and Extended Data Fig. 1c).
These results demonstrate that female behaviours during mating are dynamic and primarily driven by male-initiated behaviours. The persistence of female social behaviours observed during pauses in copulation (Fig. 1h) suggests a corresponding persistent internal state of mating receptivity or engagement. The ramping dynamics of ‘accepting’ behaviours (Fig. 1b) further suggests that escalation may be a property of this internal state. Persistence and escalation (or ‘scalability’) are features of internal states underlying other dynamic social behaviours, such as male aggression21. We next investigated how these state properties are instantiated by neural activity and dynamics.
Tuning of female VMHvl neurons in mating
To uncover how the dynamics of female mating behaviour are encoded in neural activity, we imaged VMHvlEsr1+,Npy2r− (α) cells5 in freely moving sexually receptive females interacting with males, using a miniature head-mounted microscope18 (Fig. 2a). Initially, we analysed responses observed in the first minute of exposure to either a male or female conspecific and observed distinct subsets tuned to intruder sex, with male-preferring cells approximately four times more abundant, contributing to clear separation of sex in principle component space (Extended Data Fig. 1e,f,h). Correspondingly, the averaged population response to a male was approximately four times higher than that to a female (Extended Data Fig. 1g), consistent with previous bulk calcium imaging studies5.
We next analysed imaging data from females acquired during free mating interactions with a male, over 5–10-min observation periods (Fig. 2b; 16–207 units per mouse, mean of 89 ± 12 units per mouse; n = 15 mice). Choice probability22 indicated that a relatively small percentage of VMHvl α-cells (approximately 2–13%) were ‘tuned’ to specific mating behaviours (Fig. 2c and Extended Data Fig. 2a,b), whereas the majority exhibited ‘mixed selectivity’ (Fig. 2c and Extended Data Fig. 2a,b, grey bars), indicating relatively weak behaviour-specific tuning at the single-neuron level.
To further investigate the relationship between mating behaviours and neural activity, we fit generalized linear models (GLMs) to each neuron using female mating behaviours (Fig. 2d), male mating behaviours (Extended Data Fig. 2c), or both female and male behaviours (Extended Data Fig. 2d). Across all animals, only approximately 8% of the variance in neural activity was explained by female mating behaviours (Fig. 2e; mean cross-validated R2 (cvR2) = 0.08; n = 15 mice); approximately 14% by male mating behaviours (Extended Data Fig. 2c; mean cvR2 = 0.14) and approximately 15% of the variance were explained by combined female and male behaviours (Extended Data Fig. 2d; mean cvR2 = 0.15).
Together, these single-cell analyses indicated that a large fraction of the variance in VMHvl α-cell neural activity during female mating could not be explained by behaviour using a GLM. Nevertheless, a trained support vector machine linear decoder could distinguish mating behaviours with an accuracy higher than chance (Extended Data Fig. 2f–i), suggesting some relationship between neural activity or dynamics and behaviour. To examine whether local interactions between neurons could improve the fit of our GLMs, we included coupling filters23,24 in addition to the behavioural variables (Fig. 2f). The introduction of neuronal coupling dramatically increased variance explained by the GLM, suggesting that local circuit interactions contribute more than behaviour to neuronal variance in VMHvl α-cell activity (Fig. 2f,g; mean cvR2 = 0.46; n = 15 mice). Because GLMs fit using low-dimensional coupling matrices (as obtained here) can reflect slowly evolving neural dynamics, we were then motivated to analyse the dynamics of VMHvl α-cell activity.
Neural dynamics in female VMHvl
We first examined the dynamics of single-neuron activity by measuring the half-width of the autocorrelation (ACHW) function22 of each neuron, which is an approximation of the time constant of the neuron25,26 (Fig. 2h). This analysis identified individual cells that exhibited apparent persistent activity across the mating interaction. Of cells, 30% displayed ACHWs longer than 25 s (mean ACHW of 20 s; Fig. 2i), a duration longer than the mean copulation IBI (13.7 s; Fig. 1e, right). Of note, the ACHW of the same female cells was significantly lower when the male was confined in a perforated enclosure (pencil cup) than during free mating interaction (mean ACHW for pencil cup of 14.3 ± 0.42 s, mean ACHW for free interaction of 19.64 ± 0.58 s; Extended Data Fig. 3a–c), suggesting that the latter cannot be fully explained by persistent male odours.
Given that the single-cell analysis revealed evidence of persistent neural activity, we considered whether a systems-level approach could capture low-dimensional features of population neural dynamics. To this end, we fit an unsupervised dynamical systems model (recurrent switching linear dynamical systems (rSLDS))19,21 directly to neural data during individual trials (Fig. 3a,d,e; n = 15 mice; mean variance explained (calculated as cvR2 between observed and predicted neural trajectories) of 64.08 ± 6.8%).
Applying rSLDS analysis to VMHvl α-cell activity revealed an ‘integration dimension’ in state S2 with a relatively long time constant, compared with the other dimensions (110.7 ± 13.6 s; Fig. 3b, red dot, and 3c; n = 15 mice). Examining the log2 ratio of the two longest time constants to calculate a ‘line-attractor score’21 revealed that the fit dynamical system contains a line attractor (Fig. 3e), which is aligned in neural state space to the integration dimension. The integration dimension could also be uncovered using supervised targeted dimensionality reduction (Extended Data Fig. 3d,e), confirming that slow integration dynamics is indeed a property of a subset of VMHvl neurons and not dependent on the method used.
Projecting neural activity into the integration dimension revealed ramping activity that began to increase at the onset of sniffing, mounting or intromission (depending on the trial) and that continued to increase across multiple mating bouts and IBIs (Fig. 3d and Extended Data Fig. 3f–q). The continuous ‘ramping up’ in the integration dimension observed over a long timescale during mating is unexpected; it contrasts with studies of bulk calcium activity in female VMHvlCckar neurons, which have shown a unidirectional decrease from the start of mounting until ejaculation6.
To quantitatively reveal the variable integrated by the integration dimension, we modelled the dimension as a neural integrator using a single-state linear dynamical system, allowing the model to flexibly use male behaviours (male-sniff, mount and intromission) to move activity along the integrator (Extended Data Fig. 3r). We found that the model fits with high accuracy (cvR2 of 0.88 ± 0.02) and possess a large intrinsic time constant (more than 200 s), revealing that it does indeed function as an integrator (Extended Data Fig. 3s). To dissect how the different inputs contribute to the model, we obtained the transformed input from the model (Extended Data Fig. 3s) and found that it peaks following every male contact (Extended Data Fig. 3t, bottom). Thus, male-contact-driven input, in combination with sustained input during male-engagement behaviours such as intromission, is used to integrate activity over time (Extended Data Fig. 3t, bottom, and 3u).
Analysis of the traces of individual neurons contributing to the integration dimension indicated that some single cells exhibited ramping-like activity (Extended Data Fig. 4a,b; 56% of neurons r2 > 0.5), but that different cells peaked at different times during the mating interaction (Extended Data Fig. 4c,d, orange arrowheads). This suggests that the robust ramping activity seen in the integration dimension (Extended Data Fig. 4c, top) is a property of the population and not solely a collective property of all single neurons.
To visualize the flow field of the rSLDS-fit dynamical system, we projected it into a 2D state space using principal component analysis (Fig. 3e). This projection revealed a stable region (white area) comprising a linear array of ‘slow points’ that approximated a line attractor, which is primarily contributed by the integration dimension of the model (Fig. 3d–g). Mapping annotated behaviours onto the neural trajectory in this state space indicated that the population vector entered the line attractor following initial close contact with the male and progressed along it during successive male intromission bouts (Fig. 3f,g). This progression reflects the ramping seen in the integration dimension discovered by the rSLDS (Fig. 3d and Extended Data Fig. 3f–q). The pattern of fixed points discovered by the rSLDS could also be uncovered by independently fitting recurrent neural networks to neural data using FORCE27,28, revealing that the putative line attractor is a feature of neural data and not an artefact of the rSLDS method (Extended Data Fig. 5a,b). Of note, in some animals, the neural vector exhibited brief, loop-like excursions orthogonal to the attractor dimension during IBIs (Fig. 3g and Extended Data Fig. 3i,m,q), suggesting ‘attractiveness’ of the observed fixed points against either natural perturbations orthogonal to the attractor or noise.
Perturbations of the female line attractor
Definite evidence for the attractive nature of the fixed points discovered by the rSLDS requires performing neural perturbations orthogonal to the line attractor. Such perturbations for line attractors have yet to be performed for freely behaving animals29. To achieve this, we performed optogenetic inhibition of the VMHvl network while concurrently imaging VMHvlEsr1 α-cell neurons (Extended Data Fig. 5c,d). We found that transient optogenetic inhibition creates consistent transient off-manifold responses in neural state space during the period of photostimulation, with the neural trajectory returning to the nearest fixed point along the line attractor post-inhibition (Fig. 3h–k and Extended Data Fig. 5e–j). Using forward simulations of the model fit to data from the unperturbed period (excluding data during and 20 s after stimulation), we found that the dynamical system model is able to predict neural trajectories in the held-out post-stimulus period, revealing the predictive nature of the flow field (Extended Data Fig. 5f–h). Moreover, by providing this inhibition at different positions along the line attractor, we showed that different fixed points along the line attractor revealed by the rSLDS are indeed attractive (Fig. 3i,j and Extended Data Fig. 5i,j).
The presence of a line attractor suggested a mechanism to stably maintain population activity in a particular state during interruptions or pauses in male mating behaviour. To test this hypothesis, we first examined activity during copulation IBIs, when the male is physically separated from the female. Of note, we found that the average value of the integration dimension during copulation IBIs was relatively high, similar to and statistically indistinguishable from that measured during the preceding copulation bout (Fig. 4a). Accordingly, it was not possible, using activity in this dimension, to train a decoder to distinguish videoframes containing copulation bouts versus IBIs with accuracy greater than chance (Fig. 4b).
To further probe the stability of the identified line attractor in female VMHvl, we next carried out behavioural perturbation experiments to non-invasively and transiently interrupt male mating (Fig. 4c). After several successful intromission bouts had been performed, we remotely abrogated copulation by optogenetic activation of Sf1+ cells from the ventromedial hypothalamus in males, which abruptly promoted a defensive state30,31. During the laser-on period, males stopped all mating behaviours, including singing, and displayed no active approach to the female. The induced mating pauses lasted for several minutes (1–5 min), which were much longer than the natural mating pauses (Fig. 1f; average IBI = 13.7 s). Nevertheless, activity in the integration dimension in the female brain remained elevated for minutes while the male was prevented from resuming mating (Fig. 4d), consistent with the persistent activity that we observed during the natural male copulation pauses (Fig. 4a).
Together, these data indicated that VMHvl α-cell activity displays line-attractor dynamics during mating, and that although male contact is integrated along the line attractor (Extended Data Fig. 3r–u), the stability of the system in the integration dimension does not require continuous male contact-dependent sensory input. In further support of this conclusion, in a cohort of naturally cycling females exhibiting variable receptivity (see below), we obtained some trials with high male intromission rates but low female receptivity behaviour (Fig. 4e, coloured dots, and Supplementary Videos 1 and 2). Of note, analysis of those trials revealed relatively little if any ramping in the integration dimension (Fig. 4f). These data suggest that ramping does not simply reflect accumulated mechanosensory inputs derived from male intromission.
Finally, we sought to identify a correlate of the ramping activity revealed by line-attractor dynamics in VMHvl (Fig. 4g). Males displayed sequential mating behaviours with escalating intensity from sniffing to mounting, intromission and finally ejaculation, reflecting an escalating internal state of sexual arousal. We examined activity in the integration dimension during ejaculation and observed that it peaked just before ejaculation, and immediately dropped thereafter (Fig. 4g,h); however, this drop is also characteristic of bulk calcium activity6.
Attractor encodes level of receptivity
We considered whether the line attractor observed during mating reflects or encodes the level of female receptivity by altering receptivity in two different paradigms. First, we performed longitudinal imaging in multiple females (n = 4 mice) across their 4–5-day oestrus cycle, during which receptivity changes (Extended Data Fig. 6a). In each animal, we were able to obtain data from 1 sexually receptive day and 2 unreceptive days and to align neurons from those recordings across days (Fig. 5a). Consistent with previous studies5,6,16, no change in average VMHvl α-cell population activity (triggered on a male mounting attempt) was apparent on receptive versus unreceptive days (Extended Data Fig. 6b). However, raster plots revealed obvious differences in the pattern of single-unit activity on receptive versus unreceptive days (Fig. 5a, right).
To determine whether there were also differences in VMHvl α-cell dynamics across the oestrus cycle, we fit rSLDS models to data obtained on both receptive and unreceptive days, for each individual. Models fit to data from unreceptive days failed to identify a single dimension with a very long time constant, indicating the absence of a line attractor (Fig. 5b,c). Accordingly, the first two principal components of the rSLDS state space did not exhibit integration-like activity, but rather relatively fast dynamics time-locked to male sniffing and mounting (PC2 in Fig. 5d). In 2D flow-field projections, neural state space contained a single point attractor, reflecting stable baseline activity before interaction with the male, from which the population vector made rapid excursions during sniffing and mounting, returning to the same point attractor after interaction (Fig. 5e,f).
To compare neural dynamics on non-receptive versus receptive days more directly, we projected neural activity from unreceptive days into the rSLDS model fit to data from the receptive day using the same neurons aligned across days (Fig. 5g). The projected neural data failed to show ramping behaviour in the first rSLDS dimension (Fig. 5h and Extended Data Fig. 6c). Accordingly, in 2D projections of the flow field, the neural population activity vector remained at one end of the line attractor (Extended Data Fig. 6d). Although male mounting occurred on unreceptive days (Fig. 5h, purple rasters), activity in the first rSLDS dimension was low during this behaviour (Extended Data Fig. 6e), indicating that it is not sufficient to explain the ramping observed on receptive days.
These results suggested that a change in neural dynamics occurred between receptive and unreceptive days. This inference was supported by the lower ACHW of cells weighted on the first rSLDS dimension on unreceptive versus receptive days (Extended Data Fig. 7a,b; distribution mean for ACHW on unreceptive days 16.1 ± 0.8 s, and on receptive days 25.2 ± 1.5 s; P < 0.001). This difference in mean ACHW was observed regardless of the order in which receptive and unreceptive days occurred in different mice (Extended Data Fig. 7c,f). Neurons that did not contribute to the first rSLDS dimension did not exhibit a change in ACHW (Extended Data Fig. 7d,g). Finally, we compared the ACHWs of each individual unit on receptive versus non-receptive days. A scatter plot of these data revealed a subpopulation (39 ± 5%) of line attractor-weighted neurons whose ACHW was higher on receptive than on unreceptive days (Extended Data Fig. 7e,h, red data points). Indeed, incorporating these differences in the ACHW into a mechanistic spiking network model can recapitulate our empirical results, exhibiting a loss of line-attractor dynamics during unreceptive states (Extended Data Fig. 8d).
As a second independent test of the hypothesis that the line attractor encodes receptivity, we subjected a cohort of females to ovariectomy (OVX) to render them unreceptive, and performed longitudinal imaging in the OVX animals before versus after hormone priming to restore receptivity (daily injection of oestrogen or progesterone in oil; controls were injected with oil only; see Methods). The results indicated that attractor dynamics disappeared following OVX and were reinstated following hormone priming (Extended Data Fig. 9j). The female mice used in this cohort had also been imaged during their natural cycle and fit with rSLDS models. In some individuals, the model possessed a poor fit on receptive days (Extended Data Fig. 9k, ‘forward simulation accuracy’). In one such animal, the fit of the rSLDS model was markedly improved following OVX and hormone priming, compared with the fit obtained on her naturally receptive day (Extended Data Fig. 9k versus 9l–n). Together, these data confirm a strong prediction of the hypothesis that the line attractor observed during mating encodes some aspect of mating receptivity.
The foregoing data left open the important question of whether the continuous low-dimensional variable instantiated by the line attractor reflects or encodes continuous variation in the degree of female receptivity. In males, differences in the time constant of the integration dimension are strongly correlated with differences in aggressiveness, across individual animals19. We therefore sought to examine line attractor parameters within a cohort of females exhibiting individual differences in receptivity across trials and days. To generate this cohort, we injected naturally cycling female mice with oestrogen (but not progesterone) daily beginning 2 days before imaging and continued the injections during 3–7 days of repeated imaging of the same animals during daily mating tests (n = 6 mice). These injections increased the number of days on which females exhibited receptivity, while still allowing variation in the level of receptivity (as measured by the amount of accepting behaviours displayed in a given trial) in response to changing levels of endogenous sex hormones across the oestrus cycle (Fig. 5i,j and Extended Data Fig. 10a). This design afforded the opportunity to correlate quantitative variation in receptivity with variation in line-attractor parameters.
We fit rSLDS models to imaging data from each animal and mating trial and plotted the average activity of the integration dimension over time (refer to Fig. 5h). The area under the curve was strongly and positively correlated with the percentage of time that females performed acceptance behaviours during each mating interaction (Fig. 5k,l; r2 = 0.62; P < 0.0001; n = 50 trials). By contrast, other behaviours such as resistance and appetitive behaviours were not correlated with this measure (Extended Data Fig. 10b). Finally, the population mean of neural activity did not show any correlation with the percentage of time that females performed acceptance behaviours, highlighting the value of rSLDS to identify physiologically distinct subpopulations whose activity is quantitatively correlated with receptivity during male mating (Extended Data Fig. 10c,d). Thus, these data indicate that variation in movement along the line attractor reflects variation in levels of sexual receptivity, across individuals and trials.
Discussion
Using unsupervised analysis of neural data, we discovered an approximate line attractor in a genetically defined subset of VMHvlEsr1 neurons that causally controls female mating receptivity. Activity in the attractor scales with individual differences in receptivity and is oestrus cycle dependent. To our knowledge, no previous example of a line attractor that appears and disappears with periodic changes in behavioural/hormonal state on a timescale of days exists.
Line-attractor dynamics can afford internal states two important features: stability (persistence) and ramping (scalability). The stability of the line attractor across intromission bouts may function to maintain the female in a persistently aroused state during intermittent male copulatory behaviour, facilitating its re-initiation following pauses. This interpretation is supported by our observation that female social behaviour persists following natural interruptions in copulation (Fig. 1f–h). The ramping activity seen during copulation may represent a continuous, scalable variable in the female brain. A reasonable interpretation is that this variable encodes the level of escalating female sexual arousal. We emphasize that this ramp-up was not visible in the bulk α-cell calcium signal, but only in the integration dimension. This may explain why it was not reported in a study of mating-related VMHvlCckar neuronal activity using fibre photometry6.
The idea that the line attractor encodes mating receptivity is supported by its presence or absence during receptive versus unreceptive oestrus cycle days or in ovariectomized females with versus without hormone priming, respectively (Fig. 5c). However, it is not just a binary correlate of receptivity: the degree of movement along the attractor was highly correlated (r2 = 0.62) with the level of receptivity as measured by the frequency of accepting behaviours (Fig. 5k). By contrast, the integration dimension was not well correlated with other female behaviours (Extended Data Fig. 10b).
Our previous work has shown that transcriptionally distinct subsets of VMHvlEsr1 neurons, called α-cells and β-cells, control female sexual receptivity and maternal aggression, respectively5. Here we show that the α-cell population exhibits further heterogeneity at the physiological level, including subsets that contribute to the line attractor or to orthogonal dimensions. Whether these subpopulations are transcriptomically distinct is not yet clear6,17. Yin et al.6 previously reported that VMHvlCckar neurons (a subset of α-cells) displayed receptivity-associated changes in their spontaneous activity, and responsivity to males during investigation. These cells may contribute to the integration dimension neurons identified here.
Together, our data suggest that neural population dynamics represent the dynamics of female mating receptivity and can be reversibly sculpted by physiological state. They also generalize the concept that line attractors with slow dynamics encode internal states underlying innate social behaviours21. Because the molecular, cellular and connectional features of VMHvl are well described5,14,15,32–34, this system may be advantageous for understanding how hormones, genes, cell types and local circuitry contribute to emergent neural population dynamics.
Methods
Mice
All experimental procedures involving the use of live mice or their tissues were carried out in accordance with NIH guidelines and approved by the Institute Animal Care and Use Committee (IACUC) and the Institute Biosafety Committee (IBC) at the California Institute of Technology (Caltech). All mice in this study, including wild-type and transgenic mice, were bred at Caltech or purchased from Charles River Laboratory. Group-housed C57BL/6N female or singly housed male mice (2–5 months) were used as experimental mice. Npy2rcre mice (Jackson Laboratory stock no. 029285; n = 1), Esr1cre mice, Esr1flp mice (n > 10) and Sf1cre mice (Jackson Laboratory stock no. 012462) were backcrossed into the C57BL/6N background and bred at Caltech. Heterozygous Npy2rcre, Esr1cre or double heterozygote Esr1flp/+Npy2rcre/+ mice were used for cell-specific targeting experiments and were genotyped by PCR analysis using genomic DNA from tail tissue. All mice were housed in ventilated microisolator cages in a temperature-controlled environment (median temperature of 23 °C, humidity of 60%), under a reversed 11-h dark–13-h light cycle, with ad libitum access to food and water. Mouse cages were changed weekly.
Surgeries
Surgeries were performed on female Esr1flp/+Npy2rcre/+ mice 2 months of age. Virus injection and implantation were performed as previously described35,36. In brief, mice were anaesthetized with isoflurane (5% for induction and 1.5% for maintenance) and placed on a stereotaxic frame (David Kopf Instruments). Virus was injected into the target area using a pulled-glass capillary (World Precision Instruments) and a pressure injector (Micro4 controller, World Precision Instruments), at a flow rate of 20 nl min–1. The glass capillary was left in place for 10 min following injection before withdrawal. Lenses were slowly lowered into the brain and fixed to the skull with dental cement (Metabond, Parkell). Females were co-housed with a vasectomized male mouse after virus injection and lens implantation. Four weeks after lens implantation, mice were head-fixed on a running wheel and a miniaturized micro-endoscope (nVista, nVoke, Inscopix) was lowered over the implanted lens until GcaMP-expressing fluorescent neurons were in focus. Once GcaMP-expressing neurons were detected, a permanent baseplate was attached to the skull with dental cement. The co-housed vasectomized males were removed.
Virus injection and GRIN lens implantation
The following adeno-associated viruses (AAVs) were used in this study, with injection titres as indicated. Viruses with a high original titre were diluted with clean PBS on the day of use. AAV-DJ-EF1a-Coff/Fon-GcaMP6m (4.5 × 1012, Addgene plasmid) was packaged at the HHMI Janelia Research Campus virus facility. ‘Coff/Fon’ indicates Cre-OFF/FLP-ON virus. Stereotaxic injection coordinates were based on the Paxinos and Franklin atlas. Virus injection: VMHvl, anteroposterior −1.6, mediolateral ±0.78, dorsoventral −5.7; GRIN lens implantation: VMHvl: anteroposterior −1.6, mediolateral −0.76, dorsoventral −5.55 (∅0.6 × 7.3 mm GRIN lens).
Vaginal cytology
To determine the oestrus phases of tested females, vaginal smear cytology was applied on the same day as the behavioural test. A vaginal smear was collected immediately after the behavioural test and stained with 0.1% crystal violet solution for 1 min. Cell types in the stained vaginal smear were checked microscopically. In this study, the pro-oestrus phase was characterized by many nucleated epithelial, some cornified epithelial and no leukocytes.
Hormone priming
Female mice were ovariectomized and oestrus was induced by hormone priming. Oestradiol benzoate (E2) and progesterone powder were dissolved in sesame oil. For primed females, 50 µl 200 µg ml−1 oestradiol benzoate was delivered subcutaneously on days -2 and -1 at 15:00. Then, 10 mg ml−1 progesterone was delivered subcutaneously on the day of test at 10:00. The behavioural test was performed 4–6 h after progesterone injection. For unprimed female mice, sesame oil was injected at the same timepoints as hormone injections. Vaginal smear cytology was applied on the same day as the behavioural test to make sure that the females were completely primed or unprimed. For oestrogen-injected females used in Figs. 4 and 5, 50 µl 200 µg ml−1 oestradiol benzoate was delivered subcutaneously every day at 10:00. The behavioural tests were conducted after the first 2 days of injection.
Sex representation assay
All behavioural tests were performed under red light. Group-housed C57BL/6N male and female mice (2–4 months) were used for the test. The tested female was acclimated in her home cage under the recording setup37 for 10 min. A toy, a female or a male was introduced to the tested female with a 90-s interval. Each interaction lasted for 1 min before transitioning into the consummatory phase. The sequential representations were repeated three times.
Mating assay
Singly housed sexually experienced C57BL/6N male mice were used for the mating assay. Male mice used for the test were initially co-housed with a female mouse for at least 1 week and singly housed at least 1 week before the test. On the day of the test, a male mouse was acclimated in his home cage under the recording setup. A random female mouse was placed into male cage until three male mounting bouts were observed. The tested female mice were acclimated in a new cage for 10 min before being introduced into the male cage. The male contact mating interaction lasted for 5–15 min. At the end of the free interaction, a pencil cup was introduced to restrain the male. Then, imaging and behavioural recording during the non-contact period continued for 3–5 min.
Wireless optogenetic male mating inhibition assay
Singly housed sexually experienced Sf1cre+/− males were used in this test. All hardware and wireless devices for optogenetic stimulation were sourced from NeuroLux. Specifically, AAV2-EF1a-DIO-hChR2(H134R)-EYFP-WPRE-pA (4.2 × 1012, UNC vector core) was unilaterally injected into ventromedial hypothalamus of the male mice at coordinates: anteroposterior −1.5, mediolateral +0.4, dorsoventral −5.6. Simultaneously, wireless optogenetic devices were implanted (NeuroLux). A recovery period of 3 weeks followed the surgical procedures to allow for optimal viral vector expression and to ensure the wellbeing of the mice. Subsequently, a mating assay was performed, and when multiple successful copulations were observed, male mice were exposed to a wirelessly powered blue-light photostimulation (473 nm for 1–5 min at 20 Hz and 10 W). During the stimulation, male mice promptly discontinued all mating-related behaviours, including vocalization, sniffing, mounting or intromission, and instead exhibiting exploratory behaviours within the home cage and distancing themselves from the female mouse. Following the cessation of photostimulation, male mice typically resumed mating-related behaviours, either immediately or with a delay.
Behavioural annotations
Behavioural videos were manually annotated using a custom MATLAB-based behavioural annotation interface. A ‘baseline’ period of 2 min when the animal was alone in its cage was recorded at the start of every recording session.
During female–male interaction, we manually annotated the following male mating behaviours: male sniff, mount, intromission and ejaculation.
For the same video, we annotated the following female mating behaviours: approach, sniff, lordose, wiggle, stay, dart, top up, kick, turn and check genital. For ‘approach’, the female faced male and walked to it without pausing. For ‘sniff’, the female actively sniffed the male. For ‘lordose’, the female abdomen was on the ground and motionless or showing an arched back posture responding to male mounting or intromission. For ‘wiggle’, the female continuously moved her head or body responding to male mounting or intromission. For ‘stay’, the female quietly stayed in place, but the abdomen was not clearly on the ground, responding to male mounting or intromission. For ‘dart’, the female quickly ran away from male, responding to male mating behaviours. For ‘top up’, the female stood up to conceal the anogenital area, responding to male mating behaviours. For ‘kick’, the female kicked the male, responding to male mating behaviours. For ‘turn’, the female turned away from the male, responding to mating mounting or intromission. For ‘check genital’, the female examined her genital area, usually after male mounting or intromission.
Lordose, wiggle, stay, dart, top up, kick and turn were grouped as responsive mating behaviours. Approach, sniff and check genital were grouped as female self-initiated mating behaviours.
Female approach and sniff were grouped as appetitive mating behaviours. Lordose and wiggle were grouped as accepting mating behaviours. Dart, top up, kick and turn were grouped as resistance mating behaviours.
All appetitive, accepting and resistance behaviours were grouped as social behaviours.
For the same video, we also annotated the following female non-social disengaged behaviours: rear, dig and chew. For rear, the female extended her body upright and attempted to explore outside the testing chamber. For dig, the female dug beddings. For chew, the female stood up and chewed with her mouth.
Fibre photometry
The fibre photometry setup was as previously described in earlier research with minor modifications. We used 470-nm LEDs (M470F3, Thorlabs, filtered with 470–10-nm bandpass filters FB470-10, Thorlabs) for fluorophore excitation, and 405-nm LEDs for isosbestic excitation (M405FP1, Thorlabs, filtered with 410–10-nm bandpass filters FB410-10, Thorlabs). LEDs were modulated at 208 Hz (470 nm) and 333 Hz (405 nm) and controlled by a real-time processor (RZ5P, Tucker David Technologies) via an LED driver (DC4104, Thorlabs). The emission signal from the 470-nm excitation was normalized to the emission signal from the isosbestic excitation (405 nm), to control for motion artefacts, photobleaching and levels of GcaMP6m expression. LEDs were coupled to a 425-nm longpass dichroic mirror (DMLP425R, Thorlabs) via fibre optic patch cables (diameter of 400 mm, NA of 0.48; Doric lenses). Emitted light was collected via the patch cable, coupled to a 490-nm longpass dichroic mirror (DMLP490R, Thorlabs), filtered (FF01-542/27-25, Sem-rock), collimated through a focusing lens (F671SMA-405, Thorlabs) and detected by the photodetectors (Model 2151, Newport). Recordings were acquired using Synapse software (Tucker Davis Technologies). On the test day, after at least 5 min of acclimation under the recording setup, the female was first recorded for 5 min to establish a baseline. Then, behavioural assays were proceeded and fluorescence was recorded for the indicated period of time, as described in the main text. All data analyses were performed in Python. Behavioural video files and fibre photometry data were time-locked. Fn was calculated using normalized (405 nm) fluorescence signals from 470-nm excitation. Fn(t) = 100 × [F470(t) – F405fit(t)]/F405fit(t). For the peri-event time histogram, the baseline value F0 and standard deviation s.d.0 were calculated using a −5-s to −3-s window. Overlapping behavioural bouts within this time window were excluded from the analysis. Then, the peri-event time histogram was calculated by [(Fn(t) – F0]/s.d.0.
Microendoscopic imaging data acquisition
Imaging data were acquired by nVista 3.0 (Inscopix) at 30 Hz with two times spatial downsampling; LED power (0.2–0.5) and gain (6–8×) were adjusted depending on the brightness of GcaMP expression as determined by the image histogram according to the user manual. A transistor–transistor logic pulse from the Sync port of the data acquisition box (DAQ, Inscopix) was used for synchronous triggering of StreamPix7 (Norpix) for video recording.
For perturbation-imaging experiments, AAV5-hSyn-eNpHR3-mCherry (Addgene) was expressed together with GcaMP in the VMHvl. Imaging data were acquired by nVoke 2.0 (Inscopix). One to three bouts of inhibitory LED stimulation (5 mW continuous for 10 s) were performed during receptive mating trials.
Microendoscopic data extraction and preprocessing
Miniscope data were acquired at 30 Hz using the Inscopix Data Acquisition Software as two times downsampled .isxd files. Preprocessing and motion correction were performed using Inscopix Data Processing Software. In brief, raw imaging data from the same animal from multiple recording dates were concatenated, two times spatially downsampled, motion corrected and temporally downsampled to 10 Hz further and exported as a .tiff image stack. A spatial bandpass filter was then applied to remove out-of-focus background. After preprocessing, calcium traces were extracted and deconvolved using the CNMF-E large data pipeline with the following parameters: patch_dims = [32, 32], gSig = 3, gSiz = 13, ring_radius = 19, min_corr = 0.75 and min_pnr = 8. The spatial and temporal components of every extracted unit were carefully inspected manually (signal-to-noise ratio, peak-to-noise ratio, size, motion artefacts, decay kinetics and so on) and outliers (obvious deviations from the normal distribution) were discarded. The extracted traces were then z-scored before analysis.
Longitudinal imaging data extraction and preprocessing
The females performed the mating assay and were imaged for consecutive 3–7 days. ‘Receptive day’ was defined as the female displaying accepting behaviours on the testing day, whereas ‘unreceptive day’ was defined as the female not displaying accepting behaviours on the testing day. Miniscope data from one receptive day and two unreceptive days were selected and concatenated to one .isxd file. Data were preprocessed and the traces were extracted as described in the previous section. The 3-day concatenated traces were z-scored and then split to multiple traces for individual days.
Choice probability
Choice probability is a metric that estimates how well either of two different behaviours can be predicted or distinguished, based on the activity of any given neuron during these two behaviours. Choice probability of single neurons was computed using previously described methods36. To compute the choice probability of a single neuron for any behaviour pair, 1-s binned neuronal responses occurring during each of the two behaviours were used to generate a receiver operating characteristic curve. Choice probability is defined as the area under the curve bounded between 0 and 1. A choice probability of 0.5 indicates that the activity of the neuron cannot distinguish between the two alternative behaviours. We defined a neuron as being capable of distinguishing between two behaviours if the choice probability of that neuron was more than 0.7 or less than 0.3 and was more than 2 s.d. or 2 s.d. or less of the choice probability computed using shuffled data (repeated 1,000 times).
GLM
To predict neural activity from behaviour, we trained GLMs to predict the activity of each neurons k, as a weighted linear combination of three male behaviours: male sniffing, mounting and intromission:
Here is the calcium activity of neuron k at time t, is a feature vector of three binary male behaviours at time lags ranging from t-D to t where D = 10 s. is a behaviour filter, which describes how a neuron integrates stimulus over a 10-s period (example filters are shown in Extended Data Fig. 2d,e). φ is an error term. The model was fit using tenfold cross-validation with ridge regularization, and the model performance is reported as cvR2. To account for cell–cell interactions within the network, we also used the activity of simultaneously imaged neurons as regressors in addition to behaviour as previously performed23,24.
Dynamical system modelling
rSLDS models19,38 are fit to neural data as previously described21. In brief, the rSLDS is a generative state-space model that decomposes non-linear time series data into a set of linear dynamical systems, also called states. The model describes three sets of variables: a set of discrete states (z), a set of latent factors (x) that captures the low-dimensional nature of neural activity and the activity of recorded neurons (y). Although the model can also allow for the incorporation of external inputs based on behavioural features, such external inputs were not included in our first analysis.
The model is formulated as follows: at each timepoint, there is a discrete state that depends recurrently on the continuous latent factors (x):
1 |
where and parameterize a map from the previous discrete state and continuous state to a distribution over the next discrete states using a softmax link function. The discrete state zt determines the linear dynamical system used to generate the latent factors at any time t:
2 |
where is a dynamics matrix and is a bias vector, where D is the dimensionality of the latent space and is a Gaussian-distributed noise (aka innovation) term.
Finally, we can recover the activity of recorded neurons by modelling activity as a linear noisy Gaussian observation where N is the number of recorded neurons:
3 |
For and , a Gaussian noise term. Overall, the system parameters that rSLDS needs to learn consists of the state-transition dynamics, library of linear dynamical system matrices and neuron-specific emission parameters:
4 |
We evaluated model performance using both the evidence lower bound and the forwards simulation accuracy (Fig. 3a) described in Nair et al.21, as well as by calculating the variance explained by the model on data. In brief, given observed neural activity in the reduced neural state space at time t, we predicted the trajectory of population activity over an ensuing small time interval Δt using the fit rSLDS model, then computed the mean squared error (MSE) between that trajectory and the observed data at time t + Δt. This MSE was computed across all dimensions of the reduced latent space and repeated for all times t across cross-validation folds. This error metric is normalized to a 0–1 range in each animal across the whole recording to obtain a bounded measure of model performance. The forwards simulation accuracy can provide an intuition of where model performance drops during the recording. In addition to MSE, we also calculated the Pearson’s correlation coefficient (R2) between the predicted and observed data for each dimension following the forwards simulation. By taking the average correlation coefficient across dimensions, we obtained a quantitative estimate of variance explained by the rSLDS on observed data.
The number of states and dimensions used for the model are determined using fivefold cross-validation. Visualization of the dynamical system using principal component analysis is performed as previously described21.
For neural perturbation experiments, the rSLDS model was trained on data from unstimulated periods of time (that is, excluding data during and 20 s immediately after stimulation) and then tested on data from stimulated periods along with a 20-s post-stimulus period (Extended Data Fig. 5e,f).
The code used to fit the rSLDS on neural data is available in the SSM package: (https://github.com/lindermanlab/ssm).
Estimation of time constants
We estimated the time constant of each dimension of linear dynamical systems using eigenvalues λa of the dynamics matrix of that system, as previously derived39:
5 |
Decoding of behaviour using support vector machines
We trained frame-wise decoders to discriminate various pairs of behaviours as shown in Extended Data Fig. 4, from the population activity of all neurons during a mating interaction. We first created ‘trials’ from bouts of each behaviour by merging all bouts that were separated by less than 5 s and balanced data to ensure chance performance of the model to be 50%. We then trained a linear support vector machine to identify a decoding threshold that maximally separates the two behaviours and tested the accuracy of the trained decoder on held-out frames. ‘Shuffled’ decoder data were generated by setting the decoding threshold on the same trial, but with the behavioural annotations randomly assigned to each behavioural bout. We repeated shuffling 20 times. We report performances of actual and shuffled decoders as the average F1 score of the fit decoder, on data from all other trials for each mouse. For significance testing, the mean accuracy of the decoder trained on shuffled data was computed across mice, with shuffling repeated 1,000 times for each mouse.
Dynamical system modelling using FORCE learning
We trained a recurrent neural network (RNN) to reproduce activity of individual neurons during mating interactions using FORCE as previously described28,40. The dynamics of each unit in the RNN is governed by the following equation:
Here, τ is the time constant of the system (0.5 s as used previously40), H is the total external input to neurons (consisting of a weighted combination of male sniff, mounting and intromission), J is a heterogeneous matrix of recurrent connections whose strength is determined by the parameter g. For chaotic networks, we used g = 1.5 as used previously28,40. The elements of the matrix J are modified through recursive least squares as previously described28,41, by reducing an error term . Here is the experimental calcium trace and . The network contains the same number of units as in the experimental data (between 100 and 200 neurons), and dynamics were solved using Euler’s method (dt = 0.05 s).
To estimate the fixed points of the RNN, we reverse engineered the trained RNN with fixed point analysis42 using gradient-based optimization. The estimated slow points of the dynamical system were then projected into the same neural state space as determined by the rSLDS to determine the similarity in attractor landscapes discovered by the two methods (Extended Data Fig. 5a,b).
Modelling of integration dynamics to reveal inputs to the line attractor
To reveal the input received by the integration dimension (Extended Data Fig. 3r–u), we modelled activity of this dimension using a single-state linear dynamical system model as:
here x refers to weighted activity of the integration dimension and W is a matrix used to linearly combine behavioural inputs (male sniff, mounting and intromission) to the integration dimension. The model was fit as described above for the rSLDS, and model performance was evaluated using variance explained with cross-validation.
Mechanistic modelling of spiking neural networks
We constructed a model population of n = 1,000 standard current-based leaky integrate-and-fire neurons as previously performed43. We modelled an excitatory spiking network with feedback inhibition designed to account for finite size effects and runaway excitation. In this network, each neuron has membrane potential xi characterized by dynamics:
6 |
where τm = 20 ms is the membrane time constant, W is the synaptic weight matrix, s is an input term representing external inputs and represents recurrent inputs. To model spiking, we set a threshold (θ = 0.1), such that when the membrane potential , is set to zero and the instantaneous spiking rate is set to 1.
Inhibition was modelled as recurrent inhibition from a single-graded input Iinh representing an inhibitory population that receives equal input from and provides equal input to all excitatory units. The dynamics of Iinh evolves as:
7 |
where τI = 50 ms is the decay time constant for inhibitory currents.
We designed the synaptic connectivity matrix to include a subnetwork of 200 neurons (20% of the network), designated the integration subnetwork as suggested by empirical measurements, with a connectivity density of 12% as opposed to 1% in the remaining network. Weights of the overall network were sampled from a uniform distribution , whereas weights of the subnetwork were sampled as , where Np = 200.
External input was provided to the network as a step function consisting of 20 pulses at 10 interstimulus intervals (ISI). This stimulus drove a random 25% of neurons in each subnetwork.
Spiking-evoked input was modelled as a synaptic current with dynamics:
8 |
where τs is the synaptic conductance time constant, set to 20 s for neurons in the integration subnetwork and 100 ms for remaining neurons in the network.
Model dynamics were simulated in discrete time using Euler’s method with a time step of 1 ms and a small Gaussian noise term were added at each time step. We used g = 2.5 and varied ginh = 4.25 as suggested by measurements of inhibitory input to the VMHvl44 and used previously43. To simulate hypothesis 1 in Extended Data Fig. 8, we set the synaptic time constant for integration neurons to 100 ms. To simulate hypothesis 2, we changed the gain associated with input to each subnetwork, decreasing this quantity for the integration subnetwork by 50% and increasing the same for the remaining neurons by 50%.
Calculation of ACHW
We computed ACHWs by calculating the autocorrelation function for each neuronal time series data (yt) for a set of lags as previously described22. In brief, for a time series (yt), the autocorrelation for lag k is:
where ck is defined as:
and c0 is the sample variance of the data. The half-width is found for each neuron as the point where the autocorrelation function reaches a value of 0.5.
Partial least-squares regression to identify integration dynamics
To identify the integration dimension using an independent method, we also used partial least-squares regression. Towards this, all traces were concatenated and regressed against a 1 × T vector designed such that the vector shows ramping activity upon entry of the male intruder (Extended Data Fig. 3d,e).
Statistics and reproducibility
All experiments were conducted using 2–4 cohorts of animals. The results were reproducible across cohorts and combined for the final analysis.
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/s41586-024-07916-w.
Supplementary information
Acknowledgements
We thank A. Kennedy for critical feedback on the manuscript; Y. Huang for genotyping; G. Mancuso and L. Chavarria for administrative assistance; C. Chiu for laboratory management; E. Carcamo for mouse colony management; the Caltech OLAR staff for animal care; and members of the Anderson Laboratory for helpful comments on this project. D.J.A. is an investigator of the Howard Hughes Medical Institute. This work was supported by grants from the NIH (RO1MH112593, RO1MH123612 and RO1NS123916). A.N. is supported by a National Science Scholarship from the Agency of Science, Technology and Research, Singapore.
Extended data figures and tables
Author contributions
D.J.A., M.L. and A.N. conceptualized the study. M.L. conducted the experiments. M.L., A.N., N.C. and S.W.L. performed the data analysis. D.J.A. supervised the study. D.J.A., M.L., A.N. and S.W.L. wrote the manuscript.
Peer review
Peer review information
Nature thanks Arseny Finkelstein and the other, anonymous, reviewer(s) for their contribution to the peer review of this work.
Data availability
Data pertaining to this Article have been deposited in the DANDI repository with the accession code 001097.
Code availability
The code to analyse the rSLDS models is available at GitHub (https://github.com/lindermanlab/ssm). The rSLDS model weights and parameters have also been deposited in the DANDI with the accession code 001097.
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.
These authors contributed equally: Mengyu Liu, Aditya Nair
Extended data
is available for this paper at 10.1038/s41586-024-07916-w.
Supplementary information
The online version contains supplementary material available at 10.1038/s41586-024-07916-w.
References
- 1.Jennings, K. J. & de Lecea, L. Neural and hormonal control of sexual behavior. Endocrinology161, bqaa150 (2020). [DOI] [PMC free article] [PubMed] [Google Scholar]
- 2.Gutierrez-Castellanos, N., Husain, B. F. A., Dias, I. C. & Lima, S. Q. Neural and behavioral plasticity across the female reproductive cycle. Trends Endocrinol. Metab.10.1016/j.tem.2022.09.001 (2022). [DOI] [PubMed]
- 3.Yin, L. & Lin, D. Neural control of female sexual behaviors. Horm. Behav.151, 105339 (2023). [DOI] [PMC free article] [PubMed] [Google Scholar]
- 4.Lenschow, C. & Lima, S. Q. In the mood for sex: neural circuits for reproduction. Curr. Opin. Neurobiol.60, 155–168 (2020). [DOI] [PubMed] [Google Scholar]
- 5.Liu, M., Kim, D.-W., Zeng, H. & Anderson, D. J. Make war not love: the neural substrate underlying a state-dependent switch in female social behavior. Neuron110, 841–856.e6 (2022). [DOI] [PMC free article] [PubMed] [Google Scholar]
- 6.Yin, L. et al. VMHvllCckar cells dynamically control female sexual behaviors over the reproductive cycle. Neuron110, 3000–3017.e8 (2022). [DOI] [PMC free article] [PubMed] [Google Scholar]
- 7.Pfaff, D. W., Diakow, C., Zigmond, R. E. & Kow, L. M. Neural and hormonal determinants of female mating behavior in rats. Neuroscience3, 621–646 (1974). [Google Scholar]
- 8.Pfaff, D. W., Gagnidze, K. & Hunter, R. G. Molecular endocrinology of female reproductive behavior. Mol. Cell. Endocrinol.467, 14–20 (2018). [DOI] [PubMed] [Google Scholar]
- 9.Rodriguez-Sierra, J. F., Crowley, W. R. & Komisaruk, B. R. Vaginal stimulation in rats induces prolonged lordosis responsiveness and sexual receptivity. J. Comp. Physiol. Psychol.89, 79–85 (1975). [DOI] [PubMed] [Google Scholar]
- 10.Boyd, K. L., Muehlenbachs, A., Rendi, M. H., Garcia, R. L. & Gibson-Corley, K. N. Female Reproductive System (Academic Press, 2018).
- 11.Micevych, P. E. & Meisel, R. L. Integrating neural circuits controlling female sexual behavior. Front. Syst. Neurosci.11, 42 (2017). [DOI] [PMC free article] [PubMed] [Google Scholar]
- 12.Pfaff, D. W. & Sakuma, Y. Deficit in the lordosis reflex of female rats caused by lesions in the ventromedial nucleus of the hypothalamus. J. Physiol.288, 203–210 (1979). [PMC free article] [PubMed] [Google Scholar]
- 13.Pfaff, D. W. & Sakuma, Y. Facilitation of the lordosis reflex of female rats from the ventromedial nucleus of the hypothalamus. J. Physiol.288, 189–202 (1979). [PMC free article] [PubMed] [Google Scholar]
- 14.Yang, C. F. et al. Sexually dimorphic neurons in the ventromedial hypothalamus govern mating in both sexes and aggression in males. Cell153, 896–909 (2013). [DOI] [PMC free article] [PubMed] [Google Scholar]
- 15.Hashikawa, K. et al. Esr1+ cells in the ventromedial hypothalamus control female aggression. Nat. Neurosci.20, 1580–1590 (2017). [DOI] [PMC free article] [PubMed] [Google Scholar]
- 16.Inoue, S. et al. Periodic remodeling in a neural circuit governs timing of female sexual behavior. Cell179, 1393–1408.e16 (2019). [DOI] [PMC free article] [PubMed] [Google Scholar]
- 17.Knoedler, J. R. et al. A functional cellular framework for sex and estrous cycle-dependent gene expression and behavior. Cell185, 654–671.e22 (2022). [DOI] [PMC free article] [PubMed] [Google Scholar]
- 18.Ziv, Y. et al. Long-term dynamics of CA1 hippocampal place codes. Nat. Neurosci.16, 264–266 (2013). [DOI] [PMC free article] [PubMed] [Google Scholar]
- 19.Linderman, S. W. et al. Bayesian learning and inference in recurrent switching linear dynamical systems. In Proc. 20th Int. Conf. Artif. Intell. Stat. AISTATS 201754, 914–922 (PMLR, 2017).
- 20.Beach, F. A. Sexual attractivity, proceptivity, and receptivity in female mammals. Horm. Behav.7, 105–138 (1976). [DOI] [PubMed] [Google Scholar]
- 21.Nair, A. et al. An approximate line attractor in the hypothalamus that encodes an aggressive internal state. Cell186, 178–193 (2022). [DOI] [PMC free article] [PubMed] [Google Scholar]
- 22.Remedios, R. et al. Social behaviour shapes hypothalamic neural ensemble representations of conspecific sex. Nature550, 388–392 (2017). [DOI] [PMC free article] [PubMed] [Google Scholar]
- 23.Pillow, J. W. et al. Spatio-temporal correlations and visual signalling in a complete neuronal population. Nature454, 995–999 (2008). [DOI] [PMC free article] [PubMed] [Google Scholar]
- 24.Weissbourd, B. et al. A genetically tractable jellyfish model for systems and evolutionary neuroscience. Cell184, 5854–5868.e20 (2021). [DOI] [PMC free article] [PubMed] [Google Scholar]
- 25.Cavanagh, S. E., Towers, J. P., Wallis, J. D., Hunt, L. T. & Kennerley, S. W. Reconciling persistent and dynamic hypotheses of working memory coding in prefrontal cortex. Nat. Commun.9, 3498 (2018). [DOI] [PMC free article] [PubMed] [Google Scholar]
- 26.Murray, J. D. et al. A hierarchy of intrinsic timescales across primate cortex. Nat. Neurosci.17, 1661–1663 (2014). [DOI] [PMC free article] [PubMed] [Google Scholar]
- 27.Mante, V., Sussillo, D., Shenoy, K. V. & Newsome, W. T. Context-dependent computation by recurrent dynamics in prefrontal cortex. Nature503, 78–84 (2013). [DOI] [PMC free article] [PubMed] [Google Scholar]
- 28.Rajan, K., Harvey, C. D. D. & Tank, D. W. W. Recurrent network models of sequence generation and memory. Neuron90, 128–142 (2016). [DOI] [PMC free article] [PubMed] [Google Scholar]
- 29.Khona, M. & Fiete, I. R. Attractor and integrator networks in the brain. Nat. Rev. Neurosci.23, 744–766 (2022). [DOI] [PubMed] [Google Scholar]
- 30.Kunwar, P. S. et al. Ventromedial hypothalamic neurons control a defensive emotion state. eLife4, e06633 (2015). [DOI] [PMC free article] [PubMed]
- 31.Wang, L., Chen, I. Z. & Lin, D. Collateral pathways from the ventromedial hypothalamus mediate defensive behaviors. Neuron85, 1344–1358 (2015). [DOI] [PMC free article] [PubMed] [Google Scholar]
- 32.Kim, D.-W. et al. Multimodal analysis of cell types in a hypothalamic node controlling social behavior. Cell179, 713–728.e17 (2019). [DOI] [PMC free article] [PubMed] [Google Scholar]
- 33.Lo, L. et al. Connectional architecture of a mouse hypothalamic circuit node controlling social behavior. Proc. Natl Acad. Sci. USA116, 7503–7512 (2019). [DOI] [PMC free article] [PubMed] [Google Scholar]
- 34.Knoedler, J. R. & Shah, N. M. Molecular mechanisms underlying sexual differentiation of the nervous system. Curr. Opin. Neurobiol.53, 192–197 (2018). [DOI] [PMC free article] [PubMed] [Google Scholar]
- 35.Karigo, T. et al. Distinct hypothalamic control of same- and opposite-sex mounting behaviour in mice. Nature589, 258–263 (2021). [DOI] [PMC free article] [PubMed] [Google Scholar]
- 36.Yang, B., Karigo, T. & Anderson, D. J. Transformations of neural representations in a social behaviour network. Nature608, 741–749 (2022). [DOI] [PMC free article] [PubMed] [Google Scholar]
- 37.Hong, W. et al. Automated measurement of mouse social behaviors using depth sensing, video tracking, and machine learning. Proc. Natl Acad. Sci. USA112, E5351–E5360 (2015). [DOI] [PMC free article] [PubMed] [Google Scholar]
- 38.Linderman, S. W. et al. Bayesian learning and inference in recurrent switching linear dynamical systems. In Proc. 20th International Conference on Artificial Intelligence and Statistics 54, 914–922 (PMLR, 2017).
- 39.Maheswaranathan, N., Williams, A., Golub, M., Ganguli, S. & Sussillo, D. Reverse engineering recurrent networks for sentiment classification reveals line attractor dynamics. Adv. Neural Inf. Process. Syst.32, 15696–15705 (2019). [PMC free article] [PubMed]
- 40.Hadjiabadi, D. et al. Maximally selective single-cell target for circuit control in epilepsy models. Neuron109, 2556–2572.e6 (2021). [DOI] [PMC free article] [PubMed] [Google Scholar]
- 41.Sussillo, D. & Abbott, L. F. Generating coherent patterns of activity from chaotic neural networks. Neuron63, 544–557 (2009). [DOI] [PMC free article] [PubMed] [Google Scholar]
- 42.Sussillo, D. & Barak, O. Opening the black box: low-dimensional dynamics in high-dimensional recurrent neural networks. Neural Comput.25, 626–649 (2013). [DOI] [PubMed] [Google Scholar]
- 43.Kennedy, A. et al. Stimulus-specific hypothalamic encoding of a persistent defensive state. Nature586, 730–734 (2020). [DOI] [PMC free article] [PubMed] [Google Scholar]
- 44.Yamamoto, R., Ahmed, N., Ito, T., Gungor, N. Z. & Pare, D. Optogenetic study of anterior BNST and basomedial amygdala projections to the ventromedial hypothalamus. eNeuro5, ENEURO.0204-18.2018 (2018). [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 pertaining to this Article have been deposited in the DANDI repository with the accession code 001097.
The code to analyse the rSLDS models is available at GitHub (https://github.com/lindermanlab/ssm). The rSLDS model weights and parameters have also been deposited in the DANDI with the accession code 001097.