Introduction

Brains use temporal structure of action potential sequences in large populations of neurons to code complex information for the control of behavior1,2,3. Data from many brain systems meanwhile show that temporal correlations in action potential output of neurons are often associated with robust synchrony of membrane voltage fluctuation reflecting common time structure of received synaptic input as well as dynamic properties of the imbedding circuits4,5,6. The spatial-temporal structure of membrane voltage fluctuation in large-scale cortical networks is principally assessable to voltage imaging using potentiometric indicators designed to emit a fluorescence signal sensitive to the local trans-membrane voltage when excited by light7,8. The most recent class of voltage indicators consists of DNA-encoded protein probes (genetically encoded voltage indicators; GEVI)9,10,11,12,13,14 offering several improvements over low molecular weight voltage sensitive dye indicators, such as absence of phototoxic and pharmacological effects, stable long-term expression and the ability to target specific cell types15. GEVI imaging supports the functional dissection of neuronal circuits using techniques that are fully compatible with optogenetic tools16,17. Most of recent GEVI variants use the voltage sensor domain of voltage-activated phosphatase12,13,18,19, mostly Ci-VSP (Ciona voltage-sensitive phosphatase), as a voltage-sensitive component together with fluorescent protein at insertion sites suitable to render the fluorescence emission sensitive to conformation changes performed by the voltage-sensor domain. The very first GEVIs using the Ci-VSP voltage sensor was the VSFP2 series of probes (VSFP; voltage-sensitive fluorescent protein) which achieved reliable function in neuronal cell culture, brain slice and mouse brain in-vivo9,20,21. Recently, we introduced VSFP Butterfly 1.2, an enhanced VSFP variant featuring a mCitrine/mKate2 FRET reporter with the mCitrine donor linked to S4 and the mKate2 acceptor to the S1 transmembrane segment of the Ci-VSP voltage sensor. VSFP Butterfly became the first GEVI to provide sufficient sensitivity to report not only sensory population responses in somato-sensory cortex with high signal-to-noise in-vivo, but also spontaneous cortical network activity across different brain states12.

Voltage imaging using low molecular weight fluorescent voltage-sensitive dye indicators in wide field mode was extensively applied to cortical information processing, e.g. to reveal sensory feature representations in different operating states of cortical networks22,23,24,25,26,27,28,29. However, wide field images of cortex stained with fluorescent indicators lack cellular resolution because of the blur produced by out-of-focus light and light scattering. The optically reported membrane voltage, therefore, reflects an average over all stained membranes within a tissue volume containing a large number of cells. While monitoring compound activities can provide a useful representation of cortical dynamics by emphasizing the major modes of activity shared by a larger set of neurons, other questions require cellular resolution. The foremost optical approach to improve spatial resolution and deliver un-blurred optical sections of micrometer thickness up to larger tissue depth is 2-photon microscopy30. 2-photon voltage imaging, however, has been lagging as imaging method, mostly because of the low photon counts expected from sequential image scan acquisition at fast frame rate, unavoidably leading to high photon shot noise31. Notwithstanding, in-vitro studies recently demonstrated single-trial sensitivity for recording of action potentials in axonal terminal arbors32, back-propagated action potentials in single spines33 and spontaneous and evoked somatic potentials in neurons in acute brain slice34 using 2-photon imaging of voltage-sensitive dyes. On the other hand, available 2-photon imaging data of sensory-evoked activity in somatosensory and visual cortex remained poor in signal-to-noise requiring extensive trial averages (> 100) to surpass the noise levels31,35.

We speculated that the latest generation of VSFP indicators would be suitable for in-vivo 2-photon voltage imaging of cortical electrical activity at favorable SNR by taking advantage of several factors, in particular high gain of the indicator and exclusive expression in targeted cells. By expressing VSFP Butterfly 1.2 in layer 2/3 pyramidal neurons and using standard microscope hardware, we obtain two- to threefold larger fractional indicator responses (ΔF/F0 and ΔR/R0 values) in 2-photon versus 1-photon excitation imaging and a sufficient SNR to record cellular responses in-vitro and bulk population responses in-vivo in single trials.

