Main
The mechanisms underlying circadian rhythms are well understood2,3,4, but those controlling ultradian rhythms—biological rhythms with periods shorter than 24 h—are less clear. In amniotes, one such rhythm is that in which slow-wave (SW) and rapid-eye-movement (REM) sleep states alternate5,6,7. Recent work on sleep in the Australian dragon P. vitticeps, a diurnal reptile, indicates that this animal’s fast (1.5- to 2-min cycle period at about 27 °C), roughly symmetric (duty cycle ≈ 0.5), sustained (more than 8–9 uninterrupted hours or 250–350 cycles per night) and very regular ultradian rhythm of alternating SW-like and REM-like epochs (named, respectively, SWP and REMP, with P for Pogona) is generated by bilaterally coupled neural oscillators1 with dynamical properties similar to those of motor central pattern generators (CPGs), the circuits that underlie fundamental motor rhythms such as locomotion and respiration8,9,10,11,12,13. Although singular so far, this experimental evidence for ultradian sleep CPGs is consistent with some early hypotheses14 and modelling explorations15 on ultradian sleep-rhythm control in mammals.
Because the SWP–REMP ultradian rhythm occurs during sleep, it seems to be a consequence of entering a sleep state. But because sleep is under circadian modulatory influence16,17, sleep’s ultradian rhythm is, by extension, also nested in the circadian cycle. Hence the apparent causal relationship between sleep and sleep’s ultradian rhythms could instead be correlational. The reason for this suggestion comes from the following observations1: in Pogona raised on a 12-h:12-h light–dark cycle, a consistent relation exists between circadian and ultradian rhythms, expressed as (1) the gradual development and increasing regularity of the ultradian rhythm around light-to-dark transition (evening); (2) a sustained and regular rhythm for 8–9 h during the night; and (3) the progressive dissolution and, ultimately, disappearance of the ultradian rhythm in the few hours around dark-to-light transition1. Because the temporal alignment of this animal’s behavioural sleep state and ultradian sleep rhythm corresponds to the period when melatonin is produced by the pineal gland18, we hypothesized that melatonin, in addition to or instead of modulating sleep19,20, drives or influences the ultradian SWP–REMP rhythm. If so, melatonin, a circulating neurohormone with fast access to the cerebrospinal fluid and brain tissues, would exert actions similar to those of known neuromodulators on the neurons and circuits that form CPGs8,21,22,23,24,25,26,27. The following experiments test these hypotheses.
Pinealectomy disrupts the ultradian sleep rhythm
In mammals, the near exclusive source of melatonin is the pineal gland: an unpaired, epithalamic, endocrine organ situated between the two cerebral hemispheres28. In other vertebrates, the retina and even the skin (in amphibians) can, together with the pineal, produce melatonin29,30. In all vertebrates, including nocturnal ones, melatonin release is inhibited during the day and activated during the night. This photo-dependency has two primary causes: first, the activation by light of specific retinal ganglion cells31,32 and downstream hypothalamic and spinal cord relay stations33 with an inhibitory effect on melatonin production and release by the pineal; and second, the light-mediated entrainment of a circadian clock in the pineal itself34,35. In non-mammalian vertebrates, the pineal is also often itself photosensitive or, as in reptiles, associated with a photosensitive organ called the parietal eye36. Although the pineal gland can produce further signalling molecules such as serotonin and N-acetylserotonin, melatonin is its principal endocrine output37,38.
To assess the importance of the pineal gland for the circadian regulation of behavioural activity in Pogona, we compared actograms (Methods) in intact and pinealectomized animals. In intact animals (N = 5 animals, n = 3–4 recording days per animal), activity and immobility alternated daily with periods of 24.2 ± 0.4 h in a 12-h:12-h light (roughly 500–550 Lux)–dark cycle (LD), 25.4 ± 1.1 h in constant darkness (DD) and 18.4 ± 3.5 h in constant light (LL) (Fig. 1a,d and Extended Data Fig. 1). In pinealectomized animals (N = 4 animals, n = 3–4 recording days per animal), peak and total behavioural activities were greatly reduced (Fig. 1b–d), but the alternation of activity and rest (measured 3 or more days after surgery) remained, even in DD conditions (Fig. 1b and Extended Data Fig. 1). Hence, pinealectomy leads to decreased diurnal activity but does not affect the circadian alternation of activity and rest (Fig. 1d).

