Wired to Rest - Neural Architecture of Sleep States
Overview
Sleep is arguably one of the most ubiquitous, yet mysterious behaviors observed across animal phylogenies. What is sleep? How does one measure it? Do animals other than mammals have sleep-stage-like states, and if so, are the molecular and circuit-level mechanisms that regulate these states known? Are sleep states regulated differently by the circadian clock and by homeostatic processes? And what do we even mean by “circadian” and “homeostatic” regulation in the first place? Do males and females sleep differently, and if so, how is that difference encoded at the molecular or circuit level?
These questions sit at the intersection of neuroscience, genetics, animal behavior, and data science. Drosophila has long served as a powerful genetic model for dissecting the functional and circuit-level underpinnings of behavior. A central conceptual bridge, and a central inquiry driving this module, is how fly sleep research can be elevated to meaningfully inform mammalian neuroscience.
This module engages students with questions central to their development as scientists. The experimental platform is a conceptually rich teaching object in its own right, demonstrating how engineering and biology integrate to monitor complex behavioral regulation in a high-throughput, accessible system. The scale of data the platform generates is deliberately leveraged as a pedagogical opportunity to explore how data science and neuroscience converge in the study of behavior. Students also engage with the practices underpinning responsible science, i.e., reproducibility, rigor, FAIR (Findable, Accessible, Interoperable, Reusable) principles of open science, and the ethical dimensions of scientific communication.
Learning Outcomes
Upon completing this module, students will be able to:
- Design and execute a long-term, high-throughput behavioral assay using the DAM system, demonstrating an integrated understanding of its biological rationale and engineering architecture.
- Infer sleep states from continuous locomotor activity time series, and articulate the conceptual parallel between this approach and the inference of sleep stages from physiological signals in humans (analogous to how consumer wearable devices estimate sleep stages), situating the fly model within the broader context of translational sleep research.
- Distinguish circadian from homeostatic regulation of sleep using appropriately designed experimental conditions, and interpret free-running behavioral rhythms in terms of endogenous clock function.
- Quantify sleep parameters, including bout structure as a proxy for sleep depth, and rhythm phase and period, and evaluate how these vary across genotypes, sexes, and experimental treatments.
- Apply open-source computational tools to analyze large behavioral datasets, building competencies in quantitative reasoning, data science, and evidence-based interpretation as practiced in contemporary systems neuroscience.
- Engage critically with reproducibility, biological variability, statistical inference, and the FAIR principles of open science as foundational dimensions of responsible scientific practice.
Experimental Preparation
System and materials.
The primary experimental platform in this module is the Drosophila Activity Monitor (DAM) system, manufactured by Trikinetics Inc. (Waltham, MA).
- Individual adult flies are loaded into 5mm glass tubes containing sucrose-agar food at one end and sealed at the other with a small piece of white yarn, which permits gas exchange while preventing the flies from escaping.
- Sucrose-agar food can be made using the following recipe. For 125mL of food, mix the following in a 1000mL conical flask:
- 125mL de-ionized water.
- 2.5g Bactoagar.
- 5g of sucrose.
- Microwave the mixture until completely dissolved. The solution should be transparent and have a yellow/golden color. Keep an eye to avoid spills.
- Pour the mixture into a glass petri-dish. Make bundles of locomotor tubes with ~35 tubes per bundle. Note. These tubes must be 65mm long and have a diameter of 5mm.
- These bundles are then dipped into the glass petri-dish with the media. Food rises up the tubes through capillary action.
- Sucrose-agar food can be made using the following recipe. For 125mL of food, mix the following in a 1000mL conical flask:
- Each loaded tube is inserted into a DAM monitor, which houses 32 tubes arranged in a grid, with a single infrared (IR) beam passing transversally through each tube.
- The DAM monitors are then connected to a recording computer as per instructions from Trikinetics Inc.
Experimental logic.
Every time a fly interrupts its beam, the event is registered by the recording computer as a unit of locomotor activity, binned in 1-minute intervals across the full duration of the experiment. This is an elegant example of engineering in service of biology: a highly reliable, automated system capable of resolving the fine temporal structure of behavioral regulation across large numbers of animals simultaneously.
Protocol design.
The experimental protocol spans 14 days and is structured in two phases that together allow circadian and homeostatic regulation of sleep to be dissected independently.
- Days 1 to 4 (entrainment): Monitors are placed in a controlled environment (an incubator) under a 12:12 Light:Dark (LD) cycle and 25 degrees Celsius. The external light-dark cycle entrains flies’ circadian clocks and provides the temporal reference necessary to assess sleep bout timing, phase, and proxies of sleep depth, analogous to how polysomnography or wearable consumer devices infer sleep-stage architecture from continuous physiological recordings in humans.
- Days 5 to 14 (free-running): Monitors are transferred to constant darkness (DD). This is done by switching the environment in the incubator without disturbing the monitors. In the absence of environmental timing cues, the free-running, endogenously driven circadian regulation of sleep states can be isolated and quantified without the confound of environmental influence.
This LD-to-DD transition is a foundational paradigm in chronobiology, giving students direct, hands-on experience with one of the most powerful experimental strategies for separating clock-driven from environmentally modulated behavioral outputs in a concrete application of controlled experimental design, as foregrounded in NGSS practices.
Classroom Execution
Scale.
The scale of data generated in this module is itself a central feature of the learning experience. A classroom of 30 students, each setting up one monitor, can collectively record behavioral data from up to 960 flies across 14 days. With activity logged every minute for each animal over this period, the class generates nearly 20 million data points (19,353,600, to be precise).
From raw data to analysis.
Rather than treating this volume as an obstacle, the module uses it as a window into the realities of modern systems neuroscience, where large-scale data collection and computational analysis are indispensable. Students are introduced to pipelines that make this tractable on a standard laptop:
- Quality control: Raw data files are first processed through DAMScan, quality-control software by Trikinetics that identifies and flags recording errors, dropped readings, and anomalous entries, producing clean datasets ready for analysis.
- Analysis: Students then use [phaseR](https://github.com/abhilashlakshman/phaseR), an open-source analytical tool developed specifically for quantifying Drosophila sleep states and their circadian and homeostatic regulation.
- Through phaseR, students compute sleep duration, bout number and architecture (proxies for sleep depth and homeostatic drive),
- and the period and robustness of free-running circadian rhythms in sleep states.
- Detailed protocols for phaseR can be found here. Note. Download the HTML file to your local computer and open it on any web browser.
- The R package for most functions used in phaseR can be found here on CRAN. An example dataset is part of the package which students can use.
What students take from this.
- Engagement with this computational workflow prompts students to think carefully about
- the statistical properties of data,
- the assumptions underlying quantitative methods,
- what different measures do and do not capture,
- and how inferential choices shape scientific conclusions.
- By interpreting longitudinal, high-throughput behavioral datasets, students develop
- quantitative reasoning,
- computational analysis,
- and evidence-based argumentation skills.
The module thus cultivates not only technical fluency but epistemic awareness, an understanding of the relationship between data, models, and claims that are essential to rigorous scientific reasoning.
Situated within the broader curriculum, this module connects developmental origin and synaptic connectivity explored in other modules to observable behavior, reinforcing the integrative, NGSS-aligned approach of inquiry-driven experimentation and evidence-based reasoning that runs throughout the pedagogical sequence.