Introduction

Two-photon laser scanning microscopy, originally developed in the 1990s1, has been widely applied and is particularly popular among neuroscientists interested in studying neural structures and functions in vivo2. A major advantage of two-photon (and three-photon3) imaging technology for the study of living brains is the optical resolution that is achieved in densely labeled brain tissues that strongly scatter light4, in which optically sectioned image pixels are scanned and acquired with minimal crosstalk. Unfortunately, this advantage also induces a major drawback; i.e., simultaneously viewing objects (with an update rate of at least 5 Hz) is highly restricted within a certain range of the lateral and axial distances, which is typically <1 mm. Many techniques have been successfully established to extend such limits. For example, the axial limit can be extended by scanning through multiple focal planes at different focal depths5,6 or by using Bessel-shaped laser beams with prolonged focal point-spread functions to image all planes within a certain depth range7; the lateral limit can be extended by using large-field low-magnification objectives8 with multiplexed subfield scanning techniques9,10,11,12 or by using fast mechanical rotating devices to rapidly switch between different fields of view (FOVs)13. However, two major issues have limited the effectiveness of these techniques. First, one technique alone can extend the limit to >1 mm in either the lateral or the axial dimension, but not both. Second, these techniques typically rely on highly customized electronic devices and optical components that are not commercially available. Consequently, it has been difficult to implement such techniques in neuroscience research laboratories.

Nonetheless, there is an increasingly high demand in neuroscience to investigate brain-wide neuronal functions in vivo with single-cell resolution. For example, cognitive tasks such as visual-cue-guided navigation14,15 involve neural circuits consisting of multiple functional regions, including the cortex and the hippocampus. To address fundamental questions of how individual neuronal activities in a brain-wide neural circuit are involved in perception, cognition and behavior, it is far from sufficient to observe and/or manipulate single-neuron activities in only one brain region. Considering the possible number of brain region combinations that potentially need to be studied, the future need for multiregion imaging is expected to be much higher than the need for conventional single-region imaging. A straightforward approach is simply to place two microscopes (independent scanning-acquisition systems) above the same animal brain16. A recent report successfully demonstrated that by using such an approach, the cortex and the cerebellum can be simultaneously imaged16,17. However, imaging more than two brain regions with this approach leads to substantial increases in cost and complexity.

Together, these high expectations for both performance and feasibility pose a highly challenging engineering question: how can a single imaging system (with one scanning-acquisition device) obtain live microscopic images (with single-cell resolution at a frame rate of at least 5 Hz) simultaneously from multiple in vivo brain regions that are distributed across large lateral and axial distances (>1 mm)? To address this question, we introduce a new method that combines two-stage magnification and multiaxis optical coupling. This method is realized by using a low-magnification dry objective (DO) with multiple water-immersed miniaturized objectives (MOs) under the DO. Configuring MOs with different lengths can result in multiple object planes that are distributed at different depths. With the help of standard mechanical micromanipulation devices under the DO and the ability to observe tissue through either the conventional microscope oculars or the two-photon imaging system, each of the MOs can be placed at the desired target position and depth in the brain tissue. Thus, the new compound objective assembly can be used in almost the same way as the original water-immersed microscope objective and does not require any modification to the image scanning and acquisition subsystems of the microscope.

Results

The MATRIEX compound objective assembly

Figure 1a shows the basic concept of the MATRIEX technique. In a two-photon laser scanning microscope equipped with a conventional single-beam raster scanning device, the conventional water-immersion microscope objective with a medium or high magnification (typically, ×16–×40) is replaced by a customized compound objective assembly (Fig. 1a; see the three small cylinders and one large cylinder above the head of the mouse). The compound assembly consists of multiple MOs, each with a lateral magnification factor of ~×8 (gradient-index (GRIN) lens; see Table 1 for detailed specifications; this type of lens is broadly used for miniaturized microscopes18), and a low-magnification DO (×2–×5 magnification; a broad range of low-cost standard industrial products are available). The MOs are inserted through multiple craniotomies, during which a 3D-printed plastic chamber glued to the skull roughly aligns the MOs with some space to adjust both the lateral position and depth. The precise manipulation of the individual MOs is performed by individually moving each metal bar that attaches an MO at the tip (Fig. 1b, c). When each MO is placed at the proper focal depth, the objects under all MOs can be visualized simultaneously in the same image plane (for example, see the microvascular patterns in three FOVs acquired by a simple smartphone camera in the lower image of Fig. 1c).

