1 Introduction

Oscillations are important characteristic features of the human sleep electroencephalogram (EEG). Slow waves and sleep spindles are the essential elements in the definition of sleep stages [1]. They recently received additional attention because of their hypothesized involvement in processes related to neuronal plasticity, learning, and memory [24].

Furthermore, slow oscillations (< 1 Hz) are considered as a central feature of sleep. These intracortically generated fluctuations consist at the cellular level of rhythmic depolarizing components (up states) separated by prolonged hyperpolarizations (down states). There is evidence that they are involved in the temporal organization of other sleep rhythms such as spindles and delta waves (for a review, see [5]). Also, it is hypothesized that the slow oscillation is involved in processes of learning and memory during sleep. Tononi and Cirelli proposed that slow oscillations were an indication of synaptic downscaling in the cortex occurring during nonrapid eye movement sleep in order to counteract synaptic potentiation resulting from learning processes occurring during wakefulness [6, 7]. Evidence for this hypothesis comes from data of a motor learning task [8], arm immobilization [9], animal studies [10], and computational modeling [11].

We shall address in this paper only one particular aspect in this context, which is, however, related to the interplay of sleep spindles and slow oscillations: i.e., the temporal organization of spindles. Sleep spindles occur in humans with a “periodicity” of approximately 4 s [12, 13]. It was postulated that these thalamically generated sleep spindles are grouped by cortically generated slow oscillations and more generally that the slow oscillations also organize the occurrence of other sleep oscillations [5]. This hypothesis is based on experimental and theoretical evidence: Sleep spindles lost their coherence and their temporal “periodicity” in decorticated cats [14, 15]. Such an effect was also demonstrated in a computational model [16].

However, there are also inconsistencies in relation to this hypothesis: First, the frequency of the slow oscillations was originally considered as being only slightly < 1 Hz. Achermann and Borbély [12], for instance, reported a peak in the power spectrum at 0.7 Hz. This would correspond to a shorter typical interevent interval between sleep spindles than 4 s. Thus, only approximately every third slow oscillation would trigger a spindle. Second, the rhythmic occurrence of spindles is most pronounced in sleep stage 2 (see Fig. 4), but slow oscillations are most prominent in deep sleep. Thus, one should also take alternative explanations into account.

In the present paper, we investigated whether the “periodicity” in the occurrence of sleep spindles and other sleep oscillations might be a pure stochastic effect that occurs without assuming an additional slow process. To test this hypothesis, we compared interevent interval distributions of the events detected in the human sleep EEG with events detected in artificial data generated with stationary stochastic processes, which resemble to some extent the short-term properties of the EEG signal.

The analysis is based on a recently proposed method to detect and analyze oscillatory events in the human sleep EEG [17]. EEG data were modeled on short time scales (≤ 1s) by linear autoregressive (AR) models in a sliding window fashion. Systems described by such linear models can be interpreted as a set of coupled stochastically driven harmonic oscillators with time-dependent frequencies and damping coefficients. In the case of the human sleep EEG, this frequency might represent resonances of the underlying thalamocortical networks. In [18], it was shown that the modulation of the frequency and the damping constant of the resonance of a simple excitatory–inhibitory network can be detected from the mean activity of the network by applying this method.

2 Data and Methods

2.1 Data

We analyzed 8-h sleep EEG data (single channel, derivation C3A2) of eight healthy young male subjects (mean age 24.1 ±0.6 years), each contributing four baseline nights [17, 19]. The sampling rate was 128 Hz and sleep stages were visually scored according to standard criteria [1].

2.2 Oscillatory Events

Oscillatory events were detected by fitting AR models of order 8 to subsegments of 1 s in length in a sliding window fashion resulting in a time dependence of the parameters of the AR model. The signal generated by an AR(p)-model can be interpreted as the superposition of the output of n oscillators and p − 2n relaxators. The p parameters of the AR(p)-model are transformed into n frequencies and damping constants of the oscillators, and p − 2n damping constants of the purely decaying nonoscillating modes. Thus, time-dependent frequencies and damping constants result from the sliding window approach. If the damping is lower than a predefined threshold, oscillatory events are detected. For the details of the method and a discussion of the parameters, see [17]. Figure 1 shows a 20-s segment of EEG (stage 2) and the time-dependent modules r and the corresponding frequencies \(f\:\) of the poles. The damping constant γ is a function of r, γ = − f s logr with f s denoting the sampling frequency. The higher the values of r, the less damped is the oscillation. The case r = 1 corresponds to the limiting case of an undamped oscillation. The threshold for the event detection was set to r 1 = 0.95 (Fig. 1). To determine the event duration, a second threshold r 2 = 0.9 was applied: In order to account for statistical fluctuations, the event was not necessarily terminated whenever r became smaller than r 1. It was considered as a single event if the corresponding r became larger than r 1 again without falling below r 2. The value r 1 was chosen such that clearly visible sleep spindles were reliably detected by the algorithm, while r 2 had to be low enough so that a single spindle was detected as a single event, but high enough so that subsequent spindles were recognized as distinct events. The time between the first and the final crossing of the threshold r 1 plus 1 s (the length of the segment used to fit the AR model) was considered as the duration of the oscillatory event. The time when r was maximal was defined as the time of occurrence of the event and the corresponding frequency was considered as the frequency of the event. The interevent intervals were estimated as the difference of the time of occurrence of successive oscillatory events.

