Main

Homeostatic reflexes through sensing and integrating internal states are crucial for survival, motivation and emotional expression1. Peripheral sensory neurons send continuous signals to the brain about the visceral state for interpretation and processing. Dysfunction of these interoceptive signals has not only been implicated in physiological diseases but also psychiatric and neurological disorders. The heart is a vital organ that lies at the crossroads of autonomic physiology and mental functions such as emotion and cognition5,6. However, little is known about how the brain integrates and responds to cardiac signals. There is a major understudied cardiac sensory network that transmits beat-to-beat information to the central nervous system (CNS) through the vagus nerve (associated nodose ganglia), dorsal root ganglia and other peripheral ganglia7. In fact, PIEZO ion channels that mediate the baroreflex are the only well-defined genetic components of this cardiac afferent network8. PIEZO2 VSNs form claw-like structures and surround the aortic arch to regulate the baroreflex9. Beyond this reflex, there are other excitatory and inhibitory homeostatic reflex arcs that are associated with different anatomical cardiac locations, such as the atrial Bainbridge reflex (causes tachycardia)10 or the ventricular BJR (first reported in 1867 and causes bradycardia)2,3,11. However, because of the closed loop nature of the cardiovascular system, it has been difficult to disentangle these various reflex arcs. Thus, it is imperative to genetically dissect cardiac sensory pathways to better understand heart physiology and its influence on brain states and behaviour.

The transcriptomic identities, anatomical organization and functional role of cardiac VSNs remain mostly unknown. In particular, the cardiac ventricles are innervated by VSNs with mainly unmyelinated c-fibres12,13. Medical textbooks postulate that activation of these VSNs gives rise to the cardioinhibitory BJR that causes bradycardia and systemic hypotension, which in turn leads to syncope14,15. Syncope, or the ‘little faint’, is associated with a transient loss of consciousness and postural tone followed by rapid recovery16. Although syncope is a frequent cause for visits to the emergency department and has a 40% lifetime prevalence17,18, it has not been mechanistically investigated because of the lack of genetically tractable animal models19. To address these issues, we set out to genetically identify and characterize the VSNs that underlie the BJR and to investigate the role of these VSNs in syncope induction and chart their influence on CNS networks.

Genetic and anatomical heart–brain links

We reasoned that because the ventricular wall is anatomically separate from the aortic arch, there could also be genetic segregation. Thus, to gain a specific genetic handle on VSNs that innervate the ventricular wall, we reanalysed single-cell RNA sequencing (scRNA-seq) data20 of the nodose ganglia and searched for groups that were separate from PIEZO2. NPY2R VSNs formed a distinct genetic cluster from PIEZO2 (Extended Data Fig. 1a–d) and were also previously reported to modulate autonomic function21. Next, to assess the existence of cardiac innervation, we bilaterally injected AAV.PHP.S-DIO-gCOMET into the nodose ganglia of NPY2R-Cre mice to specifically label sensory but not motor neurons (Fig. 1a,b). VSNs project to the brainstem22, and, as expected, we observed dense terminals in the nucleus of the solitary tract (NTS) and the area postrema (AP; Fig. 1c). There are limited studies of cardiac innervation by VSNs because the fibres are thin and spread out23,24. Moreover, the heart is dense, opaque and filled with blood, which causes autofluorescence and impedes imaging. To overcome these obstacles, we used a new whole-organ tissue-clearing approach, HYBRiD, followed by high-resolution light sheet microscopy4. We observed larger numbers of NPY2R VSN fibres in the ventricular wall compared with the atria or arch (Fig. 1d, Extended Data Fig. 1e and Supplementary Video 1). Specifically, we observed two types of putative sensory endings: end nets (73.4%) and flower sprays12 (26.6%; Fig. 1d). Innervation of other visceral organs was also observed (Extended Data Fig. 1f), such as the known NPY2R vagal afferents from the lung21. To investigate whether a single VSN projects to multiple organs, we performed paired injections of retro-AAVs with distinct fluorophores into the heart–lung and heart–gut of NPY2R-Cre mice (Fig. 1e and Extended Data Fig. 2a). There was negligible double labelling in the nodose, which indicated that distinct subsets of NPY2R VSNs project differentially to the heart, lungs and gut (Fig. 1f,g and Extended Data Fig. 2b,c). Within the brainstem, there was spatial segregation of heart, lung and gut NPY2R VSN terminals. Notably, the AP predominantly received innervation from heart VSNs, whereas the NTS was labelled by heart, lung and gut VSNs (Fig. 1h,i and Extended Data Figs. 2d,e and 3a). Nerve fibres were only observed in the organs that received retro-AAV injection, which further confirmed the lack of collateralization (Fig. 1j and Extended Data Fig. 2f,g). Parallel results were obtained from organ-specific retrograde tracing in VGLUT2-Cre mice (Extended Data Fig. 2h–l), heart–trachea pairs (Extended Data Fig. 2m–o) and retrograde tracing from the AP in NPY2R-Cre mice (Extended Data Fig. 3b–f). Taken together, these findings support the idea that there is a one-to-one map for organ innervation by VSNs, and heart-projecting NPY2R VSNs mainly target the ventricular wall and dominate AP innervation.

Fig. 1: Brainstem stimulation of NPY2R VSNs induces syncope.
figure 1

a, Schematic of anterograde tracing of NPY2R VSNs. b, gCOMET-labelled neurons in a nodose ganglion of a NPY2R-Cre mouse (n = 4). c, Fibre distribution of NPY2R VSNs (green) in the AP and NTS (n = 4). d, Left, HYBRiD-cleared heart showing NPY2R VSN terminals in the heart ventricles and atria. Right, quantification of fibre distribution (n = 4, P = 0.0108). e, Schematic of retrograde tracing of NPY2R VSNs from heart and lung. f, Retrogradely labelled VSNs from the heart (green) and lung (red, n = 5). g, Quantification of overlap (n = 5, heart/overlap P = 0.0198; lung/overlap P = 0.0254). h,i, Spatial projection pattern of heart-innervating (green) and lung-innervating (red) NPY2R VSNs (h) and quantifications (i, n = 5, P = 0.0079). R, right; L, left. j, NPY2R VSN terminals in retro-labelled heart and lung. Arrowheads indicate lung terminals. (n = 5). k, Schematic of optogenetic stimulation of NPY2R VSN terminals in the AP with EEG preparation. l, Photostimulation (20 Hz) of freely moving mice causes them to fall over and become immobile. m, Power is plotted using wavelets on EEG recordings and normalized to baseline. Mean power during light-off trials was subtracted from light-on trials. Areas of significant drops in power (blue with black border) or increases (red with dashed black/white border) are indicated. Strong decreases (50%) in power were observed (red box, width indicates range of latencies), which indicated syncope (n = 12 sessions from 8 mice). H, high; L, low. n, Top, step plot showing latency to first bout of immobility in NPY2R–ChR2 mice (n = 6) and control NPY2R–tdTomato (tdT) mice (n = 4). Bottom, step plot showing latency to 50% power drop (n = 8). *P < 0.05, **P < 0.01 by two-way repeated measures analysis of variance (ANOVA) with Šidák multiple comparisons or repeated measures ANOVA Geisser–Greenhouse correction with Tukey multiple comparisons. All error bars show mean ± s.e.m. Scale bars, 100 μm (b,c,d (ventricle and atria), f,h,j (bottom four)) or 500 μm (d (whole heart), j (top six)).

Source Data

Heart-innervating NPY2R VSNs in syncope

The impact of cardiac VSN manipulation on behaviour has been understudied. As there is spatial organization of heart ventricle, lung and gut vagal terminals in the brainstem25,26 (Fig. 1h and Extended Data Figs. 2d and 3a), we reasoned that placing an optic fibre over the AP in NPY2R–channelrhodopsin (ChR2) mice would be an effective strategy to stimulate predominantly ventricular terminals (Fig. 1k). This method enabled us to not only probe the influence of ventricular VSNs on cardiovascular physiology but also on behaviour in awake freely moving animals (vagal NPY2R to AP stimulation (vNAS)). Within a few seconds of vNAS, mice spontaneously fell over and became immobile (Fig. 1l and Supplementary Video 2). This response was not observed in mice with improper fibre position or in control mice (Extended Data Fig. 4a). Analgesics had no effect, which makes it unlikely that pain responses are causes of this effect (Extended Data Fig. 4b).

To gain deeper insight into this phenotype, we sought to record brain activity in freely moving mice during vNAS and to develop an unbiased electrophysiological biomarker by recording electroencephalograms (EEGs) alongside vNAS (Fig. 1k). Sudden, large drops (>50%) in EEG power within the 8–100 Hz band, predominantly in the gamma range (Fig. 1m and Extended Data Fig. 4c,e), were observed. Notably, two independent metrics—time to 50% power drop and time to immobility—were similar (unpaired t-test, P = 0.85, comparing Fig. 1n). This power drop was not observed in mice with improper fibre position (Extended Data Fig. 4d). EEGs in human patients with syncope also show reduced brain oscillations over the broad frequency bands that we observed27,28. Therefore, our data suggest that vNAS may induce syncope and that latency to a 50% EEG power drop in the 8–100 Hz range is a reasonable and unbiased estimate for syncope onset.

Physiological phenotypes of vNAS

