Abstract
Advances in optical imaging and fluorescent biosensors enable study of the spatiotemporal and long-term neural dynamics in the brain of awake animals. However, methodological difficulties and fibrosis limit similar advances in the spinal cord. Here, to overcome these obstacles, we combined in vivo application of fluoropolymer membranes that inhibit fibrosis, a redesigned implantable spinal imaging chamber and improved motion correction methods that together permit imaging of the spinal cord in awake behaving mice, for months to over a year. We demonstrated a robust ability to monitor axons, identified a spinal cord somatotopic map, performed months-long imaging in freely moving mice, conducted Ca2+ imaging of neural dynamics in behaving mice responding to pain-provoking stimuli and observed persistent microglial changes after nerve injury. The ability to couple in vivo imaging and behavior at the spinal cord level will drive insights not previously possible at a key location for somatosensory transmission to the brain.
This is a preview of subscription content, access via your institution
Access options
Access Nature and 54 other Nature Portfolio journals
Get Nature+, our best-value online-access subscription
$32.99 / 30 days
cancel any time
Subscribe to this journal
Receive 12 print issues and online access
$259.00 per year
only $21.58 per issue
Buy this article
- Purchase on SpringerLink
- Instant access to full article PDF
Prices may be subject to local taxes which are calculated during checkout