Results

In previous work, we developed a set of in-vitro assays to evaluate VSFP probes for their general photophysical properties and physiological utility under 1-photon excitation. As for these, the VSFP Butterfly 1.2 is perhaps the best characterized GEVI probe available today, with a documented maximal voltage sensitivity of 22% per 100 mV close to half activation voltage of −70 mV and a response time with a leading component of 2–6 ms12. The utility of VSFPs to probe physiological processes in 2-photon imaging, however, has not been addresses before. Most importantly, this concerns the magnitude of the 2-photon excited optical voltage report in brain tissue and the overall signal-to-noise ratio (SNR) achievable in physiological experiments. To answer these questions, we first performed imaging experiments on cortical brain slices from adult mice expressing Butterfly 1.2 in a dense population of pyramidal neurons in cortical layer 2/3 following in-utero electroporation of pCAG-Butterfly 1.2 plasmid at E14.5 to E15.5 (see20 and Methods). To compare the probe response in the same sample under 1-photon and 2-photon excitation we set up the microscope to support both imaging modes. By applying a brief burst stimulus (5 pulses; 100 Hz) to a microelectrode placed in layer 4, we first imaged the mCitrine fluorescence from a large field in layer2/3 using 1-photon excitation at 495 nm (Fig. 1a) yielding an optical signal of 0.3% fractional mCitrine fluorescence response (ΔF/F0) in the example shown (Fig. 1b and c). Regarding efficient 2-photon excitation, we note that mCitrine has a peak 2-photon absorption at 950 nm36. Limited by the working range of our Ti-Sapphire laser, we set the excitation wavelength slightly below 950 nm centering around 920 nm in this set of experiments. To scan the sample at video rate, we scanned a smaller field through the same 20 × objective (red frame in Fig. 1a) at 32 × 32 pixel resolution while applying the 5 pulse stimulus as before. Expectedly, the 2-photon image resolved the dense packing of fluorescent neurites in layer 2/3 (Fig. 1d), while the fluorescence signal exhibited a decrease of mCitrine and an increase of mKate2 emission (Fig. 1e) as with 1-photon excitation12. Although the 2-photon recordings carried substantially more baseline-normalized noise, the amplitude of the fractional fluorescence response was about 1% in the mCitrine channel, notably larger than in 1-photon mode (~0.3%) and increased to about 3% in the presence of the GABA(A) receptor antagonist Gabazine. Under Gabazine the response was easily revealed with good SNR (~2–3) in single trials (Fig. 1f), facilitated by a higher level of stimulus-induced activity in the partially disinhibited network. The example shown in Fig. 1 was consistent with all preparations tested, although SNR varied with the level of Butterfly expression. To further improve SNR, we changed from linear to spiral scan, which permitted two- to threefold longer dwell time at similar frame rate and pixelation (Fig. 2). In the example of the well-resolved superficial cell in Fig. 2a the largest absolute mCitrine response (ΔF) appeared at the location of the cell body and in a proximal neurite field where the evaluated amplitude of mKate2/mCitrine ratio response (ΔR/R0) reached up to 3% (Fig. 2b). Here, the ratio response is presented as color-coded overlay onto the mCitrine fluorescence gray scale image for all pixels where the absolute mCitrine response, after spatial filtering, reached a z-score above 2 above baseline noise. As the absolute response is expected to be large in responsive pixels of high brightness, thresholding by the absolute fluorescence response allowed us to trace single responsive cells. When extracting the mKate2/mCitrine signal from a cell body (yellow circle in Fig. 2a and b), voltage signals were robustly seen in single trials (Fig. 2c and d).

Figure 1
figure 1

Evaluation of Butterfly 1.2-reported neuronal electrical population activity recorded in 1P and 2P excitation mode.