Next, we examined the physiological effects of vNAS on cardiovascular function. Photostimulation induced a time-locked slowing of the electrocardiogram (ECG; Fig. 2a). This effect was scalable, with higher frequencies causing a larger dip in heart rate (Fig. 2b). Next, we developed a new strategy to combine high-resolution ultrasonography alongside optogenetics (opto-ultrasound; Fig. 2c). This method enabled us to visualize different cardiac views in real time (Extended Data Fig. 5a) and to quantify cardiovascular parameters with genetically defined manipulation of VSNs. vNAS stalled heart beats (Supplementary Video 3) alongside significant decreases in cardiac output, ejection fraction, ascending aorta diameter and aortic valve peak blood-flow velocity. Increases in left ventricular volume, area and aortic acceleration time (the time to reach peak aortic blood flow) were observed. Stroke volume, fractional shortening and other cardiovascular parameters were unaltered, which highlights the specificity of the manipulation (Fig. 2d and Extended Data Fig. 5b,c). Additionally, rapid time-locked changes in blood pressure (decrease; Fig. 2e) and respiration (decrease followed by increase; Fig. 2f) occurred with photostimulation. Lower frequency stimulation did not cause large effects (Extended Data Fig. 5d–h). Furthermore, body temperature was unchanged, which shows that primarily cardiovascular parameters were affected (Fig. 2g). Decreased heart rates were also seen in freely behaving mice (Fig. 2h and Extended Data Fig. 5i). In summary, vNAS induces bradycardia, hypotension and a reduction in respiration rate, all of which are consistent with the physiological changes reported during syncope in humans16,29,30. Furthermore, this triad of responses is a hallmark of the BJR, which has long been conjectured to be caused by ventricular VSNs2,12,13. As vNAS predominantly activates ventricular sensory fibres, we speculate that NPY2R VSNs may be a substrate for the BJR, which has also been argued to be a trigger for syncope2,11,31. Conceptually, these findings, in conjunction with the fact that NPY2R VSNs are distinct from baroreflex-mediating PIEZO2 VSNs, may indicate genetically segregated pathways for various reflex arcs in the framework of the cardiac system.

Fig. 2: vNAS suppresses cardiovascular function.
figure 2

a, ECG waveforms recorded under 2% isoflurane. Photostimulation substantially lowered the heart rate. b, Average heart-rate traces with different stimulation frequencies (left) and quantification (right) under isoflurane (iso). Increasing photostimulation frequencies reduced heart rates in a scalable manner (n = 9 for ChR2 mice, n = 5 for tdTomato mice; 10 Hz, P = 0.0079; 20 Hz, P < 0.0001). c, Left, illustration of the opto-ultrasound strategy. During recording, the ultrasound probe was placed on the left chest with an implanted optic fibre above the AP. Right, an example of the parasternal long axis view display. d, Photostimulation induced changes in cardiovascular metrics. Both systolic and diastolic left ventricle (LV) volume increased, whereas cardiac output and ejection fraction decreased. Stroke volume and fractional shortening did not change (n = 6 for ChR2 mice, n = 5 for tdTomato mice; ejection fraction, P = 0.0282; cardiac output, P = 0.0005; volume; systolic, P = 0.0282; volume; diastolic, P = 0.0282). Colour key for mice is used for eh. e, Left, blood pressure decreased with photostimulation in a time-locked manner. Right, quantification (n = 7 for ChR2 mice, n = 4 for tdTomato mice; P = 0.0029). f, Left, respiration was significantly suppressed followed by an increase with photostimulation (P < 0.0001). Right, quantification (n = 8 for ChR2 mice, n = 5 for tdTomato mice; P = 0.0001). g, No changes in internal body temperature were observed during photostimulation (n = 7 for ChR2 mice, n = 4 for tdTomato mice). h, Left, diagram depicting photostimulation and ECG recordings under freely moving conditions. Middle, photostimulation also significantly decreased the heart rate under awake conditions and remained suppressed after light delivery ended (P = 0.0001). Right, quantification (n = 7 for ChR2 mice, n = 5 for tdTomato mice, P < 0.0001). *P < 0.05, **P < 0.01, ***P < 0.001, ****P < 0.0001 by two-way ANOVA with Šidák multiple comparisons, two-tailed unpaired t-tests with Holm–Šidák multiple comparisons or two-tailed unpaired t-tests. All error bars and shaded areas show the mean ± s.e.m.

Source Data

Brain-wide activity during syncope

Brain activity and pupil dynamics vary distinctly across a broad spectrum of arousal states, from comatose and sleep to high attentional and fear states32,33,34. Brain state data in the context of syncope are sparse, but some clinical studies show ‘flattening’ of EEG signals, which indicates drops in broadband frequency oscillations in human patients27,28,35. To quantify neural and behavioural states during vNAS-induced syncope, we recorded the activity of thousands of CNS neurons using state-of-the-art Neuropixels depth electrodes36 while capturing facial and eye movements with infrared cameras (Fig. 3a,b). Similar to our EEG results, we found stereotypical significant drops in 8–100 Hz band power in local field potentials (LFPs) from multiple brain regions across mice with vNAS (20 Hz). This power drop was not observed in mice with improper fibre position or with vNAS at lower frequencies (Extended Data Fig. 6). Pupil dynamics during vNAS-induced syncope in head-fixed mice showed a stereotypical pattern of rapid dilation followed by a characteristic eye-roll (Fig. 3c, Extended Data Fig. 7a,b and Supplementary Video 4). This effect mirrors pupil dilation and eye movements reported in human syncope29,37. Two independent metrics of syncope—the latency to eye-roll and latency to LFP power drop—were closely aligned (Fig. 3d). Strong whisking was evident immediately after laser onset at all stimulation frequencies, but mice that fainted at 20 Hz had decreased whisking following initial increase (Extended Data Fig. 7c–f and Supplementary Video 4). Aggregate brain-wide spiking data collected during periods of syncope showed marked suppression of neural activity across a large regional distribution (Fig. 3e and Extended Data Fig. 7g–i). To quantify this effect, we analysed the spiking activity of each unit with respect to syncope onset as defined by an average 50% drop in LFP power (8–100 Hz) across the entire Neuropixels probe (Extended Data Fig. 8a). At syncope onset, most neurons were inactive; that is, they did not fire for a significant period, as defined relative to their baseline firing rate. Inactive neurons were individually plotted by region (Extended Data Fig. 8a) and as percentage pie charts (Fig. 3e). A comparison of random baseline conditions (by region) to LFP-defined windows of syncope onset confirmed a substantial, widely distributed suppression of neural spiking (Extended Data Fig. 8b).

Fig. 3: vNAS-triggered syncope is associated with widespread suppression of brain activity.
figure 3

a, Illustration of head-fixed Neuropixels experiments. Cameras were positioned to record pupil and facial movements. b, Neuropixels probe trajectories were registered using SHARPtrack51 and plotted. c, Time course of eye dynamics during optogenetically triggered syncope. The pupil rapidly dilates (middle) followed by a characteristic eye-roll during syncope (right, n = 9 sessions from 5 mice). d, Latency to eye-rolling behaviour and 50% LFP power drop are correlated (r = 0.9596, P < 0.0001). e, Firing rates of units from all probes and mice that exhibited syncope during 20 Hz photostimulation. Left, neuronal spiking rates in most regions of the brain substantially decreased during syncope. Right, pie charts show the percentage of neurons that were inactive (grey area). f, Example of a Neuropixels recording session during 20 Hz photostimulation. Top to bottom: (1) recording showing reduction in heart-rate (ECG); (2) pupil area and whisking behaviour (Movement); (3) raw firing rates across two probes (Recording); (4) predicted firing rates based on movement model (Prediction); (5) residuals after subtracting predicted firing rates from recorded firing rates (Residual). Relevant events during recording are noted below with arrows. Windows of analysis are shown with dashed colour-coded boxes. g, Quantification of changes in brain activity that are not predicted by movements (residuals). Averages of residual activity during the pre-laser time window (top, grey). Small deviations from 0 indicates good predictive capability of the facial movement model under baseline conditions. Residual firing rates increase after laser onset (middle, blue). Significant changes were determined by comparison to pre-laser. Syncope onset showed a widespread decrease in firing rate that was not predicted by the facial movement model, except for the PVZ, which still significantly increased during syncope (bottom, red). *P < 0.05, **P < 0.01, ***P < 0.001 by two-tailed paired t-tests. All error bars show the mean ± s.e.m. See Methods for definitions of the abbreviations used for brain regions.

Source Data

Modelling neural activity during syncope

Spontaneous behaviours such as whisking and pupil dynamics can drive brain-wide neural activity38,39,40. Given that syncope is characterized by these behaviours, interpretation of electrophysiological brain data may be confounded. To address this issue, we built a multidimensional model of behaviour, trained on time periods during recording without vNAS, that can predict a significant proportion of the spiking variance recorded from individual neurons using facial movements (predicted firing rate). A comprehensive plot of recordings and computed measures from a single session is shown in Fig. 3f. vNAS generally elicited an initial increase followed by a substantial reduction in brain activity. Brain regions that were activated after laser onset were plotted in ascending order of latency. The periventricular zone (PVZ) had the shortest recorded latency (around 8 ms) whereas cortical regions generally showed longer latencies. Notably, the longest latency was still in the 60 ms range, which was much faster than physiological changes and indicating rapid brain-wide responses to vNAS (Extended Data Fig. 8c,d). Residual activity, defined as [recorded firing rate] – [predicted firing rate], was plotted across all recordings (Extended Data Fig. 8e). A positive residual shows that the model underpredicted recorded firing data and vice versa. As expected, during the pre-laser period, the model was more accurate at predicting firing data (residual ~ 0 Hz; Fig. 3g, top). At laser onset, however, the model underpredicted (residual > 0 Hz; Fig. 3g, middle), which suggested that neurons increased above their expected activity from the behaviour of the mouse. Notably, at syncope onset, there was overprediction (residual < 0 Hz; Fig. 3g, bottom), which implied that there was brain-wide suppression of activity that was not explained by the cessation of facial movements. Further categorization of unpredicted unit activity showed that the majority of neurons in each region, excluding the PVZ and the basomedial amygdala (BMA), were decreased below behaviour prediction during syncope (‘syncope (↓)’ in Extended Data Fig. 8f). Notably, the PVZ had the shortest latency to activation after photostimulation onset (about 8 ms; Extended Data Fig. 8c) and was the only brain region we recorded from that remained significantly activated during syncope (Fig. 3g, bottom). Thus, we sought to elucidate the role of the PVZ in syncope. To this end, we used chemogenetics to bidirectionally manipulate (hM4Di for suppression and hM3Dq for activation) the PVZ alongside vNAS (Extended Data Fig. 9a,b,h,i). Activation or suppression of the PVZ did not alter the inhibitory physiological effects of vNAS (Extended Data Fig. 9c,d,j,k). However, PVZ inhibition increased the duration of vNAS-induced syncope (Extended Data Fig. 9e–g). Additionally, pre-vNAS and post-vNAS gamma power was low (Extended Data Fig. 9p). Because gamma band (>30 Hz) activity has been associated with general increases in arousal and excitatory–inhibitory balance41,42, this result indicated that there is an initial and sustained reduction in arousal state (Extended Data Fig. 9p, see hM4Di CNO (clozapine N-oxide, pre) compared with CNO (post)). PVZ activation during vNAS did not alter EEG power, but two mice that fainted when treated with vehicle ceased to faint (Extended Data Fig. 9l–n). However, PVZ activation by itself increased baseline arousal states (increased velocity (Extended Data Fig. 9o) and increased gamma power (Extended Data Fig. 9p, hM3Dq)) that led to quicker recovery after vNAS. Overall, our Neuropixels analyses demonstrate that syncope is linked to a widespread reduction in CNS activity that cannot be explained by changes in spontaneous behavioural movements. Additionally, manipulating the PVZ alone was sufficient to bidirectionally alter syncope dynamics and brain states without altering cardiovascular physiological changes. Together, these results may indicate the presence of a central circuit mechanism that modulates these effects.