Similar content being viewed by others
Data availability
The 3D STL and STEP files of the side bars and stabilizing plate along with a 3D model and TIFF stack of the entire mouse body from one of our microCT scans (Fig. 1a) can be found via GitHub at https://github.com/basbaumlab/spinal_cord_imaging and Zenodo at https://doi.org/10.5281/zenodo.11660130 (ref. 86). Any future updates to the design or additional files will be published on those repositories. Due to dataset size, raw imaging data are available from the authors upon request.
Code availability
Code for processing Ca2+ imaging data is available as part of the CIAtah software package under an MIT license (see LICENSE file) via GitHub at https://github.com/bahanonu/ciatah. Code for LD-MCM (feature identification followed by control point motion correction), deformation correction using displacement fields and CS-MCM (cross-session motion correction) is integrated into CIAtah and any future updates will be published on that repository.
References
Sekiguchi, K. J. et al. Imaging large-scale cellular activity in spinal cord of freely behaving mice. Nat. Commun. 7, 11450 (2016).
Ju, F. et al. Long-term two-photon imaging of spinal cord in freely behaving mice. Preprint at bioRxiv https://doi.org/10.1101/2022.01.09.475306 (2022).
Cheng, Y. T. et al. In-vivo three-photon excited fluorescence imaging in the spinal cord of awake, locomoting mouse. In Frontiers in Optics 2016 https://doi.org/10.1364/FIO.2016.JTh2A.183 (Optica Publishing Group, 2016).
Shekhtmeyster, P. et al. Trans-segmental imaging in the spinal cord of behaving mice. Nat. Biotechnol. 41, 1729–1733 (2023).
Cheng, Y.-T., Lett, K. M. & Schaffer, C. B. Surgical preparations, labeling strategies, and optical techniques for cell-resolved, in vivo imaging in the mouse spinal cord. Exp. Neurol. 318, 192–204 (2019).
Iseppon, F., Linley, J. E. & Wood, J. N. Calcium imaging for analgesic drug discovery. Neurobiol. Pain 11, 100083 (2022).
Nelson, N. A., Wang, X., Cook, D., Carey, E. M. & Nimmerjahn, A. Imaging spinal cord activity in behaving animals. Exp. Neurol. 320, 112974 (2019).
Farrar, M. J. et al. Chronic in vivo imaging in the mouse spinal cord using an implanted chamber. Nat. Methods 9, 297–302 (2012).
Figley, S. A. et al. A spinal cord window chamber model for in vivo longitudinal multimodal optical and acoustic imaging in a murine model. PLoS ONE 8, e58081 (2013).
Wu, W. et al. Long-term in vivo imaging of mouse spinal cord through an optically cleared intervertebral window. Nat. Commun. 13, 1959 (2022).
Yarmolinsky, D. A. et al. Selective modification of ascending spinal outputs in acute and neuropathic pain states. Preprint at bioRxiv https://doi.org/10.1101/2024.04.08.588581 (2024).
Kerschensteiner, M., Schwab, M. E., Lichtman, J. W. & Misgeld, T. In vivo imaging of axonal degeneration and regeneration in the injured spinal cord. Nat. Med. 11, 572–577 (2005).
Fenrich, K. K. et al. Long-term in vivo imaging of normal and pathological mouse spinal cord with subcellular resolution using implanted glass windows. J. Physiol. 590, 3665–3675 (2012).
Mathis, A. et al. DeepLabCut: markerless pose estimation of user-defined body parts with deep learning. Nat. Neurosci. 21, 1281–1289 (2018).
Vercauteren, T., Pennec, X., Perchant, A. & Ayache, N. Diffeomorphic demons: efficient non-parametric image registration. Neuroimage 45, S61–S72 (2009).
Thévenaz, P., Ruttimann, U. E. & Unser, M. A pyramid approach to subpixel registration based on intensity. IEEE Trans. Image Process. 7, 27–41 (1998).
Ghosh, K. K. et al. Miniaturized integration of a fluorescence microscope. Nat. Methods 8, 871–878 (2011).
Binding, J. et al. Brain refractive index measured in vivo with high-NA defocus-corrected full-field OCT and consequences for two-photon microscopy. Opt. Express 19, 4833–4847 (2011).
Takahashi, T. et al. PEO-CYTOP fluoropolymer nanosheets as a novel open-skull window for imaging of the living mouse brain. iScience 23, 101579 (2020).
Lake, E. M. R. et al. Simultaneous cortex-wide fluorescence Ca2+ imaging and whole-brain fMRI. Nat. Methods 17, 1262–1271 (2020).
Mathis, A., Schneider, S., Lauer, J. & Mathis, M. W. A primer on motion capture with deep learning: principles, pitfalls, and perspectives. Neuron 108, 44–65 (2020).
Liu, C., Xu, J. & Wang, F. A review of keypoints’ detection and feature description in image registration. Sci. Program. 2021, 1–25 (2021).
Pnevmatikakis, E. A. & Giovannucci, A. NoRMCorre: an online algorithm for piecewise rigid motion correction of calcium imaging data. J. Neurosci. Methods 291, 83–94 (2017).
Thirion, J. P. Image matching as a diffusion process: an analogy with Maxwell’s demons. Med. Image Anal. 2, 243–260 (1998).
Reggiani, J. D. S. et al. Brainstem serotonin neurons selectively gate retinal information flow to thalamus. Neuron 111, 711–726.e11 (2023).
Ahanonu, B. & Corder, G. in Contemporary Approaches to the Study of Pain: from Molecules to Neural Networks (ed. Seal, R. P.) 217–276 (Springer, 2022).
Chan, K. Y. et al. Engineered AAVs for efficient noninvasive gene delivery to the central and peripheral nervous systems. Nat. Neurosci. 20, 1172–1179 (2017).
Schwinn, D. A., McIntyre, R. W. & Reves, J. G. Isoflurane-induced vasodilation: role of the α-adrenergic nervous system. Anesth. Analg. 71, 451–459 (1990).
Takahashi, Y. et al. Organization of cutaneous ventrodorsal and rostrocaudal axial lines in the rat hindlimb and trunk in the dorsal horn of the spinal cord. J. Comp. Neurol. 445, 133–144 (2002).
Odagaki, K., Kameda, H., Hayashi, T. & Sakurai, M. Mediolateral and dorsoventral projection patterns of cutaneous afferents within transverse planes of the mouse spinal dorsal horn. J. Comp. Neurol. 527, 972–984 (2019).
Swett, J. E. & Woolf, C. J. The somatotopic organization of primary afferent terminals in the superficial laminae of the dorsal horn of the rat spinal cord. J. Comp. Neurol. 231, 66–77 (1985).
Takahashi, Y., Chiba, T., Kurokawa, M. & Aoki, Y. Dermatomes and the central organization of dermatomes and body surface regions in the spinal cord dorsal horn in rats. J. Comp. Neurol. 462, 29–41 (2003).
Li, P. & Zhuo, M. Silent glutamatergic synapses and nociception in mammalian spinal cord. Nature 393, 695–698 (1998).
Basbaum, A. I. & Wall, P. D. Chronic changes in the response of cells in adult cat dorsal horn following partial deafferentation: the appearance of responding cells in a previously non-responsive region. Brain Res. 116, 181–204 (1976).
Merrill, E. G. & Wall, P. D. Factors forming the edge of a receptive field: the presence of relatively ineffective afferent terminals. J. Physiol. 226, 825–846 (1972).
Corder, G. et al. An amygdalar neural ensemble that encodes the unpleasantness of pain. Science 363, 276–281 (2019).
Corder, G. et al. Loss of μ opioid receptor signaling in nociceptors, but not microglia, abrogates morphine tolerance without disrupting analgesia. Nat. Med. 23, 164–173 (2017).
LaMotte, R. H., Shimada, S. G. & Sikand, P. Mouse models of acute, chemical itch and pain in humans. Exp. Dermatol. 20, 778–782 (2011).
Callahan, B. L., Gil, A. S. C., Levesque, A. & Mogil, J. S. Modulation of mechanical and thermal nociceptive sensitivity in the laboratory mouse by behavioral state. J. Pain 9, 174–184 (2008).
Roome, R. B. et al. Phox2a defines a developmental origin of the anterolateral system in mice and humans. Cell Rep. 33, 108425 (2020).
Daigle, T. L. et al. A suite of transgenic driver and reporter mouse lines with enhanced brain-cell-type targeting and functionality. Cell 174, 465–480.e22 (2018).
Ji, R.-R., Donnelly, C. R. & Nedergaard, M. Astrocytes in chronic pain and itch. Nat. Rev. Neurosci. 20, 667–685 (2019).
Donnelly, C. R. et al. Central nervous system targets: glial cell mechanisms in chronic pain. Neurotherapeutics 17, 846–860 (2020).
Guan, Z. et al. Injured sensory neuron-derived CSF1 induces microglial proliferation and DAP12-dependent pain. Nat. Neurosci. 19, 94–101 (2016).
Jung, S. et al. Analysis of fractalkine receptor CX3CR1 function by targeted deletion and green fluorescent protein reporter gene insertion. Mol. Cell. Biol. 20, 4106–4114 (2000).
Shields, S. D., Eckert, W. A. III & Basbaum, A. I. Spared nerve injury model of neuropathic pain in the mouse: a behavioral and anatomic analysis. J. Pain 4, 465–470 (2003).
Dietz, C. et al. Complex regional pain syndrome: role of contralateral sensitisation. Br. J. Anaesth. 127, e1–e3 (2021).
van Rijn, M. A. et al. Spreading of complex regional pain syndrome: not a random process. J. Neural Transm. 118, 1301–1309 (2011).
Kirillov, A. et al. Segment anything. In 2023 IEEE/CVF International Conf. Computer Vision (ICCV) 3992–4003 (IEEE, 2023).
Bommasani, R. et al. On the opportunities and risks of foundation models. Preprint at https://doi.org/10.48550/arXiv.2108.07258 (2021).
Lai, X. et al. LISA: Reasoning segmentation via large language model. In 2024 IEEE/CVF Conf. Computer Vision and Pattern Recognition (CVPR) 9579–9589 (IEEE, 2024).
Sun, J. J. et al. Self-supervised keypoint discovery in behavioral videos. In 2022 IEEE/CVF Conf. Computer Vision and Pattern Recognition (IEEE, 2022).
Tasci, T. Iterative Cell Extraction and Registration for Analysis of Time-Lapse Neural Calcium Imaging Datasets. PhD thesis, Stanford Univ. (2020); https://doi.org/10.25740/rt839xk2428
Emond, E. C., Bousse, A., Brusaferri, L., Hutton, B. F. & Thielemans, K. Improved PET/CT respiratory motion compensation by incorporating changes in lung density. IEEE Trans. Radiat. Plasma Med. Sci. 4, 594–602 (2020).
Cheng, Y.-T., Lett, K. M., Xu, C. & Schaffer, B. Three-photon excited fluorescence microscopy enables imaging of blood flow, neural structure and inflammatory response deep into mouse spinal cord in vivo. eLife 13, RP95804 (2024).
Zhang, T. et al. Kilohertz two-photon brain imaging in awake mice. Nat. Methods 16, 1119–1122 (2019).
Rodríguez, C. et al. An adaptive optics module for deep tissue multiphoton imaging in vivo. Nat. Methods 18, 1259–1264 (2021).
Xiao, S. et al. Large-scale voltage imaging in behaving mice using targeted illumination. iScience 24, 103263 (2021).
Streich, L. et al. High-resolution structural and functional deep brain imaging using adaptive optics three-photon microscopy. Nat. Methods 18, 1253–1258 (2021).
Scherrer, J. R., Lynch, G. F., Zhang, J. J. & Fee, M. S. An optical design enabling lightweight and large field-of-view head-mounted microscopes. Nat. Methods 20, 546–549 (2023).
Zhao, P. et al. MiniXL: an open-source, large field-of-view epifluorescence miniature microscope for mice capable of single-cell resolution and multi-brain region imaging. Preprint at bioRxiv https://doi.org/10.1101/2024.08.16.608328 (2024).
Fink, E. A. et al. Structure-based discovery of nonopioid analgesics acting through the α2A-adrenergic receptor. Science 377, eabn7065 (2022).
Yekkirala, A. S., Roberson, D. P., Bean, B. P. & Woolf, C. J. Breaking barriers to novel analgesic drug development. Nat. Rev. Drug Discov. 16, 545–564 (2017).
Alsulaiman, W. A. A. et al. Characterisation of lamina I anterolateral system neurons that express Cre in a Phox2a-Cre mouse line. Sci. Rep. 11, 17912 (2021).
Hachisuka, J. et al. Semi-intact ex vivo approach to investigate spinal somatosensory circuits. eLife https://doi.org/10.7554/eLife.22866 (2016).
Warwick, C. et al. Cell type-specific calcium imaging of central sensitization in mouse dorsal horn. Nat. Commun. 13, 5199 (2022).
Chisholm, K. I. et al. Encoding of cutaneous stimuli by lamina I projection neurons. Pain 162, 2405–2417 (2021).
Wercberger, R., Braz, J. M., Weinrich, J. A. & Basbaum, A. I. Pain and itch processing by subpopulations of molecularly diverse spinal and trigeminal projection neurons. Proc. Natl Acad. Sci. USA 118, e2105732118 (2021).
Chen, C. et al. Long-term imaging of dorsal root ganglia in awake behaving mice. Nat. Commun. 10, 3087 (2019).
Turecek, J. & Ginty, D. D. Coding of self and environment by Pacinian neurons in freely moving animals. Neuron 112, 3267–3277.e6 (2024).
Feng, G. et al. Imaging neuronal subsets in transgenic mice expressing multiple spectral variants of GFP. Neuron 28, 41–51 (2000).
Fenno, L. E. Comprehensive dual- and triple-feature intersectional single-vector delivery of diverse functional payloads to cells of behaving mammals. Neuron 107, 836–853.e11 (2020).
Feldkamp, L. A., Davis, L. C. & Kress, J. W. Practical cone-beam algorithm. J. Opt. Soc. Am. A 1, 612–619 (1984).
Bonin, R. P., Bories, C. & De Koninck, Y. A simplified up-down method (SUDO) for measuring mechanical nociception in rodents using von Frey filaments. Mol. Pain 10, 26 (2014).
Chaplan, S. R., Bach, F. W., Pogrel, J. W., Chung, J. M. & Yaksh, T. L. Quantitative assessment of tactile allodynia in the rat paw. J. Neurosci. Methods 53, 55–63 (1994).
Li, Y. et al. Neuronal representation of social information in the medial amygdala of awake behaving mice. Cell 171, 1176–1190.e17 (2017).
Liu, W. et al. Fast and accurate motion correction for two-photon Ca2+ imaging in behaving mice. Front. Neuroinform. 16, 851188 (2022).
Hattori, R. & Komiyama, T. PatchWarp: corrections of non-uniform image distortions in two-photon calcium imaging data by patchwork affine transformations. Cell Rep. Methods 2, 100205 (2022).
Mukamel, E. A., Nimmerjahn, A. & Schnitzer, M. J. Automated analysis of cellular signals from large-scale calcium imaging data. Neuron 63, 747–760 (2009).
Kitch, L. J. Machine Learning Meets Mammalian Learning: Statistical Tools for Large-Scale Calcium Imaging and the Study of Changing Neural Codes. PhD thesis, Stanford Univ. (2015).
Ahanonu, B. O. Neural Ensemble Dynamics in Behaving Animals: Computational Approaches and Applications in Amygdala and Striatum. PhD thesis, Stanford Univ. (2018); https://doi.org/10.25740/vh359hb5216
Dinc, F. et al. Fast, scalable, and statistically robust cell extraction from large-scale neural calcium imaging datasets. Preprint at bioRxiv https://doi.org/10.1101/2021.03.24.436279 (2021).
Frangi, A. F., Niessen, W. J., Vincken, K. L. & Viergever, M. A. in Medical Image Computing and Computer-Assisted Intervention—MICCAI’98 (eds Wells, W. M. et al.) 130–137 (Springer, 1998).
Longo, A. et al. Assessment of hessian-based Frangi vesselness filter in optoacoustic imaging. Photoacoustics 20, 100200 (2020).
Dougherty, R. & Kunzelmann, K.-H. Computing local thickness of 3D structures with ImageJ. Microsc. Microanal. 13, 1678–1679 (2007).
Long-term optical imaging of the spinal cord in awake, behaving animals: design files and microCT data. Zenodo https://doi.org/10.5281/zenodo.11660130 (2024).
Acknowledgements
We thank the following colleagues for materials and assistance. A. Nimmerjahn and D. Duarte (Salk Institute) for demonstrating their spinal cord setup. A. Gottlieb and Random Technologies for generously gifting Teflon AF material. D. Bernards and T. Desai (UCSF) for helping with the plasma treatment of Teflon AF. Y. Seo and R. Tang (UCSF) for help conducting microCT experiments in the MicroPET/CT, MicroSPECT/CT, MicroCT and Optical Imaging center. MicroCT experiments reported in this publication were supported in part by the Office of the Director, NIH under grant S10OD012301. D. Larson (UCSF) for help optimizing one- and two-photon imaging and microscope maintenance. Data were collected at the Center for Advanced Multiphoton Microscopy with support from the Kavli Institute. K. Herrington and S. Yeon Kim (UCSF) for microscope testing and maintenance help. B. Tiret, P. Schuette and Inscopix, a Bruker company, Mountain View provided the LScape module for nVue 2.0 system. We thank S. Ho (UCSF, Biomaterials and Bioengineering Correlative Microscopy Core) and B. Lee (UCSF) for helping collect scanning electron micrographs of Teflon AF 2400 and PRECLUDE. E. Lam (UCSF) provided help and advice on machining and 3D printing. We thank the following people for reagents and mice. D. McDonald and P. Baluk (UCSF) provided low-magnification objectives. S. Puente and I. Delgado of VICI Metronics helped distribute Teflon AF. W. Xin and J. Chan (UCSF) provided Thy1–YFP-H mice. H. Su and R. Liang (UCSF) provided Thy1–GFP-M mice. B. Roome (McGill University) sent the Phox2a–Cre mouse line. This work was supported by NIH NSR35097306 (A.I.B.), Open Philanthropy (A.I.B.), DARPA 9691 (A.I.B.), HHMI Hanna H. Gray Fellowship (B.A.), NIH R35 NINDS Supplement Funding (B.A.), NIH F32 5F32DE029384 (A.C.), Canadian Institutes of Health Research (PJT-162225, MOP-77556, PJT-153053 and PJT-159839) (A.K.) and NSF Graduate Research Fellowship 2034836 (M.R.C.).
Author information
Authors and Affiliations
Contributions
B.A., A.C. and A.I.B. designed the project and wrote the manuscript. A.C. and B.A built the instrumentation for surgery and imaging and developed the surgical and imaging protocols. A.C. and B.A. performed surgeries, histology, imaging, image processing and data analysis. B.A. developed and tested the motion correction algorithms and performed animal behavior. M.R.C. assisted with experiments and manuscript preparation and created the supplementary surgery videos. A.K. provided the Phox2a–Cre mouse line.
Corresponding author
Ethics declarations
Competing interests
The authors declare no competing interests.
Peer review
Peer review information
Nature Methods thanks the anonymous reviewers for their contribution to the peer review of this work. Primary Handling Editor: Nina Vogt, in collaboration with the Nature Methods team.
Additional information
Publisher’s note Springer Nature remains neutral with regard to jurisdictional claims in published maps and institutional affiliations.
Extended data
Extended Data Fig. 1 Awake spinal imaging experimental overview and designs.
a, Spinal cord imaging workflow. Several steps, such as microCT validation, are optional. b, Spinal implant chamber components: 3D printed and laser cut stainless or mild steel side bars, stabilizing plates, and the protective snap-on cover. Scale bar, 1 cm. c, Spinal cord surgery setup made from commercially available components and 3D printed parts, see Supplementary Table 4 for a parts list. d, Side bars technical diagram; units in mm. e, Stabilizing plate technical diagram; units in mm. f, Several (#1–6) iterative designs (top row, CAD; bottom row, real image) of the stabilizing plate with different positioning of the clamping/handling tabs. Side bars are included for size comparison. Scale bar, 1 cm. g, Horizontal view of the spinal cord implant chamber and optional screws (3D model). h, Spinal implant chamber (see f) with miniature screws. i, Protective cover for the spinal window (3D model); colors as in Fig. 1a. i”, magnified view of the cover (semi-transparent for visualization) on the spinal implant. j, Technical diagram of side bar cover; units in mm. k, Coronal view of an implant. Screws are optional. Note the dorsal-oriented attachment of the metal chamber components (red and blue pieces) to the T12-L1 vertebrae, compared to prior strategies (green pieces). Side clamps are used to manipulate the chamber during surgery and imaging. Colors for items are the same as in Fig. 1a. l, Survival curves (Kaplan-Meier estimator), as in Fig. 1g, illustrate the fibrosis onset probability PRECLUDE + Teflon AF (n = 36) or only Kwik-Sil (n = 10) surgeries; Kwik-Sil curve is not at zero (blue arrow) as n = 2 mice were fibrosis free or deceased at time of analysis. Censored data points indicate mice that died (X) or are still alive (circle) at the time of analysis. The purple arrow indicates time points with multiple alive mice.
Extended Data Fig. 2 Blueprint of chamber implantation and fluoropolymer characterization.
a, Vertebral anatomy, using actual mouse vertebrae, critical to the chamber implantation procedure, including the lamina (blue shading), dorsal spinous process (DSP, red circle), and facet joint (green circle). b, Horizontal view of the T12-L1 vertebrae of the spinal column (3D microCT reconstruction). Note: only the two circled facet joints are surgically exposed and rest above the side bars after correct placement. c, Side bar edges are manually tapered by a grinding wheel before implantation. Scale bar, 1 mm. d, Side view showing an implant. Note the dorsal-oriented attachment of the side bar. e, Spinal process needles are superglued to the side bars (red dots) and dental cement covers the implant (yellow) with the T13 lamina kept cement free for laminectomy. f, Spinal process needles bore through the DSP of T12 and L1 (solid blue circles). g, Spinal column dissection of a chamber-implanted mouse showing chamber components placement at T13. h, The lateral offset (solid red line) of the laminectomy is critical for dorsal horn imaging. i, Cross-section of the T13 vertebra (microCT micrograph). Red lines: lateral extent to which the T13 lamina is transected during laminectomy, to access the dorsal horn. j, Scanning electron micrographs (SEM) of PRECLUDE. Magnifications (top-left to bottom-right): 136X, 281X, 1180X, 3400X, 8850X, 30830X. k, SEM of Teflon AF 2400. Yellow line: edge of Teflon. Magnifications (top-left to bottom-right): 42X, 387X, 1490 K X, 4460X. Each micrograph (j-k) is from a single piece of PRECLUDE (j) or Teflon AF 2400 (k). We observed a similar Teflon AF 2400 texture across 5 other independent samples. l, PRECLUDE and Teflon AF confocal micrographs demonstrate transparency and minimal autofluorescence of Teflon AF. Brightness and contrast matched across images in l”. Scale bar, 2 mm. m, Mean projection image from one-photon imaging of 1-µm yellow-green microspheres with or without Teflon AF; brightness and contrast matched. Scale bar, 20 µm. n, Two-photon imaging of the same microsphere slide as in m. Arrows indicate the beads used for the measurements in o. Scale bar, 20 µm. o, Profile through 10 beads matched in two-photon imaging (as in n) with and without Teflon AF.
Extended Data Fig. 3 Validation of spinal implant with microCT, animal health, and behavior.
a, 3D printed phantom of skull and spinal column. To evaluate impact on microCT scans, a 3D printed spinal chamber (Surgical Guide) is implanted with different cements and metallic screws. b, Horizontal view from microCT scan of phantom in a. Yellow bars: acquisition planes with reconstruction artifacts due to metallic screws; cyan arrows highlight reduced reconstruction of spinal chamber and column. Scale bars, 2 mm. c, Coronal view of scan as in b shows metal screw details and artifact scan lines. Scale bars, 2 mm. d, Coronal sections of the phantom without (left) and with (right) metal screws in the acquisition plane. Scale bar, 2 mm. e, Coronal section from microCT scan (resolution: 20 μm) of a dissected mouse spinal column, placed inside a 3D printed test piece, using the same material (BioMED Clear) as for the 3D printed spinal chamber. Scale bar, 2 mm. f, Off-axis and sagittal views of 3D reconstructed microCT scan as in e. g, Pipeline for 3D reconstruction of microCT scans. h, Coronal view of mouse with 3D printed spinal chamber showing an acquisition plane at the T13 laminectomy location. Scale bar, 2 mm. i, 3D reconstruction of the mouse in Fig. 1h-j and h with bone (gray), spinal chamber (blue), and glass coverslip (red). Inset: magnified view highlights the T13 laminectomy and spinal chamber. j, Change in weight of an additional cohort of individual animals after chamber implant. Two mice, ‘2’ and ‘3’, are replotted from Fig. 1l. k, Model error (sum of score map cross-entropy and body part location L1-distance losses) as a function of DeepLabCut iterations for model trained (600,000 iterations) using data from 3 mice in an open field. l, Mean (per animal) latency to fall in all three trials on an accelerating rotarod, comparing naïve (n = 14) and different post-surgery times (n = 12/8/8, 2, 10, 5, 5, 5, 5). Error bars are mean ± SD. Two-way ANOVA including all trials followed by one-way ANOVA with Dunnett post-hoc per trial (one star, P < 0.05).
Extended Data Fig. 4 Histological analysis post chamber implant and laminectomy.
a, Examples of EGFP+ fluorescence in naïve (a) and post-surgical (a', a'', and a''') CX3CR1-EGFP mouse spinal cord whole mounts and immunohistochemistry (coronal sections) with Neurotrace and anti-GFAP. Scale bars, 500 µm (whole-mount) and 200 µm (coronal slices). b, Spinal cord dissection and histology of a CX3CR1-EGFP mouse 1 week after chamber implantation. The whole-mount image (left) shows dorsal root ganglia in relation to the implant and the associated spinal segments. b’, cross-sectional views of EGFP (green) and GFAP staining (red) show minimal gliosis near the implant. Scale bars, 1 mm (whole-mount) and 200 µm (coronal slices). c, Quantification of microgliosis in naïve mice (n = 2) along with those after spinal chamber implant (1 week, n = 1) and laminectomy (1 week, n = 1 and 1 month, n = 2).
Extended Data Fig. 5 Deep-learning feature detection and control point motion correction.
a, Comparison of reference frame 42 (cyan) to movement frame 804 (red, overlaid on cyan image) before and after LD-MCM motion correction. Scale bar, 300 µm. b, Example of DLC-identified vascular features used for cross-session registration (DLC model trained using day 41). Scale bar, 300 µm. c, Model error as a function of DLC iterations (500,000 iterations, n = 4 mice). d, Spearman’s correlation of each feature to other features in a movie from a Phox2a-Cre; Ai162 mouse. Green arrow, a feature that has reduced correlation with all other features and can thus be removed to improve motion correction. e, Point clouds with each dot (2001 frames) represents the rostrocaudal and mediolateral location of that feature on an individual frame during an imaging session (~6 min, 13.9 Hz, mouse from a). f, DLC tracks (1) large mediolateral shifts in the field of view (yellow arrow) and (2) camera errors that result in a split of the field of view (yellow line). Only showing features with confidence >0.1. Scale bar, 300 µm. g, Labeling (DeepLabCut, 20 frames from day 75) of vascular features in a Phox2a-Cre; Ai162 (GCaMP6s) mouse across 52 neural activity imaging sessions, spanning nearly 5 months. Scale bar, 300 µm. h, Feature locations (normalized to the session mean location) across 13 features tracked in raw and LD-MCM motion corrected movies.Green lines, frames shown in i. i, Frames before and after LD-MCM motion correction. Yellow dots: tracked features with the line showing connected features indicating improvement with LD-MCM. Scale bar, 300 µm. j, Performance of LD-MCM as a function of the number of features used for control point registration (n = 10 movies, n = 2 mice). Mean, median, and standard deviation calculated per movie for each combination of imaging session, parameter value, trial, and feature. Then the mean is taken across all features for the final displayed values (each data point). Boxplots in all figures display the 1st, 2nd (median), and 3rd quartiles with whiskers indicating 1.5*IQR; outliers are omitted.
Extended Data Fig. 6 Deformation-based motion correction using displacement fields.
a, Each motion correction method run on the movie (5,000 frames, 13.9 Hz) from a Phox2a-Cre; Ai162 (GCaMP6s) mouse displays 1: the mean of all movie frames, 2: combined numerical gradient in both lateral directions on the mean frame, 3: the standard deviation over all movie frames (hence visibility of neurons on left and right side of the spinal cord), and 4: ΔF/F frames. Arrows indicate areas of interest where differences between methods are most evident. b, 2D correlation coefficient of all frames to the mean frame of the movie (as in a) for displacement field motion correction compared to raw, TurboReg, and NoRMCorre. All movies (except raw) were spatially filtered to remove large magnitude, low-frequency changes in fluorescence, which artificially enhances correlations. c, Histogram of 2D correlation coefficients over all frames from b. d, Spearman’s rho of all frames to the mean frame of the movie (as in a) for displacement field motion correction compared to raw, TurboReg, and NoRMCorre. All movies (except raw) were spatially filtered to remove large magnitude, low-frequency changes in fluorescence, which artificially enhances correlations. e, Histogram of Spearman’s rho values over all frames from d.
Extended Data Fig. 7 Long-term imaging of cell bodies and axons in the spinal cord of awake mice.
a, Clarity of GFP+ axons (Thy1-GFP mouse) with increasing sCMOS camera exposure times (LED power held constant). Yellow box: magnified section on the right. Yellow arrows: features with increased signal and minimal blur at 10-ms exposure. As a trade-off between SNR and clarity, we used 5–20-ms exposure times. Scale bars, 300 and 50 µm. b, Frames cropped to highlight cross-session matched areas from individual imaging sessions from a Thy1-GFP animal. Scale bar, 200 µm. c, Spearman correlation coefficient to the mean frame of a raw movie from a Thy1-GFP mouse (as in b). d, Increase in tdTomato expression in the dorsal columns after retro-orbital injection of AAV-PHP.S-tdTomato. Day 56, shows 10- and 100-ms exposure. Scale bar, 300 µm. e, Near daily imaging of GFP and tdTomato fluorescence normalized to baseline (pre retro-orbital injection). Magnified view of Fig. 3m highlights tdTomato signal increase from baseline.
Extended Data Fig. 8 Transient angiogenesis and vascular dynamics in awake and anesthetized states.
a, Individual frames across imaging sessions show onset and reversal of angiogenesis in the spinal cord of a CX3CR1-EGFP mouse. Scale bar, 300 µm. b, Change in spinal cord vessel diameter between general anesthesia and awake states in a CX3CR1-EGFP mouse. Middle row illustrates the same frames after application of a Hessian-based Frangi vesselness filter that highlights the dorsal vein and a subset of dorsal ascending venules. These filtered images are used to calculate changes in vessel diameter. Scale bar, 300 µm. c, Procedure for determining diameter of dorsal vein and ascending venules: a Frangi filter was applied to highlight vessels and their local thickness was then calculated to determine vessel diameter. Example frames are illustrated across three major behavioral states of a Thy1-GFP mouse during a 25-min imaging session. Scale bar, 300 µm. d, Temporal change of vessel diameter and whole-frame fluorescence (normalized to 4-min awake baseline) within a single imaging session in a Thy1-GFP mouse before and after induction of general anesthesia (2% isoflurane). Same as Fig. 3p, but here additional right and left dorsal ascending venules are shown. e, Correlation of dorsal vein diameter and fluorescence during a 25-min imaging session across several behavioral states: awake (red), induction and maintenance of general anesthesia (green, isoflurane 2%), and waking up (emergence) from general anesthesia (blue). First order polynomial best-fit lines and R2 indicated by darker colored lines and associated text, respectively.
Extended Data Fig. 9 Behavior tracking of spinally fixed mice and freely moving spinal cord imaging with miniature microscopes.
a, Visibly opaque (black) infrared transmitting acrylic allows imaging of animal behavior using near-IR light sources and cameras, while blocking animal observation of experimenters (for example during stimulus delivery). b, Model error as a function of DeepLabCut iterations for a model trained using data from one mouse for each camera. Model training is terminated after 500,000 iterations, when the loss asymptotes. c, Part affinity fields for DeepLabCut networks across multiple cameras. d, Speed of individual body parts shows correlation of body part movement across cameras (#1–4). The mean speed across all cameras for each body part is used for display in Fig. 5g. Camera locations correspond to 1, left side of the body; 2, right side of the body; 3, right face; and 4, below the animal. Letters below each black arrow indicate the stimulus presented (C: cold; P: pinch; H; heat; A: air puff; S: sound); black bar denotes duration of the sound stimuli. e, 3D CAD of miniature microscope positioning above spinal implant chamber. f, Image of miniature microscope mounting (Inscopix, nVista). g, Image of miniature microscope mounting (Open Ephys, Miniscope V4.4). h, View of dorsal vein after procedure in g. Scale bar, 200 µm. i, Image of miniature microscope mounting in an awake animal (Inscopix, LScape module for nVue 2.0). j, Image of a miniature microscope mounted on the mouse using a clamp. k, Example of normal grooming behavior. l, Field of view from mouse in k. Scale bar, 200 µm. m, Ambulating mouse after mounting procedure in g. n, Locomotion of a mouse moving freely in an open field during spinal cord imaging (30 min, 10 Hz). Scale bar, 10 cm. o, Locomotor trace during the open field session in n. p, Multi-color miniature microscope imaging of both sides of the spinal cord 70 days after window placement in a Phox2a-Cre; Ai162 (GCaMP6s); Ai9 (tdTomato). Scale bar, 300 µm. q, Responses of SCPNsPhox2a (Phox2a-Cre; Ai162 [GCaMP6s]) to cold, hot, and air puff stimuli delivered to the left hindpaw during a ~1.8-hr continuous imaging session. Max projection of 5 s post-stimulus. Scale bar, 300 µm.
Extended Data Fig. 10 Imaging of spinal cord neuronal activity in awake and anesthetized animals.
a, Noxious stimulus-evoked SCPNPhox2a GCaMP6s activity in Phox2a-Cre; Ai162 (GCaMP6s) after 1st and 11th stimuli presentations in the same imaging session. Scale bar, 300 µm. b, Cell extraction outputs show cell (white, after manual sorting) compared to non-cell (red) outputs; the latter are excluded from further analysis. Scale bar, 300 µm. c, Activity of individual SCPNsPhox2a (GCaMP6s ΔF/F), as in a-b, on the left or right spinal cord during a single imaging session (5.61 min, 13.9 Hz). Black arrows point to noxious heat applied to the right hindpaw. d, Extended recording session (25.47 min, 20 Hz) for mouse as in Fig. 5d–g shows SCPNPhox2a stimulus-evoked activity (GCaMP6s) in response to 5 blocks of stimulus applications. e, ΔF/F processed GCaMP6s and raw tdTomato frames from Phox2a-Cre; Ai162 (GCaMP6s); Ai9 (tdTomato) mouse under general anesthesia (2% isoflurane) shows overlap in expression. Yellow arrows in e and g indicate the side that is stimulated. Scale bar, 300 µm. f, Activity of individual SCPNsPhox2a (GCaMP6s ΔF/F), as in e, on the left and right spinal cord during a single imaging session (7.74 min, 20 Hz) during application of various noxious and non-noxious stimuli. There is a ~2 min baseline period at the start of the session, prior to stimulus presentation. g, Same as e, except from a Phox2a-Cre; Ai162 (GCaMP6s) as in Fig. 5d-g. Scale bar, 300 µm. h, Same as f, but for the animal in g, during a single imaging session (6.72 min, 13.9 Hz). i, SCPNPhox2a activity (mean projection of ΔF/Fmin post-stimulus) after noxious heat applied to the left hindpaw across imaging sessions. Yellow dotted lines: dorsal vein. Yellow arrows: consistent SCPNPhox2a activity contralateral to the stimulated hindpaw. Insets: white arrows indicate enlarged areas showing consistent response of the same neurons across multiple imaging sessions. Scale bar, 300 µm. j, SCPNsPhox2a extracted (CELLMax) from individual awake animal imaging sessions (except day 8, which is under anesthesia) and aligned across days. Color indicates the same cell aligned across days; filled and open arrows indicate when that particular cell is or is not identified after cell extraction across imaging sessions, respectively. Scale bars, 100 µm.
Supplementary information
Supplementary Information
Supplementary Notes 1–14, Fig. 1–7, Tables 1–4 and references.
Supplementary Video 1
Behavior of mice with implanted spinal cord chambers. Top right: mice locomoting on a running disk. Bottom: mice in a home cage after chamber implant are very active.
Supplementary Video 2
Step-by-step guide for attachment of the spinal chamber to the vertebral column with playback speed for each surgical step indicated on top left.
Supplementary Video 3
Step-by-step guide for laminectomy and placement of the PRECLUDE membrane to inhibit fibrosis with playback speed for each surgical step indicated on top left.
Supplementary Video 4
Step-by-step guide for PRECLUDE removal, Teflon AF application and placement of circular glass coverslip window with playback speed for each surgical step indicated on top left.
Supplementary Video 5
MicroCT sagittal slices through a mouse with BioMed Clear spinal chamber implanted at T12–L1 and following laminectomy.
Supplementary Video 6
Three-dimensional rendering of microCT, postlaminectomy (T13), showing sequential removal of soft tissue (brown), spinal implant chamber (white) and glass window (red), leaving just the bone (gray).
Supplementary Video 7
Open field tracking of behavior postlaminectomy for DeepLabCut network trained (top row) and network naive (bottom row) movies.
Supplementary Video 8
Rostrocaudal shift motion correction using LD-MCM compared with TurboReg and NoRMCorre during SCPN recording in a Phox2a-Cre; Ai162 (GCaMP6s); Ai9 (tdTomato) mouse. The dots indicate features tracked using DeepLabCut in each movie and black bars indicate sections of no usable data.
Supplementary Video 9
Nonrigid deformation motion correction using displacement fields compared with NoRMCorre and TurboReg, during SCPN recording in a Phox2a-Cre; Ai162 (GCaMP6s); Ai9 (tdTomato) mouse.
Supplementary Video 10
Long-term imaging of a Thy1-GFP mouse after CS-MCM motion correction and with DeepLabCut tracking of vasculature features (colored dots).
Supplementary Video 11
Time-lapse imaging of increasing GFP and tdTomato expression before and after retro-orbital injection of AAV-PHP.eB-GFP and AAV-PHP.S-tdTomato.
Supplementary Video 12
Change in vasculature diameter and Thy1-GFP fluorescence during a single session (time bottom left, hours:minutes:seconds) as the mouse enters and exits general anesthesia (2% isoflurane).
Supplementary Video 13
Spinal cord somatotopic map identified using bulk GCaMP6s activity after stimulation of indicated caudal body parts in an Ai162 mouse injected with AAV2retro-hSyn-Cre into the spinal cord.
Supplementary Video 14
Awake spinal cord imaging session in response to noxious thermal and mechanical stimuli. Spinal cord projection neuron activity (Phox2a-Cre; Ai162 (GCaMP6s)) aligned to behavior from multiple camera angles (colored squares, body part tracking), locomotion (white, rotary encoder), head movement (cyan) and stimulus application (red).
Supplementary Video 15
Projection neuron activity across 20 days, before and after applying noxious heat to the right hindpaw (red bar on left side of movie). Days 7–8 are under isoflurane anesthesia.
Supplementary Video 16
Two-photon imaging of monocytes (CX3CR1-EGFP mouse under 2% isoflurane) showing multiple planes from the meninges to the spinal cord parenchyma (microglia) during a ~15 min session.
Supplementary Video 17
Time-lapse imaging for months of microglia dynamics before and after nerve injury (left hindpaw, SNI model) in a CX3CR1-EGFP mouse. The red regions indicate areas of greater fluorescence.
Rights and permissions
Springer Nature or its licensor (e.g. a society or other partner) holds exclusive rights to this article under a publishing agreement with the author(s) or other rightsholder(s); author self-archiving of the accepted manuscript version of this article is solely governed by the terms of such publishing agreement and applicable law.
About this article
Cite this article
Ahanonu, B., Crowther, A., Kania, A. et al. Long-term optical imaging of the spinal cord in awake behaving mice. Nat Methods 21, 2363–2375 (2024). https://doi.org/10.1038/s41592-024-02476-3
Received:
Accepted:
Published:
Issue date:
DOI: https://doi.org/10.1038/s41592-024-02476-3
This article is cited by
-
How microglia contribute to the induction and maintenance of neuropathic pain
Nature Reviews Neuroscience (2025)