Introduction

Studies in healthy humans have demonstrated that a remotely applied noxious “conditioning” stimulus inhibits a subject’s pain response to a “test” stimulus1,2,3. This phenomenon wherein pain experienced in one body region can inhibit pain in another body region was termed as conditioned pain modulation (CPM) in humans and was first discovered in 1979 and termed as Diffuse noxious inhibitory controls (DNIC) in animals4,5. Previous research into the mechanism(s) of DNIC have predominantly focused on the role of descending projections from the brainstem to the spinal cord, including opioidergic and noradrenergic projections6,7,8. Of note, top-down control from higher-order structures, such as the cerebral cortex, is known to modulate the intensity of pain perception by inhibiting or facilitating the transmission of nociceptive information9,10,11,12. The mechanisms by which these higher brain structures that mediate “pain-inhibiting pain” still unclear.

The somatosensory cortex network has been reported to be involved in memory and decision-making13,14. Inhibition of the somatosensory cortex impairs motor memory retention and behaviorally relevant decision coding15,16. The somatosensory cortex is also involved in context-dependent sensory processing17,18. Recent research on the primary somatosensory cortex (S1) across species has revealed the existence of clear laminar contributions underlying sensory input19,20,21. The secondary somatosensory cortex (S2), as a higher-order cortical area, processes somatosensory stimuli based on experience, and its response correlates with perceptual behavior22, suggesting that S2-related cortical networks play a role in the conversion of sensory input into perception23. The role of the somatosensory cortex in subjective sensory experiences supports the likely involvement of somatosensory crosstalk in the “pain-inhibiting pain”.

In the present study, we combined viral tracing, activity-dependent genetic labeling, microendoscopic calcium imaging, and optogenetic manipulations to ultimately discover internal circuits between the S2 and S1 that underlie pain-induced analgesia. Nociceptive threshold behavioral tests showed that noxious stimuli elicited by a pinch or capsaicin injection in the ipsilateral forepaw, contralateral forepaw, or cheek all inhibited pain-related behaviors in hindpaw. We subsequently found that noxious stimuli applied to ipsilateral forepaw activates projections from layers 2–4 of S2 specifically to layer 4 GABAergic neurons in S1HL (S1HLGABA), which in turn drives inhibition of local glutamatergic neurons in S1HL (S2 → S1HLGABA→S1HLGlu feedforward inhibitory circuit) to mediate analgesia in the hindpaw. By contrast, noxious stimuli applied to contralateral forepaw activates the contralateral S2 which, through interhemispheric communication with S2, activates an inhibitory circuit in S1HL to mediate analgesia of hindpaw. These findings reveal that the S2 → S1 circuit and the contralateral S2 innervation of S2 → S1 circuit respectively mediate ipsilateral or contralateral pain-induced analgesia, expanding the scope of our understanding of the circuit basis of pain relief.

Results

Pain at diverse body regions induces analgesia

To determine whether pain could inhibit pain in other parts in mice, we first established an inflammatory pain model by injecting the left hindpaw with Complete Freund’s adjuvant (CFA, 1 mg/ml, 10 μl) (Supplementary Fig. 1a). Routine nociceptive threshold assays conducted at 3 days post-injection showed that CFA group mice displayed significantly decreased nociceptive thresholds in the inflamed left hindpaw compared to the controls (Supplementary Fig. 1b). We next examined whether noxious stimuli by pinching24,25 in other anatomical regions could inhibit pain-related behavior in the inflamed hindpaw by applying an alligator clip to the left forepaw of the CFA 3 d mice. In mice with inflamed left hindpaw, pinching of the left forepaw resulted in significantly increased nociceptive thresholds compared to no-pinch control mice (alligator clips taped to the left forepaw). Specifically, elevated nociceptive thresholds were detected in the von Frey tests (i.e., increased mechanical sensitivity thresholds), a hot plate tests (i.e., increased the latency for lick responses), a brush tests (i.e., decreased dynamic score), and spontaneous pain tests (i.e., decreased spontaneous pain score), and this effect diminished by 20 min after removal of the pinch stimulus (Fig. 1a, b and Supplementary Movie 1). These results suggested that noxious stimuli applied to left forepaw induce analgesia in the left hindpaw.

Fig. 1: Noxious stimuli at diverse body regions induce hindpaw analgesia in mice.
Fig. 1: Noxious stimuli at diverse body regions induce hindpaw analgesia in mice.
Full size image

a Schematic for establishing a pain-induced analgesia model by pinch stimulus of the left forepaw in CFA mice and assessing nociceptive thresholds in the left hindpaw. b Time course assessment of nociceptive thresholds in the left hindpaw by the von Frey test, hot plate tests, brush tests, and spontaneous pain tests (n = 8 mice per group; von Frey, F1,14 = 34.20, p < 0.0001; Hot plate, F1,14 = 46.05, p < 0.0001; Brush, F1,14 = 141.8, p < 0.0001; Spontaneous pain, F3,28 = 32.63, p < 0.0001). ch Schematic of CAP injection into the left forepaw (c), right forepaw (e), or cheek (g) in CFA mice. Time course assessment of nociceptive thresholds in the left hindpaw in CFA mice with CAP injection in the left forepaw (d; n = 8 mice per group; von Frey, F1,14 = 16.97, p = 0.001; Hot plate, F1,14 = 34.09, p < 0.0001; Brush, F1,14 = 26.74, p = 0.0001; Spontaneous pain, F3,28 = 38.63, p < 0.0001), right forepaw (f; n = 8 mice per group; von Frey, F1,14 = 27.51, p = 0.0001; Hot plate, F1,14 = 83.79, p < 0.0001; Brush, F1,14 = 40.08, p = 0.0001; Spontaneous pain, F3,28 = 22.87, p < 0.0001), or cheek (h; n = 8 mice per group; von Frey, F1,14 = 37.00, p < 0.0001; Hot plate, F1,14 = 83.21, p < 0.0001; Brush, F1,14 = 14.85, p = 0.0018; Spontaneous pain, F3,28 = 36.26, p < 0.0001). BL, baseline; CAP, capsaicin. Significance was assessed by two-way repeated-measures ANOVA with post hoc comparison and one-way ANOVA with post hoc Bonferroni’s test between groups in b, d, f, and h. Data are presented as means ± SEM. *P < 0.05; **P < 0.01; ***P < 0.001. Details of the statistical analyses are presented in Supplementary Data 2. Source data are provided as a Source Data file.

To assess whether pinch stimuli in anatomical regions other than the ipsilateral forepaw can also inhibit pain-related behavior in the left hindpaw, we applied a pinch stimulus to the right forepaw or cheek, which are each known to have ascending sensory information pathways distinct from that of the left forepaw26,27. Similarly, nociceptive thresholds of the inflamed hindpaw were significantly increased following pinch stimuli compared with that in the respective forepaw or cheek no-pinch controls, and this effect again diminished within 20 min of clip removal (Supplementary Fig. 1c–f).

To investigate whether noxious stimuli other than mechanical pinch can elicit analgesic effects in the hindpaw, we applied an alternative intense noxious stimulus by injecting different concentrations of the TRPV1 channel agonist capsaicin28, including 1 μg/10 μl, 5 μg/10 μl, and 10 μg/10 μl into the left forepaw of CFA mice. We found that 1 μg/10 μl capsaicin did not result in significantly elevated nociceptive thresholds in the inflamed hindpaw of CFA mice (Supplementary Fig. 2a, b). In contrast, 5 μg/10 μl or 10 μg/10 μl capsaicin dosages led to significantly increased nociceptive thresholds, and this inhibition of pain-related behaviors persisted for at least 4 h after administering the 10 μg/10 μl capsaicin injection (Fig. 1c, d and Supplementary Fig. 2c, d). We therefore selected 10 μg/10 μl as the capsaicin dosage in all subsequent experiments. We also injected capsaicin into the right forepaw or the cheek. Similarly, nociceptive thresholds were significantly elevated in the inflamed hindpaw following capsaicin injection, compared with that in saline-injected controls (Fig. 1e–h, Supplementary Movie 2 and 3). Given the relatively long-lasting, stable analgesic effects of capsaicin injection in the forepaw and cheek in the inflamed hindpaw of CFA mice, we employed capsaicin injections to examine pain-induced analgesia throughout the remainder of our study.

In addition, we investigated whether noxious stimulus affects the nociceptive threshold in the hindpaw of naive mice by injecting capsaicin into the left forepaw, right forepaw, or cheek. Mechanical and thermal nociceptive threshold tests of the left hindpaw indicated significantly elevated nociceptive thresholds compared to saline-injected control mice, and this effect diminished by 4 h after capsaicin injection (Supplementary Fig. 3). Together, these results demonstrated that pain-induced analgesia in both naive and CFA-induced pain model mice.