Cerebral blood flow during syncope

It has been widely postulated that syncope is due to reduced cerebral blood flow (CBF) by overactivation of the parasympathetic nervous system43. Hence, we wanted to test this hypothesis with our vNAS model. Pretreatment with atropine, a parasympathetic blocker, significantly reduced bradycardia and hypotension associated with vNAS, whereas the respiration rate decrease was unaltered (Fig. 4a–c and Extended Data Fig. 10a,b). Notably, atropine also increased the latency to 50% EEG power drop (Fig. 4d–f) and eye-roll, which were indicative of delayed syncope onset (Extended Data Fig. 10c). Atropine by itself did not alter the baseline heart rate (P = 0.10). These results confirmed that the effects of vNAS are primarily mediated by the parasympathetic pathway44. We next assessed CBF associated with syncope. We developed a method that combined EEG–ECG recordings alongside CBF measurement with laser Doppler flowmetry (LDF) and pupil recordings during vNAS in awake behaving mice (Fig. 4g). vNAS caused asystole that lasted 4.72 ± 0.75 s (mean ± s.e.m.) on average, along with cerebral hypoperfusion that started about 200 ms after laser onset (Fig. 4h and Extended Data Fig. 11a, inset). This timing is much slower than brain activation (latency of about 8–60 ms; Extended Data Fig. 8c,d). Pretreatment with atropine prevented asystole and delayed cerebral hypoperfusion (Fig. 4i). With atropine, syncope was still observed but it was delayed (Fig. 4i–m). Atropine also caused blood flow to remain above baseline long after vNAS ended (Extended Data Fig. 11a,b); however, it had no effect on sustained EEG power drop after vNAS (Extended Data Fig. 11d, atropine × pre/post interaction P = 0.56). Lower frequency photostimulation (5 or 10 Hz) caused transient drops (<4 s) in CBF that was not sufficient to induce syncope (Fig. 4j,l and Extended Data Fig. 11a). Thus, vNAS may cause CBF to fall below a certain volume threshold (Fig. 4l and Extended Data Fig. 11c). Many physiological processes changed dynamically and simultaneously during vNAS; a 3D plot of heart rate, LDF and power depicting the time course in the heart rate–blood flow–EEG space is shown in Fig. 4n and Supplementary Video 5. Additionally, we observed a patterned sequence of four events during syncope induction, each of which was delayed by atropine: heart rate minima, CBF minima, 50% drop in power and eye-roll (Extended Data Fig. 11e and Fig. 4m). Next, we set out to analyse in further detail behavioural microstructures associated with syncope. To this end, we used an unsupervised machine-learning-based approach: motion sequencing (MoSeq)45. vNAS substantially increased the time spent in an immobile state and reduced rearing (Extended Data Fig. 12a–d). This sustained immobile state was not altered with atropine (Extended Data Fig. 12e), even though atropine caused a general increase in EEG power (main effect of atropine P = 0.01; Extended Data Fig. 12f). Overall, our findings provide evidence that syncope requires considerable activation of VSNs, which creates a global state that is simultaneously modulated by central circuit processes and cerebral hypoperfusion falling below a volume threshold.

Fig. 4: Parasympathetic suppression delays syncope-related phenotypes, including substantial drops in CBF.
figure 4

a, Left, average heart-rate traces with photostimulation under atropine (Atro) and vehicle (Veh) pretreatment. Right, atropine markedly suppressed heart-rate drops (n = 7, P < 0.0001). Colour key for mice is used for b–m. b, As for a, but for the respiration rate (n = 7, after stimulation, P = 0.0110; during stimulation, P = 0.9695), c, As for a, but for blood pressure. Atropine reduced drops in blood pressure (n = 6, P = 0.0191). d, Head-fixed mice showed EEG power drops when treated with vehicle (left). Treatment with atropine delayed the latency (right, n = 14 sessions from 14 mice). e, Step plot showing the delay in latency to power drop (n = 14 sessions from 14 mice). f, Quantification of e shows that atropine increases latencies (n = 14 sessions from 14 mice, P = 0.0002). g, Illustration of head-fixed experiments that recorded CBF using LDF, with ECG, EEG and pupil recording during vNAS. h,i, Example recordings from the same mouse treated with vehicle (h) and atropine (i). Top to bottom: (1) ECG; (2) average EEG power normalized to baseline (Power); (3) LDF signal normalized to baseline reflecting CBF changes (LDF). Specific event markers are noted with arrows. j, Average traces of LDF across all experimental conditions (n = 7). k, Averaged data aligned to latency to reach 50% power drop (n = 7). l, Scatter plot between the maximum LDF drop during stimulation compared with the duration it remained below 50% of the maximum drop (n = 7). m, Quantification of the latency increases caused by atropine (n = 6; LDF min, P = 0.0010; EEG 50%, P = 0.0041; eye-roll, P = 0.0027). n, Plot illustrating the group-averaged dynamics of heart rate, LDF and power, with arrows denoting the progression over time. All groups started in the same state space at the top. After stimulation, groups rapidly diverged while following the same general pattern, even though their magnitudes were different (n = 7). *P < 0.05, **P < 0.01, ***P < 0.001, ****P < 0.0001 by two-way repeated measures ANOVA with Šidák multiple comparisons or two-tailed paired t-tests. All error bars and shaded areas show the mean ± s.e.m.

Source Data

NPY2R VSNs in the BJR

vNAS is sufficient to cause bradycardia, hypotension and reduced respiration, all of which are trademarks of the BJR2,12. To check the necessity and specificity of NPY2R VSNs in mediating the BJR, we used four different approaches. Approach 1 involved a loss-of-function paradigm, whereby AAV.PHP.S-mCherry-Flex-DTA was injected into the nodose of NPY2R-Cre mice to ablate VSNs (Fig. 5a). This ablation abolished syncope and cardiovascular phenotypes associated with vNAS (Extended Data Fig. 13), whereas baseline physiology was unaltered (Extended Data Fig. 14a–d). This result suggests that NPY2R VSNs are not involved in the continuous maintenance of resting baseline physiology. Next, we induced the baroreflex or the BJR through injection of the widely accepted substrates phenylephrine (PE; baroreflex), sodium nitroprusside (SNP; baroreflex)8 or phenyl biguanide (PBG; BJR)12. PBG produced dose-dependent dips in heart rate (Extended Data Fig. 14e), which was abolished by NPY2R VSN ablation (Fig. 5c). The baroreflex response to PE–SNP was intact (Fig. 5b), as was other gut-mediated behaviour such as drinking (Extended Data Fig. 14f). This result shows that NPY2R VSNs are specifically needed for the BJR and not the baroreflex. For approach 2, we performed timed injections of PE and PBG alongside long-term vNAS (Fig. 5d). Long-term vNAS caused a reduction in response across time in the form of adaptation (Extended Data Fig. 10d–g). Therefore, drug-induced reflexes that share common pathways with vNAS should become occluded during periods of vNAS adaptation. PE-induced bradycardia was unaffected, whereas the PBG response was greatly reduced (Fig. 5e). This result confirmed that vNAS shares some common pathway with the PBG-induced BJR and does not overlap with the baroreflex. For approach 3, we did a comparative study of the effects of stimulating various branches of the vagus nerve using optogenetics in PIEZO2–ChR2 mice (mediates the baroreflex) and NPY2R–ChR2 mice (mediates the BJR) (Fig. 5f and Extended Data Fig. 14g). As expected, photostimulation of baroreflex afferents (carotid sinus and the superior laryngeal nerves that branch into the aortic depressor nerve and innervate the aortic arch and the airways, respectively8,20) caused bradycardia in PIEZO2–ChR2 mice but had no effects in NPY2R–ChR2 mice (Fig. 5g,h, regions 1 and 2). Stimulation of the vagal trunk at the level of the cardiac branch had no effect in PIEZO2–ChR2 mice but induced substantial bradycardia in NPY2R–ChR2 mice (Fig. 5g,h, region 3). Stimulation of abdominal branches had no effect on the heart rate (Extended Data Fig. 14h), which rules out gut-mediated effects. Consistent results were also obtained with respiration rate (Extended Data Fig. 14i,j). This result, combined with drug specificity, shows that NPY2R VSNs are specifically needed for the BJR and not the baroreflex. For approach 4, it was recently shown that stimulation of baroreflex-sensitive neurons in the NTS induces substantial bradycardia and is involved in sleep–wake brain-state regulation46. We reanalysed EEG data from that report and found that there was no drop in EEG power (within 8–100 Hz), thus indicating the lack of syncope (Extended Data Fig. 14k,l). Thus, bradycardia (and by extension reduced cardiac output) has different effects on the brain, syncope in the case of vNAS and sleep–wake regulation in the case of the baroreflex, thereby indicating that there are distinct central circuit mechanisms at play. Taken together, our results demonstrate the specificity, sufficiency and necessity of NPY2R VSNs for the BJR. We also show that genetically and anatomically segregated vagal pathways mediate the baroreflex (PIEZO2 vagal afferents in the carotid sinus and aortic arch) and the BJR (NPY2R vagal afferents predominantly in the heart ventricles). Moreover, separate cardiac reflexes drive distinct brain states and behaviour; that is, the baroreflex is associated with sleep–wake regulation, whereas the BJR is involved in syncope.

