Main
Brain–body communication is essential for our physical and mental well-being. Interoception, the sensing of internal bodily signals, has a central role in these bidirectional interactions1,2,3,4,5 through both conscious perception and subconscious processing2,6,8. However, it is still unknown how internal sensory signals eventually become conscious percepts that can guide behaviour.
Humans can volitionally focus their attention on specific interoceptive sensations, and training can improve their detection. For example, focusing on heartbeats can improve their detection2,9 and focusing on gustatory and visceral sensations of fullness can affect food consumption10,11. The importance of consciously perceiving gastric sensations is also evident in toilet training during infancy. Impaired interoception is associated with obesity, eating disorders, anxiety, depression and addiction2,6,7. Nevertheless, the neurobiological basis of conscious and unconscious interoception remains poorly understood8,12.
Psychophysical approaches have provided powerful tools for studying the limits and neural basis of perception in external sensory systems13,14,15. The use of such quantitative approaches in interoception has been impeded by the limited ability to quantitatively vary internal stimuli and concomitantly record and manipulate the relevant neural activity7. Recent ingestible vibrating capsules have enabled controlled studies of gut interoception in humans16. While such approaches provide invaluable insights, they cannot be readily combined with cellular-resolution neuronal recordings and genetic manipulations, available in animal models7.
Gastrointestinal mechanosensory signals are conveyed by specialized vagal afferents to the nucleus tractus solitarius (NTS)17. In mice, genetically defined vagal sensory populations encode distinct visceral signals, including gastric distension, blood pressure, gastric stretch, intestinal nutrient sensing and lung chemosensing18,19,20,21,22,23. The NTS preserves and further organizes organ- and modality-specific visceral representations, including gastric distension23,24. Gastric signals engage a distributed cortical network that includes insular, somatosensory, cingulate, retrosplenial and precuneus regions25,26. Studies of intrinsic gastric rhythm identified a gastric network, coupled to stomach rhythms, that encompasses sensorimotor, visual, insular, cingulate, retrosplenial and dorsal precuneus territories27.
To begin to examine the higher-order cortical processing of interoception, we focused here on the insular cortex (InsCtx)—a central node in the brain-wide network for interoception28,29. The InsCtx, which was initially identified as the vagal receptive cortex30, is the main cortical site that receives gustatory and interoceptive signals30,31. The posterior and mid InsCtx are more closely associated with visceral and somatosensory processing, while the anterior InsCtx integrates bodily signals with affective and cognitive information in animals and humans28,29,32. The InsCtx therefore links external sensations with taste and internal sensory systems28,29,30,33,34,35,36,37,38. It is therefore thought to mediate interoceptive aspects of behaviours, from feeding and drinking to emotional regulation, decision-making and social behaviours28,29,39,40,41,42,43,44.
Here we sought to investigate how internal bodily signals become sensory percepts and subsequent decisions by focusing on the InsCtx. To do so, we combined non-invasive optogenetic activation of putative vagal gut mechanosensory neurons with cellular-resolution imaging and manipulations of the mid-posterior InsCtx. We chose mechanosensation for studying internal perception, as it is temporally confined, and allows comparison with recent human studies7,16,45. We established different behavioural assays, including quantitative internal psychophysics. By linking task-dependent perceptual readouts with cellular-scale activity and causal perturbations, our findings advance our understanding of the cortical computations by which internal bodily signals are transformed into decision-relevant representations.
Non-invasive vagal mechanosensory activation
To train mice to report activation of vagal mechanosensory neurons, we developed an experimental system that allows their non-invasive activation using optogenetics. We targeted oxytocin receptor (OxtR)-expressing vagal sensory neurons located in the nodose ganglia (hereafter, NG-OxtR+ neurons), previously identified as gut mechanosensory neurons18. We used the highly sensitive red-shifted opsin, ChRmine, which was previously used for non-invasive activation of heart cells46. We injected a retrograde virus (retroAAV-EF1a-DIO-ChRmine-mScarlet) into the NTS of Oxtr-t2a-cre mice to express ChRmine in NG-OxtR+ neurons (Fig. 1a). This retrograde approach circumvented the need for extensive neck surgery to expose the vagus nerve for virus injections. We confirmed efficient expression in the nodose ganglion (Fig. 1b), but not in OxtR+ vagal motor neurons (Fig. 1c). Moreover, retrogradely labelled NG-OxtR+ neurons projected to previously described subregions of the NTS18 (Fig. 1c). Consistent with previous work identifying NG-OxtR+ neurons as gut mechanosensory neurons that innervate the entire intestine18, we observed labelled intraganglionic laminar endings (IGLEs) innervating the intestine, known to mediate gut mechanosensing17 (Fig. 1d and Extended Data Fig. 1a). We used vagus nerve electrophysiology to validate efficient optogenetic activation of retrogradely labelled NG-OxtR+ neurons (Fig. 1e).

a, Retrograde ChRmine-mScarlet labelling of NG-OxtR+ neurons. b, Bilateral NG-OxtR+ ChRmine-mScarlet expression after retrograde brainstem injections. Scale bars, 200 µm. c, ChRmine-mScarlet-expressing NG-OxtR+ terminals in the NTS. Scale bar, 200 µm. d, ChRmine-mScarlet-expressing NG-OxtR+ intestinal IGLEs (arrows). Scale bar, 100 µm. e, Electrophysiological validation of NG-OxtR+ optogenetic activation. Left, schematic of vagal nerve recordings. Right, optogenetically evoked vagal responses (red area indicates the illumination period). Data are mean ± s.e.m. across 9 repetitions. f, Two-photon NG calcium imaging during intestinal inflation (top). Bottom, OxtR-tdTomato+ (red), GCaMP7f+ (green) and co-expressing (yellow) neurons. Scale bar, 100 µm. g, Two example NG-OxtR+ neuronal traces during 50 s intestinal inflations (grey; 90, 115 and 140 µl). h, Non-invasive NG-OxtR+ optogenetic activation with a masking light. i, Lick rasters during closed-loop sucrose consumption. Light grey area indicates the odour cue; the dark grey ticks indicate licks; and the red ticks indicate lick-triggered optogenetic pulses. Interleaved opto/no-opto trials are shown separately. j, The mean ± s.e.m. lick rate from i. k, Lick reduction during sucrose consumption. Data are mean ± s.e.m. n = 14 (ChRmine+) and n = 5 (controls). Optogenetic activation reduced licking in ChRmine+ mice but not in the controls (P = 0.003, two-sided Mann–Whitney U-test; effect size (rank-biserial correlation), r = 0.86). l, The VagalOpto→NoReward task. After an odour-cue alone, licking yields a sucrose reward (~5 µl, 600 mM); if there is a preceding vagal-opto stimulation (15 Hz), there is no reward. Masking light starts 1 s before the trials and remains throughout. m, The mean ± s.e.m. lick rates from ChRmine+ mice and controls (around 180–200 trials). Left, no-opto licking was similar between the experimental groups. Right, licking was low in ChRmine+ mice but high in control mice during the VagalOpto→NoReward task. n, Response rates for the VagalOpto→NoReward task. Data are mean ± s.e.m. ChRmine+ mice (n = 19) showed high hit rates and low false-alarm (FA) rates (P = 3.6 × 10−21; Cohen’s d = −12.08); the controls (n = 5) did not (P = 0.42; two-sided paired t-tests). o, The VagalOpto→Reward reversal task. When vagal-opto stimulation (15 Hz) is applied before the odour cue, licking yields sucrose (~5 µl, 600 mM); if there is no vagal-opto stimulation, there is no reward. A new odour cue was used. p, The mean ± s.e.m. lick rates from the same mouse performing the VagalOpto→NoReward task (left) and the VagalOpto→Reward task (right). q, Response rates of the same mice (n = 9) during the VagalOpto→NoReward and VagalOpto→Reward tasks. Data are mean ± s.e.m. Hit and false-alarm rates were comparable between tasks (adjusted P (Padj) = 0.099 and 0.164, respectively), but differed within each (both Padj = 0.0078; effect size (rank-biserial correlation), r = −0.87; false-discovery rate (FDR)-corrected two-sided Wilcoxon signed-rank tests).
Previous work established the gut-related mechanosensory function of NG-OxtR+ neurons18; yet, they have not been shown to directly respond to gut mechanosensory stimuli. To test this, we performed in vivo two-photon calcium imaging of the nodose ganglion while inflating balloons in the proximal small intestine to evoke gut distention20 (Fig. 1f,g). Retrogradely labelled NG-OxtR+ neurons expressed tdTomato and GCaMP7f, enabling identification and activity monitoring. Around 23% of NG-OxtR+ neurons responded to inflation of the intestinal balloon (45 out of 198 neurons, 4 mice). This is probably an underestimation, because NG-OxtR+ neurons innervate the entire small intestine18, while our mechanosensory stimulation covered only a small fraction of the entire small intestine length (around 3–6%; Methods).
Previous work has demonstrated that activation of NG-OxtR+ reduces food consumption18. We therefore tested whether their non-invasive optogenetic activation affected consumption. We targeted the somata of ChRmine-expressing NG-OxtR+ neurons by pointing red LEDs at their necks (see the additional control experiments below). To eliminate potential visual responses to optogenetic illumination, we used a masking light (Fig. 1h). We trained food-restricted mice to lick for a sucrose solution, randomly interleaving trials with non-invasive closed-loop optogenetic activation of NG-OxtR+, which was triggered by licking. We observed a clear reduction in licking and consumption in optogenetic activation versus control trials (Fig. 1i,j), quantified using a lick-reduction index (Fig. 1k). We did not observe this effect in wild-type (C57BL/6) mice or Oxtr-t2a-cre mice injected with a control tdTomato virus (Fig. 1k). We observed no differences between male and female mice (Extended Data Fig. 1b) and, consistent with previous work, we observed a similar lick reduction in water-restricted mice18 (Extended Data Fig. 1c).
We next tested whether the lick reduction was driven by aversion. First, during the sucrose consumption test, mice consistently resumed licking during subsequent trials without optogenetic activation (Fig. 1i–k and Extended Data Fig. 1d), suggesting that the lick reduction effect is acute and does not persist once the optogenetic stimulus stops. We separately compared interleaved trials with versus without optogenetic stimulation in ChRmine-expressing and control mice. Licking was significantly reduced only in ChRmine-expressing mice and only during optogenetic stimulation trials (Extended Data Fig. 1e). This transient lick suppression therefore probably reflects a reflexive response to vagal stimulation rather than an aversive state. Second, we performed a head-fixed conditioned taste preference task, pairing one juice with NG-OxtR+ activation (Extended Data Fig. 1f). We observed robust lick suppression during conditioning, but only a very small change in preference on the test day without optogenetic stimulation (about 0.5 during conditioning versus around −0.06 after conditioning; Extended Data Fig. 1f). Moreover, as shown below, NG-OxtR+ activation can be learned as a reward-predicting cue (Fig. 1o–q), further suggesting that NG-OxtR+ activation does not cause strong aversion, consistent with previous work18. Nevertheless, we cannot rule out that NG-OxtR+ stimulation is transiently mildly aversive.
To compare optogenetic and meal-related physiological vagal activation, we first measured intestinal distension after feeding. The small intestine diameter increased from 2.06 ± 0.33 mm in fasted mice to 3.25 ± 0.23 mm after 2 h of refeeding (approximately 1.5-fold increase; mean ± s.e.m.; n = 4 mice per group). We therefore compared vagus nerve activity evoked by an approximately 1.5-fold intestinal distention with that evoked by our (15 Hz) optogenetic stimulation of NG-OxtR+ neurons. Despite variability across mice, the two stimuli produced comparable increases in vagal firing, suggesting that our stimulation did not exceed physiological activation evoked by intestinal distension (Extended Data Fig. 1g). However, in contrast to natural stimulation, which recruits different intestinal segments sequentially, optogenetic stimulation activates them simultaneously.
Reporting of vagal mechanosensory activation
Humans can report experimentally induced gut mechanosensations16. We tested whether mice could behaviourally report optogenetically induced internal mechanosensations. We used Go/No-Go behavioural tasks and trained head-fixed mice to lick after an odour cue to receive a sugar-water reward, which was predicted by the presence or absence of the optogenetic stimulus before the odour cue. In the VagalOpto→NoReward task, vagal-optogenetic (vagal-opto) stimulation before the odour signalled that licking would not be rewarded, whereas no stimulation before the odour signalled that licking would be rewarded (Fig. 1l). The odour cue was identical in both conditions, making optogenetic stimulation the sole discriminative stimulus. Visual detection of stimulation was prevented using continuously pulsing masking red light and light-blocking neck covers (Methods).
Mice expressing ChRmine in NG-OxtR+ neurons successfully discriminated opto from no-opto trials, showing high hit rates and low false-alarm rates, whereas tdTomato-expressing and wild-type mice did not (Fig. 1m,n). Mice learned the VagalOpto→NoReward task rapidly within the first session and performance remained high thereafter (15 Hz vagal optogenetic stimulus; Extended Data Fig. 1h–j). To test whether learning depended on stimulus strength, we trained another cohort with 1 Hz stimulation. Learning emerged more gradually with 1 Hz than with 15 Hz, consistent with a weaker vagal signal. Nevertheless, mice ultimately discriminated the two trial types well with an increasing discriminability index (d′), sustained hit rates and decreasing false-alarm rates (Extended Data Fig. 1k–m).
High performance in the VagalOpto→NoReward task, together with lick reduction during sucrose consumption (Fig. 1h–k,n), could reflect a reflexive lick-suppression signal, rather than flexible use of vagal stimulation as a learned cue. To test this, we reversed the contingency (Fig. 1o): optogenetic stimulation preceding the odour now signalled a reward for licking (the VagalOpto→Reward task), whereas no stimulation signalled no reward for licking. The stimulation parameters were identical across conditions, with only its behavioural meaning reversed. The same mice successfully learned both tasks, showing comparable high hit and low false-alarm rates (Fig. 1p,q) and sustained d′ across reversal (Extended Data Fig. 1h). Thus, mice flexibly used the same vagal stimulus to guide either action-withholding or execution, arguing against a lick-suppression bias. Control tdTomato-expressing and wild-type mice did not learn to report the vagal stimulus (Extended Data Fig. 1h). Although Go/No-Go performance can reflect decision bias or response propensity, the reversal shows that the same vagal stimulus supported both action withholding and execution, arguing against a fixed suppression bias15.
We further tested whether mice can generalize the learned association between vagal stimulation and reward with a novel odour, and found that they maintain high d′, hit rates and low false-alarm rates (Extended Data Fig. 1n). By contrast, reversing the stimulus–reward contingency without further training disrupted performance and required relearning (Extended Data Fig. 1o). This indicated that responses depended on the learned meaning of vagal stimulation.
We next tested the temporal limits of this percept by varying stimulation duration or the delay before the odour cue. First, we trained mice with the original 4 s stimulus, then randomly interleaved 4 s, 1 s, ~267 ms or ~6.7 ms stimuli (all 15 Hz). Shorter stimulation progressively reduced performance, mainly by increasing false alarms while maintaining high hit rates (Extended Data Fig. 1p,q). Thus, mice detected vagal stimulation reliably only with longer stimulation, suggesting that they integrate the interoceptive signal over time. Second, we tested how long the vagal optogenetic signal remained behaviourally accessible. After training with no delay between stimulation and the odour cue, we randomly interleaved 2, 4, 6 or 8 s delays. Performance declined with increasing delay, driven mainly by increased false alarms, while hit rates remained high (Extended Data Fig. 1r,s). Thus, the evoked internal mechanosensory signal has limited temporal persistence: it can guide behaviour when the cue follows shortly after stimulation, but its influence decays over a few seconds.
Finally, to rule out contributions from retrogradely labelled non-vagal OxtR+ neurons, we bilaterally ablated NG-OxtR+ neurons using a Cre-dependent caspase-expresing virus in the nodose ganglia (Extended Data Fig. 2a,b). Mice with near-complete ablation failed to learn the VagalOpto→NoReward task despite repeated training (Extended Data Fig. 2c), demonstrating that NG-OxtR+ neurons are necessary for task performance.
Previous studies reported conflicting effects of NG-OxtR+ activation, including reductions in blood pressure, heart rate and body temperature, inducing torpor47, whereas the Oxtr-t2a-cre line used here showed no such effects18. We therefore measured heart rate and body temperature during optogenetic vagal stimulation. Heart rate decreased in some mice but not others, but mice with or without a change in heart rate showed similar high performance in the VagalOpto→NoReward and VagalOpto→Reward tasks. Importantly, NG-OxtR+ stimulation did not reduce body temperature or induce torpor (Extended Data Fig. 2d–e).
Our anatomical, physiological and consumption data (Fig. 1d,f–k and Extended Data Fig. 1a) support a substantial contribution of gut-innervating NG-OxtR+ neurons. However, NG-OxtR+ neurons may also innervate the aortic arch and pancreas23,47. To test whether aortic arch input is required for behavioural detection, we performed aortic depressor nerve denervation, eliminating vagal sensory innervation of the aortic arch, including NG-OxtR+ innervation47 (Extended Data Fig. 2f,g). Mice with verified denervation readily performed the optogenetic detection task (Extended Data Fig. 2h), demonstrating that aortic arch input is not necessary for behavioural report of NG-OxtR+ activation. A contribution from pancreatic afferents cannot be excluded, but their slower metabolic signalling is unlikely to account for the rapid behavioural responses observed here. This further supports a major contribution of gut-related vagal signals to behavioural detection.
Cortical activity during interoceptive psychophysics
Psychophysical approaches in external senses have long been used to link changes in stimulus intensity with perception and neural activity13,14,15. We adapted this approach to interoception by systematically varying stimulus strength and measuring behavioural report. We modified optogenetic stimulus strength by varying pulse frequency (0.5–15 Hz, randomly interleaved), while fixing stimulus duration at 4 s (Fig. 2a). We varied frequency rather than light intensity as tissue-dependent light absorption (skin, fat, muscles, salivary glands) prevents direct quantitative comparison across light intensities. Instead, we took advantage of the fact that the slow kinetics of ChRmine48 summate pulses across the 4 s stimulus to modulate the effective stimulation strength.