(a) 1P-exited mCitrine image of a coronal brain section showing cortical layer 2/3 as a bright band. (b) Color-coded fractional fluorescence response (ΔF/F0) in response to a 5 pulse (100 Hz) stimulus applied through a stimulation electrode placed in layer 4 (red asterisk). (c) Time course of Butterfly 1.2 response taken from the region of interest marked by black circle in (b). (d) Left: 2P-excited mCitrine image of an area lined out by red frame in (a). Middle: Fractional mCitrine fluorescence in response to the same stimulus as used before. Right: Response after bath application of the GABAA-receptor antagonist Gabazine (10 μM). (e) Time course of 2P-excited mCitrine (yellow), mKate2 (red) and mKate2/mCitrine ratio (black) signals (4 trial and 32 trial averages) corresponding to the region of interest indicated in (d) in response to a 5 pulse stimulus. (f) Same in (e) after Gabazine (10 μM) application.

Figure 2
figure 2

2P imaging of single cell voltage response in-vitro.

(a) 2P mCitrine fluorescence image of a layer 2/3 pyramidal cell in a cortical brain slice 120 μm below slice surface. (b) Time lapse series of Butterfly 1.2 fluorescence images in response to a 5 pulse (100 Hz) extracellular current stimulus applied at time zero. Upper row: Absolute differential mCitrine response (ΔF/ΔFmin) at different times after stimulus presentation. Lower row: mCitrine fluorescence image (grey) overlaid with the color-coded mKate2/mCitrine response (ΔR/R0) of those pixels yielding a mCitrine response amplitude (ΔF) of z-score of two over mean baseline fluctuation (ΔF0) across the whole image area. (c) Time course of the trial number 1 to 10 taken from a region of interest surrounding a pyramidal cell body (indicated yellow in a and b). (d) Trail overview showing the color-coded mKate2/mCitrine ratio signal (ΔR/R0) of the cell body (yellow circle in a and b) of all 32 trials. (e) Time course of the mCitrine (yellow), mKate2 (red) and mKate2/mCitrine ratio in the trial average.

The above data suggest that 2-photon VSFP imaging of neuronal activity is feasible up to single-trial sensitivity in brain slices where the only limiting source of noise is the photon quantum statistics itself. Next, we set out to determine whether the probe would afford detection of sensory-evoked electrical activity in-vivo where additional noise may arise from tissue movement and hemodynamic effects. We performed in-vivo imaging of whisker deflection-induced voltage responses in barrel cortex of anesthetized and head-fixed adult mice. Upon directing a brief air puff focally onto the C1 whisker we first identified the location of the cortical responsive area by macroscopic trans-cranial voltage imaging of the contralateral cortical hemisphere using 1-photon excitation as described20. Once the C1 responsive area was mapped (Fig. 3 e and f), we performed a small circular craniotomy centering around the C1 barrel column for optimal optical access. We then imaged the underlying cortex consecutively in 1-photon (Fig. 3g) and 2-photon (Fig. 3h) excitation mode, with identical fields of view (Fig. 3c and d), using an optical configuration as schematically indicated in Fig. 3a. In response to the whisker stimulation, responsive areas and time courses (Fig. 3g and h) were consistent between both imaging modalities (Fig. 3g). The optical signal sampled over an area where the absolute mCitrine response (ΔF) supersedes a threshold of z-score 1.5 (corresponding to a region of interest defined by the colored area at the time of peak response) was revealed in single trials (Fig. 3i). It is important to note that the fluctuation of the baseline signal in this case also includes the voltage signals reporting ongoing spontaneous electrical activity12 in addition to photon shot noise.

Figure 3
figure 3

2P imaging of the population voltage responses in the barrel cortex in-vivo.