Fig. 1
figure 1

Detection of oscillatory events in a 20-s EEG segment of stage 2 non-REM sleep. Four sleep spindles and one fast delta oscillation were detected. The upper panel shows the EEG signal, the middle panel shows r, and the lower panel the corresponding frequencies f, with the colors indicating corresponding oscillatory modes. The detection threshold r 1 = 0.95 is indicated in the middle panel (see Section 2.2)

For the analysis of the interevent intervals and the event durations, we assigned the events into different frequency bands. We are aware that this is not an optimal approach because of interindividual variation in mean event frequencies and their dependence on sleep stage and cycle. However, at the moment we have no method available to analyze the events on the basis of individually determined time-dependent frequency bands. Therefore, we used the frequency bands employed previously [17], i.e., delta (δ: 0 ≤ f < 4.5 Hz), alpha (α: 8 ≤ f < 11.5 Hz), and sigma (σ: 11.5 ≤ f < 16 Hz; sleep spindles) bands. Figure 2 illustrates the detected events of a single night and the corresponding histogram of the event frequencies. It is evident that the events are clustered in these three frequency bands.

Fig. 2
figure 2

Detected oscillatory events in a single night (black dots represent single events), hypnogram (MT, movement time; W, waking, REM, rapid eye movement sleep; 1 to 4, nonrapid eye movement sleep stages 1 to 4), and corresponding histogram of the event frequencies. Colors indicate the different frequency bands

2.3 Simulated Data

Artificial EEG data were generated using an AR(4) model with random inputs and parameters corresponding to a frequency in the spindle frequency band (f = 14 Hz) and in the delta band (f = 3 Hz), assuming a sampling frequency of 128 Hz. We restricted the analysis to data from an AR(4) model because the two higher frequencies that can be seen in Fig. 1 usually did not result in oscillatory events of sleep EEG data [17]. We analyzed data sets with different values of r for the spindle frequency because the spindle oscillations are our main focus. For each set of parameter values, a time series of 6 ·106 data points (corresponding to approximately 13 h of EEG data) was generated. They were analyzed in the same way as the empirical EEG data. See Fig. 3 for an example.

Fig. 3
figure 3

Twenty-second simulated AR(4) data with time-dependent modules and frequencies derived by fitting an AR(4) model similar to Fig. 1. The upper panel shows the signal, the middle panel shows r, and the lower panel the corresponding frequencies f, with the colors indicating corresponding oscillatory modes. The AR(4) model contained two oscillatory modes, one in the spindle frequency band, f = 14 Hz, r = 0.94, and one in the delta frequency band, f = 3Hz, r = 0.91

3 Results

Figure 4 shows the interevent interval distributions of sleep spindles (11.5–16 Hz). The histograms of the empirical data were estimated based on the four recordings of all subjects (pooled data). In sleep stage 2, the maximum is at t ≈ 4 s and is much more pronounced than in deep sleep [slow wave sleep (SWS)]. The distribution of the interevent intervals detected by our algorithm was similar to the distribution reported in [13] for spindles identified by visual detection. Figure 4 also contains the distributions of events detected from simulated data of stationary AR(4) models for two different values of the module r for the spindle frequency. Events were detected with the same algorithm and parameters as for the EEG data. Also, for the simulated data, the interevent interval distributions showed a peak around 4 s (2.5 s for r = 0.94 and between 2.5 and 4 for r = 0.89). The results of the simulated data indicate that stationary stochastic processes also exhibit a periodicity in the occurrence of events with a maximum similar to empirical data without the assumption of an additional slow process grouping the events. Thus, in order to understand the character of the maxima in the empirical distributions, it is necessary to investigate these distributions in more detail.

Fig. 4
figure 4

Normalized histograms (pooled data) of interevent intervals (Δt) in the spindle frequency range (11.5–16 Hz) in nonrapid eye movement sleep stage 2 (ST2; top left) and slow wave sleep (SWS, stages 3 and 4; top right) and of events in the spindle frequency range detected from data generated by stationary AR(4) models with r = 0.94 (bottom left) and r = 0.89 (bottom right) for the spindle frequency

In Fig. 5, the normalized interevent distributions are plotted on a semilogarithmic scale. An exponential decay for large interevent intervals was present in both the synthetic and the empirical data. For events occurring randomly with a certain constant rate (Poisson process), one would expect that the interevent intervals are exponentially distributed, with the exponent being equal to the event rate (number of events per unit of time). In our situation, this cannot be exactly the case because of the finite duration of the oscillatory events. However, for large interevent intervals compared to the event duration, this might be a reasonable assumption. The empirical distributions differ substantially from an exponential distribution not only for times below the maximum of the distribution but also for larger time intervals. Thus, the region around the maximum cannot be explained in the same way as the distributions for the AR processes. This is the first indication of an additional process contributing to the peak in the empirical interevent distributions.