Fig. 1: Design and implementation of MATRIEX imaging.
figure 1

a Experimental diagram of the MATRIEX imaging system. The two round 3D objects in the lower-left corner are the top and bottom views of the mouse head chamber used for in vivo imaging. (Ti:Sa): Ti:Sapphire ultrafast pulsing laser; PC: Pockels cell; BE: beam expander; SM1 and SM2: xy scanning mirrors; SL: scan lens; TL: tube lens; DM: dichroic mirror; CL: collection lens; PMT: photomultiplier tube; DO: dry objective; MOs: miniaturized objectives. b Photograph showing an oblique overview of the actual MATRIEX imaging system. c The photograph in the upper image shows a zoomed in view of the three MOs attached to the manipulating bars over the head chamber; the lower photograph was taken directly above the MOs with a smartphone camera. All MOs used in this figure are of the same model: ‘standard version’ (see Table 1). d, e Illustrations of the two-stage magnification and multiaxis coupling. The square images are actual two-photon images taken of 20-μm beads. Each red circle indicates one FOV. The model of DO used in panels d-f is the Olympus MPlan ×4/0.1, and all MOs in this figure are of the same customized model (‘Standard version’, see Table 1). f Illustration showing the absence of inter-FOV crosstalk under adjacent MOs. The images were taken on a uniform fluorescent plate. The red circles indicate the areas of analysis used to compare the image contrast between two conditions; the left-side condition shows the fluorescent plate under both MOs, and the right-side condition shows the fluorescence plate under only one MO. g Testing the optical resolution of the compound assembly with 0.51-μm beads. Curves: Gaussian fittings of raw data points. The on-axis or off-axis fluorescence intensity profiles were measured when the axis of the MO was aligned with the axis of the DO or apart from the axis of the DO (2 mm for the DO of ×4 or ×5, 3 mm for the DO of ×2.5, and 4 mm for the DO of ×2), respectively. See Table 2 for a summary of the measurements.

Table 1 Specifications of the GRIN lenses used in this study.

The MATRIEX technique is based on two principles: two-stage magnification and multiaxis coupling. Figure 1d illustrates two-stage magnification, in which 20-μm beads appear as tiny and blurry dots when viewed through the DO alone but as crisp round circles when viewed through the compound assembly. Figure 1e illustrates multiaxis coupling, in which a single DO is coupled with multiple MOs along different axes. Multiple object planes under the MOs are all conjugated on the same image plane. Note that multiple object planes can be in the same or different geometrical planes, depending on whether the MOs have the same or different parameters (Fig. 1e shows the configuration when using the same MOs). A simple raster scan in a rectangular frame results in the acquisition of a rectangular image including multiple circular FOVs, with each FOV corresponding to one MO. The sequential pixel scanning principle of two-photon microscopy ensures that the inter-FOV pixel crosstalk is minimal. To illustrate this point, we measured the inter-FOV pixel crosstalk by comparing the average brightness of pixels in the two FOVs corresponding to two tightly adjacent MOs (Fig. 1f). When fluorescent objects of similar brightness (homogeneous fluorescent plates) are under both MOs, the average pixel values in both FOVs are similar (108: 100); when there is no fluorescent plate under one MO, the pixel value in the corresponding FOV is just 0.1% of the brightness of the FOV with a fluorescent plate. Thus, inter-FOV pixel crosstalk is not a concern in practice.

