Sleep is a dynamic process comprising multiple stages, each associated with distinct electrophysiological properties and potentially serving different functions. While these phenomena are well described in vertebrates, it is unclear if invertebrates have distinct sleep stages. We perform local field potential (LFP) recordings on flies spontaneously sleeping, and compare their brain activity to flies induced to sleep using either genetic activation of sleep-promoting circuitry or the GABAA agonist Gaboxadol. We find a transitional sleep stage associated with a 7–10 Hz oscillation in the central brain during spontaneous sleep. Oscillatory activity is also evident when we acutely activate sleep-promoting neurons in the dorsal fan-shaped body (dFB) of Drosophila. In contrast, sleep following Gaboxadol exposure is characterized by low-amplitude LFPs, during which dFB-induced effects are suppressed. Sleep in flies thus appears to involve at least two distinct stages: increased oscillatory activity, particularly during sleep induction, followed by desynchronized or decreased brain activity.
The sleeping brain is far from quiet in most animals where it has been studied carefully, displaying distinct forms of brain activity accomplishing potentially different functions1. These sleep stages are typically associated with electrophysiological signatures. Slow wave sleep (SWS), for example, is characterized by 1–4 Hz activity, and these widespread brain oscillations have been proposed as a mechanism for downscaling synapses2 or for clearing metabolites from the brain3. SWS epochs alternate with rapid-eye movement (REM) sleep, which is characterized by wake-like brain activity and has been linked to other functions, such as memory consolidation and motor learning4, 5. These dynamic sleep processes were originally believed to be unique to mammals and birds, but recent work in reptiles suggests that SWS-REM alternations may have evolved much earlier6. It is unclear if other animals such as invertebrates display similar dynamic processes during sleep, in part because criteria such as REM are not useful for animals lacking the capacity to move (or close) their eyes. However, it is evident that even insects sleep7, 8 and work in Drosophila flies suggests that some proposed sleep functions, such as synaptic downscaling and memory consolidation, are conserved across species9, 10. More recent work in Drosophila has shown that behavioral responsiveness can vary throughout a sleep bout11, suggesting that even the smallest animal brains might display distinct sleep stages. Thus, SWS and REM sleep in reptiles, birds, and mammals might reflect a more ancient need for all brains to alternate between different sleep stages to potentially achieve distinct sleep functions12.
Sleep has traditionally been studied in animals as a spontaneous behavior driven by interacting circadian and homeostatic processes13, 14. Recent genetic advances using the Drosophila model now permit sleep duration to be exquisitely controlled, by transiently activating sleep-promoting neurons10, 15, thereby allowing hypothesized sleep functions to be tested experimentally. For example, sleep induction in flies has been found to improve learning in mutant animals16 and this seems to be associated with altered synaptic physiology17. It remains unclear, however, if experimentally induced sleep in flies resembles any particular natural sleep stage. Whereas different approaches (genetic or pharmacological) have been used to induce sleep in Drosophila, fly sleep has typically been viewed as primarily a single process associated with extended quiescence7, 8.
In this study, we recorded local field potentials (LFPs) from spontaneously sleeping flies and we characterize what appear to be different sleep stages, based on the LFP. To better understand these potentially distinct sleep stages, we compare sleep-induction effects achieved by two different ways: by transiently activating sleep-promoting neurons of the dorsal fan-shaped body (dFB)10 and by exposing flies to Gaboxadol18, a drug that increases SWS in humans. We then compare behavioral effects of induced sleep using either Gaboxadol or dFB activation, or both methods combined. We find that that either method recapitulates some aspects of spontaneous sleep, such as increased oscillatory activity at the beginning of a sleep bout, or decreased overall LFP activity in the middle of sleep bout. While both experimental approaches produce a similar level of sleep intensity, the behavioral consequences are different for extended sleep using either method alone. Our study suggests that sleep initiation in flies is an active brain process distinct from other forms of fly sleep, which argues that different sleep stages already emerged in the smallest animal brains.
Oscillatory brain activity during spontaneous sleep in flies
We first investigated the neural correlates of spontaneous sleep in wild-type flies. Previously, we have shown that sleep in Drosophila is associated with, on average, decreased LFP activity compared to wake11, 19, 20. As before, we recorded LFPs by implanting two glass electrodes into both brain hemispheres (see Methods section) and extracting an amplified voltage differential11. We improved the behavioral context of our overnight recording setup by placing tethered flies on an air-supported ball, and continuously filming our experiments day and night under infrared lighting (Fig. 1a). Flies slept readily in this context, with several flies displaying extended sleep bouts of up to 20 min (Supplementary Fig. 1a). To confirm that flies were indeed asleep and not just awake and immobile, we periodically applied a mechanical stimulus to test for arousal (Fig. 1a, b), and determined whether flies responded (by walking on the ball) within 15 s (see Methods section). Flies that were immobile for over 5 min were significantly less responsive than flies that were immobile for less than 1 min (Fig. 1b, bottom panel). This established our sleep criteria for this tethered recording preparation (>5 min immobility), which agrees well with behavioral work in the field7, 8.
We used wavelet analysis21 to examine how LFP frequencies changed through time, across 24 h of wake and sleep. As found previously11, 19, 20, sleep in flies is associated with overall decreased LFP activity (Fig. 1c, d; Supplementary Fig. 1b). However, wavelet analysis also revealed a marked ~8 Hz oscillation (and associated harmonics) in several flies, especially during sleep (Fig. 1c, white arrows, and zoomed in panels on the right; Supplementary Fig. 1b). This oscillation was largely absent during wake (Fig. 1c and Supplementary Fig. 1b). Crucially, the oscillation was not present in awake yet immobile flies (Fig. 1c, right zoomed in panels), and seemed of variable intensity throughout a sleep bout (Fig. 1c, middle zoomed in panels; Supplementary Fig. 2)—ruling out the likelihood of an artifact linked to postural quiescence on the air-supported ball. Also, the oscillation was not an artifact of micro-behaviors, such as grooming and proboscis extension (Supplementary Fig. 2), and was not an artifact of the fly’s heartbeat (see Methods section). Rather, the oscillation appeared intermittently mostly in immobile, sleeping flies—day or night (Fig. 1e, bottom), and was not as prominent in awake flies—day or night (Fig. 1e, top). Since the oscillation’s frequency could vary among and even within animals (Supplementary Fig. 2), in subsequent analyses, we defined it as 7–10 Hz.
Since 7–10 Hz activity often appeared intermittent, we wondered whether the oscillation was more prominent at the beginning or end of the night, as this might suggest homeostatic regulation. To address this, we divided all spontaneous sleep bouts into three equal epochs per fly: early-night sleep, mid-night sleep, and late-night sleep (see Methods section). Comparisons of normalized LFP power between early and late sleep showed no significant differences (Supplemental Fig. 1c), although there was more variability in 7–10 Hz power early in the night. The observation that 7–10 Hz power is equally prominent during sleep at the beginning of the night as it is later in the night was also visually evident in individual spectrograms, e.g., Fig. 1c.
We next questioned if the 7–10 Hz oscillations changed in amplitude within a single sleep bout. To address this, we partitioned all sleep bouts (>5 min) into five segments, to capture early sleep LFP activity (0–2 min after quiescence onset), mid-sleep activity (of variable duration, >1 min), and sleep prior to spontaneous awakening (0–2 min prior to first movement, Fig. 1f). We found that 7–10 Hz oscillations were significantly more pronounced during early sleep and immediately prior to awakening, compared to the middle of a sleep bout, for both daytime and nighttime sleep (Fig. 1g). This effect was not significant for higher-frequency domains (50–100 Hz), although other lower-frequency domains (e.g., 2–6 Hz, 15–30 Hz) also showed this pattern to some extent (Supplementary Fig. 3). These results suggest that LFP oscillations, especially in the lower frequencies (<50 Hz) are associated with a distinct transitional sleep stage soon after sleep onset, or within 1 min prior to awakening. This pattern suggests a function linked with promoting transitions between sleep and wake.
We were curious whether flies engaged in 7–10 Hz sleep were more responsive to stimuli because we had previously found that flies could be more easily aroused during early stages of sleep11. We recorded from flies that were regularly stimulated throughout the night, and then identified epochs of high vs. low 7–10 Hz activity that coincided with a mechanical stimulus (see Methods section). We found no significant difference between behavioral responsiveness in either group (Supplementary Fig. 1d). This suggests that 7–10 Hz sleep in flies is not equivalent to ‘lighter’ sleep, at least in the context of our tethered recording preparation.
Oscillatory brain activity during induced sleep in flies
Sleep can be artificially induced in Drosophila by activating neurons that innervate the dFB in the central brain of the fly10, 15, 22. In addition to producing behavioral quiescence, thermogenetic dFB activation has been shown to promote a key sleep function, memory consolidation10. Since spontaneous sleep initiation appears to be associated with increased LFP activity, especially in the lower frequencies, we wondered whether dFB activation would similarly display a sleep-related LFP signature. To control sleep on demand, we expressed a temperature-sensitive cation channel, TrpA123, in a dFB-expressing circuit that has been previously shown to promote sleep, 104y-Gal4 (Fig. 2a, left panel)10, 22. Sleep was achieved by increasing the temperature of 104y-Gal4/UAS-TrpA1 flies to >29 °C (see Methods section). To record brain activity from sleeping flies, we used a multichannel preparation that samples LFPs from 16 channels simultaneously across the Drosophila brain (Fig. 2a, middle and right panels)21. Transient circuit activation using the same thermogenetic approach in this multichannel preparation has previously uncovered distinct oscillations across the waking fly brain21, but the electrophysiological effect of activating sleep-promoting circuits has never been investigated. Recording from multiple sites simultaneously should thus reveal any changes in the LFP during sleep induction, and identify roughly where in the brain these occur.
Consistent with our spontaneous sleep recordings, we found that sleep induction achieved by thermogenetic activation of 104y-Gal4 circuits is associated with increased LFP activity in our multichannel recordings, although across a broader frequency range (2–40 Hz) (Fig. 2b, c, an individual example is shown in the top row, median data in the middle row; Supplementary Fig. 4a). Increased LFP activity upon sleep induction was nevertheless surprising because sleep is generally associated with decreased LFP amplitudes in insects and other invertebrates19, 20, 24,25,26. We noted that most increased LFP activity in 104y-Gal4/UAS-TrpA1 flies was in the central brain (Fig. 2c, middle row red bars), and this significant effect persisted after the heat was turned off (Fig. 2c, middle row blue bars). Closer examination across frequencies in the central brain revealed a wide range of effects, with prominent activity in the lower frequencies (Supplementary Fig. 4a). We confirmed this increased LFP effect using another sleep-promoting dFB-expressing line, C5-Gal427, which also showed increased LFP activity in the central brain during sleep induction (Supplementary Fig. 4b), but also showed spontaneous activity during baseline in some flies (Supplementary Fig. 4e and Supplementary Note 1, Multichannel recordings 2–40 Hz analysis). Interestingly, induced LFP activity was rarely confined to just one recording site or even just the central brain; rather, the increased LFP activity was often intermittent, and appeared to travel from one brain location to another, sometimes even impacting the optic lobes (see individual examples for 7–10 Hz activity specifically, in Supplementary Fig. 4c, e). In contrast, genetic controls showed no increased LFP activity on average during heating (Fig. 2b, c, bottom row, and see legend for UAS-TrpA1/ + data).
Oscillatory brain activity is produced by dFB neurons
To confirm that the source of these oscillations is indeed in the central brain, we employed a different, more focal recording preparation (Fig. 3a). We exposed the fly brain by opening the cuticle at the back of the head (Fig. 3b), and inserted a glass electrode directly into the dFB (guided by GFP expression and local dye release, Fig. 3c, see Methods section), from where we recorded LFPs. To induce sleep (in 104y-Gal4/UAS-TrpA1;UAS-GFP flies), we raised the temperature of the brain perfusion solution to >29 °C (Fig. 3d, bottom panel). Flies with their brain thus acutely heated promptly fell asleep as predicted (Fig. 3d, middle panel; Supplementary Movie), while controls stayed awake (Fig. 3f; Supplementary Movie). We again observed prominent LFP oscillations associated with sleep induction (Fig. 3d, top panel; Supplementary Movie), as in our multichannel experiments on the same strains. Interestingly, the frequency and intensity of the oscillations could change through time, as we also saw during spontaneous sleep (Fig. 1c; Supplementary Fig. 2), although induced LFP activity recorded directly from the dFB was most prominent in the lower-frequency ranges (e.g., 6–15 Hz) on average (Supplementary Fig. 5a), and also significant in the 7–10 Hz range (Fig. 3g, top). In contrast, heating the brains of control flies had no significant effect on LFP activity (Fig. 3e, g, bottom panels; Supplementary Fig. 5b; Supplementary Movie), although we noted considerable variance in the LFP, perhaps as a consequence of the control flies reacting to heat while awake. To check whether these induced oscillations spread beyond the central brain, we performed additional focal recordings from the optic lobes of 104y-Gal4/UAS-TrpA1 flies, and these also revealed LFP oscillations in some flies (e.g., Fig. 3h). These oscillations in the optic lobes were significant for the 7–10 Hz range, compared to baseline (Fig. 3j, left panel), which was not the case for control flies (Fig. 3j, right panel). Other frequency bands showed no significant change in the optic lobes (Supplementary Fig. 5c, d). As also revealed by our multichannel recordings (Fig. 2 and Supplementary Fig. 4), this suggests that dFB-associated sleep induction is associated with increased LFP activity that is most pronounced in the central brain, but that may also impact some other parts of the fly brain such as the optic lobes. While we did find some consistency in the 7–10 Hz range between spontaneous and genetically induced sleep, effects across a broader frequency range (2–40 Hz) were also evident using both approaches, suggesting some variability in the frequency domain for this sleep-related oscillation.
No significant activity during drug-induced sleep
An alternative approach to inducing sleep in Drosophila is to expose flies to a sleep-promoting drug, for example, the GABA agonist Gaboxadol, which was developed to treat insomnia16, 28. In humans, Gaboxadol has been shown to promote slow-wave (1–4 Hz) sleep and to suppress REM sleep18. Previous work has shown that Gaboxadol promotes spontaneous sleep in flies, and that, similar to dFB activation, Gaboxadol-induced sleep can also be restorative16. Rather than feeding Gaboxadol to flies, we adapted the exposed-brain preparation (Fig. 4a) to perfuse different concentrations of Gaboxadol directly to the brain while we recorded LFPs from the GFP-labeled dFB with sharp electrodes (Fig. 4b). We tested three concentrations of Gaboxadol (in mg/ml): 0.05, 0.1, and 0.2. All three concentrations induced quiescence in flies (Fig. 4c), although the latency to quiescence was significantly shorter at 0.2 mg/ml (Fig. 4d, e), with this drug concentration achieving immobility within 5 min (Fig. 4e). Exposure to Gaboxadol was associated with decreased LFP amplitudes (Fig. 4f), resembling a later stage of spontaneous sleep. However, this effect was only reliably induced at the highest concentration tested (0.2 mg/ml, Fig. 4f; Supplementary Fig. 6). Whether the lower concentrations actually achieved sleep in all flies is questionable: when we exposed flies to 0.05, or 0.1 mg/ml of Gaboxadol, timing to quiescence was more variable (>10 min) and not usually associated with the expected overall decrease in LFP activity associated with invertebrate sleep (Fig. 4f, g and Supplementary Fig. 6). We therefore concluded that 0.2 mg/ml of the drug is the appropriate dosage for reliably inducing sleep in this preparation. Interestingly, LFP activity was not increased on average when flies were put to sleep by Gaboxadol, rather it decreased significantly across all frequencies, even for the 7–10 Hz range (Supplementary Fig. 6). However, we did observe some ~8 Hz LFP activity in two (out of 17) of the Gaboxadol experiments (Fig. 4g, white arrows), showing that the alternate (dFB-mediated) sleep stage remained possible following 0.2 or 0.1 mg/ml drug exposure. Nevertheless, our results suggest that dFB-induced sleep is qualitatively different from Gaboxadol-induced sleep, as LFP activity was never significantly increased during sleep induction with the insomnia drug. Instead, Gaboxadol appears to promote a direct entry into a later stage of sleep characterized by overall decreased brain activity, without the dynamics observed previously (Supplementary Fig. 7), and potentially bypassing or suppressing the dFB-associated stage we have described previously.
A role for the sleep switch in increasing LFP activity
One way to explain the differences that we have uncovered between the two sleep-induction approaches is that the dFB promotes a different form of sleep that occurs in most spontaneous sleep episodes, but occurs less reliably in the medicated condition. To confirm that the dFB is responsible for generating increased LFP activity upon sleep induction, we used a more restricted sleep-promoting driver, 23E10-Gal422, which expresses in only ~20 cells that project to the dFB29 (Fig. 5a, top panel). We employed an optogenetic approach to activate these dFB neurons (Fig. 5a, bottom panel), using UAS-CsChrimson, which is responsive to red light30. As for our 104y-Gal4/UAS-TrpA1 results, optogenetic activation of 23E10 neurons also resulted in increased LFP activity in the dFB, especially in the lower-mid-frequency ranges (6–15 Hz and 15–30 Hz, Fig. 5b, c), and the flies slept (Fig. 6c). However, unlike our 104y-Gal4/UAS-TrpA1 results and our spontaneous sleep data, we never observed a distinct narrow-band oscillation. This nevertheless confirms that acutely activating dFB neurons does indeed increase LFP activity in the fly brain, regardless of the methods or reagents used.
Since dFB-induced sleep and Gaboxadol-induced sleep have opposing effects on LFP activity, we decided to combine both sleep-induction manipulations to determine whether the dFB-induced oscillations are suppressed by Gaboxadol, or whether they can still be produced after Gaboxadol-induced sleep. Sustained dFB-induced oscillations during Gaboxadol-induced sleep might suggest that these oscillations are an epiphenomenon unrelated to sleep, and perhaps simply associated with activating the dFB artificially. To test this, we exposed 23E10-Gal4/UAS-CsChrimson flies to 0.2 mg/ml Gaboxadol, observed them falling asleep, and then activated the dFB with red light (Fig. 5d). We first confirmed that dFB activation increased LFP activity (Fig. 5d, left panel), although significance was only evident in the lowest frequency range in this dataset. We then confirmed that perfusion of 0.2 mg/ml Gaboxadol decreased LFP power across all frequencies (Fig. 5d, right panel, blue). Flies remained asleep when the dFB was optogenetically activated during drug perfusion, and LFP activity remained suppressed (Fig. 5d, right panel, red). Although it is unclear why only a lower-frequency range (2–6 Hz) was significant in this data set, it is clear that Gaboxadol suppressed the dFB effect that was evident in the same flies. This shows that inducing sleep by potentiating GABAA circuits in the fly brain overrides the LFP oscillations that are associated with dFB-induced sleep.
Behavioral effects of distinct sleep manipulations
Since brain activity is clearly different following Gaboxadol and dFB activation, we questioned whether forced sleep using these two different methods might have distinct behavioral consequences. Our behavioral tracking methods confirmed that flies indeed became quiescent following either manipulation (Figs 3f and 4c), but these acute manipulations did not reveal whether sleep duration or intensity might be different for either sleep-induction method. We used the Drosophila ARousal Tracking (DART) platform31 to probe sleep and behavioral responsiveness in freely walking flies exposed to either treatment (Fig. 6a). In addition to providing sleep duration metrics, DART measures responsiveness to mechanical stimuli in both sleeping and awake animals (Fig. 6b). Volleys of stimuli delivered every hour reveal sleep intensity data (as percent of flies responding) or arousal threshold data (as the stimulus intensity required to wake a fly up). Importantly, responsiveness can also be measured during wake (see Methods section), providing a functional readout for our sleep manipulations. To best compare our distinct sleep manipulations (dFB sleep vs Gaboxadol sleep), we used the same strain (23E10-Gal4/UAS-CsChrimson, as in Fig. 5) that had been fed either 0.1 mg/ml Gaboxadol or 0.5 mg/ml all-trans-retinal (ATR), and exposed these flies and vehicle-fed controls to red light. We found that both sleep-induction methods increased sleep duration to a similar extent, increasing daytime sleep (a ceiling effect was evident for nighttime sleep) (Fig. 6c and Supplementary Fig. 8a, b). There was no difference between the dFB and GAB experimental groups, however, both groups had significantly increased sleep over 24 h compared to the controls (F(2,69) = 4.48; dFB vs. GAB, p = 0.16; dFB vs. Control, p = 0.02; GAB vs. Control, p = 0.03, ANOVA with Tukey’s multiple comparisons test). Both methods also increased arousal thresholds (AT) during the day (H(2,5289) = 164.0; dFB vs. GAB, p = 0.0002; dFB vs. Control, p < 0.0001; GAB vs. Control, p < 0.0001), while all flies (including controls) were equally unresponsive during the night (Fig. 6d) (NR) H(2,4388) = 1.96; dFB vs. GAB, p = 0.99; dFB vs. Control, p = 0.42; GAB vs. Control, p = 0.44). This shows that both sleep manipulations promote a depth of sleep that is similar in intensity to spontaneous sleep at night, although we noted that dFB-activated flies were even less responsive during than Gaboxadol-fed flies during the day. The depth of sleep induced by dFB activation is consistent with our earlier observation that spontaneous 7–10 Hz sleep was not ‘lighter’ than other forms of sleep in flies (Supplementary Fig. 1d).
Next, we examined whether behavioral responsiveness was different after prolonged nighttime sleep via either manipulation. Our idea here was to replace spontaneous nighttime sleep with 12 h of Gaboxadol or dFB sleep. We then measured behavioral responsiveness throughout the subsequent 12-h day in two different ways: either as a proportion of flies responding (while asleep or awake) or as startle-induced locomotion speed (see Methods section). We found that dFB-activated flies slept more deeply than controls after 12 h of ‘forced’ dFB sleep at night, with only half as many responding compared to controls (Fig. 6e). In contrast, sleep intensity in Gaboxadol-fed flies was similar to controls, after they had been removed from the drug (Fig. 6e). Prolonged dFB sleep also appeared to make flies more sluggish upon waking, compared to Gaboxadol sleep (Supplementary Fig. 8c). We next asked what the effect would be if we combined both sleep induction methods, as we had done in Fig. 5. As for our electrophysiology data, we found that Gaboxadol suppressed the effect of dFB sleep, with consequent daytime sleep intensity being the same as controls (and Gaboxadol alone) for the combined sleep manipulation (Fig. 6e; Supplementary Fig. 8c). This suggests that prolonged dFB activation results in the need for deeper sleep afterwards, so it is unlikely to be achieving exactly the same sleep functions as Gaboxadol-induced sleep during the same period. Interestingly, dFB-activated flies slept almost as deeply afterwards as sleep-deprived flies (Fig. 6e), suggesting a homeostatic rebound to recover lost sleep functions.
To determine possible functional effects of either sleep manipulations, we measured flies’ responsiveness to mechanical stimuli while they were awake, after having been ‘forced’ to sleep for 12 h by either method. Sleep deprivation significantly impairs wakeful responsiveness to the vibration stimuli, with fewer than half of awake flies responding compared to controls (Fig. 6f), and essentially no increase in locomotion speed (Supplementary Fig. 8d). In contrast, wakeful responsiveness was not different from controls following either of the sleep manipulations, separately or combined (Fig. 6f). This suggests that either sleep manipulation (and both combined) are accomplishing at least one key function linked to maintaining normal wakeful levels of behavioral responsiveness to the mechanical stimuli. The surprising result here is that prolonged dFB sleep increased the need for deeper sleep afterwards (like sleep deprivation, Fig. 6e), but without compromising wakeful responsiveness (unlike sleep deprivation, Fig. 6f). A homeostatic deeper sleep rebound suggests that some other sleep functions have not been satisfied following prolonged dFB activation. Together with our electrophysiology results, these behavioral data support our overall conclusion that acute dFB activation engages a distinct sleep stage in the fly brain. However, comparisons with Gaboxadol-induced sleep remain speculative because of the different approaches used (neural activation vs. drug intervention).
Sleep in invertebrates has traditionally been studied using behavioral criteria, but the most insight about sleep in vertebrates has come from monitoring brain activity, by measuring electroencephalograms (EEGs) for example. Without easy access to traditional measures of brain activity such as EEG, sleep in invertebrates has tended to be viewed as a single phenomenon, perhaps under the assumption that sleep should be simpler in these smaller animals, compared to mammals and birds for example. Indeed, the few sleep recordings that have been done, mostly in flies and bees, showed that unlike mammals, brain activity levels appeared to simply decrease during sleep in invertebrates32. However, a few behavioral studies have identified micro-behaviors during sleep in bees33, as well as changing arousal thresholds during sleep in flies11, suggesting that brain activity in insects might be dynamically partitioned by distinct stages. Recent work on sleep in reptiles6 suggests that partitioning sleep into different stages with potentially different functions is likely to be an ancient feature of sleep throughout evolution. Consistent with our previous behavioral work11, we identify in this study neural correlates for distinct sleep stages in flies. Transitions in and out of sleep are associated with increased oscillatory activity, and these seem to be governed by the ‘sleep switch’10, 15 in the dFB of the central complex. Interestingly, our results show that dFB-associated sleep does not appear to be any ‘lighter’ than other forms of sleep in flies. This suggests that lighter and deeper sleep in flies11 could instead be correlated to overall LFP amplitude (1–100 Hz), while the dFB-associated oscillations may represent a distinct sleep stage.
Different forms of oscillatory brain activity have been used to identify sleep stages in mammals34, although whether these oscillations accomplish any sleep functions remains debated35. Slow wave or ‘delta’ sleep (1–4 Hz) has been implicated in synaptic homeostasis36, spindles (12–14 Hz) are thought to inhibit responsiveness37, and sharp wave ripples (140–200 Hz) have been associated with memory replay38. During wake, alpha waves (7–11 Hz) have been associated with drowsiness and perceptual inhibition35, 39. In comparison, the invertebrate brain does not display as rich a repertoire of strong oscillatory activity, although there is evidence of local field potential oscillations associated with visual and olfactory processing in insects40, 41. The 7–10 Hz oscillations we have identified during sleep transitions in the fly brain could be accomplishing a similar function to some sleep-related oscillations in the mammalian brain. For example, it is possible that the 7–10 Hz oscillations serve a similar role as has been proposed for sleep spindles during stage 2, for blocking the processing of external stimuli37, 42.
To our knowledge, the only other evidence of rhythmic brain activity during sleep in invertebrates is in crayfish43, where oscillations in an adjacent frequency range (15–20 Hz) have been described and further characterized44, and these also appear to be generated in the central complex of these arthropods45. Together, our fly data and the crayfish sleep studies suggest that oscillatory brain activity may be a common feature of sleep across the wide range of invertebrates that share a similar brain architecture featuring a central complex46. Our findings show that the sleep-related oscillations in the fly brain predominate during the beginning and end of spontaneous sleep bouts (Fig. 1g), suggesting a timeframe for this sleep stage. Our localization of these oscillations to the dFB suggests the neuroanatomy likely to be involved in generating these sleep-related oscillations, although it remains unclear why artificial activation of the dFB (as seen in our optogenetic experiments) produces a broader range of frequency effects. Since the dFB has previously been implicated with a sleep switch or homeostat15, this nevertheless suggests that the sleep switch promotes a distinct ‘oscillatory’ sleep stage before other forms of sleep take over. This view would still be consistent with the general consensus that, on average, sleep is associated with decreased LFP activity in flies11, 19, 20 and other invertebrates24,25,26. Also consistent with this view, we found that the main effect of the sleep-promoting drug Gaboxadol18 was to decrease LFP amplitudes in the fly brain.
If fly sleep is primarily characterized by decreased brain activity, then why does the fly ‘sleep switch’ produce increased oscillatory activity upon sleep induction? One possibility could be that the dFB plays a larger role than just promoting sleep. Central complex neurons, including those projecting to the dFB, are probably engaged in modulating sensory information processing more generally, in awake animals as well47, 48. Some central complex circuits, including the dFB, could be required for attention-like processes for example49, which would involve selective suppression of sensory stimuli, or at least a form of gain control. Synchronized activity from dFB neurons, as we have found here during sleep, might effectively interfere with ongoing wake-related dFB processes, as a first step to turning off attention and falling asleep. To test this idea, that sleep and wake processes might be related at some level50, will require a better understanding of how oscillatory brain activity might be deployed differently during wake and sleep to modulate behavior. Future research in Drosophila should reveal whether the fly brain uses this strategy to regulate behavioral responsiveness.
Flies (Drosophila melanogaster) were reared on standard yeast-based Drosophila medium under a 12-h light and 12-h dark cycle (lights on at 8 A.M.). Three experimental setups were used: overnight brain recording setup (Fig. 1a), multichannel brain recording setup (Fig. 2a), and exposed-brain recording setup (Fig. 3a). Flies used for overnight brain recording experiments were kept in the same room to allow exposure to the same daily fluctuations in temperature (22–24 °C) and humidity (40–60%) as during the experiments. All other flies were raised at 25 °C with 50–60% humidity. Adult female flies (<7 days post-eclosion) were used for all experiments. Wild-type Canton-S (CS) flies were used for overnight recording experiments. UAS-TrpA1 and UAS-2xEGFP were acquired from the Bloomington Drosophila stock center. The Gal4 drivers used for driving expression in the dFB neurons were C5-Gal4, 104y-Gal4 and 23E10-Gal4, also from the Bloomington Drosophila stock center. UAS-CsChrimson was kindly provided by Vivek Jarayaman (Janelia Research Campus).
For all experiments, flies were anesthetized on a thermoelectric-cooled block (1–2 °C). To prepare the fly for both the overnight and multichannel recording experiments, the dorsal surfaces of the fly head and thorax were secured to a tungsten rod11, 21 using dental cement (Coltene Whaledent Synergy D6 Flow A3.5/B3) and cured by 30–40 s exposure to high intensity blue light (Radii Plus, Henry Scheinn Dental).
Two channel differential LFP
As described previously11, to perform the overnight recordings (Fig. 1a), we used pulled borosilicate micropipettes (World Precision Instruments TW100F-4, pulled using a Sutter P-97 micropipette puller), which were cut, leaving only the 6 mm length of the tip (~3MΩ resistance), and subsequently filled with extracellular fluid (ECF) containing (in mM): 103 NaCl, 10.5 trehalose, 10 glucose, 26 NaHCO3, 5 C6H15NO6S, 5 MgCl2 (hexa-hydrate), 2 sucrose, 3 KCl, 1.5 CaCl (dihydrate), and 1 NaH2PO4. The cut micropipettes were then carefully inserted ~100 μm into each brain hemisphere through the dorsal eye rim using a mechanical micromanipulator, with each micropipette permanently held in place using dental cement. Fine tungsten wire electrodes (25 μm; A-M Systems) were inserted into the solution-filled micropipettes and sealed within the micropipette using electrical insulating compound (Dow Corning 4). The prepared fly was then placed onto an air-supported polystyrene foam ball that served as a walking/resting platform (Fig. 1a). Local field potentials (LFPs) were recorded, 1–2 h after implanting the micropipette electrodes11, using field-effect transistors (FETs) (NB Labs, Denison, TX). Recordings were performed at a sampling rate of 291 Hz and amplified (×10,000 gain) with a differential amplifier, signal bandpass filtered (low: 1 Hz, high: 100 Hz) (Warner Instruments DP-304), digitized (National Instruments BNC-2090), and the data acquired with a custom-built software on a LabVIEW platform11. The electrophysiology setup was housed within a light-shielded box to allow a controlled environment of 12-h light and 12-h dark cycle. Infrared LEDs illuminated the fly for movement monitoring via an infrared-enabled webcam (Logitech Pro 9000, with modification described below), producing monochromatic low-resolution images (27 × 34 pixels) with a frame rate of 3 frames per second, well-suited for a continuous long recording session. Movement data were quantified offline using a custom script in MATLAB (The Mathworks, Natick, MA) and subsequently time-matched with the LFP data.
Most readily available webcams have an infrared filter, which was removed in order to film under infrared lighting conditions. This first involved accessing the camera’s circuit board by unscrewing the outer case, then removing the screws holding the lens in place, followed by de-soldering the 2 connectors between the lens assembly (auto focus unit) and the circuit board, to allow access to the rear of the lens. The thin glass disc (the IR filter) was removed by breaking the glass with a pair of forceps, ensuring that none of the glass pieces fell into the photo sensor underneath. Once the IR filter was removed, the webcam was reassembled to its original state. A visible light filter was fitted to the front to complete the modification.
Methods for performing multichannel fly brain recording have been described previously21. Briefly, to record from multiple channels in the fly brain we used a 16-electrode linear silicon probe (model no. A1 × 16-3 mm50-177; NeuroNexus Technologies). The probe was inserted into the flies’ eyes laterally, perpendicular to the curvature of the eye, with the aid of a micromanipulator (Merzhauser, Wetzlar, Germany) (Fig. 2a, middle panel). We inserted the probe such that the electrode sites faced posteriorly within the brain. A sharpened, fine tungsten wire (0.25 mm; A-M Systems) served as a reference electrode and placed superficially in the thorax. Recordings were made using the Tucker–Davis Technologies (Tucker-Davis Technologies, US) multichannel data acquisition system at 25 kHz coupled with a RZ5 Bioamp processor and RP2.1 enhanced real-time processor.
Exposed-brain targeted single channel LFP
For experiments on the exposed-brain assay (Fig. 3a), the two forelegs were cut in the femur segment and the proboscis restrained with dental cement to the ventral thorax. This was done to provide access to the posterior surface of the head and to eliminate proboscis or foreleg movement from disrupting the brain visualization and electrical recording. The flies were then mounted and sealed with dental cement onto a custom fly plate51, 52 that provided electrode access to the posterior head (Fig. 3b). The bath chamber of the fly plate was filled with oxygenated ECF (95% O2, 5% CO2), immersing the brain, while keeping the rest of the fly dry. With the use of a pair of forceps and 30½ gauge syringe needle, the head was dissected, with the perineural sheath removed either mechanically with forceps or chemically using protease (0.5% collagenase type IV solution). Similar to the overnight setup, the fly in this preparation was also positioned on an air-supported ball. The fly brain was kept healthy with a continuous delivery of oxygenated ECF at a flow rate of about 2 ml/min. LFP recordings were performed with a glass electrode amplified (via FETs) and filtered (low: 0.1 Hz, high: 1 kHz) (A-M Systems Model 1700), digitized (Axon Digidata 1440 A Digitizer) and sampled at 1000 Hz using the data acquisition software AxoGraph × 1.4.4 (Axon Instrument) on a computer running Windows XP. A fixed-stage upright fluorescence microscope (Olympus BX51WI, U-RFL-T, Olympus, Berlin, Germany) was used to visualize the fly brain, and a motorized micromanipulator system (Sutter MP-285) was used for guiding electrode insertion. The fly was illuminated using a 3 mm white LED (PN: 5219901802 F, Dialight, South Farmingdale, NJ) placed at a distance of 6–8 cm from the fly for behavioral monitoring using a camera (Point Grey GRAS-14S3C-C) at a resolution of 480 × 640 pixels and 30 frames per second. For optogenetic experiments, illumination of the fly was achieved using an infrared LED (Osram SFH 4232) instead of a white LED, coupled with a custom lens filter fitted to the camera that specifically blocks out red light. Behavioral data were acquired and stored on a computer running Linux OS. For optimal visualization of the targeted neurons, a second high-powered infrared LED (Osram SFH 4232) was used with its light path redirected to the fly’s right eye via an optic fiber (1 mm diameter), positioned about 2–3 mm from the eye (Fig. 3a). A microscope camera (DAGE-MTI IR-1000) connected to an LCD TV unit (Samsung SyncMaster 940MG) provided live imaging of the fly brain and neurons. Visualization of the GFP-labeled neurons was achieved using a mercury short-arc lamp (HBO 103 W/2). No GFP-labeling was used to target specific sites in the optic lobes recording and were therefore only approximated. The recording site was confirmed by releasing dye in a subset of flies (Fig. 3c, and see immunolabeling, below).
Arousal-testing stimulus for tethered flies
Methods describing the use of a vibration stimulus for testing behavioral responsiveness of tethered flies in the overnight recording setup was previously described11. Briefly, a vibration stimulus generated by a 12 mm shaft-less vibrating motor (Pico Vibe 312-101; Precision Microdrives) was delivered to a subset of flies in the overnight recording preparation. We then examined the flies’ behavioral responsiveness, from the movie images, to determine whether flies in the brain-recording setup were sleeping as defined by an increased arousal threshold. The motor was glued to the top end of the brass tether rod (Fig. 1a), delivering a vibratory stimulus of 1 V intensity to the fly through the length of the rod lasting < 1 s at 15 min intervals throughout the recording session. Stimulus delivery was automated and set using a custom MATLAB script11.
Thermogenetic and optogenetic sleep induction
Thermogenetic sleep induction in the multichannel brain recording setup was achieved by heating the suspended fly from below, using a 100-W halogen lamp (Zeiss) equipped with an infrared long pass filter21. For the exposed-brain recording setup, the fly brain was heated directly by modulating the temperature of the ECF bath solution. This was achieved by using an in-line heater/cooler (Warner Instruments Model SC-20), driven by a temperature controller (Warner Instruments Model CL-100), and cooled by a liquid cooling system (Warner Instruments Model LCS-1). With the aid of a thermistor, the temperature of the bath was kept at room temperature in the range of 22–23 °C. During the stimulation period, temperature was ramped up to >29 °C after 2 min of room temperature recording (baseline), and lasted for 5 min before returning to <23 °C for 5 min of recovery (see Fig. 3d, bottom plot). Temperature throughout each experiment was handled by AxoGraph.
For optogenetic experiments, dietary supplements of ATR were needed for the transgenic channelrhodopsin to function. Therefore, all flies used for optogenetic experiments were transferred to food vials containing 1 mM ATR supplementation53 at least 2 days prior to experimentation. The activation stimulus consisted an ultra-bright red LED (617 nm Luxeon Rebel LED, Luxeon Star LEDs, Ontario, Canada) directed to the opened section of the fly head (Fig. 5a, bottom panel), producing 0.1–0.2 mW/mm2 at a distance of 4–5 cm with the aid of concentrator optics (Polymer Optics 6° 15 mm Circular Beam Optic, Luxeon Star LEDs). To prevent overheating the fly and the immediate environment, the LED was mounted onto a sink pad (SinkPAD-II 20 mm Star Base), which was attached to a small heat sink. The temperature of the solution bath was also kept constant by the temperature controller system (see above). Continuous light exposure was administered after 1 min of baseline recording and lasted for 2 min (Fig. 5b). Timing of the light switch was controlled by AxoGraph, which also measured the timing of light exposure from a photodiode (Fig. 5a, bottom panel).
Pharmacologically induced sleep
The GABAA agonist, Gaboxadol, also known as 4,5,6,7-tetrahydroisoxazolopyridin-3-ol (THIP), was used to induce sleep in flies16. Instead of feeding, as in previous studies16, 28, Gaboxadol was delivered directly to the fly brain by dissolving it into the ECF28. Three concentrations were used (in mg/ml): 0.05, 0.1, and 0.2. The Gaboxadol-containing ECF was delivered to the bath chamber at the rate of 2 ml/min for a total of 5 min, after 5 min of recording with standard ECF, and immediately washed out by switching back to standard ECF thereafter. The drug delivery setup consisted of two 50 ml reservoirs, one with Gaboxadol-containing solution and the other standard ECF, both connected to a 3-way solenoid valve with the outlet leading to the fly plate bath chamber (Fig. 4a). The timing for the switching of the solenoid valve was controlled by AxoGraph. The effect of optogenetic activation on Gaboxadol-induced sleep flies was examined by first running the optogenetic activation protocol (see above, with a baseline recording of 5 instead of 2 min), followed by a 5-min delivery of Gaboxadol solution, and subsequently running the optogenetic activation protocol for the second time (5 min baseline, 5 min activation, and 10 min of recovery; see Fig. 5d, top panel).
The electrode positions in the fly brain were labeled with Texas Red fluorescent dye (Invitrogen) via iontophoresis to confirm the recording location in the dFB (Fig. 3c). Fly brains were dissected and fixed in 4% paraformaldehyde in a phosphate buffer solution (PBS). After a minimum of 1 h in fixative, the brains were washed with 0.2% Triton X-100 in PBS (PBST) with 0.01% sodium azide (Sigma), blocked in 5% normal goat serum in PBST, and let incubate overnight in a primary antibody solution (1:10 mouse anti-nc82 + 1:1000 rabbit anti-GFP + block solution). The next day, the brains were washed in PBST and let incubate overnight in a secondary antibody solution (1:250 goat anti-rabbit Alexa Fluor 488 and 1:250 goat anti-mouse Alexa Fluor 633). The brains were washed in PBST for the final time and embedded in Vectashield and imaged using a confocal microscope (Zeiss).
Behavioral analyses of tethered flies
Movie images of the flies acquired from the overnight and exposed-brain recordings were analyzed and quantified in MATLAB using a pixel subtraction method11, generating the pixel change value (Δ pixels), which quantifies the fly’s behavioral activity. Image noise level varies with each movie recording and was therefore determined for each recording by visually inspecting the activity trace and assigning a threshold value. The fly was considered active during the times when the measured activity exceeded this threshold11.
For each stimulus trial in the arousal-testing experiments (see Arousal-testing stimulus for tethered flies), the average Δ pixels in the 15 s post-stimulus were calculated, and if exceeded the threshold (see above), the fly was regarded to respond to the stimulus (respond group), while for trials with values below threshold, regarded unresponsive (did not respond group; Fig. 1b, top). Response rate was thus calculated as the averaged percentage of trials when the flies responded (Fig. 1b, bottom). Visual inspection on an overnight fly movie recording revealed a range of non-locomotion micro-behaviors, which we classified into one of three groups: posterior groom, anterior groom, and proboscis extension. Times of occurrence for each of the micro-behavior in one fly recording were determined manually, and subsequently time matched to the LFP recording (Supplementary Fig. 2). Behavioral activity was not monitored for flies in the multichannel recording setup.
For comparing fly activity in the exposed-brain recording setup, Δ pixels were reduced to a binary format such that behavioral activity was quantified as the percentage of frames where Δ pixels exceeded the threshold in a specified time range (Figs 3f and 4c). For Gaboxadol-induced sleep experiments, we observed a rapid decline in behavioral activity following drug perfusion, which we defined as the onset of the drug’s effect. We observed some variability in the latency period of the drug effect onset across flies, and therefore the drug onset time was determined for each fly by examining the movie recordings. Comparison between the percentage movement in the period within 5 min prior and 5 min after drug onset were made to confirm the cessation of movement that occured as a result of Gaboxadol exposure (Fig. 4c–e). Latency periods were defined as the time it takes since the commencement of drug perfusion to the onset of behavioral effect of the drug.
Analyses on the LFP data obtained from the overnight recording setup were performed offline on custom scripts in MATLAB (2014a, 2015a). Analyses were restricted to frequencies between 0 and 100 Hz as activity above 100 Hz in the fly brain is unlikely biological. For comparing the LFP activity across different arousal states sorted into day and night (Fig. 1d), the raw LFP were split and grouped based on the recorded movement data (see Behavioral analyses of tethered flies) and time-of-day during the recordings. The raw LFP for each condition were then transformed into power using the Morlet wavelet transformation function “ft_specest_wavelet” in the Fieldtrip MATLAB toolbox54. The width setting of the wavelet used was set at 30 with 3 standard deviation (gwidth). Power differ in magnitudes across fly recordings, and were therefore normalized for each fly prior to averaging. Normalization involved obtaining the mean values for the power in the Wake day condition, and used as the reference (denominator of a ratio calculation) to compare with the individual power values of the other 3 conditions (numerator). The resulting values used for statistical analyses were therefore ratio values of power in each group relative to those for Wake day. For the 0–100 Hz analysis, this normalization process was performed separately in binned groups of 2 Hz prior to averaging.
Similarly, for sleep bout LFP analysis, the mid-sleep section was used as the reference with ratio of power in each sleep segment within a sleep bout obtained prior to averaging the ratio values across all sleep bouts (separated into day and night) in a fly, and subsequently averaged across all flies. This process of normalization was applied in the 7–10 Hz analysis (see Fig. 1g), where the ratio calculation was performed first in binned groups of 0.1 Hz for each sleep bout prior to subsequent averaging. Additionally, we examined the LFP power in a series of broader frequency domains (Supplementary Fig. 3a–e), identified previously in a k-means cluster analysis of Drosophila brain activity (2–6 Hz, 6–15 Hz, 15–30 Hz, 30–50 Hz, 50–100 Hz)21 excluding 0–2 Hz due to potential heartbeat artifacts.
Power spectra were generated by performing discrete Fourier transform on the raw LFP data (fft function from MATLAB Signal Processing Toolbox) (Supplementary Fig. 1b). To prepare the time-frequency spectrograms, the data were first lowpass filtered at a cutoff of 100 Hz and then highpass filtered at a cutoff of 0.2 Hz by using a second-order Butterworth filter, with further processing (tapers [3 5], moving window [1 0.05]). The time-frequency spectrogram was generated by the mtspecgramc function in the Chronux MATLAB toolbox55. For the analysis of the frequency domain, Letswave 5 (http://nocions.webnode.com/letswave) was used, which runs on MATLAB 2015a. As before, the data were first lowpass filtered at a cutoff of 100 Hz and the highpass filtered at a cutoff of 0.2 Hz by using a second-order Butterworth filter. Furthermore, the data were cropped and divided into 4 categories (day wake, day sleep, night wake, night sleep). The Data were first averaged in the time domain for each category and each animal, then a discrete Fourier transform was performed on the averaged data and the data were normalized. The signal to noise ratio (SNR) was calculated as the ratio between the amplitude for each frequency and the mean amplitude of 15 neighboring frequency bins (0.1 Hz) on each side. Z-scores for the frequency peaks were calculated in a similar way as the SNR. Z-score values above 1.64 indicated a significant (p < 0.05) difference between peak and baseline.
For determining whether sleep-related oscillations were homeostatically regulated in overnight experiments, we divided all nighttime sleep bouts (>5 min) into three equal-sized epochs per fly: early sleep, mid sleep, and late sleep. Normalized LFP power for the 7–10 Hz domain of the first night epoch was compared to the last epoch, and any differences were tested by a Wilcoxon matched-pairs signed rank two-tailed test. We further analyzed whether 7–10 Hz oscillations during spontaneous sleep is associated with increased responsiveness following a vibration stimulus. For that purpose, we performed a Morlet wavelet transformation (2–15 Hz), as described earlier. We normalized all the data ([0 1]) for every fly separately and extracted the average sleep LFP power for the 7–10 Hz frequency range. We then separated our data into low 7–10 Hz LFP power and high 7–10 Hz LFP power based on a set threshold defined by the average LFP power of the neighboring frequencies (2–7 Hz and 10–15 Hz). Vibration stimuli occurred every 15 min throughout the night, as described above. All vibration stimuli that coincided with ‘high’ 7–10 Hz LFP power during a sleep epoch were noted, and a behavioral response rate was calculated as before (see Behavioral analyses of tethered flies). Response rates were compared for trials when the stimulus coincided with ‘low’ 7–10 Hz LFP power during sleep epoch. For all trials, 7–10 Hz LFP power was determined for the 10 s preceding the vibration stimulus.
All LFP data were analyzed offline in MATLAB (2015a). Raw LFP data were down sampled to 1000 Hz, filtered between 0.5 Hz and 200 Hz using a fourth-order Butterworth filter. Bipolar-referencing to the most lateral channel (1, in the optic lobe) was used to create 15 differentiated channels. From this, independent components analysis (ICA) was conducted to reduce spontaneous artifacts in the data using the FastICA function56, 57. From the data set, 3 s epochs were extracted for each condition prior to the heating condition as baseline, the ‘Heat ON’ condition, as well as a post heat condition.
Drosophila heart beat has been shown to change frequency during heating58 which could be a confounding factor in our experiments. Thus, channels containing clear heartbeat artifacts, at any stage of the experiment (baseline, heat on, heat off) were removed from subsequent analysis. For this reason, a multi-tapered Fourier transform was performed using the mtspectrumc.m Chronux function55 to improve resolution in order to visually identify channels contaminated with a heartbeat around 2–4 Hz and its harmonics21.
We converted LFP into power as described above (see Overnight recordings). For this, we used a wavelet resolution of 3 s corresponding to the length of each epoch, and a wavelet width of 3 s.d. This was done twice, once to look at the 2–40 Hz frequency band across channels, and again to examine differences in the 5 frequency bands described above (2–6 Hz, 6–15 Hz, 15–30 Hz, 30–50 Hz, 50–100 Hz; see Supplementary Note 1 for analysis).
For normalization of the power values, we divided each channel by the median of the baseline activity, followed by the median by channel groups for every fly. The bipolar-referencing scheme allowed the orthogonal selection of channels by grouping them in 3 groups of up to 5 channels (optic lobe 1, center, optic lobe 2). The resulting data were organized in factor coded columns and exported to R version 3.3.259 for further statistical analysis.
A non-parametric multi-factor ANOVA was used to assess statistical significance on the mean LFP power, with post hoc contrasts on a three-way interaction term between brain regions, fly line, and heat condition. Significant effects were determined at a Bonferroni corrected alpha value of 0.0125.
All analyses on the LFP data obtained from the exposed-brain recording setup were performed offline on custom scripts in MATLAB (2014a, 2015a). The time-frequency spectrograms were generated in the same way as described for the overnight recordings. To obtain the averaged spectrogram across multiple flies (Figs 3e, i and 5b, bottom), the data were first normalized for every animal by dividing the amplitudes of frequencies over time by the mean amplitude of the baseline for all frequencies. Then, the ratio was calculated by dividing all values by the maximum amplitude of the baseline. Subsequently, data of all experimental animals was averaged.
For quantifying the LFP signal, wavelet transformation was first applied to the raw LFP data prior to splitting into 3 groups: baseline, stimulus on, and stimulus off. The power values for the stimulus on and stimulus off groups were divided by the mean of the baseline power within the corresponding frequency bins (same frequency domains and bins as the analysis for the overnight recordings). Additionally, the ratio power values were zeroed such that any negative power value indicates a decrease of LFP activity in relation to baseline. For thermogenetic experiments, segments of data where the temperature transitions between the two stable states (24 °C and 29 °C) were excluded from analysis. LFP recordings from the optogenetic experiments contain obvious artifacts during the brief period when the light was switched on and off; therefore, a short data segment (from 5 s prior to 5 s after the light switching) were excluded from analysis. To examine the LFP effect of Gaboxadol-induced sleep, we compared the LFP power between the 5 min prior and the 5 min after the drug effect onset (see Behavioral analyses). Likewise, the power used for this comparison were first normalized to baseline values which was the first 5 min of each recording.
Similar to the multichannel brain recording, we detected oscillatory activity surrounding 2 Hz that likely originated from the heartbeat. The intensity of the heartbeat can often be observed visually under the light microscope during cuticle dissection. We first attempted to stop these muscle contractions by mechanically damaging the relevant muscle58 with a pair of forceps. We then also excluded any observed LFP effect in the 0–2 Hz domain as it is likely contaminated by the movement artifacts. In some flies, however, the harmonics of the heartbeat artifact were also present, clouding any signal that manifests in frequencies above 2 Hz. We excluded these recordings entirely, based on the interpretation of heartbeat artifacts by two experimenters (M.H.W.Y. and M.J.G.) independently.
All statistical analyses for data gathered from the overnight and exposed-brain recording setup were performed using Prism 7 for Windows (GraphPad). A subset of behavioral and LFP power data set did not pass the Shapiro–Wilk normality test (p < 0.05). Depending on the outcome of the Shapiro–Wilk normality test, a Wilcoxon signed rank test or a t test was used to test for significant effects between two matched conditions. The appropriate tests used are mentioned in the figure legends. Friedman test with Dunn’s post hoc multiple comparisons test were used to compare three or more matched conditions, and Kruskal–Wallis test with Dunn’s post hoc for unmatched data. All the data presented in figures are as means ± S.E.M. for bar and line graphs while box and whiskers plot presents median and 10–90 percentiles as whiskers. All tests for significance were two-tailed and confidence levels set at α = 0.05.
For the multichannel statistical analysis, the following R packages were used: ARTool60, 61, car62, dplyr63, influence.ME64, lattice65, lme466, magrittr67, MASS68, Matrix69, nortest70, phia71, and plyr72. The data.frame was organized by splitting the data set into 104 y and C5 groups to be analyzed separately. In the case of the frequency cluster analysis, the data were further divided into individual frequency bands. The data for the 2–40 Hz band were not normally distributed (Lilliefors (Kolomogorv–Smirnov) Test p < 0.001). Therefore, a non-parametric test was used for the log transformed data, which allowed the test of multiple factors and their interactions called the Aligned-Rank ANOVA from the R ARTool package61. The Aligned-Rank ANOVA allows multi-factor or mixed model regression to be performed on a non-parametric dataset or one that violates the normal assumptions of parametric models61. For the 2–40 Hz and frequency cluster analysis, Aligned-Ranks were constructed using the art function from ARTool. The ARTool package makes use of the lmer function for testing mixed models from the lme4 package and thus uses its syntax.
To perform contrasts on significant higher-order interactions, the testInteractions function from the phia package was used to test post hoc contrasts between categorical variables, employing a scheme called Helmert coding73. Unlike other types of factor level coding, Helmert contrasts allows flexibility in the equivalence assigned to factor levels73. In this instance, it allows the mean across both optic lobes to be compared to the center for the Region factor (e.g., −1/2 for each optic lobe and 1 for the center, summing to zero). The contrasts also compared the TRP-lines to GAL4 or UAS controls (TRP = 1, GAL4 = −1), Heat On to Baseline (Baseline = −1, Heat On = 1, Heat Off = 0) or Heat Off to Baseline (Baseline = −1, Heat On = 0, Heat Off = 1), unless otherwise specified. The testInteractions function takes the model output provided by ARTool. The Aligned-Rank ANOVA has two diagnostic tests associated with it which tests whether the aligned-rank transformation was performed successfully61. For the first test, the columns of aligned-rank responses should all sum to zero. All analyses performed passed this test. The second test checks whether a full-factorial ANOVA on ranked (but not aligned) responses has all main effects stripped out as indicated by an F value of 0 (Pr = 1).
Arousal testing in freely walking flies
Sleep-related metrics (sleep intensity, arousal thresholds, sleep duration) for freely walking flies (Fig. 6a) were determined using the Drosophila ARousal Tracking system (DART) as previously described16, 31. Twenty-four hours prior to experiments, 3- to 5-day-old adults were collected and loaded individually into 65 mm glass tubes (Trikinetics) that were plugged at one end with standard yeast-based fly food, containing either 0.1 mg/ml Gaboxadol or 0.5 mg/ml ATR. Controls were placed onto normal food and housed under the same conditions as the experimental groups. The tubes were aligned on platforms (6 total platforms, 17 tubes per platform) for filming. Flies were exposed to ultra-bright red LED (617 nm Luxeon Rebel LED, Luxeon Star LEDs, Ontario, Canada) for the duration of the experiment for optogenetic activation of flies fed with ATR. For determining arousal thresholds, flies were probed once every hour for 48 h, with a succession of vibrational stimuli of increasing strength, from 0 to 1.2 g. Each stimulus consisted of 5 pulses of 200 ms, and was delivered in 0.2 g increments 15 s apart. To investigate behavioral responsiveness, flies were stimulated every hour with 5 succesive vibrations of equal strength (1.2 g), 200 ms apart. Sleep intensity was measured as the proportion of immobile (sleeping, as per >5 min criteria) flies that responded (at any level) to these stimuli. Flies were determined to have responded if they moved by a threshold of at least 3 mm (~3 body lengths) within the minute following the stimulus, as reported previously16, 31. To determine awake responsiveness, we excluded sleeping flies (i.e., flies immobile for five minutes or greater prior to the stimulus) and only flies that had moved within the four minutes prior to the stimulus (i.e. awake flies) were included in the analysis. Awake responsiveness was measured as the proportion of awake flies responding (Fig. 6f), as well as their response magnitude (Supplementary Fig. 8c). To determine response magnitude, fly activity was averaged for two minutes prior to and 15 min after each stimulus. This average activity was fitted with a single-inactivation exponential equation and the peak amplitude of activity following the stimulus was measured. For experiments testing the effect of different sleep induction methods on subsequent behavior, flies were placed on either 0.1 mg/ml Gaboxadol, 0.5 mg/ml ATR, or drug-free food in vials for 12 h (8 P.M.–8 A.M.) while exposed to red light, and then transferred to DART for 12 h (8 A.M.–8 P.M.) for arousal probing. Sleep deprivation was performed using SNAP devices as described previously16, 31.
The code used to generate the results that are reported in this study are available from the corresponding author upon reasonable request.
The data that support the findings of this study are available from the corresponding author upon reasonable request.
Watson, B. O. & Buzsaki, G. Sleep, memory & brain rhythms. Daedalus 144, 67–82 (2015).
Tononi, G. & Cirelli, C. Sleep and synaptic homeostasis: a hypothesis. Brain Res. Bull. 62, 143–150 (2003).
Xie, L. et al. Sleep drives metabolite clearance from the adult brain. Science 342, 373–377 (2013).
Siegel, J. M. The REM sleep-memory consolidation hypothesis. Science 294, 1058–1063 (2001).
Walker, M. P. & Stickgold, R. Sleep-dependent learning and memory consolidation. Neuron 44, 121–133 (2004).
Shein-Idelson, M., Ondracek, J. M., Liaw, H. P., Reiter, S. & Laurent, G. Slow waves, sharp waves, ripples, and REM in sleeping dragons. Science 352, 590–595 (2016).
Shaw, P. J., Cirelli, C., Greenspan, R. J. & Tononi, G. Correlates of sleep and waking in Drosophila melanogaster. Science 287, 1834–1837 (2000).
Hendricks, J. C. et al. Rest in Drosophila is a sleep-like state. Neuron 25, 129–138 (2000).
Bushey, D., Tononi, G. & Cirelli, C. Sleep and synaptic homeostasis: structural evidence in Drosophila. Science 332, 1576–1581 (2011).
Donlea, J. M., Thimgan, M. S., Suzuki, Y., Gottschalk, L. & Shaw, P. J. Inducing sleep by remote control facilitates memory consolidation in Drosophila. Science 332, 1571–1576 (2011).
van Alphen, B., Yap, M. H., Kirszenblat, L., Kottler, B. & van Swinderen, B. A dynamic deep sleep stage in Drosophila. J. Neurosci. 33, 6917–6927 (2013).
Mader, E. C. Jr. & Mader, A. C. Sleep as spatiotemporal integration of biological processes that evolved to periodically reinforce neurodynamic and metabolic homeostasis: The 2m3d paradigm of sleep. J. Neurol. Sci. 367, 63–80 (2016).
Borbely, A. A. A two process model of sleep regulation. Hum. Neurobiol. 1, 195–204 (1982).
Borbely, A. A., Daan, S., Wirz-Justice, A. & Deboer, T. The two-process model of sleep regulation: a reappraisal. J. Sleep. Res. 25, 131–143 (2016).
Pimentel, D. et al. Operation of a homeostatic sleep switch. Nature 536, 333–337 (2016).
Dissel, S. et al. Sleep restores behavioral plasticity to Drosophila mutants. Curr. Biol. 25, 1270–1281 (2015).
Liu, S., Liu, Q., Tabuchi, M. & Wu, M. N. Sleep drive is encoded by neural plastic changes in a dedicated circuit. Cell 165, 1347–1360 (2016).
Faulhaber, J., Steiger, A. & Lancel, M. The GABAA agonist THIP produces slow wave sleep and reduces spindling activity in NREM sleep in humans. Psychopharmacology 130, 285–291 (1997).
Nitz, D. A., van Swinderen, B., Tononi, G. & Greenspan, R. J. Electrophysiological correlates of rest and activity in Drosophila melanogaster. Curr. Biol. 12, 1934–1940 (2002).
van Swinderen, B., Nitz, D. A. & Greenspan, R. J. Uncoupling of brain activity from movement defines arousal States in Drosophila. Curr. Biol. CB 14, 81–87 (2004).
Paulk, A. C., Zhou, Y., Stratton, P., Liu, L. & van Swinderen, B. Multichannel brain recordings in behaving Drosophila reveal oscillatory activity and local coherence in response to sensory stimulation and circuit activation. J. Neurophysiol. 110, 1703–1721 (2013).
Donlea, J. M., Pimentel, D. & Miesenbock, G. Neuronal machinery of sleep homeostasis in Drosophila. Neuron 81, 860–872 (2014).
Kang, K. et al. Analysis of Drosophila TRPA1 reveals an ancient origin for human chemical nociception. Nature 464, 597–600 (2010).
Kaiser, W. & Steiner-Kaiser, J. Neuronal correlates of sleep, wakefulness and arousal in a diurnal insect. Nature 301, 707–709 (1983).
Schuppe, H. [Rhythmic brain activity in sleeping bees]. Wien. Med. Wochenschr. 145, 463–464 (1995).
Brown, E. R., Piscopo, S., De Stefano, R. & Giuditta, A. Brain and behavioural evidence for rest-activity cycles in Octopus vulgaris. Behav. Brain. Res. 172, 355–359 (2006).
Young, J. M. & Armstrong, J. D. Structure of the adult central complex in Drosophila: organization of distinct neuronal subsets. J. Comp. Neurol. 518, 1500–1524 (2010).
Berry, J. A., Cervantes-Sandoval, I., Chakraborty, M. & Davis, R. L. Sleep facilitates memory by blocking dopamine neuron-mediated forgetting. Cell 161, 1656–1667 (2015).
Jenett, A. et al. A GAL4-driver line resource for Drosophila neurobiology. Cell Rep. 2, 991–1001 (2012).
Klapoetke, N. C. et al. Independent optical excitation of distinct neural populations. Nat. Methods 11, 338–346 (2014).
Faville, R., Kottler, B., Goodhill, G. J., Shaw, P. J. & van Swinderen, B. How deeply does your mutant sleep? Probing arousal to better understand sleep defects in Drosophila. Sci. Rep. 5, 8454 (2015).
vanSwinderen. in Evolution of Nervous Systems (ed. Kaas, J. H.) (Academic Press, Oxford, 2006).
Eban-Rothschild, A. D. & Bloch, G. Differences in the sleep architecture of forager and young honeybees (Apis mellifera). J. Exp. Biol. 211, 2408–2416 (2008).
Rechtschaffen, A. & Kales, A. A Manual of Standardized Terminology, Techniques and Scoring System For Sleep Stages of Human Subjects (US Dept. of Health, Education, and Welfare; National Institutes of Health., Bethesda, MD, 1968).
Buzsaki, G. Rhythms of the Brain (Oxford University Press, New York, 2006).
Tononi, G. & Cirelli, C. Sleep function and synaptic homeostasis. Sleep. Med. Rev. 10, 49–62 (2006).
De Gennaro, L. & Ferrara, M. Sleep spindles: an overview. Sleep Med. Rev. 7, 423–440 (2003).
Girardeau, G., Benchenane, K., Wiener, S. I., Buzsaki, G. & Zugaro, M. B. Selective suppression of hippocampal ripples impairs spatial memory. Nat. Neurosci. 12, 1222–1223 (2009).
Jensen, O., Bonnefond, M. & VanRullen, R. An oscillatory mechanism for prioritizing salient unattended stimuli. Trends Cogn. Sci. 16, 200–206 (2012).
Laurent, G. Olfactory network dynamics and the coding of multidimensional signals. Nat. Rev. Neurosci. 3, 884–895 (2002).
van Swinderen, B. & Greenspan, R. J. Salience modulates 20–30 Hz brain activity in Drosophila. Nat. Neurosci. 6, 579–586 (2003).
Dang-Vu, T. T., McKinney, S. M., Buxton, O. M., Solet, J. M. & Ellenbogen, J. M. Spontaneous brain rhythms predict sleep stability in the face of noise. Curr. Biol. 20, R626–R627 (2010).
Ramon, F., Hernandez-Falcon, J., Nguyen, B. & Bullock, T. H. Slow wave sleep in crayfish. Proc. Natl Acad. Sci. USA 101, 11857–11861 (2004).
Mendoza-Angeles, K., Cabrera, A., Hernandez-Falcon, J. & Ramon, F. Slow waves during sleep in crayfish: a time-frequency analysis. J. Neurosci. Methods 162, 264–271 (2007).
Mendoza-Angeles, K., Hernandez-Falcon, J. & Ramon, F. Slow waves during sleep in crayfish. Origin and spread. J. Exp. Biol. 213, 2154–2164 (2010).
Strausfeld, N. J. & Hirth, F. Deep homology of arthropod central complex and vertebrate basal ganglia. Science 340, 157–161 (2013).
Fiore, V. G., Dolan, R. J., Strausfeld, N. J. & Hirth, F. Evolutionarily conserved mechanisms for the selection and maintenance of behavioural activity. Philos. Trans. R. Soc. Lond. B. Biol. Sci. 370, 20150053 (2015).
Weir, P. T. & Dickinson, M. H. Functional divisions for visual processing in the central brain of flying Drosophila. Proc Natl Acad. Sci. USA 112, E5523–E5532 (2015).
de Bivort, B. L. & van Swinderen, B. Evidence for selective attention in the insect brain. Curr. Opin. Insect Sci. 15, 9–15 (2016).
Kirszenblat, L. & van Swinderen, B. The Yin and Yang of sleep and attention. Trends Neurosci. 38, 776–786 (2015).
Maimon, G., Straw, A. D. & Dickinson, M. H. Active flight increases the gain of visual motion processing in Drosophila. Nat. Neurosci. 13, 393–399 (2010).
Kim, A. J., Fitzgerald, J. K. & Maimon, G. Cellular evidence for efference copy in Drosophila visuomotor processing. Nat. Neurosci. 18, 1247–1255 (2015).
Inagaki, H. K. et al. Optogenetic control of Drosophila using a red-shifted channelrhodopsin reveals experience-dependent influences on courtship. Nat. Methods 11, 325–332 (2014).
Oostenveld, R., Fries, P., Maris, E. & Schoffelen, J. M. FieldTrip: Open source software for advanced analysis of MEG, EEG, and invasive electrophysiological data. Comput. Intell. Neurosci. 2011, 156869 (2011).
Bokil, H., Andrews, P., Kulkarni, J. E., Mehta, S. & Mitra, P. P. Chronux: a platform for analyzing neural signals. J. Neurosci. Methods 192, 146–151 (2010).
Hyvärinen, A. Erkki, O. Independent component analysis: algorithms and applications. Neural Networks 13, 411–430 (2000).
Kovach, C. K. et al. Manifestation of ocular-muscle EMG contamination in human intracranial recordings. Neuroimage 54, 213–233 (2011).
Jennings, T., Ringo, J. & Dowse, H. The relationship of heart function to temperature in Drosophila melanogaster and its heritability. J. Exp. Zool. A Ecol. Genet. Physiol. 311, 689–696 (2009).
Team, R.C. in R Foundation for Statistical Computing (Team R.C. Vienna, Austria, 2016).
Kay, M. & Wobbrock, J. ARTool: Aligned rank transform for nonparametric factorical ANOVAs, https://github.com/mjskay/ARTool (R package version 0.10.4, 2016).
Wobbrock, J., Findlater, L., Gergle, D. & Higgins, J. in Proc. of the ACM Conference on Human Factors in Computing Systems (CHI ‘11) 143–146 (ACM Press, New York, 2011).
Fox, J. & Weisberg, S. An R companion to applied regression (Sage, Thousand Oaks, CA, 2011).
Wickham, H. & Francois, R. dplyr: A grammar of data manipulation, https://github.com/tidyverse/dplyr (R package version 0.5.0 1, 20, 2016).
Nieuwenhuis, R., te Grotenhuis, H. & Pelzer, B. Influence. ME: tools for detecting influential data in mixed effects models. The R-Journal 4, 38–47 (2012).
Sarkar, D. Lattice: Multivariate Data Visualization with R (Springer Science & Business Media, New York, NY, 2008).
Bates, D., Mächler, M., Bolker, B. & Walker, S. Fitting linear mixed-effects models using lme4. J. Stat. Softw. 67, 1–48 (2015).
Bache, S. M. & Wickham, H. magrittr: A forward-pipe operator for R, https://CRAN.R-project.org/package=magrittr (R package version 1.5, 2014).
Venables, W. N. & Ripley, B. D. Modern Applied Statistics with S (Springer, New York, 2002).
Bates, D. & Maechler, M. Matrix: sparse and dense matrix classes and methods, https://CRAN.R-project.org/package=Matrix (R package version 1.2-6, 2016).
Gross, J. & Ligges, U. nortest: Tests for normality, https://CRAN.R-project.org/package=nortest (R package version 1.0-4, 2015).
Rosario-Martinez, H. D. phia: Post-hoc interaction analysis, https://CRAN.R-project.org/package=phia (R package version 0.2-1, 2015).
Wickham, H. The split-apply-combine strategy for data analysis. J. Stat. Softw. 40, 1–29 (2011).
Bock, R. D. Multivariate Statistical Methods in Behavioral Research (Scientific Software International, Skokie, IL, 1985).
We thank Leonie Kirszenblat, and Deniz Ertekin for help and comments on the manuscript. We thank Adam Hines for help with behavioral experiments. We thank Richard Faville and Ben Kottler for help with DART. This work was supported by an NIH grant RO1 NS076980-01 to P.J.S. and B.V.S., and an NHMRC grant APP1065713 to B.V.S.
The authors declare no competing financial interests.
Publisher's note: Springer Nature remains neutral with regard to jurisdictional claims in published maps and institutional affiliations.
Electronic supplementary material
About this article
Cite this article
Yap, M.H.W., Grabowska, M.J., Rohrscheib, C. et al. Oscillatory brain activity in spontaneous and induced sleep stages in flies. Nat Commun 8, 1815 (2017). https://doi.org/10.1038/s41467-017-02024-y
Frontiers in Computational Neuroscience (2021)
Molecular resolution of a behavioral paradox: sleep and arousal are regulated by distinct acetylcholine receptors in different neuronal types in Drosophila
Science Advances (2021)
Neurobiology of Sleep and Circadian Rhythms (2021)
Philosophical Transactions of the Royal Society B: Biological Sciences (2021)