Given that the attachment of an alligator clip and capsaicin injection elicited paw-licking or face-wiping behaviors could distract mice from paying attention to their hindpaw being tested, we replaced the noxious stimulus treatment with non-noxious stimulus chloroquine (CQ, which induces scratching behavior) treatment as the second stimulus29,30. We found that injecting CQ (100 μg in 10 μl) into the left forepaw of CFA mice resulted in a significantly increased in biting behavior (indicating an attention shift but not pain) (Supplementary Fig. 4a, b, and Supplementary Movie 4). Nociceptive threshold tests showed no significant change in the inflamed hindpaw of these CQ-treated mice (Supplementary Fig. 4c). Similarly, nociceptive thresholds of the inflamed hindpaw were not significantly increased following CQ injection into the right forepaw or cheek (Supplementary Fig. 4d–i). These results thus support that noxious stimulus applied to another body part is necessary for the observed “pain-inhibiting pain” phenomenon.

Increased neuronal activity in the secondary somatosensory cortex during pain-induced analgesia

As the somatosensory cortex is known to harbor and process pain information31,32, and given our observation that noxious stimuli at diverse sites (e.g., ipsilateral forepaw, contralateral forepaw, cheek) each inhibited pain-related behavior in the hindpaw of both CFA and naive mice, we inferred that a neuronal ensemble might be present in the somatosensory cortex, responsible for pain in diverse sites and mediating pain-induced analgesia. To explore this possibility, we monitored activated neurons during pain at diverse sites induced analgesia using a reporter mouse line generated by crossing FosCreERT2 (FosTRAP2) mice, expressing tamoxifen-inducible Cre recombinase under the c-Fos promoter, with Ai14-tdTomato mice33,34, to enable tdTomato expression in activated neurons that show Fos induction after intraperitoneal injection of 4-hydroxytamoxifen (4-OHT) (FosTRAP2:Ai14 mice).

In CFA FosTRAP2:Ai14 mice, we injected capsaicin into the left forepaw, right forepaw, or cheek after 4-OHT injection and sacrificed the mice 2 week later to examine tdTomato expression (indicative of neuronal activity) across whole-brain slices (Fig. 2a). In CFA mice with capsaicin injection in the left forepaw, tdTomato expression was significantly increased in the secondary somatosensory cortex (S2, right hemisphere, which is contralateral to the CFA injection in the left hindpaw), the forepaw region of the primary somatosensory cortex (S1FL, right hemisphere), and the contralateral S2 (contra-S2, left hemisphere), whereas it was significantly decreased in the hindpaw region of the primary somatosensory cortex (S1HL, right hemisphere, which is contralateral to the CFA injection in the left hindpaw) compared to control mice (Fig. 2b, c and Supplementary Fig. 5).

Fig. 2: Increased neuronal activity in the S2 during pain-induced analgesia.
Fig. 2: Increased neuronal activity in the S2 during pain-induced analgesia.
Full size image

a Schematic of TRAPing of the activated neurons in CFA mice following saline or CAP injection into the left forepaw, right forepaw, or cheek. bg Quantification of TRAPed-tdTomato neuron expression in different brain regions with CAP or saline injected into the left forepaw (b, n = 4 slices from 4 mice; S1HL, p = 0.0323; S1FL, p = 0.0089; S2, p = 0.0035; Contra-S2, p = 0.0495), the right forepaw (d, n = 4 slices from 4 mice; S1HL, p = 0.0016; Contra-S1FL, p < 0.0001; S2, p = 0.0010; Contra-S2, p < 0.0001) and the cheek (f, n = 4 slices from 4 mice; S1HL, p = 0.0319; S1BF, p = 0.0001; S2, p < 0.0001; Contra-S2, p < 0.0001); representative images of tdTomato-positive neurons in S2 (c, e, g). Scale bar, 200 μm. h Schematic of TRAPing S2 neurons in CFA mice with CAP injection into the right forepaw or the cheek and employing c-Fos immunohistochemistry staining to label S2 neurons activated by CAP injection in the left forepaw of the same mice. il Representative images (i, k) and overlap analysis (j, l) of the neural ensemble in the S2. The box indicates the magnified S2 region below. Scale bars, 200 μm (top) or 20 μm (bottom). Arrows indicate tdTomato-positive (red) or c-Fos-positive (brown) signals. L2-4, layer 2–4; ACC, anterior cingulate cortex; S1FL, primary somatosensory cortex of the forelimb area; Contra-S1FL, contralateral S1FL; S1BF, primary somatosensory cortex of the barrel field; Contra-S2, contralateral S2; IC, insular cortex; PVH, paraventricular hypothalamic nucleus; PAG, periaqueductal gray. Significance was assessed by two-way repeated-measures ANOVA with post hoc comparison in b, d, and f. All data are presented as the mean ± SEM. *P < 0.05, **P < 0.01, ***P < 0.001. Details of the statistical analyses are presented in Supplementary Data 2. Source data are provided as a Source Data file.

Similarly, CFA mice injected with capsaicin in the right forepaw showed a significant increase in tdTomato expression in the contralateral S1FL, S2 and the contralateral S2, but significantly decreased in S1HL (Fig. 2d, e and Supplementary Fig. 6a, b). CFA mice administered capsaicin injection in the cheek had significant increased tdTomato expression in the insular cortex (IC), the barrel field of primary somatosensory cortex (S1BF), S2 and the contralateral S2, but also showed significantly decreased tdTomato expression in the S1HL relative to that in control animals (Fig. 2f, g and Supplementary Fig. 6c, d). These results showing increased c-Fos-expressing (TRAPed) neurons in S2 upon pain delivery to all three examined sites (Supplementary Data 1). We found that activated neurons in S2 are enriched in layers 2–4, so we subsequently restricted our experiments to layers 2–4 of S2 for the remainder of the study (Supplementary Fig. 7). In addition, the decrease in c-Fos expression in S1HL upon pain delivery to all three examined sites was consistent with the fact that glutamatergic neurons in S1HL (S1HLGlu) are responsible for encoding nociceptive information for the hindpaw21,35. Together, these data indicated that the somatosensory cortex (S2 and S1) is involved in the pain-induced analgesia.

To investigate whether the same group of neurons is activated in the S2 during pain at diverse sites induced analgesia, we captured S2 neurons activated during capsaicin injections into the right forepaw or the cheek by using FosTRAP2:Ai14 CFA mice and performed c-Fos immunohistochemistry staining in these mice to label S2 neurons activated during capsaicin injections into the left forepaw (Fig. 2h). We found ~70% overlap between S2 neurons activated by capsaicin injection in the left forepaw and in the right forepaw of CFA mice (Fig. 2i, j), as well as an ~72% overlap of S2 neurons activated by capsaicin injection in the left forepaw and in the cheek of CFA mice (Fig. 2k, l).

To assess whether similar ensembles of neuronal activation in S2 are caused by noxious stimulation at diverse sites (i.e., rather than by neurons that are more active basally), we captured S2 neurons activated by saline injections into the right forepaw or the cheek by using FosTRAP2:Ai14 CFA mice. Two weeks later, we performed c-Fos immunohistochemistry staining in these mice to label S2 neurons activated by capsaicin injections into the left forepaw (Supplementary Fig. 8a). We found ~8% overlap of S2 neurons activated by saline injection in the right forepaw and capsaicin injection in the left forepaw of CFA mice (Supplementary Fig. 8b, c), as well as a ~11% overlap of S2 neurons activated by saline injection in the cheek and capsaicin injection in the left forepaw of CFA mice (Supplementary Fig. 8d, e). Additionally, we captured S2 neurons activated by capsaicin injections into the right forepaw or into the cheek by using FosTRAP2:Ai14 CFA mice; two weeks later, we performed c-Fos immunohistochemistry staining in these mice to label S2 neurons activated by saline injections into the left forepaw (Supplementary Fig. 8f). We found ~9% overlap of S2 neurons activated by capsaicin injection in the right forepaw and saline injection in the left forepaw (Supplementary Fig. 8g, h), as well as a ~8% overlap of S2 neurons activated by saline injection in the cheek and capsaicin injection in the left forepaw (Supplementary Fig. 8i, j). Taken together, these results suggested that distinct sites of noxious stimuli, rather than increased basal activity, produce similar ensembles of neuronal activation in S2. Based on this evidence, we subsequently administered capsaicin injections to the left forepaw of FosTRAP2 mice to examine S2 neuronal activation during pain-induced analgesia, unless otherwise stated.

The S2 mediates pain-induced analgesia by inhibiting S1HLGlu neuronal activity