(a) Experimental setup permitting 1P and 2P voltage imaging of head-fixed mice. (b) Macroscopic mCitrine 1P fluorescence image showing the left cortical hemisphere of an 8 weeks old mouse. (c) mCitrine 1P image of the C1 barrel cortex after cranitomy. The yellow circle marks the area covered by the spiral laser scan in 2P imaging mode. (d) mCitrine 2P image of the field as in (c) 190 μm below pia. (e) Visualization of the C1 barrel response after craniotomy in 1P whole hemisphere imaging showing the mCitrine baseline fluorescence (gray) overlaid with the color-coded mKate2/mCitrine response at different times relative to stimulation time. (f) Time course of the mCitrine (yellow), mKate2 (red) and mKate2/mCitrine ratio signals recorded from the region of interest (yellow circle) indicated in (e). (g) Time lapse series of the Butterfly 1.2-reported cortical response to C1 whisker stimulation imaged in the 1P mode. Upper row: Absolute differential mCitrine response (ΔF/ΔFmin). Lower row: mCitrine fluorescence image (grey scale) overlaid with the color-coded mKate2/mCitrine response of pixels yielding a mCitrine response amplitude (ΔF) of z-score of 1.8 over mean baseline fluctuation (ΔF0) across the whole image area after averaging 32 trials. (h) 2P excitation recording with the same field of view as in (g). (i) Time course of 2P mKate2/mCitrine signals recorded from the region of interest comprising all color-coded pixels of the peak response shown in h (lower row). Top: Overlay of first 10 trials together with the mean (red). Bottom: Overview of all 32 trials showing the ΔR/R0 response according to the indicated color code.

The power of functional optical imaging derives from the ease to adapt the magnification to different spatial scales of interest. The 2-photon imaging experiments described above aimed at population activity using low magnification and large-scale spatial filtering. In a second set of experiments, we explored the Butterfly response at cellular resolution using a 25 × objective and full frame (512 × 512) resonance scanning at video rate. In this setting, single cell somata (Fig. 4a) and dendritic branches (Fig. 4b) were easily resolved in-vivo in all 10 animals imaged. In 5 out of 10 animals we identified individual cells that were responsive to a whisker deflection stimulus (marked with asterisks in Fig. 4b and d) when accumulating the signal of the brightest pixels over a few trials. In two recordings, we also probed the voltage response to a stimulus applied to a first-order neighboring whisker and did not detect a signal above noise level (Fig. 4b and d) indicating sharp receptive fields. This is in agreement with intracellular recordings where a twofold decrease of EPSP amplitude in barrel cortex neurons was found in response to first-order neighbor versus principal whisker stimulation37,38. The existence of a principal whisker and absence of neighboring whisker signals offers an internal validation of these measurements that let us rule out relevant contributions of stimulus artifacts.

Figure 4
figure 4

Tactile responses in the barrel cortex at cellular resolution.

(a) 2P image of a layer2/3 pyramidal cell expressing Butterfly 1.2 in-vivio (top) with pixels of interest (POI) marked in green (buttom). (b) Time course of the 2P mKate/mCitrine ratio (ΔR/R0) signal in response to D1 whisker (wD1; red) and C1 whisker (wC1; black) stimulus after averaging 16 trials, with error bars representing SEM and the time of the stimulus trigger signal indicated at the bottom. D1 response marked by asterisk. (c) Another field of view from the same animal preparation showing segments of dendrites with the color-coded ratio response (ΔR/R0) superimposed onto the mCitrine image at pixels of highest brighness selected with a z-score of 1.3 from the mCitrine image, with the time measured from the onset of the stimulus trigger signal. (d) Time course of the response to D1 whisker (red) and C1 whisker stimulation (black) with pixels colored in (c) taken as the region of interest and the time of the stimulus trigger signal indicated at the bottom. Average over 16 trials with error bars representing SEM.

Discussion

The present work demonstrates the feasibility of GEVI-based 2-photon voltage imaging as a tool to map electrical activity in intact brain circuits. We obtained sufficient SNR to permit imaging of sensory-evoked population activity in high-resolved optical sections of layer 2/3 in-vivo.