Optical resolution of the compound assembly

The mechanism that allows the compound assembly to achieve a better resolution than the resolution of the DO alone is the numerical aperture (NA) magnification: the NA of the excitation light cone under the DO is magnified by the angular magnification factor of the MO. The NA of the compound assembly, NAcomp is given by the following equation:

$${\mathrm{NA}}_{{\mathrm{comp}}} = n_1{\it{{\mathrm{sin}}}}(\theta _1) \approx n_1{\mathrm{sin}}(\theta _0)/M_{\mathrm{a}} = \left( {\frac{{1.33}}{{M_{\mathrm{a}}}}} \right){\mathrm{NA}}_{{\mathrm{DO}}}$$
(1)

where n1 = 1.33 is the refractive index of water, NADO is the nominal NA value of the DO, and Ma = θ0/θ1 = 0.1675 is the angular magnification factor of the MO (given by the manufacturer). However, note that the ‘effective NA’ for the excitation light cone must not exceed the nominal NA value of the MO (NAMO). Thus, the ‘effective NA’ of the excitation light cone at the biological specimen, NAeff, is given by the following equation:

$${\mathrm{NA}}_{{\mathrm{eff}}} = \min \left( {{\mathrm{NA}}_{{\mathrm{comp}}},\,{\mathrm{NA}}_{{\mathrm{MO}}}} \right)$$
(2)

In practice, we have chosen GRIN lenses as the MOs. GRIN lenses can be very flexibly custom-designed and easily mass-produced at low cost, which greatly facilitates the experimental design. The employed MOs have a nominal NA value of ~0.5 (0.483 as given by the manufacturer). Thus, Eqs. (1) and (2) show that when using a DO with a very low NA, such as the Mitutoyo ×2 (NA = 0.055), the calculated NAcomp (= 0.44) is the ‘effective NA’, NAeff, whereas when using DOs with a higher NA (Olympus ×2.5/0.08, ×4/0.1, and ×5/0.1), NAeff is capped and equal to NAMO (0.483). Note that these calculations are dependent upon the axis of the MO being aligned with the axis of the DO. In practice, for multiaxis coupling, the axis of each MO is typically misaligned from the axis of the DO (‘off-axis’). Thus, we measured the lateral and axial resolutions using fluorescent beads for both the ‘on-axis’ (MO axis aligned with the DO axis) and ‘off-axis’ configurations (Fig. 1g and Table 2). The results showed that the ‘off-axis’ resolutions are rather comparable to the ‘on-axis’ resolutions.

Table 2 NA values and measured optical resolutions for compound assemblies using DOs of different models (Fig. 1g) and the ‘standard version’ MO (Table 1).

Enabling multiple FOVs at large axial and lateral distances

The key advantage of the MATRIEX technique is the ability to simultaneously acquire images of multiple objects at large depth intervals, e.g., >1 mm. To illustrate this point, we designed different types of MOs with different parameters. When each of the different MOs is placed at a specified depth, the corresponding object planes can be conjugated with the same image plane (Fig. 2). However, in practice, there are two constraints for the calculation of lens parameters to achieve the desired target object plane depths. First, both the back working distance (L2) and the length (Z) vary with the pitch value (P) of the GRIN lens (see Table 1 for details). Second, the lens must have a portion outside the brain tissue or guide cannula to be positioned and fixed. Considering these two constraints, we provide a reference graph for the pitch value and the other corresponding parameters with respect to the target imaging depth (relative to the cortical surface), as shown in Fig. 2. In practical experiments, minor mismatches between the desired object plane depth and the actual object depth can be well compensated by adjusting the MOs individually along each of the z-axes.

Fig. 2: Configuring the MOs (GRIN lenses) with different parameters to target object planes at different depths to then be conjugated on the same image plane.
figure 2

Each gray cylinder represents one lens with a pitch value, front working distance (L1), back working distance (L2) and length (Z).

