Detecting alpha spindle events in EEG time series using adaptive autoregressive models
- Vernon Lawhern^{1, 2}Email author,
- Scott Kerick^{2} and
- Kay A Robbins^{1}
https://doi.org/10.1186/1471-2202-14-101
© Lawhern et al.; licensee BioMed Central Ltd. 2013
Received: 30 May 2013
Accepted: 13 September 2013
Published: 18 September 2013
Abstract
Background
Rhythmic oscillatory activity is widely observed during a variety of subject behaviors and is believed to play a central role in information processing and control. A classic example of rhythmic activity is alpha spindles, which consist of short (0.5-2 s) bursts of high frequency alpha activity. Recent research has shown that alpha spindles in the parietal/occipital area are statistically related to fatigue and drowsiness. These spindles constitute sharp changes in the underlying statistical properties of the signal. Our hypothesis is that change point detection models can be used to identify the onset and duration of spindles in EEG. In this work we develop an algorithm that accurately identifies sudden bursts of narrowband oscillatory activity in EEG using techniques derived from change point analysis. Our motivating example is detection of alpha spindles in the parietal/occipital areas of the brain. Our goal is to develop an algorithm that can be applied to any type of rhythmic oscillatory activity of interest for accurate online detection.
Methods
In this work we propose modeling the alpha band EEG time series using discounted autoregressive (DAR) modeling. The DAR model uses a discounting rate to weigh points measured further in the past less heavily than points more recently observed. This model is used together with predictive loss scoring to identify periods of EEG data that are statistically significant.
Results
Our algorithm accurately captures changes in the statistical properties of the alpha frequency band. These statistical changes are highly correlated with alpha spindle occurrences and form a reliable measure for detecting alpha spindles in EEG. We achieve approximately 95% accuracy in detecting alpha spindles, with timing precision to within approximately 150 ms, for two datasets from an experiment of prolonged simulated driving, as well as in simulated EEG. Sensitivity and specificity values are above 0.9, and in many cases are above 0.95, for our analysis.
Conclusion
Modeling the alpha band EEG using discounted AR models provides an efficient method for detecting oscillatory alpha activity in EEG. The method is based on statistical principles and can generally be applied to detect rhythmic activity in any frequency band or brain region.
Keywords
Alpha spindle Adaptive autoregressive model Classification Electroencephalography Time series Fatigue Change point detectionBackground
Alpha waves ([8, 13] Hz) were among the earliest described functional oscillatory components in the human EEG [1], and research has supported the general notion that alpha band power is inversely related to brain activation [2–4] and reflects deactivated or inhibited cortical processes [5]. Several different alpha rhythms have been identified (e.g., mu, sigma, tau, occipital) across various brain regions. In particular, rhythmic alpha activity has been observed to increase in posterior brain regions (parietal-occipital) during attentional lapses [6, 7] and during states of drowsiness relative to states of alertness [8–11].
A widely-studied characteristic of the alpha frequency band is the alpha spindle, a large narrowband burst of alpha activity that usually occurs over short (0.5-2 s) duration [8, 11, 12]. Alpha spindle spectral microstructures have peak amplitudes generally in the higher alpha frequencies ([10, 13] Hz) and have characteristics that resemble the “waxing and waning” of the alpha rhythm [12, 13]. Alpha spindles also have been shown to occur primarily in the parietal/occipital regions of the brain and have been correlated with fatigue, drowsiness and reduced driving performance in experiments of prolonged driving [11, 12]. Several methods have been developed to characterize alpha power changes associated with various tasks. These methods include fast Fourier transforms (FFT) [7, 10, 11], wavelets [14], phase [15], matching pursuit [16, 17], ERD/ERS [5], autoregressive modeling [6, 18, 19], adaptive filtering [20], neural network analysis [21], fuzzy systems [22, 23], and nonlinear EEG analyses [7, 24]. Other characterizations of alpha activity are the alpha band power of the signal [10] and power ratios such as the (alpha + theta)/beta ratio.
Recently, Simon et al. [11] developed an algorithm specifically for detecting alpha spindles in EEG by calculating the full width at half maximum (FWHM) of the amplitude spectral density of the alpha frequency range. Features of alpha spindles, such as alpha spindle rate and alpha spindle duration, were extracted from the EEG and correlated with fatigue and drowsiness in both real [11] and simulated [12] driving tasks. However, Simon et al. only validated algorithm accuracy in capturing high frequency narrowband alpha on simulated data and not real EEG. Techniques based on matching pursuit (MP) have also been used by Schönwald et al. to identify alpha spindles in sleep by using a dictionary of Gabor, Fourier and Dirac delta functions [25]. They report sensitivity and specificity values of approximately 0.812 in detecting alpha sleep spindles across all stages of sleep. By changing some of the parameters in their model, they were able to increase the sensitivity and specificity to about 0.9; however, this change increased computational time exponentially.
The goal of this work is to develop an efficient algorithm to reliably detect sudden increases of narrowband oscillatory EEG activity with good temporal resolution. Our motivating example for the development of this algorithm is detecting alpha spindles in EEG. We hypothesize that alpha spindles in EEG represent a changes in the underlying neural dynamics that can be characterized and identified by their statistical properties. To detect these changes, we propose a method that is based on change-point detection, a class of time series models designed to discover changes in the underlying statistical properties of time series data [26–30]. These models aim to detect statistical irregularities in data (called change points) with high temporal resolution. Change point detection models have been used previously in many applications such as detecting denial of service (DoS) attacks by monitoring packet activity in computer networks [27, 31] and monitoring stock prices [29].
Since EEG signals are highly dynamic, we develop a change-point detection algorithm based on discounted autoregressive (DAR) models to represent the EEG time series adaptively in time. DAR models weigh points observed further in the past less heavily than points more recently observed, so they can adapt to the non-stationary nature of EEG. Features that are extracted from a DAR model are time dependent and can be used for analysis of transient EEG. The DAR model can also be updated sequentially in time using an algorithm called the sequential discounted autoregressive (SDAR) algorithm[27, 28]. This allows for the analysis and monitoring of EEG signals in near real-time, making it a computationally efficient method for EEG analysis.
We apply our SDAR algorithm together with predictive loss scoring to identify time periods in the alpha frequency range of EEG where the time-dependent DAR model cannot adequately describe future data points (periods of high loss scores) and correlate these time periods with alpha spindles in EEG. The model parameters, such as the time-varying AR model coefficients and the model variance, can be used for further analysis of these time periods. We demonstrate the efficacy of this approach both for simulated data as well as for expert-labeled EEG data from simulated driving tasks.
Methods
Sequential discounted AR algorithm (SDAR)
Autoregressive models (AR) represent each data point as a linear combination of a certain number (the model order) of previous data points. Discounted AR models assume that data points observed further in the past contribute less information than points more recently observed. An algorithm for the sequential computation of the DAR model parameters was proposed in [28]. We adapt this algorithm for online detection of rhythmic oscillatory activity in EEG, with applications to detecting alpha spindles.
where $\widehat{\mathrm{A}}$ is the estimate of the AR model parameters A = (A_{1},…,A_{ p })^{T} and ${\overline{x}}_{t}={\left({x}_{t-1},\dots ,{x}_{t-p}\right)}^{T}$. The variance σ^{2} can be estimated in a similar fashion [33].
where r ε(0,1) is the discounting rate, and ${\widehat{\mathrm{A}}}_{t}$ is the discounted maximum likelihood estimate of the DAR model parameters. This model implies that time points observed earlier in the sequence have less influence on the overall likelihood than points observed more recently by a factor of (1-r)^{ t-i }. This model has been used previously in the analysis of time series signals in information network security [27, 28].
Using the DAR model, Urabe et al. [28] have derived an algorithm for the sequential optimization of the DAR model parameters, called the sequential discounted autoregressive (SDAR) algorithm. The SDAR algorithm sequentially estimates the DAR model parameters $\left({\widehat{\mathrm{A}}}_{t},{\widehat{\sigma}}_{t}^{2}\right)$ given a new data point in the time series at time t. The DAR model parameters have a subscript t to emphasize that they are now time-dependent. We use this algorithm to obtain the coefficients of the DAR model, which are used to calculate the mean and variance of the Gaussian distribution that describes the data at each time point. We then calculate a predictive loss function that measures how well the data is modeled by past data points.
- 1.Initialization of parameters at t = p:$\begin{array}{l}\begin{array}{cc}\hfill {V}_{t}={I}_{p}\hfill & \hfill \phantom{\rule{1.08em}{0ex}}\left(p\times p\right)\hfill \end{array}\\ \begin{array}{cc}\hfill {c}_{t}=r{\overline{x}}_{t}^{T}{\overline{x}}_{t}\hfill & \hfill \phantom{\rule{0.24em}{0ex}}\left(1\times 1\right)\hfill \end{array}\\ \begin{array}{cc}\hfill {M}_{t}={\widehat{A}}_{\mathit{burg}}\hfill & \hfill \left(p\times 1\right)\hfill \end{array}\\ \begin{array}{cc}\hfill {\sigma}_{t}^{2}={\widehat{\sigma}}_{\mathit{burg}}^{2}\hfill & \hfill \phantom{\rule{0.24em}{0ex}}\left(1\times 1\right)\hfill \end{array}\\ \begin{array}{cc}\hfill {A}_{t}={V}_{t}{M}_{t}\hfill & \hfill \phantom{\rule{0.24em}{0ex}}\left(p\times 1\right)\hfill \end{array}\end{array}$
- 2.Update the model parameters at time t = p + 1 by calculating:$\begin{array}{l}{c}_{t}=r\phantom{\rule{0.25em}{0ex}}{\overline{x}}_{t}^{T}{V}_{t-1}\phantom{\rule{0.25em}{0ex}}{\overline{x}}_{t}\\ {M}_{t}=\left(1-r\right){M}_{t-1}+r\phantom{\rule{0.25em}{0ex}}{\overline{x}}_{t}{x}_{t}\\ {V}_{t}=\left(\frac{1}{1-r}\right){V}_{t-1}-\left(\frac{r}{1-r}\right)\frac{\left({V}_{t-1}\left({\overline{x}}_{t}\phantom{\rule{0.25em}{0ex}}{\overline{x}}_{t}^{T}\right){V}_{t-1}\right)}{1-r+{c}_{t}}\phantom{\rule{0.25em}{0ex}}\\ {A}_{t}={V}_{t}{M}_{t}\end{array}$
- 3.Update the mean μ _{ t } and variance ${\sigma}_{t}^{2}$ of the model:$\begin{array}{l}{\mu}_{t}={A}_{t}^{T}\phantom{\rule{0.25em}{0ex}}{\overline{x}}_{t}\\ {\sigma}_{t}^{2}=\left(1-r\right)\phantom{\rule{0.25em}{0ex}}{\sigma}_{t-1}^{2}+r{\left({x}_{t}-{\mu}_{t}\right)}^{2}\end{array}$
- 4.Calculate the quadratic loss score ψ _{ t } by comparing the current data point to the mean of the Gaussian distribution updated in Step 3:${\psi}_{t}={\left({x}_{t}-{\mu}_{t}\right)}^{2}$
- 5.
Repeat Steps 2–4 until the end of the time series at t = n.
In Step 1 we initialize the parameters at time t = p, where p is the model order. Here, I_{ p } denotes a p × p identity matrix. We initialize the parameters M_{ t } and ${\sigma}_{t}^{2}$ by the Burg estimates of the AR parameters and the noise variance, ${\widehat{A}}_{\mathit{burg}}$ and ${\widehat{\sigma}}_{\mathit{burg}}^{2}$, respectively, from an available training dataset, as these values produce stable algorithm performance. Usually we use an initial portion of the time series as training and estimate these values using a normal AR model.
In Step 2 we update the DAR parameters A_{ t } given the new data point x_{ t }. Step 3 updates the mean and variance of the Gaussian distribution using the newly estimated DAR model parameters. Step 4 calculates a quadratic loss score by comparing the data point to the mean of the Gaussian distribution at the current time. Steps 2–4 are repeated until the end of the recording at t = n. We then apply a temporal smoothing function to the quadratic loss score time series to reduce the impact of isolated outliers [27]. We smooth the loss score time series using the mean of five (5) data points.
We calculate the True Positive (TP), False Positive (FP), and False Negative (FN) rates by comparing the alpha spindle time regions identified by an expert with those marked by the SDAR algorithm as having a smoothed loss score that exceeds the specified threshold. We use the weighted F-measure to take into account the highly unbalanced nature of the data, as alpha spindles occurred less than 1% of the total time. β = 1 reduces to the standard F-measure, which weights precision and recall equally. β = 0.5 emphasizes precision more than recall, and β = 2 emphasizes recall more than precision. We use β = 2 for this analysis to identify the loss score threshold value that produces a minimal number of false negatives. We split our data into two continuous equal halves; one half was used for finding the optimal threshold parameters, while the second half was used for validation. Note that the number of alpha spindles in each half may not be the same.
We report the hit rate (HR) of the algorithm, which is the number of times the algorithm identified a region that was also identified by the expert, regardless of the timing precision in the detected regions. We also report the Spindle Temporal Error (STE) as the ratio of the total time in the False Negative state to the total number of alpha spindles. This gives a summary of the temporal localization of the detected spindles.
If more than one EEG channel is modeled, the SDAR algorithm uses a voting strategy that only selects a time region if a certain percentage of the overall number of channels identified the same time region. This strategy reduces the impact of isolated outliers that may exist only in one EEG channel. We use a voting threshold of 33% (1/3) for analyzing all the parietal/occipital EEG channels. More or less stringent strategies can be used by changing the voting percentage required for identifying significant time regions. Detected alpha spindle regions separated by less than 250 ms were merged together to form a single alpha spindle. Since the literature suggests that alpha spindle duration is generally between 500 ms and 2 s, isolated alpha spindle regions shorter than 250 ms were removed from the data [11]. These post-processing techniques mimic post-processing procedures used by other authors [11, 12].
SDAR model simulation study
In both simulations, the DAR model order was set to 2, and the discounting rate was set to r = 0.01.
Alpha spindle simulation study using DipoleSimulator
To analyze the performance of the algorithm, we changed the signal-to-noise ratio (SNR) by changing the amplitude factor of the alpha spindle dipoles. For example, an amplitude factor of 6 means the SNR is 2 (6/3). We simulated the alpha spindles at SNR ratios of 1, 1.3, 1.6, 2 and 3 (corresponding to amplitude factors of 3, 4, 5, 6 and 9, respectively). ROC and F-measure analyses were performed for each SNR value.
The simulated EEG data was sampled at 300 Hz. The data was subsequently down-sampled to 128 Hz and band-pass filtered at [6, 15] Hz using an order 8 Butterworth filter prior to analysis. An EEG electrode mosaic with 33 channels was used for simulating the data, with a channel orientation following the international 10–10 system of electrode placement. We applied the SDAR algorithm with model order 1 and discounting rate r = 0.01 to the simulation output of all parietal/occipital channels, setting the voting percentage to be 33% and the fuzzy window parameter to be 0 s for comparison purposes.
EEG data collection and processing
The EEG was recorded using a 64-channel Biosemi ActiveTwo system, and offline referenced to the average of the two mastoids. Four external channels were used to record eye movements by EOG, although EOG data was not analyzed in this study. The experiment was originally sampled at 2048 Hz and then subsequently down-sampled to 128 Hz. Figure 3B shows a sample of the resulting signal during a period of visually identifiable alpha activity.
EEG signal preprocessing for expert identification of alpha spindles
An expert with more than 10 years of EEG processing experience visually identified and marked alpha spindle events in the EEG data. Recent literature has suggested that alpha spindling occurring in the parietal and occipital regions of the brain is related to fatigue in experiments of prolonged driving [11, 38]. Therefore, the expert used EEG data from the parietal and occipital channels for identifying alpha spindle events. The expert used three different data operations to assist in the visual identification of alpha spindles: the EEG data band-passed from [1, 50] Hz, the data band-passed from [1, 15] Hz, and the Independent Component Analysis (ICA) [39–41] decomposition of [1, 50] Hz band-passed EEG data. The expert used ICA to isolate and remove eye blink and movement components if the eye activity prevented an accurate time identification of the alpha spindle events. All filters were order 8 IIR Butterworth filters from ERPLAB [42]. We used the expert’s labeled events as the ground truth to evaluate the performance of the SDAR algorithm. The expert manually marked alpha spindles in the EEG using MATLAB (The Mathworks Inc., Natick, Massachusetts) tools and functions obtained from the DETECT Toolbox [35].
EEG signal preprocessing for the SDAR algorithm
The data was processed in EEGLAB [40] using a band-pass filter of [6, 15] Hz with an order 8 IIR filter from ERPLAB [42] before applying the SDAR algorithm. No ICA preprocessing was performed prior to this analysis. The datasets were analyzed in two passes. In the first pass, we analyzed the full data and report the detection performance and accuracy using all available information. In the second pass we partitioned the full data into two continuous equal halves for training and testing purposes. The detection performance and accuracy were reported for both the training and testing data. Results from the testing data were obtained using the optimal threshold value estimated from the training data. The receiver operating characteristic (ROC) curves and analysis of classification performance using the F-measure were performed only on the full and training data.
Results
SDAR model simulation results
Simulated alpha spindle detection performance
Alpha spindle detection in real EEG data
We then analyzed the two datasets obtained from the simulated driving experiment (see Methods). These datasets are referred to as Driving Data 1 and Driving Data 2, respectively. We use an order 1 SDAR model with discounting rate r = 0.01 and 33% (1/3) voting percentage for the duration of the paper. The results of using an order 2 SDAR model were similar, and are included in the Additional file 1 included with this manuscript. Our first analysis compares the expert labeled data to the SDAR algorithm’s labeled data using a fuzzy window parameter of 0 s. Detected spindles of less than 250 ms were removed prior to analysis, while spindles separated by less than 250 ms were merged to form one spindle. An online implementation of this algorithm would have a delay of at least 250 ms (to verify that the activity is a spindle), plus any additional computational, data acquisition, and processing overhead. The processing of each channel can be done in parallel, reducing the computational burden.
Classification performance of the algorithm versus the ground truth events for Driving Data 1 for three data conditions: the full data without partitioning, the training data and the testing data, respectively
Full data | Training data | Testing data | |
---|---|---|---|
Sensitivity/Recall | .915 | .895 | .863 |
Specificity | .966 | .966 | .984 |
Precision | .536 | .612 | .581 |
Hit Rate | 97.87% (138/141) | 100% (96/96) | 93.33% (42/45) |
Spindle Temporal Error | ~96 ms | ~120 ms | ~150 ms |
Agreement | 146.430 s | 98.617 s | 43.055 s |
Null Agreement | 3591.156 s | 1762.414 s | 1861.141 s |
False Negative | 13.586 s | 11.531 s | 6.813 s |
False Positive | 126.828 s | 62.445 s | 31.000 s |
Note that a fuzzy window parameter of 0 s indicates that very minor differences in labeled regions will count negatively against the performance of the algorithm. It is unrealistic in practice to assume an exact temporal agreement between an expert and the algorithm, or even among two different experts. Incorporating an allowable timing error in the comparison can produce a more appropriate comparison.
Classification performance of the algorithm versus the ground truth events for Driving Data 1 and Driving Data 2 for three data conditions: the full data without partitioning, the training data and the testing data, respectively
Full data | Training data | Testing data | ||||
---|---|---|---|---|---|---|
Data 1 | Data 2 | Data 1 | Data 2 | Data 1 | Data 2 | |
Sensitivity/Recall | .957 | .876 | .959 | .914 | .952 | .904 |
Specificity | .981 | .964 | .974 | .958 | .989 | .934 |
Precision | .704 | .620 | .706 | .660 | .701 | .400 |
Hit Rate | 97.16% (137/141) | 94.36% (184/195) | 100% (96/96) | 95.38% (124/130) | 91.11% (41/45) | 93.85% (61/65) |
Spindle Temporal Error | ~52 ms | ~114 ms | ~50 ms | ~77 ms | ~40 ms | ~96 ms |
Agreement | 165.422 s | 157.008 s | 114.539 s | 106.688 s | 50.833 s | 59.047 s |
Null Agreement | 3635.516 s | 2584.453 s | 1167.875 s | 1257.414 s | 1866.859 s | 1275.273 s |
False Negative | 7.438 s | 22.195 s | 4.875 s | 9.984 s | 2.563 s | 6.273 s |
False Positive | 69.625 s | 96.344 s | 47.720 s | 54.922 s | 21.703 s | 89.414 s |
Comparison with other alpha spindle detection measures
We compare the ASD and SDAR approaches for Driving Data 1. In order to compare SDAR with ASD, we applied the ASD algorithm as follows. For the ASD algorithm we processed the data according to the procedure used in [11] (128 Hz sampling rate and [0.5, 48] Hz band-pass filter, ICA to minimize muscle and eye artifacts). For comparison purposes with the SDAR algorithm, we also applied the ASD algorithm without ICA artifact removal. For the SDAR algorithm we processed the data only using a [6, 15] Hz band-pass filter. We chose only one channel, PO7, in our analysis as this produced the highest detection accuracy for single-channel detection with the ASD algorithm. We used a fuzzy window of 0.1 s.
Comparison between the SDAR algorithm fitting and the ASD algorithm for channel PO7 of Driving Data 1
SDAR | ASD algorithm without ICA | ASD algorithm with ICA | |
---|---|---|---|
Sensitivity/Recall | .942 | .607 | .529 |
Specificity | .984 | .728 | .909 |
Precision | .728 | .094 | .209 |
Hit Rate | 97.16% (137/141) | 78.72% (111/141) | 66.67% (94/141) |
Spindle Temporal Error | ~150 ms | ~478 ms | ~560 ms |
Agreement | 157.008 s | 104.063 s | 88.961 s |
Null Agreement | 3584.453 s | 2700.063 s | 3373.461 s |
False Negative | 22.195 s | 67.320 s | 79.359 s |
False Positive | 96.344 s | 1006.555 s | 336.359 s |
Discussion
In this paper we propose an efficient method for detecting large narrowband increases in oscillatory EEG activity using change point detection methods based on discounted autoregressive models. This technique was applied to the alpha frequency range where the goal of the method was to detect alpha spindling activity and to estimate features of the alpha spindling such as the spindle rate and temporal localization. Our results show that this approach successfully identifies alpha spindles in EEG time series with good time resolution, allowing for the possibility of using characteristics such as alpha spindle frequency and duration as features for other types of modeling approaches, including state classification, fatigue monitoring, and performance prediction.
Early work using change point detection models for EEG data analysis was done by Brodsky et al. [44]. These authors use nonparametric modeling techniques for the analysis of alpha activity with eyes closed versus eyes open. In contrast to their work, our work uses parametric modeling of the EEG using the DAR model to detect oscillatory activity. As the EEG is naturally time-dependent, methods based on autoregressive models are appropriate representations of the dynamics of EEG. Our use of the DAR model is especially attractive in that the model can adapt to non-stationary time series, a feature that is often present in EEG. Our approach is also computationally efficient, only requiring a few matrix operations at each iteration of the algorithm, making it an attractive analysis technique for large EEG datasets.
There are some differences in processing between our SDAR method and the ASD method proposed by Simon et al. [11] that deserve mention. First, our method band-passes the data to [6, 15] Hz, while the ASD method uses a [0.5, 48] Hz band-pass. The band-pass from [6, 15] Hz effectively removes muscle in the higher frequency bands, while limiting the impact of eye-related artifacts in the lower frequency bands. This reduces the need for extensive artifact removal post-processing with ICA [41] and auto-regressive techniques [45] as used in [11]. Also, the effects of eye-related movements in EEG are minimal, since we are only analyzing parietal and occipital channels. Finally, our approach is not based on frequency characteristics of the signal other than the initial [6, 15] Hz band-pass. Because of this, we are not limited by the time-resolution of FFT-based methods in short time windows.
The SDAR approach sequentially calculates a quadratic loss score at each time point and uses this score function to identify irregular periods in the data. We obtain an effective time resolution equal to the window size of our temporal smoothing function. One possible disadvantage of our approach is that it requires a priori knowledge of the frequency range of interest before analysis. This may not be much of a concern for the analysis of EEG, since researchers often use well-understood, predetermined bands for analysis.
One important parameter of the SDAR model is the discounting rate, r. This parameter controls the level of contribution past data points have in the current model. If the discounting rate is large (> .05) the model adapts very quickly to the new dynamics of the data, making detecting unusual behavior difficult. It also is less robust to minor variations in the signals which are not statistically significant. Therefore we suggest using slower learning rates to prevent the model from learning too much of the alpha spindle behavior while still adapting to slowly changing behavior. We found that discounting rates between 0.01 and 0.001 perform well in isolating alpha spindles of data sampled at 128 Hz. These learning rates would need to be adjusted for different sampling frequencies: the rates should be decreased when the sampling rate increases and the rates should be increased when the sampling rate decreases.
Previous research in autoregressive modeling of EEG data has shown that large model orders are needed to estimate the underlying dynamics of the EEG signal. For example, [46] used AR models of order 10 to analyze the spectral contents in short EEG signals, while [47] used AR models of order 6 for distinguishing among several different mental tasks. In contrast, our work has shown that using low model orders are sufficient to identify statistically irregular EEG data segments. A possible explanation for this is the fact that we narrowly band-pass the EEG signal to the alpha frequency range prior to analysis. This band-pass reduces the frequency content of the signal. Because of this, only a few model orders may be needed to capture the oscillatory dynamics of this narrow band signal and discounting captures model variation. For EEG data filtered at a wider band, more orders are likely needed. Another possible explanation is that we are primarily focused on when EEG data is statistically irregular and not necessarily why it is statistically irregular. A low order representation of the EEG may be sufficient purely for identifying when sections of data are statistically irregular.
Several techniques have been proposed for detecting oscillatory activity in higher frequency bands. For example, a technique based on FFT analysis in the [80, 500] Hz frequency range was proposed in [48]. Another study of higher frequency data [49] proposed a technique for oscillatory event detection based on amplitude and duration thresholding of a short-time line length function. This technique is similar to our approach in that the short-time line length function bears a large degree of similarity to the order 1 autoregressive structure used in this work. Another technique based on an adaptive Hilbert Transform has been proposed for oscillatory EEG analysis in neonates [50]. An adaptive Hilbert Transform could be used to capture a time-dependent amplitude envelope which could be thresholded to find alpha spindles. In contrast to these previous works, our work is based on an adaptive statistical representation of the alpha-band EEG.
Future applications
The SDAR algorithm is based on an adaptive statistical representation of the EEG time series and is not limited to alpha spindle detection in EEG. Results of our simulation study show that alpha spindles can be detected reasonably well if the spindle signal strength is at least 50% stronger than then the background noise signal (Figure 6). This suggests that this algorithm can be potentially used to detect oscillatory activity in other EEG frequency bands if the expected SNR of the activity is at least 1.5. For example, Craig et al. [51] analyzed EEG oscillatory activity in a simulated driving paradigm and showed that as the subject tired, oscillatory activity in both theta and alpha bands increased over the entire cortex, while activity in the delta band showed no significant changes. Fast wave activity also showed a significant increase primarily in frontal areas.
Other types of oscillatory activity could be modeled using our SDAR approach. For example, oscillatory activity in the theta range was analyzed by Cruikshank et al. [52] using wavelet-based techniques to analyze cortical activity underlying sensorimotor integration in humans. High frequency oscillatory activity is also a major area of interest in epilepsy research [48]. As new experiments are conducted at increasing sampling rates, oscillatory activity in several different EEG bands can be analyzed to find spatiotemporal patterns across a range of experimental paradigms [53]. Our technique based on SDAR modeling of the EEG can be applied to find spatiotemporal patterns of changes that may be indicative of mental state changes. This will be investigated in future research.
Our method requires an initial band-pass of the EEG data in a relevant frequency range of interest prior to analysis. For our analysis we band-passed the data at [6, 15] Hz for detecting alpha spindle oscillations in EEG. Since eye movement artifacts in EEG are generally in frequency ranges smaller than 6 Hz and artifacts from muscle movements are generally greater than 15 Hz, no additional artifact preprocessing is required. However, analysis of other brain regions may require additional preprocessing to remove artifacts prior to analysis. This is especially true for [3, 7] Hz theta oscillations, as eye movement artifacts will be more prevalent and pervasive when compared to the analysis of the alpha band. Analysis of the gamma frequency range will require removal of high frequency muscle activity as well as the removal of power-line noise (either at 50 or 60 Hz) prior to modeling by the SDAR algorithm.
Our primary goal of this work was the development of an algorithm for accurately identifying alpha spindles in EEG. We focused primarily on the parietal-occipital EEG channels as alpha spindles generally occur in these regions. However, this approach could be applied to analyze all the EEG channels simultaneously. In this way, the changes in the EEG could be correlated across brain regions, thus revealing additional features that can be useful for analysis. This is currently the topic of future research.
Recent advances in sensor technologies have enabled the non-invasive recording of neural activity in a variety of scenarios [38, 54] with some technologies aimed at improving performance in healthy individuals [55]. Efficient methods for detecting and identifying changes in EEG oscillatory activity may have practical applications in BCI contexts. For example, our work in detecting alpha rhythm changes (alpha bursts/spindles) may facilitate early detection of fatigue onset before lapses or microsleeps occur [7, 9–12, 38] and may be useful for preventing potentially dangerous situations such as attention lapses or microsleeps during tasks that require sustained levels of vigilance. Parameters that may be used for analysis of rhythmic alpha activity include frequency range, duration, rate, topography and peak frequency [11, 12, 56]. Another area where our approach might be useful is for real-time online monitoring of sleep. Rechtschaffen and Kales [57] published guidelines for manually scoring stages of sleep, including criteria for scoring alpha spindles in the form of k-complexes observed during stages I-II of sleep. Automated methods for sleep stage scoring based on the R&K gold standard visual scoring of EEG recordings have been published; however, none of these methods have reached the level of acceptance to the extent of R&K [56]. An automated system that is robust and validated is still lacking today.
Conclusion
In this work we showed that discounted autoregressive models can be used to model the alpha band EEG time series for detecting alpha spindle events in EEG. Our method is based on statistical principles and can generally be applied to detect rhythmic activity in any frequency band or brain region. As the algorithm is based on a time-adaptive statistical representation of the signal, it can account for slowly non-stationary behavior, making it an attractive model for EEG data analysis.
Declarations
Acknowledgments
The authors wish to thank W. David Hairston and Kaleb McDowell, both with the Army Research Laboratory, for helpful discussions, and DCS Corporation for the support and development of the experimental design used in this study. This research was sponsored by the Army Research Laboratory and was accomplished under Cooperative Agreement Number W911NF-10-2-0022. The views and conclusions contained in this document are those of the authors and should not be interpreted as representing the official policies, either expressed or implied, of the Army Research Laboratory or the U.S. Government. The U.S. Government is authorized to reproduce and distribute reprints for Government purposes notwithstanding any copyright notation herein.
Authors’ Affiliations
References
- Berger PDH: Über das Elektrenkephalogramm des Menschen. Arch Für Psychiatr Nervenkrankh. 1929, 87: 527-570. 10.1007/BF01797193.View ArticleGoogle Scholar
- Goldman RI, Stern JM, Engel J, Cohen MS: Simultaneous EEG and fMRI of the alpha rhythm. Neuroreport. 2002, 13: 2487-2492. 10.1097/00001756-200212200-00022.PubMed CentralView ArticlePubMedGoogle Scholar
- Laufs H, Kleinschmidt A, Beyerle A, Eger E, Salek-Haddadi A, Preibisch C, Krakow K: EEG-correlated fMRI of human alpha activity. Neuroimage. 2003, 19: 1463-1476. 10.1016/S1053-8119(03)00286-6.View ArticlePubMedGoogle Scholar
- Pfurtscheller G: Event-related synchronization (ERS): an electrophysiological correlate of cortical areas at rest. Electroencephalogr Clin Neurophysiol. 1992, 83: 62-69. 10.1016/0013-4694(92)90133-3.View ArticlePubMedGoogle Scholar
- Pfurtscheller G, Lopes da Silva FH: Event-related EEG/MEG synchronization and desynchronization: basic principles. Clin Neurophysiol Off J Int Fed Clin Neurophysiol. 1999, 110: 1842-1857. 10.1016/S1388-2457(99)00141-8.View ArticleGoogle Scholar
- Davidson PR, Jones RD, Peiris MTR: EEG-based lapse detection with high temporal resolution. IEEE Trans Biomed Eng. 2007, 54: 832-839.View ArticlePubMedGoogle Scholar
- Peiris MTR, Davidson PR, Bones PJ, Jones RD: Detection of lapses in responsiveness from the EEG. J Neural Eng. 2011, 8: 016003-10.1088/1741-2560/8/1/016003.View ArticlePubMedGoogle Scholar
- Cantero JL, Atienza M, Salas RM: Human alpha oscillations in wakefulness, drowsiness period, and REM sleep: different electroencephalographic phenomena within the alpha band. Neurophysiol Clin Clin Neurophysiol. 2002, 32: 54-71. 10.1016/S0987-7053(01)00289-1.View ArticleGoogle Scholar
- Lin C-T, Chuang C-H, Wang Y-K, Tsai S-F, Chiu T-C, Ko L-W: Neurocognitive Characteristics of the Driver: A Review on Drowsiness, Distraction, Navigation, and Motion Sickness. J Neurosci Neuroengineering. 2012, 1: 61-81. 10.1166/jnsne.2012.1010.View ArticleGoogle Scholar
- Lin C-T, Wu R-C, Jung T-P, Liang S-F, Huang T-Y: Estimating Driving Performance Based on EEG Spectrum Analysis. EURASIP J Adv Signal Process. 2005, 2005: 521368.View ArticleGoogle Scholar
- Simon M, Schmidt EA, Kincses WE, Fritzsche M, Bruns A, Aufmuth C, Bogdan M, Rosenstiel W, Schrauf M: EEG alpha spindle measures as indicators of driver fatigue under real traffic conditions. Clin Neurophysiol. 2011, 122: 1168-1178. 10.1016/j.clinph.2010.10.044.View ArticlePubMedGoogle Scholar
- Sonnleitner A, Simon M, Kincses WE, Buchner A, Schrauf M: Alpha spindles as neurophysiological correlates indicating attentional shift in a simulated driving task. Int J Psychophysiol. 2012, 83: 110-118. 10.1016/j.ijpsycho.2011.10.013.View ArticlePubMedGoogle Scholar
- The Brain’s Alpha Rhythms and the Mind: A Review of Classical and Modern Studies of the Alpha Rhythm Component of the Electroencephalogram with … Neuroscience and Neuropsychology, 1e. Edited by: Shaw JC. 2003, Amsterdam Boston: Elsevier, 1Google Scholar
- Quian Quiroga R: Functions and sources of event-related EEG alpha oscillations studied with the Wavelet Transform. Clin Neurophysiol. 1999, 110: 643-654. 10.1016/S1388-2457(99)00011-5.View ArticleGoogle Scholar
- Kalauzi A, Vuckovic A, Bojić T: EEG alpha phase shifts during transition from wakefulness to drowsiness. Int J Psychophysiol. 2012, 86: 195-205. 10.1016/j.ijpsycho.2012.04.012.View ArticlePubMedGoogle Scholar
- Durka PJ, Matysiak A, Montes EM, Sosa PV, Blinowska KJ: Multichannel matching pursuit and EEG inverse solutions. J Neurosci Methods. 2005, 148: 49-59. 10.1016/j.jneumeth.2005.04.001.View ArticlePubMedGoogle Scholar
- Schönwald SV, Carvalho DZ, de Santa-Helena EL, Lemke N, Gerhardt GJL: Topography-specific spindle frequency changes in Obstructive Sleep Apnea. BMC Neurosci. 2012, 13: 89-10.1186/1471-2202-13-89.View ArticlePubMedGoogle Scholar
- Lawhern V, Hairston WD, McDowell K, Westerfield M, Robbins K: Detection and classification of subject-generated artifacts in EEG signals using autoregressive models. J Neurosci Methods. 2012, 208: 181-189. 10.1016/j.jneumeth.2012.05.017.View ArticlePubMedGoogle Scholar
- Olbrich E, Achermann P: Analysis of oscillatory patterns in the human sleep EEG using a novel detection algorithm. J Sleep Res. 2005, 14: 337-346. 10.1111/j.1365-2869.2005.00475.x.View ArticlePubMedGoogle Scholar
- Gharieb RR, Cichocki A: On-line EEG classification and sleep spindles detection using an adaptive recursive bandpass filter. 2001 IEEE Int Conf Acoust Speech Signal Process 2001 Proc ICASSP 01. Volume 2. 2001, Salt Lake City, UT, 1061-1064. Volume 2. doi:10.1109/ICASSP.2001.941102Google Scholar
- Shimada T, Shiina T, Saito Y: Detection of characteristic waves of sleep EEG by neural network analysis. IEEE Trans Biomed Eng. 2000, 47: 369-379. 10.1109/10.827301.View ArticlePubMedGoogle Scholar
- Huupponen E, Himanen SL, Värri A, Hasan J, Saastamoinen A, Lehtokangas M, Saarinen J: Fuzzy detection of EEG alpha without amplitude thresholding. Artif Intell Med. 2002, 24: 133-147. 10.1016/S0933-3657(01)00098-7.View ArticlePubMedGoogle Scholar
- Lin C-T, Ko L-W, Chung I-F, Huang T-Y, Chen Y-C, Jung T-P, Liang S-F: Adaptive EEG-Based Alertness Estimation System by Using ICA-Based Fuzzy Neural Networks. IEEE Trans Circuits Syst Regul Pap. 2006, 53: 2469-2476.View ArticleGoogle Scholar
- Acharya UR, Faust O, Kannathal N, Chua T, Laxminarayan S: Non-linear analysis of EEG signals at various sleep stages. Comput Methods Programs Biomed. 2005, 80: 37-45. 10.1016/j.cmpb.2005.06.011.View ArticleGoogle Scholar
- Schönwald SV, de Santa-Helena EL, Rossatto R, Chaves MLF, Gerhardt GJL: Benchmarking matching pursuit to find sleep spindles. J Neurosci Methods. 2006, 156: 314-321. 10.1016/j.jneumeth.2006.01.026.View ArticlePubMedGoogle Scholar
- Auret L, Aldrich C: Change point detection in time series data with random forests. Control Eng Pr. 2010, 18: 990-1002. 10.1016/j.conengprac.2010.04.005.View ArticleGoogle Scholar
- Takeuchi J, Yamanishi K: A unifying framework for detecting outliers and change points from time series. Knowl Data Eng IEEE Trans. 2006, 18: 482-492.View ArticleGoogle Scholar
- Urabe Y, Yamanishi K, Tomioka R, Iwai H: Real-time change-point detection using sequentially discounting normalized maximum likelihood coding. Adv Knowl Discov Data Min. 2011, 6635: 185-197. 10.1007/978-3-642-20847-8_16.View ArticleGoogle Scholar
- Liu S, Yamada M, Collier N, Sugiyama M: Change-Point Detection in Time-Series Data by Relative Density-Ratio Estimation. Neural Networks. 2013, 43: 72-83.View ArticlePubMedGoogle Scholar
- Kawahara Y, Sugiyama M: Change-point detection in time-series data by direct density-ratio estimation. Proc. SIAM Int. Conf. Data Mining. 2009, 389-400.Google Scholar
- Wang H, Zhang D, Shin KG: Change-point monitoring for the detection of DoS attacks. IEEE Trans Dependable Secure Comput. 2004, 1: 193-208. 10.1109/TDSC.2004.34.View ArticleGoogle Scholar
- Schlögl A: A comparison of multivariate autoregressive estimators. Signal Process. 2006, 86: 2426-2429. 10.1016/j.sigpro.2005.11.007.View ArticleGoogle Scholar
- Weisberg S: Applied Linear Regression. 2005, Hoboken, New Jersey: John Wiley & Sons, Inc, 3View ArticleGoogle Scholar
- Rissanen J, Roos T, Myllymäki P: Model selection by sequentially normalized least squares. J Multivar Anal. 2010, 101: 839-849. 10.1016/j.jmva.2009.12.009.View ArticleGoogle Scholar
- Lawhern V, Hairston WD, Robbins K: DETECT: A MATLAB Toolbox for Event Detection and Identification in Time Series, with Applications to Artifact Detection in EEG Signals. PLoS One. 2013, 8: e62944-10.1371/journal.pone.0062944.PubMed CentralView ArticlePubMedGoogle Scholar
- U.S. Department of the Army: Use of volunteers as subjects of research. Gov Print Off. 1990, AR 70–25.Google Scholar
- U.S. Department of Defense, Office of the Secretary of Defense: Code of federal regulations, protection of human subjects. Gov Print Off. 1999, 32 CFR 19.Google Scholar
- Lin C-T, Chang C-J, Lin B-S, Hung S-H, Chao C-F, Wang I-J: A Real-Time Wireless Brain-Computer Interface System for Drowsiness Detection. IEEE Trans Biomed Circuits Syst. 2010, 4: 214-222.View ArticleGoogle Scholar
- Lee T-W: Independent Component Analysis Using an Extended Infomax Algorithm for Mixed Subgaussian and Supergaussian Sources. Neural Comput. 1999, 11: 417-441. 10.1162/089976699300016719.View ArticlePubMedGoogle Scholar
- Delorme A, Makeig S: EEGLAB: an open source toolbox for analysis of single-trial EEG dynamics including independent component analysis. J Neurosci Methods. 2004, 134: 9-21. 10.1016/j.jneumeth.2003.10.009.View ArticlePubMedGoogle Scholar
- Delorme A, Sejnowski T, Makeig S: Enhanced detection of artifacts in EEG data using higher-order statistics and independent component analysis. Neuroimage. 2007, 34: 1443-1449. 10.1016/j.neuroimage.2006.11.004.PubMed CentralView ArticlePubMedGoogle Scholar
- Luck S, Lopez-Calderon J: ERPLAB: A Toolbox for ERP Data Analysis. 2013, http://erpinfo.org/erplab/.Google Scholar
- Wagenmakers E-J, Farrell S, Ratcliff R: Estimation and interpretation of 1/fα noise in human cognition. Psychon Bull Rev. 2004, 11: 579-615. 10.3758/BF03196615.PubMed CentralView ArticlePubMedGoogle Scholar
- Brodsky BE, Darkhovsky BS, Kaplan AY, Shishkin SL: A nonparametric method for the segmentation of the EEG. Comput Methods Programs Biomed. 1999, 60: 93-106. 10.1016/S0169-2607(98)00079-0.View ArticlePubMedGoogle Scholar
- Schlögl A: The Electroencephalogram and the Adaptive Autoregressive Model: Theory and Applications. 2000, Germany: Shaker Verlag GmbHGoogle Scholar
- Jansen BH, Bourne JR, Ward JW: Autoregressive Estimation of Short Segment Spectra for Computerized EEG Analysis. IEEE Trans Biomed Eng. 1981, BME-28: 630-638.View ArticleGoogle Scholar
- Anderson CW, Stolz EA, Shamsunder S: Multivariate autoregressive models for classification of spontaneous electroencephalographic signals during mental tasks. IEEE Trans Biomed Eng. 1998, 45: 277-286. 10.1109/10.661153.View ArticlePubMedGoogle Scholar
- Staba RJ, Wilson CL, Bragin A, Fried I, Engel J: Quantitative Analysis of High-Frequency Oscillations (80–500 Hz) Recorded in Human Epileptic Hippocampus and Entorhinal Cortex. J Neurophysiol. 2002, 88: 1743-1752.PubMedGoogle Scholar
- Gardner AB, Worrell GA, Marsh E, Dlugos D, Litt B: Human and automated detection of high-frequency oscillations in clinical intracranial EEG recordings. Clin Neurophysiol. 2007, 118: 1134-1143. 10.1016/j.clinph.2006.12.019.PubMed CentralView ArticlePubMedGoogle Scholar
- Arnold M, Doering A, Witte H, Dörschel J, Eisel M: Use of adaptive Hilbert transformation for EEG segmentation and calculation of instantaneous respiration rate in neonates. J Clin Monit. 1996, 12: 43-60. 10.1007/BF02025311.View ArticlePubMedGoogle Scholar
- Craig A, Tran Y, Wijesuriya N, Nguyen H: Regional brain wave activity changes associated with fatigue. Psychophysiology. 2012, 49: 574-582. 10.1111/j.1469-8986.2011.01329.x.View ArticlePubMedGoogle Scholar
- Cruikshank LC, Singhal A, Hueppelsheuser M, Caplan JB: Theta oscillations reflect a putative neural mechanism for human sensorimotor integration. J Neurophysiol. 2011, 107: 65-77.View ArticlePubMedGoogle Scholar
- Menendez de la Prida L, Trevelyan AJ: Cellular mechanisms of high frequency oscillations in epilepsy: On the diverse sources of pathological activities. Epilepsy Res. 2011, 97: 308-317. 10.1016/j.eplepsyres.2011.02.009.View ArticlePubMedGoogle Scholar
- Mcdowell K, Lin C-T, Oie KS, Jung T-P, Gordon S, Whitaker KW, Li S-Y, Lu S-W, Hairston WD: Real-World Neuroimaging Technologies. IEEE Access. 2013, 1: 131-149.View ArticleGoogle Scholar
- Lance BJ, Kerick SE, Ries AJ, Oie KS, McDowell K: Brain-Computer Interface Technologies in the Coming Decades. Proc IEEE. 2012, 100 (Special Centennial Issue): 1585-1599.View ArticleGoogle Scholar
- Anderer P, Gruber G, Parapatics S, Woertz M, Miazhynskaia T, Klosch G, Saletu B, Zeitlhofer J, Barbanoj MJ, Danker-Hopfe H, Himanen S-L, Kemp B, Penzel T, Grozinger M, Kunz D, Rappelsberger P, Schlogl A, Dorffner G: An E-health solution for automatic sleep classification according to Rechtschaffen and Kales: validation study of the Somnolyzer 24 × 7 utilizing the Siesta database. Neuropsychobiology. 2005, 51: 115-133. 10.1159/000085205.View ArticlePubMedGoogle Scholar
- Kales A, Rechtschaffen A: A Manual of Standardized Terminology, Techniques and Scoring System for Sleep Stages of Human Subjects. 1968, Bethesda, Md: U.S. Dept. of Health, Education, and Welfare, Public Health Services-National Institutes of Health, National Institute of Neurological Diseases and Blindness, Neurological Information NetworkGoogle Scholar
Copyright
This article is published under license to BioMed Central Ltd. This is an Open Access article distributed under the terms of the Creative Commons Attribution License (http://creativecommons.org/licenses/by/2.0), which permits unrestricted use, distribution, and reproduction in any medium, provided the original work is properly cited.