Given the observed increase in c-Fos expression in the S2 and decrease in S1HL, we next investigated the potential roles of S2 and S1HLGlu neurons in pain-induced analgesia. We simultaneously profiled the S2 and S1HLGlu neuronal activity patterns by monitoring calcium response with microendoscopic imaging. Specifically, we infused an AAV expressing the Cre-dependent fluorescent Ca2+ indicator GCaMP6m (AAV-DIO-GCaMP6m) into the S2 and an AAV expressing the CaMKII-dependent fluorescent Ca2+ indicator GCaMP6m (AAV-CaMKII-GCaMP6m) into the S1HL of FosTRAP2 mice, accompanied by mounting a microendoscopic gradient index (GRIN) lens mounted above the S2 and S1HL (Fig. 3a and Supplementary Fig. 9a–e). After injecting capsaicin or saline into the left forepaw, simultaneous monitoring of TRAPed S2 and S1HLGlu neuronal activity revealed a significant increase in both Ca2+ transient frequency and mean z-scored activity of TRAPed S2 neurons in CFA mice with capsaicin injection in the left forepaw (Fig. 3b, c). In contrast, capsaicin injection to the left forepaw resulted in a significant decrease in both Ca2+ transient frequency and mean z-scored activity of S1HLGlu neurons (Fig. 3d, e). Thus, noxious stimulus delivery to the left forepaw results in activation of S2 neurons but inhibition of S1HLGlu neurons in CFA mice (Supplementary Movie 5).

Fig. 3: Activation of the S2 neuronal ensemble is required for pain-induced analgesia.
Fig. 3: Activation of the S2 neuronal ensemble is required for pain-induced analgesia.
Full size image

a Schematic of simultaneous microendoscopic calcium imaging of S2 and S1HLGlu neurons. be Representative traces (left) and summarized data (right) of spontaneous Ca2+ signals as well as heatmaps of the activities (left) and z-score responses (right) of TRAPed S2 neurons (b, p < 0.0001, c, p < 0.0001; n = 30 cells from 4 mice for Saline group; n = 29 cells from 3 mice for CAP group) and GCaMP6m+ S1HLGlu neurons (d, p = 0.0006, e, p < 0.0001; n = 30 cells from 3 mice for Saline group; n = 30 cells from 3 mice for CAP group). f Schematic of microendoscopic calcium imaging of S1HLGlu neurons. g, h Representative traces (left) and summarized data (right) of spontaneous Ca2+ signals as well as heatmaps of the activities (left) and z-score responses (right) of S1HLGlu neurons before and during inhibition of TRAPed S2 neurons (g, p < 0.0001, h, p < 0.0001; n = 30 cells from 3 mice for Saline group; n = 29 cells from 3 mice for CAP group). i Timeline of the chemogenetic inhibition of S2 neurons. j Effects of the inhibition of S2 neurons on nociceptive thresholds of the left hindpaw in CFA mice with CAP injection in the left forepaw (n = 8 mice per group; von Frey, p = 0.0043; Hot plate, p = 0.0082; Brush, p = 0.0334; Spontaneous pain, p = 0.0043). Significance was assessed by two-tailed paired Student’s t-test in bh and two-way repeated-measures ANOVA with post hoc comparison between groups in j. All data are presented as the mean ± SEM. *P < 0.05, **P < 0.01, ***P < 0.001. Details of the statistical analyses are presented in Supplementary Data 2. Source data are provided as a Source Data file.

To examine whether the altered neuronal activity in S2 and S1HL was caused by the directed attention to a stimulus, we injected CQ into the left forepaw and simultaneously profiled S2 and S1HLGlu neuronal activity patterns by monitoring calcium responses with microendoscopic imaging (Supplementary Fig. 9f). we observed no significant change in Ca2+ transient frequency or mean z-score activity in either TRAPed S2 or S1HL neurons during the CQ-evoked scratching period (Supplementary Fig. 9g–j). These results suggest that noxious stimuli, rather than attention to a stimulus, are required for the activation of S2 neurons and inhibition of S1HLGlu neurons in pain-induced analgesia.

To connect the calcium response to the mouse’s pain-related behaviors, we used microendoscopic imaging to record time-locked S1HLGlu neuronal responses upon stimulation with a range of mechanical forces (0.07, 0.16, 0.4 and 0.6 g) in CFA mice with saline injected in the forepaw (Supplementary Fig. 10a, b). We found that both Ca2+ transient frequency and mean z-score of S1HLGlu neuronal activity was significantly increased at suprathreshold stimuli of 0.16, 0.4, and 0.6 g (Supplementary Fig. 10c–j). We then injected CAP into the forepaw of the same mice and again recorded Ca2+ activity in S1HLGlu neurons in response to different mechanical stimuli. Following CAP injection, we observed a lower increase in Ca2+ transient frequency and mean z-score of S1HLGlu neuronal activity at 0.16, 0.4 and 0.6 g suprathreshold stimulation (Supplementary Fig. 10c–j). Taken together, these results suggested that delivery of the noxious stimuli to the forepaw led to inhibition of S1HLGlu neurons in CFA mice.

We subsequently used a chemogenetic method to inhibit TRAPed S2 neurons wherein a Cre-dependent hM4Di-mCherry virus (AAV-DIO-hM4Di) was infused into the S2 of FosTRAP2 mice and monitored S1HLGlu neuronal activity by injecting an AAV-CaMKII-GCaMP6m virus into the S1HL with a GRIN lens implanted above (Fig. 3f). Briefly, inhibition of TRAPed S2 neurons abolished both the decrease in Ca2+ transient frequency and the decrease in mean z-scored activity of S1HLGlu neurons in CFA mice with capsaicin injection in the left forepaw (Fig. 3g, h). Further, inhibition of S2 neurons blocked the pain-induced hindpaw analgesia; that is, CFA mice with capsaicin injection of left forepaw displayed no increase in nociceptive threshold of the left hindpaw (Fig. 3i, j). By contrast, we found that chemogenetic inhibition of TRAPed S2 neurons did not induce any significant decrease in nociceptive threshold in the hindpaw of naïve mice, suggesting that the observed pain-induced analgesia upon inhibition of TRAPed S2 neurons was paradigm-dependent (Supplementary Fig. 11a, b). Additionally, chemogenetic activation of TRAPed S2 neurons by infusion of a Cre-dependent hM3Dq-mCherry virus (AAV-DIO-hM3Dq) into S2 of FosTRAP2 mice resulted in significantly increased nociceptive thresholds in CFA mice (Supplementary Fig. 11c, d). These results demonstrate that the S2 mediates pain at diverse sites induced analgesia, specifically by inhibiting the activity of S1HLGlu neurons.

An S2 → S1HL feedforward inhibitory circuit controls pain-induced analgesia

To characterize connections between TRAPed S2 and S1HLGlu neurons, we employed a cell type-specific anterograde trans-monosynaptic tracing system in which a Cre-dependent TK-GFP virus (AAV-DIO-TK-GFP) was injected into the S2 of FosTRAP2 mice to facilitate the monosynaptic anterograde spread of an HSV-ΔTK-tdTomato virus injected at the same site three weeks later (Fig. 4a). After virus expression, we detected tdTomato+ signals in the primary motor cortex, primary somatosensory cortex of the upper lip region, S1HL, S1FL, S1BF, contralateral S2, lateral globus pallidus (LGP), and ventral postero thalamic nucleus (VP) (Fig. 4b and Supplementary Fig. 12a, b). These tdTomato+ signals were primarily distributed in layer 4 of the S1HL, and co-localized with both a glutamate-specific antibody (~30%) and a GABA-specific antibody (~65%) (Fig. 4c). These results support a layer-specific organization wherein TRAPed S2 neurons predominantly innervate GABA neurons in layer 4 of S1HL.

Fig. 4: An S2 → S1HLGABA→S1HLGlu feedforward inhibitory circuit mediates ipsilateral pain-induced hindpaw analgesia.
Fig. 4: An S2 → S1HLGABA→S1HLGlu feedforward inhibitory circuit mediates ipsilateral pain-induced hindpaw analgesia.
Full size image

a Schematic of virus injection. b Representative images of the injection site (left) and tdTomato+ neurons in the S1HL that co-localized with NECAB1 antibody (right). The white box indicates the magnified S2 region in the inserts. Scale bars, 100 µm (left) or 20 µm (right). c Typical image (left) and summarized data (right) of tdTomato+ neurons in S1HL co-localized with glutamate and GABA immunofluorescence (n = 5 slices from 3 mice). d Schematic of virus injection. e, f Representative images of viral expression within the S1HL and DsRed+ neurons in the S2 co-localized with glutamate or GABA immunofluorescence of CaMKII-Cre mice (e) and GAD2-Cre mice (f). Scale bars, 200 µm or 20 µm. g Summarized data of DsRed expression in S2 predominantly co-localized with glutamatergic neurons (n = 5 slices from 3 mice per group). h Schematic of whole-cell recordings. i Representative images of viral expression within the S1HL. Scale bars, 100 µm (left) or 20 µm (right). j, k Representative traces (j) and summarized data (k, left, p = 0.0009; right, P < 0.0001) recorded from the same S1HLGlu neurons after photo-stimulation of S2 fibers. l Schematic of whole-cell recordings. m Representative images of the injection site within the S1HL. Scale bars, 100 µm (left) or 20 µm (right). n Representative traces of light-evoked currents (blue bar) before and after BIC treatment. o Schematic of an S2 → S1HLGABA→S1HLGlu circuit. p Timeline of chemogenetic inhibition of the TRAPed S2 → S1HL circuit. q Effects of inhibition of the S2 → S1HL circuit on nociceptive thresholds of the left hindpaw in CFA mice with CAP injection in the left forepaw (n = 8 mice per group; von Frey, P = 0.0020; Hot plate, P = 0.0152; Brush, P = 0.0005; Spontaneous pain, P = 0.0059). CAP, capsaicin; BIC, bicuculline. Significance was assessed by two-way repeated-measures ANOVA with post hoc comparison between groups in q, and two-tailed paired Student’s t-test in k and n. All data are presented as the mean ± SEM. *P < 0.05, **P < 0.01, ***P < 0.001. Details of the statistical analyses are presented in Supplementary Data 2. Source data are provided as a Source Data file.