The maximum lateral size of the targetable zone is limited by the maximum size of the scanning field under the DO of the conventional microscope. Typically, for a DO with a ×2 magnification, the diameter of the targetable zone is ~12 mm, which is nearly the size of an entire adult mouse brain. For example, as shown in Fig. 3a, the frontal association cortex and the cerebellum of the mouse can be simultaneously imaged. However, in practice, using a ×4 air objective as the DO is also suitable for many target region configurations (within a zone of ~6 mm in diameter) and achieves a better resolution than that for a DO with a ×2 magnification (Fig. 1g). For example, three cortical areas in a triangular configuration (with each pair separated by a distance of 3.5 mm) can be imaged with a compound assembly using a ×4 DO, with which fine dendritic structures are readily visible, as shown in Fig. 3b.

Fig. 3: Demonstration of MATRIEX imaging: structural imaging in multiple brain areas in vivo.
figure 3

a Left image: a full-frame image including two FOVs in the frontal association cortex (FrA) and the cerebellum. The red and yellow circles indicate two FOVs that are digitally enlarged and shown in the upper-right and lower-right images. A GAD67-GFP transgenic mouse (with the interneurons labeled brain-wide) was used. Two MOs (‘standard version’) were placed at the same depth under a DO (Mitutoyo ×2/0.055). b Example configuration of three FOVs in the cortex of a Thy1-GFP transgenic mouse (with layer 5 cortical neurons specifically labeled and with tuft dendrites visible near the cortical surface). Three MOs (‘standard version’) were placed at the same depth under a DO (Olympus ×4/0.1).

Simultaneous imaging in V1, M1, and CA1 of anesthetized and awake mice

As a practical example of the application of the MATRIEX technique, we performed simultaneous two-photon Ca2+ imaging of GCaMP6f-labeled neurons in the primary visual cortex (V1), primary motor cortex (M1) and hippocampal CA1 region of mice. The V1 and M1 regions were imaged ipsilaterally (left hemisphere), and the CA1 region was imaged contralateral to V1 and M1. The illustration in Fig. 4a shows the configuration of the three MOs, in which the two MOs for V1 and M1 were placed directly above the cortex, and the MO for the hippocampal CA1 region was inserted after the surgical removal of the cortical tissue above. The surgical insertion procedure was similar to previously described procedures19,20. For V1 and M1, we used the ‘standard version’ lens, and for CA1, we used the ‘long-coupling version’ lens (see Table 1 for details). The design of these lenses ensured that object planes corresponding to V1, M1, and CA1 could be conjugated on the same image plane (Fig. 4b). Using a conventional two-photon microscope equipped with a 12 kHz resonant scanner, we scanned the full image frame with 1200 × 1200 pixels at 10 Hz (unidirectional scan). In the full scanning frame, the three FOVs were readily visible (Fig. 4c), and we enlarged three different parts of the full image to show single cells (Fig. 4d). Note that there were two scales in one frame of the image, i.e., the interregional scale (as shown by the dashed scale bar in Fig. 4c; 2 mm) and the intraregional scale (as shown by the size of the solid box in Fig. 4c; 0.2 mm). Thus, instead of using one entire image (1200 × 1200 pixels) to map the entire imaging zone (~4.3 mm × 4.3 mm in size, reduced from 6 mm × 6 mm by a scanner zoom factor of ×1.4) with the pixel size being too coarse (~4 μm), three parts of the image (~320 × 320 pixels each) were used to map the three FOVs (~0.2 mm × 0.2 mm each) with the pixel size (~0.6 μm) matching the Nyquist sampling rate for an optical resolution of 1.0−1.4 μm and, thus, being sufficient to resolve single neurons. Note that this result was obtained primarily by the optical design and not by the laser scanning control or image acquisition settings because the laser scanning and image acquisition systems were configured in exactly the same way as in conventional single-FOV two-photon microscopy. We measured the laser power by placing a standard laser power meter underneath the MOs with the same DO–MO configuration and imaging parameters as those used in the in vivo experiments. We filled the space between and around the MOs with black paper such that the power meter sensor was exposed only to light through the DO–MO assembly, and the measured power was 112 mW. However, note that the laser power was distributed among multiple FOVs (e.g., for the 3-MO configuration, in each FOV the laser power was ~37 mW).