The optical voltage signals in these 2-photon recordings have a dynamic range of 1 to 3%, about 2 to 3 times larger than corresponding 1-photon recording, but 1 to 2 orders of magnitude smaller than typical calcium imaging signals. However, calcium imaging provides a very indirect measure of neuronal activity, generally limited to supra-threshold activity and certain cell types39,40,41. While action potentials can produce large calcium transients in axon terminals, cell body and parts of dendrites, slow subthreshold potentials produce orders of magnitude smaller calcium signals39,42. Voltage indicators including GEVIs principally afford broader coverage of neuronal activity, including sub threshold potentials. VSFP Butterfly 1.2, specifically, responds with highest gain (slope of fluorescence-to-voltage relationship) to voltage fluctuations around the resting membrane voltage12. Although Ci-VSP-derived voltage indicators can report fast action potentials12,18,20, the optical signal is generally small because fast somatic action potentials activate the sensor only partially43. We, therefore, interpret the Butterfly 1.2 signal as reporting mostly somato-dendritic activity due to post synaptic potentials and likely smaller contributions from backpropagating action potentials and fast dendritic spikes. For these reasons, voltage and calcium imaging capture largely complementary aspects of the neuronal dynamics42.

In 2-photon scanning microscopy (TPSM), photons are collected from a small (< 1 μm) excitation volume in the laser focus where the electromagnetic field strength is large enough to yield significant 2-photon absorption of the probe30,44. The thickness of the focal plane in TPSM equals the axial dimension of the effective 2-photon point spread function in the order of microns depending on wavelength and numerical aperture of the objective. Since photo-absorption outside of this plane is very low, TPSM delivers practically background-free images of micron-sized optical sections of thick tissue44. In our experiments, we could obtain cellular resolution images up to the border of layer 2/3 to layer 4 spanning the whole cortical sheet of Butterfly 1.2-expressing cells. Suppression of out-of-focus fluorescence background explains why the functional response had 2–3 times larger apparent amplitude when acquired in 2-photon versus 1-photon excitation mode, even in the case of large regions of interest comprising many cells (Fig. 1 and 3). As the SNR of the optical measurement is a linear function of the apparent response magnitude43, these gains help overcome the detection threshold set by the higher level of photon quantum noise in scanning 2-photon microscopy.

This work presents the first optical voltage measurement by TPSM using a Ci-VSP based GEVI reporter in cortical cells. Another study recently reported TPSM of Flare-reported cellular resolution signals in visual cortex35. However, the signals responding to visual stimuli were very weak, requiring extensive trial averaging (> 100), while lacking convincing validation to proof that these signals reliably represent membrane voltage, given that Flare and other first generation GEVIs, derived from voltage-gated ion channels, were not functional when tested in cultured mammalian cells45. CiVSP-based, second generation indicators such as VSFP2s and VSFP-Butterflies, on the other hand, were extensively validated and show consistent function in all preparations studied so far, including cultured neurons, brain slices and whole brain in-vivo13,20, in 1-photon and 2-photon excitation.

The present data provide the proof-of-principle for 2-photon VSFP voltage imaging using standard TPSM. To achieve sufficient SNR we used spatial filtering to accumulate the photon counts across neighboring pixels, thereby scarifying spatial resolution. A promising alternative hardware-based approach to increase the photon sampling rate uses temporal focusing of the excitation light to permit a larger excitation area without loss of axial resolution46. Another approach implements 3D random-access scanning to increase dwell times and hence photon yields at individual voxels of interest47,48. We expect that a combination of innovative optical methods, requiring specialized optical hardware, will further improve the SNR in VSFP 2-photon voltage imaging and facilitate long-term, non-invasive monitoring of membrane voltage signaling in cortical circuitry at high spatial resolution in-vivo.

Methods

Animal welfare

Animal experiments were performed in accordance with the National Institutes of Health guidelines for animal research and were approved by the Institutional Animal Care and Use Committees of the RIKEN Wako Research Center and Ehime University.

In utero electroporation