a, Control animals (CTRL). Left, actogram in a typical animal over 7 days, 3 in LD (white–grey), 4 in DD (grey–grey) conditions. Right top, autocorrelation of actograms (Methods) for N = 5 animals across n = 3–4 recording days per animal in LD and cycle period (circles: 23.9 ± 0.8 h; mean ± s.d.) of the activity rhythm. Right bottom: same in DD conditions (N = 5, n = 5; circles: 25.5 ± 0.9 h). Hence, activity was entrained to the 24-h LD cycle, whereas in DD lizards free-ran with a slightly longer period. b, Pinealectomized animals (PINX). Same conditions and analyses as in a. Note persistence of a circadian rhythm (autocorrelograms; N = 4 animals across n = 3–4 recording days per animal), with smaller amplitude modulation, in these animals. c, Circadian modulation of behaviour in both control (black; N = 5, n = 5) and pinealectomized (purple; N = 4, n = 4) animals. Each curve displays the cumulative sum of detected animal movements (in pixels; Methods) over 60 and 72 h. Top, LD conditions. Bottom, DD. Note reduction of total movements in pinealectomized animals but persistence of circadian regulation of activity even in DD. Thick lines highlight the corresponding traces of the representative control and pinealectomized actogram in a,b, and thin lines are traces from other animals (Extended Data Fig. 1). d, Mean and s.d. of differences between control (N = 5, n = 5) and pinealectomized (N = 4, n = 4) animals for total movement in pixel values (top), autocorrelation at first side peak (middle) and lag (time of first side peak, bottom). Mann–Whitney one-sided U-tests: U = 18, P = 0.0317; U = 15, P = 0.1429; U = 1, P = 0.2063 (N = 5, 4). *P < 0.05. e, Ultradian rhythm of claustral LFP in a control animal (of N = 5, n = 5). Top and middle, 10-min window taken in the middle of subjective night (arrowhead, bottom) showing raw LFP with times of SNs (red) and SWRs (blue) (top) and their anticorrelated occurrence, generating rhythm with a roughly 120-s period (middle: blue, SWP; red, REMP). Bottom, sliding-window autocorrelogram of LFP beta-band power (15-min window, 5-min steps, 1-h median filter) over 4 days (2 in LD, 2 in DD conditions). Positive and negative values shown in red and grey, respectively. Note roughly 2-min ultradian (red side bands) and roughly 24-h circadian periods. f, Same display as in e, for a pinealectomized animal (of N = 12, n = 12). Note the absence of ultradian rhythm, reduction of SWRs and increase in SNs. g, Median SN (left) and sharp-wave (right) traces in control (black) and pinealectomized (purple) animals (shading = [25th, 75th] percentiles). Note identical waveforms across conditions: only the statistics of their production differ (e,f). From 200 waveforms chosen at random times between 9 p.m. and 5 a.m., but with long intervals (SN, greater than 200 ms; SWR, greater than 1 s) to their nearest neighbours to avoid contamination. h, Changes in SWR and SN rate distributions caused by pinealectomy (control in grey; pinealectomized in purple). Two-dimensional distribution: contours enclose 25%, 50% and 75% of the probability mass. One-dimensional distribution: projection of probability density onto axis perpendicular to the separatrix (stippled); calibrations: x = 0.1 of combined rate of [15, −1] [SN, SWR] Hz, y = probability density of 1. Note single mode (purple, REMP-like) after pinealectomy. Scale bars, 100 μV (g, vertical), 100 ms (g, horizontal), 0.1 Hz (h, x axis), 1 (h, y axis).
To establish whether melatonin exerts a role or influence on the ultradian sleep rhythm, we also tested the effects of pinealectomy on the alternation of SWP- and REMP-like brain states (Fig. 1e,f). To measure this rhythm, we used electrophysiological recordings of local field potentials (LFPs) from the claustrum (CLA) or the adjacent anterior dorsal ventricular ridge (DVR), as previously established1,39,40. In intact animals, during SWP sleep, the LFP is dominated by sharp-wave ripples (SWRs) produced at low frequency (about 1 Hz)39,41 (blue, Fig. 1e); during Pogona’s REMP sleep, the LFP is dominated by beta-band (12–30 Hz) activity caused by sharp negative waveforms (SNs) produced 10–20 times per second40 (red, Fig. 1e). SN-like events are also present during wakefulness40; they occur irregularly, however, and do not form structured, recurrent bouts characteristic of REMP epochs embedded in the ultradian sleep rhythm. Because the normal ultradian rhythm consists of a regular alternation of SWP and REMP with a period of about 90–120 s over many hours41, a scrolling autocorrelation of the LFP’s power in the beta band (Fig. 1e, bottom) shows a characteristic periodic pattern during the night (12-h:12-h LD conditions) in which the periodic banding represents the rhythmic alternation of SWP and REMP states. In controls, these patterns were observed during the night and were absent during the day when the animal was awake and active (Fig. 1e). In DD conditions, the ultradian patterns remained during the subjective night42, but their circadian period increased, causing a gradual phase shift of the ultradian sleep epoch over consecutive subjective nights (Fig. 1e; shift also in the actograms, Fig. 1a).
In pinealectomized animals, the ultradian electrophysiological patterns typical of natural sleep were absent (Fig. 1f). Although SWRs and SNs were produced (Fig. 1f, top), with waveforms indistinguishable from controls (Fig. 1g), they did not occur in the burst alternation typical of controls (compare Fig. 1e,f top and middle); correspondingly, a scrolling autocorrelation of the beta-band power did not show, during either objective (12-h:12-h LD) or subjective (12-h:12-h DD) nights, the periodic pattern seen in controls (Fig. 1f, bottom). Hence, the normal SWP–REMP ultradian rhythm could not be detected in pinealectomized animals under LD, DD or LL (not shown) conditions. The consequences of pinealectomy on the ultradian rhythm also appeared in the statistics of LFP power or event rates. Figure 1h, for example, shows the two-dimensional distribution of instantaneous rate of SWR versus SN in control (grey) and pinealectomized (purple) conditions (same animals as in Fig. 1e,f). Note the shift from two modes in controls (grey, Fig. 1h) to a single one in pinealectomized animals (purple, Fig. 1h): after pinealectomy, REMP-like activity (that is, dominated by SNs) dominated over infrequent and irregular SWP-like activity (as in Fig. 1f, top). Taken together, these results show that, although pinealectomy had a limited effect on the circadian regulation of behavioural activity (Fig. 1a,b), it had a powerful effect on the ultradian alternation of SWP and REMP activities normally observed during sleep (Fig. 1e,f). These results indicated that melatonin plays an important role in the activation or dynamics of the ultradian sleep-rhythm generator.
Melatonin triggers an ultradian-like rhythm
Given its prominence as a pineal releasate, we tested the hypothesis that melatonin activates the ultradian sleep oscillator by determining whether melatonin delivery to pinealectomized animals restores rhythm generation. To test this, we first checked that Pogona’s pineal gland does produce melatonin and that its production undergoes circadian modulation with a roughly 24-h period in DD conditions. We dissected pineal glands (N = 3 animals; Extended Data Fig. 2a), kept them in the dark in culture medium for up to 5 days and collected samples from each one every 3 h throughout, for quantitative mass spectrometry (Methods). The peak, ranges and daily variations of melatonin produced in these conditions are shown in Extended Data Fig. 2a–d. These measurements confirmed that melatonin was secreted following a circadian rhythm that peaked during the night and declined during the day, with corrected fluctuations of about 100 nM over each day and peak measurements reaching 350.8 ± 62.2 nM (N = 3 animals, 3-h sampling windows) (Extended Data Fig. 2e,f). These concentrations of melatonin in the culture medium correspond to a production of 0–23 ng ml−1 per 3 h over each day and peak values of up to 80 ng ml−1 per 3 h per pineal gland.
We then tested whether melatonin plays a role in activating the ultradian sleep rhythm. We administered to pinealectomized animals, in which the rhythm is absent, a single daily, subcutaneous dose of melatonin of 0.5 µg kg−1 to 10 mg kg−1 (melatonin to animal body mass). These doses would correspond to 7.5 ng ml−1 to 1.5 µg ml−1 of plasma if all the injected melatonin ended up in the bloodstream. The injections were repeated at the same time daily over several days. For each injection, the animal was picked up by hand from its resting position and was awake, with its eyes open. Immediately after melatonin injection, it was returned to its initial position on the floor of the recording chamber.
In Fig. 2a, the animal was in the DD condition and injected at circadian time 12 (CT12; circadian time 0 corresponds to the time when daily light would normally start; CT12 is 12 h later, at subjective night onset) over 3 successive days. In a minute or two (67 ± 50 s, N = 3 animals, n = 10 injections), alternating SWP- and REMP-like activities appeared, with the same period as during control sleep (about 120-s cycle duration). At this dose (10 µg kg−1), the sleep-like LFP activity was maintained at high intensity for 2–4 h and at decreasing intensity over a few more hours. Repeated melatonin administration every 24 h over successive days (CT12; Extended Data Fig. 3a) generated identical results (N = 3 animals, n = 10 nights). Subcutaneous injections of the saline vehicle alone in pinealectomized animals (N = 5 animals, n = 12 injections, same conditions) triggered no ultradian rhythm (Extended Data Fig. 3b).