Fig. 4: Demonstration of MATRIEX imaging: simultaneously acquiring live neuronal activity patterns in V1, M1, and hippocampal CA1 in mice in the anesthetized state or awake state.
figure 4

The neurons were labeled by a genetically encoded fluorescent Ca2+ indicator, GCaMP6f (see Supplementary Materials for details). a Illustration showing the positioning of three MOs over the V1, M1 and hippocampal CA1 regions in a model mouse brain. b A camera photograph taken through the microscope ocular lens under white light bright-field illumination, in which three FOVs are readily visible. The upper region is V1, the lower-left region is CA1, and the lower-right region is M1. c A two-photon image, which is an average of 100 frames, acquired by simple full-frame raster scanning with a two-photon microscope. The solid white boxes show the three parts of the image that are enlarged in panel (d). d Digitally enlarged individual FOVs showing neurons in V1, M1, and CA1, from top to bottom. Scale bar: 40 μm. e Time-lapse Ca2+ signal traces of five example cells from each region, with each labeled by the cell index. Recordings of the same cell in the same animal in the anesthetized state (left side) and in the awake state (right side) are shown. f Left: traces showing individual Ca2+ signal events (split from each onset time and overlaid) from randomly selected example cells. Middle: Ca2+ signal traces of each of the neuropil zones that are directly adjacent to each of the example cells. Right: three box plots comparing the neuronal Ca2+ signal event amplitude to the neuron’s adjacent neuropil Ca2+ signal amplitude; paired Wilcoxon rank sum test, ***P < 0.001. g Log-normal fitting of the distribution histograms of the spontaneous Ca2+ event amplitude for data pooled from all animals. The red bars and fitted curve show the distribution of data recorded in the awake state, and the blue bars and fitted curve show the distribution of data recorded in the anesthetized state. h Pairwise neuronal activity correlation (Pearson correlation coefficients) for data pooled from all animals. The red bars show the distribution of data recorded in the awake state, and the blue bars show the distribution of data recorded in the anesthetized state.

We recorded spontaneous activity continuously for 300 s; see Supplementary Video 1 for an example in one animal. For this animal, we show the Ca2+ signal traces of the same example neurons (selected from each brain region) first in the anesthetized state and, then, in the awake state (Fig. 4e). We measured the Ca2+ signals in neuropil regions adjacent to neuronal cell bodies and found that the neuropil signals were largely negligible in all three brain regions (Fig. 4f): V1 (Δf/f value, neurons: 0.7\0.4–1.0, neuropils: 0.15\0.11–0.17, N = 41, paired Wilcoxon rank sum test, P = 6e−15), M1 (Δf/f value, neurons: 0.7\0.6–1.0, neuropils: 0.18\0.15–0.19, N = 12, paired Wilcoxon rank sum test, P = 3e−5), and CA1 (Δf/f value, neurons: 1.3\1.0–2.1, neuropils: 0.17\0.14–0.19, N = 41, paired Wilcoxon rank sum test, P = 6e−15). A complete cell-by-cell demonstration of the Ca2+ signals in both anesthetized and awake states is shown in Suppl. Fig. 1, in which the signal quality of each single cell and the dynamic range across different cells can be readily observed. We pooled the single-cell analysis results from six recordings in the anesthetized state and eight recordings in the awake state from different animals (two recordings were made in the same animals in both states, whereas the rest of the recordings were made in different animals in one state each). Interestingly, all of the histograms of the Ca2+ event amplitudes (in each region and for each state) can be fitted by highly skewed, log-normal distributions21, as shown in Fig. 4g. In terms of the log-scaled distributions of the Ca2+ event amplitudes, the V1 and M1 neurons underwent drastic upshifts from the anesthetized state to the awake state (V1, anesthetized: μ = 10−0.46, σ= 100.14, N = 125, awake: μ = 10−0.13, σ = 100.35, N = 430, Wilcoxon rank sum test, P = 4e−74; M1, anesthetized: μ = 10−0.30, σ = 100.31, N = 211, awake: μ = 10−0.03, σ= 100.44, N = 483, Wilcoxon rank sum test, P = 4e−63), while CA1 neurons underwent a minor upshift that was also highly significant (anesthetized: μ= 10−0.13, σ = 100.41, N = 342; awake: μ = 10−0.04, σ = 100.45, N = 493, Wilcoxon rank sum test, P = 4e−25).