Mouse embryos at E14.5 to E15.5 were in-utero electroporated with a pCAG-VSFP Butterfly 1.2 plasmid using a protocol yielding high expression in layer 2/3 pyramidal cells across large part of the cortical hemisphere. Time-pregnant mice (CD-1; ICR, Japan SLC, Inc.) were anesthetized with sodium pentobarbital (50 mg/kg body weight, injected intraperitoneally) and a midline laparotomy was performed to expose the uterine horns. Heads of individual embryos were held in a position providing visual access to the dorsal telencephalon and 1 – 2 μL of plasmid (5 μg/μL) mixed with the dye Fast Green (0.05% w/v; Sigma) was injected into the left lateral ventricle through the uterine wall using a glass capillary. Three electric pulses (43 V, 50 ms; CUY21EDIT, Nepa Gene, Japan) were applied at 950 ms intervals through forceps-shaped electrodes (CYU650, Nepa Gene) contacting the dorsal (positive electrode) and ventral (negative electrode) telencephalon, with the uterine wall kept moist with PBS (37°) solution. After embryos (sparing the first and last in each horn) were electroporated, the electroporation was repeated a second time using a slightly more anterior site for plasmid injection. Finally, the uterus was moved back to the uterine cavity, incisions of abdominal muscle and skin were closed with sutures and mice were recovered from anesthesia within 1 h in a small recovery cage on a heat stage.

Slice imaging

Young adult mice (21–30 d) were deeply anesthetized with halothane and dissected brains quickly transferred into ice-cold artificial cerebral-spinal fluid (ACSF) composed of (in mM): 126 NaCl, 3 KCl, 2 CaCl2, 1 MgSO4, 1.25 NaH2PO4, 24 NaHCO3, 10 D-glucose at pH 7.4. Coronal cortical slices (300 μm) were cut using a vibratome (Leica TS1200) and stored in carbogenated ACSF for an initial 30 min at 32°C and later for 0.5 to 4 h at room temperature (22–25°C). For experiment, individual slices were transferred into a slice chamber under a 2-photon microscope and superfused with ACSF at 30–32°C. For extracellular field stimulation a stimulus consisting of five brief current pulses (0.2 ms, 20–70 μA) at 100 Hz (Master 8, A.M.P.I) were delivered through a glass microelectrode filled with ACSF and positioned in the granular layer close to the imaged area. The microscope consisted of a 2-photon non-descan microscope featuring fast galvometric mirror scanners (Ultima 4, Prairie) coupled to a TiSaphir laser (Chameleon, Coherent). The microscope was equipped with an auxiliary CCD port and epifluorescence condenser for 1-photon fluorescence imaging. 1-photon imaging employed a feedback-stabilized blue LED (465 nm max; Lex-2, Brain Vision), a cooled CCD camera (QuantumEM, Roper) and optical filters for mCitrine imaging, FF01-483/32-25 (Semrock) for excitation, FF01-542/27-25 for emission (Semrock), FF506-Di03-25 × 36 (Semrock) for excitation beam splitting. 2-photon imaging was performed in frame or spiral scan at video rate and 64 × 64 pixelation using an Olympus 20 × NA 0.95 water immersion objective. The mCitrine and mKate2 signals were split and simultaneously recorded using, FF01-542/27-25 for mCitrine emission (Semrock), BLP01-594R-25 for mKate2 emission (Semrock), FF593-Di03-25 × 36 (Semrock) for mCitrine/mKate detection splitting.

Animal surgery for in-vivo imaging

Adult mice (30 to 120 day old) were deeply anesthetized with pentobarbital (0.9 g/Kg i.p.) or a combination of 0.3 mg/kg of medetomidine, 4.0 mg/kg of midazolam and 5.0 mg/kg of butorphanol. Soft tissue was retracted to expose the cranial bone and a metal rod serving as a hold for head fixation during experiments was mounted on the frontal cranial bone with dental cement. The bone over the left somato-sensory cortex was thinned with care, to minimize heat exposure, using a dental ball driller (2 mm) until the bone became highly transparent (thickness < 30 μm) giving a sharp view of the pial vasculature. Whiskers on the right snout were cut except of the C1 and D1 whiskers which were trimmed to 15 mm length. For imaging, the animals were head-fixed in a custom-made stereotaxic frame with the body temperature maintained at 37°C by means of a feedback-controlled heat pad (Fine Science Tools, Tokyo). For whisker stimulation, a pasteur pipette connected to a fast gated air flow system (Picospritzer III, Parker Hannifin) was adjusted to direct a 100 ms focal air puff onto one whisker evoking a fast forward (caudal to rostral) deflection. The cortical location of the C1 or D1 barrel was determined by transcranial imaging (see below) in the anesthetized animal. A small craniotomy (2 mm) was performed over the cortical area responsive to the stimulus by preserving the dura mater. The craniotomy was then filled with 0.5 to 1.5% agarose dissolved in HEPES-buffered ACSF to stabilize the cortical surface and finally covered with a small cover glass.