Fig. 5: NPY2R VSNs are required for the BJR but not the baroreflex.
figure 5

a, Schematic for ablating VSNs. b, Average heart-rate traces with PE, SNP and PBG injection. c, Quantification of drug efficacy after NPY2R VSN ablation. The baroreflex was still intact, whereas the BJR was abolished (PE, n = 10 for mCherry, n = 11 for diphtheria toxin subunit A (DTA), P = 0.4699; SNP, n = 7 for mCherry, n = 8 for DTA, P = 0.7969; PBG, n = 7 for mCherry, n = 9 for DTA, P < 0.0001). d, Heart-rate traces for vNAS adaptation with chemically induced baroreflex and BJR. PBG and PE were injected before, during and after adaptation. e, Quantification of PBG (second injection, P < 0.0001; third injection, P = 0.0378) and PE responses. vNAS adaptation selectively inhibited the BJR but had no effect on the baroreflex (n = 7). f, Illustration of the region-specific optogenetic strategy. PIEZO2-positive baroreceptive vagal afferents are mainly located in the carotid sinus and aortic arch. The following regions were stimulated: (1) the carotid sinus; (2) the superior laryngeal branch; and (3) the vagus nerve trunk above the cardiac branch. g,h, Average heart-rate traces (g, PIEZO2–ChR2, regions 1 and 2, P = 0.0030; NPY2R–ChR2, region 3, P = 0.0011) and quantification (h, region 1, n = 6, P = 0.0386; region 2, PIEZO2–ChR2, n = 6, NPY2R–ChR2, n = 9, P < 0.0001; region 3, PIEZO2–ChR2, n = 6, NPY2R–ChR2, n = 7, P < 0.0001) with region-specific photostimulation in NPY2R–ChR2 and PIEZO2–ChR2 mice. Stimulation of either region 1 or region 2 did not change the heart rate in NPY2R–ChR2 mice. By contrast, stimulating region 3 caused an immediate heart-rate drop only in NPY2R–ChR2 mice. PIEZO2–ChR2 mice showed heart-rate reductions only in regions 1 and 2, but not region 3, revealing functional separation between NPY2R and PIEZO2 VSNs. *P < 0.05, **P < 0.01, ****P < 0.0001 by two-tailed paired t-tests with Holm–Šidák multiple comparisons, two-way repeated measures ANOVA with Holm–Šidák multiple comparisons or two-way ANOVA with Holm–Šidák multiple comparisons. All error bars and shaded areas show the mean ± s.e.m.

Source Data

In the past few years, there has been a resurgence in genetic dissection of the vagus nerve innervating various organs12. Some of these VSNs also express NPY2R according to our scRNA-seq analysis (Extended Data Fig. 15). However, to date, syncope has not been reported with optogenetic stimulation of these other organ-innervating VSNs, thus highlighting the specificity of vNAS. Finally, the most prevalent hypothesis is that vigorous contraction of an underfilled ventricle due to decreased venous return activates mechanosensory ventricular VSNs to trigger the BJR and induce syncope14,15. Our study provides an entry point for future research to test this hypothesis by probing whether NPY2R VSNs act as these mechanosensitive blood-volume-sensing neurons. In fact, NPY2R VSNs express putative mechanosensors47 (Extended Data Fig. 16). In summary, we identified a genetically defined neural pathway that induces syncope, a classical problem in neurology.

Discussion

In this study, we identified a genetically defined neural pathway at the heart–brain interface that recapitulates many behavioural phenotypes of human syncope (fainting, pupil dilation, eye-roll and loss of motor tone)29,37. NPY2R VSNs innervated the heart ventricular wall with both flower sprays and end-net terminals. Notably, these heart ventricle VSNs projected to the AP in addition to the canonical NTS. Stimulation of these neurons (vNAS) led to syncope and associated cardiovascular changes, including bradycardia, hypotension, cerebral hypoperfusion and reduced respiration. These physiological changes are hallmarks of the nebulous BJR, which was first described more than 150 years ago and hypothesized to be mediated by vagal afferent c-fibres predominantly located in the ventricles2,12,13 and triggers syncope2,11,31. Because NPY2R VSNs are unmyelinated c-fibres21 and their ablation markedly suppressed the BJR, our experiments confirmed both of these hypotheses. NPY2R VSNs are probably the long-sought substrates of the BJR and induce syncope.

Cerebral hypoperfusion is a well-documented observation associated with syncope in human patients. LDF measurements in our model during vNAS confirmed a substantial decrease in CBF. Asystole and large CBF drops occurred shortly after the start of photostimulation, whereas latency estimates of syncope onset based on 50% EEG power and eye-rolling behaviour occurred much later (about 6–8 s). One explanation for the delay is that estimates of syncope onset coincided with the cessation of asystole in many cases along with simultaneous cerebral blood reperfusion (Fig. 4h,k). Another explanation could be related to total blood volume loss and the time to reach a total volume threshold, as the combination of LDF drop magnitude and duration was able to segregate most fainters and non-fainters, even under conditions of atropine (Fig. 4l).

To investigate the role of heart rate and blood pressure in syncope induction, the parasympathetic nervous system was blocked with atropine. As expected, atropine reduced vNAS-induced bradycardia and hypotension. Accordingly, we proposed that if heart activity and blood pressure were maintained throughout vNAS, the expression of syncope may also be suppressed or even blocked. However, vNAS with atropine pretreatment did not prevent syncope from occurring. Instead, it only delayed the entire sequence of events, including a blunted drop in CBF as measured by LDF (Fig. 4i–m and Extended Data Fig. 11e). Furthermore, we observed an adaptation in heart rate with vNAS (Extended Data Fig. 10d–g) and an initial decrease followed by an increase in breathing (Fig. 2f). We speculate that the animal could recover from syncope because the sensory signal is diminished over time owing to these adaptation and homeostatic effects.

Neuropixels recordings revealed instant widespread activation of brain regions following initial vNAS (about 8–60 ms; Extended Data Fig. 8c,d), even quicker than changes in CBF, followed by rapid inactivation during syncope. In particular, the hypothalamic PVZ, which includes crucial nuclei for homeostatic regulation of body physiology such as the paraventricular nucleus (PVN), had the shortest latency to activation after photostimulation (around 8 ms) and is known to receive vagal inputs25. In all conditions (except for PVZ excitation), syncope induction led to long-lasting suppression of locomotor and gamma band activity, which indicated that there was a sustained reduced state of arousal compared with pre-stimulus baselines. Notably, in the case of persistent PVZ excitation, mice displayed increased baseline locomotor activity and gamma band power. These mice were also insensitive to long-term drops in gamma or locomotor activity after vNAS. By contrast, PVZ inhibition led to drops in gamma band power, which was then further reduced by vNAS. Thus, bidirectional manipulation of PVZ had a push–pull effect on syncope, with inhibition leading to a longer syncope state and activation causing arousal. Conceptually, this result further suggests that there may be a circuit mechanism in the induction and maintenance of syncope apart from the widely proposed reduced CBF. The AP sends its information to the parabrachial nucleus (PBN), which in turn projects to the hypothalamus (including the PVN, the amygdala and reciprocal connections back to the AP)25,48,49. Furthermore, the PVN also sends feedback to the AP50, thereby possibly creating multiple nested circuit loops that are triggered by heart-innervating VSNs. We speculate that recurrent activity between the AP, PBN and PVN could be a central hub that integrates sympathetic and parasympathetic information and then signals other regions of the brain to inactivate and induce a brief state of syncope. In summary, these new lines of evidence suggest that direct neural circuit mechanisms of syncope may coincide with CBF reduction through parasympathetic overactivation.

Finally, this study lays the groundwork for genetic, anatomical and functional dissection of other cardiovascular reflex arcs at the heart–brain interface and their influence on mental processes and behaviour. Elucidating the neurobiology of the heart is not only a crucial basic scientific endeavour but also offers substantial translational promise for cardiovascular diseases that remain the leading cause of morbidity around the world.

Methods

Animals

All procedures were done according to Institutional Animal Care and Use Committee (IACUC) guidelines at Scripps Research. Experiments were conducted on adult mice, both male and female between 1.5 and 6 months of age. No randomization or blinding was performed. Animals were arbitrarily assigned to experimental groups. Sample sizes were similar to recently published papers52,53. The following mouse lines were purchased from the Jackson Laboratory: C57BL/6J, stock number 000664; Ai9, stock number 007909; Ai32; stock number 012569; SLC17A6-Cre (also known as VGLUT2-Cre), stock number 016963; NPYR2R-IRES-Cre, stock number 029285; and PIEZO2-eGFP-IRES-Cre, stock number 027719. Mice were maintained in temperature-controlled (around 22–23 °C) rooms with a 12–12-h light–dark cycle (6:00–18:00 light on) and ad libitum access to chow and water.

Reagents

The following AAVs were purchased from Addgene: AAVrg-pCAG-Flex-eGFP-WPRE (51502, 1.2 × 1013 gene copies (GC) per ml); AAVrg-Flex-tdTomato (28306, 2.3 × 1013 GC per ml); AAV2-hSyn-DIO-mCherry (50459, 1.8 × 1013 GC per ml); AAV5-hSyn-hM4D(Gi)-mCherry (50475, 2.5 × 1013 GC per ml); and AAV8-hSyn-hM3D(Gq)-mCherry (50474, 5 × 1012 GC per ml). Other reagents used were AAV.PHP.S-DIO-sfGFP (gCOMET, gift from D. Gibbs, AAV obtained from Janelia, 6.6 × 1012 GC per ml), AAV.PHP.S-mCherry-Flex-DTA (gift from L. Ye, plasmid obtained from Addgene, 4.72 × 1013 GC per ml), WGA647 (wheat germ agglutinin (WGA), Alexa Fluor 647 conjugate, Thermo Fisher Scientific, W32466) and WGA488 (WGA, Alexa Fluor 488 conjugate, Thermo Fisher Scientific, W11261). Virus and WGA were mixed with Fast Green (0.05%) before peripheral injection for visualization. The following primary antibodies were used: chicken anti-GFP (ab13970, Abcam, 1:500); rabbit anti-RFP (600-401-379, Rockland, 1:500); rabbit anti-NPY2R (RA14112, Neuromics, 1:500); and Alexa Fluor 647-conjugated GFP polyclonal antibody (A-31852, Thermo Fisher Scientific, 1:200). The following secondary antibodies were all from Jackson ImmunoResearch and used at 1:500 dilution: Alexa Fluor 647 donkey anti-rabbit (711-605-152); Alexa Fluor 488 donkey anti-chicken (703-545-155); and Cy3 donkey anti-rabbit IgG (H+L) (711-165-152).