To characterize the detailed organization of this S2 to S1HL connection, we subsequently used a cell type-specific retrograde trans-monosynaptic tracing strategy in which Cre-dependent helper viruses (AAV-EF1α-DIO-TVA-GFP and AAV-EF1α-DIO-RVG) were injected into the S1HL of CaMKII-Cre mice to facilitate spread of a monosynaptic retrograde rabies virus (RV) EnvA-pseudotyped RV-ΔG-DsRed injected at the same site three weeks later (Fig. 4d). We identified intensely DsRed-labeled neurons in the S2 that co-stained with glutamatergic neurons (Fig. 4e). Using a similar tracing strategy in GABA synthetic enzyme glutamic acid decarboxylase 2 (GAD2)-Cre mice, we again detected abundant DsRed signals in the S2 that co-stained with glutamatergic neurons (Fig. 4f, g). Thus, both S1HLGlu and S1HLGABA neurons receive direct innervation from the S2.

We next examined functional connections of the TRAPed S2 to S1HL circuit by infusing an AAV-DIO-ChR2-mCherry virus into the S2 and an AAV-CaMKII-GFP virus into the S1HL of FosTRAP2 mice (Fig. 4h, i). We recorded light-evoked postsynaptic currents in S1HLGlu neurons in voltage-clamp mode using an internal solution containing Cs-methanesulfonate and QX-314. At −70 mV holding potential, photo-stimulation of ChR2-expressing TRAPed S2 terminals in S1HL evoked reliable excitatory postsynaptic currents (EPSCs) from S1HLGlu neurons (Supplementary Fig. 12c, d). These EPSCs could be blocked by the AMPA receptor antagonist, 6,7-dinitroquinoxaline-2,3-dione (DNQX) (Fig. 4j, k). Except for these light-evoked EPSCs, at 0 mV holding potential, photo-stimulation also elicited IPSCs in the same neurons, which were also blocked by DNQX treatment (Fig. 4j, k). Notably, the latency to light-evoked IPSCs (latency: 0.0096 ms) was longer than that for EPSCs (latency: 0.0042 ms). These results suggested that S1HLGlu neurons are innervated by local S1HLGABA interneurons, both of which receive direct S2 inputs.

In addition, we found that upon AAV-DIO-ChR2-mCherry and AAV-CaMKII-EYFP injection into the S1HL of GAD2-Cre mice (Fig. 4l, m), blue light stimulation of local S1HLGABA neurons resulted in significantly increased IPSCs in the S1HLGlu (Supplementary Fig. 12e, f). These increased IPSCs were blocked by treatment with the GABAA receptor antagonist, bicuculline (Fig. 4n), indicating that the S1HLGABA neurons generated direct inhibitory projections to S1HLGlu neurons. Together, these results identified a functional S2 → S1HLGABA→S1HLGlu feedforward inhibitory circuit (Fig. 4o). We then selectively monitor layer 4 of S1HLGABA neuronal responses to capsaicin injection in the left forepaw of CFA mice by infusing AAV-DIO-GCaMP6m into the S1HL and mounting a GRIN lens at the top of the S1HL of GAD2-Cre mice (Supplementary Fig. 13a, b). Upon left forepaw injection with capsaicin, Ca2+ transient frequency and mean z-scored activity of these S1HLGABA neurons increased (Supplementary Fig. 13c, d), suggesting that S1HLGABA neurons are activated by noxious stimuli in the forepaw of CFA mice.

To determine whether the S2 → S1HLGABA→S1HLGlu circuit is required for pain-induced analgesia, we conducted chemogenetic inhibition experiments by infusing an AAV-DIO-hM4Di-mCherry or AAV-DIO-mCherry virus into the S2 and implanted a cannula in the S1HL of FosTRAP2 mice (Fig. 4p). Three weeks following hM4Di expression, mice received an intracranial microinjection of the DREADD agonist CNO, with monitoring of the nociceptive threshold of the hindpaw. We found that any increase in hindpaw nociceptive thresholds was abolished upon chemogenetic silencing of the S2-S1 circuit (Fig. 4q). Additionally, S2 innervates inhibitory neurons in S1 is suggested to be involved in the planning of motor behavior36. To determine whether the decreased nociceptive thresholds in the hindpaw observed upon inhibiting TRAPed S2 → S1HL circuit was attributed to defects in motor responses, we performed motor behavior assays including the rotarod and paw angle test in FosTRAP2 mice with intracranial microinjection of the CNO. We found that mice with a selectively silenced TRAPed S2 → S1HL circuit showed no significant impairment in rotarod tests nor abnormal hindpaw angles compared to control animals (Supplementary Fig. 14), indicating that silencing of the TRAPed S2 → S1HL circuit does not induce motor response defects. Collectively, these results indicated that noxious stimuli in the left forepaw activate the S2 → S1HLGABA→S1HLGlu feedforward inhibitory circuit to mediates pain-induced analgesia without impairing locomotor function.

A contra-S2 → S2 → S1HL circuit mediates contralateral pain-induced analgesia

Previous studies have shown lateralization is a hallmark of somatosensory processing in the mammalian brain37. Recalling that noxious stimuli delivered to the right forepaw (contralateral body part) inhibit pain-related behavior in the left hindpaw, whereas nociceptive information from the right body part is encoded by contralateral hemispheres27,38. It is thus possible that contralateral S2 (contra-S2) innervation of the S2 → S1HL circuit mediates analgesia of the left hindpaw induced by noxious stimuli in the right forepaw of CFA mice. To examine this possibility, we first sought to identify direct synaptic connections between the contra-S2 and S2 → S1HL circuit using a triple retrograde tracing strategy in which retro-AAV-hSyn-Cre was injected into the S1HL of C57 mice, while Cre-dependent helper viruses were injected into the S2. After 3 weeks, RV-ΔG-DsRed was injected into the S2 (Fig. 5a, b). We detected DsRed+ signals in the secondary motor cortex, IC, lateral posterior thalamic nucleus, central medial thalamic nucleus, VP, LGP, basolateral amygdaloid nucleus and contra-S2 (which co-localized with glutamate antibody) (Fig. 5c, d and Supplementary Fig. 15a, b), These results thus demonstrated that the S2 → S1HL circuit receives direct innervations from the contra-S2.

Fig. 5: Activation of a contra-S2 → S2 → S1HL circuit during contralateral pain-induced hindpaw analgesia.
Fig. 5: Activation of a contra-S2 → S2 → S1HL circuit during contralateral pain-induced hindpaw analgesia.
Full size image

a Schematic of the triple retrograde tracing strategy. b Representative images of the starter neurons (yellow) within the S2. Scale bars, 100 µm. The white box represents the magnified S2 area in the inserts. Scale bar, 20 µm. c, d Representative image (c) and summarized data (d; n = 5 slices from 3 mice) of RV-DsRed expression in contra-S2 predominantly co-localized with glutamate immunofluorescence. Scale bars, 100 µm (left) or 10 µm (right). e Schematic of the sparse labeling strategy. f Dorsal view of the reconstruction of S2 projection sites (left) and the 3D reconstruction of S2 projectome (right). Scale bars, 1 mm. g Fluorescence images of a S2 section expressing Ypet sparsely in soma. Scale bars, 100 µm (left) or 20 µm (right). h Fluorescence images of an S1HL (top) and contra-S2 (bottom) section expressing Ypet in S2 neuronal axon. Scale bars, 100 µm (left) or 20 µm (right). i Schematic of viral injections and simultaneous microendoscopic calcium imaging of contra-S2, S2, and S1HLGlu neurons by CAP injection in the right forepaw. jo Representative traces (left) and summarized data (right) of spontaneous Ca2+ signals as well as heatmaps of the activities (left) and z-score responses (right) of contra-S2 neurons (j, p < 0.0001, k, p < 0.0001, n = 33 cells from 4 mice), S2 neurons (l, p < 0.0001, m, p < 0.0001; n = 32 cells from 4 mice) and GCaMP6m+ S1HLGlu neurons (n, p < 0.0001, o, p < 0.0001; n = 34 cells from 3 mice). CAP, capsaicin. Significance was assessed by two-tailed paired Student’s t-test in jn and Wilcoxon matched-pairs signed rank test in o. Data are presented as means ± SEM. ***P < 0.001. Details of the statistical analyses are provided in Supplementary Data 2. Source data are provided as a Source Data file.