The abovementioned results could have been obtained by alternative techniques by sequentially performing conventional single-FOV imaging in one brain region after another. However, the MATRIEX technique provided data with extra dimensions of information that single-FOV imaging techniques cannot offer, e.g., both interregional and intraregional neuronal pairwise correlations in real-time. In this set of experiments, there were three pairs of interregional correlations (V1–M1, V1–CA1, and M1–CA1) and three pairs of intraregional correlations (V1–V1, M1–M1, and CA1–CA1); the histograms of each correlation are shown in Fig. 4h. Interestingly, all of the correlations except for the CA1–CA1 correlation underwent substantial downshifts from the anesthetized state to the awake state (see the statistical parameters in Fig. 4h). In contrast, the CA1–CA1 correlation underwent an upshift from the anesthetized state to the awake state. Another interesting finding was that for both the anesthetized state and awake state, the cortico-hippocampal interregional correlations (V1–CA1 and M1–CA1) were both much smaller than the cortico-cortical interregional correlation (V1–M1). Statistical tests for each of the above statements regarding the pairwise neuronal correlation levels yielded significant results with the P value being 0 (too small to be calculated). Taken together, these results show a highly inhomogeneous distribution and transformation of spontaneous activity patterns from the anesthetized state to the awake state at the brain-wide circuit level with single-cell resolution. In another example experiment using the same configurations of MO, DO, and target imaging regions, we show visual stimulation-related neuronal activities in V1, M1, and CA1 in awake mice (Suppl. Fig. 2).

Discussion

The MATRIEX technique, based on the principle of two-stage magnification and multiaxis optical coupling, has enabled the simultaneous two-photon Ca2+ imaging of neuronal population activities in multiple brain regions at different depths (e.g., V1, M1, and CA1) with single-cell resolution in anesthetized and awake mice. The uniqueness of the MATRIEX imaging method is its ability to simultaneously image multiple brain areas that are distributed at very different coordinates, both axially and laterally (more than 1 mm apart, up to 12 mm), which is nearly impossible to achieve with conventional two-photon microscope systems based on a single optical axis. Strikingly, any conventional two-photon microscope can be transformed into a MATRIEX microscope, and all of the original microscope functionalities are preserved. The key to enabling such a transformation is the design of a compound objective assembly as a flexible add-on module. In particular, note that conventional two-photon laser scanning systems are fully compatible with the compound assembly (because the DOs are industrial products with the same conventional standards) and do not need to be modified. In contrast, other novel custom-made objectives for imaging in a single large FOV9,10 require highly customized laser scanning devices that are barely compatible with the majority of the currently available two-photon microscopes worldwide (that are built by conventional standards). Placing two independent sets of two-photon laser scanning rigs over one animal head can also realize dual-region imaging16,17, however, due to practical limitations related to the size of the scanning rigs (but not the multiple GRIN lenses that are directly attached to the skull), configurations of three or more brain regions are very difficult to realize geometrically using such techniques. See Suppl. Table 1 for a survey of the currently available multiregion imaging techniques applied in neuroscience.