Drug administration

Atropine (A0132, Sigma) was dissolved at 50 mg ml–1 in ethanol stock solution, then diluted to 0.5 mg ml–1 working solution in filtered PBS. Atropine was administered (10 mg kg–1, intraperitoneally) 15 min before recording and at least 20 min before the first laser stimulation. CNO was dissolved in filtered PBS and was administered intraperitoneally (for hM3Dq, 1 mg kg–1; for hM4Di, 10 mg kg–1) 15 min before recording and at least 20 min before the first laser stimulation. PE (baroreflex, Sigma), SNP (baroreflex, Sigma) or PBG (BJR, Sigma) was dissolved in PBS and injected retro-orbitally (0.1 mg ml–1, 50 µl for PE and SNP, 20 µl for PBG). Buprenorphine (0.1 mg kg–1) was intraperitoneally injected.

scRNA-seq analysis

Single-cell sequencing data for nodose, jugular and petrosal ganglia were obtained from the Gene Expression Omnibus database (identifier GSE145216)20. The data were filtered and re-plotted using the Seurat (v.3) package. In brief, cell outliers were filtered out based on the number of expressed genes and the proportion of mitochondrial genes as standard practice for single-cell transcriptomics analysis. Filtered cells were clustered using standard methods and used to plot gene expression levels.

Surgical procedures

Anaesthesia was induced in a chamber at 3% isoflurane and then maintained through a nose cone with 1.5–2% isoflurane on a heating pad (36–38 °C). Flunixin (2.5 mg kg–1) and buprenorphine (0.1 mg kg–1) was injected intraperitoneally or subcutaneously before all procedures. Ophthalmic ointment was applied to the eyes of the animal to prevent drying. After surgery, animals were allowed to recover with oxygen infusion on a heating pad until awake and placed in their home cage.

Retrograde organ tracing

Mice were ventilated (tidal volume 0.18–0.20 ml) with a mouse ventilator (R405, RWD Life Science). Hair was removed from the left side of the chest using Nair cream and then disinfected with a 75% ethanol pad. For the heart, a lateral incision (about 1.5 cm) was made along the intercostal space. The heart was then exposed, and virus (5 µl, 700 nl min–1) was injected into the walls through a glass pipette with a nanoinjector (Nanoliter 2020 Injector, 300704, World Precision Instrument). For the lung, the left lobe of the lung was exposed through the same incision site. Virus (2 µl, 700 nl min–1) was injected at multiple sites (3–4) until the entire lobe became visibly blue. For the gut (stomach, small intestine and large intestine), target organs were exposed through an abdominal incision. Virus (1.5 μl for stomach, 1 μl each for the small intestine and the large intestine, speed was 500 nl min–1) was injected into target organs (dorsal and ventral sides of both glandular and non-glandular stomach, around 1.5 cm of duodenum and colon) at multiple points. Mice were euthanized 3–4 weeks after surgery for tissue collection. WGA injection into heart, lung and trachea were similar except for volume and concentration: WGA647 (2 µl, 5 mg ml–1) for heart injection, and WGA488 (1 µl, 5 mg ml–1) for lung or trachea injection. Mice were euthanized 3 days after surgery for sample collection.

Nodose ganglia injection

Mice were prepared for surgery as described above. The hair on the neck was removed and disinfected. A mid-line incision (about 1.5–2 cm) was made, and nodose ganglia on both sides were carefully exposed. A volume of 400 nl AAV.PHP.S-DIO-gCOMET or 300 nl AAV.PHP.S-mCherry-Flex-DTA/AAV2-hSyn-DIO-mCherry was injected into the nodose bilaterally at a speed of 150 nl min–1. Mice were euthanized 3–6 weeks after surgery for tissue collection.

Stereotaxic surgery

Fibre implantation

Mice were prepared for surgery as previously described52. After animals were secured in a bite bar and placed on a stereotaxic apparatus (model 942, Kopf), isoflurane was set to 1.5% to maintain anaesthesia and adjusted as needed. The scalp was cleaned with an ethanol pad and removed to expose the skull. Neck muscles were retracted using hooks, and slight incisions were made to expose the skull just above the brainstem. In some cases, a 1-mm diameter hole was drilled for an anchor screw in the right occipital portion of the skull. The skull was then balanced using a glass pipette attached to a micromanipulator (MP-285, Sutter Instruments). Vetbond glue (3M) was applied to the surface of the skull to aid dental cement adherence. Another hole was drilled above the AP. An optic fibre was then slowly lowered starting from the surface of the brain (anterior–posterior: −7.4 mm; medial–lateral: 0 mm; dorsal–ventral: −3 mm). Dental cement (Jet Set-4 and Liquid) was applied and allowed to cure. Mice were monitored and allowed to recover for at least 3 days before any experiments were conducted.

AP injection

All procedures were similar to AP fibre implantation. Virus (AAVrg-Flex-GFP mixed with AAV5-hSyn-hM4D(Gi)-mCherry (to mark injection site) in a 9:1 ratio, 70 nl) was injected using a nanoinjector at 100 nl min–1. Coordinates for AP injection were as follows: anterior–posterior: −7.4 mm; medial–lateral: 0 mm; dorsal–ventral: −3.1 mm. Post-surgery treatment was the same as described above.

PVZ injection

All procedures were similar to AP injection. Inhibitory (AAV5-hSyn-hM4Di-mCherry, 500 nl) or excitatory (AAV8-hSyn-hM3Dq-mCherry, 500 nl) DREADDs were injected using a nanoinjector at 100 nl min–1. The coordinates for PVZ injection were as follows: anterior–posterior: −0.5 mm; medial–lateral: ±0.35 mm; dorsal–ventral: −4.7 mm (from surface). Post-surgery treatment was the same as described above.

Chronic ECG implant

Mice were anaesthetized and placed on a stereotaxic frame as described above. Hair was removed at sites of incision. Skin incisions were made on the scalp, above the right shoulder, and on the left side of the abdomen as previously described54. Small Teflon tubes were tunnelled between the skin and the underlying tissue from both incision sites on the body up to the head. Teflon-insulated wires (32 AWG) soldered to a 3-channel pedestal (MS333/2, P1tech) were inserted through the tubes. Exposed portions of the wire were sutured to the underlying tissue with 2–3 sutures using a 6-0 nylon monofilament (1034505, McKesson). Wound clips were used to seal the wounds. Dental cement was then applied to the head and ECG pedestal and allowed to cure. Mice were monitored and allowed to recover as described above.

Head-fixed Neuropixels implant

Mice were prepared for stereotaxic surgery and the scalp removed as described above. A 3D printed well was first fixed to the skull using Vetbond superglue. A 1-mm ground screw was placed in the right occipital lobe attached to silver wire soldered to a gold pin. A custom-fabricated stainless steel headpost was lowered on the right side of the head of the mouse at an angle of 30° from the horizontal surface of the skull. The entire apparatus was then cemented with dental cement. Predetermined sites for craniotomies were marked with a felt-tip pen. A thin layer of Vetbond glue was applied to the entire exposed surface of the skull for protection until craniotomies were performed. A 3D printed cap was then glued to the top of the well for protection. Mice were allowed to recover as described above.

Chronic EEG implant

Mice were anaesthetized and placed on a stereotaxic frame as described above. EEG implants were placed as previously described55. Once the mouse was anaesthetized and the skull exposed, 1-mm holes were drilled into the skull overlying the right temporal cortex (+lead) and cerebellum (–lead) using visual landmarks. Three channel electrode posts (MS333/2, P1tech) were secured to 1-mm stainless steel screws (8L003905201F, P1tech). Screws were advanced until secure, and special care was taken not to advance the screws beyond the point of stable contact with the dura. Dental cement was applied around the screws, on the base of the post and on exposed skull.

Combined chronic ECG and EEG implant

Combined implants were made using the above descriptions with a few modifications: two screws over the temporal (+EEG and –ECG) and cerebellum (–EEG) served as leads for EEG recordings. A third connection to a wire sutured to the left abdomen (+ECG) and the same temporal screw (+EEG and –ECG) served as leads for ECG recordings.

Neuropixels craniotomy

The day before recording, Neuropixels-implanted mice were placed on a stereotaxic frame, the skull balanced and 2 holes (about 1.5–2 mm) were drilled in predetermined locations on the surface of the skull. Low-melting point saline-based agarose was prepared and allowed to cool just before the gelling point, and a thin layer was applied to the surface of the skull. After the agarose had set, a layer of silicone oil was applied to the surface to prevent drying. Finally, silicone elastomer (Kwik-Cast, WPI) was applied and then the 3D printed cap was super-glued back on top of the well. The animal was then given an analgesic cocktail (dexamethasone 1.25 mg kg–1, Rimadyl 5 mg kg–1 and enrofloxacin 5 mg kg–1) and allowed to recover.

Transcranial thinned skull window

Mice were anaesthetized and placed on a stereotaxic frame under 1–3% isoflurane. The scalp was sterilized and removed, followed by gentle but thorough removal of the periosteum on the parietal and occipital plates. The connective tissue over the skull sutures was gently removed using a scalpel and the sutures were then covered with low-viscosity cyanoacrylate glue (Loctite, no. 4104) to provide stability between the skull plates. A 3 × 3 mm transcranial window was made over the primary somatosensory cortex (2.5 mm caudal and 3 mm lateral from bregma) by thinning the skull with an electric vibration drill (250 µm burr diameter). Once dried, the thinned bone was covered with high-viscosity cyanoacrylate glue (Loctite, no. 401) and a glass coverslip. The rest of the exposed skull was covered with dental cement (C&B metabond). Buprenorphine was injected subcutaneously for analgesia (0.1 mg kg–1) after surgery.