To help visualize the connectivity of this contra-S2 → S2 → S1HL circuit, we used sparse labeling of S2 neurons innervated by the contralateral S2 by injecting AAV-hSyn-Cre virus into the contra-S2 and AAV-DIO-YPet virus into the S2 of C57 mice (Fig. 5e). Three weeks after injection, we employed the CLARITY approach39 to render the brain largely translucent, thus enabling whole-brain imaging of YPet+ fibers originating from S2 neurons. We found that the S2 displayed significant connections to contralateral S2, as well as ipsilateral projections to S1, and to the ipsilateral primary motor cortex (M1). The S2 also had substantial subcortical projections, the densest of which were observed in ventrolateral posterolateral thalamic nucleus (VPL), posterior complexes (Po), and lateral globus pallidus (LGP) of the thalamus. Other subcortical projections targeted the pontine reticular nucleus (PnO) and commissural stria terminalis (cst) (Fig. 5f–h and Supplementary Fig. 15c–e). These results collectively suggested that S2 neurons interact with contralateral S2 and also innervate the S1HL. To examine the functional connections of the contra-S2 → S2 → S1HL circuit, we injected an AAV-DIO-ChR2-mCherry into the contra-S2, and a retro-AAV-hSyn-EGFP into the S1HL of FosTRAP2 mice (Supplementary Fig. 16a). Photo-stimulation of contra-S2 fibers elicited EPSCs in EGFP+ neurons of the S2, which were blocked by exposure to DNQX (Supplementary Fig. 16b, c). Together, these data thus illustrated a direct functional connection in the contra-S2 → S2 → S1HL circuit.

Subsequently, we examined neuronal activity in contra-S2, S2 and S1HLGlu during contralateral pain-induced analgesia by monitoring calcium response with microendoscope imaging. For this experiment, an AAV-DIO-GCaMP6m was infused into the contra-S2 and S2, while AAV-CaMKII-GCaMP6m was infused in the S1HL of FosTRAP2 mice, with GRIN lenses mounted above all three of these regions (Fig. 5i). Upon capsaicin injection to the right forepaw, we observed that Ca2+ transient frequency and mean z-scored activity both significantly increased in contra-S2 and S2 neurons (Fig. 5j–m). By contrast, both Ca2+ transient frequency and mean z-scored activity significantly decreased in S1HLGlu neurons (Fig. 5n, o and Supplementary Movie 6).

We further chemogenetic inhibit contra-S2 neurons and monitored S2 and S1HLGlu neuronal activity by injecting an AAV-DIO-GCaMP6m and AAV-CaMKII-GCaMP6m virus into the S2 and S1HL, respectively (Fig. 6a). Inhibition of contra-S2 neurons blocked both increased S2 neuronal activity and decreased S1HLGlu neuronal activity induced by capsaicin injection of the right forepaw in CFA FosTRAP2 mice (Fig. 6b–e and Supplementary Movie 7). These results thus demonstrated the activation of a contra-S2 → S2 → S1HL circuit during contralateral pain-induced analgesia.

Fig. 6: Contralateral S2 → S2 → S1HL circuit mediates contralateral pain-induced hindpaw analgesia.
Fig. 6: Contralateral S2 → S2 → S1HL circuit mediates contralateral pain-induced hindpaw analgesia.
Full size image

a Schematic of simultaneous microendoscopic calcium imaging of S2 and S1HLGlu neurons after optogenetic inhibition of TRAPed contra-S2 neurons. be Representative traces (left) and summarized data (right) of spontaneous Ca2+ signals as well as the heatmaps of the activities (left) and z-score responses (right) of GCaMP6m+ S2 neurons (b, p < 0.0001, c, p < 0.0001; n = 34 cells from 4 mice) and GCaMP6m+ S1HLGlu neurons (d, p < 0.0001, e p < 0.0001; n = 24 cells from 4 mice) after inhibition of TRAPed contra-S2 neurons. f Timeline of chemogenetic inhibition of the contra-S2 → S2 → S1HL circuit in CFA mice with CAP injection in the right forepaw. g Effects of chemogenetic inhibition of contra-S2 → S2 → S1HL circuit on the nociceptive threshold of the left hindpaw in CFA mice with CAP injection in the right forepaw (n = 8 mice per group; von Frey, p = 0.0033; Hot plate, p = 0.0262; Brush, p = 0.0024; Spontaneous pain, p = 0.0032). CAP, capsaicin. Significance was assessed by two-way repeated-measures ANOVA with post hoc comparison between groups in g, two-tailed paired Student’s t-test in bd, and Wilcoxon matched-pairs signed rank test in e. Data are presented as means ± SEM. *P < 0.05; **P < 0.01; ***P < 0.001. Details of the statistical analyses are provided in Supplementary Data 2. Source data are provided as a Source Data file.

Finally, we examined whether the contra-S2 → S2 → S1HL circuit is essential for contralateral pain-induced analgesia by injecting AAV-DIO-hM4Di-mCherry or AAV-DIO-mCherry into the contra-S2 of FosTRAP2 mice and implanting a cannula in the S2. Three weeks following hM4Di expression, mice received an intracranial microinjection of the CNO, with monitoring of the nociceptive threshold of the hindpaw. We found that increase in hindpaw nociceptive thresholds was abolished upon chemogenetic inhibition of the contra-S2 terminals in the S2 (Fig. 6f, g). These results cumulatively demonstrated that the observed ipsilateral pain-induced analgesia is mediated by the S2 → S1HL circuit and contralteral pain-induced analgesia is mediated by the contra-S2 → S2 → S1HL circuit (Supplementary Fig. 17).

Discussion

Here, we found that a neuronal ensemble in layers 2–4 of the bilateral secondary somatosensory cortex (S2) responds to noxious stimuli signals from diverse body regions. The S2 mediates ipsilateral pain-induced analgesia via feedforward inhibitory innervation of S1HL, whereas contralateral S2 innervation of the S2 → S1 circuit mediates contralateral pain-induced analgesia.

S2, as a higher-order brain region for sensory integration, is involved in the processing and interpretation of pain signals, modulating pain through its downstream projections40,41. Our study has identified the intra-somatosensory cortical circuits that underlie pain-induced analgesia. Specifically, noxious stimuli from the ipsilateral forepaw activates S2 → S1 circuit to mediate ipsilateral pain-induced hindpaw analgesia. Given the high degree of lateralization known for mammalian sensory and motor systems, noxious stimuli from contralateral forepaw activate the contralateral S2 which, through interhemispheric communication with the S2-S1 circuit, mediates contralateral pain-induced hindpaw analgesia. This connection between S2 and S1 is necessary for coordinating the perception of pain at diverse body regions and for the effect of contralateral noxious stimuli on pain modulation.

Superficial layers of the cortex are more involved in pain sensitization, the emotional and cognitive components of pain19,42,43, whereas deeper layers directly modulate the sensory components of pain via downstream pathways21,24. Recent studies have explored the specific role of different layers of S2 in pain modulation. Excitatory projection neurons, largely originating from layer 5a of S2, innervate M2 and govern mechanical and heat sensitivity, inhibition of S2-to-M2 projecting neurons enhances sensitivity41. By contrast, layer 6 of glutamatergic neurons in S2 was inhibited by noxious stimulation, and optical inhibition and activation of projection terminals of layer 6 of S2Glu in the VPL and Po reduced and enhanced bilateral nociceptive sensitivity, respectively40. Using a pain-induced analgesia paradigm, our study showed that neurons in layers 2–4 of S2 were activated in response to noxious stimuli. These neurons mediate pain-induced analgesia through projections specifically to layer 4 of S1HL. These cumulative studies collectively reveal functional heterogeneity among neurons across different layers of S2 in pain modulation by projecting to different downstream brain regions.

Moreover, S2 projections to S1 have been shown to preferentially innervate PV+ and SST+ inhibitory neurons to regulate motor function (e.g., rotarod and paw angle tests)36. Tests of motor-related behaviors in CFA-hindpaw mice with chemogenetic silencing of TRAPed S2 neurons showed no significant impairment of motor responses in these animals. It should be noted that only limited subset of S2 neurons that are activated under pain-induced analgesia and specifically project to S1HL were silenced in our experiments, which may not be sufficient to induce a deficit in motor function. These studies reveal that the possible existence of distinct populations of S2 neurons that regulate pain sensation and motor function, respectively.

Lateralization, wherein information from one body side is primarily processed in the contralateral hemisphere, is a hallmark of somatosensory processing44,45. Ascending sensory information is projected to contralateral brain regions through spinal projection neurons, with the contralateral thalamus as the primary projection target; this spinothalamic pathway is known to convey pain, itch, touch, and temperature information to the contralateral cortex31,38,46. Consistent with this notion, our study indicates that S2 activation is mediated by contralateral S2 (contra-S2) innervation in CFA mice given capsaicin injection of the right forepaw. Our findings, together with another recent study that showed unilateral tactile stimulation can modulate S2 neuronal activity in both cerebral hemispheres by corticocortical projections via the corpus callosum44, suggest that interhemispheric communication is essential for unilateral somatosensory stimulation to elicit a bilateral S2 response.

