Abstract
While the spinal cord is known to play critical roles in sensorimotor processing, including pain-related signaling, corresponding activity patterns in genetically defined cell types across spinal laminae have remained challenging to investigate. Calcium imaging has enabled cellular activity measurements in behaving rodents but is currently limited to superficial regions. Here, using chronically implanted microprisms, we imaged sensory and motor-evoked activity in regions and at speeds inaccessible by other high-resolution imaging techniques. To enable translaminar imaging in freely behaving animals through implanted microprisms, we additionally developed wearable microscopes with custom-compound microlenses. This system addresses multiple challenges of previous wearable microscopes, including their limited working distance, resolution, contrast, and achromatic range. Using this system, we show that dorsal horn astrocytes in behaving mice show sensorimotor program-dependent and lamina-specific calcium excitation. Additionally, we show that tachykinin precursor 1 (Tac1)-expressing neurons exhibit translaminar activity to acute mechanical pain but not locomotion.
Subject terms: Fluorescence imaging, Cellular neuroscience, Astrocyte, Ca2+ imaging, Sensory processing
Fluorescence imaging of the spinal cord poses challenges, including depth of imaging. Here the authors describe a custom microscope and chronically implanted microprism that enables multicolor translaminar imaging of sensory and motor evoked activity in behaving mice, and show that spinal astrocytes show sensorimotor program-dependent calcium excitation.
Introduction
The spinal cord plays crucial roles in somatosensation1–3. Genetic, pharmacologic, anatomical, and electrophysiological studies have revealed that specific somatosensory modalities, such as pain or proprioception, are linked to spatially restricted modules comprised of heterogeneous neuronal cell types. These modules reside in defined laminae, located at different depths from the spinal surface1–3. However, genetic and pharmacologic approaches lack the spatial and temporal resolution to investigate cellular activity patterns that underlie somatosensory computations and typically rely on overt behavioral phenotypes to define cell types’ functional roles. Histological methods can identify highly active neurons across spinal laminae (e.g., cFos expression) but generate only snapshots at discrete time points. Electrophysiological approaches are valuable for probing neuronal activity, but recordings in behaving animals from genetically defined cells across spinal laminae remain to be demonstrated. Emerging evidence also suggests that spinal astrocytes respond to different kinds of neural activity with calcium excitation and modulate pain signaling and motor function4–8. Astrocyte activity remains difficult to interrogate with the methods mentioned above.
Fluorescence imaging has recently allowed real-time measurement of neuronal and astrocyte activity in the spinal cord of behaving mice4. However, scattering and absorption restrict optical access to superficial dorsal horn regions. For example, the spinal gray matter is surrounded by thick myelin layers that are highly reflective across a wide wavelength range. This anatomical arrangement limits one- and two-photon imaging to about 75–150 μm and 150–350 μm depths, respectively, depending on the fluorescence indicator employed9. With three-photon microscopy, depths of about 350–500 μm can be achieved, but at the expense of acquisition frame rate, the field of view (FOV), or multi-color imaging capabilities10. Low acquisition frame rates are particularly detrimental to spinal cord recordings, as they hamper computational correction of tissue movement-induced image artifacts. The spinal cord’s large-amplitude and non-uniform tissue displacements typical during animal behavior are also the reason why electrophysiological recordings regularly used in other central nervous system regions have proven challenging9.
The implantation of micro-optics, such as gradient-index (GRIN) lenses, has allowed access to deep tissue regions in the brain. However, typical GRIN lens diameters (≥0.5 mm) are comparable to the spinal gray matter’s width in mice, preventing their insertion without undue tissue disruption. In contrast, glass reflective microprisms have enabled optical access to brain areas difficult if not impossible to reach otherwise, such as prefrontal and entorhinal cortex, and without tissue removal11–13. Whether and how a microprism-based approach could be applied to the spinal cord remains unclear.
Imaging through microprisms requires long working distance (WD) objectives. Current wearable microscopes for imaging in freely behaving animals typically rely on short WD ( < 1 mm) GRIN objectives, preventing high-resolution imaging through tissue-implanted microprisms9,14,15. The reliance on GRIN-based imaging optics also limits multi-color recording capabilities due to their narrow achromatic range (tens of nanometers)16.
These technical barriers in both surgery and imaging have prevented measurement of cellular activity in deep sensory and premotor areas and at high speed across spinal laminae of behaving animals, limiting our ability to uncover how the spatiotemporal activity patterns in genetically defined cell types contribute to sensorimotor processing. To address these long-standing challenges, here we introduce several innovations, including 1) a wearable microscope with custom-compound-microlenses allowing high-speed (45 fps), high-resolution and high-contrast (~1.5 μm), and multi-color (from the visible to near-infrared) imaging through tissue-implanted micro-optics (2.4-mm working distance), and 2) a surgical procedure that enables long-term activity measurements across spinal laminae using implanted microprisms. Using these methods, we show that tachykinin precursor 1 (Tac1)-expressing neurons respond rapidly to painful mechanical stimuli specifically in sensory dorsal horn laminae. In contrast, astrocytes showed delayed calcium transients to the same stimuli in sensory and motor-evoked activity in premotor areas, suggesting region-dependent (i.e., lamina- and neuronal environment-dependent) functional signaling within this glial cell population.
Results
Wearable microscopes with long working distance custom-compound-microlenses for high-resolution measurements in behaving mice
To meet the application needs mentioned above, as well as match or exceed the optical performance characteristics of comparable wearable devices, the design goals for our microscope’s optical system included a long working distance (>2 mm), high spatial resolution (1–2 μm across the field of view) and contrast (MTF10 < 1.5 μm), and a broad achromatic range (450–730 nm for the microlenses; 500–620 nm when using GFP- and RFP-like emission filters). Additional design parameters included an >0.4 numerical aperture, 5x magnification (corresponding to an ~900 μm × 700 μm field of view), and 20 mm track length.
Our optical design included six custom microlenses to meet these goals (Fig. 1a; Supplementary Table 1). The lens surface profile, radius of curvature, distance between surfaces, and glass types were optimized using Zemax modeling. A #0 coverslip (~100 μm thickness) was included in the design to minimize optical aberrations when imaging through live animal-implanted glass windows. Additionally, we accounted for a filter cube required for fluorescence imaging, placed in the collimated space between the lenses. Following optical modeling, the lenses, and brass spacers were fabricated and assembled into two custom-made barrel holders minimized in size and weight (Fig. 1b, c). Each assembled barrel weighed <0.2 g.
Next, we characterized the performance of the custom microlens system. Based on our Zemax calculations, the predicted lateral and axial point spread function (PSF) in the center of the field of view (FOV) was 0.56 μm and 5.16 μm, respectively. Experimentally, we measured 0.68 ± 0.01 μm and 7.85 ± 0.33 μm, indicating that lens fabrication and assembly only introduced minor errors (Supplementary Fig. 1). These measurements used a glass blank of similar thickness and composition in lieu of the filter cube, a separate potential source of aberrations. Our interchangeable filter cube consisted of multi-band excitation and emission filters, a custom multi-band dichroic beamsplitter, and two fused silica microprisms, joined together using an index-matching optical adhesive. This all-glass assembly minimized the refractive index mismatch at the dichroic’s interfaces, preventing a lateral beam offset and associated aberrations. A flexible PMMA fiber was used to deliver excitation light (Fig. 1a, c), providing flexibility in multi-color imaging applications. This design offers several advantages: a) It allows simultaneous coupling of multiple high-power light sources, such as DPSS lasers, enabling efficient excitation of co-expressed fluorophores (or opsins); and b) it provides flexibility in selecting functional reporters (and actuators).
To match the optical system’s high resolution, we chose a CMOS sensor with a 3.75 μm pixel spacing, corresponding to 0.69 μm at the object plane. This sensor, available in both RGB and monochrome versions, offered high sensitivity (5.48 and 6.7 V/lux-sec for the RGB and monochrome versions, respectively) and frame rates (45 fps at 1280 × 960-pixel resolution) and was mounted on a custom miniature printed circuit board (PCB) (Methods). Using a high-resolution microscopy target with spatial frequencies up to 3,300 lp/mm, we found that our integrated device had a limit of resolution (LOR) of 0.65 ± 0.06 μm and 0.84 ± 0.17 μm in the center and at the edges of the FOV, respectively (Fig. 1d, e). Using a regularly spaced grid target with 100 μm spacing, the FOV of our integrated system was 911 μm × 703 μm.
Next, to determine our microscope’s contrast limit, we measured the modulation transfer function (MTF) using the Slanted Edge test and MTF10 metric (i.e., contrast at 10%). Although MTF is frequently reported at 0%, in our experience, MTF values below 10% are affected by sensor noise limits and optical phase reversal. The MTF10 of our integrated device was 303 lp/mm sagittal (1.65 μm line width) and 373 lp/mm tangential (1.34 μm line width) in the center of the FOV (Supplementary Fig. 2).
To verify our microscope’s lateral resolution and contrast in vivo, we performed spinal cord imaging in anesthetized Cx3cr1-GFP mice with labeled microglia. Individual cell bodies (6–8 μm typical diameter) and processes were readily visible across the FOV (Supplementary Fig. 3a–c). Sequential wearable microscope and two-photon imaging in these and anesthetized wild-type mice, retro-orbitally injected with FITC-Dextran (2% w/v), revealed that our integrated device permits imaging up to 125 μm depths and offers an extended depth-of-field compared to multi-photon microscopes (Supplementary Figs. 3d–h, 4), promoting stable recordings from dynamic or curved tissues, such as the spinal cord. Spinal blood flow recordings in the FITC-Dextran-injected mice also allowed us to demonstrate the wearable microscope’s 45 fps temporal resolution (Supplementary Movie 1).
Our microscope’s working distance (WD) was determined to be 2.365 mm (from the edge of the objective barrel to the microscopy target in air) using a precision differential actuator and grid target. This long WD enables imaging through implantable micro-optics, such as microprisms (see below). Our fully assembled device measured 7 × 14 × 20 mm and weighed 2.96 grams, making it suitable for applications in mice. Together, these data demonstrate that our custom-compound-microlens system simultaneously provides high spatial resolution, contrast, and a long working distance while retaining the large field of view, small form factor, and low weight compared to existing wearable microscopes.
Multiplex imaging in behaving mice
Sensorimotor processing involves the dynamic interplay of numerous cell types’ activity. To evaluate our integrated system’s ability to perform multiplex measurements, we first imaged a monolayer of cell body-sized (15 μm) fluorescent micro-particles emitting three different spectral bands. As shown in Fig. 2a–c, the various colored microspheres could be brought into focus simultaneously, demonstrating the optical system’s low axial chromatic aberration across the FOV. To confirm this feature in a densely labeled environment, we imaged spinal tissue sections with neurons and astrocytes stained in two colors (Fig. 2d). The stained cells and their processes were readily distinguishable, further demonstrating our wearable device’s high resolution and contrast. As an additional test, we conducted multi-color imaging in behaving animals. GFAP-GCaMP6f mice, which constitutively express the green fluorescent calcium indicator GCaMP6f in astrocytes, were injected into the L3-L5 lumbar spinal cord with an AAV9-CaMKII-H2B-GCaMP7f-TagRFP vector, resulting in concurrent nuclear-localized GCaMP7f and TagRFP expression in excitatory neurons. Two to three weeks after the injection, we recorded noxious mechanical stimulus (tail pinch) evoked calcium activity in the superficial dorsal horn. To extract neurons’ and astrocytes’ evoked activity with minimal signal crosstalk (e.g., from out-of-focus cells), we defined computational exclusion criteria (e.g., TagRFP intensity level) to select appropriate regions of interest (ROIs) (Fig. 2e–g; Supplementary Fig. 5; Supplementary Movie 2; Methods). Consistent with our previous work4,9, astrocytes showed widespread calcium activity to noxious tail pinch (p > 500 g) across the FOV, while running alone did not evoke concerted excitation in the superficial dorsal horn. In contrast, calcium transients in excitatory neuron nuclei were sparse17, had lower signal amplitude, and preceded astrocyte excitation (Fig. 2g; Supplementary Fig. 5c; Supplementary Movie 2).
Together, these data demonstrate that our custom-compound-microlens system and integrated microscopes allow simultaneous imaging of at least three colors, including calcium activity in different genetically defined cell populations of behaving mice, all with a single image sensor.
Chronic translaminar imaging in the spinal cord of behaving mice through implanted microprisms
While wearable microscopes have uncovered sensory-evoked activity in the superficial dorsal horn of awake mice4, sensory activity in the spinal cord is not limited to these superficial regions. Measuring cellular activity in deeper and simultaneously across laminae at high speeds requires devices with sufficient WD to image through implanted micro-optics. To test our integrated system’s ability to enable such measurements, we first constructed tissue analogs in which reflective glass microprisms of different sizes were embedded (Fig. 3a–c) (Methods). These tissue phantoms also allowed us to quantify depth-dependent resolution and signal attenuation in a controlled scattering medium (Fig. 3d–o). Embedded cellular-size (6 μm diameter) fluorescent beads were readily visible up to ~350 μm distance from the vertical microprism face when imaging through a 0.7 mm × 0.7 mm × 0.7 mm (W × D × H) (Fig. 3b, e, h) or custom 0.7 mm × 0.7 mm × 1.7 mm microprism (Fig. 3c, f, i). The bead’s lateral full width at half maximum (FWHM) showed only modest depth degradation (Fig. 3n, o). Signal attenuation and vignetting depended on the amount of light cone clipping at the microprism edges (Fig. 3k, l).
Next, we developed a surgical approach for microprism-assisted high-speed imaging across spinal laminae in vivo (Fig. 4a, b), including regions inaccessible by other high-resolution techniques. We found that inserting a 0.7 mm × 0.7 mm × 0.7 mm microprism at the lateral interface between the spinal gray and white matter was associated with minimal loss of NeuN-positive neurons two to four weeks after implantation (Supplementary Fig. 6). Microglia and astrocyte inflammatory responses were transient and confined to regions near the microprism-tissue interface, steadily declining over the four-week implantation period (Supplementary Figs. 7, 8). Microprism-implanted mice did not show overt signs of sensory or motor deficits, as quantified by von Frey and kinematic weight-bearing tests (Supplementary Fig. 9). To estimate attainable imaging depths from the vertical microprism-tissue interface in vivo, we performed sequential wearable microscope and two-photon imaging in the lumbar spinal cord of anesthetized microprism-implanted Cx3cr1-GFP mice with labeled microglia (Supplementary Fig. 3d–h). Individual cell bodies and processes were readily visible at 75 μm and 125 μm focal depths.
Next, to determine whether this approach allows translaminar activity measurements in the spinal cord of behaving animals, we performed optical recordings in transgenic calcium indicator-expressing mice. Wearable microscope recordings were performed at 75 μm and 125 μm distance from the vertical prism face (Fig. 4a–c). Given these recording positions and the spinal cord’s known functional laminar arrangement, sensory stimuli and motor-evoked cellular activity would be expected to manifest in central and lower FOV regions, respectively (Fig. 4a, b; Supplementary Fig. 6), provided the investigated cells process corresponding sensorimotor information. To comprehensively quantify the spatial and temporal properties of cells’ activity patterns, we tiled the FOV with equally sized (10 μm × 10 μm) ROIs, excluding major blood vessel regions (Methods). We chose noxious tail pinch (p > 500 g) as sensory stimuli for comparison with our previous work4. Starting with GFAP-GCaMP6f mice (N = 5), we found that astrocytes exhibit calcium excitation across ~200 μm-wide central FOV regions (Fig. 4d–f; Supplementary Movie 3), corresponding to sensory laminae. This areal activation was remarkably robust across animals, suggesting high reproducibility of our surgical preparation (Fig. 4f). Population transients evoked by noxious pinch had a 3.34 ± 0.21 s onset latency (Fig. 4g, left) and 2.79 ± 0.09 s duration (Fig. 4h, right), whereas individual ROI transients lasted 2.2 ± 0.02 s (Fig. 4h, left). In contrast, running-evoked astrocyte excitation in the same mice occurred in ~300 μm-wide lower FOV regions (Fig. 4i–k; Supplementary Movie 4), likely corresponding to premotor areas. Average transients evoked by 2–4 s-long runs had 3.39 ± 0.19 s onset latency (Fig. 4g, right) and 2.75 ± 0.12 s duration (Fig. 4l, right), while individual ROI transients lasted 2.53 ± 0.03 s (Fig. 4l, left). Not every run triggered a response, particularly after short inter-run rest periods (Fig. 4j), an effect previously described for astrocytes in motor-related brain areas18,19.
Next, we performed imaging in Tac1-GCaMP6f mice (N = 3) with calcium indicator expression in Tac1-expressing neurons (Supplementary Fig. 10) involved in pain processing20,21. Noxious tail pinch (p > 500 g) evoked calcium excitation across ~300 μm-wide central FOV regions (Fig. 5a–c; Supplementary Movie 5). Average transients across ROIs had an 0.54 ± 0.06 s onset latency (Fig. 5d) and 3.29 ± 0.23 s duration (Fig. 5e, right), whereas individual ROI transients lasted 2.20 ± 0.02 s (Fig. 5e, left), indicating signal propagation within and across laminae (Fig. 5b; Supplementary Movie 5). Notably, unlike astrocytes, Tac1-expressing neurons did not show running evoked activity in premotor FOV areas (Fig. 5f–h).
Together, these data demonstrate that our approach provides real-time visualization of how different sensorimotor programs activate different cell types in spatially restricted dorsoventral regions of behaving mice. Astrocytes showed acute mechanical pain and motor-evoked calcium excitation in superficial and deep laminae, respectively. Tac1-expressing neurons responded to acute mechanical pain with distinct laminar activation. These neurons also did not respond to locomotion, making them unlikely contributors to astrocytes’ motor-evoked responses.
Discussion
In this study, we have developed methods for high-speed translaminar activity measurements from genetically defined cell types in the spinal cord of behaving mice. Using chronically implanted microprisms with a 700 μm FOV, we could image both sensory and premotor regions (Figs. 4, 5; Supplementary Movies 3–5). Our histological, behavioral, and functional data indicate that spinal microprism implantation is remarkably well tolerated by adult mice (Supplementary Figs. 6–10). To enable this translaminar imaging in behaving animals, we developed and thoroughly characterized wearable microscopes with custom-compound microlenses (Figs. 1–3; Supplementary Figs. 1, 2). This integrated system offers a 2.4 mm working distance, ~1.5 μm lateral resolution and MTF10 contrast, and 500–620 nm filter-limited achromatic range, thereby overcoming multiple challenges of previous wearable microscopes. The combination of these innovations allowed us to uncover that dorsal horn astrocytes in behaving mice show distinct sensorimotor program-dependent and lamina-specific calcium excitation (Fig. 4; Supplementary Movies 3, 4). In addition, we found that Tac1-expressing neurons exhibit translaminar activity to acute mechanical pain but not locomotion (Fig. 5; Supplementary Movie 5).
Most previous wearable one-photon microscopes, including our own4,22,23, rely on gradient-index lenses9,14,15. While the optical capabilities of these lenses have seen significant progress, performance limitations remain, such as their narrow achromatic range, short working distance, or variable resolution and contrast across the field of view16. Wearable one-photon microscopes with more traditional lens systems have emerged but tend to use few or off-the-shelf optical elements9,14,15, likely because of the difficulty of modeling, optimizing, or producing more complex compound-microlens systems, thereby constraining the number of desirable optical features that can be achieved concurrently. We, therefore, took an ab initio approach that involved paraxial calculations and Zemax modeling (Methods). Our custom-compound-microlens system provides a wide achromatic range (from the visible to near-infrared), high spatial resolution and contrast, and a long working distance (Figs. 1–3; Supplementary Figs. 1, 2).
Partly because of these technical limitations, previous imaging approaches could not record cellular activity across sensory and premotor areas, preventing vital biological questions from being addressed9. For example, recent gene expression and electrophysiological studies have indicated that astrocytes show lamina-specific properties7,24,25, raising questions about how this heterogeneity might be linked to differences in functional signaling. Our data show that acute pain and animal locomotor activity evoke astrocyte calcium excitation in distinct dorsal horn regions (Fig. 4), supporting astrocytes’ responsiveness and functional adaptation to region-specific neural circuits and signaling26. Likewise, genetic, immunohistological, and electrophysiological approaches have implicated Tac1-expressing neurons in pain signaling20,21. Our data show that noxious mechanical stimuli lead to rapid and widespread calcium activity across dorsal horn laminae in these neurons (Fig. 5; Supplementary Movie 5).
High-speed translaminar imaging was achieved by microprism implantation without tissue removal. Developing this approach for the spinal cord was a non-trivial endeavor given its small cross-sectional dimensions compared to the brain, the limited space within mouse vertebrae, and region-dependent tissue displacements during animal behavior4,27. We found that 0.7 mm × 0.7 mm × 0.7 mm microprisms provide an acceptable FOV while minimizing tissue disruption. No significant loss of neuronal cell bodies was observed 2–4 weeks after implanting microprisms at the lateral interface between the spinal gray and white matter (Supplementary Figs. 6, 10). Glial reactivity was transient and confined to regions near the tissue-microprism interface (Supplementary Figs. 7, 8). Sensory and motor tests before and after microprism implantation also revealed no overt behavioral deficits (Supplementary Fig. 9), and our calcium imaging data suggest that spinal neurons and astrocytes remain responsive to sensory input and motor actions (Figs. 4, 5). Astrocyte response properties to noxious tail pinch (e.g., onset latency, duration) were comparable to data from non-implanted mice4. Nevertheless, microprism implantation causes some circuit disruption (e.g., to white matter tracts near the implantation site) and should be considered in future biological applications on a case-by-case basis, as is generally advisable for any imaging approach that uses implanted micro-optics.
Repeated imaging through spinal cord-implanted microprism is feasible over at least four weeks. This recording period may enable the study of prolonged structural and functional biological processes, such as disease- or treatment-related dynamics (e.g., amyotrophic lateral or multiple sclerosis progression, transplanted neural stem cell integration, neuropathic pain)9,10,28,29. Optical recordings from the spinal ventral horn might be feasible with custom micro-optics. As demonstrated in Fig. 3, our wearable microscopes have sufficiently long WD to image through 0.7 mm microprisms with a 1 mm vertical extension, potentially allowing the study of motor neuron activity in relation to limb movement. Our surgical and optical methods may also apply to thoracic and cervical spinal cord regions, allowing the study of sensorimotor activity related to internal organ or forelimb function, though this will likely require the development of imaging chambers specifically adapted to the different vertebra anatomy in these regions. In addition, given the rapidly expanding number, color palette, and signal-to-noise ratio of genetically encoded indicators (e.g., for neurotransmitters, neuromodulators, and intracellular signaling)26,30, our wearable microscopes’ multiplex imaging capability might in the future enable the study of input-output relationships (e.g., modulation of local cellular activity by descending projection fibers from the brain that are disrupted or inactive in slice or anesthetized preparations). In summary, our surgical and optical techniques will enable a wide range of biological interrogations, providing unprecedented opportunities for elucidating cellular and molecular mechanisms of sensorimotor information processing in the spinal cord of behaving animals.
Methods
Miniature microscope design
Our wearable microscopes include six major components: the custom optics barrels (including six microlenses), fluorescence filter cube, main body, image sensor module, an illumination module, and base plate (Fig. 1a).
Optical design
The optical design was performed using Zemax optical modeling software and manual calculations. During the design phase, geometric distortion was deliberately allowed to increase to 5.7% to gain improvement across the other Seidel aberrations (spherical, coma, astigmatism, and field curvature). Our final optical design utilized six lens elements, each from a different type of glass and housed in two separate barrels (Optics Technology Inc.) (Fig. 1a; Supplementary Table 1).
The filter cube consisted of a custom 4.2 × 6.84 × 1 mm dual-band dichroic beamsplitter (59012-custom, Chroma Technology Corp.), 4.1 × 4.2 × 1.1/1.0 mm dual-band fluorescence excitation and emission filters (59012x and 59012 m, Chroma Technology Corp.), and two uncoated 4.2 × 4.2 × 4.2 mm fused silica prisms (Tower Optical Corp.). This all-glass filter cube configuration was designed to correct the lateral beam path offset and optical aberrations introduced by the dichroic beamsplitter. Dichroic beamsplitters are typically designed for 45-degree incidence from air. We, therefore, designed a custom coating that matched the 59012bs transmission spectrum allowing the filter to be used for a 45-degree incidence from glass. Filter cube assembly was done manually using index-matched UV-cure adhesive (NOA146H, Norland Products Inc.) to minimize internal reflections. The outside of the filter cube was painted with an oil-based paint marker (Sharpie) to absorb stray light reflections. An aperture stop deliberately introduced during barrel assembly to reduce optical aberrations decreased the effective NA from 0.46 to 0.41, resulting in a ~21% reduction in the light collection.
The illumination module was designed to hold a hand-polished poly(methyl methacrylate)-core (PMMA-core) multi-mode fiber (MMF) with 735 μm core and 0.51 NA (Eska, Mitsubishi International PolymerTrade Corp.). We selected a PMMA- instead of a silica-core MMF because its flexibility aided the animal’s mobility. The large core size and NA provided efficient light coupling (e.g., from LEDs). The illumination module also included a 1.4 mm 45°-fold-mirror, constructed from two 45°−45°−90° 1 × 1 × 1 mm microprisms with a reflective-coated hypotenuse (Tower Optical Corp.), mounted inside the module. The fold mirror was coupled to the optical fiber using index-matched UV-cure adhesive (NOA81, Norland Products Inc.), while the collector lens (45–664, Edmund Optics) was secured inside the microscope’s main body. The fold mirror allowed the MMF to be vertically coupled to the horizontal collector lens, an intentional design to also aid the animal’s mobility.
As the illumination sources, we either used two high-intensity table-top LEDs or lasers. The LED light source consisted of blue (470 nm) and yellow (554 nm) mounted LED packages (M470L4 and MINTL5, Thorlabs) combined in free-space and coupled into a silica-core intermediary MMF patch-cord (M59L01, ThorLabs). The patch-cord was then mated to the illumination module’s MMF using an SMA to SMA mating sleeve (ADASMA, ThorLabs). The purpose of the intermediary MMF patch-cord was to allow for the precise alignment of the LEDs to be unaffected when switching light sources (e.g., between the LEDs and lasers). A 240 μm core MMF (Eska, Mitsubishi International PolymerTrade Corp.) was used with table-top lasers (473 nm and 556 nm DPSS lasers; MBL-FN-473 and MGL-FN-556, respectively; CNI Optoelectronics Tech. Co.).
Optomechanical design
The housing included four modules (main body, sensor mount, illumination module, and base plate) and was designed in CAD software (Autodesk Inventor). This modular design simplifies the optimization process and allows for future upgrades without the need to develop an entirely new device. The main body holds the optics barrels, the filter cube, and the illumination collector lens. It was designed with an open central compartment to access the interchangeable fluorescence filter cube easily. The main body also includes features for mating with the sensor mount, base plate, and illumination modules. The sensor mount holds the image sensor and blocks stray light. It contains threading and a locking setscrew to allow fine focus adjustments after mounting. The illumination module was designed to provide flexibility in using LED or laser light sources in multiplex imaging applications. The detachable base plate allows reproducible mounting, facilitating chronic imaging experiments. For ease of fabrication, three-axis computer numerical control (CNC) milling was selected. This technique influenced the design process as the complex geometry needed to be confined to dimensions accessible to the CNC mill. Most housing components were fabricated from the lightweight polyether ether ketone (PEEK) (Zera Development Company). The sensor mount was fabricated from aluminum to aid in dissipating the heat generated by the image sensor.
Electronic design
We selected a CMOS sensor (MT9M024, Aptina Imaging) that matches our optical resolution (3.75 μm pixel spacing, corresponding to 0.69 μm at the object plane; 1280 × 960 pixels) and offers high sensitivity (5.48 and 6.7 V/lux-sec for the RGB and monochrome version, respectively) and frame rate (45 fps at full resolution). The sensor was mounted on a custom miniature printed circuit board (PCB), interfaced with an Aptina data-acquisition board (AGB1N0CS-GEVK), and controlled using the Aptina DevWare Software Package (v4.5.18). For high-speed multi-color imaging, we used an RGB version of the sensor. For high-sensitivity imaging through microprisms, we used its monochrome version. All data were recorded with 12-bit depth.
Microscope characterization
Optical system performance was characterized before any software-based post-processing (e.g., spatial down-sampling, PCA, or ICA). Image resolution was quantified via the point spread function (PSF) and the limit of resolution (LOR) test (Fig. 1d, e; Supplementary Fig. 1). To measure the imaging optics’ PSF, we designed a test rig that secured the optics barrels in place. It also contained a simulant filter block (i.e., a glass blank of the same thickness and composition as the fluorescence filter block) and spacer on the object side to ensure a working distance of ~2 mm to the target. A Zeiss LSM 780 confocal microscope was used to image sub-resolution (0.5 μm) fluorescent beads through the optics barrels. To measure the integrated device’s PSF, we generated a point source of light using a 0.5 μm pinhole (TC-RT01, Technologie Manufaktur), green fluorescence reference slide (2273, Ted Pella), and blue LED excitation light source (M470L3, Thorlabs). We then took images in evenly spaced axial intervals around the integrated device’s focus point. PSF values were calculated from lateral and axial maximum intensity image stack projections and are specified as the full width at half maximum (FWHM) (Supplementary Fig. 1).
To measure the LOR at the center and different locations across the FOV (210 ± 20 μm spacing), we recorded images of a high-resolution microscopy USAF target (TC-RT01, Technologie Manufaktur) with a maximum spatial frequency of 3300 lp/mm (Fig. 1d, e). The focus was set at the center and kept stable across the radial positions to account for field curvature and astigmatism. We plotted the line profile across the bar variance at each recording location and averaged along the bar length. We then averaged the peaks and troughs and calculated the contrast percentage using the Michelson contrast equation (see below). This data analysis utilized the “Find Peaks” ImageJ plugin. We defined the LOR limit (highest spatial frequency) by the bar set where at least 5% contrast can be observed (the minimal contrast needed for detection by the human eye).
The contrast was quantified via the modulation transfer function (MTF) (Supplementary Fig. 2). Contrast is the object’s brightness relative to the background calculated via the Michelson contrast equation, defined as (peak - background)/(peak + background). Note that Michelson contrast is unitless. To measure the MTF, we employed the Slanted Edge test using a razor blade, green fluorescence reference slide (2273, Ted Pella), and blue LED excitation light source (M470L3, Thorlabs). The focus was set at the center of the FOV and kept stable across different radial positions (the same positions as in the LOR test). Corresponding data were analyzed using the “Slanted Edge MTF” ImageJ plugin. We calculated both the sagittal and tangential MTF. While MTF 0% is frequently reported, MTF values below 10% are affected by sensor noise limits and optical phase reversal. MTF spatial frequency is therefore reported at 10%, mimicking biological samples of a specific labeling density. Corresponding line widths are equal to one-half the spatial period.
Tissue analogs were used to estimate contrast and PSF FWHM degradation with imaging depth (Fig. 3). These tissue phantoms consisted of 0.5% (by weight) agarose, 11% (by volume) scattering bead solution (1.00 μm Polybead Microspheres; part no. 07310-15; Polysciences), and 5% (by volume) fluorescent bead solution (6 μm FocalCheck Microspheres; part no. F14807; Thermo Fisher Scientific), prepared using deionized water. Contrast and PSF FWHM in Fig. 3j–o was measured without background subtraction using the ImageJ plugin MetroloJ.
The FOV was measured by imaging a grid target, printed directly on the surface of the microscope slide without glass coverslip, and using a precision actuator (DRV3, Thorlabs). To demonstrate the multi-color imaging capability of our integrated device, we imaged cell body-sized (15 μm) fluorescent polystyrene microspheres of different colors (yellow-green F8844, yellow F21011, and red F8842 beads with 505 nm/515 nm, 515 nm/534 nm, 580 nm/605 nm excitation/emission peaks; Thermo Fisher Scientific) (Fig. 2a-c). Corresponding data were processed in DevWare using the demosaicing algorithm “Anisotropic Diffusion.”
The working distance (i.e., the distance from the edge of the lower optics barrel to the object plane) was measured by placing the microscope in contact with a grid target (R1L3S3P, Thorlabs) and then translating it upwards with a precision differential actuator (DRV3, Thorlabs) until the image was in focus. The working distance depends on the position of the image sensor along its focusing range and the thickness of the cover glass. We used a #0 glass coverslip (~100 μm thickness) for our measurements and positioned the image sensor in the middle of its focusing track.
The weight of the integrated system was determined by weighing the assembled device, including the custom optics barrels, filters, illumination module, housing, image sensor, and sensor PCB. We did not include the sensor wires or optical fiber in the measurement because external mounts or a commutator typically support the weight of these tether components.
Experimental model and subject details
All procedures were performed following the National Institutes of Health (NIH) guidelines and were approved by the Institutional Animal Care and Use Committee (IACUC) at the Salk Institute. Mouse strains used in this study included GFAP-Cre (RRID: IMSR_JAX:012886), Tac1-Cre (RRID: IMSR_JAX:021877), Ai95(RCL-GCaMP6f)-D (RRID: IMSR_JAX:024105), heterozygous Cx3cr1-GFP (RRID: IMSR_JAX:005582), and wild-type mice. All mice were on a C57BL/6 J background. Mice were group-housed, provided with bedding and nesting material, and maintained on a 12-h light-dark cycle in a temperature (22 ± 1 °C) and humidity controlled (45–65%) environment. The experiments involved 6–11 weeks-old heterozygous male and female mice. Sex as a biological variable was not considered in the research design and analyses, as the study’s primary goal was to demonstrate the imaging approach’s technical capabilities. Experimental mice used in individual experiments typically originated from different litters. Mice had marks for unique identification. No criteria were applied to allocate mice to experimental groups.
Molecular cloning, AAV production, and titering
The cDNA for H2B-GCaMP7f-TagRFP was PCR amplified and subcloned into an AAV transfer vector downstream of the CaMKIIa promoter and upstream of WPRE and hGHpA sequences. This vector was co-transfected into HEK293-AAV cells (Cell Biolabs, Inc., cat. no. AAV-100) along with a pAdeno-helper vector and a pRC-AAV9 rep-cap plasmid. Recombinant AAV9 production was then carried out and the recombinant AAV9-CaMKIIa-H2B-GCaMP7f-TagRFP-WPRE-hGHpA was titered by qPCR using primers designed to the hGHpA sequence. The titer of the virus was 4.9E + 12 GC/ml.
Stereotactic injections
For dual-color in vivo imaging (Fig. 2e–g; Supplementary Fig. 5; Supplementary Movie 2), the AAV9-CaMKII-H2B-GCaMP7f-TagRFP vector was injected into the L3-L5 spinal cord (coordinates: ML 0.3, DV 0.15–0.3 mm; volume: 1 μl; dilution: 1:25). Surgical procedures closely followed previously established protocols4. Briefly, thin-wall glass pipettes were pulled on a Sutter Flaming/Brown micropipette puller (model P-97). Pipette tips were cut at an acute angle under 10x magnification using sterile techniques. Tip diameters were typically 15–20 μm. Pipettes that did not result in sharp bevels or had larger tip diameters were discarded. Millimeter tick marks were made on each pulled needle to measure the virus volume injected into the spinal cord. Mice were anesthetized with isoflurane (4–5% for induction; 1%–1.5% for maintenance) and positioned in a computer-assisted stereotactic system with digital coordinate readout and atlas targeting (Leica Angle Two). Body temperature was maintained at 36–37 °C with a DC temperature controller, and ophthalmic ointment was used to prevent eyes from drying. A small amount of depilator cream (Nair) was used to remove hair at and around the incision site. The skin was then cleaned and sterilized with a two-stage scrub of betadine and 70% ethanol, repeated three times. Surgical scissors were used to make a small (around 10 mm) incision along the dorsal midline. Fascia connecting the skin to the underlying muscle was removed with forceps. The skin was held back by retractors. Using blunt dissection, lateral edges of the spinal column were isolated from connective tissue and muscle. Tissue from the vertebra of interest and one vertebra rostral and caudal to the site of spinal cord exposure was removed with forceps. The spine was then stabilized using Cunningham vertebral clamps, and any remaining connective tissue on top of the exposed vertebrae was removed with a spatula. An approximately 0.3 mm opening was made in the tissue overlying the designated injection site (e.g., using sterile Dumont #3 forceps). For injection, a drop of the virus was carefully pipetted onto parafilm (2–3 μl) for filling the pulled injection needle with the desired volume. Once loaded with sufficient volume, the injection needle was slowly lowered into the spinal cord until the target depth was reached. Manual pressure was applied using a 30-ml syringe connected by shrink tubing to slowly inject the viral solution over 5–10 minutes. The syringe’s pressure valve was then locked. The position was maintained for approximately 10 min to allow the virus to spread and to avoid backflow upon needle retraction. Following the injection, spinal cord clamps were removed, muscle approximated, and the skin sutured along the incision. Mice were given subcutaneous Buprenorphine (sustained release; 0.5 mg/kg) and allowed to recover before placement in their home cage.
Live animal preparation
Animals for awake recordings were implanted with a spinal and head plate under general anesthesia approximately one week before laminectomy, as previously described4, received Buprenorphine (sustained release; 0.5 mg/kg) to minimize post-operative pain, and were allowed to recover for at least three days. Mice for terminal recordings under anesthesia received a spinal plate only.
Intralaminar imaging through a dorsal glass window
A laminectomy (2 mm wide × 4 mm long) was performed at the T12-T13 vertebra level, corresponding to spinal segments L3–L527 on the day of or 1–4 days before anesthetized or awake recordings, respectively. The dura mater overlying the spinal cord was kept intact, and a custom-cut #0 coverslip was used to seal the laminectomy creating an optical window for imaging. If necessary, the coverslip was replaced before the imaging session to improve optical clarity following established procedures31. Briefly, fine forceps were used to carefully remove tissue glue around the coverslip edges, lift the coverslip off the bone, and peel away any connective tissue that could interfere with new coverslip placement or imaging. A new coverslip was then positioned and glued in place.
Translaminar imaging through implanted glass reflective microprisms
At least one day before surgery, a 0.7 × 0.7 × 0.7 mm glass microprism with aluminum-coated hypotenuse (cat. no. 4531-0021; Tower Optical) was UV-cured (NOA 81; cat. no. 8106; Norland Products Inc.) to a custom-cut #0 coverslip matching the intended laminectomy size (3 mm wide × 4 mm long). To minimize bubbles at the microprism-coverslip interface, the microprism was moved in a circular motion and then positioned at the desired location before UV curing. Excess glue around the microprism was removed with sterile absorbent paper points (cat. no. 50-930-669; Thermo Fisher Scientific). After UV curing, the microprism-coverslip assembly was placed in a sterile glass petri dish with a cover and heated on a hot plate at 50 °C to allow further curing for 8–12 h. Following heat curing, the microprism-coverslip assembly was stored in a 70% EtOH solution. To implant this assembly, mice were anesthetized with isoflurane (4–5% for induction and 1–2% for maintenance in 100% oxygen) and placed in a stereotactic setup. Body temperature was maintained at 36–37 °C with a DC temperature controller. A laminectomy (3 mm wide × 4 mm long) was performed at the T13-L1 vertebra level, corresponding to spinal segments L4–L627. Using a dissecting knife (cat. no. 10055-12; Fine Science Tools) attached to a stereotactic arm, a small incision was made 0.7 mm lateral to the central vein’s center, coinciding roughly with the interface between the dorsal root ganglia (DRG) and spinal white matter in 6–8 weeks-old mice. The incision extended 0.7 mm in the rostrocaudal direction and 0.7 mm in depth, matching the microprism dimensions. No spinal cord tissue was removed. Cerebrospinal fluid but not blood briefly exuded from the incision site upon retraction of the dissecting knife. The surgical site was washed several times with cold, sterile saline. The microprism implant, held by an 18 G × 1 ½” blunt angled syringe needle (cat. no. 305180; Thermo Fisher Scientific) attached to a vacuum suction line, was positioned above the incision site. The implant was slowly lowered until fully inserted (~0.7 mm depth). Excess fluid was removed using sterile absorbent paper points (cat. no. 50-930-669; Thermo Fisher Scientific). Once affixed to the surrounding bone with instant adhesive (cat. no. 3EHP2; Grainger), the suction holding the implant was turned off.
Blood plasma was stained using a 125–150 μl retro-orbital injection of 2% w/v fluorescein-dextran (2,000,000 MW; cat. no. D7137; Life Technologies) (Supplementary Fig. 4; Supplementary Movie 1).
Fluorescence imaging
In vivo imaging through a dorsal optical window
Data were acquired following previously established protocols4. Fiber-coupled blue (470 nm) and yellow (554 nm) LEDs (M470L4 and MINTL5, Thorlabs) were used for simultaneous GCaMP7f and TagRFP excitation (Fig. 2e–g). Approximately 10–20 recordings were taken per imaging session, with each recording lasting around 1-2 minutes. The typical average power for a given recording was <125 μW mm−2. A fiber-coupled 473 nm DPSS laser was employed for FITC-Dextran and GFP excitation using <250 μW mm−2 for each recording (Supplementary Figs. 3, 4). No signs of phototoxicity, such as a gradual increase in baseline fluorescence, lasting changes in activity rate, or blebbing of labeled cells, were apparent in our recordings.
In vivo imaging through implanted microprisms
Data were acquired up to four weeks after microprism implantation. The miniature microscope’s FOV allowed imaging of the entire microprism face. Recordings were taken at 75 μm and 125 μm focal depths from the vertical microprism-tissue interface, where 0 µm was defined as the point when cells or blood vessels first came into focus. A fiber-coupled 473 nm DPSS laser was used for GCaMP6f or GFP excitation (Figs. 4, 5; Supplementary Fig. 3). For calcium activity measurements, each imaging session included approximately 10–20 recordings, with each recording lasting around 1-2 minutes. The typical average light power at the tissue surface was between 275–325 μW mm−2.
For estimating in vivo imaging depth through a dorsal optical window or implanted microprism, we performed sequential wearable microscope and two-photon imaging in the lumbar spinal cord of anesthetized mice (Supplementary Figs. 3, 4). Two-photon z-stacks were acquired with a 1 μm axial step size, while one-photon recordings used a 5 μm step size across similar depths (~200 μm from the glass interface). We then produced maximum-intensity projection images from the two-photon z-stacks across various depth ranges (e.g., 0–75 μm and 0–125 μm) for comparison with the one-photon images. Based on these data, we estimate that our wearable microscope allows imaging up to ~125 μm spinal cord depths and offers an extended depth-of-field compared to multi-photon microscopes, making it less susceptible to axial shifts or tissue curvature.
All in vivo data were acquired at the image sensor’s full resolution (1280 × 960 pixels) and ~45 Hz, except Fig. 2e, which was recorded at 15 fps (by accident; no technical limitation).
In vivo two-photon imaging
A Sutter Movable Objective Microscope (MOM) equipped with a pulsed femtosecond Ti:Sapphire laser (Chameleon Ultra II, Coherent), two fluorescence detection channels, and MPScope software (v1.1) was used for imaging depth assessment (dichroic beamsplitter: T565LPXR (Chroma); green emission filter: ET525/70 M (Chroma); red emission filter: ET605/70 M (Chroma); photomultiplier tubes: H7422-40 GaAsP (Hamamatsu)). The laser excitation wavelength was set to 920 nm. The average laser power used for imaging was <10–15 mW at the tissue surface and adjusted with depth as needed to compensate for signal loss due to scattering and absorption. A Nikon 16x 0.8-NA water immersion objective was used for light delivery and collection. Z-stacks included up to ~200 images, acquired at 1 μm axial step size, used a 2-frame average, 512 × 512-pixel resolution, and 1.0–1.3x zoom (corresponding to ~970–780 μm fields of view).
Confocal imaging of stained tissue sections
Three-channel, 3 × 3 tiled z-stacks (15 images at 1 μm axial spacing) were acquired with a Zeiss LSM 710 confocal microscope and ZEN Black software (v2011) to produce images of whole spinal cord sections (laser lines: 405 nm, 488 nm, 633 nm). Each image within the z-stacks had a 1024 × 1024-pixel resolution and was acquired using an Olympus 20x 0.8 NA air-matched objective.
Sensory stimuli and behavioral tests
Sensory stimuli during in vivo imaging
Each imaging session consisted of up to 20 recordings. In a subset of recordings, mechanical stimuli were delivered to the animal’s tail using a rodent pincher system (cat. no. 2450; IITC Life Science, Inc.). Pinch pressures were applied in the dorsoventral direction at approximately 6 mm from the base of the animal’s tail. Each pinch stimulus (typically one per recording) lasted around 1–2 s. Subsequent stimuli were delivered at least 1.5–2 minutes apart to minimize response adaptation. The order in which stimuli of different amplitudes were delivered was randomized. Figures 2e–g, 4–5 show data from p > 500 g mechanical stimuli.
Sensory tests before and after microprism implantation
To quantify the effects of microprism implantation on the animal’s sensory performance, we used the von Frey assay (Supplementary Fig. 9a, b). The Simplified Up-Down (SUDO) method32 was performed using Touch Test Sensory Evaluators (North Coast), starting on the sixth (0.4 g) fiber. The SUDO Method utilizes five stimulations per test, ensuring each animal undergoes the same number of hind paw stimulations. Animals were habituated to the behavioral testing room for at least 15 minutes in their home cage, then to the von Frey apparatus for at least 45 minutes with the researcher outside of the room, and the researcher’s presence for an additional 15 minutes. Stimulations were performed every 5 minutes, alternating between hind paws. Four female GFAP- and Tac1-GCaMP6f mice were tested before and 7 days after spinal plate implantation and again at two and four weeks after microprism implantation. Data from the two-week time point are an average of trials performed on days 13 and 15, whereas data from the four-week time point are an average of trials conducted on days 27 and 29 after microprism implantation. Animals were tested twice to decrease the effect of inter-day noise, with a rest day between trials. In vivo microscopy was performed on days 14 and 28. The researcher was blinded to the microprism implantation side (left or right side of the spinal cord).
Motor tests before and after microprism implantation
To quantify the effects of microprism implantation on the animal’s locomotor performance, we used the kinematic weight-bearing test (Bioseb) (Supplementary Fig. 9c–f). Animals were acclimated to the testing environment by placing their home cage in the testing room approximately 30 minutes before the recordings. The animals were then transferred to the behavior setup, allowing them to explore the new environment for about 15 minutes freely. Following this period, five runs were collected per animal and for a total of five animals. Runs were counted only if the animal moved from left to right in the setup without stopping. Stride length (cm), peak force (cN), and running speed (cm/s) were analyzed. Runs of a given animal were averaged. The same animals were measured before and after spinal plate implantation, and two and four weeks after microprism implantation.
Immunohistochemistry
Two or four weeks after microprism implantation, mice were euthanized in their home cage following American Veterinary Medical Association (AVMA) guidelines. Transcardial perfusion was performed using 10% sucrose followed by 4% paraformaldehyde. L1-L6 spinal cord tissue was carefully extracted and incubated in 4% PFA overnight at 4 °C. The tissue was then washed on a shaker with 1x PBS three times with 15 minutes per cycle, followed by incubation in 30% sucrose in PBS overnight at 4 °C. Next, the tissue was flash-frozen in an OCT tissue-freezing medium, cryosectioned at 20 µm thickness, air-dried overnight, and then processed for immunostaining. Tissue sections were incubated overnight at 4 °C with primary antibody diluted in blocking buffer, then washed in PBS containing 0.1% Tween-20, and incubated for two hours at 22–24 °C in the dark with fluorophore-coupled secondary antibodies. Primary antibodies included NeuN clone 1B7 (1:100; Novus Biologicals Inc.; cat. no. NBP1-92693; RRID: AB_11036146), GFAP clone 2.2B10 (1:250; Thermo Fisher Scientific; cat. no. 13-0300; RRID: AB_2532994), Iba1 (1:200; FUJIFILM Wako Shibayagi; cat. no. 019-19741; RRID: AB_839504), and GFP (1:250; Thermo Fisher Scientific; cat. no. A10262; RRID: AB_2534023). Secondary antibodies included Alexa Fluor 633 goat anti-mouse (1:100; Thermo Fisher Scientific; cat. no. A-21052; RRID: AB_2535719), Alexa Fluor 488 goat anti-rat (1:100; Thermo Fisher Scientific; cat. no. A-11006; RRID: AB_2534074), Alexa Fluor 488 goat anti-chicken (1:100; Thermo Fisher Scientific; cat. no. A-11039; RRID: AB_2534096), and Alexa Fluor 405 goat-anti-rabbit (1:100; Thermo Fisher Scientific; cat. no. A-31556; RRID: AB_221605).
Image data processing and analysis
Wearable microscope imaging data
We used a custom MATLAB script to convert the image sensor’s raw files from 12- to 16-bit, demosaic the corresponding images (for RGB image sensor data only) and adjust their pixel range. The data were then further processed in Fiji. We converted the image data to TIFF, cropped the time-lapse recordings to the LED-/laser-on period and fluorescently labeled central areas of the FOV, followed by illumination correction, background subtraction, and color-channel unmixing (for RGB image sensor data only). Full-frame image motion was reduced using Moco33.
For multi-color image data, one channel was selected to determine and correct x-y image displacements across all channels. Image edge artifacts introduced by motion correction were cropped. Within-frame distortions were typically small and therefore not corrected. Motion-corrected calcium imaging data were analyzed using custom ImageJ and MATLAB software. Manually drawn cell body-sized ROIs were used to extract activity traces from neurons and astrocytes in dual-color recordings (Fig. 2e–g; Supplementary Fig. 5). We applied several quantitative exclusion criteria to ensure that the activity traces derived from these ROIs are from a defined cell type. Activity traces were considered from neurons if the average TagRFP fluorescence within respective ROIs exceeded the average TagRFP fluorescence across the FOV by at least 2 s.d. This retained only AAV9-CaMKII-H2B-GCaMP7f-TagRFP transduced cells with sharp boundaries (i.e., in-focus neurons). Activity traces were considered from astrocytes if the average TagRFP fluorescence within the respective ROIs was below 0.5 s.d.
To quantify calcium activity more comprehensively across the FOV, we used an unbiased tiling approach, similar to our previous work34 (Figs. 4, 5). Each tile corresponded to a 10 × 10 μm ROI. We defined three ROI classes: over, near, and distant from blood vessels. First, we calculated the mean and s.d. of the recording’s average intensity image. Next, we determined individual ROIs’ average intensity values (A). If A < mean - s.d., it was considered a blood vessel-ROI. If A ≥ mean + (1 + x)*s.d. (with × ∈ [0.3–0.7] depending on data set (e.g., blood vessel size/pattern)), it was classified as distant from blood vessels. ROIs with in-between values were considered near-blood vessel-ROIs. ROIs over and near blood vessels were excluded from data analysis. Note that some ROIs over small (<10–15 μm), out-of-focus blood vessels may be retained. However, as described below, several stringent computational criteria were applied to minimize false-positive “active” ROIs.
For all retained ROIs, we calculated their average fluorescence intensity over time. Corresponding activity traces were temporally smoothed using an 0.5 s sliding average. Local maxima within the traces were identified using MATLAB’s “findpeaks” function. The fluorescence baseline and noise level (in s.d.) of a given trace were calculated using a 2 s period before stimulus or run onset. Local maxima were considered evoked activity if fluorescence intensity values surrounding the peak were at least 6 s.d. above baseline for ≥2 s. Calcium transient onset was defined as the point at which the fluorescence intensity trace immediately before the peak crossed a 2 s.d. threshold above baseline. Calcium transient duration was defined as the trace’s full width at half maximum (FWHM). Traces that showed a) activity within 2 s after recording onset (i.e., before stimulus or run onset), b) fluorescence decreases faster than the indicator’s unbinding kinetics (≥50% signal drop within ≤250 ms), or c) a 3 s.d. drop below fluorescence baseline after transient onset for ≥3 s were considered artifactual (e.g., caused by tissue motion) and excluded from further analysis. For multi-peak transients, the largest peak’s value was used for FWHM calculation. If the intensity values between peaks fell below the half-maximum value for ≥250 ms, the half-maximum point closest to the largest peak was used for FWHM calculation. If the trace’s amplitude fell below 2 s.d. above baseline for ≥400 ms, the corresponding transients were considered separate calcium spikes.
To distinguish spontaneous from evoked calcium activity, we applied additional criteria. A calcium transient was considered evoked if its onset occurred within 1 s or 5 s after stimulus- or run-onset for neurons or astrocytes with cytosolic GCaMP expression, respectively. For nuclear GCaMP expression, we allowed a 5 s time window. For all activity traces that passed the filters mentioned above, we calculated ΔF(t)/F0(t). F0 was determined with MATLAB’s mode function using a 15-bin width. Traces that showed abrupt intensity changes (≥0.5 ΔF/F within ≤65 ms) were removed from the analysis. To compare neuronal and astrocyte activity, we plotted corresponding ΔF/F traces aligned on a given cell type with the other cell type being sorted based on its transient onset time. Chosen ΔF/F thresholds are based on image noise levels, depend on fluorescent indicator expression, and were consistently applied across all animals of the same strain.
Imaging through microprisms can introduce vignetting with the amount depending on light cone clipping at the edges (Fig. 3d–i; Supplementary Fig. 3e, g, h). We correct for vignetting with post-acquisition software. While this introduces digital noise (due to the effectively reduced dynamic range and sensor bit depth at the FOV edges), this noise was not prominent in our in vivo recordings because of the large ΔF/F signals we typically observed in live animals (Figs. 4, 5).
Confocal and two-photon imaging data
All data were processed, analyzed, and plotted using Fiji, Imaris, and Prism software. To quantify immunostained tissue, we first generated digital representations of the labeled cells/structures using Imaris’ (version 9.2; Oxford Instruments) creation wizard. Cells/structures were classified as “Spots” (to quantify the number of NeuN- and Iba1-positive cell bodies; Supplementary Figs. 6, 8, 10) or “Surfaces” (to quantify GFAP volume including cell bodies and major processes; Supplementary Fig. 7). For surface quantifications, we used detail and threshold levels of 0.1 and 0.4, respectively, for all tissue slices and hemispheres. These quantifications were performed for various regions of interest (ROIs) (e.g., 50 × 50 µm or 50 × 700 µm) (Supplementary Figs. 6-8, 10). Volume fractions are represented in percent (Supplementary Fig. 7b-e).
Analog and video data processing and analysis
All analog data were synchronously recorded at 1 kHz using DAQExpress 2.0 software (National Instruments). Analog data included the pressure sensor output from the rodent pincher system, treadmill speed, and on-off TTL signal of the miniaturized microscope’s light source, depending on the experiment. Pinch application and mouse behavior were also recorded on a video camera (≥20 Hz; Stingray F-033, Allied Vision Technologies) using AVT SmartView software (v1.11). To synchronize imaging with video data, we placed a near-infrared LED within the video camera’s FOV, triggered from the microscope’s light source drive signal (TTL pulse). Imaging and analog data were synchronized by recording the on-off TTL signal of the miniaturized microscope’s light source together with all other analog data. To relate the animal’s locomotor activity more closely to the imaging data, we focally restrained animals on a spherical treadmill equipped with an optical encoder (E7PD-720-118, US Digital), allowing precise readout of running speed. All analog data were processed using custom MATLAB (MathWorks) routines. The pincher and encoder traces were first cropped to the light source-on period. Pressure traces were then quantified with respect to stimulus amplitude and duration. Encoder traces were smoothed using a sliding average (window size: 0.4 s). Locomotion onset or offset was defined as the point at which the smoothed running speed exceeded or fell below 10 mm/s. Encoder traces were analyzed concerning running speed, duration, and frequency. If the running speed fell below the 10 mm/s threshold for ≥750 ms, the local maxima were considered separate running bouts. The video data were cropped to the LED-on period. Videos were scored manually regarding pinch onset and offset. Calcium transient latency was calculated based on these measurements because video recordings provided higher temporal resolution than the pincher traces. For population analysis, data was computationally sorted using custom MATLAB (MathWorks) routines. Only trials with 1.5 ± 0.5 s pinch duration, or 3 ± 1 s run duration and ≥25 s rest period before the run were included in the analysis.
All figures and supplementary movies were created using Adobe Illustrator and Premier (2022), respectively.
Statistical analysis
All data were analyzed and plotted using MATLAB, Excel, or GraphPad Prism software. Two-sided paired t-tests were performed to determine FOV regions with significant calcium activity (Fig. 4f, k and Fig. 5c, h), on data evaluating neuronal loss (Supplementary Figs. 6d–f, 10), astrocyte activation (Supplementary Fig. 7d, e), microglia activation (Supplementary Fig. 8d, e), mouse motor performance (Supplementary Fig. 9d–f), hind paw sensitivity changes on the implanted side (comparing the 2-week and 4-week time points to baseline), and the potential effect of spinal plate implantation on sensory performance (Supplementary Fig. 9b). The latter data were collected for each hind paw before (baseline) and seven days after surgery. Two-way ANOVA was performed on data comparing hind paw sensitivity on the microprism-implanted versus the control hemisphere. All data are represented as mean ± s.e.m. unless indicated otherwise. Group sample sizes were chosen based on power analysis or previous studies. The following convention was used to indicate P values: ‘NS’ indicates P > 0.05, ‘*’ indicates 0.01 < P ≤ 0.05, ‘**’ indicates 0.001 < P ≤ 0.01, ‘***’ indicates 0.0001 < P ≤ 0.001, and ‘****’ indicates P ≤ 0.0001.
Reporting summary
Further information on research design is available in the Nature Portfolio Reporting Summary linked to this article.
Supplementary information
Acknowledgements
We thank Joseph E. Ford for advice on optical design, Ben Piatt and John Warda for help with tolerancing and lens fabrication, Gary Zera for feedback on housing design, Dick Stewart for help with custom optical filters, Moae Ikeda for guidance on optical characterizations, Nick Andrews of the Salk Behavior Testing Core and the Salk machine shop for technical support, J. Chambers for mouse colony management, and members of the Nimmerjahn lab for feedback and suggestions. Supplementary Figs. 3a, d, f, 4a, c, and 9a, c artwork was created with Biorender.com. This work was primarily supported by the National Institutes of Health (NIH) grant R01NS108034 (A.N). It was partially supported by the NIH grants U01NS103522, U19NS112959, and U19NS123719 (A.N.), The Sol Goldman Charitable Trust, and equipment funds from C. and L. Greenfield. P.S. was supported by a Rose Hills Foundation graduate fellowship and N.A.N. by funds from an NIH T32/CMG Training Grant, Burt and Ethel Aginsky Research Scholar Award, Kavli-Helinski Endowment Graduate Fellowship, and NIH individual predoctoral fellowship (F31NS120619). The content is solely the authors’ responsibility and does not necessarily represent the official views of the NIH.
Source data
Author contributions
P.S., E.M.C., and A.N. conceived and designed the study. P.S. developed and characterized the wearable microscopes and wrote ImageJ-based data analysis code. E.M.C. conducted the in vivo microprism, motor behavior, and immunostaining experiments. D.D. performed the intralaminar in vivo imaging experiments. A. Ngo and G.G. developed MATLAB- and ImageJ-based data analysis code, respectively. N.A.N. performed the sensory tests. C.L.K. produced the viral vectors. A.N. supervised the study, helped with experiments, and wrote the initial manuscript draft. All authors contributed to the text and figures, discussed the results, or provided input and edits on the manuscript.
Peer review
Peer review information
Nature Communications thanks Sascha Alles, David Ginty and Yusaku Hontani for their contribution to the peer review of this work.
Data availability
Source Data files for data presented in graphs within the Figures and Supplementary Figures are provided with this paper. Additional (e.g., raw image) data that support the findings of this study are available from the corresponding author. Because of their size, they can only be shared on request. Source data are provided with this paper.
Code availability
The custom software or code generated during the current study is available from the corresponding author on request.
Competing interests
The authors declare no competing interests.
Footnotes
Publisher’s note Springer Nature remains neutral with regard to jurisdictional claims in published maps and institutional affiliations.
These authors contributed equally: Pavel Shekhtmeyster, Erin M. Carey.
Supplementary information
The online version contains supplementary material available at 10.1038/s41467-023-36959-2.
References
- 1.Koch SC, Acton D, Goulding M. Spinal circuits for touch, pain, and itch. Annu Rev. Physiol. 2018;80:189–217. doi: 10.1146/annurev-physiol-022516-034303. [DOI] [PMC free article] [PubMed] [Google Scholar]
- 2.Abraira VE, Ginty DD. The sensory neurons of touch. Neuron. 2013;79:618–639. doi: 10.1016/j.neuron.2013.07.051. [DOI] [PMC free article] [PubMed] [Google Scholar]
- 3.Peirs C, Seal RP. Neural circuits for pain: recent advances and current views. Science. 2016;354:578–584. doi: 10.1126/science.aaf8933. [DOI] [PMC free article] [PubMed] [Google Scholar]
- 4.Sekiguchi KJ, et al. Imaging large-scale cellular activity in spinal cord of freely behaving mice. Nat. Commun. 2016;7:11450. doi: 10.1038/ncomms11450. [DOI] [PMC free article] [PubMed] [Google Scholar]
- 5.Kronschlager MT, et al. Gliogenic LTP spreads widely in nociceptive pathways. Science. 2016;354:1144–1148. doi: 10.1126/science.aah5715. [DOI] [PMC free article] [PubMed] [Google Scholar]
- 6.Kelley KW, et al. Kir4.1-dependent astrocyte-fast motor neuron interactions are required for peak strength. Neuron. 2018;98:306–319 e307. doi: 10.1016/j.neuron.2018.03.010. [DOI] [PMC free article] [PubMed] [Google Scholar]
- 7.Kohro Y, et al. Spinal astrocytes in superficial laminae gate brainstem descending control of mechanosensory hypersensitivity. Nat. Neurosci. 2020;23:1376–1387. doi: 10.1038/s41593-020-00713-4. [DOI] [PubMed] [Google Scholar]
- 8.Xu Q, et al. Astrocytes contribute to pain gating in the spinal cord. Sci. Adv. 2021;7:eabi6287. doi: 10.1126/sciadv.abi6287. [DOI] [PMC free article] [PubMed] [Google Scholar]
- 9.Nelson NA, Wang X, Cook D, Carey EM, Nimmerjahn A. Imaging spinal cord activity in behaving animals. Exp. Neurol. 2019;320:112974. doi: 10.1016/j.expneurol.2019.112974. [DOI] [PMC free article] [PubMed] [Google Scholar]
- 10.Cheng YT, Lett KM, Schaffer CB. Surgical preparations, labeling strategies, and optical techniques for cell-resolved, in vivo imaging in the mouse spinal cord. Exp. Neurol. 2019;318:192–204. doi: 10.1016/j.expneurol.2019.05.010. [DOI] [PMC free article] [PubMed] [Google Scholar]
- 11.Andermann ML, et al. Chronic cellular imaging of entire cortical columns in awake mice using microprisms. Neuron. 2013;80:900–913. doi: 10.1016/j.neuron.2013.07.052. [DOI] [PMC free article] [PubMed] [Google Scholar]
- 12.Low RJ, Gu Y, Tank DW. Cellular resolution optical access to brain regions in fissures: imaging medial prefrontal cortex and grid cells in entorhinal cortex. Proc. Natl Acad. Sci. USA. 2014;111:18739–18744. doi: 10.1073/pnas.1421753111. [DOI] [PMC free article] [PubMed] [Google Scholar]
- 13.Heys JG, Rangarajan KV, Dombeck DA. The functional micro-organization of grid cells revealed by cellular-resolution imaging. Neuron. 2014;84:1079–1090. doi: 10.1016/j.neuron.2014.10.048. [DOI] [PMC free article] [PubMed] [Google Scholar]
- 14.Aharoni D, Hoogland TM. Circuit investigations with open-source miniaturized microscopes: Past, present and future. Front Cell Neurosci. 2019;13:141. doi: 10.3389/fncel.2019.00141. [DOI] [PMC free article] [PubMed] [Google Scholar]
- 15.Chen S, et al. Miniature fluorescence microscopy for imaging brain activity in freely-behaving animals. Neurosci. Bull. 2020;36:1182–1190. doi: 10.1007/s12264-020-00561-z. [DOI] [PMC free article] [PubMed] [Google Scholar]
- 16.Matz G, Messerschmidt B, Gross H. Design and evaluation of new color-corrected rigid endomicroscopic high NA GRIN-objectives with a sub-micron resolution and large field of view. Opt. Express. 2016;24:10987–11001. doi: 10.1364/OE.24.010987. [DOI] [PubMed] [Google Scholar]
- 17.Simonetti M, et al. Nuclear calcium signaling in spinal neurons drives a genomic program required for persistent inflammatory pain. Neuron. 2013;77:43–57. doi: 10.1016/j.neuron.2012.10.037. [DOI] [PMC free article] [PubMed] [Google Scholar]
- 18.Nimmerjahn A, Mukamel EA, Schnitzer MJ. Motor behavior activates Bergmann glial networks. Neuron. 2009;62:400–412. doi: 10.1016/j.neuron.2009.03.019. [DOI] [PMC free article] [PubMed] [Google Scholar]
- 19.Merten, K., Folk, R. W., Duarte, D. & Nimmerjahn, A. Astrocytes encode complex behaviorally relevant information. Preprint at bioRxiv, 10.1101/2021.1110.1109.463784 (2021).
- 20.Polgar E, et al. Substance P-expressing neurons in the superficial dorsal horn of the mouse spinal cord: Insights into their functions and their roles in synaptic circuits. Neuroscience. 2020;450:113–125. doi: 10.1016/j.neuroscience.2020.06.038. [DOI] [PMC free article] [PubMed] [Google Scholar]
- 21.Huang T, et al. Identifying the pathways required for coping behaviours associated with sustained pain. Nature. 2019;565:86–90. doi: 10.1038/s41586-018-0793-8. [DOI] [PMC free article] [PubMed] [Google Scholar]
- 22.Flusberg BA, et al. High-speed, miniaturized fluorescence microscopy in freely moving mice. Nat. Methods. 2008;5:935–938. doi: 10.1038/nmeth.1256. [DOI] [PMC free article] [PubMed] [Google Scholar]
- 23.Ghosh KK, et al. Miniaturized integration of a fluorescence microscope. Nat. Methods. 2011;8:871–878. doi: 10.1038/nmeth.1694. [DOI] [PMC free article] [PubMed] [Google Scholar]
- 24.Kronschlager MT, et al. Lamina-specific properties of spinal astrocytes. Glia. 2021;69:1749–1766. doi: 10.1002/glia.23990. [DOI] [PMC free article] [PubMed] [Google Scholar]
- 25.Molofsky AV, et al. Astrocyte-encoded positional cues maintain sensorimotor circuit integrity. Nature. 2014;509:189–194. doi: 10.1038/nature13161. [DOI] [PMC free article] [PubMed] [Google Scholar]
- 26.Hirrlinger J, Nimmerjahn A. A perspective on astrocyte regulation of neural circuit function and animal behavior. Glia. 2022;70:1554–1580. doi: 10.1002/glia.24168. [DOI] [PMC free article] [PubMed] [Google Scholar]
- 27.Harrison M, et al. Vertebral landmarks for the identification of spinal cord segments in the mouse. Neuroimage. 2013;68:22–29. doi: 10.1016/j.neuroimage.2012.11.048. [DOI] [PubMed] [Google Scholar]
- 28.Ceto S, Sekiguchi KJ, Takashima Y, Nimmerjahn A, Tuszynski MH. Neural stem cell grafts form extensive synaptic networks that integrate with host circuits after spinal cord injury. Cell Stem Cell. 2020;27:430–440 e435. doi: 10.1016/j.stem.2020.07.007. [DOI] [PMC free article] [PubMed] [Google Scholar]
- 29.Ju, F. et al. Long-term two-photon imaging of spinal cord in freely behaving mice. Preprint at bioRxiv, 475306, 2022.01.09.475306 (2022).
- 30.Sabatini BL, Tian L. Imaging neurotransmitter and neuromodulator dynamics in vivo with genetically encoded indicators. Neuron. 2020;108:17–32. doi: 10.1016/j.neuron.2020.09.036. [DOI] [PubMed] [Google Scholar]
- 31.Goldey GJ, et al. Removable cranial windows for long-term imaging in awake mice. Nat. Protoc. 2014;9:2515–2538. doi: 10.1038/nprot.2014.165. [DOI] [PMC free article] [PubMed] [Google Scholar]
- 32.Bonin RP, Bories C, De Koninck Y. A simplified up-down method (SUDO) for measuring mechanical nociception in rodents using von Frey filaments. Mol. Pain. 2014;10:26. doi: 10.1186/1744-8069-10-26. [DOI] [PMC free article] [PubMed] [Google Scholar]
- 33.Dubbs A, Guevara J, Yuste R. moco: Fast motion correction for calcium imaging. Front Neuroinform. 2016;10:6. doi: 10.3389/fninf.2016.00006. [DOI] [PMC free article] [PubMed] [Google Scholar]
- 34.Patriarchi, T. et al. Ultrafast neuronal imaging of dopamine dynamics with designed genetically encoded sensors. Science360, 10.1126/science.aat4422 (2018). [DOI] [PMC free article] [PubMed]
- 35.Sengul, G., Watson, C., Tanaka, I. & Paxinos, G. Atlas of the Spinal Cord: Mouse, Rat, Rhesus, Marmoset, and Human. 1st edn, (Academic Press, 2012).
Associated Data
This section collects any data citations, data availability statements, or supplementary materials included in this article.
Supplementary Materials
Data Availability Statement
Source Data files for data presented in graphs within the Figures and Supplementary Figures are provided with this paper. Additional (e.g., raw image) data that support the findings of this study are available from the corresponding author. Because of their size, they can only be shared on request. Source data are provided with this paper.
The custom software or code generated during the current study is available from the corresponding author on request.