Fig. 5
figure 5

Normalized histograms of interevent intervals as in Fig. 4 but plotted on a semilogarithmic scale including additional values of r. The straight lines show fits to the exponential tails of these distributions

The systematic dependence of the exponential decay on r of the AR model and, therefore, on the damping of the spindle frequency pole, is illustrated in Fig. 6a. For r ≤ 0.93, the exponent becomes smaller with smaller r. A similar relationship holds for the event rate (Fig. 6b). The stronger the damping, the lower the event rate. The inverse relationship is observed only for large r, i.e., lower damping leads to a decrease in the event rate, which is overcompensated by an increased event duration. The relationship between the exponent of the exponential decay and the event rate is shown for r ≤ 0.93 in Fig. 6c. The straight dashed line indicates the linear interrelationship as expected for a Poisson process. Systematic deviations for larger event rates might be explained by more events of longer duration as illustrated in Fig 7.

Fig. 6
figure 6

a Exponents from the fit of the exponential tails of the interevent interval distributions (Fig. 5) of the simulated AR(4) data as a function of r of the spindle frequency pole. b Event rate as a function of r. c Exponent of the exponential decay (mean ± SD) as a function of the event rate shown only for 0.85 ≤ r ≤ 0.93. Values for the empirical distributions (red) from sleep spindles shown separately for nonrapid eye movement sleep stages 2, 3, and 4. The straight line indicates the linear relationship as expected for a Poisson process

Fig. 7
figure 7

Normalized histograms (pooled data) of the event duration (t D ) in the spindle frequency range (11.5–16 Hz) in nonrapid eye movement sleep stage 2 (ST2; top left) and slow wave sleep (SWS, stages 3 and 4; top right) and events in the spindle frequency range from a stationary AR(4) process with different values of r for the spindle frequency

The exponent of the empirical data of sleep spindles (Fig. 6c) suggests an increased damping (corresponding to a smaller r) with increasing sleep depth from stage 2 through stage 3 to stage 4, which meets our expectations. The spindles exhibited, however, a larger exponent than expected from the resulting event rate. Or, to put it the other way around, the event rate is smaller than one would expect from the exponent of the exponential decay. From the 4-s “periodicity,” one would have expected the contrary, i.e., a larger event rate, because an interevent interval of 4 s corresponds to an event rate of 15 events per minute. A possible explanation for this discrepancy might be the estimation of the event density of spindles: the number of detected spindles during a particular sleep stage was divided by the total time spent in this stage. This event rate is not equal to the inverse of the mean of the interevent interval distribution because only interevent intervals with no sleep stage transition between the events were included.

The normalized distribution of the event duration (Fig. 7) plotted on a logarithmic scale seems to be less specific for sleep spindles. First, the maximum around t = 4 s occurs in the simulated data for a wide range of values of r. Second, there is no large difference between the distributions of the occurrence of spindles in sleep stage 2 and SWS. There is a slightly larger probability to have longer spindles in sleep stage 2 compared to SWS (Fig. 7), which would correspond to a higher value of r if we assume that spindles were generated by a stationary AR process. This would then be consistent with the observed event rates. Note, however, that the probability of long spindles increased strongly in data generated by AR models of large r. This increase might be the reason for the slower exponential decrease in the interevent interval distribution for r = 0.95 compared to r = 0.93.

4 Discussion

We have demonstrated that important properties of the temporal organization of the occurrence of sleep spindles are already present for oscillatory events detected in data generated with stationary stochastic processes. Such properties are the position of the maximum of the interevent interval distribution, i.e., the “periodicity” in the occurrence of events between 2 and 5 s and the maximum around 2 s in the distribution of event durations. A more detailed analysis, however, revealed that the exponential decay in the interevent distributions, which can be interpreted as reflecting the random occurrence of oscillatory events, starts in the case of the sleep spindles only at much longer interevent intervals compared to data from stationary AR processes. For interevent intervals around the maximum of 4 s, the empirical distributions of sleep spindles clearly differ from the distributions of the simulated events and show, in particular, no exponential decay. One could assume in a first approximation a Gaussian distribution around 4 s, which would indicate that an additional process is responsible for the observed “periodicity” in the occurrence of spindles. Including such a process in modeling the time series, i.e., modeling explicitly also the dynamics of the parameters of the AR model, would result in a nonlinear model.

The extent to which such a process is related to cortical slow oscillations has to be the subject of further research. In particular, the present analysis could be extended by (1) also varying the delta frequency and/or its damping in the simulated data and (2) taking into account that single sleep stages are not dynamically homogeneous, i.e., not assuming that the spindles in a particular sleep stage were generated by a single stationary process but rather by a suitable ensemble of such processes. Moreover, it is known that there are strong interindividual differences in the event rates of sleep spindles (e.g., [17]). Thus, one should also investigate to which extent interindividual differences in the interevent interval distributions are present. Our analysis demonstrated, nonetheless, how phenomenological modeling of the short-term dynamics of the EEG using linear models can be used to detect and to analyze oscillatory events and to test hypotheses about the origin of some of their properties.