Optical in-vivo imaging

During experimental sessions animals were kept under deep anaesthesia indicated by absence of foot pinch responses and absence of spontaneous whisking by repeated intraperitonal applications of pentobarbital or a combination anesthetic with 0.3 mg/kg of medetomidine, 4.0 mg/kg of midazolam and 5.0 mg/kg of butorphanol, respectively, as required. The position of the C1 or D1 barrel column in somatosensory cortex was determined by dual-channnel, whole hemisphere, transcranial imaging of Butterfly 1.2 using Leica PlanOPO 1.0 and Leica PlanOPO1.6 lenses in tandem and two synchronized CCD cameras (Sensicam, PCO). Excitation light was supplied by a high power halogen lamp (Moritex, Brainvision, Tokyo). The optics included the following optical filters FF01-483/32-25 for mCitrine excitation (Semrock), FF01-542/27-25 for mCitrine emission (Semrock), BLP01-594R-25 for mKate2 emission (Semrock), FF506-Di03-25 × 36 (Semrock) as excitation beamsplitter, FF593-Di03-25 × 36 (Semrock) as detection beamsplitter. Image sequences (20 trials) of 4 s duration and 30 s interstimulus periode were acquired at 50 fps (320 × 240 pixels) using custom acquisition macros under ImagePro 6.2. Two-photon imaging was performed using either the same setup used for slice recording, but using a NIKON 16 × NA 0.8 water objective, or a setup featuring a fast resonant scanner (NIKON A1R MP+) giving 512 × 512 pixel frames at video rate using a NIKON 25 × NA 1.1 water immersion objective and a dispersion-corrected high power Ti-Saphire laser (Mai Tai HP DeepSee, Spectra-Physics) at 950 nm, together with optical filters 535/50 for mCitrine emission (Semrock), 594LP for mKate2 emission (Semrock), 593LP for mCitrine/mKate detection splitting. Imaging trials had a length of 5 s with the puff stimulus applied after 2 s or 3 s, repeated 20–32 times with 30 s interstimulus period.

Data analysis

Imaging data were analyzed using Matlab 7 image and signal processing toolboxes (Mathworks) and ImagePro6.2 image processing software. 512 × 512 image sequences were down-sampled using a 4 × 4 averaging kernel for noise reduction. Absolute mCitrine response images (ΔF/ΔFmax) were obtained by subtraction of the average of the pre-stimulus sequence after subtraction of dark offsets and normalization by the maximum absolute response. Fractional response images (F/F0) were obtained by normalizing the sequence by the pre-stimulus average after subtraction of dark offsets. Ratio images (R/R0) were obtained by dividing the mKate2 by the mCitrine sequence after offset subtraction and noise gain equalization (see ref. 12) and subsequent normalization by the prestimulus ratio average. Response images were spatially filtered using 8 × 8 or 12 × 12 Gauss kernels. To visualize the most responsive areas in the image we ranked pixels in the absolute mCitrine response image in the time window of peak response according to z-score and applied a threshold of either 1.5 or 2. In the case of high magnification, high resolution images we ranked pixels according to absolute brightness in the unfiltered mCitrine fluorescence image and filtered the absolute mCitrine response with a 32 × 32 averaging kernel using only pixels that reached a z-score of 2 in absolute brightness. Time traces were extracted from the imaging data using either circular regions of interest or regions of interest comprising pixels surpassing the threshold in absolute response or absolute brightness, respectively, as stated in the text.