a, Three subcutaneous injections (arrowheads: 0.3 ml, 10 µg kg−1) over 3 days at CT12 (subjective 7 p.m. in DD, continuous recording) each trigger 2–4 h of ultradian-like electrophysiological rhythm (scrolling autocorrelogram as in Fig. 1e). b, Thirty minutes of the claustral LFP around the time of melatonin injection (arrowhead, 10 µg kg−1 subcutaneous, CT12). Less than a minute after injection, SWR production (blue triangles) increases and remains sustained for several minutes, whereas SN production (red circles) decreases before becoming periodic (t ≈ 12 min, SNs indicated by red circles). c, Summary of melatonin-triggered activity for ten injections (1 per 24 h) in three animals (see also Extended Data Fig. 3a). Original data as in b, aligned at black arrowhead (injection); grey arrowhead corresponds to example in b; blue, SWRs; red, SNs. Note the systematic triggering of the ultradian rhythm after a variable time. Bottom, probability (P) of being in REMP-like state (red) filtered with 10-s Gaussian (shading: Wilson binomial confidence interval, α = 0.25). Before injection, the pinealectomized animals are mostly in REMP-like state. Immediately after injection, that probability drops to less than 0.5. It later oscillates around 0.5 from REMP-like to SWP-like territories. d, SWR and SN rate distributions as in Fig. 1h in pinealectomized (purple) and injected (olive green) animals. Note recovery of the two modes after melatonin injection. Calibrations as in Fig. 1h. e, Phase-portrait (lag plot) of claustral dynamics around melatonin injection (arrowhead, t = 0) in a pinealectomized animal. Plotted is inter-SN interval versus time-lagged inter-SN interval, showing the rapid initiation of the ultradian oscillatory dynamics (olive green). Scale bar, 200 μV (b). IEI, mean inter-event interval in a sliding window of 30 s.
The effects of melatonin injection on the LFP were very reliable. Within 1–2 min of the injection, the LFP showed a reduction in the ongoing rate of SNs (Fig. 2b,c), which dominate claustral activity in pinealectomized animals (Figs. 1f and 2b). This reduction in REMP-like activity was accompanied by a pronounced increase in SWR production (SWP-like activity; blue triangles, Fig. 2b). Injections at CT12 repeatedly and reliably first led to a sudden and near-complete drop of beta LFP power (REMP-like) in favour of an activity typical of SWP (Fig. 2b,c) lasting 1 min to a few minutes (median 3 min, N = 3 animals). It then transitioned to high beta and high SN production, both typical of REMP activity (Fig. 2b,c). With this, regularly alternating SWP-like and REMP-like activities began, each about 1 min long (Fig. 2c), as observed during natural sleep in intact animals (Fig. 1e). Hence, the dynamics and spectral features of the melatonin-evoked rhythm closely resembled those of sleep’s natural rhythm but differed from natural sleep in the swiftness of the rhythm’s appearance—within minutes of melatonin injection versus 1–2 h when intact animals fall asleep naturally. The distributions of SN and SWR rates in pinealectomized (purple) and melatonin-injected (olive green) animals are superimposed in Fig. 2d: melatonin caused a return to the bimodal distribution of intact animals (grey, Fig. 1h). The swiftness of melatonin’s action on triggering oscillatory dynamics is illustrated in a lag plot of interevent intervals in Fig. 2e (injection at t = 0, black triangle).
We next examined the dependency of the evoked rhythm on the melatonin dose injected (0.5 µg kg−1 to 10 mg kg−1). The activation threshold of the SWP–REMP oscillator by subcutaneous melatonin injection was between 0.5 and 1 µg kg−1 (Extended Data Fig. 4). Once in the appropriate concentration range, the main characteristics of the evoked rhythm did not change as a result of increasing the concentration (1,000-fold; Fig. 3a–c): the rhythm maintained the regular alternation of the same two states, with the duration of the evoked rhythm scaling from 2–6 h for 10 µg kg−1 to 14 h for 10 mg kg−1 (Fig. 3a–c and Extended Data Fig. 4). To test whether these differences were due to the rates of melatonin-concentration increase, we administered melatonin at very low doses progressively over many hours (to match known melatonin circulating concentration profiles43) using a minipump placed on the animal’s head (Fig. 3d and Methods) in DD conditions. This produced a slow onset and offset of the rhythm (Fig. 3e) more similar to natural patterns observed in DD conditions (Fig. 1e) than to those evoked by acute subcutaneous injection (Figs. 2a and 3a).

a, Daily injections (at CT12) of a single dose of melatonin, varying between 10 µg kg−1 and 10 mg kg−1, each trigger ultradian-like rhythm with period independent of dose, but over a duration that increases with dosage. b, Mean autocorrelation over time per dose for injections performed in a (light to dark green; Methods). See Extended Data Fig. 3 for single traces (for all injections greater than 10 µg kg−1 melatonin: N = 3, n = 3). Note rapid rise to peak for all doses, but dose-dependent decay. Onset is before 0 because of the width of the smoothing window (1 h, rolling). c, Main features of the rhythm (oscillation duration, cycle duration, SWP-like epoch duration, SWP duty cycle) for each tested dose. Each dot represents a sample (for each concentration, 3 ≤ N ≤ 10). Black lines indicate medians. Note that 10 mg kg−1 oscillations exceeded the recording time (clipped values indicated by x). d, Side view of an animal’s head and thorax with its recording implant and minipump. e, Rhythm evoked by slow and progressive minipump administration of melatonin over two successive days (two cycles in one animal shown; total N = 2 animals, n = 6 cycles). Note the slow appearance and disappearance of the rhythm, more similar to the natural ultradian sleep rhythm. Top, pump melatonin flow. Middle, sliding autocorrelation of beta power. Bottom, duration of SWP-like periods. Median and percentiles (10th, 20th, 30th, 40th) in a sliding window of 1 h filtered with a 15-min Gaussian. Melatonin was infused at constant concentration; the different pump flow rates therefore correspond to proportional changes in effective delivery rate (estimated micrograms per kilogram per hour).
The action of melatonin depends on external factors
Our initial experiments showed that pinealectomized animals maintain a circadian alternation of activity and rest (Fig. 1a–d). We therefore explored the effects on the evoked rhythm of the time of injection and of ambient light at the time of injection. In Figs. 2a and 3a, we show the responses of a pinealectomized animal to injections at CT12 or subjective 7 p.m. in DD. In Fig. 4a–c, we show the responses of an animal to injections of the same melatonin dose but in three conditions. In Fig. 4a, the injection was at Zeitgeber time 12 (ZT12; 7 p.m. in LD), when daytime lights have just been turned off and the animals would normally be transitioning to sleep. This clear rhythm-activation response serves as a reference. In Fig. 4b, a similar injection was carried out at ZT5 (12 p.m. (noon) in LD), hence in full light, when the animals would normally be awake. In this condition, melatonin failed to evoke a detectable and sustained ultradian rhythm (Fig. 4b–f and Extended Data Fig. 5c). In Fig. 4c, the injection was made at CT5 (subjective noon in DD), when the animals would normally be awake but in the dark. Here an ultradian rhythm was triggered (Fig. 4c, left) with quantitative features comparable to those of a ZT12 injection (Fig. 4g and Extended Data Fig. 5b,d). Thirty-five minutes of raw data are shown for each of the three conditions (Fig. 4a–c, right). Melatonin caused regular alternation (Fig. 4d) of the two electrophysiological states (Fig. 4e) within a few minutes of the injection (Fig. 4f) for the ZT12 and CT5 conditions, but not for ZT5. Although occasional SWP-like events were observed at ZT5 (Fig. 4e), these transitions were sparse and irregular and did not generate a sustained ultradian oscillation. Accordingly, the metrics reported in Fig. 4g for ZT5 reflect these limited state transitions. The effect of melatonin on evoking the ultradian rhythm in pinealectomized animals therefore seems to be independent of circadian time alone but conditioned on environmental light being absent at injection time.

