Abstract
Time-lapse in vivo microscopy studies of cellular morphology and physiology are crucial toward understanding brain function but have been infeasible in the fruit fly, a key model species. Here we use laser microsurgery to create a chronic fly preparation for repeated imaging of neural architecture and dynamics for up to 50 days. In fly mushroom body neurons, we track axonal boutons for 10 days and record odor-evoked calcium transients over 7 weeks. Further, by using voltage imaging to resolve individual action potentials, we monitor spiking plasticity in dopamine neurons of flies undergoing mechanical stress. After 24 h of stress, PPL1-α’3 but not PPL1-α’2α2 dopamine neurons have elevated spike rates. Overall, our chronic preparation is compatible with a broad range of optical techniques and enables longitudinal studies of many biological questions that could not be addressed before in live flies.
Similar content being viewed by others
Introduction
Direct and repeated observations of cellular structure and physiology over extended periods in live animals are critical to dissecting the mechanisms of experience-dependent plasticity, neural development, degeneration, and aging1. Chronic preparations for long-term intravital microscopy exist for several animal model species that are either naturally translucent or allow installation of optical windows. Time-lapse studies using these preparations have revealed rich longitudinal dynamics for cellular morphology and function, under both natural and pathological conditions, that could not be captured by studying multiple distinct sets of animals at different time points2,3,4.
In the fruit fly, a mainstay animal model for biological research, long-term in vivo imaging (>24 h) of the intact central nervous system has remained elusive due to the fly’s fragility and opaque exoskeleton5, 6. Hence, many questions remain unanswered about how neural circuits develop, respond to experience or environmental influences, or degenerate due to injury or disease. To facilitate time-lapse studies of these issues, we developed a workflow for repeated, long-term in vivo imaging in the fly brain for up to 50 days (Fig. 1a). As we illustrate here with several types of time-lapse imaging experiments, this workflow permits longitudinal studies of many different biological questions that could not be examined before in live flies.
Results
Laser surgery for long-term optical access to the fly brain
First, we created a detachable mount that can hold an alert fly under a microscope objective lens by affixation of a silica fiber to the thorax (Fig. 1a, b; Supplementary Movie 1). When held this way, a fly’s antennae are free for studies of sensory neurophysiology (Supplementary Fig. 1a–d). Once a fly was mounted, we placed it under the objective lens of a custom-built laser microsurgery system, based on a 193-nm-wavelength multimode excimer laser6. Using this microsurgery system, we opened an observation window in the cuticle of the fly’s head.
Excimer-laser-based microsurgery has submicron cutting precision6, more than sufficient for creating the 150–250 μm diameter windows we made in the cuticle. However, when applied in isolation, laser microsurgery only allows in vivo brain imaging over 6–18 h time spans6. To enable long-term imaging studies, after creating the observation window we resealed the cuticle opening with transparent epoxy (Fig. 1a, b). After surgery, flies moved their legs and wings well, an indicator of postsurgical health. Surgically created windows in the fly cuticle enabled high-resolution fluorescence imaging, which we first demonstrated by imaging neuronal structures within the fly mushroom body (Fig. 1b; Supplementary Fig. 1e, f).
At the end of a surgery or imaging session, we released the fly from the mount, detached the silica fiber from the thorax, and transferred the fly to a food vial for long-term storage. To conduct subsequent imaging sessions, we iterated the mounting, imaging, and releasing steps and thereby performed repeated imaging bouts over extended time spans (Fig. 1a). With practice, we were able to perform surgery on eight flies per hour, at a surgical success rate of ~85% for flies 2–10 day post-eclosion and ~70% for flies <8 h post-eclosion.
Surgery minimally affects female fly lifespan
To gauge the impact of surgery in more detail, we compared the lifespans of untreated control flies against those of flies that underwent either surgery and gluing of the cuticle (surgery group) or only gluing of the cuticle (glue group). Notably, female flies in the surgery and glue groups had a 100% survival rate at 10 days after surgery (n = 25 flies per group), and a few flies lived for up to 90 days (Fig. 2a). The lifespan curve of female flies in the surgery group was similar to that of the control group (P = 0.2; n = 25 flies per group; log-rank test) and the glue group (P = 0.06).
By comparison, male flies had a ~90% survival rate 10 days after surgery, and as with females, a few males persisted for ~90 days (Fig. 2b). Lifespan curves of male flies in the surgery and glue groups differed from that of control flies (P = 1.2 × 10–4 and 4.3 × 10–4, respectively, n = 25 flies per group; log-rank test; Fig. 2b). Although survival for 10 days in male flies is ~10–100 times longer than what prior surgical techniques have allowed, to extend our studies to the maximum possible durations we used female flies for all subsequent experiments.
Limited surgical effects on fly behavior
After surgery and their release from the silica fiber, flies seemed to behave normally and could even mate and produce fertile offspring. However, to perform more in-depth checks for any behavioral effects of the surgical procedures we examined locomotor and odor avoidance behaviors in individual female flies (Fig. 3a–c).
We first looked for potential short-term effects of surgery. Two days after surgery, the activity levels and walking speeds of flies in the two experimental groups and the control group were distinct (P = 0.03 for activity levels, P = 0.03 for walking speeds; n = 10 flies per group; Kruskal–Wallis analysis of variance (ANOVA); Fig. 3d, e). However, post-hoc analyses showed that, for both experimental groups, neither activity levels nor mean walking speeds differed significantly from values measured in control flies (P = 0.06–0.8 for activity, P = 0.05–0.6 for speeds; Mann–Whitney U-tests with Holm–Bonferroni correction). These inconclusive findings, with contrary results from the ANOVA and post-hoc analyses, suggest there are mild short-term effects of the gluing procedure, detectable only at the limits of our study’s statistical power. Notably, the surgical procedures caused no additional detectable short-term harm beyond that of the gluing step.
By 6 and 10 days post-surgery, flies in the surgery group regained normal activity levels and walking speeds (P = 0.6–0.9 for activity levels, P = 0.7–0.9 for speeds; n = 10 flies per group; Kruskal–Wallis ANOVA). Later on, at Days 20 and 30 after surgery, flies in the three groups again had detectably different activity levels and mean walking speeds (P = 0.02–0.04 for activity, P = 0.04–0.1 for speeds; n = 7–10 female flies; Kruskal–Wallis ANOVA). However, as with the short-term effects of surgery, post-hoc analyses revealed that mean speeds and activity levels of the individual experimental groups were statistically indistinguishable from those of the control group (P = 0.08–0.9 for activity, P = 0.09–0.2 for speeds; Mann–Whitney U-tests with Holm–Bonferroni correction; Fig. 3d, e). An exception arose on Day 30, when the activity level of the surgery group was detectably lower than that of control flies (P = 0.022; Mann–Whitney U-test with Holm–Bonferroni correction). Of note, flies in both the surgery and glue groups had normal peak walking speeds and odor avoidance behavior for 30 days (P = 0.2–0.9; Kruskal–Wallis ANOVA; Fig. 3f, g), indicating normal olfactory sensorimotor function. Overall, female flies were generally healthy for at least 30 days after surgery, despite some subtle effects on specific behavior traits that were barely detectable in statistical analyses of the data from a total of 105 flies.
Time-lapse two-photon imaging of neural structure
As a first illustration of the applicability of our chronic fly preparation to time-lapse imaging studies, we combined it with two-photon microscopy to inspect the morphologies of identified, individual neurons across multiple days. Until now, it has not been possible to track neural structures in a longitudinal manner in the live adult fly brain. In flies expressing the green fluorescent protein (GFP) in the MBON-α3 mushroom body output neuron, we repeatedly imaged the dendritic arbors of this neuron over periods of 8–10 days (n = 4 female flies; fly ages were 3–4 days post-eclosion on the day of laser surgery; Supplementary Fig. 2). Across this time span, the axonal boutons, major dendrites, and translucency of the preparation all remained constant (Fig. 4), illustrating a capacity for time-lapse imaging of neural architecture at micron-scale resolution.
Long-term imaging of odor-evoked neural Ca2+ activity
Next, we performed long-term Ca2+ imaging experiments in flies that expressed the GCaMP6f Ca2+ indicator7 in mushroom body neurons (see Methods section). We measured odor-evoked Ca2+ responses in these neurons for up to 50 days over 18 imaging sessions. Throughout this period, cuticle windows stayed transparent and waveforms of the evoked Ca2+ transients remained consistent (Fig. 5a, b; Supplementary Fig. 3a–c). For the first 10 days, peak amplitudes of odor-evoked responses and baseline fluorescence levels were also both stable (P = 0.4 and 0.3, respectively; n = 3 female flies; Friedman ANOVA; Fig. 5c). After 12 days, peak amplitudes of the odor-evoked Ca2+ responses became more variable (Supplementary Fig. 3b, c). These variations may partially have arisen from fluctuations in baseline fluorescence levels and might reflect an intrinsic aspect of long-term fluorescence Ca2+ imaging (Supplementary Fig. 3d). Nonetheless, the time-dependent variations were relatively subtle, and the results demonstrate the feasibility of assessing neural Ca2+ dynamics over multiple weeks.
Long-term voltage imaging of dopamine neuron dynamics
We next performed long-term optical imaging of neural activity in flies expressing a genetically encoded fluorescent voltage indicator. We chose the indicator Ace2N-2AA-mNeonGreen, which can report single action potentials with near 100% detection accuracy and ~200 µs timing precision in sparsely labeled neurons of the intact fly brain8.
After expressing this indicator in the PPL1-α’2α2 dopaminergic neuron (see Methods section), we detected action potentials at single-spike resolution at the cell’s axonal region for up to 50 days (11 imaging sessions; 1 kHz imaging frame rates; Fig. 6a–g). Mean rates of spontaneous spiking were stable for the first 10 days (P = 0.7; n = 10 female flies; Friedman ANOVA; Fig. 6b). Signal-to-noise ratios of the detected spikes were also nearly stationary for the first 10 days (P = 0.2; n = 10 female flies; Friedman ANOVA; Fig. 6c). To estimate the fidelity of optical spike detection, we used a signal detection theoretic analysis established previously for quantitative performance evaluations of neural activity imaging8, 9. From this analysis, we determined that the spike detection fidelity, d′, had a value of ~7.1 at our 1 kHz image frame acquisition rate, which implies mathematically a spike detection error rate (including false positives and false negatives) of ~0.4/s. This estimated error rate is <7% of the mean rates of spontaneous spiking (~6–10/s) observed in PPL1-α’2α2 neurons.
Starting at 10-day post-surgery, long-term voltage imaging revealed daily fluctuations in the mean rates and signal-to-noise ratios (SNRs) of the detected spikes in individual and groups of flies (Fig. 6d–f). These observations were consistent with the daily fluctuations in baseline and peak Ca2+ transient amplitudes that arose in our Ca2+ imaging studies by 12 days after surgery (Supplementary Fig. 3b–d). As spike rate determinations require only spike detection, a binary assessment, rather than continuously valued estimates of fluorescence amplitudes, the fluctuations in spiking properties found with voltage imaging seem more likely to reflect physiological variations rather than changes in imaging quality (for which we saw no other evidence). Thus long-term voltage imaging provides a potent means of recording neural spiking dynamics at millisecond resolution over ≥10 days in live flies (Fig. 6g).
Differential responses of dopamine cells to mechanical stress
As a further demonstration of our ability to follow subtle physiological changes, we tracked the spiking properties of two types of PPL1 dopaminergic neurons (PPL1-α’3 and PPL1-α’2α2) in response to prolonged mechanical stress, which is commonly used in fly biology studies as a means of negative reinforcement or sleep deprivation10, 11. These two types of dopamine neurons innervate different compartments of the mushroom body α/α’ lobes12 and have been implicated in the regulation of memory13, sleep14, and sensation15. Past studies have found that PPL1-α’2α2 but not PPL1-α’3 neurons contribute to the formation of both short- and long-term aversive memories13, whereas PPL1-α’3 but not PPL1-α’2α2 neurons have a wake-promoting function in sleep regulation14. However, it has remained unclear whether these two distinct types of PPL1 neurons have different long-term physiological responses to environmental influences.
Using the Ace2N-2AA-mNeonGreen voltage indicator and our chronic preparation, we monitored the patterns of spontaneous spiking in the axonal regions of the two types of dopamine neurons in flies subject to a 4-day experimental protocol with daily imaging sessions (Fig. 7a, b; Supplementary Fig. 4a–l). After laser surgery, we gave the flies 1 day of rest, followed by a full day of mechanical shaking, and then another 2 days of rest.
After a day of mechanical stress, PPL1-α’3 neurons increased their rates of firing both single and bursts of action potentials (P = 4 × 10–4 and 0.01, respectively, n = 15 female flies; Friedman ANOVA), whereas these rates declined below baseline levels during the 2 recovery days (Fig. 7c, e, f; Supplementary Fig. 4c). By comparison, PPL1-α’2α2 neurons maintained consistent rates of firing single spikes and spike bursts for all 4 days (P = 0.05 and 0.9, respectively; n = 13 female flies; Friedman ANOVA) (Fig. 7d, g, h; Supplementary Fig. 4f). Control flies that did not undergo mechanical shaking exhibited none of the changes (Fig. 7i–l). Analyses of spike waveforms in flies that were shaken revealed no long-term changes in the action potential waveforms of either PPL1-α’3 or PPL1-α’2α2 neurons (Supplementary Fig. 4g–l), indicating the consistent quality of the long-term optical recordings.
Discussion
To enable longitudinal imaging studies of the adult fly brain, we created a chronic fly preparation that allows repeated intravital imaging of neural structure and dynamics across unprecedented intervals up to 50 days in duration. In female flies, our technique caused minimal-to-no detectable harm to the animal’s basic health and behavior. In male flies, our procedures led to a statistically significant decline in lifespan. Notwithstanding, our approach allows time-lapse studies in male flies over tens of days, a major improvement over past approaches that were limited to <24 h of imaging in adult flies5, 6.
The survival curve data indicate that the increased mortality of male flies is probably not a direct consequence of the laser treatment per se but more likely arises from the handling and related stressors that are part of the entire surgical and time-lapse protocol. Simply applying glue to the male fly led to a statistical decrease in lifespan that was indistinguishable from that of the entire surgical protocol (Fig. 2b). Although there are undoubtedly multiple different stressors at different steps in the protocol, we suspect the glue itself may be a noteworthy contributor to fly mortality. After flies returned to a food vial (Fig. 1a), some deaths occurred when the glue caused flies to become stuck either to food or the vial wall. Flies that are young or female are stronger and may be more capable of escaping when this occurs than older or male flies. We suggest that future practitioners may be able to improve fly survival rates by applying the minimal amount of glue necessary.
Our time-lapse voltage imaging studies in dopamine neurons revealed the differential responses of PPL1-α’3 and PPL1-α’2α2 neurons to prolonged mechanical stress. Given that the activity of the PPL1-α’3 neuron can promote wakefulness14, the increases we found in its spontaneous spiking and spike bursting activity after prolonged mechanical shaking might serve to induce a higher level of arousal in the face of a stressful environment. After the termination of mechanical shaking, activity rates in the PPL1-α’3 neuron gradually declined back to and then below baseline levels, which might reflect a rebound stage of sleep recovery. Although our observational data do not permit functional or causal interpretations, the data do show that the spontaneous dynamics of the PPL1-α’3 neuron reflect the fly’s history of stress over the past couple days, even after an environmental stressor has been removed.
In addition to the optical techniques showcased here, our chronic fly preparation is compatible with a variety of recent optical imaging and optogenetic methods for use in head-fixed or freely moving flies16,17,18. By combining our approach with recently developed robotic methods for automated fly handling19, it might be possible in the future to incorporate long-term intravital imaging into large-scale genetic screens based on assessments of fly neurophysiological or behavioral traits. Given the powerful genetic toolkits that already exist for use in fruit flies, our preparation for long-term imaging immediately opens new opportunities to investigate the molecular and cellular mechanisms of how individual neurons respond over time to environmental influences, change across the adult fly lifespan, or alter their properties due to brain disease.
Methods
Fly stocks
We obtained OK107-GAL4, R55D11-GAL4, 20×UAS-GCaMP6f, and 20×UAS-6×GFP flies from the Bloomington Stock Center. The FlyLight Project Team at Janelia Research Campus kindly provided MB304B-GAL4, MB093C-GAL4, and MB058B-GAL4 flies and the pJFRC7 vector plasmid. To create 20×UAS-Ace2N-2AA-mNeonGreen flies, we sub-cloned Ace2N-2AA-mNeon cDNA into the pJFRC7 vector using its XbaI and XhoI restriction sites20 and added a Drosophila Kozak sequence (CAAA) prior to the start codon of Ace2N-2AA-mNeon. A commercial transformation service (BestGene Inc.) inserted the pJFRC7-Ace2N-2AA-mNeon plasmid into the phiC31 docking site attP40, identified successful transformants, and provided us homozygous 20×UAS-Ace2N-2AA-mNeonGreen flies.
We performed all locomotion and imaging experiments using female flies (2–10-day old at the time of laser surgery). We raised flies on standard cornmeal agar media under a 12 h light/dark cycle at 25 °C and 50% relative humidity. To provide retinal to the 20×UAS-Ace2N-2AA-mNeonGreen flies, we dissolved all trans-retinal powder in 95% ethanol as the 20 mM stock and diluted it with fly food to 400 µM. We collected adult female flies (1–3 days old) after eclosion and transferred them to the 400 µM retinal food for 6–8 days before surgery.
Fly mounting
To mount flies in preparation for either laser surgery and/or in vivo imaging, we anesthetized the flies by placing them on ice for 1 min and then transferred them to the cooled surface (∼4 °C) of an aluminum thermoelectric cooling block (Supplementary Fig. 1a, b; Supplementary Movie 1). While viewing the fly though a dissection microscope (Leica MZ6) with a 40× objective lens, we adjusted the fly’s orientation using a dull pair of forceps (Dumont #55, Fine Science Tools) such that its ventral side contacted the aluminum block. We then secured a custom-made silicon fixture onto the mounting apparatus directly above the fly. The silicon fixture had a groove in which a 125-μm-diameter fused silica optical fiber (Nufern; PLMA-YDF-10/125) was held with Kapton tape (Techni-tool; KPT-1/2).
Using a multi-axis stage to manipulate the entire cooling block (Supplementary Fig. 1a, b), we brought the posterior side of the fly’s thorax into contact with the fiber. We applied ~1 µL of ultraviolet (UV) light curing epoxy (NOA 89, Norland) to the contact point between the fiber and the fly’s thorax and then cured the epoxy with UV light for 30 s. To minimize head motion, we glued the fly’s head to the thorax using UV epoxy. Generally, flies awoke and resumed activity ~1 min after mounting and were able to move their legs and wings. To minimize the side effects caused by anesthesia, we allowed flies to recover for 30 min before starting imaging experiments.
To release the fly, we used the sharp tip of a surgical scalpel blade to break off the entire piece of cured UV epoxy from the fly thorax. We then returned the fly to a food vial for future use. This release procedure did not seem to have any discernible impact on the fly’s wellbeing.
Laser microsurgery
To create an imaging window on the fly head, we used a previously described laser microsurgery system6 based on a 193-nm-wavelength excimer laser (GamLaser; EX5 ArF). Using a variety of pupil masks and 10-ns laser pulses, this system can cut holes in the fly cuticle with a range of diameters (~12–500 µm). After transferring a mounted fly to the surgery station, we created an optical window in the cuticle by laser drilling a 150-μm-diameter hole (30 pulses, delivered at 100 Hz, 36 µJ per pulse as measured at the specimen plane). This microsurgical procedure generally removed the cuticle, air sacs, and fat bodies and thereby exposed the underlying fluorescent cells (Fig. 1a, b). However, due to variations in head size and fly age, occasionally further rounds of laser dissection or manual cleaning of the cuticle were needed to make visible the underlying fluorescent cells. The brains of older flies (>20-day post-eclosion) usually have a greater number of fat bodies and less hemolymph as compared to younger flies, so in older flies we commonly needed additional laser pulses to cut through the cuticle as well as additional manual cleaning after surgery.
Immediately after surgery, we applied 1 µL of UV epoxy (NOA 68, Norland; 1.54 refractive index; ~99% optical transmission for wavelengths between 420 and 1000 nm) and cured it for 30 s to seal the cuticle opening. To maintain ~60% humidity surrounding the fly during the resealing process, we used a desktop ultrasonic humidifier (Air-O-Swiss; AOS 7146) to puff humidified air directly onto the fly while it was under the dissection microscope. After sealing the opening, we released the mounted fly from the fiber as described above and returned the fly to a food vial for later usage.
Overall, for each fly we required approximately ~3 min for mounting, ~1.5 min for laser surgery, and ~1.5 min for resealing of the cuticle. Some additional time was required for transferring flies, yielding an overall work speed of approximately eight flies per hour.
Survival assay
To test the potential effects of laser microsurgery on fly viability, we measured the lifespans of three different groups of flies. The control group underwent no surgical treatments. The glue group received the UV glue atop the cuticle but no surgery. The surgery group underwent laser surgery and cuticle gluing. Each group comprised 25 male and 25 female flies. After the various treatments, we placed the individual flies into separate food vials. We recorded daily the number of living flies and transferred them to fresh food vials every 5 days. We kept the flies at 25 °C and 50% relative humidity, with a 12-h light/dark cycle.
Locomotion and odor avoidance assay
For testing locomotor and olfactory behavior, we used a single-fly assay described previously21. This assay was performed during the flies’ light cycle within a printed plastic chamber (50 mm in length, 4 mm in width, and 1.5 mm in height). The floor and ceiling of the chamber were each covered by a glass coverslip (22 × 60 mm, No. 1, VWR). An additional layer of Chromatography paper (3 MM CHR, WhatmanTM, GE Healthcare) was on the floor inside the chamber, allowing the flies to walk smoothly without slipping on the coverslip. Air or odor entered the chamber through two inlets (0.75 mm in width) at its left and right ends and exited through two outlets (0.75 mm in width) at its midpoint (Fig. 3a). The chamber was illuminated from below by an infrared (IR) light-emitting-diode (940 nm, EnvironmentalLights). We monitored the behavior of the fly in the chamber using a monochrome board camera operating at 30 fps and equipped with an IR-transmitting lens (DMM 22BUC03-ML, Imaging Source).
A custom-built olfactometer delivered a constant flow of air (100 mL/min) and switched between clean air (filtered using mineral oil) and odor-containing air (odorants dissolved in mineral oil). After transferring a fly into the behavioral chamber, we first delivered air into both sides of the chamber for 1 min and then delivered 3% 4-methyl-cyclohexanol (MCH) into the left side for 1 min. Afterward, we delivered air again to both sides for 30 s and then 3% MCH into the right side for 1 min (Fig. 3c).
Fly tracking and data analysis
To computationally track the movements of a fly in the behavioral videos, we performed an image analysis with the following four main steps (Fig. 3b). (1) We drew a bounding box around the behavior track, cropping the image to include only the region-of-interest (ROI); (2) We created an image of the track background by averaging over all frames in the video. The algorithm then subtracted the background image from each individual frame; (3) We binarized the background-subtracted image using Otsu’s method, turning the background black and foreground objects white. After a series of erosion and dilation operations on the resulting black/white image, we eliminated all white objects <50 pixels in size (noise), leaving only the white object corresponding to the fly; (4) We calculated the centroid position of this object and stored it in memory as the fly’s current location. To calculate the walking speed of the fly, we multiplied the distance between its successive centroid positions and the camera frame rate.
We classified the fly’s behavior into active states (>1 mm/s walking speed) and stationary states (<1 mm/s speed). We calculated the activity index as the fraction of the total session that the fly spent in an active state. For calculations of mean walking speed, we excluded from analysis all times when the fly was stationary. To calculate the odor avoidance index, we computed the ratio of the total time that the fly spent on the side of the chamber where the odor entered to that spent on the side with clean air (Fig. 3c).
Two-photon microscopy
After mounting the fly on its thorax using a silica fiber, we put a coverslip (22 × 22 mm2, No. 0, Electron Microscope Sciences) above the fly’s head. On the top side of the coverslip, we glued a stainless steel washer (Belleville) to contain the water (~100 µL) used with a water-immersion objective lens (Supplementary Fig. 1b). We also placed a small drop (~1 µL) of water between the coverslip and the fly cuticle (Supplementary Fig. 1c). We used a two-photon microscope (Prairie Technologies) equipped with a 1.0 NA, 20× water-immersion objective lens (XLUMPlanFL, Olympus). We imaged the neurons at a frame rate of 0.6 Hz (1024 × 1024 pixels) using ultra-short pulsed illumination of 920 nm, with 10–15 mW of power at the specimen plane.
Calcium imaging
For imaging odor-evoked Ca2+ dynamics in the mushroom body lobe, we used a custom-built upright epi-fluorescence microscope equipped with a 0.4 NA, 20× air objective lens (PLN20X, Olympus). We used a 475/50 nm excitation filter (BrightLine), a 488 nm dichroic (Semrock), and a 534/30 nm emission filter (BrightLine). We illuminated the sample using the 480-nm wavelength module of a solid-state light source (Heliophor, 89 North) with 5–10 mW of power at the specimen plane. We acquired images at 50 Hz, using a scientific-grade CMOS camera (Zyla 4.2, Andor) to sample image regions of interest with 2 × 2 pixel binning.
On each day, we presented five trials of 2% ethyl acetate to each fly through a glass capillary (0.35 mm inner diameter) ~1 mm in front of the fly’s antenna. Odor delivery lasted for 1 s and was followed by clean air for 19 s. To analyze the Ca2+ activity traces, we corrected the raw Ca2+ videos for any brain movement by using the Turboreg algorithm for image registration22 (http://bigwww.epfl.ch/thevenaz/turboreg/). We then selected pixels whose mean fluorescence intensity was in the top 10% of all pixels; we defined their union as the ROI over which we computed spatially averaged, time-dependent changes in relative fluorescence intensity, ΔF(t)/F0, where F0 was the mean fluorescence in the ROI averaged over the entire video. We corrected for photobleaching by fitting a double exponential function to the mean fluorescence trace, F0, and then normalizing F0 by the fitted double exponential trace.
Voltage imaging
To image voltage dynamics, we used a 1.0 NA, 20× water-immersion microscope objective lens (XLUMPlanFL, Olympus) and the same custom epi-fluorescence microscope as for Ca2+ imaging. We used a 503/20 nm excitation filter (Chroma), a 518 nm dichroic (Chroma), and a 534/30 nm emission filter (BrightLine). We illuminated the sample using the 500-nm wavelength module of the solid-state light source (Heliophor, 89 North) with 5–8 mW of optical power at the specimen plane. We acquired images at 1 kHz, using the scientific-grade camera and 2 × 2 pixel binning. For each fly, during each imaging session we sampled spontaneous neural activity during three separate recording trials, each 10 s in duration.
To analyze the voltage traces, we used the same procedures described above for Ca2+ imaging to correct for brain motion, identify an ROI, extract a ΔF(t)/F0 trace, and correct for photobleaching. To identify individual action potentials, we high-pass filtered the ΔF(t)/F0 trace by subtracting a median-filtered (40-ms window) version of the trace and then identified as spikes the local peaks with amplitudes >3.5 s.d. of the mean baseline fluorescence8. We determined the SNR as the mean amplitude of the spikes divided by the mean value of the baseline fluctuations (1 s.d.) in fluorescence. We defined the burst ratio as the fraction of spikes with an interspike interval to the preceding spike of <20 ms. For each fly, we averaged each of these spiking activity metrics across the three 10-s recordings performed in each session; using the resulting mean values, we computed the box-and-whisker plots in Figs. 6 and 7 and Supplementary Fig. 4.
To analyze spike waveforms, we determined the mean waveform by averaging over all spikes within a trial. We then performed a spline interpolation (10-µs intervals) of the mean waveform and from the resultant determined the spike amplitude and full-width half-maximum value of the spike duration. We used a signal detection framework8, 9 to compute the spike detection fidelity, d′, in a way that takes into account both the duration and intensity of the fluorescence waveform in response to an action potential. We estimated the photon shot noise in the optical voltage signal as the standard deviation of the fluctuations in baseline fluorescence. We then computed d’ using the empirically determined, mean optical spike waveform (see equations S1–S4 of ref. 9).
Mechanical stress
Before experiments on mechanical stress, we separated the flies into individual food vials and allowed them to rest for 1 day. Then we put the vials on a compact digital mini-rotator (Thermo Scientific) with a rotating speed of 200 rpm for 1 day. Two more days of rest followed (Fig. 7a).
Statistical analyses
We performed all statistical analyses using MATLAB (Mathworks) software. Sample sizes were chosen using our own and published empirical measurements to gauge effect magnitudes. We did not use a formal randomization procedure. However, at the start of each experiment we randomly selected flies in an informal manner from a larger group of flies that were raised together. We then performed surgery on the selected flies and used these same flies for all subsequent sessions within a given longitudinal experiment. Experimenters were not blind to each fly’s genotype. For statistical testing, we used the non-parametric Kruskal–Wallis ANOVA and Friedman ANOVA to avoid assumptions of normal distributions or equal variance across groups. For post-hoc pairwise comparisons, we used two-sided versions of Mann–Whitney U-test or Wilcoxon signed-rank test with a Holm–Bonferroni correction for multiple comparisons. In box-and-whisker plots, the boxes cover the middle two quartiles of each dataset, horizontal lines inside the boxes indicate median values, whiskers extend to 1.5 times the interquartile range, and individual points indicate outliers.
Data availability
Readers interested in either the experimental data or the software code used for analyses should please contact the corresponding authors.
References
Aramuni, G. & Griesbeck, O. Chronic calcium imaging in neuronal development and disease. Exp. Neurol. 242, 50–56 (2013).
Trachtenberg, J. T. et al. Long-term in vivo imaging of experience-dependent synaptic plasticity in adult cortex. Nature 420, 788–794 (2002).
Kaufmann, A., Mickoleit, M., Weber, M. & Huisken, J. Multilayer mounting enables long-term imaging of zebrafish development in a light sheet microscope. Development 139, 3242–3247 (2012).
Allen, P. B. Single-synapse ablation and long-term imaging in live C. elegans. J. Neurosci. Methods 173, 20–26 (2008).
Liang, X., Holy, T. E. & Taghert, P. H. Synchronous Drosophila circadian pacemakers display nonsynchronous Ca2+ rhythms in vivo. Science 351, 976–981 (2016).
Sinha, S. et al. High-speed laser microsurgery of alert fruit flies for fluorescence imaging of neural activity. Proc. Natl. Acad. Sci. USA 110, 18374–18379 (2013).
Chen, T. W. et al. Ultrasensitive fluorescent proteins for imaging neuronal activity. Nature 499, 295–300 (2013).
Gong, Y. et al. High-speed recording of neural spikes in awake mice and flies with a fluorescent voltage sensor. Science 350, 1361–1366 (2015).
Wilt, B. A., Fitzgerald, J. E. & Schnitzer, M. J. Photon shot-noise limits on optical detection of neuronal spikes and estimation of spike timing. Biophys. J. 104, 51–62 (2013).
Wolf, R. et al. Drosophila mushroom bodies are dispensable for visual, tactile, and motor learning. Learn. Mem. 5, 166–178 (1998).
Pitman, J. L., McGill, J. J., Keegan, K. P. & Allada, R. A dynamic role for the mushroom bodies in promoting sleep in Drosophila. Nature 441, 753–756 (2006).
Aso, Y. et al. The neuronal architecture of the mushroom body provides a logic for associative learning. Elife 3, e04577 (2014).
Aso, Y. & Rubin, G. M. Dopaminergic neurons write and update memories with cell-type-specific rules. Elife 5, e16135 (2016).
Sitaraman, D., Aso, Y., Rubin, G. M. & Nitabach, M. N. Control of sleep by dopaminergic inputs to the Drosophila mushroom body. Front Neural Circuits 9, 73 (2015).
Cohn, R., Morantte, I. & Ruta, V. Coordinated and compartmentalized neuromodulation shapes sensory processing in Drosophila. Cell 163, 1742–1755 (2015).
Seelig, J. D. et al. Two-photon calcium imaging from head-fixed Drosophila during optomotor walking behavior. Nat. Methods 7, 535–540 (2010).
Wu, M. C. et al. Optogenetic control of selective neural activity in multiple freely moving Drosophila adults. Proc. Natl. Acad. Sci. USA 111, 5367–5372 (2014).
Grover, D., Katsuki, T. & Greenspan, R. J. Flyception: imaging brain activity in freely walking fruit flies. Nat. Methods 13, 569–572 (2016).
Savall, J., Ho, E. T., Huang, C., Maxey, J. R. & Schnitzer, M. J. Dexterous robotic manipulation of alert adult Drosophila for high-content experimentation. Nat. Methods 12, 657–660 (2015).
Pfeiffer, B. D. et al. Refinement of tools for targeted gene expression in Drosophila. Genetics 186, 735–755 (2010).
Claridge-Chang, A. et al. Writing memories with light-addressable reinforcement circuitry. Cell 139, 405–415 (2009).
Thevenaz, P., Ruttimann, U. E. & Unser, M. A pyramid approach to subpixel registration based on intensity. Image Process. IEEE Trans. 7, 27–41 (1998).
Acknowledgements
We thank T.R. Clandinin and L. Luo for advice, Claudio Segovia for help with scientific illustration, and the Bloomington stock center and the HHMI Janelia Research Campus for providing fly lines. The Stanford-NIBIB Training Program in Biomedical Imaging Instrumentation (to J.R.M.) and research funding (to M.J.S.) from the W.M. Keck Foundation, the Stanford Bio-X program, a NIH Director’s Pioneer Award, and a BRAIN Initiative U01 grant supported our work.
Author information
Authors and Affiliations
Contributions
C.H. conceived, designed, performed, and analyzed the experiments. J.R.M. created and performed analyses. S.S. designed and built the laser surgery system and fly mounting apparatus. J.S. designed and built the chamber for testing the behavior of individual flies. Y.G. provided advice on data analyses and with C.H. created transgenic flies for expressing the Ace2N-2AA-mNeonGreen voltage sensor. M.J.S. conceived and supervised the research program. C.H. and M.J.S. wrote the paper. All authors edited the paper.
Corresponding authors
Ethics declarations
Competing interests
The authors declare no competing financial interests.
Additional information
Publisher's note: Springer Nature remains neutral with regard to jurisdictional claims in published maps and institutional affiliations.
Electronic supplementary material
Rights and permissions
Open Access This article is licensed under a Creative Commons Attribution 4.0 International License, which permits use, sharing, adaptation, distribution and reproduction in any medium or format, as long as you give appropriate credit to the original author(s) and the source, provide a link to the Creative Commons license, and indicate if changes were made. The images or other third party material in this article are included in the article’s Creative Commons license, unless indicated otherwise in a credit line to the material. If material is not included in the article’s Creative Commons license and your intended use is not permitted by statutory regulation or exceeds the permitted use, you will need to obtain permission directly from the copyright holder. To view a copy of this license, visit http://creativecommons.org/licenses/by/4.0/.
About this article
Cite this article
Huang, C., Maxey, J.R., Sinha, S. et al. Long-term optical brain imaging in live adult fruit flies. Nat Commun 9, 872 (2018). https://doi.org/10.1038/s41467-018-02873-1
Received:
Accepted:
Published:
DOI: https://doi.org/10.1038/s41467-018-02873-1