We must mention one drawback of using GRIN lenses as MOs: GRIN lenses significantly lack certain optical aberration correction properties. As a result, the lateral resolution (measured by fluorescent beads) is good, but the measured axial resolution is relatively poor (Fig. 1g). Indeed, there are MOs with higher optical quality (and with higher cost and less flexibility), e.g., a special MO made by combining multiple pieces of precision-machined high-quality optical glass22. However, the MOs are usually single-use consumables, particularly when the MOs are glued to the skull of the animal for chronic imaging experiments. Thus, after considering the trade-offs, we decided to sacrifice some axial resolution to improve the feasibility of the practical experiments.

By using different carefully designed MOs to suit different brain regions, the MATRIEX technique essentially offers a high-flexibility ‘three-dimensional multiarea optical interface’ between neural network activity in the animal brain and a two-photon laser scanning system. As shown above, there is 100% compatibility between conventional two-photon microscopy systems and the MATRIEX technique. Therefore, a broad range of other advanced techniques developed for two-photon microscopy are also compatible and may be combined with the MATRIEX technique to further extend the performance and applicability, including, but not limited to, (1) random-access scanning and/or photostimulation methods23,24,25,26; (2) advanced surgical techniques for chronic imaging27; and (3) adaptive optics28 and other point-spread-function shaping techniques29. Overall, we expect that the application of the MATRIEX technique will substantially advance the study of three-dimensional brain-wide neural circuit dynamics with single-cell resolution.

Materials and methods

In this study, we used a “LotosScan” two-photon microscope (Suzhou Institute of Biomedical Engineering and Technology, Chinese Academy of Sciences). This microscope is based on conventional single-beam resonant scanning technology, similar to our prototypes reported or used in earlier studies22,30,31,32,33,34,35 and similar to several other commercially available products. The implementation of the MATRIEX technique does not require the two-photon microscope to be custom-built, i.e., any two-photon microscope that uses a commercial standard objective can be transformed into a MATRIEX microscope. A detailed description of the components of the microscope that we used in this study is given in the Supplementary Materials.

Adult male C57BL/6J mice (8–10 weeks old) were used in this study. All animals were provided by the Laboratory Animal Center at the Third Military Medical University. All surgical tools and optical parts that were in contact with the animals were sterilized before use. All the experimental procedures were performed in accordance with institutional animal welfare guidelines, were approved by the Third Military Medical University Animal Care and Use Committee and were similar to the procedures used in our earlier reports36,37,38,39. A detailed description of the surgical procedure and fluorescence labeling is given in the Supplementary Materials.

We analyzed our data using custom-written software in LabVIEW 2012 (National Instruments), Igor Pro 5.0 (Wavemetrics), and MATLAB 2014a (MathWorks). To correct motion-associated artifacts in imaging data40, we used a frame-by-frame alignment algorithm to minimize the sum of squared intensity differences between each frame image and a template generated by averaging the selected image frames. To extract fluorescence signals, we visually identified neurons and drew regions of interest (ROIs) based on fluorescence intensity. Fluorescence changes (f) were calculated by averaging the corresponding pixel values in each specified ROI. Ca2+ signals were expressed as relative fluorescence changes Δf/f  = (f − f0)/f0, where the baseline fluorescence f0 was estimated as the 25th percentile of the entire fluorescence recording. We used the Pearson correlation coefficient to calculate the pairwise neuronal correlation. Let X and Y be the arrays of data points in the Ca2+ signal traces of neurons X and Y, respectively. The Pearson correlation coefficient was calculated as follows: \({\mathrm{corrcoef}}(X,Y) = \frac{{{\mathrm{cov}}(X,Y)}}{{\sigma _X \cdot \sigma _Y}}\), where cov(X,Y) represented the covariance between X and Y. σX is the standard deviation of X. All biological measurement results were expressed in the format of ‘median\25th–75th percentiles’, and the Wilcoxon rank sum test was applied for all statistical tests, if not stated otherwise.