a, The interoceptive psychophysics task. b, Example behavioural psychometric function. The dots show the detection rate; the black line shows the sigmoidal fit; the blue dashed line shows the behavioural threshold (50% detection). R2 is the goodness of fit. c, Behavioural psychometric functions for all mice. n = 10. Data are mean ± s.e.m. d, Non-invasive NG-OxtR+ optogenetic activation with two-photon InsCtx calcium imaging through a microprism. Schematic and example field of view. Scale bar, 100 µm. e,f, Example sigmoidal (e) and Gaussian (f) frequency–response functions. Top, trial-by-trial z-scored activity by stimulation (stim.) frequency. The pink bar indicates vagal stimulation. Bottom, the fraction of trials in which neurons were significantly excited per stimulation frequency (black dots); the black line is the fitted curve. The dashed lines show the neuronal threshold (e) and response peak (f). g, The fraction of sigmoidal versus Gaussian neurons per mouse. n = 5. Data are mean ± s.e.m. The dots indicate individual mice. P = 0.41, two-sided paired t-test. h, Example mouse distributions of neuronal thresholds (top, sigmoidal, n = 116 neurons) and response peaks (bottom, Gaussian, n = 71 neurons). The histogram is shown as grey shading; the black line is the fit; and the blue dashed line is the behavioural threshold (50% detection rate). i, Sigmoidal thresholds (n = 367; 73.4 ± 32.1, mean ± s.e.m.) and Gaussian peaks (n = 461; 92.2 ± 42.2, mean ± s.e.m.) across 5 mice (left). Right, the coefficient of variation (CV) of the peak values from the sigmoidal threshold and Gaussian peak histograms shown in h, calculated per mouse (right axis). The behavioural CV is from behavioural thresholds across mice (left axis). Note that sigmoidal thresholds are broadly distributed, whereas Gaussian peaks clustered at 1 and 3 Hz, independent of behavioural thresholds. j, Example behavioural psychometric fit (black); example sigmoidal neuronal fits (grey) have lower or higher thresholds. The blue dashed line is the behavioural threshold. k, Behavioural detection versus neuronal population decoding. Top, example behavioural fit (black) with neuronal SVM-decoder accuracy using all recorded neurons (red), or after removal of Gaussian, sigmoidal or a randomly selected matched number of neurons (greys). The blue dashed line is the behavioural threshold; the grey arrow indicates the frequency used for behaviour-decoder comparison. Bottom, the difference between decoder accuracy and behavioural detection across mice. Positive values represent higher neuronal decoding sensitivity compared with behavioural reporting.
We first trained mice on the VagalOpto→NoReward task at the strongest stimulus (15 Hz) until they reached stable performance (correct rejection = 92.8 ± 2.6%; d′ = 3.1 ± 0.3; mean ± s.e.m., n = 10). We then conducted 1–2 separate psychophysics testing days, introducing randomly interleaved frequencies (0.5–15 Hz), without previous training, while keeping reward probability fixed at 50%. Mice exhibited classic sigmoidal detection curves and near-perfect detection at the strongest stimulus (15 Hz; maximal correct rejection rate = 98.5 ± 1.5%; mean ± s.e.m., n = 10 mice; sigmoidal fit, R2 = 0.98 ± 0.01; Fig. 2b,c and Extended Data Fig. 3a). Detection thresholds, typically around 1–3 Hz, potentially corresponded to approximately 5–20% of post-meal vagal firing rates (Extended Data Fig. 1g). Detection thresholds were similar after rewarded and unrewarded trials, indicating minimal influence of reward history (Extended Data Fig. 3b). Thus, non-invasive vagal mechanosensory optogenetic stimulation enables quantitative measurement of interoceptive sensitivity in mice.
Having established a robust psychophysics framework, we next sought to elucidate the neural basis of perception of internal mechanosensations. We focused on the interoceptive InsCtx as it responds to gut mechanosensations and regulates gut motility31,49,50. Moreover, in human individuals, consciously focusing attention on interoceptive signals engages the InsCtx32,51.
To confirm that InsCtx responses to vagal optogenetic stimulation require NG-OxtR+ neurons, we measured bulk InsCtx calcium activity using fibre photometry after caspase-based ablation of NG-OxtR+ vagal neurons (Extended Data Fig. 3c). Vagal optogenetic stimulation evoked robust InsCtx responses in sham-ablation mice, but none in NG-OxtR+-ablated mice (Extended Data Fig. 3d).
To examine the representation of these signals at single-neuron resolution, we imaged GCaMP7f-expressing layer 2/3 mid-posterior InsCtx neurons using a microprism52,53 during the psychophysics task (Fig. 2d). We recorded 2,763 neurons from five mice (553 ± 262 neurons per mouse, mean ± s.d.; range, 228–915). We initially focused on responses to the vagal optogenetic stimulus (but see Fig. 4 below for reward responses). We identified vagal-responsive InsCtx neurons using area under the receiver operating characteristic curve (auROC) analysis and permutation tests. We then characterized the temporal decay of their response using the deconvolved responses and found that they reached two-thirds of peak within 0.85 ± 0.47 s and 35.6 ± 8.6% of peak by stimulus offset (onset of the odour cue, mean ± s.e.m.; Extended Data Fig. 3e). This time-course matches the behavioural decay observed with variable delays before the odour cues (Extended Data Fig. 1r,s). Moreover, these results preclude the possibility that the vagal optogenetic stimulus induces a longer-term change in InsCtx activity that persists beyond the current trial.
We characterized InsCtx responses by fitting each neuron with sigmoid and Gaussian models and retaining the best fit that exceeded shuffled controls (Methods). We identified neurons with classic sigmoidal neurometric responses14, increasing with stimulus intensity (14.5 ± 2.6%; Fig. 2e and Extended Data Fig. 3f; less prevalent suppression responses are shown in Extended Data Fig. 3g,h). Gaussian neurons were tuned to specific stimulus frequencies (17.4 ± 1.6%; Fig. 2f and Extended Data Fig. 3f–i). These two populations were similarly prevalent and together comprised 32 ± 3% of neurons (Fig. 2g). These response patterns were independent of licking and reward history (Extended Data Fig. 3j,k). Sigmoidal response thresholds (50% of max response) clustered around behavioural detection thresholds and were broadly distributed across frequencies, whereas Gaussian peaks were largely behaviour-independent and concentrated at lower frequencies (Fig. 2h,i and Extended Data Fig. 3l). Sigmoidal and Gaussian neurons were spatially intermingled with no consistent spatial organization (Extended Data Fig. 3m,n).
As some neurons were more sensitive than behavioural detection thresholds (Fig. 2j), we tested whether neural population activity could detect behaviourally undetected stimuli. Neural population decoders outperformed behavioural reporting in all mice, including when trained below each mouse’s detection threshold (all had positive values; Fig. 2k). Population activity even decoded 0.5 Hz stimulation above chance, despite this frequency being undetectable by all mice (Extended Data Fig. 3o). Conversely, decoders trained at 15 Hz failed to generalize to lower frequencies, consistent with distinct neuronal frequency tuning (Extended Data Fig. 3o). Decoding was largely preserved after removing Gaussian, sigmoidal or matched random subsets, although removing sigmoidal neurons modestly reduced performance at lower stimulation frequencies for the 15-Hz-trained decoder (Fig. 2k and Extended Data Fig. 3o).
Cortical basis for interoceptive detection
We next focused on detected versus undetected stimuli (correct rejections and false alarms, VagalOpto→NoReward). We observed neurons that had differential responses on detected versus undetected trials during the vagal optogenetic stimulation, before the odour cue and the behavioural response (Fig. 3a). At the single-neuron level, we used the auROC-based choice probability analysis54 with permutation tests within and across conditions (Fig. 3b and Methods). We found that 15.4 ± 4% of neurons exhibited significant decoding of detected versus undetected trials in the psychophysics task (Fig. 3b and Extended Data Fig. 4a). Notably, in the one-frequency VagalOpto→NoReward task (Fig. 1l), we found very little single-neuron decoding of detected versus undetected stimuli (6.2 ± 2.4% with 5% false positive rate; Fig. 3c), independent of specific statistical thresholds (Extended Data Fig. 4b). Both Gaussian and sigmoidal neurons showed robust single-neuron decoding (Extended Data Fig. 4c). We observed significant spatial clustering of choice probability in 3 out of 5 mice (Extended Data Fig. 4d,e).

a, Example neuronal responses during detected (correct rejection (CR); red) and undetected (false alarm; black) trials. Data are mean ± s.e.m. The pink bar indicates vagal-opto stimulation. b, Choice probability (auROC) for a. c, The fraction of neurons with significant choice probability. n = 5 mice. Data are mean ± s.e.m. The red line indicates 5% chance. P = 0.028 (two-sided paired t-test), Cohen’s d = 1.5. d, Decoder for detected versus undetected trials. Data are mean ± s.e.m. n = 5 mice. The pink bar indicates vagal-opto stimulation; the dashed lines indicate the decoder training window. Task comparison: P = 0.024, Cohen’s d = 1.58, two-sided paired t-test. e, Left, example population activity after nonlinear dimensionality reduction in the one-frequency (one-freq.; top) and psychophysics (bottom) tasks (0.5 s bins); colours represent activity clusters. Right, cluster dynamics in the detected, undetected and reward trials. f, Cluster-dynamics similarity. n = 4 mice. Data are mean ± s.e.m. Detected (CR) versus undetected (false alarm), P = 0.04, Cohen’s d = −1.3; reward (hit) versus undetected (false alarm), P = 0.42, Cohen’s d = −0.11; reward (hit) versus detected (CR), P = 0.1, Cohen’s d = −0.8; one-sided paired t-tests. g, InsCtx optogenetic inhibition during non-invasive NG-OxtR+ activation. Scale bar, 200 µm. h, Psychophysics with 5 s InsCtx inhibition during the vagal-opto stimuli (50% of trials, randomly interleaved). Example lick rasters with or without InsCtx inhibition across the no-opto, very-low, low and medium trials. The pink bar indicates vagal-opto stimulation. Randomly interleaved trials presented separately. i, Psychophysics correct rejection rates with or without InsCtx optogenetic inhibition. n = 6 mice. Data are mean ± s.e.m. Left, for all frequencies: P = 0.002, Cohen’s d = 2.42. Right, for very-low, low and medium stimulation, respectively: P = 0.0009, 0.007 and 0.013; Cohen’s d = 2.86, 1.81 and 1.54 (two-sided paired t-tests). j, One-frequency VagalOpto→NoReward correct rejection rates with or without InsCtx optogenetic inhibition. Data are mean ± s.e.m. The dots indicate individual mice. Medium: P = 0.61, n = 5; low: P = 0.61, n = 5; very low: P = 0.59, n = 3; two-sided paired t-tests. k, Hit rates with or without InsCtx optogenetic inhibition. Data are mean ± s.e.m. Psychophysics: P = 0.03, n = 6, effect size (rank-biserial correlation): r = −0.86. One-frequency: P = 0.47, n = 5 (medium); P = 0.81, n = 5 (low); P = 0.75, n = 3 (very low); two-sided Wilcoxon signed-rank tests. m–o, Pharmacological InsCtx inhibition during psychophysics (m,n) and one-frequency detection (o). l, Psychophysics correct-rejection rates. Data are mean ± s.e.m. n = 4 mice. Left, all frequencies: P = 0.03, Cohen’s d = −1.42. Right, P = 0.12 (very low); P = 0.049, Cohen’s d = 1.19 (low); P = 0.01, Cohen’s d = 2.21 (medium); one-tailed paired t-tests. m, Psychophysics hit rates. n = 4 mice. Data are mean ± s.e.m. P = 0.85; two-sided paired t-tests. n, The one-frequency task. n = 6 mice. Data are mean ± s.e.m. Left, correct rejections: P = 0.005, Cohen’s d = 1.7; one-sided paired t-test. Right, hit rates: P = 0.41; two-sided paired t-test.
We wondered whether population decoding could discriminate detected versus undetected trials in both the psychophysics and the one-frequency detection tasks. We trained two different population decoders while controlling for reward history. Consistent with single-neuron results, population activity successfully decoded detected versus undetected trials in the psychophysics task but not the one-frequency task (Fig. 3d and Extended Data Fig. 4f), despite similarly accurate decoding of stimulus presence in both tasks (Extended Data Fig. 4g). Detection decoding persisted when restricting analysis to frequencies with comparable numbers of detected and undetected trials, ruling out stimulus intensity as an explanation (Extended Data Fig. 4h).
To go beyond binary population decoding, we explored population activity pattern dynamics using our previously established method for characterizing the InsCtx population activity manifold55 (that is, the repertoire of population activity patterns). We used nonlinear dimensionality reduction, followed by automated clustering, which enabled us to describe activity dynamics as transitions between different subspaces (clusters) of the activity manifold (Fig. 3e). In the one-frequency detection task, undetected trials (false alarms) appeared as a simple combination of vagal optogenetic stimulation and reward anticipation (correct rejections and hits, respectively; Fig. 3e (top row)). Notably, in the psychophysics task, undetected trials (false alarms) lacked a clear stimulus representation, regardless of stimulus frequency, and instead resembled reward anticipation (Fig. 3e (bottom row)). We quantified this across mice using cluster dynamics similarity. Detected and undetected trials were less similar in the psychophysics task (Fig. 3f (left)), while undetected trials resembled reward trials in both tasks, probably reflecting incorrect reward anticipation (Fig. 3f (middle)). These results are consistent with the single-neuron and population decoding results, finding neural correlates of detection only in the psychophysics task.
The different representations of detected versus undetected stimuli in the different tasks suggest that the InsCtx may contribute differently to internal sensory perception depending on task demands. To test this, we used optogenetic manipulations to alter InsCtx activity in a temporally precise manner during vagal optogenetic stimulation. Our rationale was that mildly increasing or decreasing InsCtx activity during the stimulus could bias detection, particularly if the stimulus was near the perceptual threshold. However, our pilot experiments showed that even mild optogenetic excitation of the InsCtx could cause seizures, similar to the adjacent piriform cortex56, and we therefore focused on optogenetic inhibition. We used AAV1-CaMKIIa-stGtACR2-FusionRed to express the light-gated chloride channel stGtACR257 in excitatory InsCtx neurons, labelling 47 ± 3% of neurons (mean ± s.d.). We verified the efficacy and reliability of inhibition using bulk fibre photometry of InsCtx axonal projections (Extended Data Fig. 4i). The inhibition magnitude was qualitatively comparable to natural fluctuations in InsCtx activity (Extended Data Fig. 4i).
We delivered precisely timed InsCtx optogenetic inhibition in the psychophysics task in 50% of vagal optogenetic trials and 20% of rewarded trials, randomly interleaved (Methods). InsCtx inhibition (5 s) started 1 s before the vagal optogenetic stimulus and ended with the vagal optogenetic stimulus right before the odour cue. To have sufficient trials with versus without optogenetic inhibition, we used three vagal optogenetic frequencies instead of seven (Fig. 3g,h). We avoided floor and ceiling effects (0% or 100% false alarms) by choosing three frequencies per mouse based on its detection threshold: medium, low and very low (typically 5, 3 and 1 Hz, respectively). Optogenetic inhibition increased the number of detected trials across all three frequencies (fewer false alarms; Fig. 3i,j), but had no effect when the same frequencies were tested individually in single-frequency tasks (Fig. 3k). InsCtx inhibition also increased (incorrect) stimulus-present reports on no-stimulus trials (hits) only in the psychophysics task (Fig. 3l). Thus, even for weak near-threshold stimuli, InsCtx optogenetic inhibition biased perception toward stimulus present’ only in the variable, high perceptually uncertainty context of the psychophysics task.
We further tested other behavioural contexts. In an odour-only Reward/NoReward task (no vagal optogenetics), pre-cue InsCtx inhibition during the vagal optogenetics time window had no detectable impact (Extended Data Fig. 4j). InsCtx optogenetic inhibition also did not have significant effects in either 15 Hz VagalOpto→Reward or VagalOpto→NoReward tasks (Extended Data Fig. 4k). This argues against InsCtx inhibition effects on odour discrimination, licking or general motivation, and further supports specificity to the psychophysics context.
The InsCtx optogenetic inhibition results suggest that changing its activity patterns with partial inhibition is sufficient to bias detection. We therefore wondered whether a relatively mild manipulation of network activity targeting a small subset of neurons would cause similar effects. We performed an in silico perturbation analysis on our InsCtx imaging data. We ranked neurons by activity during detected trials and perturbed the 20% most suppressed neurons, a fraction at which decoding accuracy plateaued (Extended Data Fig. 4l). We note that suppressed neurons had similar sensory response properties as excited neurons (for example, sigmoidal and Gaussian; Extended Data Fig. 3g,h). We trained a decoder to distinguish between detected (correct rejection) and no-stimulus trials (hits), and then reduced the activity of these neurons during undetected trials (false alarms). Adding moderate inhibition shifted undetected trials toward the detected class, quantitatively matching the behavioural improvement across frequencies (Extended Data Fig. 4m,n), whereas stronger inhibition reduced this correspondence (Extended Data Fig. 4o,p). By contrast, moderately inhibiting the entire population, or the 20% most activated neurons, impaired decoding (Extended Data Fig. 4q,r). Thus, optogenetic inhibition probably altered specific InsCtx activity patterns rather than broadly silencing the network.
To test whether broad inhibition would have different behavioural effects that are distinct from partial optogenetic inhibition, we pharmacologically inhibited InsCtx using GABA-A and GABA-B receptor agonists (Extended Data Fig. 4s). In the psychophysics task, pharmacological inhibition reduced the detection of the vagal optogenetic stimulus, decreasing correct rejection rates, while preserving high hit rates (Fig. 3m,n). Moreover, in contrast to the task-specific effects of optogenetic inhibition, pharmacological inhibition similarly impaired detection in both the psychophysics and the one-frequency detection tasks (Fig. 3m–o). Taken together, these experiments suggest that partial optogenetic inhibition biases report under conditions of higher perceptual uncertainty in the psychophysics task. By contrast, the effects of broader InsCtx pharmacological inhibition across both tasks indicate a more general requirement for InsCtx in reporting internal signals.
Representation of internal sensations and rewards
Reward expectation and consumption are prominent features of InsCtx activity44,52,53,55. We therefore next compared the representations of the two salient aspects of our behavioural tasks—vagal optogenetic stimulation and reward (Fig. 4a). At the single-neuron level, an auROC-based analysis revealed that most InsCtx neurons significantly responded to either vagal optogenetic stimulation or reward, with some responding to both (Fig. 4b and Extended Data Fig. 5a). Among co-responsive neurons, vagal-evoked suppression was inversely correlated with reward responses in every mouse (rmean = −0.22; range, −0.36 to −0.16; all P ≤ 0.004; n = 5; Extended Data Fig. 5b). This relationship supports the idea that vagal signals are embedded within heterogeneous InsCtx populations that also represent other sensory events, sometimes with opposing activity patterns.