a, Action of a 10 µg kg−1 dose of melatonin subcutaneously injected at ZT12: that is, in LD conditions at the time when lights are switched off (representative example shown of N = 3 animals, n = 7 injections). See other examples in Extended Data Fig. 5. Left, autocorrelogram of the claustral beta band over 24 h. Right, LFP with timing of SWRs (blue) and SNs (red) 5 min before and 30 min after the injection (arrowhead). b, Same as a but with injection at ZT5: that is, in ambient light 5 h after lights are turned on, when physiological melatonin levels would be at their lowest in an intact animal. Note absence of evoked rhythm. Representative example shown of N = 3 animals, n = 8 injections. c, Same time as b, but in constant darkness (CT5). A normal rhythm is generated. Representative example shown of N = 3 animals, n = 8 injections. d, Autocorrelation of beta power (median and 5th–95th percentiles) taken 1 h before (grey) or after (colour) the injection (7 ≤ N ≤ 10). e, Distributions of projection of SN and SWR rates on axis perpendicular to the separatrix (as in Fig. 1h; y axis, probability density function (pdf)) for 1 h before (grey) and after (colour) injection. Median and 25th–75th percentiles. Note that unimodal distributions become bimodal for ZT12 and CT5 but not for ZT5. f, Probability of being in REMP-like state for each condition (colours as arrowheads in a–c). Filtered with 10 s Gaussian (shading: Wilson binomial confidence interval, α = 0.25). g, Comparison of mean SWP-like durations, mean combined REMP-like and SWP-like cycle duration, SWP duty cycle and bimodality score (increase of Bayesian information criterion (BIC) for distributions in e; Methods) across injection conditions. Cycle values above 300 s are clipped and indicated by crosses. Colours as in d–f. Data pooled from three animals. Mann–Whitney U-tests (statistics in Extended Data Table 1). P < 0.05, P < 0.01, P < 0.001. Scale bar, −200 μV (a). a.u., arbitrary units.
We also tested the effects of melatonin injection in intact animals: that is, animals with ongoing endogenous melatonin production. Injections were made during the night at ZT17 (midnight in LD; Extended Data Fig. 6). This injection briefly disrupted the ongoing ultradian rhythm by causing 1–3 prolonged SWP-like epochs (Extended Data Fig. 6e; consistent with the immediate effect of melatonin injection on pinealectomized animals, as shown in Fig. 2b,c). Following this initial response, both phases of this sleep-related rhythm returned to their normal values over 30–60 min (Extended Data Fig. 6d).
Does the ultradian rhythm evoked by melatonin correspond to natural sleep?
During natural sleep, the alternating SWP–REMP activities recorded from the CLA are clearly associated with behavioural sleep: throughout either sleep phase, eyelids are closed, limb and axial muscle tone is lost (nuchal electromyograms are flat1, limbs are limp), the head rests on the forelegs or on the substrate, and movements are rare41. During each REMP episode, the eyes display a few rapid movements41. As an animal wakes up, nuchal tone and forelimb muscle activity return, the head and upper body rise above the substrate, and the eyes open slowly. The natural transitions between the behavioural states corresponding to manifest wake and sleep are typically slow (several tens of minutes), paralleling the slow transitions between the LFPs corresponding to fully awake (irregular, mostly REMP-like) and stabilized sleep (ultradian alternating SWP–REMP rhythm) and equally for the reverse transitions, as described previously1.
Because the alternating sleep-like electrophysiological rhythm evoked by melatonin injection appeared so quickly after injection in awake or just-awakened animals (Figs. 2–4), we asked whether that rhythm corresponded to true sleep: namely, did injected animals display the normal behavioural manifestations of sleep in addition to the electrophysiological ultradian rhythm? We filmed pinealectomized animals with side- and top-view cameras (Methods) and measured head and body motion, posture, head station and left and right eyelid openings over 24 h around the injection (Fig. 5a), in addition to recording claustral activity. We illustrate the behavioural responses at CT5 (subjective midday) and CT12 (subjective day–night transition), both in DD.