In mice, we found that pain-induced analgesia effect varies with the intensity of the stimulus. Our results showed that a 1 μg/10 μl concentration of capsaicin injected in the forepaw did not significantly increase the nociceptive threshold in inflamed hind paws of CFA mice, whereas both 5 μg/10 μl and 10 μg/10 μl concentrations injected in the forepaw significantly increased the nociceptive threshold, and we observed prominent increases in the nociceptive threshold of the CFA mice at the higher capsaicin concentration.

It is worth noting that the decrease in sensitivity and changes neuronal activity induced by noxious stimuli are unlikely due to attention distraction, as we found that injection of with the pruritogen agent chloroquine into the forepaw of mice induced significant scratching behavior but did not alter the nociceptive thresholds of the inflamed hindpaw or the neuronal activity of TRAPed S2 or S1HL neurons. Thus, the “pain-inhibiting pain” phenomenon is unlikely to result from an attentional change. Additionally, previous studies of humans1,2,47 have examined whether distraction and pain stimulation inhibit pain through the same or different mechanisms, specifically by looking at whether there is a similar or even an additive effect on pain attenuation. Briefly, these studies found that the effects of pain and distraction are independent, and that the “pain-inhibiting pain” phenomenon cannot be attributed solely to distraction, but rather require a pain stimulus.

Taken together, our findings define layer-specific intra-somatosensory cortical circuits that mediates pain-induced analgesia. These findings enrich our understanding of somatosensory cortex function and also highlight the functional heterogeneity among neurons across different layers of the S2 in pain sensation. Examining how this circuit works in collaboration with other defined descending projections from the brainstem to the spinal cord in DNIC is likely to be a fruitful area for future investigations.

Methods

Animals

All experiments were approved by the University of Science and Technology of China (USTC). Animals utilized in the procedures were obtained from Charles River or Jackson Laboratories and were bred at the animal facility at USTC. These included C57BL/6 J, Ai14 (RCL-tdT), FosTRAP2, CaMKII-Cre and GAD2-Cre male mice aged 8−10 weeks. Mice were randomly assigned to groups of five individuals per cage randomly, except in cases where a GRIN lens was implanted. A stable environment was maintained with a temperature range of 23–25 °C and a 12-hour light/dark cycle (lights on from 7:00 a.m. to 7:00 p.m.). Mice had ad libitum access to water and food. Certain mice were excluded from further analyses due to missed targets in viral tracing, in vivo recording, and behavioral data collection, such as failed virus injections or incorrect optic fiber and GRIN lens placement.

Mouse models

Complete Freund’s adjuvant injection

Inflammatory pain was induced by injecting complete Freund’s adjuvant (CFA, 10 μl, Sigma) into the plantar of the left hindpaw of each mouse under brief isoflurane anesthesia.

Pinch stimulus application

A noxious pinch stimulus was applied to the skin surface of the left forepaw, right forepaw, and cheek using an alligator clip (Generic Micro Steel10 Alligator Test Clips), as previously described48. For control mice, alligator clips were taped to the skin surface of the corresponding body site. For the cheek pinch, we selected a location about 2 cm from the ear (towards the nose), an area where facial muscles are abundant. The clip was gently applied to the muscle.

Capsaicin injection

Capsaicin (Sigma, M2028) was dissolved in alcohol at a concentration of 100 mg/ml and then diluted to a 1 mg/ml working solution with saline. Subsequently, 10 μl of capsaicin was subcutaneously injected into the left forepaw, right forepaw and cheek of mice to induce tonic pain. Control mice received an injection of the same quantity of saline (0.9% NaCl). Mice subjected to CAP injection were not used to test other pain-induced analgesia models in behavioral tests.

Behavior tests

von Frey test

von Frey test was conducted to assess mechanical pain threshold in mice. Prior to the experiments, mice were individually placed in clear plastic chambers on a wire mesh grid for 30 minutes per day for 3 days to habituate them to the environment. For the test, a series of von Frey filaments with ascending forces ranging from 0.02 to 1 g were used. These filaments were perpendicularly applied to the plantar surface of the left hindpaw with sufficient force to bend them. The withdrawal threshold was calculated as the average of five applications of the minimal filament force when the mice either withdrew their paw or licked it.

Dynamic tactile allodynia

Dynamic tactile allodynia was assessed following the same preparatory procedure as the von Frey filament test. The method used for measuring dynamic tactile allodynia was consistent with previous reports49. In brief, a 5/0 brush was gently stroked along the left hindpaw from heel to toe at a speed of approximately 2 cm/s. The response was scored as follows: 0 = no response; 1 = very quick slight movement or lifting of the paw; 2 = sustained lifting of the paw for more than 2 seconds towards the body or strong lateral lifting above the body level; and 3 = flinching multiple times or licking the paw, excluding grooming behavior. Three successful tests were performed for each mouse at intervals of more than 5 minutes to obtain a mean score.

Hot plate test

Hot plate test was conducted in accordance with previously established protocols50. Mice were positioned on a 52 °C hot plate enclosed by four Plexiglas walls and a lid to prevent escape. The latency to the first instance of licking the left hindpaw was recorded.

Spontaneous pain

To assess spontaneous pain, individual mice were placed in transparent chambers with wire grid floors and recorded via video for 30 minutes. Subsequently, the video footage was played back in slow motion, and occurrences of licking and flinching, shaking, or lifting events involving the hindpaw were manually tallied. Movements associated with locomotion, body repositioning, and grooming were excluded from the count. Each bout of licking was scored as 2 points, while each bout of flinching, shaking, or lifting was scored as 1 point. The cumulative points obtained over the 30-minute recording period constituted the spontaneous pain score51.

Rotarod assay

We evaluated motor response and coordination through accelerating rotarod tests36,52. Each mouse was tested in two sessions, with three rotarod trials per session and a 3 h recovery interval between sessions, so that each mouse underwent six total trials per day. In the trial, individual mice were positioned on the rotarod and rotation speed accelerated from 0 to 40.2 rpm over a 300 s test period. Researchers recorded the duration each mouse spent on the rotarod. Mice were allowed 5 min recovery periods prior to each trial. The trial was halted when the mouse failed to maintain balance, defined as clinging to the rod for three consecutive rotations or falling off the rotarod altogether.

Locomotion assays

To assess changes or impairment in locomotion of the mice, we acquired gait image data of the hindpaw angles using a DigiGaitTM Imaging System (Mouse Specifics, Inc., USA). Prior to gait analysis, mice were trained to walk on a transparent treadmill for 5 min, once per day, over a three-day period. After completing the training period, mice were positioned on the treadmill and the running behavior of each mouse was recorded with the above imaging system. Statistical analyses were conducted on imaging data obtained in a 2 s interval of uniform running speed using the DigiGait Analyses software.

Itch behavior test

Mice were individually placed in a clear plastic chamber for at least 1 hour on 2 consecutive days for acclimatization. On the day of the behavioral test, the mice were again acclimated to the test chamber for 30 min. After intradermal injection of chloroquine (100 µg/10 µl, C6628, Sigma) into the cheek, scratching behaviors were recorded on video for 30 min. One bout of scratching was defined as an episode in which a mouse lifted its hindpaw and scratched for any length of time until the paw was placed back to the ground or to the mouth. After intradermal injection of chloroquine into the forepaw, a digital video camera was used to record the itch-induced biting behavior. One bout of biting was defined as an episode in which a mouse lifted its forepaw and bit the injection site continuously until the paw was leave mouth53,54. Slow-motion playback of the video was used to quantification of the number of scratching or biting bouts.

Activity-dependent cell labeling

To achieve activity-dependent labeling of neurons during pain-induced analgesia, we habituated all mice daily for at least 3 days to ensure full adaptation to the test room before TRAP labeling. Subsequently, the mice received an intraperitoneal (i.p.) injection of 4-Hydroxytamoxifen (4-OHT, 50 mg/kg in corn oil; Sigma-Aldrich), followed by an injection of 10 μl capsaicin into either the left forepaw, right forepaw, or cheek, 30 minutes later. For enabling Cre-dependent viral expression in active S2 or contralateral S2 neurons, FosTRAP2 mice received an intraperitoneal injection of 4-OHT two weeks after viral injection, preceding capsaicin administration into the forepaw. Following two weeks of viral expression, the mice were prepared for further experiments.

Stereotaxic surgeries and viral injections

After administering an intraperitoneal injection of pentobarbital (20 mg/kg), mice were anesthetized, with a heating pad used to maintain body temperature. Following this, the hair was shaved, and the head was securely fixed in a stereotaxic device (RWD, Shenzhen, China). The scalp was then incised to expose the skull, and adjustments were made to ensure proper skull alignment in all planes.

Subsequently, with the injection site visible under the stereoscope, the skull was perforated using a hand drill. Virus injection followed, employing a syringe fitted with a pulled glass microelectrode and connected infusion pump (micro 4, WPI). A volume of 100–300 nl virus was injected into the target area at a rate of 35 nl/min. Throughout the injection process, the pipette remained at the injection site for 5 minutes to prevent virus diffusion.