Optogenetic stimulation

A diode laser (462 nm, Shanghai Laser & Optics Century) was attached to a patch cable set to 10 mW power at the fibre tip. Pulse widths were set to 20 ms and delivered in trains of 5, 10 or 20 Hz stimulation rates. In some cases, a 5 s on/off pattern of train delivery was used.

Behaviour

MoSeq

Mice were placed in a large plastic black cylinder (43 cm diameter × 36 cm tall) and were recorded from above using a 3D camera (Xbox Kinect, Microsoft) in a dark room. Mice were attached to an optical commutator above the cylindrical chamber. The experiment lasted for 5 days: 3 days of 30 min of habituation; 1 day of 45 min of baseline; and 1 day of 15 min of baseline and 30 min of laser stimulation (5 s on/off, 20 Hz). Analysis was done using the MoSeq45 Python pipeline available through the Datta Laboratory. All videos were used (including baseline videos) to compute principal component analysis of the mouse body. The first 10 principal components extracted were able to account for 90.36% of variance. Multiple iterative models adjusting Kappa values were tested and the most optimal model was selected for syllable extraction. All extracted syllables were categorized on the basis of visual assessment of crowd videos along with average velocity measures to determine slow, mid and fast movements, as well as rearing behaviour using velocity along the z axis. Six syllables were identified in which the optical tether clearly obstructed the line of sight of the camera of the mouse and were labelled artefact. Ethograms were calculated for each mouse exhibiting syllables that were grouped into nine behavioural categories across time. The percentage of time spent exhibiting each behaviour was then calculated for baseline and stimulation periods during experimental sessions. Individual control baselines were then subtracted from stimulation for each category and then averaged to quantify mean differences for each behaviour between genotypes.

Open-field syncope

To measure freely moving syncope behaviour, implanted mice were attached to an optic fibre tether and commutator and placed inside a transparent acrylic cylinder (20 cm diameter, 15 cm tall). Cameras were placed directly above, below (through a transparent floor) and, in some cases, from the side. Mice were given 2 min of baseline before laser stimulation was delivered, and 5 min after laser stimulation ended. Videos were manually scored for immobility during 1 min of photostimulation (20 Hz). Latency to first immobility bout, duration of first immobility bout and the number of bouts during laser stimulation were recorded.

Locomotion tracking

Locomotion was tracked in the open field (above) using open-source ToxTrac56 software. Videos were downsampled to matching resolution (1,280 × 960) and frame rate (20 f.p.s.). Cameras were automatically calibrated for distance using a chequered grid placed on the floor of the arena. Maximum and minimum size thresholds of pixel counts were adjusted to isolate the mouse body from tethers. Instantaneous speed per frame was extracted and mean smoothed over a sliding 800 sample window. Average velocities were calculated in 3-min-long windows. Pre-window = −4 min until −1 min before stimulation onset; post-window = 1 min until 4 min after stimulation onset.

Drinking behaviour assays

Water restriction experiments were conducted as previously described52. Animals were trained for 3 days before experiments. During training sessions, animals were deprived of water for 24 h and then given 1 ml of water in behaviour chambers. Ad libitum water was provided for recovery after training. In the experimental session, animals were water-deprived for 48 h followed by 30 min (measured, in chamber) of water access.

Histology

Mice were anaesthetized with isoflurane and perfused with 15 ml cold 1× PBS followed by 15 ml ice-cold 4% paraformaldehyde (PFA). Brains, visceral organs and nodose ganglia were dissected and fixed in 4% PFA at 4 °C overnight. Brain samples were rinsed and kept in PBS before vibratome sectioning. Samples for cryosectioning were kept in 30% sucrose solution for 24–36 h at 4 °C until they sank and were then frozen in OCT at −80 °C.

Immunohistochemistry

Sections (100 μm for vibratome sections, 10 μm for nodose ganglion cryosections, 100 μm for heart cryosections, 70–80 μm for lung and gut cryosections) were washed with PBS, put in blocking buffer (10% donkey serum, 0.2% Triton in 1× PBS) for 1 h at room temperature and then incubated with primary antibody (1:500 in blocking buffer) for 48 h at 4 °C. Sections were then washed 3× 15 min with 0.2% PBST (0.2% Triton in 1× PBS) and incubated with secondary antibody (1:500 in blocking buffer) for 3 h at room temperature. This was followed by 3× 15 min washes with 0.2% PBST and 30 min DAPI incubation.

Image acquisition and analysis

Images were acquired with either an A1 or C2 confocal microscope (Nikon) using a CFI plan apochromat lambda ×10 (NA = 0.45, WD = 4.00) or ×20 (NA = 0.45, WD = 4.00) objective. Imaging settings were optimized for each individual experimental set. Images were analysed as previously described57 (Extended Data Figs. 1e and 2g). The following abbreviations were used for labelling regions: AI, agranular insular area; AMB, nucleus ambiguus; ARH, arcuate hypothalamic nucleus; BNST, bed nuclei of the stria terminalis; CEA, central amygdala nucleus; DMH, dorsomedial nucleus of the hypothalamus; EW, Edinger–Westphal nucleus; LH, lateral hypothalamus; MARN, magnocellular reticular nucleus; PAG, periaqueductal grey; PSTN, parasubthalamic nucleus; PVN, paraventricular hypothalamic nucleus; PVT, paraventricular nucleus of the thalamus; SNR, substantia nigra, reticular part; VTA, ventral tegmental area.

HYBRiD clearing

Whole mouse heart, lung and gut samples were stained and cleared using a recently developed clearing protocol4. Samples were imaged using an Olympus FV3000 confocal microscope with a ×10, 0.6 NA, water-immersion objective (XLUMPlanFI, Olympus).

Light-sheet imaging

Samples were imaged with a light-sheet microscope (SmartSPIM, LifeCanvas). Samples were imaged using a ×3.6, 0.2 NA objective (LifeCanvas). Images were sampled at full resolution (2,048 × 2,048, 1.79, 1.79, 4 µm xyz voxel size). Supplementary videos were made using light-sheet microscopy.

Physiology

ECG and respiration

ECG and respiration recordings were obtained using a BioPac MP160 system (Biopac Systems) with an ECG 100C amplifier unit. The acquisition hardware was set to 1 Hz high-pass and 150 Hz low-pass filters. ECG output data were collected with gain maintained the same (5,000×) between all recordings. A piezo electric transducer was placed on the heating pad under the chest of the mouse to measure its respiration rate. Data were sampled at a rate between 2 and 10 kHz using AcqKnowledge software. Positive and negative recording needle electrodes were inserted under the skin above the right shoulder (–lead) and on the left side of the abdomen (+lead). When necessary, a ground electrode was inserted under the skin at the base of the tail. For awake recordings, the ECG implant was connected to a commutator (SL3C/SB, P1tech). For analysis, ECG signals were bandpass-filtered between 10 and 50 Hz to aid peak detection. Positive peaks of the ECG waveforms were detected using AcqKnowledge software and converted into heart rates (bpm). Respiration rates (RRs) were extracted using custom MatLab scripts. Smoothed bpm and RR traces were calculated using a 1-s sliding window along the entire recording. Rates during each stimulation were normalized to their average 30 s to 1 min baseline before laser stimulation so that the average baseline value = 1 for each stimulation window. Heart-rate changes during laser stimulation were calculated by taking a 6–24 s time window in the centre of the laser stimulation period and RR changes using a 6–15 s window. Heart-rate changes during post-laser stimulation were calculated by taking a 30–60 s time window relative to onset of the laser stimulation period and RR changes using a 36–45 s window. For ECG recordings during adaptation with simultaneous retro-orbital drug injection, data were shifted by 10 s (for PBG) and 40 s (for PE), then subtracted from the original time-series. This process isolates heart-rate changes due to drug effects from direct effect of photostimulation. In cases when the raw data were outside the parameters of standardized scripts, the data were manually curated and analysed.

Region-specific optogenetic stimulation of the vagus nerve

NPY2R–ChR2 or PIEZO2–ChR2 mice were anaesthetized by 2% isoflurane and placed on a heating pad. The carotid sinus and vagus nerve were surgically exposed. An optic fibre (200 µm core, NA = 0.22, RWD) was placed above the following regions: carotid sinus, superior laryngeal nerve, vagal nerve trunk and bilateral abdominal branches of the vagus nerve. Surrounding areas were carefully covered while stimulating each individual region (20 ms pulses, 10 mW intensity, 20 Hz, 30 s). An average of a 3 s time window around the minimum heart rate was used for quantification. The RR was calculated as described above.

EEG recording and fast-Fourier transform

EEGs were acquired in the same manner as for awake ECGs described above, but instead using screw electrode leads in the right temporal cortex (+lead) and left cerebellum/occipital cortex (–lead). Fast-Fourier transform (FFT) analysis was conducted in MatLab after applying a 59–61 Hz notch filter to eliminate line noise. FFTs were calculated in 2 s segments over the total analysis window, and power was further averaged into standard frequency bins: delta (1–4 Hz), theta (4–8 Hz), alpha (8–13 Hz), beta (13–30 Hz), low gamma (30–59 Hz) and high gamma (61–120 Hz).

Blood-pressure recording

Blood pressure was recorded in 1.5% isoflurane-anaesthetized animals on a warmed plate using a tail cuff (Kent Scientific). Blood-pressure measurements were obtained every 1 min. Data were normalized to the first 5 min of baseline. Blood pressure change during photostimulation was calculated by averaging the first 3 min.

Internal temperature recording

Anaesthetized animals were put on pad and their internal temperature was monitored using a rectal probe (ThermoStar, RWD). The baseline temperature was recorded for 1 min, followed by photostimulation for 1 min and a 1 min post-stimulus period. The internal temperature was recorded in the centre of each time interval.

Ultrasonography