a, Example single-neuron responses. Top, heat maps in each subpanel show trial-by-trial activity aligned to vagal optogenetic stimulation. The pink bar marks the vagal opto stimulation period; the grey bar marks the odour cue period. Bottom, the average responses across trials. Data are mean ± s.e.m. b,d,f, The fraction of neurons significantly responsive to vagal-opto stimulation only, reward only or both, out of all recorded neurons per mouse. Data are mean ± s.e.m. across mice. n = 5 (VagalOpto→NoReward (d) and psychophysics (b)), n = 4 (VagalOpto→Reward (f)). c, Comparison of psychophysics versus one-frequency detection tasks (VagalOpto→NoReward). The bars show the fraction of recorded neurons per mouse that were significantly responsive to reward or to vagal optogenetic stimulation. Data are mean ± s.e.m. across mice (n = 5). The dots represent individual mice. Task effect: P = 0.812 (reward), P = 1 (vagal-opto); two-sided Wilcoxon signed-rank tests; NS, not significant. e, The same as c, but comparing the VagalOpto→NoReward and VagalOpto→Reward tasks. Data are mean ± s.e.m. across mice (n = 4). The dots represent individual mice. P = 0.72 (reward), P = 0.9 (vagal-opto); two-sided paired t-tests. g–i, Example population activity after nonlinear dimensionality reduction for the psychophysics (g), VagalOpto→NoReward (h) and VagalOpto→Reward (i) tasks. Each point is the population activity pattern in a 0.5 s bin. The colours indicate activity manifold clusters. The pink bar indicates vagal-opto stimulation; the grey bar indicates the odour cue. Cluster numbers and colours are assigned arbitrarily. Note summation of vagal-opto and reward clusters in the VagalOpto→Reward task. j–l, Activity manifold cluster dynamics over time for psychophysics (j), VagalOpto→NoReward (k) and VagalOpto→Reward (l) tasks. The curves show the fraction of mice for each timepoint in which activity occupied at least one cluster (Methods). Data are mean ± s.e.m. across mice (n = 4 for VagalOpto→NoReward and psychophysics, n = 3 for VagalOpto→Reward). The pink bars indicate vagal-opto stimulation; the grey bars indicate the odour cue.
Gaussian and sigmoidal neurons also responded to reward (Extended Data Fig. 5c). Notably, the fraction of neurons responding to vagal optogenetic mechanosensory stimulation and reward, either similarly or oppositely, were quite similar between the psychophysics task and the one-frequency VagalOpto→NoReward detection task using 15 Hz stimulation (Fig. 4b–d and Extended Data Fig. 5a). However, fewer neurons responded to 15 Hz stimulation during the psychophysics task, suggesting task-dependent dynamic shifts in frequency tuning (Extended Data Fig. 5d,e). At the population level, the single-trial representations of vagal optogenetic mechanosensory stimulation and reward were similarly separable across both tasks (Fig. 4,g,h,j,k).
We wondered whether the distinct representations of vagal optogenetic stimulation and reward were due to differences in task contingencies. That is, perhaps the optogenetic stimulus acquired a learned no reward or lick inhibition response that is naturally distinct from the lick-reward response. To test this, we imaged InsCtx activity during the reversed VagalOpto→Reward task (Fig. 1o). The fraction of neurons responding to vagal optogenetic mechanosensory stimulation and reward were similar between the VagalOpto→NoReward and VagalOpto→Reward tasks (Fig. 4d–f and Extended Data Fig. 5a). The two representations also remained similarly separable, with optogenetic hit trials now appearing as a simple sequential combination of distinct vagal and reward representations (Fig. 4i,l). Thus, InsCtx responses to vagal optogenetic mechanosensory stimulation reflect in part their sensory features, and are largely independent of task contingencies or subsequent behavioural responses. These distinct representations showed modest spatial clustering in some mice, but this was not readily apparent visually or consistent across tasks (VagalOpto→NoReward: 4 out of 5 mice; psychophysics: 1 out of 5 mice; Extended Data Fig. 5f,g).
In summary, our results demonstrate that InsCtx representations of internal sensory stimuli and their perceptual report are distinct. Internal sensory representations are stable regardless of behavioural context or contingencies, whereas perceptual representations are only apparent in a difficult behavioural context with high uncertainty and have a causal role for perception in this context.
Discussion
We developed a behavioural task in which mice report detecting non-invasive optogenetic activation of vagal mechanosensory neurons, establishing quantitative interoceptive psychophysics. Combining this approach with cellular-resolution InsCtx imaging and manipulations, we found that representations of sensory stimuli were consistent across different tasks, whereas perceptual reports were only encoded during a more demanding psychophysics task. InsCtx was generally required for behavioural report across tasks, with an additional role in perception under uncertainty.
Based on these findings, we propose a framework in which InsCtx transforms graded vagal sensory representations into behavioural reports according to the reliability of the available sensory evidence, referred to as ‘precision’ in Bayesian and predictive coding frameworks8,58. Sensory tuning reflects the representation of visceral sensory signals in insular populations, whereas choice-probability-related representations only in the psychophysics task reflects trial-by-trial variation in how this sensory evidence is read out for behavioural report under perceptual uncertainty. Accordingly, partial optogenetic inhibition of InsCtx biases report only in the psychophysics task. By contrast, broader pharmacological inhibition abolishes stimulus-dependent behavioural responses in both tasks. Our results suggest flexible engagement of the interoceptive cortex depending on cognitive demands.
Human studies have advanced our understanding of interoception and its potential neural mechanisms2,6,12. However, such studies relied on tracking naturally fluctuating stimuli such as heartbeats, lacking quantitative controlled manipulation of specific interoceptive stimuli. Recent studies using ingestible vibrating capsules and pressure-controlled breathing apparatuses now enable greater experimental control16,45,59. Studies in complementary animal models can leverage powerful cellular-resolution recordings and manipulations to provide mechanistic insights into interoceptive processing7.
Animal models of interoception have largely lacked behavioural reporting to capture perception of internal sensations7. Inspired by quantitative human interoceptive psychophysics, we developed an approach in mice that uses genetic and optical tools. Our quantitative mouse interoception approach opens up exciting opportunities to build much-needed bridges across animal models and humans using analogous protocols for conscious interoception report7,35,58. This framework could extend to optogenetic manipulation of baroreceptors for blood pressure22, cardiac pacemakers for heart rate46 or lung mechanosensors for breathing21. This will enable investigation of cardiovascular and respiratory interoception in mice and comparisons with related human studies.
The mid-posterior InsCtx has been implicated in interoceptive awareness and attention32,51. The posterior InsCtx primarily represents visceral, somatosensory and interoceptive signals, while anterior regions integrate them with affective, motivational, contextual and cognitive information3,8. Indeed, predictive-processing models propose that the anterior InsCtx generates interoceptive predictions and allostatic commands, while the posterior regions represent sensory evidence and prediction errors8. We found that the mid-posterior InsCtx represented the vagal mechanosensory stimulus and reward in both the psychophysics and one-frequency detection tasks. By contrast, it represented perception of internal mechanosensations only during a difficult psychophysics task (in which a variable stimulus strength reduced the reliability of sensory evidence and made the stimulus presence uncertain), but not during a detection task with one stimulus intensity, even a weak one. Thus, the InsCtx may convert graded visceral sensory representations into reportable perceptual decisions based on the reliability of the sensory evidence. Notably, partial optogenetic inhibition of the InsCtx enhances detection of internal mechanosensations in the psychophysics task, but not in one-frequency detection tasks, suggesting that the behavioural effect depends on the demands of perceptual judgement. Difficult psychophysical decisions may require extracting task-relevant vagal evidence from a heterogeneous InsCtx population that also represents spontaneous bodily state fluctuations and other sensory signals. As a subset of InsCtx neurons appears to represent reliability of sensory evidence, we speculate that their effects on the local InsCtx population may be enhanced in conditions of uncertainty by state-dependent mechanisms such as serotonergic, cholinergic or adrenergic neuromodulation of local connectivity. Partial optogenetic inhibition may shift the balance among InsCtx population components, altering how the InsCtx maps ambiguous sensory stimuli onto the perceptual report, biasing it to the stimulus-present report.
Aberrant interoception is implicated in eating disorders, anxiety, depression and drug addiction2,6,45,60, yet the underlying aetiology and neural mechanisms are poorly understood. Controlled animal models can distinguish deficits in peripheral afferent sensing (for example, of gut mechanosensations for satiety) or aberrant central processing. They can then identify the neural circuits involved, from brainstem sensing to affective, action-planning and executive function circuits. New mouse models such as ours can address these questions with cellular and molecular resolution, potentially informing future targeted therapeutic interventions.
Methods
Animals
We conducted all mouse care and experiments in accordance with protocols approved by the Institutional Animal Care and Use Committee at the Weizmann Institute of Science. We used 8–24-week-old mice for all experiments. We used the following mouse lines: Oxtr-t2a-cre (Jackson Laboratories, 031303) and C57BL6/OlaHsd (Envigo). Mice were housed under a standard 12 h–12 h light–dark cycle with controlled temperature at ~22.5 °C and humidity at ~55%. Sample sizes were chosen to reliably measure experimental parameters while keeping with standards in the relevant fields, and remaining in compliance with ethical guidelines to minimize the number of animals used. Experiments did not involve experimenter blinding, but randomization was used with respect to trial order and data collection.
Surgical procedures
Brainstem injections
We anaesthetized mice in an induction chamber with 3% isoflurane and maintained anaesthesia at 1–1.5% through a nose cone. Once anaesthetized, we secured each mouse in a stereotaxic frame (WPI). After removing fur, we made a midline scalp incision to expose the skull, and identified bregma as the reference point for stereotaxic targeting. Using a micro-drill (WPI), we performed craniotomies at the following coordinates for bilateral NTS injections: anteroposterior (AP): −7.5 mm, mediolateral (ML) ±0.4 mm, dorsoventral (DV): −5.2 to −4.8 mm. We injected a retrograde AAV vector (retro-AAV-EF1a-DIO-ChRmine-mScarlet; plasmid 130998 from Addgene, produced by the Hebrew University ELSC Virus Core Facility) into the NTS of OxtR-Cre mice to retrogradely label NG-OxtR+ neurons. For controls, we either used Oxtr-cre mice, injected bilaterally with retro-AAV-CAG-FLEX-tdTomato (28306, Addgene) into the NTS, or C57BL6 mice. Specifically for visualizing vagal innervation of the aortic arch, mice were injected with AAV-Retro9-CBA-mScarlet3 (produced by the Hebrew University ELSC Virus Core Facility). After the injections, we sealed the craniotomy sites with bone wax and affixed a custom-designed head-post to the skull using Metabond (C&B Metabond Quick Adhesive Cement System, S380, Parkell).
Throughout all of the procedures, we continuously monitored the respiration rate and anaesthetic depth, including regular assessments of reflexive responses (for example, toe pinch). We lubricated the eyes with eye ointment (Duratears, Alcon) and provided analgesia using carprofen (5 mg per kg) and slow-release buprenorphine (3.25 mg per kg). We also closely monitored the mice during recovery.
Microprism assembly and surgery
Glass microprism implants were fabricated using 2 mm microprisms (MCPH-2.0, Tower Optical) coated with aluminium along their hypotenuse. Microprisms were attached to a cover glass (#1 thickness), both along the hypotenuse (to prevent scratching of the reflective surface) and at the side of the prism that faces the InsCtx, using Norland Optical Adhesive 81 cured using ultraviolet light. The glued prism assembly was then secured to a cannula using Kwik-Cast (WPI), allowing controlled insertion of the prism into the craniotomy.
Mice were anaesthetized and prepared for surgery as described above. Using aseptic technique, a custom-made headpost was secured using C&B Metabond (Parkell). The mouse’s head was then rotated about 70°. A ~2.2 × 2.2 mm2 craniotomy was drilled over the left InsCtx, with the lower edge just above the squamosal plate. AAV8-hSyn-GCaMP7f (Addgene, 104488) mixed with FastGreen (Sigma-Aldrich; for visualization of viral spread) was injected directly into the exposed brain tissue at a depth of 0.2–0.6 mm in four adjacent locations (250 nl each) using a picospritzer with minimal injection pressure and long injection duration (PV850, WPI). The brain surface was kept hydrated throughout the procedure using saline-soaked gelfoam. The mouse’s head was then rotated back and the 2 × 2 mm2 microprism, attached to the cannula, was slowly lowered into the craniotomy until it made contact with the InsCtx. It was then advanced further while being slightly shifted medially (~100 µm), ensuring that the lower edge of the microprism extended below the squamosal plate and contacted the medial wall of the craniotomy. Once properly positioned, the edges of the window were sealed to the skull with Vetbond (3M), followed by reinforcement with C&B Metabond (Parkell). The cannula was gently removed, and additional Metabond was applied to form a permanent seal. Mice were allowed to recover for at least 6 weeks before the start of behavioural training to allow for sufficient viral expression.
InsCtx optogenetic inhibition
To validate the inhibition of excitatory InsCtx neurons using stGtACR2, we combined fibre photometry recordings of InsCtx-to-CeA (central amygdala) projections with direct inhibition of InsCtx neurons in C57Bl6 mice. Specifically, we injected both AAV1-CaMKIIa-stGtACR2-FusionRed (105669, Addgene) and AAV9-CaMKIIα-jGCaMP8m (176751, Addgene) into the InsCtx (stGtACR2 bilaterally; jGCaMP8m to the right InsCtx) at the following coordinates: AP: 0 mm (bregma), DV: −4 to −3.8 mm, ML: ±4 mm (0.25 mm medial from the lateral edge of the skull). After the injection, we implanted optic fibres (diameter, 1.25 mm; ceramic ferrule; 400-µm-diameter core; 0.50 NA; R-FOC-BL400C-50NA; RWD Life Science) above the InsCtx (DV: −3.3 mm) for optogenetic inhibition and another optic fibre (CFML15L05; Fibre Optic Cannula; diameter; 1.25 mm; SS ferrule; 400-µm-diameter Core; 0.50 NA; length, 5 mm; Thorlabs) above the CeA (AP: −1.4 mm, ML: −2.9 mm, DV: −4.5 mm) for fibre photometry recordings. We secured all fibres and a custom-designed head post to the skull using Metabond (C&B Metabond Quick Adhesive Cement System, S380, Parkell).
Mice recovered and were then food restricted before any photometry recordings. We recorded axon fibre photometry signals of InsCtx excitatory neurons innervating the CeA using a pyPhotometry board61 with dedicated optics, together with 465 nm and 405 nm LEDs (Doric Lenses). The session began with a 2 min baseline period without inhibition. The protocol then included 10 trials each of 5 s InsCtx inhibition (~1 mW blue light). We used a 3 second intertrial interval (ITI) with an additional randomized delay of 0–1 s to prevent temporal predictability. We analysed the data by first applying a low-pass filter to denoise the signal. To remove brief artifacts occurring at the onset and offset of inhibition bouts, we excluded points that deviated more than three s.d. from local mean (computed with a sliding window) and interpolated the missing values from neighbouring samples. We corrected photobleaching by fitting an exponential decay function to the signal and subtracting it61. We then removed motion-related artifacts by linearly fitting the isosbestic control signal to the GCaMP signal and subtracting the fitted motion component. Finally, we z-scored the signal using the mean and s.d. of the baseline data.
For inhibition of excitatory InsCtx neurons during interoceptive detection tasks (described below), we used Oxtr-cre mice. We first performed brainstem injections of retro-AAV-EF1a-DIO-ChRmine-mScarlet (as described above) to express ChRmine in NG-OxtR+ neurons. During the same surgery, we bilaterally injected AAV1-CaMKIIa-stGtACR2-FusionRed (105669, Addgene) into the InsCtx at the following coordinates: AP: 0 mm (bregma), DV: −4 to −3.8 mm, ML: approximately ±4 mm (0.25 mm medial from the lateral edge of the skull). After the injections, we implanted optic fibres (diameter, 1.25 mm; ceramic ferrule; 400-µm-diameter core; 0.50 NA; R-FOC-BL400C-50NA; RWD Life Science) above the InsCtx (DV: −3.3 mm) and secured them with Metabond (C&B Metabond Quick Adhesive Cement System, S380, Parkell). Finally, we affixed a custom-designed head-post to the skull using Metabond. Throughout all of the procedures, we monitored anaesthetic depth, reflexes, applied eye lubrication and administered analgesia as described above.
InsCtx pharmacological inhibition
For pharmacological inhibition of the InsCtx during the interoceptive detection tasks described below, we used Oxtr-cre mice. We first performed brainstem injections of retro-AAV-EF1a-DIO-ChRmine-mScarlet, as described above, to express ChRmine in NG-OxtR+ neurons. During the same surgery, we bilaterally implanted guide cannulas (26G, 0.48 mm diameter, M3.5; RWD Life Science, 62003) above the InsCtx and inserted dummy cannulas (0.3 mm diameter, M3.5; RWD Life Science, 6210238MM). The guide cannulas were 2.5 mm long, and the dummy cannulas extended 0.2 mm beyond the guides, such that the dummy cannula tips reached a dorsoventral depth of −2.7 mm. We positioned the cannula at AP: 0 mm relative to bregma, DV: −2.7 mm and ML: approximately ±4 mm (0.25 mm medial from the lateral edge of the skull). For later pharmacological infusions, we used 4-mm infusion cannulas (0.3-mm diameter, M3.5; RWD Life Science 62203), which extended 1.5 mm beyond the tips of the 2.5-mm guide cannulas, resulting in a final infusion depth of 4 mm below the skull surface. We secured the guide cannulas to the skull using Metabond (C&B Metabond Quick Adhesive Cement System, S380, Parkell) and affixed a custom-designed head-post to the skull using the same adhesive cement. Throughout surgery, we monitored anaesthetic depth and reflexes, applied ophthalmic lubricant and administered analgesia as described above.
InsCtx pharmacological inhibition was performed by infusing mice with 0.3 µl of muscimol and baclofen solution (0.05 µg µl−1 and 0.02 µg µl−1, respectively) or saline at a rate of 0.1 µl min−1 to both hemispheres. Then, 1 min after each infusion, the injector cannula was replaced with the dummy cannula. Behavioural testing started 15 min later, following previously established protocols53,62.
Vagal electrophysiological recordings
To enable optogenetic stimulation of NG-OxtR+ neurons, we performed stereotaxic surgery as described above to induce ChRmine expression. We conducted vagal electrophysiology approximately 3 months after viral injection, aligning with the maximal expression time used in the behavioural experiments.
Vagal electrophysiology was conducted as previously described63. In brief, we induced anaesthesia in a chamber using 3% isoflurane and maintained it at 1–1.5% through a nose cone. We made a small midline incision at the ventral neck to expose the cervical vagus nerve. Using a mouse retractor set (InterFocus 18200-20), we gently separated the salivary glands and masseter muscles laterally, and the oesophagus medially, to reveal the carotid artery and adjacent vagus nerve. After carefully lifting the nerve with a spinal cord hook (FST, 10162-12) and clearing the surrounding connective tissue with fine forceps, we proceeded with electrode placement. Before surgery, we had soldered two platinum–iridium wires (WPI, PTT0110), fashioned into hook-shaped cuff electrodes, to thicker platinum-iridium leads (WPI, PPT0502). This assembly was connected to a headstage (A-M Systems Connector Pins, 521200 and 521000) and mounted onto a right-handed micromanipulator (WPI, M3301R) for stable positioning. Once the setup was in place, we gently positioned the cuff electrodes around the exposed vagus nerve.
We amplified neural signals 1,000× and band-pass filtered between 300 Hz and 5 kHz using a differential amplifier (A-M Systems Microelectrode Amplifier). We then digitized the signals with a USB-6001 DAQ (National Instruments) and acquired them in real-time using MATLAB Analog Input Recorder app (MathWorks).
After stable baseline recording, we delivered optogenetic stimulation using a 630 nm LED (UHP-F-5-630 with LLG-5, Prizmatix) which emitted 102 mW mm−2 light pulses at 15 Hz (each pulse 6.67 ms) for 4 s to the exposed neck overlaying the nerve. We manually controlled the stimulation using an Arduino Uno. For small intestine distension, we inserted a 20G gavage needle through the pyloric sphincter into the proximal small intestine and secured it in place with a suture. We clamped the distal small intestine with a bulldog clamp to prevent fluid outflow. To induce distension, we infused saline though the gavage needle until the outer intestinal diameter increased approximately 1.5-fold relative to its pre-distention diameter, corresponding to the range of intestinal distension observed following refeeding (see below).
At the end of the experiment, we euthanized mice using sodium pentobarbital (200 mg ml−1, 0.1 ml per 10 g body weight, intraperitoneal), and collected the NG and brains for histological analysis, as described below.
Vagal electrophysiological data analysis
We analysed data using custom MATLAB scripts. First, we band-pass filtered the signals between 80–2,000 Hz. We identified and removed breathing and cardiac artifacts based on their characteristic amplitude and frequency profiles. We then detected spikes by applying an amplitude threshold to the filtered signal and used 200 ms bins to calculate spike rates.
Measurement of intestinal diameter after fasting and refeeding
To determine the extent of small intestine distension induced by food consumption, we divided mice into two groups (n = 4 mice per group). Before measurements, we habituated mice three times to an overnight fast, followed by free access to food. After habituation, we fasted both groups overnight. We euthanized mice in the fasted group at the end of the overnight fast. We provided mice in the refed group with ad libitum access to food for 2 h after the overnight fast and then euthanized them. Immediately after euthanasia, we exposed the gastrointestinal tract and used callipers to measure the outer diameter at the widest point of the small intestine.
ECG measurements
We performed stereotaxic viral injections to express ChRmine in NG-OxtR+ neurons, as described above. To ensure that mice could perceive and report the optogenetic stimulation, we selected animals that had previously completed both the interoceptive detection VagalOpto→NoReward task and VagalOpto→Reward task (see below). We then recorded electrocardiogram (ECG) signals under anaesthesia while optogenetically stimulating NG-OxtR+ neurons using the same protocol used in the awake behavioural task (for example, 4 s light pulses at 15 Hz; 102 mW mm−2, each pulse 6.67 ms).
Before recording, we connected three 27G stainless steel needles to platinum-iridium leads (WPI, PPT0502) and connected them to a differential amplifier headstage (A-M Systems Microelectrode Amplifier). We induced anaesthesia with 3% isoflurane in an induction chamber and maintained it at 1–1.5% through a nose cone. Once the mice were fully anaesthetized, we attached the needles to the paws: two for signal acquisition and one for ground. We sampled ECG signals at 2 kHz and applied a 200 Hz low-pass filter during acquisition.
Nodose ganglia two-photon imaging
To image NG-OxtR+ neuronal activity, we used Oxtr-cre mice and injected retro-AAV-hSyn-GCaMP7f (104488, Addgene) into the NTS to drive GCaMP7f expression with no genetic specificity in NG neurons. To specifically identify retrogradely labelled NG-OxtR+ neurons, we also injected Cre-dependent retro-AAV-CAG-FLEX-tdTomato (28306, Addgene) into the NTS. This approach allowed us to image calcium dynamics across the NG population while distinguishing the OxtR+ subset based on tdTomato fluorescence.
Then, 4–6 weeks after the injections, we performed a two-photon calcium imaging experiment during intestinal balloon inflation to evoke mechanosensory responses. We anaesthetized mice with an intraperitoneal injection of pentobarbital (100 mg per kg). After confirming full anaesthesia, we removed fur from the ventral neck and upper abdomen. We made a small incision above the anatomical location of the stomach, gently retracted the overlying tissue and identified the stomach and proximal duodenum. We carefully externalized the duodenum, made a small incision in the intestinal wall and inserted a latex balloon (Braintree Scientific, 73-3478) that we had pre-attached to a plastic gavage needle (Instech, ITH-FTP-22-25-50). We secured the balloon with sutures, and intermittently irrigated the exposed tissues with sterile saline. For some mice, we used two adjacent balloons in the small intestine, inflated separately during the experiment. After balloon placement, we returned the intestine to the abdominal cavity and placed saline soaked gauze above, to avoid tissue dehydration. After the abdominal procedure, we made a midline incision at the ventral neck to expose the cervical vagus nerve. Using a mouse retractor set (InterFocus, 18200-20), we gently separated the salivary glands and masseter muscles laterally and the oesophagus medially to expose the carotid artery and adjacent vagus nerve. We carefully lifted the nerve with a spinal cord hook (FST, 10162-12) and removed the surrounding connective tissue using fine forceps. We exposed the NG and positioned it on a microscope slide, covered with a coverslip for stabilization. We filled both the neck cavity and the space between the slide and the coverslip with sterile saline to maintain hydration.
We placed the mouse onto a heating pad to maintain body temperature throughout the surgery and imaging, and positioned the two-photon objective vertically above the exposed nodose ganglion. We connected the balloon to a tube filled with water and attached it to a syringe mounted on a programmable syringe pump (KFTechnology, NE-1000). Intestinal mechanostimulation was achieved by volume-controlled inflation of the implanted gastric balloons. Each stimulus lasted 50 s, including 10 s of inflation and 10 s of deflation.
We imaged NG activity using a two-photon microscope (Thorlabs Bergamo), with 920 nm excitation (Toptica FFUltra 920). We also collected red fluorescence emitted with 920 nm excitation to identify NG-OxtR+ neurons expressing tdTomato. Imaging was performed at a frame rate of 15 Hz.
Direct ablation of NG-OxtR+ and NG-OxtR− neurons
For specific ablation of NG-OxtR+ neurons using caspase 3, we directly injected AAV9-flex-taCasp3-TEVp (plasmid 45580 from Addgene, produced by the Hebrew University ELSC Virus Core Facility) bilaterally into the NG. In brief, we exposed the NG as described above, and used a pulled-glass pipette to inject the viral solution directly into the ganglion. To aid visualization and confirm proper targeting, we mixed the virus with Fast Green dye (Sigma-Aldrich) before injection. These surgeries were performed in two separate procedures, aimed to improve recovery and overall survival rates. The first surgery included the injection of retro-AAV-EF1a-DIO-ChRmine-mScarlet into the NTS of Oxtr-cre mice and headpost implementation as described above. We also directly injected of AAV9-flex-taCasp3-TEVp into the right NG. After sufficient recovery (around 3–4 weeks after the first surgery), we performed the second surgery, where we injected AAV9-flex-taCasp3-TEVp into the left NG.
InsCtx fibre photometry recordings with NG-OxtR+ neuron ablation
For fibre photometry recordings of InsCtx population activity, we injected AAV8-hSyn-GCaMP7f (104488-AAV8, Addgene) into the left InsCtx (AP: 0 mm relative to bregma; ML: approximately −4 mm, 0.25 mm medial to the lateral edge of the skull; DV: −4 to −3.8 mm). We implanted an optic fibre (400 µm core, 0.50 NA, 1.25 mm ceramic ferrule; R-FOC-BL400C-50NA, RWD Life Science) above the injection site at a depth of −3.3 mm. In all mice, we also injected retro-AAV-EF1a-DIO-ChRmine-mScarlet into the NTS, as described above, to express ChRmine in NG-OxtR+ neurons.
For recordings without NG-OxtR+ ablation, we allowed mice to recover and for sufficient viral expression before recording InsCtx activity during optogenetic activation of NG-OxtR+ neurons. Before recordings, we habituated mice to red-light illumination.
Each recording session consisted of eight trials of optogenetic stimulation. In each trial, we stimulated NG-OxtR+ neurons at 15 Hz for 4 s, using the same stimulation parameters as in the behavioural experiments described above. As a control for responses to red-light illumination itself, we performed an additional recording session in which we delivered the same light stimulation but directed the light away from the mouse’s neck, thereby preventing optogenetic stimulation of NG-OxtR+ neurons.
To examine InsCtx responses to the optogenetic stimulation following NG-OxtR+ ablation, we used two experimental approaches. In a subset of mice, we first performed photometry recordings with intact NG-OxtR+ neurons and subsequently performed bilateral NG-OxtR+ ablation using AAV9-flex-taCasp3-TEVp, as described above, allowing us to record from the same mice before and after ablation. In a separate subset of mice, during one surgical procedure, we injected retro-ChRmine into the NTS and GCaMP7f into the InsCtx, implanted the optical fibre above the InsCtx, and performed the first NG injection of AAV9-flex-taCasp3-TEVp. After recovery, we performed the second injection of AAV9-flex-taCasp3-TEVp to the contralateral NG. Once mice were fully recovered from both procedures, we performed InsCtx photometry recordings using the same optogenetic stimulation paradigm.
After completion of the experiments, we collected the NG and brain tissue for histological analysis as described below. We assessed the extent of NG-OxtR+ neuron ablation and verified GCaMP7f expression and optical fibre placement in the InsCtx.
We analysed InsCtx photometry responses across the three experimental conditions by aligning activity to the onset of optogenetic stimulation or red-light delivery. We low-pass filtered the photometry signal, corrected for photobleaching using a double-exponential fit, and z-scored each trial relative to the 5 s prestimulation baseline. For each mouse, we quantified the response as the mean z-scored activity during the 0 s to 4 s stimulation period and compared responses across conditions.
Aortic depressor nerve transection
We anaesthetized mice with 3% isoflurane for induction and maintained anaesthesia at 1.5% isoflurane throughout the surgical procedure. We placed mice in a supine position and exposed the cervical region as described above. We identified the vagus nerve and carotid artery and moved the carotid artery medially to facilitate visualization of the aortic depressor nerve64,65. We visually identified the aortic depressor nerve as a thin nerve running between the vagus nerve and carotid artery and transected it using fine surgical scissors. We then sutured the surgical incision and proceeded with brainstem injections as described above. We verified successful NG infection and aortic depressor nerve denervation post-mortem by observing labelling of neurons in the NG but without labelled axons in the aortic arch.
Behavioural experiments
Initial habituation
After a minimum of 2 weeks of post-surgical recovery, we food-restricted mice (or in a subset of experiments, water-restricted, as noted below) to 80–85% of their free-feeding body weight. Before behavioural training, we habituated animals to head-fixation by gradually increasing head-fixation durations from 10 min to 1 h per session over the course of 2–3 days. If we observed any signs of stress, we immediately removed the animal and conducted additional head-fixation sessions until the animal showed no visible signs of stress. During the final head-fixation session, we provided sugar-water (600 mM sucrose solution, 4072.1000 Mallinckrodt Baker, Avantor) through a lickspout to train the mice to associate licking with a sugar-water reward (~5 μl per drop). We tracked licking behaviour using a custom capacitance-sensing lickspout based on an MPR121 capacitance sensor. We performed all behavioural training using MonkeyLogic266,67 (https://monkeylogic.nimh.nih.gov/).
To habituate animals to the red light used during optogenetic activation, we directed a separate masking red light (Thorlabs, M625F2, 625 nm LED; ~28 mW mm−2, 10 Hz, 20% duty cycle) toward the mice. This light visually masked the optogenetic stimulation light throughout the experiment, turning on at the beginning of every trial and switching off during the ITI. After several days of training with the masking red light, we lightly anaesthetized mice using isoflurane (as described above), and removed fur from the ventral neck using hair-removal cream (Veet). We removed the fur to ensure efficient penetration of light through the skin and underlying tissues for non-invasive optogenetic activation of vagal neurons. We verified that the light guide delivering red LED light for optogenetics (5 mm diameter light guide, LLG-5; LED, UHP-F-5-630, Prizmatix) did not heat up or damage the skin in the stimulation area. We also habituated mice to the presence of two light guides positioned beneath and lateral to the neck, gently touching the skin. In all of the experiments using optogenetic stimulation as a conditioning cue, we also habituated animals to a custom neck cover made of opaque fabric that enclosed both the neck and light guides, further minimizing red-light leakage outside the stimulation area (for example, to the eyes).
Sucrose consumption test
After habituation, we introduced an olfactory cue (isoamyl acetate, W205508, Sigma-Aldrich) using a custom-built olfactometer. We diluted the odour to 10% (volume per volume) in mineral oil solution and applied an additional 10% air dilution in the olfactometer, resulting in an overall 1% concentration. We first trained mice to associate the 2 s odour cue with the unconditional delivery of a sugar-water drop (Pavlovian reward, ~5 μl). Once they consistently licked in anticipation of the odour cue and completed at least 200 trials, we increased the number of sugar-water drops delivered in each trial. The odour cue signalled the start of the trial, during which 3 Pavlovian sugar-water drops were delivered at 1 s intervals. If the mouse continued licking after these initial three drops, it could receive up to seven additional operant drops—drops with delivery contingent upon licking. Mice performed 40 trials with a 30 s ITI. Once performance stabilized (typically after 2–5 sessions), we conducted a test session. During the test, in half of the trials (randomly selected), licks for drops number 3 to 10 triggered both sugar-water delivery and a 1 s non-invasive optogenetic activation of NG-OxtR+ neurons (15 Hz, 10% duty cycle, 102 mW mm−2) delivered through two light guides aimed at the ventral neck to illuminate the NG. Importantly, trials with or without optogenetic stimulation were indistinguishable to the mice before the onset of stimulation, as both used the same odour cue and rewards, and both included the presence of the masking light.
We counted licks during the optogenetic window (defined as the earliest to last time of stimulation across trials) and compared them between optogenetic trials and control trials (without optogenetics) from the same session. We calculated a lick reduction index as:
We used the same procedure for both food-restricted and water-restricted cohorts.
In an initial subset of mice (4/14 ChRmine, 1/5 control), we used a slightly different protocol without an olfactory cue. Each trial began with 3 Pavlovian sugar-water drops, followed by up to 17 operant drops (that is, drops with delivery contingent upon licking) for a total of up to 20 drops per trial with a 30 s ITI. In half of the trials (randomly selected), a 1 s optogenetic stimulation was delivered during licking for the final 15 drops. We calculated the lick reduction index as described above. Although this protocol produced licking suppression in response to the optogenetic stimulation, mice were less consistent in recognizing trial onset without an olfactory cue, and the longer trial length reduced the number of completed trials. As a result, licking patterns were also less consistent across trials and across days. We therefore switched to the odour cued protocol described above for most mice.
Head-fixed conditioned taste preference
For conditioned-taste-preference experiments, we water restricted mice. After habituation, we trained mice to associate two distinct olfactory cues with two different non-caloric juice rewards. Ethyl butyrate odour (E15701, Sigma-Aldrich) signalled access to artificial apple juice, and isoamyl acetate odour (W205508, Sigma-Aldrich) signalled artificial grape juice. We presented each odour for 2 s at the start of each trial. We artificially sweetened both Juices (Yachin) with 25 mM acesulfame K (04054-25G, Sigma-Aldrich), and allowed mice to earn up to 15 drops (~5 µl per drop) per trial.
We delivered juices operantly: mice had to lick during a designated response window that began immediately after odour offset, with at least 1 s between drops. If a mouse paused licking, juice delivery stopped and resumed only if licking continued within the response window. We set the ITI to range from 30 s to 2 min, scaling it linearly with the number of drops received: more juice (that is, more licking) resulted in longer ITIs.
We randomly interleaved trials at a 1:1 ratio. Once the mice performed the task reliably, we used the final training session as a preference baseline and calculated the lick preference index:
We identified each mouse’s preferred juice based on this index. Over the next three sessions (one per day), we paired the preferred juice with non-invasive optogenetic activation of NG-OxtR+ neurons. These trials began with the same 2 s odour cue and the initial three drops delivered operantly. From the fourth drop onward, we paired each lick that triggered a juice drop with 1 s of optogenetic stimulation. We continued the other trial type (the less preferred juice) as before, without stimulation.
After each session, we calculated a new preference index. On the final day, we conducted a test session with no optogenetic stimulation and calculated a final preference index to assess changes in juice preference due to the previous stimulation pairing.
The VagalOpto→NoReward interoceptive detection task
After habituation, we trained mice to associate an olfactory cue (ethyl butyrate, E15701, Sigma-Aldrich) with the delivery of 1 drop of sugar-water reward. Each trial began with a 2 s odour presentation, followed by a 2 s licking window. If the mice licked during this window, it triggered the delivery of a sugar-water drop (~5 µl). Once the mice consistently performed the operant licking behaviour and completed at least 200 trials, we introduced a second trial type. In these new trials, we delivered a 4 s non-invasive optogenetic activation of NG-OxtR+ neurons before presenting the same odour cue. We directed the stimulation through two light guides aimed at the ventral neck (15 Hz, 10% duty cycle, 102 mW mm−2). Licking during the post-odour window in these trials was considered a false alarm (FA), and was not rewarded with sugar water (but was also not explicitly punished). Each interoceptive detection session included 180–200 trials, with optogenetic and non-optogenetic trials randomly interleaved at a 1:1 ratio. To prevent visual detection of the red light, we used masking red light in all trials (~28 mW mm−2, 10 Hz, 20% duty cycle) that started 5 s before odour presentation and lasted until the beginning of the ITI in all trials. As described above, we additionally used opaque fabric neck covers to limit red light leakage outside the stimulation area (for example, to the eyes).
We maintained the same light level for each individual mouse across all training and testing sessions. For most mice we used 102 mW mm−2, but to have a usable number of FAs, for some mice with higher sensitivity, we used a lower light intensity of optogenetic stimulation (range: 15–102 mW mm−2). We used the same frequency and duty cycle for all mice.
For experiments involving body temperature measurements, we selected animals that demonstrated high performance in the interoceptive detection VagalOpto→NoReward task. On the day of temperature assessment, we ran mice in the same behavioural paradigm (~180 trials with 50% optogenetic stimulation trials), and measured body temperature using a non-contact infrared thermometer (Beurer, FT90) aimed at a part of the mouse’s back from which we removed hair to expose the skin. To ensure accuracy, we positioned the device at a 2–4 cm distance from the mouse’s dorsal surface, avoiding direct skin contact. We took temperature measurements during brief pauses between trials (during the ITI), minimizing disturbance to behaviour.
Training with lower-frequency optogenetic stimulation
To assess learning dynamics across days in the VagalOpto→NoReward task, we trained naive mice using lower-frequency NG-OxtR+ optogenetic stimulation. We trained mice on the task, as described above, but used 1 Hz instead of 15 Hz stimulation. All of the other stimulus parameters remained the same. We selected 1 Hz because this stimulation frequency was near or below the behavioural detection threshold observed in the psychophysics experiments described above, enabling us to track the emergence of interoceptive detection across training. We trained mice with 1 Hz stimulation over multiple consecutive daily sessions. We quantified behavioural performance during learning of the 1 Hz stimulation across training days using hit rate, FA rate and d′. We calculated the hit rate from no-opto trials and the FA rate from 1 Hz opto trials, and calculated d′ from the corresponding hit and FA rates using the Hautus correction.
The VagalOpto→NoReward temporal delay test
To determine the temporal window during which mice could detect optogenetic activation of NG-OxtR+ neurons, we first trained mice to proficiency in the interoceptive detection VagalOpto→NoReward task, as described above. Notably, in this task variant, there is no delay between optogenetic stimulation offset and odour cue onset. Once mice reached stable performance, we performed a delay test session in which we varied the interval between the end of the optogenetic stimulation and the onset of the odour cue. We kept the optogenetic stimulation parameters identical across trials (4 s, 15 Hz, 10% duty cycle, 102 mW mm−2) and randomly varied the delay between stimulation offset and odour onset between 0, 2, 4, 6 and 8 s. We randomly interleaved the different delay conditions at equal proportions. To maintain task engagement and provide sufficient opportunities to obtain rewards, 50% of trials consisted of NoOpto→Reward trials.
We assessed behavioural performance across delay conditions using hit rate, FA rate and d′. We calculated the hit rate from no-opto trials and the FA rate separately for opto trials with 0, 2, 4, 6 or 8 s delays. For each delay condition, we calculated d′ from the corresponding FA rate and the hit rate measured in no-opto trials, using the Hautus correction to avoid infinite values at extreme response rates.
The VagalOpto→NoReward optogenetic stimulus duration test
To determine the minimal duration of NG-OxtR+ neuron activation necessary for robust interoceptive detection, we first trained mice to proficiency in the VagalOpto→NoReward task, as described above, with a 4 s optogenetic stimulus. Once mice reached stable performance, we performed a stimulus duration test session. During this session, we randomly varied the duration of the optogenetic stimulus while maintaining the same stimulus frequency and duty cycle (15 Hz, 10% duty cycle) and presented the odour cue immediately after stimulation offset. Optogenetic stimuli consisted of either 60 pulses (4 s), 15 pulses (1 s), 4 pulses (~0.26 s) or a single pulse. We randomly interleaved the four stimulus durations at equal proportions. To maintain task engagement and provide sufficient opportunities to obtain rewards, 50% of trials consisted of no-opto trials.
We assessed behavioural performance across stimulation conditions using hit rate, FA rate and d′. We calculated the hit rate from no-opto trials and FA rate separately for opto trials with 60 pulses (4 s, 15 Hz), 15 pulses (1 s, 15 Hz), 4 pulses (15 Hz) or a single pulse. For each stimulation duration, we calculated d′ from the corresponding FA rate and the hit rate measured in no-opto trials, using the Hautus correction to avoid infinite values at extreme response rates.
Odour-cue generalization test
To determine whether mice could generalize interoceptive detection across different olfactory cues, we first trained mice to proficiency in the VagalOpto→NoReward task using the original trained odour, as described above. On the test day, mice initially performed 20 trials of the task using the trained odour. We then switched, without previous exposure or training, to a novel odour cue and continued the same task for an additional 180 trials. All other task parameters remained unchanged.
We assessed behavioural performance after the odour change by comparing the overall hit and FA rates between the previously learned and new odour conditions. For each odour, we pooled trials with and without vagal-opto stimulation. We calculated hit rate and FA rate, and calculated d′ using the Hautus correction to avoid infinite values at extreme response rates.
Reversing VagalOpto task contingencies across sessions
Once mice became proficient in the interoceptive detection VagalOpto→NoReward task (that is, hit rate > 75% and FA rate < 25%), we transitioned them to the VagalOpto→Reward version of the task. In this version, we introduced a new olfactory cue (isoamyl acetate, W205508, Sigma-Aldrich) that signalled the availability of a sugar-water reward, but only when preceded by a 4 s non-invasive optogenetic activation of NG-OxtR+ neurons (15 Hz; 10% duty cycle; typically 102 mW mm−2; range: 15–102 mW mm−2; as described above). We began by running 10–20 training trials in which we consistently paired the optogenetic stimulation with the odour cue and delivered a Pavlovian sugar-water reward. We then randomly interleaved two trial types: (1) opto-odour-reward trials; and (2) odour-only trials with no reward, regardless of licking behaviour. Once the mice reliably licked only in response to trials with previous stimulation, we transitioned to a fully operant version of the task. In this version, we delivered a sugar-water reward only if they licked during the response window of trials where the odour cue was preceded by the optogenetic stimulation. FAs were not explicitly punished.
Reversing VagalOpto task contingencies within session
To assess how mice responded to an unexpected reversal of the learned interoceptive contingency, we first trained mice to proficiency in the VagalOpto→NoReward task, as described above. On the reversal test day, mice initially completed 20 trials under the previously learned VagalOpto→NoReward contingency. We then reversed the contingency within the same session, without previous training or explicit indication of the change, and continued the session under the VagalOpto→Reward contingency. After the reversal, optogenetic stimulation of NG-OxtR+ neurons preceding the odour cue signalled reward availability, whereas odour-only trials were not rewarded. In contrast to the training VagalOpto→Reward paradigm described above, we did not provide Pavlovian pairing trials or any other training on the reversed contingency before the switch. All other stimulation and behavioural parameters remained as described above.
We assessed behavioural performance before and after contingency reversal by comparing overall hit and FA rates. We classified responses as hits, misses, CRs or FAs according to the active stimulus–reward contingency. We pooled trials within the original or reversal phases and calculated hit rate, FA rate and d′ using the Hautus correction.
Interoceptive psychophysics
Once mice became proficient in the interoceptive detection VagalOpto→NoReward task, we performed 1–2 days of the psychophysics task. We began each session with 20 trials that followed the same structure as the VagalOpto→NoReward paradigm described above. After this initial phase, we ran approximately 280 additional trials. In half of these, they received a Go cue (odour only), allowing them to earn a sugar-water reward if they licked during the appropriate time window, maintaining task engagement with 50% rewards. In the remaining trials, we paired non-invasive optogenetic activation of NG-OxtR+ neurons with the odour cue. We used one of seven frequencies (0.5, 1, 3, 5, 7.5, 10 and 15 Hz; typically 102 mW mm−2; range: 15–102 mW mm−2; as described above, 10% duty cycle), all presented at equal probability. Licking during the 2 s window following odour presentation in these trials resulted in no reward and counted as a FA. We randomly interleaved all eight trial types throughout the session. Before the psychophysics day, the mice were trained on the VagalOpto→NoReward task at a 15 Hz optogenetic stimulation frequency to achieve the performance criterion. We did not train mice further on the psychophysics task, and only used it 1–2 times to probe their detection threshold.
Behavioural tasks with InsCtx optogenetic inhibition
We expressed the inhibitory opsin stGtACR2 under the CaMKIIa promotor and used implanted optic fibres to deliver continues blue light for 5 s (~10 mW), selectively inhibiting InsCtx neurons. We specifically chose an optogenetic protein that responds to blue light rather than red light to avoid interference with the red light used for optogenetic vagal activation. All of the mice underwent several behavioural tasks as detailed below.
Interoceptive detection VagalOpto→NoReward and VagalOpto→Reward with InsCtx inhibition
Mice were initially trained to perform the VagalOpto→NoReward task before introducing InsCtx inhibition. In the inhibition experiment, optogenetic inhibition began 5 s before odour onset and terminated immediately before odour presentation. This protocol was applied to both trial types (odour-only and vagal-opto stimulation trials). To ensure balanced sampling, inhibition was included in 25% of the trials for each trial type, resulting in around 50 inhibition trials and around 150 non-inhibition trials per condition within a session. Later, the same mice were trained to perform the VagalOpto→Reward version of the task (as described above), and a similar procedure was performed for InsCtx inhibition.
A similar protocol was used for the one-frequency detection VagalOpto→NoReward task with medium, low and very low vagal-opto frequencies (see below). Mice were initially trained to perform the VagalOpto→NoReward task at 15 Hz and were then tested with the chosen frequency.
Partial psychophysics with InsCtx inhibition
For psychophysics with InsCtx inhibition, we selected three different stimulation frequencies for each mouse: medium, low and very low. These frequencies were typically 5 Hz, 3 Hz and 1 Hz, respectively. To avoid floor or celling effects, if a mouse had below 5% FAs at 5 Hz we chose frequencies of 3, 1 and 0.5 Hz. Conversely, if a mouse had above 95% FAs at 1 Hz, we chose frequencies of 7.5, 5 and 3 Hz. Note that we used three frequencies instead of the full range of seven frequencies used for psychophysics task without InsCtx inhibition, to ensure a sufficient number of repetitions for each trial type with/without InsCtx inhibition.
In this task, 50% of trials were Go cue trials (odour only) without vagal optogenetic stimulation, allowing the mice to obtain a sugar-water reward by licking during the response window. In the remaining 50% of trials, we delivered vagal optogenetic stimulation at one of the three selected frequencies before the odour cue.
We randomly interleaved bilateral InsCtx inhibition across all trial types. In vagal stimulation trials, we initiated InsCtx inhibition 1 s before the onset of vagal optogenetic stimulation, maintained it throughout the 4 s stimulation period and ended it immediately before odour presentation. We inhibited InsCtx activity in 50% of vagal stimulation trials, with a minimum of 50 inhibition trials per stimulation frequency to achieve enough trials for quantitative analysis. In odour-only rewarded trials without vagal-opto stimulation (a total of 300 trials), we inhibited InsCtx activity 5 s before odour onset. We inhibited the InsCtx in 60 trials so that we did not have too many trials with InsCtx inhibition, which may reduce the fraction of trials in which mice lick to receive a reward.
Odour Go/No-Go control with InsCtx inhibition
We trained mice to associate two distinct olfactory cues (isoamyl acetate, W205508, Sigma-Aldrich; and Limonene, W263303, Sigma-Aldrich), which they had not previously encountered. One odour cued the availability of a sugar-water reward, while the other signalled ‘no outcome’ (that is, no reward). This task did not include vagal-opto stimulation. After several training sessions, once mice reliably discriminated between the two odours, we performed the inhibition experiments. InsCtx inhibition began 5 s before odour onset and terminated immediately before odour presentation. We randomly interleaved inhibition in 25% of the trials for each odour type, resulting in approximately 50 trials with InsCtx inhibition and 150 trials without inhibition per condition.
Behavioural tasks with InsCtx pharmacological inhibition
Mice were implanted with bilateral guide cannulas to allow injection of drugs directly into the InsCtx as described above. Pharmacological inhibition was performed by infusing mice with 0.3 µl of muscimol and baclofen solution (0.05 µg µl−1 and 0.02 µg µl−1, respectively) or saline at a rate of 0.1 µl min−1 in both hemispheres. Then, 1 min after each infusion, the injector cannula was replaced with the dummy cannula. Behavioural testing started 15 min later, according to previously established protocols53,62.
To assess the effect of pharmacological InsCtx inhibition on interoceptive detection, we first trained mice to proficiency in the VagalOpto→NoReward task, as described above. Before pharmacological testing, we habituated mice to manipulation of the dummy injector and implanted cannulas to minimize the associated stress during drug administration.
Each mouse underwent both a pharmacological inhibition session and a control session on different days. On the inhibition day, we bilaterally infused muscimol and baclofen into the InsCtx as described above. On the control day, we followed the same procedure but bilaterally infused saline instead. After infusion, mice completed ten no-opto trials to obtain sugar-water rewards and engage in the task. Mice then completed 20 or 40 trials of the standard one-frequency VagalOpto→NoReward task, followed by 180 trials of a partial psychophysics test using three vagal optogenetic stimulation frequencies (1, 3 and 5 Hz). Half of the trials consisted of no-opto trials, whereas the remaining 50% consisted of vagal optogenetic stimulation trials, with all trial types randomly interleaved throughout the session. We used the same trial structure and stimulation parameters on the muscimol and baclofen and saline control days.
For verification of injection sites, after completion of all experiments, we bilaterally injected 0.3 µl of 0.1% (w/v) cholera toxin subunit B conjugated to Alexa Fluor 555 (CTB-55; Thermo Fisher Scientific, C34776) through the implanted cannulas. After the injections, we transcranially perfused the mice and collected and processed the brain and NG tissues as described below.
Two-photon imaging of the InsCtx across tasks
Two-photon imaging was performed using a resonant-scanning two-photon microscope (Thorlabs Bergamo) using ThorImage and ThorSync software (v.4.3 for both) at 15 frames per second, through a ×10/0.5 NA air objective (TL10X-2P, Thorlabs) at 1.5× zoom, yielding a 906 × 906 µm field of view (512 × 512 pixels). We used a 920 nm fixed-wavelength laser for GCaMP imaging (Toptica FemtoFiber Ultra 920). All imaged fields of view were at a depth of 90–200 mm below the pial surface, with laser power at 920 nm of 15–80 mW at the front aperture of the objective (power at the sample was likely substantially less due to partial transmission through the microprism). Mice were imaged in consecutive 30 min runs. Imaging depth was adjusted in between runs (every 30 min) to account for slow drift in the z plane (<7 µm).
Both the masking red light and the vagal optogenetic activation were performed between imaging frames. To control light on/off timing, we used an Arduino Uno, which switched states in response to commands sent through the MonkeyLogic2 program.
We note that the anatomical parcellation of the mouse InsCtx into anterior/mid/posterior divisions is quite inconsistent across the literature. The part of the InsCtx that we imaged is sometimes referred to as ‘mid’, and sometimes as ‘posterior’. We refer to our imaging location as the mid-posterior InsCtx as a compromise between these different parcellations. Across multiple analyses, we did not find any clear functional–anatomical organization within mouse or across mice (Extended Data Figs. 3m,n, 4d,e and 5f,g). We therefore did not find a clear distinction between the parts of the mid and posterior insula we imaged.
Histology
Brain tissue collection and processing
For most experiments, we euthanized mice through intraperitoneal injection of sodium pentobarbital (200 mg per kg; 0.1 ml per 10 g body weight), followed by intracardial perfusion. In brief, we began by making a small incision in the right atrium and inserted a needle into the left ventricle. We flushed the circulatory system with PBS to clear the blood, then perfused with 10% formalin to fix the tissues. After perfusion, we removed the heads and post-fixed them in 10% formalin for 24–48 h before extracting the NG (as described below) and the brain.
Before slicing, we cryoprotected brains in 30% sucrose for 24–48 h until the tissue sank. We then sectioned the brains coronally at 50 μm using a sliding microtome (Leica), mounted selected sections onto glass slides and applied DAPI-containing mounting medium (VECTASHIELD Antifade Mounting Medium with DAPI H-1200-10, Vector Laboratories). We placed coverslips and imaged the slides using a slide scanner (VS120-S6-W, Virtual Slide Microscope System, Olympus) at ×10 magnification and viewed using OlyVIA v.4.1 software (Olympus).
Nodose ganglia collection and processing
As described above, we euthanized mice and, in most cases, perfused them to ensure thorough fixation of the head. After fixation, we positioned the head to expose the ventral neck and made a midline incision in the skin using scissors. We carefully removed the salivary glands and excised the digastric muscle to expose the glossopharyngeal nerve, which we used as an anatomical landmark for locating the vagus nerve. We then cleared additional muscle and connective tissue to access the carotid sheath, which encloses the carotid artery, vagus nerve and associated connective tissue. We gently separated the vagus nerve from the artery and traced rostrally toward the base of the skull. This dissection led us to the jugular foramen, where we identified the NG as a small bulb-like structure. Using fine forceps, we carefully isolated and freed the NG. After extraction, we mounted the ganglia onto glass slides, applied mounting medium (VECTASHIELD Mounting Medium, 101098-042, Vector Laboratories), and placed coverslips. We then imaged the slides using a fluorescence microscope (AxioLab, Zeiss).
Intestine collection and processing
To visualize axonal terminals of NG-OxtR+ neurons in the intestine, we injected retrograde AAV encoding ChRmine-mScarlet into the brainstem of Oxtr-cre mice, as described above. After allowing 2–3 months of expression, we euthanized the mice with sodium pentobarbital (200 mg per kg; 0.1 ml per 10 g body weight) and transcardially perfused them to ensure thorough fixation. We carefully removed the entire intestine while minimizing disruption to surrounding connective tissues and placed the tissue in 10% formalin for approximately 1 week of post-fixation. After fixation, we dissected the intestine and cryopreserved it in 30% sucrose solution for at least 48 h. We then sectioned the tissue at a thickness of 100 μm using a sliding microtome (Leica), mounted sections onto glass slides and applied mounting medium (VECTASHIELD Mounting Medium, 101098-042, Vector Laboratories) before placing coverslips. We imaged the sections using a two-photon microscope (Thorlabs Bergamo), with excitation at 920 nm for green tissue autofluorescence (Toptica FemtoFiber Ultra 920) and 1,050 nm for mScarlet fluorescence (Toptica FemtoFiber Ultra 1050). We acquired Images across multiple z planes and processed them using ImageJ to generate maximum-intensity projections.
Aortic arch collection and processing
We collected aortic arches using a dissection procedure adapted from a previous study68. In brief, we euthanized mice with sodium pentobarbital (200 mg ml−1; 0.1 ml per 10 g body weight, intraperitoneally) and placed them into a supine position under a stereomicroscope. We opened the thoracic cavity and removed the rib cage to expose the heart and major blood vessels. We carefully removed the surrounding connective and adipose tissues to expose the aortic arch and its major branches. We excised the aortic arch and flushed the vessel with saline to remove residual blood. We then fixed the tissue in 10% formalin for approximately 1–2 h. After fixation, we mounted the aortic arch on a microscope slide in mounting medium (VECTASHIELD Mounting Medium, 101098-042, Vector Laboratories), covered it with a coverslip and imaged the whole-mounted tissue by fluorescence microscope (AxioLab, Zeiss).
Analysis of stGtACR2-FusionRed expression in the InsCtx
To assess stGtACR2-FusionRed expression in the InsCtx, coronal brain sections were imaged from all of the mice included in the optogenetic inhibition experiments, as described above. For each mouse, all sections in which the tip of the optic fibre tract was visible were included in the analysis. Images were analysed using ImageJ. The boundaries of the InsCtx were manually delineated in each section. The membrane localization of stGtACR2-FusionRed created large patches with tissue fluorescence in which individual somata were not clearly separated. Therefore, to obtain an estimation of the fraction of cells expressing stGtACR2-FusionRed, we examined the areas of tissue fluorescence and manually outlined them. We then quantified the percentage of stGtACR2-FusionRed fluorescence areas out of the total InsCtx area per mouse across all examined tissue sections. Group data are presented as the mean ± s.e.m. across mice.
Statistical analysis
Throughout this study, we used an automated test-selection procedure to ensure that appropriate statistical methods were applied based on data characteristics. For paired comparisons (for example, comparing the same animals across conditions), we first assessed normality of the differences using the Shapiro–Wilk test (α = 0.05). When differences were normally distributed without outliers, we applied paired t-tests; otherwise, we used Wilcoxon signed-rank tests. For independent comparisons between groups, normality was assessed separately in each group using the Shapiro–Wilk test, and variance homogeneity was tested using Levene’s test. When both groups were normally distributed, we selected independent t-tests (for equal variances) or Welch’s t-tests (for unequal variances). When one or both groups deviated from normality, we applied the nonparametric Mann–Whitney U-test. Importantly, when multiple related comparisons were performed within the same analysis (for example, comparing different percentile thresholds between conditions), if any single comparison in that family failed normality assumptions, we applied the nonparametric test to all comparisons within that family to ensure consistency and fairness. For all comparisons, we computed effect sizes (Cohen’s d for parametric tests, rank-biserial correlation for nonparametric tests) and 95% confidence intervals for mean differences using bootstrap resampling (10,000 iterations). Statistical significance was assessed at α = 0.05, with FDR correction applied when multiple comparisons were performed within the same family of tests.
Data analysis
Two-photon imaging data preprocessing
Two-photon imaging data were first processed using Suite2p69 for image registration. Data were then denoised using DeepInterpolation70. The denoised data were then used for region of interest (ROI) extraction using Suite2p. Extracted ROI masks were then manually inspected to ensure typical soma morphology, appropriate size and normal activity patterns. Neuropil contamination was corrected by subtracting 70% of the surrounding neuropil signal from each cellular fluorescence trace (that is, multiplying neuropil values by 0.7), followed by addition of the median neuropil value to preserve baseline fluorescence levels. Motion artifacts were removed using custom-written code in Python, which is based on artifact removal procedures in human EEG recordings71,72. This method involves a multistep approach including z-score normalization for each 30 min imaging run, high-pass filtering to eliminate low-frequency drift, followed by principal component analysis and independent component analysis to identify and exclude components significantly correlated with x–y motion-displacement traces (from the Suite2p registration output). The cleaned signals were then inverse-transformed to recover baseline-corrected fluorescence values in the original scale. Fluorescence signals were converted to relative fluorescence changes (ΔF/F) using a running baseline approach, where the tenth percentile fluorescence value within a 4.5 min sliding window served as the baseline fluorescence for each neuron. This method provided robust normalization against slow baseline drift while preserving rapid calcium transients. Synchronization with behavioural parameters (for example, odour and optogenetic stimulation onset/offset, licking) was achieved by aligning imaging frames with stimulus timing codes recorded by ThorSync (Thorlabs) at 6 kHz, with behavioural signals downsampled to match the imaging frame rate. Continuous imaging data were segmented into individual trials based on the timing of Monkeylogic2 behavioural codes, enabling trial-based analysis of neural responses aligned to task events. All of the preprocessing steps preserved the temporal structure of the data while removing technical artifacts, enabling subsequent analysis of task-related neuronal activity patterns.
Data normalization
Neural activity (ΔF/F) was z scored per neuron to account for differences in baseline fluorescence and dynamic range. For each neuron, ΔF/F values were z scored by subtracting the session mean and dividing by the session standard deviation. Normalization was applied to the continuous trace before trial segmentation to ensure consistent baseline statistics across trial types.
Behavioural psychometric curve analysis
Behavioural performance in the vagal optogenetic detection task was quantified by constructing psychometric curves relating stimulus intensity to detection probability. The initial 20 trials at the beginning of each session, which were only 0 or 15 Hz, were excluded from analysis to allow for task engagement and stabilization of behavioural performance. For each stimulation frequency, the detection rate was calculated as the proportion of trials in which the animal produced a lick response. These empirical detection rates were then fitted with a four-parameter sigmoid function of the form:
where x represents the stimulation frequency, y represents the detection rate, L is the dynamic range, x0 is the inflection point (perceptual threshold), k controls the slope and b is the baseline offset. Parameter estimation was performed using nonlinear least-squares optimization with initial parameter guesses derived from the data. The quality of the fit was assessed by computing the coefficient of determination (R2). To assess psychometric fit quality, response labels were randomly permuted across trials while stimulation frequencies were kept fixed. For each of 100 shuffles per mouse, the psychometric curve was refitted and its R2 was calculated. The real R2 was then compared with the mean shuffled R2. The perceptual threshold for each animal was defined as the inflection point (x0) of the fitted sigmoid, corresponding to the stimulation frequency at which the fitted detection probability reached the midpoint of its dynamic range. Uncertainty in the perceptual threshold estimates was assessed using bootstrap resampling. For each mouse, trials were resampled with replacement within each stimulation frequency while preserving the original number of trials per frequency. The psychometric function was refitted and the perceptual threshold was recalculated for each of 1,000 bootstrap iterations. The 95% confidence interval was defined by the 2.5th and 97.5th percentiles of the resulting bootstrap threshold distribution. For visualization, detection rates were converted to percentages and plotted as a function of optogenetic stimulation frequency along with the fitted sigmoid curve. When analysing multiple animals, individual psychometric curves were overlaid and the average R2 value across animals was computed and reported along with the standard error of the mean to summarize detection performance consistency across the cohort.
Neural response detection and neurometric analysis
Neural response detection
To quantify neural responses to vagal optogenetic stimulation, we used auROC analysis. For each neuron and trial, we compared neural activity during a baseline period (from 1 s before to 1 s after trial onset, before vagal optogenetic stimulation) with activity during the stimulation period (3–5 s after trial onset). We defined 100 threshold criteria spanning the 0.1st to 99.9th percentile of each neuron’s activity range. For each threshold, we calculated the probability that neural activity exceeded the threshold during baseline and stimulation periods separately. The auROC value was computed using these probability distributions, where values of >0.5 indicate excited responses (increased activity during stimulation), values of <0.5 indicate suppressed responses (decreased activity) and values of approximately 0.5 indicate no response.
Statistical significance testing of auROC values
To determine significant responses, we performed permutation testing for each neuron on a trial-by-trial basis. For each trial, we shuffled baseline and stimulation labels 500 times to create a null distribution of auROC values under the assumption of no stimulus-evoked response. Significance thresholds were set at the 5th and 95th percentiles of this null distribution (α = 0.05). Only trials with auROC values exceeding these thresholds were considered significant responses and retained for further analysis.
Neurometric curve construction
To characterize frequency-dependent neural responses, we constructed neurometric curves for each neuron. For each stimulation frequency, we calculated the fraction of trials showing significant responses. Excited responses were defined as trials with auROC > 0.5, while suppressed responses were defined as trials with auROC < 0.5. This yielded neurometric curves plotting response fraction against stimulation frequency, analogous to the behavioural psychometric curves. We fitted both sigmoid and Gaussian functions to each neuron’s neurometric curve using least-squares optimization.
The sigmoid function was defined as:
where L is the amplitude, x0 is the inflection point, k is the slope and b is the baseline.
The Gaussian function was defined as:
where A is the amplitude, μ is the centre, σ is the width, β is the shape parameter and offset is the baseline.
For each neuron, we fit both models separately to excited responses and suppressed responses. The goodness of fit was assessed using the coefficient of determination (R2). For each neuron, we selected the model (sigmoid or Gaussian) and response type (excited or suppressed) that yielded the highest R2. Neurons were classified as sigmoid neurons if the sigmoid model provided the best fit (indicating monotonic frequency-response relationships) or Gaussian neurons if the Gaussian model provided the best fit (indicating tuned frequency preferences). An additional permutation test was performed by shuffling condition labels 1,000 times and refitting the curves to determine if the observed fit was higher than chance. Only neurons with fits that were better than chance were finally considered as sigmoidal or Gaussian.
Based on their mean auROC values across all trials, neurons were further classified as excited (mean auROC > 0.5) or suppressed (mean auROC < 0.5). This yielded four categories: sigmoid excited, sigmoid suppressed, Gaussian excited and Gaussian suppressed neurons. Only neurons with significant neurometric fits (R2 above the threshold and significant permutation test) were included in subsequent analyses. We used these response categories and indices in the choice probability (CP) analysis and single-neuron response classification, described in the corresponding sections below.
Population-level analysis and comparison to behaviour
For sigmoid neurons meeting the inclusion criteria, we extracted the half-maximum threshold, defined as the stimulation frequency at which the fitted curve reached 50% of its dynamic range (that is, the midpoint between the minimum and maximum response). For Gaussian neurons meeting the inclusion criteria, we extracted the peak frequency (μ parameter), representing the stimulation frequency that elicited the maximal response probability. These neural thresholds were aggregated across neurons within each animal and compared to the behavioural detection threshold derived from psychometric curve fitting. To visualize the distribution of neural thresholds within individual animals, we created kernel density estimate plots, showing the probability density of sigmoid half-maximum thresholds and Gaussian peak frequencies across the stimulation frequency range. To characterize population-level distributions, we pooled all neurons across animals and binned them into discrete frequency categories. To quantify the variability of neural and behavioural thresholds across animals, we computed the coefficient of variation (CV = s.d./mean × 100%) for behavioural detection thresholds, sigmoid half-maximum thresholds and Gaussian peak frequencies, providing a normalized measure of interanimal diversity in threshold distributions.
Neural population decoding and comparison to behaviour
We trained support vector machine (SVM) classifiers to decode stimulus presence from neural activity patterns and compare them to behaviour. We wanted to train the classifiers on sufficiently high frequencies that could activate neurons, while ensuring that the animal could not reliably detect them behaviourally. Specifically, for each animal, we selected a training frequency based on its behavioural detection threshold, selecting the stimulation frequency that was two frequency levels below the threshold when available (for example, for a behavioural threshold of 7.5 Hz, we trained the classifier on 3 Hz), or the lowest frequency below the threshold if only one existed (for example, for a behavioural threshold of 1 Hz, we trained the classifier on 0.5 Hz). Neural activity patterns during the vagal-opto stimulation period were extracted for all trials at the training frequency, and a binary SVM classifier was trained to discriminate between stimulus-present and stimulus-absent conditions. Classifier performance was evaluated using repeated 70/30 holdout cross-validation. In each of 500 iterations, 70% of the eligible trials was randomly assigned to the training set, while the remaining 30% was reserved for testing and were not used during classifier training. Classification accuracy was averaged across iterations. The trained classifier was then tested on its ability to decode stimulus presence across all stimulation frequencies, generating a frequency-dependent decoding accuracy curve analogous to the psychometric curve. For cell-subset analyses, the classifier was retrained after excluding Gaussian neurons, sigmoidal neurons or a randomly selected set of neurons matched in size to the average number of Gaussian and sigmoidal neurons.
To quantify the difference between neural coding and behavioural performance, we computed the difference between classifier accuracy and behavioural detection rate specifically at the training frequency for each animal (Δ = classifier accuracy − behavioural detection rate, expressed as percentages). This Δ metric represents information present in the neural population that was not translated into behavioural choices. For group-level analysis, we plotted this accuracy gap as a function of each animal’s behavioural threshold, examining whether the magnitude of subthreshold neural information varied systematically with detection sensitivity. Representative individual animal data were visualized by overlaying the psychometric curve with the full classifier decoding curve to illustrate the relationship between behavioural performance and neural population decoding across the entire frequency range.
CP analysis
Neural discrimination between CR (detected) and FA (undetected) trials
To quantify choice-related modulation under identical sensory input, we computed CP54 by comparing neural activity between CR (detected) and FA (undetected) trials. For each neuron, the mean ΔF/F activity during the vagal optogenetic stimulation period (0–4 s after onset) was extracted separately for CR and FA trials. To correct for unequal trial numbers, we used bootstrap resampling: on each of 500 iterations, we randomly subsampled without replacement from the larger condition to match the smaller one and computed the auROC between CR and FA activity. The median auROC across iterations was taken as the neuron’s CP value.
Following established neural-discrimination methods, auROC values were obtained by sweeping 100 threshold criteria across the 0.1th–99.9th percentile of each neuron’s activity range. For each threshold, we calculated the probability that neural activity exceeded the threshold during CR and FA trials, respectively. The auROC value was then computed from these probability distributions, where CP > 0.5 indicates higher activity on CR (detected) trials, CP < 0.5 indicates higher activity on FA (undetected) trials and CP ≈ 0.5 indicates no discrimination.
Trial-history controls
To minimize potential trial-history effects, we applied balanced sampling when sufficient data were available. Trials were labelled as after reward or not after reward. During each bootstrap iteration, CR and FA trials were sampled so that the proportions of these trial history categories were matched between conditions, ensuring that observed CP differences reflected true choice-related modulation rather than trial-history effects.
CR–CR control analysis for establishing null distribution thresholds for significance of CP values
To determine objective statistical thresholds for identifying neurons with CP values significantly above chance, we performed a control analysis separately for each animal. CR trials were randomly split into two groups of equal size while preserving trial history proportions, as described above. One randomly selected subset of CR trials was labelled as pseudo-FA and the other as pseudo-CR. We then computed CP values for all neurons using this CR–CR split, repeating the random split and CP calculation procedure 500 times to generate robust estimates. As both groups consisted of identical trial types (CR trials), any observed CP values in this control analysis would reflect noise, measurement variability and random fluctuations rather than true behavioural discrimination. This procedure generated an animal-specific null distribution of CP values representing the expected range of discrimination (false-positive rate) in the absence of true signal differences.
For each animal, we then calculated percentile-based thresholds from their CR–CR control CP distribution to define statistical significance criteria (false-positive rate). Neurons were separated into excited (CP ≥ 0.5) and suppressed (CP < 0.5) populations based on their CP values. For excited neurons, we computed the 99.5th, 99th, 97.5th and 95th percentiles of the animal’s control distribution, representing the top 0.5%, 1%, 2.5% and 5% of that animal’s null distribution. For suppressed neurons, we computed the 0.5th, 1st, 2.5th and 5th percentiles, representing the bottom 0.5%, 1%, 2.5% and 5% of the animal’s null distribution. These animal-specific thresholds define the extreme values that would occur by chance in the absence of true discrimination for that particular animal.
Neural decoding with sliding-window classifiers
To assess the temporal dynamics of neural population coding during task performance, we implemented a sliding-window classification approach using both linear SVM and naive Bayes classifiers. The continuous normalized signals were divided into individual trial epochs, with each trial including a 4 s pre-trial baseline period. To account for potential sequential dependencies, we explicitly tracked trial history, labelling each trial as either occurring immediately after a reward or not. Classifiers were trained to discriminate between different behavioural outcomes: CR versus FA, hits versus CR, and hits versus FA. We first trained classifiers on all trials regardless of the frequency or trial count. Furthermore, to account for potential behavioural differences between detected and undetected trials at different frequencies (that is, no detected trials at the lowest frequency or no undetected trials at the highest frequency), we used only trials from optogenetic stimulation frequencies in which both classified classes (that is, hit/CR/FA) contained at least two trials at that frequency (before accounting for trial history). For classifier training, we used a stratified bootstrap procedure to balance trial history between the two classes being compared. Specifically, on each iteration, we identified the minority and majority classes, then equalized the proportion of after-reward and not-after-reward trials in both classes by choosing to the minimum available count for each history category. This ensured that classifier performance reflected true differences in neural activity patterns rather than confounds from trial reward history. As an additional safeguard, if either class ended up with fewer than two trials after stratified bootstrap balancing, that bootstrap iteration was skipped to ensure valid 70/30 train-test splits. Balanced trial sets were then split into training (70%) and test (30%) sets separately for each class, with strict enforcement that no trial appeared in both training and test sets. Classifiers were trained on neural population activity during a fixed temporal window (1 to 4 s after vagal-opto stimulation onset). For each trial, we extracted a population (feature) vector consisting of the mean activity of each neuron during this training window. Linear SVMs and naive Bayes classifiers were fit to these features using the training set. The classification accuracy was then evaluated dynamically across time using a sliding-window approach: we computed the mean neural activity in consecutive 0.3 s windows (step size = 1 frame, ~67 ms at 15 Hz), spanning from trial onset to 17 s after onset. At each timepoint, the trained classifier predicted trial identity based on the population activity within that window, and the accuracy was computed by comparing classifier predictions to true labels on the test set. This procedure was repeated for 500 bootstrap iterations, and accuracy curves were averaged to obtain mean ± s.e.m. traces. For group-level analysis, individual-animal classifier results were aggregated across mice.
In silico neural perturbation analysis
To assess the causal contribution of specific neuronal populations to behavioural discrimination, we implemented an in silico perturbation approach in which we selectively altered the activity of neurons suppressed by vagal-opto stimulation and evaluated the impact on classifier performance. For each animal, we selected a single training frequency for the perturbation analysis by training separate classifiers at each available optogenetic stimulation frequency (without perturbation), evaluating their accuracy curves across all test frequencies and selecting the training frequency of which the classifier accuracy curve most closely matched the shape of the behavioural psychometric curve. This ensured that perturbations targeted the neural population most relevant to perceptual discrimination as reflected in behaviour. We first ranked all neurons by their median activity during the stimulation window (0 to 4 s after vagal-opto stimulation onset) on CR trials at the selected training frequency. Neurons were sorted in ascending order, such that the most suppressed neurons (those with the most negative median z-scored ΔF/F) were ranked first. To identify the critical proportion of suppressed neurons required for effective discrimination, we performed an initial exploratory analysis testing perturbations on cumulative subsets of the ranked neurons in 10% increments (top 10%, top 20%, top 30%, …, top 100%), where each subset included all neurons from the most suppressed up to that percentile. This analysis revealed that decoding accuracy plateaued when the top 20% most-suppressed neurons were included, indicating that this subset was sufficient to reach maximal perturbation effects (Extended Data Fig. 4l). On the basis of this result, we focused subsequent perturbation experiments on three neuron populations: (1) the top 20% most-suppressed neurons; (2) the 20% most-excited neurons as a control; and (3) all neurons. To quantify the typical magnitude of inhibition, we computed the median activity across all negative-activity responses from CR trials at the training frequency, which served as a reference inhibition value. We applied perturbations exclusively to FA trials by adding a scaled version of the reference inhibition value to the activity of selected neurons. Specifically, for a given neuron subset and a given scaling multiplier (0, 2 or 5), we modified each selected neuron’s activity on FA trials by adding (reference inhibition × multiplier). Multiplier values of 0 represented no perturbation (original activity). Critically, perturbations were applied only to the stimulation-window activity used as classifier features; all other aspects of the data remained unchanged. For each combination of neuron subset and multiplier, we trained a linear SVM classifier on unperturbed data from the training frequency CR trials versus no vagal-opto hit trials, using the mean activity during the stimulation window as features. The classifier was then tested on perturbed FA trials at all presented optogenetic frequencies, as well as on unperturbed CR and hit trials, using a cross-validation 70/30 train-test split with 500 bootstrap iterations. To prevent train–test contamination, CR trials at the training frequency were split such that training samples were drawn exclusively from the CR pool, while the test set comprised the remaining CR trials plus all FA trials (which received perturbations). The classification accuracy was computed separately for each frequency, yielding accuracy curves as a function of stimulation frequency for each perturbation condition. We quantified the perturbation effect as Δaccuracy = (accuracy with perturbation) − (accuracy at original activity, multiplier = 0). For group-level analysis, we aggregated Δaccuracy across animals for matched perturbation conditions.
As animals had different vagal optogenetic stimulation frequencies in the behavioural InsCtx inhibition experiment, we also selected three corresponding stimulation frequencies for this analysis: medium, low and very low (see the further explanation in the ‘Partial psychophysics with InsCtx inhibition’ section).
Single-neuron response classification
To identify neurons responding to specific behavioural events (that is, vagal optogenetic stimulation and reward delivery), we performed event-specific auROC analyses on z-scored neuronal activity. For each event type, we defined temporal windows for event-related and baseline activity. The baseline window was consistent across all events (0 to 1 s after trial onset). Event windows were as follows. (1) Vagal stimulation: 1 s after vagal optogenetic onset until optogenetic offset (3 s window). (2) Reward delivery: 2 s after reward onset. (3) Lick onset: from lick onset to lick offset.
Adaptive sliding-window auROC for vagal stimulation
To identify neurons responding to vagal optogenetic stimulation, we computed auROC values comparing neural activity during the vagal stimulation window to baseline. We then performed permutation testing (500 iterations): trial labels (event versus baseline) were shuffled, auROC was recomputed and the distribution of shuffled auROC values was generated. Significance thresholds were set at the 10th and 90th percentiles of this null distribution. Neurons with auROC values exceeding the 90th percentile were classified as stimulation excited, those below the 10th percentile were classified as stimulation suppressed and all others were classified as non-responsive.
Control comparison against masking light
To ensure that observed responses were specific to vagal-opto stimulation and not to the visual masking light presented on all trials, we performed a secondary auROC analysis comparing activity during the vagal-opto stimulation window to activity during the equivalent time window on hit trials (which contained only the masking light, no vagal-opto stimulation). Only neurons that passed both the primary comparison (vagal-opto stimulation versus baseline) and this control comparison (vagal-opto stimulation versus masking light) were classified as vagal-opto responsive.
Reward and licking response detection
For reward delivery and lick onset events, we computed auROC values comparing each event window to the baseline window across all trials. Statistical significance was assessed using permutation testing (500 iterations, 10th/90th percentile thresholds). Neurons responsive to reward or lick onset were also compared against the masking light window (from hit trials) as a control to ensure specificity. Neurons passing both the event-versus-baseline comparison and the event-versus-control comparison were classified as event-responsive. Neurons classified as responding to either reward delivery or lick onset were combined into a single ‘reward/licking’ category for population-level analyses, as these events are temporally coupled during hit trials and separating them was not a central goal of this current work.
Correlation of vagal stimulation and reward-related neural activity
We averaged neuronal activity across trials to obtain a single value per neuron for each analysis window, analysing rewarded and correct-rejection trials separately. For rewarded trials, we computed mean activity from 0 to 2 s after reward. For CR trials, we computed the mean activity during the 4 s stimulation window. To assess the relationship between suppressed optogenetic responses and reward-related activity, we computed correlations across neurons separately for each animal between activity during the CR vagal-opto stimulation window and the rewarded-trial measure. We calculated Pearson correlations and used linear fits for visualization.
Spatial organization analysis
To examine the spatial organization of functionally distinct neuronal populations within the imaging field of view, we performed spatial clustering analyses using ROI coordinates from Suite2p segmentation. For each analysis, we extracted the spatial coordinates of each neuron as the median position of its pixel mask (y, x coordinates). We quantified spatial clustering using two complementary approaches: (1) within-group versus across-group distance comparisons, and (2) radial clustering analysis across multiple spatial scales.
Within-versus-across distance analysis
For each comparison, we computed pairwise distances between all neuron pairs and classified them as within-group (both neurons from the same functional category) or across-group (neurons from different categories). To account for unequal group sizes, we used a subsampling approach with 500 iterations per comparison. In each iteration, we randomly sampled neurons from the larger group to match the size of the smaller group, computed the mean within-group distance and mean across-group distance for the balanced subset, and calculated the difference (within minus across). The observed clustering metric was the average of these 500 subsampled differences. Statistical significance was assessed using permutation testing (500 permutations). For each permutation, neuron labels were randomly shuffled while preserving group sizes, and the clustering metric was recalculated using the same subsampling procedure. The two-sided P value was computed as the fraction of permutations yielding clustering metrics at least as extreme as the observed value (relative to the null distribution mean).
Radial clustering analysis
To characterize clustering across spatial scales, we performed radial neighbour analysis at fixed radii (8, 12, 16, 24, 32, 48, 64, 96, 128, 160 and 180 pixels, pixel size = 1.7 µm). For each radius, we counted the number of neighbours within that distance for each neuron, separately tallying same-label neighbours (same functional category) and different-label neighbours (different category). To balance unequal group sizes, we repeated this analysis 500 times with random subsampling (matching the smaller group size), averaging neighbour counts across iterations. We summarized clustering strength by computing the area under the curve (AUC) of the (same-label minus different-label) neighbour count function across radii. The statistical significance of the observed AUC was assessed using permutation testing (500 permutations). For each permutation, neuron labels were randomly shuffled while preserving group sizes, the same-label and different-label neighbour counts were recomputed at each radius using the same subsampling procedure (500 iterations), and the AUC of the permuted (same minus different) curve was calculated. The two-sided P value was computed as the fraction of permutations yielding AUC values at least as extreme as the observed AUC (relative to the null distribution mean).
CP spatial organization
Neurons were divided into two groups based on their CP values: positive-CP neurons and negative-CP neurons, where only neurons passing the 5% false-positive-rate threshold were included. We applied the within-versus-across distance and radial clustering analyses described above to test whether high-CP and low-CP neurons were spatially segregated.
Functional population spatial organization: vagal stimulation versus reward responses
Neurons were classified into three mutually exclusive categories based on their responses to vagal optogenetic stimulation and reward/licking events. (1) Light only: responsive to vagal optogenetic stimulation but not reward/licking. (2) Reward only: responsive to reward/licking but not vagal stimulation. (3) Both: responsive to both vagal stimulation and reward/licking. Responsiveness was determined by passing both the event-versus-baseline auROC comparison and the event-versus-masking-light control comparison (as described in the ‘Single-neuron response classification’ section). For the spatial analysis, we focused on the comparison between the light-only and reward-only populations, testing whether these two functionally distinct groups exhibited spatial segregation using the within-versus-across distance and radial clustering analyses described above.
Neurometric curve spatial organization: sigmoid versus Gaussian neurons
Neurons were classified based on the shape of their neurometric curves (as described in the ‘Neurometric curve construction’ section): sigmoid neurons exhibited monotonic frequency–response relationships, while Gaussian neurons showed tuned frequency preferences. We applied the within-versus-across distance and radial clustering analyses described above to test whether sigmoid and Gaussian neurons were spatially segregated.
Cross-animal pooled spatial clustering analyses
To assess spatial clustering across animals, we summed the observed clustering metrics (either within-minus-across distance or radial AUC) across all mice and compared this pooled sum to a pooled null distribution obtained by summing the mouse-specific permutation distributions. The pooled two-sided P value quantified whether the aggregate spatial clustering across the cohort exceeded chance expectations. Individual mouse results were visualized using forest plots showing observed clustering metrics with 95% confidence intervals derived from mouse-specific permutation distributions.
Dimensionality reduction and clustering
We followed our previously published pipeline55. In brief, data were binned into half-second bins (seven imaging frames per bin) to reduce computational load and smooth noisy fluctuations. Neural activity traces were then filtered to exclude neurons with low mean activity, retaining only cells exhibiting sufficient modulation across the recording session (threshold: absolute mean ≤ 0.5 after normalization). All retained traces were normalized using z-score transformation to standardize response magnitudes across neurons. Dimensionality reduction was performed using a two-stage Laplacian eigenmap embedding procedure. In the first stage, the high-dimensional neural activity matrix was embedded into a 20-dimensional intermediate space using spectral embedding with nearest-neighbour affinity. This intermediate representation was subsequently projected into a six-dimensional space (determined as the optimal dimensionality for our data, typically 5–6 intrinsic dimensions) to capture the dominant modes of population variability while preserving local geometric structure. Clustering the data into eight clusters was subsequently performed as previously described55. This allowed us to assign each timepoint to a specific cluster and describe population dynamics as cluster transition dynamics. Final cluster labels were assigned to all timepoints, based on their nearest cluster centre. Population activity sequences were aligned to trial onset times and organized by behavioural outcomes (hits, CRs, FAs) to examine state dynamics across experimental conditions. One mouse was excluded from the activity manifold cluster analysis. Although this mouse had statistically significant vagal-opto responses, these responses were much more variable with low trial-to-trial correlations, precluding robust manifold activity clustering.
Trial-wise neural state similarity analysis
To quantify the relationship between population activity dynamics and behavioural outcomes, we performed a trial-wise similarity analysis. Clusters were first selected for analysis based on three criteria that ensured we captured reliable task-evoked changes. First, they must appear in at least one behavioural condition in 30% or more of trials; second, they must exhibit sustained activation (at least two consecutive bins above the 30% threshold) in at least one condition; and third, they must not show significant baseline presence, defined as appearing in 20% or more of trials in any of the first three time bins after trial onset. This baseline exclusion criterion ensured that analyses focused on task-evoked rather than pre-stimulus activity patterns. For each trial, a binary feature vector was constructed representing the presence or absence of each selected cluster at each time bin, excluding the baseline period. This yielded a trial-by-feature matrix in which each row represented a trial’s cluster activation pattern across time. Pairwise cosine similarity was then computed between all pairs of trials, generating a trial-by-trial similarity matrix. Within-condition similarity was quantified as the average cosine similarity between all pairs of trials within the same behavioural condition (excluding self-comparisons). Between-condition similarity was computed as the average cosine similarity between trials from different behavioural conditions. This trial-wise approach allowed us to assess whether population activity dynamics were more similar within behavioural conditions than across conditions, and whether specific condition pairs showed higher or lower neural similarity. Values below 10% in proportion vectors were set to zero to reduce noise from sporadic cluster appearances.
Cross-animal population activity analysis
To assess the prevalence of task-evoked population activity dynamics across animals, we computed the fraction of animals exhibiting active cluster states at each timepoint for each behavioural condition. For each animal and time bin, we determined whether any cluster exceeded an activity threshold (present in at least 30% of trials for that condition). The binary indicator of cluster presence was then averaged across animals at each time bin, yielding a time series representing the fraction of animals showing any active cluster. This analysis quantified whether task-evoked population dynamics were consistently present across the population of recorded animals or were animal-specific phenomena.
Statistical aggregation and visualization
Results were aggregated across animals by first computing cluster-level similarity metrics for each mouse independently, then averaging across clusters within each animal to obtain per-mouse summary statistics. Group-level statistics were computed as the mean and s.e.m. across animals, with individual animal datapoints overlaid on bar plots to visualize interanimal variability. For visualization of cluster dynamics, we plotted time courses showing the mean proportion of trials in which each selected cluster was active as a function of time, separately for each behavioural condition.
Nodose ganglion ROI signal extraction and processing
Raw data processing and ROI definition
Two-photon videos were reshaped into time × height × width arrays and split into green (GCaMP) and red (motion control) channels according to the scanning cycle. For each imaging plane, we computed s.d. projections of the green and red channel stacks. Elliptical ROIs were manually placed on these projections to define individual neurons.
Fluorescence trace extraction
Mean fluorescence traces were extracted by averaging pixel intensities within each ROI mask across all frames. This procedure was applied separately to green and red channels for all defined ROIs.
Trace preprocessing and motion correction
Extracted fluorescence traces were low-pass filtered (Butterworth filter, cut-off frequency, 0.02 Hz) to remove high-frequency noise, then bleaching-corrected using constrained double-exponential fits to account for potential photobleaching over the recording session. The traces were further denoised using a 10 s centred running mean. Motion artifacts were corrected by regressing the red control channel signal onto the green channel signal; the fitted motion component was subtracted from the green channel recording. For visualization and statistical testing, traces were z-scored using a baseline window extending 240 s before the first stimulus in each recording segment.
Responder identification
For each ROI, we evaluated the correlation between the motion-corrected green signal and the red control channel. High negative correlations (r < −0.5, indicating over-correction of motion) prompted re-evaluation using single-channel green preprocessing without red channel subtraction. High positive correlations (r > 0.5, indicating uncorrected shared motion artifacts) required testing both channels separately, with responses validated only if the green channel showed stimulus-locked activity distinct from the red channel. Low correlations between channels indicated successful motion correction and standard motion-corrected green channel analysis was applied. Within each stimulus presentation (intestinal balloon inflation to deflation, plus a fixed 50 s post-stimulus window), we applied a dynamic threshold relative to each cell’s pre-stimulus baseline to detect responses. Responses were considered significant if post-stimulus activity exceeded 5 s.d. above the baseline for a minimum duration of 5 s, after verifying a flat baseline slope (≤0.02 Δz per s). When multiple ROIs were defined for the same neuron across planes or channels, indices were applied to retain only non-redundant ROIs for analysis.
Vagal optogenetic response decay analysis
For the decay analysis, we used deconvolved activity obtained using the Suite2p pipeline69. We z-scored signals for each neuron, segmented them into trial-aligned traces with a 4 s pre-trial period, and analysed only on vagal-opto stimulation trials to avoid reward-related activity. To focus on stimulation-selective responses, we restricted analyses to neurons identified in the preceding auROC-based analysis as significantly increasing activity during vagal-opto stimulation but not significantly responsive to reward. For each neuron and trial, we baseline-subtracted activity using the 1 s period immediately preceding stimulation onset and smoothed it with a five-frame (~330 ms) moving average. We retained trials for decay fitting only if they showed a detectable optogenetic response during the stimulation window, defined as activity exceeding baseline by at least 2 s.d. for at least two consecutive frames. Within responsive trials, we identified the response peak as the first significant local maximum during the stimulation window, with criteria on minimum height, prominence and interpeak distance. If we could not detect such a peak, we used the maximal value within the stimulation window. We quantified the time required for the response to decay to one-third of peak amplitude, the mean response at the end of the stimulation period (odour onset) relative to peak. We included trials only if they passed the response-detection criterion, had a peak amplitude of at least 0.25 and showed acceptable fit quality (R2 ≥ 0.2). We computed neuron-level summary measures across valid trials, and retained only neurons with at least five valid trials for subsequent analyses.
Reporting summary
Further information on research design is available in the Nature Portfolio Reporting Summary linked to this article.