For anterograde trans-monosynaptic tracing, we injected rAAV-Ef1α-DIO-EGFP-T2A-TK-WPRE-hGHpA (AAV-DIO-TK, AAV2/9, 5.66E × 1012 vg ml−1, 200 nl, BrainVTA) into the S2 at coordinates of ML (medial-lateral) −4.20 mm, AP (anterior-posterior) −0.95 mm, DV (dorsal-ventral) −1.55 mm from bregma. One week following 4-OHT injection, HSV-ΔTK-LSL-tdTomato (HSV-ΔTK-tdTomato, 1.00E + 09 PFU/mL, 200 nl, BrainVTA) was injected into the same location of the S2. After allowing 7 days for viral expression, the mice were perfused, and their brains were cryosectioned to examine the tdTomato signals originating from the S2 neurons. For the sparse labeling strategy, AAV2/1-hSyn-Cre-WPRE-pA (AAV-hSyn-Cre, 2.1E × 1013 vg mL−1, 180 nl, BrainVTA) was injected into the contralateral S2, while rAAV-EF1a-DIO-Ypet-2A-mGFP-WPRE-pA (AAV-DIO-Ypet, 5.18 E × 1012 vg mL−1, diluted 1:1000, 180 nl, BrainVTA) was injected into the S2.

For retrograde trans-monosynaptic RV tracing, we unilaterally injected a helper virus containing rAAV-Ef1α-DIO-RVG-WPRE-pA (AAV-DIO-RVG, AAV2/9, 2 × 1012 vg ml−1) and rAAV-EF1α-DIO-EGFP-T2A-TVA (AAV-DIO-EGFP, AAV2/9, 2 × 1012 vg ml−1; 1:1, 200 nl, Brain Case) into the S1HL (ML −1.6 mm, AP −0.48 mm, DV −4.3 mm) of CaMKII-cre mice or GAD2-cre mice. Three weeks later, RV-EnvA-ΔG-DsRed (2 × 108 IFU ml−1, 300 nl) was injected into the S1HL using identical conditions and coordinates. Seven days after the last injection, we perfused the mice and prepared brain slices for tracing the DsRed signal or performing immunohistochemistry with glutamate-specific or GABA-specific antibodies. For triple tracing, we injected retro-AAV-hSyn-Cre-WPRE (retro-AAV-hSyn-Cre, 200 nl, BrainVTA) into the S1HL of C57BL/6 J mice, and infused the Cre-dependent mixed helper virus into the ipsilateral S2. Three weeks later, we injected RV-DsRed into the same location of the S2. After 10 days, we prepared brain slices for tracing the DsRed signal.

For optogenetic manipulation, we delivered the Cre-dependent virus rAAV-Ef1α-DIO-hChR2 (H134R)-mCherry-WPRE-pA (AAV-DIO-ChR2-mCherry, AAV2/9, 1.63 × 1013 vg/ml, 200 nl, BrainVTA) into the S2 of FosTRAP2 mice or the S1HL of GAD2-cre mice. After three weeks, we detected the expression of mCherry throughout the whole brain. For chemogenetic manipulation, we used the rAAV-Ef1α-DIO-hM4D(Gi)-mCherry-WPRE-pA (AAV-DIO-hM4Di-mCherry, AAV2/9, 3.69 × 1013 vg/ml, BrainVTA) viruses and implantation of the cannula in the downstream brain region. After viral expression, we administered CNO (1 mg/kg, Sigma-Aldrich, USA) intraperitoneally or delivered CNO (3 µM) by the implanted cannula, followed by pain-related behavior tests. The rAAV-Ef1α-DIO-mCherry-WPRE-pA (AAV-DIO-mCherry, AAV2/8, 8.93 × 1012 vg/ml, BrainVTA) virus served as the control.

For in vivo single-cell Ca2+ imaging, we injected the Cre-dependent AAV-DIO-GCaMP6m virus (1.0 × 1013 vg mL−1, 200 nl, Brain Case) into the contralateral S2 and S2, and introduced the CaMKII-dependent fluorescent Ca2+ indicator GCaMP6m (AAV-CaMKII-GCaMP6m) into the S1HL of FosTRAP2 mice. To simultaneously profile the calcium signals of S2 and S1HLGlu neuronal activity during pain-induced analgesia, we utilized an integrated microendoscopic GRIN lens (0.5 mm in diameter × 4 mm in length, Inscopix). The lens was tilted 20° to the left and slowly lowered (100 μm /min) towards S1HL, and then tilted 20° to the right and slowly lowered towards S2, ensuring that two lenses were implanted in a single mouse.

To achieve the correct spatial arrangement of simultaneously implanted lenses in bilateral S2 and S1 within a single mouse, we positioned the lenses at a 20-degree tilt using the following detailed steps: After virus injection, we used a stereotaxic device (RWD, Shenzhen, China) to tilt the baseplate of a 7.3 mm lens by 20° to the lateral side (left) for implantation in the left hemisphere of S2. After fixation with tissue glue and dental cement, we tilted the baseplate of a 4.0 mm lenses to the right by 20° for implantation into the right hemisphere of S2, and fixed this baseplate to the skull with tissue glue and dental cement. Finally, we tilted the baseplate of a 7.3 mm lens 20° to the left for implantation into the right hemisphere of the S1HL.

All mice underwent transcardial perfusion with ice-cold 0.9% saline followed by 4% paraformaldehyde (PFA). We obtained images of signal expression using a confocal microscope (FV3000, Olympus). Animals with missed injections were excluded from data analysis in this part.

Optogenetic and chemogenetic manipulation

Following optogenetic viral injections, we implanted an optic fiber into the S1HL or S2 of anesthetized mice. We used tissue glue and dental cement to firmly attach the embedded optical fiber to the skull. The embedded fibers, with a diameter of 200 μm (Newdoon, China), were connected using optic fiber sleeves to a laser generator. Mice were allowed to recover for at least 2 weeks before the experiment. We handled the mice daily for at least 3 days before behavioral experiments. On the day of the experiment, we anesthetized the mice with isoflurane to connect the chronically implanted fibers, with a diameter of 200 μm (Newdoon), to a laser generator using optic fiber sleeves. Next, we delivered yellow light (594 nm, 5–8 mW, constant), controlled by a Master-8 pulse stimulator (A.M.P.I.), for optogenetic inhibition. For chemogenetic manipulation, mice received intraperitoneal injections of the chemical ligand CNO (5 mg/kg, Sigma) under isoflurane anesthesia. Behavior tests were conducted 30 minutes later.

Microendoscope imaging

Three weeks after virus infection and GRIN lens implantation, we attached a miniature fluorescent microscope (Inscopix, USA) to the baseplate of the GRIN lens. The mice acclimatized to the weight of the lens in a freely movable test chamber for 15 minutes three times a day before formal data collection. We recorded final data for 10 minutes before the CFA mice received the capsaicin injection as a baseline, and then recorded for 10 minutes after the capsaicin injection. After chemogenetic inhibition of the contralateral S2 or S2 neurons, we recorded final data for 10 minutes before the mice received the CNO injection as a baseline, and then recorded for 10 minutes after the CNO injection.

To ensure tracking of the same neurons across different time points, longitudinal registration was conducted using Inscopix software and a custom script in MATLAB, as previously described55. This method utilizes a probabilistic approach based on the centroid distance of adjacent cell pairs from different time periods and the Pearson correlation between their spatial footprints to determine whether they represent the same entity.

The raw Ca2+ data underwent preprocessing using Mosaic software (Inscopix) and custom-written scripts in MATLAB as previously described12 (https://github.com/mukamel-lab/CellSort). In brief, the imaging data were 2× temporally down-sampled and corrected for motion using the default settings within the software. Subsequently, the detected fluorescence signals were normalized by their time averaged mean value (ΔF/F calculation), followed by standard Principal Component Analysis (PCA)/Independent Component Analysis (ICA) using the software to extract the normalized Ca2+ fluorescence signal associated with individual cells. Finally, putative cells were manually sorted based on ΔF/F values and the cell morphology determined from the location of the source pixel. Calcium events of the soma were identified through spike inference, with calcium values exceeding a predefined threshold. Z-score were computed as (F(t)-Fm)/s.d., where F(t) represents the averaged fluorescence signal value at time t, and Fm and s.d. denote the mean and standard deviation of the ΔF values over a baseline period of the first 10 minutes.

Stimulus-evoked activity was assessed by aligning Ca2+ traces around the onset of scratching behavior or application of each mechanical stimulus. Average Ca2+ fluorescence traces for each trial were obtained for individual neurons by calculating the temporal Z-scores from −5 s to 10 s, wherein 0 represents the onset of stimulation. Z-scores were computed as F(t)-Fm)/s.d., in which F(t) represents the average fluorescence signal (DF) intensity at time t, and Fm and s.d. are the mean and standard deviation of DF values over the baseline period spanning −5 s to 0 s. All traces from the same experimental conditions were aligned and sorted by average change in Ca2+ fluorescence intensity for all the neurons. The mean activity traces were calculated by averaging trace values across of all neurons, with at least three trials for each stimulus type. Calcium events in the soma were obtained during 1 minute before and 2 minute after stimulation onset by identified through spike inference, with calcium values exceeding a predefined threshold.