Animals were anaesthetized with 3–4% isoflurane for induction then maintained at 2% isoflurane. An optic cable was connected for photostimulation. After the left side of the chest was shaved, animals were placed on a heating platform without any disruption for about 10 min. Images of the left ventricle (B-mode, Pslax view) and carotid arch (B-mode and Doppler mode) were acquired using a Vevo 3100 micro-ultrasound imaging system with a MX550D linear array transducer (VisualSonics). Data were analysed using Vevo Lab (v.5.5.0) software. Left ventricle functional parameters were analysed using end-diastolic and end-systolic measurements in B-mode. For pre-stimulation baseline recording, frames without respiration within a consistent 30 s window were chosen for analysis. For recording during stimulation, frames around the time of minimal heart rate were chosen. The same frame selection guidelines were followed for Doppler mode analysis and three sequential peaks from each recording session were chosen for analysis. The following parameters were measured: ENDOmajr;d (B-mode): endocardial major in diastole; ENDOmajr;s (B-mode): endocardial major in systole; EPImajr;d (B-mode): epicardial major in diastole; EPImajr;s (B-mode): epicardial major in systole; IVS;d (B-mode): inter ventricular septum in diastole; IVS;s (B-mode): inter ventricular septum in systole; LVID;d (B-mode): left ventricular internal diameter in diastole; LVID;s (B-mode): left ventricular internal diameter in systole; LVPW;d (B-mode): left ventricular posterior wall in diastole; LVPW;s (B-mode): left ventricular posterior wall in systole; AAT (PW Doppler mode): aortic acceleration time; AET (PW Doppler mode): aortic ejection time; AoV Diam (B-mode): ascending aorta diameter; AV Peak Vel (PW Doppler mode): aortic valve peak velocity.

LDF in awake mice

Non-invasive LDF (Moor instruments) was used to measure CBF over the contralateral temporal cortex through a reinforced thinned skull window. The probe was held over the transcranial thinned skull window and data were sampled at 10 kHz using a BiopacM160.

LDF signal processing

Raw LDF signals were processed using custom MatLab scripts. All the trials were first normalized to a baseline of 30 s before stimulation, followed by median filtering over a 500 ms window. For plotting the haemodynamics relative to the drop in EEG power during stimulation, the trials were averaged with respect to the syncope onset (defined as the time at which 50% EEG power drop is observed). For inter-group comparison (5 Hz, 10 Hz, 20 Hz vehicle and 20 Hz atropine), we calculated the following parameters from the LDF signal across all animals as described below.

(1) Latency to 50% drop in LDF, calculated as the time to decrease to 50% of baseline LDF. (2) Minimum LDF during stimulation, calculated as the minimum LDF during a stimulation duration of 30 s. (3) A 50% drop in LDF transit time, with the duration calculated as the full width at half-minima of LDF. (4) Late-phase mean LDF, calculated as the average LDF over a 100 s window before the end of a trial. (5) Post-stimulus LDF recovery duration, calculated as the time taken to recover to baseline after a 30 s stimulus window. (6) Rate coefficient, calculated as the ratio of rate of increase of LDF (positive slope) to rate of decrease of LDF (negative slope) during the 30 s stimulation window.

Neuropixels

Habituation

The habituation protocol took place over 7 days. On day 1, mice were handled by an experimenter for 5 min in the morning and another 10 min session in the afternoon, during which mice were allowed to explore and move freely on the treadmill and head fixation setup. On successive days, mice were head-fixed on the treadmill for increasing amounts of time (up to 2 h) until the day of Neuropixels recordings.

Targeting brain regions

Before surgery, a freely available MatLab toolbox (allenCCF and SHARPtrack)51,58 was used to plan probe insertion angles through desired brain regions. After the probe position in the virtual Allen brain atlas trajectory planner was satisfactory, probe angles, depth of insertion and brain surface entry coordinates were recorded. Surface entry points were marked on the skulls of implanted mice before craniotomy, and the micromanipulator system (MPM, Newscale) that holds the Neuropixels probes was adjusted to match the planned probe insertions.

Probe preparation

On the day of recording, lipophilic dyes (DiI, DiO or DiD) (V22889, Invitrogen) were manually applied to the shank of the Neuropixels probes to be recorded by using a droplet at the tip of a pipette under a dissecting microscope and allowed to dry. A different dye was used for each day of recording to keep track of probe recording sites across multiple days. Penetrations were spatially far enough apart such that dye tracks using the same dye could be identified anatomically. After recording, probe shanks were soaked in a 1% tergazyme (Alconox) solution for at least 3 h to remove debris and dye, followed by soaking in DI water overnight.

Probe insertion

Neuropixels probes were lowered until just above the silicone oil and slowly advanced in the z-direction while monitoring channel activity. Once the probe made contact with the surface of the brain and visible spikes were detected at the tip, the probe was inserted at a rate of 200 μm min–1 until the targeted depth was reached. Once the final depth was reached, the probe was retracted by 100 μm and allowed to settle for 15 min before recording. At the conclusion of the first recording session, probes were retracted, and a silicone elastomer (Kwik-Cast, WPI) was applied to the entire surface of the silicone oil–agarose and allowed to dry. A 3D printed cap was then super glued to the top of the well. The mouse was then returned to its home cage for subsequent recordings on subsequent days. On the final day of recording, the mouse was euthanized and the brain collected and prepared for histological analysis.

Neuropixels recording

Data were collected using SpikeGLX software specifically designed to acquire multi-channel data from Neuropixels probes. Data from the NP action potential bands (0.3–10 kHz) were sampled at 30 kHz. LFP bands (0.5–500 Hz) were sampled at 2.5 kHz. Digital and analog inputs were sampled at about 12.5 kHz. Sampling frequencies were slightly modified based on signal calibration and synchronization from individual NP head-stage parameters using SpikeGLX calibration during setup.

Video acquisition

During head fixation, two main cameras were used (BFS-U3-13Y3M-C, FLIR): one with a zoom lens for pupillometry (×3.3 macro zoom lens no. 56-524, Edmund Optics) and another for recording facial movements (HF25XA-5M, Fujinon). Cameras were directly linked for synchronous acquisition using GPIO cables connected to each camera and TTL trigger pulses generated by one of the cameras. Trigger pulses generated by the master camera (30 f.p.s.) were also simultaneously recorded to a digital input channel. Videos were recorded using SpinView software, available through the Spinnaker SDK (FLIR) package. Three infrared LED arrays (B075F7NV56, Univivi) were setup at corners of the head-fixed recording chambers, and illumination was adjusted so that the video images were not oversaturated59.

Probe insertion histology

Probes were registered using freely available SHARPtrack software51. In brief, images from each slice were preprocessed, aligned and transformed according to the Allen Mouse Brain Common Coordinate Framework. Individual probe tracks were then manually marked along all slices and reconstructed in 3D. The final region output from SHARPtrack was then saved and matched with electrophysiological data collected at electrode site depths. The following list are region labels used from the Allen Mouse Brain Common Coordinate Framework: ACA (anterior cingulate area): ACAd1, ACAd2/3, ACAd5, ADAd6a, ACAv1, ACAv2/3, ACAv5, ACAv6a, ACAv6b and ACAd6a; AI (agranular insular area): AId6a, AIp6a, AIp6b, AIv6a, CLA and GU6a; BLA (basolateral amygdalar nucleus): BLAa, BLAp and CTXsp; BMA (basomedial amygdalar nucleus): BMAa and BMAp; BST (bed nuclei of the stria terminalis): BST; DORpm (thalamus, polymodal association cortex related): AD, AMd, AMv, AV, CL, CM, Eth, IAM, IMD, LD, LH, LP, MD, MH, PCN, PF, PO, PT, PVT, RE, RH, RT, SMT, SubG, TH, Xi, IAD and SGN; DORsm (thalamus, sensory-motor cortex related): LGd-co, LGd-ip, LGd-sh, LGv, VAL, VM, VPL, VPLpc, VPM, VPMpc, PoT and SPFp; HPC (hippocampal formation): CA1, CA2, CA3, DG-mo, DG-po, DG-sg, HPF, ProS, SUB and IG; ILA (infralimbic area): ILA1, ILA2/3, ILA5, ILA6a and ILA6b; LA (lateral amygdalar nucleus): LA; LS (lateral septal nucleus): LSc, LSr, LSv and SF; LZ (hypothalamic lateral zone): FF, HY, LHA, LPO, PSTN and ZI; MBmot (midbrain, motor related): APN, MB, MRN, MT, NOT, PAG, PPT, PR, RN, RR, SNr and VTA; MEZ (hypothalamic medial zone): MPN, PH, PMv, PMd, TMv, TU, VMH and AHN; OLF (olfactory areas): AON, COApl, COApm, DP, EPd, EPv, NLOT3, OLF, PAA, TTd and TR; PALd (pallidum, dorsal region): GPe, GPi and PAL; PALm (pallidum, medial region): MS, NDB and TRS; PIR (piriform area): PIR; PL (prelimbic area): PL1, PL2/3, PL5, PL6a and PL6b; PVZ (periventricular zone): PVH, PVHd and PVi; SSp (primary somatosensory area): SSp-n4, SSp-n5, SSp-n6a, SSp-ul6a, SSP-ul6b, SSp-bfd6a, SSp-bfd6b, SSp-ll2/3, SSp-ll4, SSp-ll5, SSp-ll6a, SSp-ll6b, SSp-n1, SSp-n2/3, SSp-tr1, SSp-ul1, SSp-ul2/3, SSp-ul4, SSp-ul5, SSp-ul6b, SSp-un2/3, SSp-un4, SSp-un5, SSp-un6a and SSp-un6b; SSs (supplemental somatosensory area): SSs5, SSs6a and SSs6b; STRd (striatum dorsal region): CP, FS and STR; STRv (striatum ventral region): ACB and OT; VISC (visceral area): VISC6a and VISC6b; PTLp (posterior parietal association areas): VISa1, VISa2/3, VISa4, VISa5, VISa6a and VISa6b.

LFP or EEG wavelet analyses