a, Melatonin injection in a pinealectomized animal in DD at CT5 evokes a sleep-like electrophysiological rhythm in an animal otherwise showing the postural elements of being awake. Both eyes, however, open and close in coordination with the electrophysiological rhythm. Images i–iv taken as indicated in c. See also Supplementary Video 1. b, SN production rate in left CLA LFP (top) together with the simultaneously monitored intereyelid distance of the contralateral (Contra) eye (see Extended Data Fig. 6 for the other eye). Recordings in the dark with melatonin injection at CT5 (arrowhead). Note considerable numbers of eye-openings and -closings. c, Zoom-in of shaded area in b. Note coordination of eye-openings and SN rate oscillation. i–iv, see a. d, Same as b, but with injection at CT12. e, Zoom-in of shaded area in d. Note that the correlation between eye-openings and SN rate increases in this brief period of eye-openings. f, Eyelid distance versus phase of beta rhythm (Methods) for injections at CT5 (top) and CT12 (bottom). Phases between 0 and 0.5 correspond to low beta power (SWP-like) on average. Data are shown for one representative animal per condition (N = 2, n = 9). g, Timing of individual SN events in each of about 70 successive ultradian cycles (middle, dot rasters for each cycle) and their rate (bottom, median and interquartile range) in relation to corresponding eyelid distance (top, median and interquartile range). Note that SN rate increases before eye-opening, indicating that transition to REMP-like activity is not a consequence of eye-opening. Paired one-sided Wilcoxon signed-rank test comparing mean SN rate in baseline before eye-opening (−30 to −25 s, grey shading) versus immediately before (−5 to 0 s, grey shading): W = 581, P = 0.00018, n = 72 eye-openings. ***P < 0.001.
With an injection at CT5 (arrowhead, Fig. 5b; Supplementary Video 1), corresponding to when the animals are awake and most active, the electrophysiological rhythm (claustral SN rate in hertz; Fig. 5b,c, top) established itself rapidly after the injection. Despite this sleep-like brain activity, the animal’s posture remained that of an awake animal, with extended forelegs and neck and head held upright (Fig. 5a and Supplementary Video 1). Yet the eyes opened and closed, respectively, at the beginning and end of each REMP-like cycle, as illustrated with the contralateral eye’s intereyelid distance (Fig. 5b,c in millimetres, with illustrative frames in Fig. 5a). The animal also made small head and neck rotations during the REMP-like cycles when the eyes were open (Supplementary Video 1). Hence, the evoked sleep-like electrophysiological rhythm occurred in an animal that displayed the behavioural traits of being awake, although it closed its eyes during the SWP-like phase of the melatonin-evoked rhythm.
With an injection at CT12 (Fig. 5d,e; same animal), the eyes were closed before injection, consistent with behavioural sleep, and opened briefly at injection time. Shortly after melatonin injection, a few eye-openings occurred (pink shading, Fig. 5d) at times corresponding roughly to rises in SN rate or REMP-like activity (expanded view, Fig. 5e). Following this early epoch, during which a few body movements could be observed (Supplementary Video 2), the established electrophysiological rhythm continued steadily (Fig. 5d), but the eyelids remained closed (see other animal in Extended Data Fig. 7a,b). The animal’s prone posture and closed eyes (Supplementary Video 2) matched the features of immobility associated with natural sleep.
Eye-opening relative to the phase of the melatonin-evoked electrophysiological rhythm is plotted in Fig. 5f for both conditions (CT5, CT12), illustrating the tight locking between eye-opening and REMP-like activity in the CT5 injection condition. We also examined the relative timing of eye-openings (Fig. 5g, top) and SN rate in CT5, to test whether eye-openings in this condition might have a causal influence on the REMP-like bouts. The SN rate, plotted for the roughly 70 cycles evoked by this CT5 melatonin injection (Fig. 5g, middle and bottom), began to rise before eye-opening, confirming that the transition to REMP-like activity was not caused by eye-opening (see also Supplementary Video 1). In conclusion, the ultradian-like rhythm evoked by melatonin injection in pinealectomized animals cannot be equated to natural sleep, although one could be led to think so if injections were made only at times when the animals normally sleep. This dissociation indicates that the neural circuits generating the electrophysiological rhythm interact with but are partly distinct from those governing the behavioural expression of sleep and arousal (see also ref. 1). The electrophysiological ultradian rhythm normally observed in Pogona during natural sleep can thus be evoked by melatonin even outside of sleep, as defined by behavioural criteria.
Discussion
Pinealectomized animals showed reduced behavioural activity (especially in DD conditions) but retained the circadian modulation of that weak activity. The animals, however, did not express the ultradian SWP–REMP rhythm normally observed during sleep in intact animals. Their claustral LFP was dominated by SNs, typical of awake or REMP-sleep states in intact animals. The electrophysiological rhythm could be recovered in pinealectomized animals by injection of melatonin at subcutaneous doses of 1 µg kg−1 and above; the rhythm appeared within a few minutes of the injection and had the same alternating features (SWP-like and REMP-like) and periodicity as those expressed in intact sleeping animals. The features of this activity were stable over a more than 1,000-fold range of melatonin concentrations; only the duration of the evoked rhythm increased with increasing concentrations. The electrophysiological rhythm could be evoked by melatonin injections at different phases of the circadian cycle in DD but was not observed when ambient light was present, indicating that the expression of the melatonin-induced ultradian electrophysiological rhythm is under sensory regulation. Finally, our finding that the melatonin-induced electrophysiological rhythm was not necessarily locked to behavioural sleep indicates an indirect link between the electrophysiological ultradian ‘sleep’ rhythm and sleep behaviour itself.
Melatonin and the ultradian rhythm
Sleep is believed to depend on two mechanistically distinct processes known as homeostatic and circadian pressures16,44. Whereas the mechanisms underpinning the former are the object of active research45,46,47, the latter depends, at least in part, on melatonin20 (although see ref. 48), which is produced mostly by the pineal gland and released into the bloodstream and cerebrospinal fluid. In many diurnal vertebrates, melatonin is proposed to facilitate sleep, rather than cause sleep directly, if delivered at the appropriate diel phase49,50. In mammals, exogenous melatonin has been reported to reduce sleep onset latency and improve sleep maintenance under certain conditions51,52. In other vertebrates, its effects on behavioural sleep are more variable. For example, in larval zebrafish, genetic suppression of endogenous melatonin production by the pineal gland halves the duration of sleep (defined as spells of immobility) in LD conditions20, indicating a role in sleep regulation, although not necessarily in the generation of sleep architecture per se. Our behavioural observations in pinealectomized Pogona (Fig. 1a,b) in LD and DD conditions indicated that endogenous melatonin was not required for the occurrence of a behavioural circadian rhythm in sleep/wake behaviour. Unexpectedly, though, melatonin was critical for the generation of the ultradian electrophysiological rhythm normally observed during sleep. This is consistent with previous results in Pogona1 showing that sleep and its constituent SWP–REMP rhythm can be briefly decoupled mechanistically. It also indicates that melatonin activates (directly or indirectly) the oscillators responsible for the ultradian rhythm. Neuromodulators are well known to activate and/or modulate the activity of neural circuits, including classical (that is, motor) CPGs8,53: for example, NMDA (or glutamate acting by means of NMDA receptors) turns on locomotor rhythms in the tadpole and lamprey spinal cords10,54; norepinephrine or 5-HT triggers stepping-like movement in decerebrate cats on treadmills55; several neuromodulators (peptides and muscarinic cholinergic agonists) evoke rhythms in the crustacean stomatogastric ganglion53 or insect thoracic nerve cord56; amino acids, peptides and biogenic amines modulate breathing57; and melatonin itself controls swimming behaviour in marine zooplankton58. It seems, therefore, that melatonin, a neurohormone with rapid access to the brain, exerts a neuromodulatory action on Pogona’s neural oscillator circuits responsible for the ultradian rhythm, analogous to the actions of neuromodulators on motor CPGs.
The loss of alternation between SWP and REMP electrophysiological states on pinealectomy and the immediate recovery of the electrophysiological rhythm on subcutaneous administration of melatonin indicate a causal link between melatonin and the activation of sleep’s ultradian oscillators. Melatonin is an amphiphilic molecule with rapid absorption (oral Tmax = 15 min in sheep; subcutaneous Tmax = 20 min in hamster) and rapid degradation (30 min in sheep, 30–60 min in humans)59,60,61. Published measurements of the nocturnal peak plasma concentration in the lizard Tiliqua rugosa are between 100 and 232 pg ml−1 (refs. 62,63), close to peak plasma concentrations in humans (150 pg ml−1 (ref. 64)). These plasma concentrations are about ten times lower than those we measured for isolated Pogona pineals in culture, probably reflecting the partitioning and degradation of melatonin in the body in vivo. Even accounting for fractional blood transfer of the subcutaneously injected dose, blood-circulating melatonin concentrations must have increased very rapidly on acute subcutaneous injection to explain the rapid initiation of the electrophysiological rhythm (less than 3 min). Once established, the properties of the rhythm (regularity, frequency and duty cycle) did not change with increased melatonin dose, indicating that the oscillatory dynamics of the ultradian SWP–REMP oscillator are stable and not under homeostatic feedback regulation linked to circulating melatonin concentration. This dissociation further indicates that melatonin affects primarily the duration of the rhythmic state, presumably as long as its circulating titre exceeds a certain rhythm-activation threshold. Accordingly, the mechanisms of activation of the ultradian sleep-rhythm oscillator must be quickly saturated, with the duration of evoked oscillatory activity scaling with the availability of melatonin (and therefore the dose injected and, presumably, its rate of degradation by the liver). Indeed, for a given experimental condition (for example, injections at CT12), only the duration of evoked oscillatory activity varied with the injected dose. A slow administration of a low dose of melatonin using a minipump better approximated the progressive onset of the natural rhythm, consistent with the hypothesis that the ultradian rhythm’s nightly profile reflects that of the naturally produced melatonin, supported by our measurements of pineal melatonin production.
In pinealectomized animals kept in LD conditions, melatonin injection during the peak light phase failed to trigger the ultradian rhythm. One possible contributing factor could be a circadian modulation of receptivity to melatonin; melatonin type 1 receptor mRNA and protein expression in the rodent suprachiasmatic nucleus (SCN) varies in phase with the circadian rhythm65,66. This alone, however, probably does not explain the suppression observed in LD because a similar effect would have been obtained under free-running DD conditions. A more likely explanation is therefore that ambient light itself interferes with the initiation of the melatonin-evoked ultradian rhythm. We showed previously1 in intact and awake animals that pulses of light trigger strong barrages of claustral SNs, similar to those produced during REMP sleep, and that a SWP-like state, lasting about 60–80 s, is triggered at the end of each light pulse. Melatonin injection in a pinealectomized animal in DD conditions always triggered first the suppression of ongoing SNs and the production of SWRs characteristic of SWP sleep. This initial SWP-like epoch lasted a few minutes, after which a REMP-like bout of SNs started. This ordered succession of first SWP-like and then REMP-like bouts always marked the beginning of the melatonin-evoked rhythm. It is possible, therefore, that by opposing the initial SWP-like bout normally caused by melatonin, light prevents the initiation of rhythmic activity in the ultradian SWP–REMP oscillator. This indicates that the ultradian oscillator must be initiated in SWP to produce its rhythmic output and is consistent with the fact that in vertebrates expressing REM, sleep begins with SW67,68. In our experiments, only darkness permitted the expression of melatonin-induced ultradian dynamics in the claustral LFP. Because claustral SWR/SN dynamics are themselves influenced by light, our data do not allow us, at this time, to distinguish between the possibility that ambient light prevented the activation of the ultradian oscillator and the possibility that it simply masked the oscillator’s claustral readout.
Ultradian rhythm control and sleep
We showed previously1 that the ultradian rhythm can be entrained in intact and awake animals by turning the ambient light on and off at a rate that matches sleep’s SWP–REMP alternation. After about ten cycles of such entrainment, the rhythm continued autonomously for one to a few cycles. This indicated that the ultradian ‘SWP–REMP’ oscillator, which is normally active when the animal sleeps, can also be briefly activated outside of sleep and may therefore be partly independent of sleep’s own control circuits. Our new results provide further support to this idea: although a punctual administration of melatonin to a pinealectomized animal activated its ultradian oscillator, this oscillation was not necessarily associated with the normal behavioural correlates of sleep, as clearly seen when melatonin was administered at circadian times when the animals are normally active: in this case, the rhythm and synchronized eye-openings and -closings occurred in an otherwise awake animal (by behavioural criteria). We thus propose that, at least in Pogona, behavioural sleep and sleep’s ultradian rhythm may co-occur not because the ultradian rhythm is an intrinsic component of sleep but because sleep pressure16 and melatonin levels are both normally aligned with the circadian cycle: if sleep pressure increases during the active phase of these diurnal animals, and if melatonin production rises at the end of the day to peak in the night, sleep’s ultradian oscillators will naturally turn on when the animal is normally asleep. These two coupled but parallel phenomena may be further coupled to one another by the inhibitory influence of daylight on not only melatonin production but also the melatonin-evoked rhythm. Should a similar indirect coupling of homeostatic and circadian pressures apply also to mammals and humans, one would expect a misalignment of sleep pressure and sleep’s normal electrophysiological organization, including non-REM–REM sleep cycling and sleep architecture more broadly in conditions of jetlag, which could explain the mediocre quality of sleep in this condition. This would be consistent with observations of impaired sleep quality in jetlagged and circadian-misaligned humans69,70,71. Our results also have potential implications for the evolution of sleep: because they are separable, the mechanisms of sleep and those of its ultradian dynamics may have evolved, at least in part, separately from one another.
Methods
Animals
Juvenile lizards (Pogona vitticeps) of about 3 months of age were obtained from our institute colony and used for the ex vivo tissue explant studies. All other experiments were performed with adult lizards (P. vitticeps) of either sex, weighing 200–400 g (around 1.5–3 years old), obtained from our institute colony and selected for size, weight and health status. The lizards were housed in our state-of-the-art animal facility. All experimental procedures were approved by the relevant animal welfare authority (Regierungspräsidium Darmstadt, Germany) and conducted following the strict federal guidelines for the use and care of laboratory animals (permit nos. F126/2006 and F126/2019). The results presented here are based on experiments in 17 animals. Animals were not assigned to groups and were selected on the basis of weight and healthy constitution. Randomization was not relevant for this study. Investigators were not blinded to group allocation during data collection and analysis. LFP recording acquisition was fully automated and blinding was thus not relevant for this study.
Daily and circadian conditions
Our experiments were conducted in daily or circadian conditions. During daily conditions, light and dark alternate every 12 h (LD condition). Time is then given as ZT. During circadian conditions, the animals are kept in constant darkness (DD) or light (LL). Time is then given as CT. By convention, ZT0 is the time of transition from D to L, which in our facility corresponds to 6 a.m. Central European Time (CET; or 7 a.m. Central European Summer Time (CEST)). ZT12 is therefore the time of L to D transition (6 p.m. CET or 7 p.m. CEST). By analogy, CT0 corresponds to the same real time as ZT0 (6 a.m. CET or 7 a.m. CEST) but in constant conditions of ambient light (DD or LL), hence often called subjective time.
Outside of experiments in CT conditions, the lizards were housed individually in reptile terraria and kept on a 12-h LD cycle with ultraviolet spotlights for basking (ZT3–9) between in vivo recordings. They had access to water and supplemented herbs ad libitum and were fed vegetables (carrots, lettuce) and proteins (crickets or bee larvae) five times per week at varying times of the day.
The animals were kept in experimental arenas during in vivo recordings, on a 12-h LD cycle, DD or LL. Infrared LED light strips provided a source of infrared illumination under all lighting conditions. The temperature was maintained at 27.34 ± 0.43 °C (mean ± s.d.) throughout experimental recordings (Extended Data Fig. 1b,f).
Ex vivo pineal gland and brain slice cultures
Brains were obtained from male juvenile lizards about 3 months of age, and the pineal gland was extracted intact by grasping the base of the stalk with a forceps and pulling gradually. In parallel, brain slices were prepared at a thickness of 300 µm using a McIlwain Tissue Chopper. The isolated pineal glands and brain slices were examined briefly under a light microscope to confirm complete retrieval of the pineal gland and to identify and isolate slices containing the SCN or CLA. The identified slices were trimmed accordingly.
Pineal explants and trimmed SCN/CLA slice preparations were transferred onto Millipore membrane filters and placed in 35-mm diameter culture dishes containing culture medium composed of 8.3 mg ml−1 Dulbecco’s modified Eagle’s medium (Sigma), 0.35 mg ml−1 NaHCO3 (Fisher), 5 mg ml−1 d-glucose (Fisher) and 0.01 M HEPES (Sigma), supplemented with penicillin–streptomycin at a 1:10 (v/v) ratio. Dishes were incubated at 30 °C in a humidified incubator containing 5% CO2 (Thermo Scientific) and maintained in darkness.
Every 3 h, 5% of culture medium from each dish was removed and immediately stored at −80 °C. An equivalent volume of fresh culture medium was then added to each dish to replace the removed volume. Care was taken to protect the samples from light throughout the manipulations.
Mass spectrometry analysis of melatonin
Samples were diluted 1:40 in buffer A (95% mass-spectrometry-grade water, 5% acetonitrile, 0.1% formic acid) containing 2 nM Melatonin-d3 Standard (Hycultec GmbH, catalogue no. HY-B0075S1–5) as an internal standard before liquid chromatography–mass spectrometry analysis. Chromatographic separation was performed using a Waters ACQUITY Premier HSS T3 Vanguard FIT column (1.8 µm, 2.1 mm × 100 mm; catalogue no. 186009471) maintained at 45 °C, with a flow rate of 0.350 ml min−1 and a 6.5-min gradient. Mobile phases consisted of A (95% mass-spectrometry-grade water, 5% acetonitrile, 0.1% formic acid) and B (95% acetonitrile, 5% mass-spectrometry-grade water, 0.1% formic acid). For the liquid chromatography gradient, solvent B was linearly increased from 5% to 95% B from 0 to 4 min and held at 95% for 0.9 min. At 4.9 min total gradient length, the composition was decreased to 5% B in 0.1 min and held for 1.5 min at 5% B.
Samples (10 µl) were injected and analysed using a Thermo Eclipse mass spectrometer equipped with a heated electrospray ionization source in positive ionization mode, with sheath gas, auxiliary gas and sweep gas flow rates of 50, 10 and 1, respectively. The spray voltage was 3.50 kV, the ion transfer tube temperature was 325 °C, and the vaporizer temperature was 350 °C. The Orbitrap resolution was set to 50,000, and MS1 spectra were acquired in full-scan mode using the Orbitrap mass analyser over an m/z range of 70–800, with an automatic gain control target of 100% and an absolute automatic gain control value of 4.0 × 105 and were recorded in profile mode.
A calibration curve consisting of light melatonin standards ranging from 1 to 14 nM was acquired before sample measurements (matching detected dilutions). Melatonin-d3 was added to all samples (2 nM; see above) and used as an internal standard for normalization and quantification of melatonin concentrations. Data were processed using Skyline v.26.1.0.057 and subsequently analysed using Python (v.3.11.11). All mass-spectrometric data associated with this manuscript have been uploaded to the Panorama online repository.
Surgery for chronic claustral recordings
All surgeries were performed during ZT1–9. One day before surgery, lizards were administered analgesics (butorphanol, 0.5 mg kg−1 subcutaneously; meloxicam, 0.2 mg kg−1 subcutaneously) and antibiotics (marbofloxacin, 2 mg kg−1). On the day of surgery, the animals were placed into anaesthesia chambers with 5% isoflurane. Anaesthesia was maintained with isoflurane (1–4 vol%) after intubation. Once deeply anaesthetized (absence of corneal reflex) the lizards were placed in a stereotaxic frame. Body temperature during surgery was maintained at 30 °C using a heating pad and an oesophageal temperature probe. Heart rate was continuously monitored using a Doppler flow detector. The skin covering the skull was disinfected using 10% povidone–iodine solution (Betai-NE) before removal with a scalpel. A dental drill was used to bore a cranial window reaching the claustral region. Pinealectomies were performed before electrode implantation to ensure the resolution of any related bleeding.
Pinealectomy
Pinealectomies were performed during ZT3–5 in animals that had experienced a 12-h LD cycle before surgery. In pinealectomized animals, the cranial window reached the mesencephalon, exposing the base of the pineal gland. The dura and arachnoid were removed, and the base of the pineal gland was grasped using a pair of fine forceps. The pineal gland was extracted as a whole and examined with a microscope on retrieval. Blood vessels were pinched with fine forceps, and cold isotonic NaCl solution was used to stop bleeding.
Electrode implantation
The pia overlaying the dorsal cortex superficial to the claustral region was removed with fine forceps and scissors. The exposed skull was covered with ultraviolet-hardening cement to serve as a base for fixing the electrode implant. Stainless steel wires were secured subdurally to serve as reference and ground. Thirty-two-channel silicon probes (catalogue no. ASSY-116 H7b, Cambridge Neurotech) were mounted using ultraviolet-hardening cement on Nanodrives (Cambridge Neurotech) and were positioned above the claustral region using a stereotactic adaptor. During surgery, the probes were lowered to a depth of 500 µm unilaterally into the claustrum.
The probes were secured in the craniotomy with ultraviolet-hardening cement, and the brain was covered with Duragel (Cambridge Neurotech) followed by Vaseline. After surgery, lizards were released from the stereotaxic frame and kept on a heating pad at 30 °C until recovery from anaesthesia and initiation of autonomous breathing.
All animals (pinealectomized and non-pinealectomized) were allowed to recover, under continuous monitoring and the administration of analgesics and antibiotics, in their home terraria until 3 days after surgery.
In vivo electrophysiology
The LFP in the claustral region was recorded with silicon probes (above) using a Cheetah Digital Lynx SX system at a sampling rate of 32 kHz, as described in refs. 1,40. Electrophysiological and video recordings were triggered simultaneously, and transistor–transistor logic and general-purpose input/output pulse trains were used to tag frame acquisition on the videos.
Melatonin injections
Pinealectomized animals and a small cohort of non-pinealectomized animals received melatonin (N-acetyl-5-methoxytramptamine; catalogue no. M5250, Sigma Aldrich) at varying lighting conditions and at varying times of the day or subjective day (ZT5, ZT12, CT5, CT12). Melatonin was administered by either acute subcutaneous injections or gradual subcutaneous infusion using micropumps. In DD conditions, melatonin injections were performed under very dim light (less than 1 lux) to allow handling and accurate injection. Exposure was brief (typically less than 2–3 min) and limited to the time required for administration. Melatonin was always dissolved in an isotonic Ringer solution, brought to room temperature at the time of administration. After identifying the working range of injected melatonin, melatonin was administered subcutaneously in the dorsal region of the animal’s back at varying doses (10 µg kg−1, 0.1 mg kg−1, 1 mg kg−1, 2 mg kg−1 and 10 mg kg−1) in 0.2–0.4 ml solutions. All animals also received a maximum of three vehicle injections (isotonic saline solution of the same volume) at various positions between the melatonin injection conditions.
In a separate subgroup of animals, minipumps (iPRECIO SMP-310R, Primetech) were used to infuse melatonin solutions. The intended melatonin dose was 10 µg kg−1 per day. A 24-h infusion profile was programmed onto the minipump one day before surgery (craniotomy with pinealectomy, electrode and micropump implantation). All minipump experiments were conducted in constant darkness. At CT7, a stepwise (every 2 h) increase (2 µl h−1) in flow rate was initiated, reaching a maximum flow rate of 10 µl h−1 at CT15. As a result, the effective melatonin dose delivered (in micrograms per kilogram per hour) also varied proportionally with the infusion rate. The flow rate was reduced at 1-h time intervals in 2 µl h−1 steps from CT16 to CT22. The minipumps were attached to the mount of UV-light hardened cement of the electrode implant, and the catheter was secured subcutaneously through incisions in the skin lateral to the spine of the animals (Fig. 3d). The skin was separated from the underlying tissue using blunt dissection scissors and closed with adsorbate suture material and tissue glue (histoacryl). Vehicle infusions using isotonic Ringer solution were administered with the same infusion profile.
Electrophysiological data analysis
Beta power and autocorrelations
The power of the LFP signal in the beta band (12–30 Hz) was extracted with a 10-s sliding window (in 1-s steps) using the Welch method. Beta was normalized to its 95th percentile in the entire recording, and values exceeding 1.5 were saturated to reduce motion artifacts.
To compute beta lagged autocorrelations (Figs. 1a,b and 4d and Extended Data Fig. 1c,g) we calculated Pearson’s correlation. When calculated over time (Figs. 1e,f, 2a, 3a,e and 4a–c and Extended Data Fig. 5a), it was computed in a 15-min window sliding in 5-min steps and subsequently smoothed with a 1-h median filter. Formally
where \(\beta (t)\) is the beta time series, \(w\) is the size of the window, \({\mu }_{{\beta }_{\tau }}\) and \({\mu }_{\beta }\) are the means of the lagged and non-lagged beta in the window and \({\sigma }_{{\beta }_{\tau }}\) and \({\sigma }_{\beta }\) are the standard deviations in the window.
For the quantification of oscillation duration in Fig. 3 and Extended Data Figs. 3 and 4, we calculated the autocorrelation in a sliding window as above and took the quadratic mean (root mean square) across lags (\(\tau \)) between 30 and 240 s. We considered that the oscillation had ceased when this time series went below a threshold equal to two times its standard deviation before the melatonin injection (stippled line in Extended Data Fig. 3a).
SN and SWR detection
SNs were detected as in refs. 1,40. In brief, the LFP was band-pass filtered (0.25–40 Hz) and consecutive peaks in its first and second derivatives detected as SNs. False positives were removed by estimating the distribution of noise and taking only SNs with a low probability (P < 0.01) on the corresponding cumulative distribution function of negative amplitude and duration.
SWRs were detected by calculating the unnormalized correlation between a template and a sliding window on the LFP. The LFP was loaded at 1 kHz and band-pass filtered at 0.25–40 Hz. We then detected positive peaks in the resulting time series of correlation using the standard Python method scipy.signal.find_peaks. Matches were considered valid when they fell above the line p = ah + b, where p is the peak’s prominence, h is the peak’s height and a and b are the slope and intercept (−0.1 and 0.75, respectively). No two matches were allowed to exist closer than 600 ms. The matching procedure was applied in sections of 2 h. The template for all recordings was constructed from the same five manually picked example SWRs from a control animal. These examples were aligned to the trough and averaged into a template spanning from −400 to +800 ms around the trough.
REMP-like and SWP-like state classification
Rates for both SNs and SWRs were calculated by convolving a Gaussian kernel (s.d. = 5 s) with the event times and sampled every 500 ms. When plotting the rate of SNs against the rate of SWRs, we commonly observed two clusters. We represent this two-dimensional distribution through contours of isodensity levels at 0.25, 0.5 and 0.75 a.u. in Figs. 1h and 2d. The two clusters can be separated by a linear boundary (separatrix) following the vector (15, 1) in units [SN Hz, SWR Hz]. Time points above the separatrix (where SN rate was less than 15 times that of SWR rate) were classified as SWP-like and inversely for REMP-like. To avoid overfragmentation resulting from the noisy crossing of this boundary, we ignored state transitions that lasted less than 10 s.
Throughout the manuscript, we use the terms ‘SWP-like’ and ‘REMP-like’ when referring to electrophysiological states defined from claustral activity, particularly in melatonin-evoked conditions where behavioural and electrophysiological sleep may dissociate. In contrast, we use ‘SWP’ and ‘REMP’ when referring to canonical sleep states in intact animals under natural conditions where behavioural and electrophysiological definitions are aligned.
The presence of a regular ultradian rhythm was assessed independently from the identification of REMP-like and SWP-like states. State classification relied solely on the separatrix-based procedure described above and could therefore be applied even in recordings that did not display sustained rhythmic alternation (for example, ZT5 melatonin injections). In such cases, occasional SWP-like and REMP-like episodes were still detected and used for state-based quantifications. Consequently, measures such as SWP-like bout duration, cycle length, duty cycle and bimodality index (Fig. 4g) reflect the properties of identified state transitions and do not by themselves imply the presence of a regular ultradian rhythm. Regularity of alternation was evaluated separately using autocorrelation analyses (Fig. 4d and Extended Data Fig. 4).
The two-dimensional distribution of SWR and SN rates could be reduced to one dimension by collapsing along the separatrix direction. We used the dot product with the normal to the separatrix for this projection (marginals in Figs. 1h and 2d, distributions in Fig. 4e), measuring the distance to the boundary. The x axis of the marginal is a composed unit, where a unit value of 1 (see calibration bars in the figure) indicates an increase of SN rate of +15 Hz and a decrease of SWR rate of −1 Hz. The y axis of the marginal indicates the probability density estimated as a normalized histogram. To quantify the bimodality of this one-dimensional marginal distribution (Fig. 4g), we calculated the difference in Bayesian information criterion between one- and two-component Gaussian mixture models fitted to the central mass of the data (5th to 95th percentile); larger values indicate evidence favouring a bimodal over a unimodal distribution.
To determine the duration of a cycle (Figs. 3c and 4g) we added the duration of each SWP-like period with its subsequent REMP-like period. In recordings lacking sustained rhythmicity, these values therefore represent durations between detected state transitions rather than the period of a stable ultradian oscillation. We calculated the duty cycle as the ratio of each SWP-like period to that of the associated full cycle period.
In Fig. 5g, where we compare the timings of SNs to those of eye-openings, we computed the SN rate by simply counting events in contiguous 1-s bins, thus avoiding convolution or temporal smoothing.
Behaviour and behavioural analysis
In vivo activity recordings
All lizards were habituated to the recording arenas (with access to water and herbs ad libitum) in electromagnetic-shielded experimental rooms before activity or electrophysiological recordings.
Filming
Animal activity in the arena was recorded (at 5–20 fps) using a top-view infrared camera and at least one (up to four) side-view infrared camera (a2A2448-75um PRO Basler cameras with VIS-NIR objectives). Video recordings for detailed behavioural analysis (quantification of eye-openings, head movement) were performed in an arena 48 cm × 48 cm, where the animal could move freely. The arena was surrounded by 5-mm-thick, 57-cm-tall clear plexiglass to contain the animal. White and infrared LED arrays were set to illuminate the animal from above. Four Basler Ace-2 cameras (a2A2448-75umPRO) equipped with 3.5-mm lenses were positioned to record the animal from the side, and one Basler Ace camera (acA2040-90umNIR) equipped with a 6-mm lens was positioned to record the animal from the top. The side cameras were synchronized using the transistor–transistor logic trigger signal provided by the top camera. All videos were recorded at 5 fps using PylonRecorder2 (ref. 72).
Actogram quantification
Video recordings tracking behaviour over several days were recorded at 20 fps. We tracked the position of the animal (defining nose, left and right ears, trunk and tail nodes) with SLEAP, an open-source deep-learning-based system73 (example tracking in Extended Data Fig. 1). Only frames in which SLEAP reported a confidence of 0.4 or higher on the nose node were used for further analysis (about 97% of frames), and missed frames were linearly interpolated. We used a 1-s median filter to remove fast-tracking artifacts and a 30-s mean filter to reduce jitter from pixel-boundary tracking. The final tracking coordinates were resampled at 500 ms through linear interpolation. The tracking across recordings was normalized such that 100 normalized pixels matched the median length of the lizard’s head (nose node to trunk node).
For the double-plotted actograms (Fig. 1a,b and Extended Data Fig. 1), we calculated the sample-to-sample nose (x, y coordinate) displacement as the Euclidean distance. For the behavioural autocorrelograms (Fig. 1a,b), we estimated the envelope of the actogram through its quadratic mean (root mean square) in a 1-h sliding window at 500 ms and then calculated the lagged Pearson’s autocorrelation (‘Beta power and autocorrelations’). The animal’s period interval was estimated as that lag with maximum autocorrelation between 12 and 36 h.
Eye-opening, head movements
We quantified eye-openings and three-dimensional head movements using the following image processing pipeline. We first applied SAM2 (Segment Anything Model 2 (ref. 74)) to generate binary masks for the animal and its head implant in each video frame. These masks were then used to estimate the three-dimensional point cloud occupied by the animal, from which a corresponding mesh was calculated using Poisson surface reconstruction implemented in open3d75. The mesh corresponding to the head region was extracted, textured with video images from the side-view cameras and flattened to a two-dimensional image to facilitate marker tracking.
We used SLEAP73 to detect the nose and four nodes on each eye (midpoint of upper eyelid, midpoint of lower eyelid, anterior corner and posterior corner) on this two-dimensional image. The two-dimensional detection results were subsequently used to back-calculate the corresponding three-dimensional coordinates of these nodes on the original surface mesh. Finally, eye-opening was estimated as the Euclidean distance between the three-dimensional coordinates of the upper and lower eyelid midpoints, and the height of the nose was estimated as the Euclidean distance between the three-dimensional coordinate of the nose and the estimated plane of the arena floor.
Statistics
The data were processed using Python (v.3.11.11) and the standard Python packages numpy (v.1.26.4) and xarray (v.2025.1.1). Statistical tests were performed using the standard Python packages scipy (v.1.15.1), pandas (v.2.2.3) and sklearn (v.1.6.1). Statistical significance is indicated in figures as P < 0.05 (), P < 0.01 () and P < 0.001 ().
Data reporting
G*Power software76 (v.3.1.9.6) was used to guide sample size calculations. The experiments were not randomized, and the investigators were not blinded to allocation during experiments and outcome assessment.
Reporting summary
Further information on research design is available in the Nature Portfolio Reporting Summary linked to this article.