In vitro electrophysiological recording

Brain slice preparation

Mice were deeply anesthetized with isoflurane, followed by intracardial perfusion with approximately 20 ml of ice-cold oxygenated N-methyl-D-glucamine artificial cerebrospinal fluid (NMDG ACSF) containing (in mM) 93 NMDG, 20 HEPES, 25 glucose, 30 NaHCO3, 10 MgSO4, 2.5 KCl, 1.2 NaH2PO4, 0.5 CaCl2, 1.2 NaH2PO4, 5 Na-ascorbate, 3 glutathione, 2 thiourea, and 3 Na-pyruvate (pH: 7.3–7.4, osmolarity: 300–305 mOsm/kg). Coronal slices (280 μm) containing the contralateral S2, S2, or S1HL were sectioned with a vibrating microtome (VT1200s, Leica, Germany) and initially incubated in oxygenated HEPES ACSF solution (28 °C) containing (in mM) 20 HEPES, 25 glucoses, 92 NaCl, 2.5 KCl, 1.2 NaH2PO4, 30 NaHCO3, 2 thiourea, 5 Na-ascorbate, 3 Na-pyruvate, 3 glutathione (GSH), 2 CaCl2, and 2 MgSO4 (pH 7.3–7.4, osmolarity 300–305 mOsm/kg) for at least 1 hour. Subsequently, the brain slices were transferred to a slice chamber (Warner Instruments, USA) for whole-cell recording and continuously perfused with oxygenated standard ACSF solution (32 °C) containing (in mM) 3 HEPES, 10 glucoses, 129 NaCl, 3 KCl, 2.4 CaCl2, 1.3 MgSO4, 1.2 KH2PO4, and 20 NaHCO3 (pH: 7.3–7.4, osmolarity: 300–310 mOsm/kg) at a rate of 2.5–3 ml/min. The temperature of the standard ACSF solution was maintained with an in-line solution heater (TC-344B, Warner Instruments, USA).

Whole-cell patch-clamp recordings

Neurons in regions of interest were visualized using a water immersion objective (×40) on an upright microscope (BX51WI, Olympus, Japan) equipped with interference contrast (IR/DIC) and an infrared camera connected to the video monitor. Whole-cell patch-clamp recordings were performed from visually identified contralateral S2, S2, or S1HL neurons. Patch pipettes were pulled from borosilicate glass capillaries (outer diameter, 1.5 mm, VitalSense Scientific Instruments Co., Ltd., Wuhan, China) using a four-stage horizontal puller (P1000, Sutter Instruments, USA). Signals were acquired after low-pass filtering at 2.8 kHz and digitized at 10 kHz using a Multiclamp 700B amplifier. Data were collected from neurons with appropriate input resistance (more than 100 MΩ) and series resistance (less than 30 MΩ) using Clampex 10 (Molecular Devices, Sunnyvale, CA).

Light-evoked response

Optical stimulation was conducted using a laser (Shanghai Fiblaser Technology Co., Ltd., China) through an optical fiber (diameter, 200 μm, Newdoon, China) positioned 0.2 mm above the surface of the target brain region. To validate the function of the AAV-DIO-ChR2-mCherry virus, mCherry-labeled neurons expressing ChR2 in FosTRAP2 mice were visualized and subjected to blue laser light. EPSCs were recorded at −70 mV following photo-stimulation of ChR2-expressing contralateral S2 neuronal fibers in the S2 slices. IPSCs were recorded at 0 mV after photo-stimulation of ChR2-expressing S2 neuronal fibers in the S1HL slices.

Immunohistochemistry and imaging

First, we deeply anesthetized the mice using isoflurane. Subsequently, they were perfused with ice-cold 0.9% saline and 4% paraformaldehyde (PFA). The brains were carefully extracted and placed in PBS containing 4% PFA at 4 °C for overnight storage. They were then incubated in 20% (w/v) sucrose until they sank, followed by 30% (w/v) sucrose until they sank. Coronal slices were cut to a thickness of 40 μm using a cryostat (Leica CM1860). For immunofluorescence, the sections were incubated with blocking buffer (0.5% Triton X−100, 5% donkey serum in PBS) for 1 hour at room temperature. Subsequently, the slices were treated with primary antibodies diluted in blocking solution, including anti-DsRed (1:200, rabbit, Takara), anti-glutamate (1:500, rabbit, Sigma), anti-GABA (1:500, rabbit, Sigma), anti-c-Fos (1:1000, rabbit, Cell Signaling Technology), anti-CUX−1 (1:500, rabbit, Atlas), and anti-NECAB1 (1:500, rabbit, Proteintech) at 4 °C for 24 hours. After washing with PBS three times for 5 minutes each, the slices were incubated with the corresponding fluorophore-conjugated secondary antibodies (1:500, Invitrogen) for 1.5 hours at room temperature. Finally, the slices were incubated in 4,6-diamidino-2-phenylindole (DAPI; 1: 2000, Sigma) in the last stage. The fluorescence signals were visualized by scanning and imaging the slices with a FV3000 microscope.

To compare brightfield image data from immunohistochemistry (IHC) analysis with tdTomato signals, IHC was conducted in the same slices after obtaining fluorescence signal data56,57. In detail, after capturing fluorescence images, slices were washed with running water until clear. Then, antigen retrieval was performed by submerging slices in citrate buffer (pH 6.0), followed by 10 min incubation in 3% hydrogen peroxide at room temperature. Slices were then rinsed 3 times in PBS, blocked with primary anti-c-Fos antibodies (1:1000, rabbit, Cell Signaling Technology) for 10 min and incubated at 4 °C overnight. Sections were then rinsed with PBS three times and incubated with streptavidin peroxidase and biotinylated goat anti-polyvalent antibody. DAB staining was used to visualize antibody signal, hematoxylin was used to stain nuclei, and lithium carbonate solution was used to add blue tint. Positively stained sections were converted to brown by transillumination under the microscope and negative controls comprised slices that were incubated without primary antibody. An Olympus BX43 light microscope (Olympus, Japan) was used to examine stained sections and Photoshop (CS6, Adobe) was used to register IHC signal from brightfield micrographs onto tdTomato fluorescence images.

Tissue clarity and morphological reconstruction

The mice brain was cleared using the CLARITY method with the Polymerization and electrophoresis cleaning equipment (Logos System), 12.5 mg of the polymerization initiator was added to a centrifuge tube containing 5 ml hydrogel solution and mixed thoroughly. The whole brain was immersed in the mixture and placed in a refrigerator at 4 °C for 24 hours. Subsequently, the centrifuge tube, with the lid removed, was placed in the polymerization system to react for 3 hours at 37 °C and 90 kPa. Following this, the brain was extracted and eluted three times with PBS for 1 hour each. The brain was then subjected to the electrophoresis cleaning system at 37 °C for 10 hours with a current of 1.2 A and a peristaltic pump speed of 100 rpm. The sample underwent cleaning with 1× PBS for 3 hours at 30-minute cycles in a 37 °C constant temperature shaker (40 rpm). Finally, the sample was immersed in 5 mL mounting solution at 37 °C and 40 rpm. After 8 hours, the sample was transferred to 10 mL fresh mounting solution for refractive index matching and left overnight. The cleared brain was imaged using Zeiss Lightsheet 7, equipped with two-sided ×5/0.1 NA illumination optics and ×5/0.16 NA detection optic, and the images were analyzed using Imaris software.

Statistics and reproducibility

GraphPad Prism 8 (GraphPad Software, Inc., USA) was used for analyses and graphing. Offline analyses of data from electrophysiological recordings were conducted using Clampfit software version 10.7 (Axon Instruments, Inc., USA). Inscopix data processing software (version 1.1.6) was employed for offline analyses of data from microendoscope recordings. For representative images and statistical data, each experiment has been repeated in at least three mice with multiple brain slices in the manuscript with consistent results. Whole-brain imaging experiments were performed 5 independent times (1 animal per group) with similar results.

The Shapiro-Wilk test was used to check the normality of data. A Nonparametric Mann–Whitney U test or Wilcoxon matched-paired signed rank test was performed if data were not normally distributed. We performed paired or unpaired two-tailed Student’s t-tests to compare data between two groups. For experimental groups with multiple comparisons, we utilized two-way ANOVA followed by post hoc analyses. Significance levels were indicated as *P < 0.05, **P < 0.01, and ***P < 0.001. P values less than 0.0001 are not provided as exact values. All results are presented as means ± SEM. All the statistical tests, significance analyses, number of individual experiments, and other relevant information for data comparison are specified in Supplementary Data 2.

Reporting summary

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