Raw LFPs were first averaged across all channels of a Neuropixels probe into a single LFP. EEGs were calculated from a single channel over the temporal cortex. Using custom MatLab scripts, a 59–61 Hz notch filter was first applied to the data to remove any residual 60 Hz line noise. LFP or EEG time-series data during windows that included baseline, laser stimulation and post-laser periods were then converted into power values using 80 logarithmically spaced Morse wavelets from 0.5 Hz to 120 Hz using functions provided in the MatLab wavelet toolbox. Power was then normalized for each frequency by dividing power across the entire window by the average power during pre-stimulus baseline. To determine significant changes in power in the time × frequency domain owing to light stimulation, a Monte Carlo permutation approach was utilized, which shuffles trials of light and no-light conditions to create a null-distribution of the size (area) of contiguous time × frequency clusters that are due to chance and comparing them to the size of clusters from actual light conditions. If the size of clusters from the actual light conditions were greater at P = 0.025 on either tail (positive or negative) of the null distribution, this was considered a significant result due to light stimulation and the direction of change was noted60. Because significant drops in LFP or EEG power were found between 8 and 100 Hz, we used a 50% drop in average power (after smoothening) across this frequency band to determine an estimate for latency to syncope onset. When average power returned to above 80%, this was considered an estimated end of the syncope bout.

Spike sorting

Each day after recording was completed, raw data from the NP action potential channels were run through the spike sorting software Kilosort3 (ref. 61). This separates ‘good’ isolated units from ‘multi-unit activity’. After spike clusters were identified, the quality of automatic unit separation was manually inspected using Phy software. Kilosort3 performs automated drift correction of the electrode. We still observed some units that were more active at the beginning or the end of the recording, which suggesting there was some remaining drift. To determine drifting units, each unit’s firing rate in 100-ms bins was smoothed by a Gaussian of width 30 s. If this smoothed firing rate varied by more than a factor of 5 during the recording, then the unit was defined to be drifting and removed from further analyses. This removed on average 5.7% of units across recordings (range of 1 to 15%). Units with a firing rate less than 0.25 Hz were also excluded from further analyses.

Video processing

We used open-source software FaceMap38,62 and DeepLabCut63. For FaceMap, three regions of interest (ROIs) were chosen: around the eye, the entire face and the whisker pad. A saturation threshold was set on the eye ROI such that only pixels in the eye were darker than the threshold. Blinks were determined to be times when the eye area went below a certain number of pixels, which was set to the same value across mice. From the ROIs around the face and the whisker pad, the single value decomposition (SVDs) of the absolute motion energy and the raw frames were computed. The raw movie was a matrix of size Npixels by Ntime points. The absolute motion energy at each time was computed as the absolute value of the difference between consecutive frames. Because the matrices were too large to decompose in their raw form, we performed the SVD in segments on both the raw movie and the motion energy38. From this, we obtained a matrix Xmovie and Xmotion, each of size 250 by Ntime points, where 250 is the number of top SVD components used. The whisking (Extended Data Fig. 7c–f) was defined as the L2 norm of the top 10 components of the whisker Xmotion at each time point. The whisking baseline for laser onset was computed for each laser stimulation using the mean across 30 s before laser onset. The whisking baseline for syncope onset was computed using the mean across −6 s to −4 s relative to syncope onset. The whisking was normalized by this baseline and averaged across mice and sessions (Extended Data Fig. 7c,e) and summarized using the mean across 5 s post-laser onset (Extended Data Fig. 7d) and across 2 s post-syncope (Extended Data Fig. 7f). To determine pupil area, a DeepLabCut model was trained with 140 frames using 20–40 frames per mouse to track 4 key points (top, bottom, left and right) around the pupil of the mouse. The x and y coordinates of the key points were median filtered with a window of 5 time points, corresponding to about 160 ms. The lengths of the two axes of the pupil were computed using the four key points and the pupil area was approximated as the area of an ellipse computed with the lengths of those two axes. Frames for which the likelihood estimated by DeepLabCut was below 0.75 were set to be undefined, along with frames for which the mouse was blinking, as defined above. The pupil area baseline was computed for each laser stimulation using the mean across 30 s before laser onset. The pupil area was normalized by this baseline and averaged across mice and sessions (Extended Data Fig. 7a, b).

Neural prediction from behaviour

We built a model to predict neural activity from the behaviour of the face. The face behaviour used for the model were the movie and motion SVDs (Xmovie and Xmotion, respectively), which were collected at 30 Hz. The neural activity was binned in 100 ms bins (10 Hz). The behaviour and neural activity were first split into train, validation and test sets consisting of 50, 50 and 63 s segments, respectively, to avoid contamination of the test set with the train set owing to the autocorrelation timescale of behaviour. One test segment (the control period) consisted of a period of 63 s without laser stimulation, to quantify the performance of the model without laser stimulation, and the other test segments were during the laser stimulation, in a window –3 s to 60 s at laser stimulation onset. The rest of the data were divided into segments of length 50 s, and 80% were placed in the train set and 20% in the validation set. Thus, the training and validation sets did not contain any of the laser stimulation periods as we aimed to quantify the discrepancies of the model during stimulation. Next, a multi-layer network model was fit to predict neural activity from behaviour. The model consisted of a linear layer, a one-dimensional convolutional layer (temporal convolution), a ReLU non-linearity, a linear layer with smaller dimensionality (the output of this is defined as the latents) and then a linear output layer. The output of the convolutional layer was subsampled at the time points of neural activity because the behaviour was collected at 30 Hz whereas the neural activity was binned at 10 Hz. This model was fit on the training data using the optimizer AdamW, and the validation data were used for early stopping of the model fitting64,65. The model was then applied to the test behaviour segments. This produced a prediction of the neural activity and latents of the model. The latents were then used to find time points in the training set that most resembled the test set latents to create a nearest neighbour prediction: the top 50 neighbours of each test latent from the training set were averaged to compute the test set prediction. This nearest neighbour prediction approach outperformed the direct prediction method from behaviour, with a median variance explained across neurons of 10.3% compared with 5.0%. The residual between the neural activity and the behaviour prediction was defined as the neural activity subtracted by the nearest neighbour prediction (Fig. 3f,g and Extended Data Fig. 8e, f).

The average correlation between the model and neural activity across all brain regions, binned in 1 s time bins, was r = 0.75 in the control period, whereas the average correlation was r = 0.44 during the 20 Hz, 30 s of laser stimulus. For brain area PVZ, it was r = 0.91 for the control, and r = 0.36 for the 20 Hz, 30 s of stimulation period (Extended Data Fig. 8b, bottom).

Syncope quantification

Syncope onset was defined using the EEG–LFP for the 20 Hz, 30 s of laser stimulation (see section ‘LFP–EEG wavelet analyses’). We defined a neuron to be inactive at syncope onset if it had a period of inactivity starting within 250 ms of the syncope onset. The period of inactivity had to be sufficiently long such that, according to its firing rate, it had a random probability of occurring of less than 1%. Assuming a Poisson distribution of spiking for a neuron, the probability of no spikes in a given number of time bins \(k\) is \(P={e}^{-\lambda k{\rm{d}}t}\), where \(\lambda \) is the average firing rate of the neuron excluding the test set as defined above, and where dt is the time bin size, which in this case is 1 ms. Setting this probability P to 1%, the time period corresponds to \(k=-\frac{{\rm{ln}}\left(0.01\right)}{\lambda {\rm{d}}t}\) – time bins of inactivity. The maximum number of time bins used for the inactivity definition (for lower firing units) was 4,000 time bins (4 s). The number of inactive neurons was also computed for a random time window of 250 ms. The percentage of active neurons per brain area for the control time window and for syncope onset were compared using a paired t-test (Extended Data Fig. 8b, top). For inactive neurons, time off during the total syncope time window was defined as the percentage of time bins the neuron was inactive, where the time bins were defined as above (Extended Data Fig. 8b). Time off was not computed for active neurons.

Laser response quantification

For each mouse and each session, there were at least four laser stimulation periods (at frequencies of 5 Hz, 10 Hz and 2 × 20 Hz). To identify laser-activated neurons, the laser onset period was defined as the first 800 ms following laser stimulation onset, and the pre-laser period was defined as the 800 ms preceding laser stimulation onset; the residual from the behaviour prediction was averaged within each of these periods for each neuron. A neuron was defined as activated by the laser if it fulfilled three criteria: (1) the behaviour prediction residual of the neuron during the laser onset period averaged across the four stimulation periods was positive; (2) the residual of the neuron during the laser onset period exceeded the residual during the pre-laser period for all four laser stimulations; and (3) the neuron responded to the laser with a latency of less than 250 ms (see latency definition below; Extended Data Fig. 8c,d). The first two criteria ensured that the neuron responded to the laser rather than to behaviours induced by the laser. The last criterion focused on neurons that respond quickly and therefore the activities of these neurons were more likely to be related directly to the laser onset, although this criterion did not substantially decrease the number of neurons defined as activated neurons: 91% of neurons that satisfied the first two criteria satisfied the last criterion. The latencies of the responses of the neurons to the laser stimulation were computed using equation 1 from a previous paper66. Assuming a Poisson distribution of spiking for a neuron, the probability of observing at least n spikes in a window t is:

$${P}_{t}\left(\ge n\right)=1-\mathop{\sum }\limits_{m=0}^{n-1}\frac{{(N\lambda t)}^{m}{e}^{-N\lambda t}}{m!}$$
(1)

where \(\lambda \) is the firing rate of the neuron excluding the test set as described above, \(N\) is the number of repetitions (in this case four laser onsets), and the time windows \(t\) started from the time of laser onset and were increased with a step size of 1 ms. The latency to spike was defined as the time when this probability is reduced below 1 × 10–6; that is, when the response observed is unlikely to occur by chance from the spontaneous firing rate of the neuron66. The latency per brain area was defined as the median of the latencies of the neurons in the region (Extended Data Fig. 8d).

Statistics

All statistical analyses were carried out using Prism (GraphPad). All tests used are reported in the figure legends. Data sheets with the analyses of statistical tests from Prism reporting estimates of variance within each group, comparison of variances across groups are available upon request. No sample size statistics, blinding or randomization procedures were performed. Representative data were based on at least three independent observations. Animals with proper viral expression or implant placement were included in the analyses. These criteria were pre-established.

Reporting summary

Further information on research design is available in the Nature Portfolio Reporting Summary linked to this article.