Skip to main content

ORIGINAL RESEARCH article

Front. Physiol., 04 April 2018
Sec. Computational Physiology and Medicine

Automatic Change Detection for Real-Time Monitoring of EEG Signals

\r\nZhen GaoZhen Gao1Guoliang Lu*Guoliang Lu1*Peng YanPeng Yan1Chen LyuChen Lyu2Xueyong LiXueyong Li1Wei Shang,Wei Shang3,4Zhaohong Xie,Zhaohong Xie3,4Wanming ZhangWanming Zhang5
  • 1Key Laboratory of High-Efficiency and Clean Mechanical Manufacture of MOE, National Demonstration Center for Experimental Mechanical Engineering Education, School of Mechanical Engineering, Shandong University, Jinan, China
  • 2School of Information Science and Engineering, Shandong Normal University, Jinan, China
  • 3Institute of Neurology, Shandong University, Jinan, China
  • 4Department of Neurology, Second Hospital of Shandong University, Jinan, China
  • 5Medical Imaging Center, Second Hospital of Shandong University, Jinan, China

In recent years, automatic change detection for real-time monitoring of electroencephalogram (EEG) signals has attracted widespread interest with a large number of clinical applications. However, it is still a challenging problem. This paper presents a novel framework for this task where joint time-domain features are firstly computed to extract temporal fluctuations of a given EEG data stream; and then, an auto-regressive (AR) linear model is adopted to model the data and temporal anomalies are subsequently calculated from that model to reflect the possibilities that a change occurs; a non-parametric statistical test based on Randomized Power Martingale (RPM) is last performed for making change decision from the resulting anomaly scores. We conducted experiments on the publicly-available Bern-Barcelona EEG database where promising results for terms of detection precision (96.97%), detection recall (97.66%) as well as computational efficiency have been achieved. Meanwhile, we also evaluated the proposed method for real detection of seizures occurrence for a monitoring epilepsy patient. The results of experiments by using both the testing database and real application demonstrated the effectiveness and feasibility of the method for the purpose of change detection in EEG signals. The proposed framework has two additional properties: (1) it uses a pre-defined AR model for modeling of the past observed data so that it can be operated in an unsupervised manner, and (2) it uses an adjustable threshold to achieve a scalable decision making so that a coarse-to-fine detection strategy can be developed for quick detection or further analysis purposes.

1. Introduction

Electroencephalogram (EEG) reflects the electrical activity of the brain, which has become an important tool to record and comprehend the complex activities of the brain (Li et al., 2016). Among various applications, real-time EEG monitoring is a useful technique to observe the state of brain function and capture the potential fluctuations of brain activities. Practical examples of this technique include, but not limited to,

• Online monitoring of epileptic seizures using statistics of EEG (Yuan et al., 2013; Gajic et al., 2015). The mathematical model is established via observed EEG to determine whether the present status is normal by an online way.

• Change detection of brain status/pattern for patients with brain injury (O'Neill et al., 2015; Amorim et al., 2016), in which the real-time monitoring offers a continuous record of any seizure activity that may have been unwitnessed.

• Detection of sleep-disordered breathing events (Devuyst et al., 2010; D'Rozario et al., 2015), where real-time monitoring plays an important role to record any occurrence of sleep-related breathing disorders.

• Brain-computer interface (BCI) (Wang et al., 2012; Abdulkader et al., 2015). Obviously, it allows for real-time communication between the brain and the computer.

In real-time monitoring of EEG signals, one major goal is to find change(s) between brain states where the EEG signal changes from a normal state to the abnormal/ictal, for example, seizure onset detection of the epilepsy can be regarded as detection of statistical changes via monitoring EEG signals (Gao and Hu, 2013; Yan et al., 2015). In spite of that monitoring of EEG has been an extensively studied area in the literature (Chen et al., 2010; Mullen et al., 2015), change decision making in EEG signals is still a problem of challenge where EEG recordings are usually checked by experienced neurologists in an off-line operation in most of clinical diagnoses. Checking EEG recordings is a time-consuming and dull task that is prone to lower the accuracy and effectiveness of detection considering the massive amounts of collected data (Mporas et al., 2015), and meanwhile it brings a large delay because the manual observation can not achieve the real-time in monitoring. Moreover, results of detection would be different between neurologists because the determination largely depends on their subjective judgments/decisions (Boashash et al., 2015).

To address the drawbacks of manual decision making, plentiful approaches have been proposed over the decades to automatically detect the changes in monitoring EEG signals, and they can be divided into two groups. In the former group, machine learning is introduced into change detection of EEG signals (Liu et al., 2012; Wang et al., 2016). For example, Cloostermans et al. (2011) present a novel computer assisted EEG interpretation system that combines eight quantitative features into a single classifier and utilizes decision tree to obtain a classification per brain region, which may improve early detection of seizure activity and ischemia in critically ill patients. Tzallas et al. (2009) make good use of time-frequency analysis to represent the characteristics of different EEG segments and employ artificial neural networks to classify EEG segments for epileptic seizures. Moreover, Saghafi et al. (2017) employ cross channels maximum and minimum to monitor the EEG signals, then Multivariate Empirical Mode Decomposition and classification techniques are utilized to detect a possible change in the eye state. Although these approaches are experimentally fast and accurate when used for detecting possible changes, they need a supervised learning/training phase or prior knowledge to usage.

On the other hand, the latter group of statistical analysis based methods have been proposed where neither supervised learning/training nor prior knowledge can be applicable during EEG monitoring (Gao et al., 2010; Pachori and Bajaj, 2011). For example, Saaid et al. (2011) propose a change point detection for EEG signal application based on Particle Swarm Optimization (PSO). According to Kortelainen et al. (2012), a multiple change detection algorithm based on Bayesian Information Criterion (BIC) is presented for the assessment of the switch-like change in the signal characteristics occurring just before the awakening. Hopfengärtner et al. (2007) design an efficient, robust and fast method based on power spectral analysis techniques for the off-line detection of epileptic seizures in long-term scalp EEG recordings. These methods do not need a supervised learning or training phase, but their performances largely rely on retrospective analysis of the whole data. That is unsuitable for real-time monitoring applications where the changes are expected to be detected as soon as possible.

In this paper, we concentrate on the problem of automatic change detection in real-time EEG monitoring and propose a novel framework for this task. In this framework, joint time-domain features are firstly computed to extract temporal fluctuations of a given EEG data stream; and then, an auto-regressive (AR) linear model is adopted to model the data and temporal anomalies are subsequently calculated from that model to reflect the possibilities that a change occurs; a non-parametric statistical test based on randomized power martingale (RPM) is last performed for performing change decision making based on the resulting anomaly scores.

The rest of the paper is organized as follows. In section 2, the proposed change detection framework is described in details. Experimental results are shown in section 3. We also test the framework in real clinical applications in section 4. A further discussion of the results follows in section 5. Finally, section 6 concludes the paper.

2. Materials and Methods

2.1. Materials

The tested EEG signals in this paper are taken from the publicly-available Bern-Barcelona EEG database (Andrzejak et al., 2012). These EEG data that have been recorded with a sampling rate of 1,024 Hz are down-sampled to 512 Hz prior to further analysis. They randomly select 3,750 pairs of simultaneously recorded signals from the pool of all signals measured at focal and non-focal EEG channels respectively, and divide the recordings into time windows of 20 s, corresponding to 10,240 samples. The first 50 focal and non-focal types of EEG data are selected (note that we only test x-signals in given source file).

In our experiment, 50 new EEG data streams were generated by concatenating each pair of a non-focal signal record and a focal signal record to guarantee at least one change point are contained in each testing EEG data stream. We further down-sampled these signals with a down-sampling rate 1:50 in our experiments to decrease the computation burden in process. Finally, two experienced neurologists were invited to label the change point(s) in testing data. Some examples of testing data streams are shown in Figure 1. We conducted the experiment in Matlab R2014a without any optimization for speeding up the procedure, and the PC for the experiment is CPU 3.70 GHz, RAM 4.00 GB.

FIGURE 1
www.frontiersin.org

Figure 1. Three examples of testing data streams used in our study.

To evaluate the performance of the proposed change detection framework, we compared the results of automatic detection by our method with those given by experienced neurologists. Three statistical measurements of precision (specificity), recall (sensitivity) and F_score are used to assess the performance of our approach, which are respectively defined as:

precision=nmN
recall=nmNg
F_score=2×precision×recallprecision+recall

where N is the number of changes from automatic detection by the proposed framework, Ng is the number of all changes labeled by invited neurologists and nm is the number of changes which are matched-successfully to manual determination from automatic detection. In fact, precision revels the ability to detection accuracy while recall describes the ability to retain or keep accurate and essential information within detected events. Apparently, F_score provides a harmonic mean between precision and recall, and a high value of F_score ensures reasonably a good balance between them.

2.2. Method

In this section, the proposed method will be described in details.

2.2.1. Overview

As depicted in Figure 2, the framework is operated as follows: (1) joint time-domain features are firstly computed to extract temporal fluctuations of a given EEG data stream; and then, (2) an auto-regressive (AR) linear model is adopted to model the data and temporal anomalies are subsequently calculated from that model to reflect the possibilities that a change occurs; (3) a non-parametric statistical test based on randomized power martingale (RPM) is last performed for performing change decision making based on the resulting anomaly scores. Detailed description will be given in the following.

FIGURE 2
www.frontiersin.org

Figure 2. Flowchart of the proposed framework.

2.2.2. Feature Extraction

Feature extraction for EEG signals representation plays an important role in change detection of the data (Guerrero-Mosquera et al., 2010; Şen and Peker, 2013). In our study, joint time-domain features are used to represent the given EEG signals considering that single time-domain feature may be not reliable enough for the signal representation because of its non-stationary characteristic (Boashash et al., 2015).

For a given EEG data stream Y={y1,y2,,yN}, where yi is the amplitude of the signal at time i and N is the length of the stream, we employ a sliding window with a fixed length L to extract features (The length of sliding window L can be set empirically or with a prior estimation. Here, in this paper, the value of L was set as 5 empirically in the following experiments) as follows. For the signal at time k (kL), we employ five time-domain features fj (j = 1, 2, 3, 4, 5) resulted from the signal sequence within the sliding window {ykL+1, …, yk−1, yk} to generate a joint feature corresponding to this signal1. And the expressions and descriptions corresponding to employed time-domain features are listed in Table 1.

TABLE 1
www.frontiersin.org

Table 1. Time-domain features employed for joint feature.

In fact, we emphasize the amplitude characteristics of given EEG signal via above time-domain features. Here, it is worth mentioning that, the direct use of these resulting statistical features would be straightforward and it would be unreliable to some extent due to its sensitiveness to temporal fluctuations. Hence, the entropy is used to combine these statistical measures as,

qk=j=15fjlogfj    (1)

Thus, the EEG signal with the length of N could be represented as a vector as {q1, q2, …, qN}. And an example of extracted feature is given in Figure 3 where the extracted feature can reveal the fluctuation of signal. It shows an obvious representation in where the given signal changes suddenly in amplitude.

FIGURE 3
www.frontiersin.org

Figure 3. An example of downsampled EEG signal and extracted feature.

Although the resulted feature can point out the time when signal changes largely in time-domain, it is difficult to determine the change based on the calculated entropy because their range can be varied from a small value to a large value. From this perspective, an effective decision rule is still necessary. We will give the detailed detection mechanism in the following.

2.2.3. Problem Formulation

We formulate the problem of change detection in this subsection. Suppose that the given EEG signal Y has been represented as {qt}(t = 1, 2, …, N), we employ an auto-regressive (AR) model to describe the signals without change:

qt=μ+βt+εt    (2)

where μ and β are the mean and trend of the EEG series and β is constrained as constant of 0 due to the natural property of EEG signals, that is, the values of EEG data always oscillate around zero, the errors {εt} are zero mean, i.e., Et] = 0, which belongs to independent and identical distribution (I.I.D). Hence, we can obtain the expectation of {qt} based on the Equation (2), which is computed as 𝔼[qt] = μ + βt + 𝔼[εt] = μ + βt. In clinical applications, for an EEG sequence Y={q1,q2,,qN} without obvious change(s), the expectation of {qt} can be estimated approximately as the sample mean as

q̄t=1Nt=1Nqtμ+βt    (3)

Here, it is worth mentioning that, Equation (3) can be utilized to estimate two important parameters μ and β in Equation (2) by computed q̄ts.

Assuming that the given EEG signal satisfies the model Equation (2) (i.e., it can be generated from this regression model), we regard that the EEG sequence is a normal state, i.e., no changes occurs, but if it does not, we consider the signal is in an abnormal state, i.e., there is a change in this EEG sequence. Once a change is detected, the current time is determined as one change point. Apparently, the parameters in regression model at change time are different from those resulted from the previous established model. Let us suppose that the model in Equation (2) has been changed from (μ1, β1) to (μ2, β2) at time c. This change can be described by a two-phase regression model extended from Equation (2) (Wang, 2003), as

qt={μ1+β1t+εt,1tc1μ2+β2t+εt,ctN    (4)

which allows “both step(mean)-type1 ≠ μ2) and trend-type1 ≠ β2)” changes. A null and alternative hypotheses are given as:

H0:μ1=μ2andβ1=β2HA:μ1μ2and/orβ1β2    (5)

If the null hypothesis H0 is rejected, i.e., HA is true, the present time is regarded as a change. Now, the problem is how to quantify the data distribution of Y from this model and discriminate the normal and abnormal states.

2.2.4. Change Detection

The processing of change detection is shown as Figure 4. A prediction error {et} is employed to measure the amount of the temporal fluctuations of the EEG data distribution in Y. Assuming that (μ1, β1) has already been estimated in past signal by Equation (3), the linear prediction q^t at time t can be obtained by Equation (2). Denoting the prediction error as et at time t, we first compute it as

et=||qt-q^t||    (6)

where || · || is the Euclidean distance metric. Particularly, considering Equations (4) and (6) together, the value of et (i.e., et = ||Δμ + Δβt|| + εc, where Δμ = (μ1 − μ2) and Δβ = (β1 − β2)), can be divided into two cases as follows:

• In the case of t < c where H0 in Equation (5) is true, et is approximately zero or very small, which demonstrates the observed signal obeys the normal data distribution;

• when t = c which satisfies HA in Equation (5), et will be high which implies a change occurs and the observed data after the change time c are considered as another data distribution (i.e., abnormal state).

FIGURE 4
www.frontiersin.org

Figure 4. Overview of change detection.

In order to reduce the computation cost, we use an alternative way to determine q^(t) on the basis of Equation (3) as: q^tq̄t, since the trend β has been constrained as constant of 0 as made previously in this paper. This alternation can effectively speed up the computation of q^t in practical execution because it avoids the large time cost on estimating the parameters μ and β. Moreover, in order to remove the effect of the alternation, we then standardize the resulted {et} into a series of standardized {zt} by zt = (et − ê)/σ where ê and σ are the sample mean and standard deviation of {et}. Last, on the basis of {zt}(t = 1, 2, …, N), we can calculate the anomaly score st of each zt based on the already-observed data {z1, z2, …, zt−1} inspired by Ho and Wechsler (2010):

st=s({z1,z2,,zt-1},zt)=||zt-Ht-1||    (7)

where Ht-1=1t-1i=1t-1zi and || · || is the Euclidean distance metric. On the basis of resulted anomaly scores {st}(t = 1, 2, …, N), the current problem is how to find the time c when the change occurs.

To achieve automatic detection of the change in {st}, a non-parametric statistical test based on randomized power martingale (RPM) (Vovk et al., 2003) is employed for this task. Detailed computation procedure is described as follows.

First, on the basis of {s1, s2, …, st}, the RPM is constructed by

M(t)=i=1t(ξp^iξ-1)    (8)

where ξ ∈ (0, 1) (in the following experiment, it was set as 0.8 since any value of ξ ∈ [0.8, 1) has been investigated the effectiveness in Ho and Wechsler, 2010), and p^is are the p^i-values computed from the following function:

p^i=#{j:sj>si}+θi#{j:sj=si}i    (9)

where #{·} is a counting function, j ∈ {1, 2, …, i−1} and θi is randomly chosen from a uniform distribution of [0, 1] at time i (Vovk et al., 2005). It is worth mentioning that, when the data stream includes a change, i.e., the stream does not satisfy the exchangeability, the p^i-values using Equation (9) are no longer uniformly distributed in [0, 1] due to the fact that the new data is likely to have higher anomaly scores compared to the data already observed. Here, one observes that, since M(t)=i=1t(ξp^iξ-1), no re-computation is required for calculating M(t).

Then, since obviously 01ξp^tξ-1=p^tξ|01=1, the conditional expectation of M(t), t ∈ {1, 2, …, c} with respect to the past p^i-values, i.e., {p^1,p^2,,p^t} is given by

𝔼[M(t)|p^1,p^2,,p^t]=M(t-1)01ξp^tξ-1=M(t-1)    (10)

This property of “the expectation of the next value is the same as the current value” is so-called martingale, which implies E[M(t)] = E[M(1)] = 12. Suppose that M(t), t ∈ {1, 2, …, c} is a nonnegative martingale, the Doob's Maximal Inequality (Doob, 1962) is then satisfied for any t ∈ {1, 2, …, c}:

P(max0tcM(t)λ)1λ    (11)

where λ is a positive number. Above inequality shows that not all M(t)s are higher than a pre-defined threshold, which determines an upper bound for the false alarm rate (i.e., a given probability) for detecting a change when there is none. In other words, the value of λ is determined by the false alarm rate that one is willing to accept (Ho and Wechsler, 2010). However, the false alarm rates in different applications are often chosen by cross-validation or empirical setting. For the decision of martingale test, the Equation (11) can be transformed to the following inequality:

0<M(t)<λ    (12)

The inequality shown in Equation (12) means that, in the martingale-test based change detection, one can reject the null hypothesis H0 in Equation (5) when M(t) ≥ λ. In other words, HA: a change occurs on the time c as long as M(c) ≥ λ. This means, decision on a change-point at time c is equivalent to testing the following hypothesis by combing Equations (5) and (12) as

H0: 1<M(c)<λ      i.e., μv1=μv2 and β1=β2: no changeHA: M(c)λ      i.e., μv1μv2 and/or β1β2: change occurs    (13)

Once the change is detected, the system will take appropriate actions to maintain the operation and to avoid accidental consequences. Otherwise, the martingale test continues to operate as long as 0 < M(t) < λ.

2.2.5. Algorithm

Suppose that we have obtained measured anomalies {st}(t = 1, 2, …, n), the computation procedure of change detection is given in Algorithm 1 as follows.

ALGORITHM 1
www.frontiersin.org

Algorithm 1 Procedures of change detection.

3. Results

As the description in Equation (13) that a threshold λ is utilized to control the sensitivity of the detection, we thus gave the results of precision, recall and F_score in different values of λ from 2 to 9 with a step of 0.5 in Figure 5, respectively. The best precision (96.97%) is received when λ = 5.5 while the best recall (97.66%) is obtained when λ = 2. Meanwhile, we can notice that a larger value of precision is performed while a smaller value of recall generates when λ increases. In fact, the value of λ controls the trade-off between precision and recall, and the F_score shows this performance as shown in Figure 5. The F_score receives the most promising value (93.75%) with when λ = 3. We also provided three examples of detection results of different EEG sequences when λ = 3 in Figure 6. The changes labeled manually by neurologists (red line) are shown in top figure in each example. We can notice that only one change is chosen out in the two examples of Figures 6A,B. And three changes in the examples shown in Figure 6C are captured by the framework. The experimental results demonstrate its promising accuracy of detection and ability to keep essential seizure within detected events.

FIGURE 5
www.frontiersin.org

Figure 5. Results of precision, recall and F_score in different values of λ.

FIGURE 6
www.frontiersin.org

Figure 6. Detection results of three EEG examples when λ = 3. (A) Detection result of test signal Ind0005. (B) Detection result of test signal Ind0009. (C) Detection result of test signal Ind0042.

For automatic detection in real-time monitoring, the actual processing time is very important for clinical applications. Thus we also presented the computation time in Figure 7. The average computation time is about 0.15s. It can be seen that, the phase of change detection is very fast in computation for all tested values of λ, that is faster enough than real-timeness for each EEG signal sequences, which demonstrates the efficiency of our proposed mechanism.

FIGURE 7
www.frontiersin.org

Figure 7. The computation time in different values of λ, where ave corresponds to the average computation time of the proposed framework.

4. Application to Real EEG Monitoring Application

We introduced the proposed framework into the real monitoring of epilepsy seizure based on EEG signals (as shown in Figure 8). The EEG record data and surveillance videos were collected from an epilepsy patient, which lasted for 6 h. The seizure time was recorded by our framework. Meanwhile, an expert observed the EEG recording and labeled the seizure with the assist of monitoring videos. We compared the detection results by our framework with expert's decision. As a result, 30 seizures were detected while there were only 24 seizures given by the expert. We listed the detection results by our framework and expert's decision in Table 2 and showed an example of EEG recording with a seizure reported by our framework in Figure 9. We can notice that six seizures were detected falsely according to expert's decision. On the one hand, the threshold value may be too sensitive for seizure detection (the threshold λ was set as 3 in the experiment). It still needs more clinical testing for determining the suitable threshold. On the other hand, two successive seizure with little time interval was reported by our framework (e.g., 03:22:27 and 03:22:42 in Table 2), which can be regarded as one seizure. As a result, the proposed framework can detect the EEG change effectively although it has a false alarm rate in clinical applications.

FIGURE 8
www.frontiersin.org

Figure 8. An example of surveillance image in patient monitoring.

TABLE 2
www.frontiersin.org

Table 2. The detection results by the proposed framework:“√” means that the results are endorsed by the expert's decision while “O” means the false detection.

FIGURE 9
www.frontiersin.org

Figure 9. An example of EEG recording when seizure is reported by our framework.

5. Discussion

Automatic change detection in real-time monitoring of EEG signals is a matter of great significance in theory and clinical practice, which provides an important assistant to observation and diagnosis for the patient undergoing neurological illness. A reliable change detection system can reduce the manual mistakes resulted by neurologists and improve the efficiency.

In this paper, we have proposed a novel framework for automatic change detection in real-time monitoring of EEG signals, which has three key properties:

a) Computational Efficiency. The framework can be executed very fast, which is experimentally even faster than real-timeness. This property makes it more suitable for change detection in real-time monitoring compared with retrospective analysis based methods (e.g., Saaid et al., 2011; Kortelainen et al., 2012).

b) Unsupervision. Different from machine learning based approaches (e.g., Kumar et al., 2014; Yuan et al., 2016), our framework does not require any prior knowledge about the EEG signal nor a supervised learning/training phase, which is convenient and simple in real usages.

c) Scalability. In our framework, change detection can be from-coarse-to-fine by only adjusting one parameter λ. Theoretically a smaller number of change will be selected out with a greater value of λ, and vise versa. This achieves a hierarchical analysis/processing of EEG monitoring to meet different clinical demands. For example, a patient with serious brain injuries will need a sensitive detection with a smaller value of λ in order to avoid any omission.

In detail, it achieves a promising performance of precision (96.97%) and recall (97.66%). Meanwhile, it obtains the best performance of balance between precision (93.75%) and recall (93.75%) when λ = 3. In addition, the computation speed is sufficiently fast to achieve the real-time monitoring and analysis. Note that the framework can be from-coarse-to-fine by only adjusting one parameter λ. As seen in an example given in Figure 10, we give the different detection results when λ = 2, 3, 4, respectively. It can be noticed that only one change is captured when λ = 4 while three changes are chosen out when λ = 3. The scalability of our framework provides an adjustable detection for patient with different serious state of neurological illness. For example, the threshold value of λ is supposed to be little for the patient undergoing serious brain injury, because declaring a patient “dead” is a very tricky procedure and it requires a long-time monitoring during which the doctor visually inspects the EEG tracings looking for any change that might account for restart of cerebral activity (La Foresta et al., 2009). They need a more sensitive detection so that any tiny change can not be omitted. In other words, their detection in such a situation needs a larger recall to keep more essential information as much as possible.

FIGURE 10
www.frontiersin.org

Figure 10. From top to bottom: detection results when λ = 2, 3, 4, respectively.

Compared with those approaches based on machine learning, our proposed framework is unsupervised. Machine learning based methods such as Cloostermans et al. (2011) and Zhang et al. (2015), often need a supervised learning or training phase, which will be not reliable in the case that we do not have enough prior knowledge or training samples for the learning phase. Moreover, the process of classification/recognition often segments the EEG signals into many epochs with fixed length with an expectation of improving the accuracy of detection, but this strategy is not suitable for real-time applications that require immediate response when the change occurs. On the contrast, our framework determines the state of current time by only using the past data with an online operation way which does not require any prior knowledge about the processing EEG signals so that it can be employed directly for the analysis of new EEG signal with unknown characteristics.

The proposed approach has a high computational efficiency, which brings a much smaller detection delay compared with the results obtained from retrospective analysis (e.g., Saaid et al., 2011; Kortelainen et al., 2012). In some clinical applications where a timely alarm is required, automatic detection with a smaller detection delay is more helpful for medical workers to take actions. Our framework is carried out in an online way, which makes it more suitable for the real-time monitoring and analysis in clinical applications such as the continuous monitoring of coma patient in the intensive care unit (ICU).

6. Conclusion

In this paper, we have proposed an efficient, unsupervised and scalable framework for automatic change detection in real-time monitoring of EEG signals. Our main contributions are summarized into two folds: (1) joint time-domain features are used for EEG signals representation, which is able to reveal the fluctuation of signal in amplitude, especially non-stationary EEG signals. (2) real-time change detection is proposed based on RPM, which can be implemented in an online operation without any supervised training phase or prior knowledge. Meanwhile, it has a small detection delay in operation. Through experiments conducted on the Bern-Barcelona EEG database and real clinical application, we demonstrated promising performances of the proposed method indicating that the framework can be effectively applicable in future clinical applications.

Author Contributions

ZG and GL designed the framework and drafted the manuscript. GL, PY, and XL critically revised the content of the work. CL gave much valuable suggestions in the design of framework and helped us revise the manuscript critically. ZG, WS, ZX, and WZ tested the algorithm against the database and real application.

Conflict of Interest Statement

The authors declare that the research was conducted in the absence of any commercial or financial relationships that could be construed as a potential conflict of interest.

Acknowledgments

This work is supported in part by National Natural Science Foundation of China (61403232, 61327003, and 51775319) and Young Scholars Program of Shandong University (YSPSDU, 2015WLJH30).

Footnotes

1. ^Features corresponding to the signal {y1, y2, …, yL−1} are initialized as zeros.

2. ^M(1) is initialized as 1 in settings.

References

Abdulkader, S. N., Atia, A., and Mostafa, M. S. M. (2015). Brain computer interfacing: applications and challenges. Egypt. Inform. J. 16, 213–230. doi: 10.1016/j.eij.2015.06.002

CrossRef Full Text | Google Scholar

Amorim, E., Rittenberger, J. C., Zheng, J. J., Westover, M. B., Baldwin, M. E., Callaway, C. W., et al. (2016). Continuous EEG monitoring enhances multimodal outcome prediction in hypoxic–ischemic brain injury. Resuscitation 109, 121–126. doi: 10.1016/j.resuscitation.2016.08.012

PubMed Abstract | CrossRef Full Text | Google Scholar

Andrzejak, R. G., Schindler, K., and Rummel, C. (2012). Nonrandomness, nonlinear dependence, and nonstationarity of electroencephalographic recordings from epilepsy patients. Phys. Rev. E 86:046206. doi: 10.1103/PhysRevE.86.046206

PubMed Abstract | CrossRef Full Text | Google Scholar

Boashash, B., Azemi, G., and Khan, N. A. (2015). Principles of time–frequency feature extraction for change detection in non-stationary signals: applications to newborn EEG abnormality detection. Patt. Recogn. 48, 616–627. doi: 10.1016/j.patcog.2014.08.016

CrossRef Full Text | Google Scholar

Chen, H., Wu, W., and Lee, J. (2010). A wban-based real-time electroencephalogram monitoring system: design and implementation. J. Med. Syst. 34, 303–311. doi: 10.1007/s10916-008-9242-9

PubMed Abstract | CrossRef Full Text | Google Scholar

Cloostermans, M. C., de Vos, C. C., and van Putten, M. J. (2011). A novel approach for computer assisted EEG monitoring in the adult ICU. Clin. Neurophysiol. 122, 2100–2109. doi: 10.1016/j.clinph.2011.02.035

PubMed Abstract | CrossRef Full Text | Google Scholar

Doob, J. (1962). “Boundary properties of functions with finite dirichlet integrals,” in Annales de l'Institut Fourier, vol. 12, 573–621. doi: 10.5802/aif.126

CrossRef Full Text | Google Scholar

Devuyst, S., Dutoit, T., Stenuit, P., and Kerkhofs, M. (2010). “Automatic K-complexes detection in sleep EEG recordings using likelihood thresholds,” in Engineering in Medicine and Biology Society (EMBC), 2010 Annual International Conference of the IEEE (Buenos Aires), 4658–4661. doi: 10.1109/IEMBS.2010.5626447

PubMed Abstract | CrossRef Full Text | Google Scholar

D'Rozario, A. L., Dungan, G. C. II., Banks, S., Liu, P. Y., Wong, K. K., Killick, R., et al. (2015). An automated algorithm to identify and reject artefacts for quantitative EEG analysis during sleep in patients with sleep-disordered breathing. Sleep Breat. 19, 607–615. doi: 10.1007/s11325-014-1056-z

PubMed Abstract | CrossRef Full Text | Google Scholar

Gajic, D., Djurovic, Z., Gligorijevic, J., Di Gennaro, S., and Savic-Gajic, I. (2015). Detection of epileptiform activity in EEG signals based on time-frequency and non-linear analysis. Front. Comput. Neurosci. 9:38. doi: 10.3389/fncom.2015.00038

PubMed Abstract | CrossRef Full Text | Google Scholar

Gao, J., and Hu, J. (2013). Fast monitoring of epileptic seizures using recurrence time statistics of electroencephalography. Front. Comput. Neurosci. 7:122. doi: 10.3389/fncom.2013.00122

PubMed Abstract | CrossRef Full Text | Google Scholar

Gao, J., Sultan, H., Hu, J., and Tung, W.-W. (2010). Denoising nonlinear time series by adaptive filtering and wavelet shrinkage: a comparison. IEEE Signal Process. Lett. 17, 237–240. doi: 10.1109/LSP.2009.2037773

CrossRef Full Text | Google Scholar

Guerrero-Mosquera, C., Trigueros, A. M., Franco, J. I., and Navia-Vázquez, Á. (2010). New feature extraction approach for epileptic EEG signal detection using time-frequency distributions. Med. Biol. Eng. Comput. 48, 321–330. doi: 10.1007/s11517-010-0590-5

PubMed Abstract | CrossRef Full Text | Google Scholar

Ho, S.-S., and Wechsler, H. (2010). A martingale framework for detecting changes in data streams by testing exchangeability. IEEE Trans. Patt. Anal. Mach. Intell. 32, 2113–2127. doi: 10.1109/TPAMI.2010.48

PubMed Abstract | CrossRef Full Text | Google Scholar

Hopfengärtner, R., Kerling, F., Bauer, V., and Stefan, H. (2007). An efficient, robust and fast method for the offline detection of epileptic seizures in long-term scalp EEG recordings. Clin. Neurophysiol. 118, 2332–2343. doi: 10.1016/j.clinph.2007.07.017

PubMed Abstract | CrossRef Full Text | Google Scholar

Kortelainen, J., Vayrynen, E., Jia, X., Seppanen, T., and Thakor, N. (2012). “EEG-based detection of awakening from isoflurane anesthesia in rats,” in Engineering in Medicine and Biology Society (EMBC), 2012 Annual International Conference of the IEEE (SanDiego, CA: IEEE), 4279–4282. doi: 10.1109/EMBC.2012.6346912

PubMed Abstract | CrossRef Full Text | Google Scholar

Kumar, Y., Dewal, M., and Anand, R. (2014). Epileptic seizures detection in EEG using dwt-based apen and artificial neural network. Signal Image Video Process. 8, 1323–1334. doi: 10.1007/s11760-012-0362-9

CrossRef Full Text | Google Scholar

La Foresta, F., Mammone, N., and Morabito, F. C. (2009). PCA–ICA for automatic identification of critical events in continuous coma-EEG monitoring. Biomed. Signal Process. Control 4, 229–235. doi: 10.1016/j.bspc.2009.03.006

CrossRef Full Text | Google Scholar

Li, P., Karmakar, C., Yan, C., Palaniswami, M., and Liu, C. (2016). Classification of 5-S epileptic EEG recordings using distribution entropy and sample entropy. Front. Physiol. 7:136. doi: 10.3389/fphys.2016.00136

PubMed Abstract | CrossRef Full Text | Google Scholar

Liu, Y., Zhou, W., Yuan, Q., and Chen, S. (2012). Automatic seizure detection using wavelet transform and SVM in long-term intracranial EEG. IEEE Trans. Neural Syst. Rehabil. Eng. 20, 749–755. doi: 10.1109/TNSRE.2012.2206054

PubMed Abstract | CrossRef Full Text | Google Scholar

Mporas, I., Tsirka, V., Zacharaki, E. I., Koutroumanidis, M., Richardson, M., and Megalooikonomou, V. (2015). Seizure detection using EEG and ECG signals for computer-based monitoring, analysis and management of epileptic patients. Exp. Syst. Appl. 42, 3227–3233. doi: 10.1016/j.eswa.2014.12.009

CrossRef Full Text | Google Scholar

Mullen, T. R., Kothe, C. A., Chi, Y. M., Ojeda, A., Kerth, T., Makeig, S., et al. (2015). Real-time neuroimaging and cognitive monitoring using wearable dry EEG. IEEE Trans. Biomed. Eng. 62, 2553–2567. doi: 10.1109/TBME.2015.2481482

PubMed Abstract | CrossRef Full Text | Google Scholar

O'Neill, B. R., Handler, M. H., Tong, S., and Chapman, K. E. (2015). Incidence of seizures on continuous EEG monitoring following traumatic brain injury in children. J. Neurosurg. Pediatr. 16:167. doi: 10.3171/2014.12.PEDS14263

PubMed Abstract | CrossRef Full Text | Google Scholar

Pachori, R. B., and Bajaj, V. (2011). Analysis of normal and epileptic seizure EEG signals using empirical mode decomposition. Comput. Methods Prog. Biomed. 104, 373–381. doi: 10.1016/j.cmpb.2011.03.009

PubMed Abstract | CrossRef Full Text | Google Scholar

Saaid, M. M., Abas, W. W., Aroff, H., Mokhtar, N., Ramli, R., and Ibrahim, Z. (2011). “Change point detection of EEG signals based on particle swarm optimization,” in 5th Kuala Lumpur International Conference on Biomedical Engineering 2011 (Kuala Lumpur: Springer), 484–487.

Google Scholar

Saghafi, A., Tsokos, C. P., Goudarzi, M., and Farhidzadeh, H. (2017). Random eye state change detection in real-time using EEG signals. Exp. Syst. Appl. 72, 42–48. doi: 10.1016/j.eswa.2016.12.010

CrossRef Full Text | Google Scholar

Şen, B., and Peker, M. (2013). Novel approaches for automated epileptic diagnosis using FCBF selection and classification algorithms. Turk. J. Electr. Eng. Comput. Sci. 21(Suppl. 1), 2092–2109. doi: 10.3906/elk-1203-9

CrossRef Full Text | Google Scholar

Tzallas, A. T., Tsipouras, M. G., and Fotiadis, D. I. (2009). Epileptic seizure detection in EEGs using time–frequency analysis. IEEE Trans. Inform. Technol. Biomed. 13, 703–710. doi: 10.1109/TITB.2009.2017939

PubMed Abstract | CrossRef Full Text | Google Scholar

Vovk, V., Gammerman, A., and Shafer, G. (2005). Algorithmic Learning in a Random World. New York, NY: Springer Science & Business Media.

Google Scholar

Vovk, V., Nouretdinov, I., and Gammerman, A. (2003). “Testing exchangeability on-line,” in Machine Learning, Proceedings of the Twentieth International Conference (Washington, DC), 768–775.

Wang, D., Miao, D., and Blohm, G. (2012). Multi-class motor imagery EEG decoding for brain-computer interfaces. Front. Neurosci. 6:151. doi: 10.3389/fnins.2012.00151

PubMed Abstract | CrossRef Full Text | Google Scholar

Wang, S., Yang, M., Du, S., Yang, J., Liu, B., Gorriz, J. M., et al. (2016). Wavelet entropy and directed acyclic graph support vector machine for detection of patients with unilateral hearing loss in MRI scanning. Front. Comput. Neurosci. 10:106. doi: 10.3389/fncom.2016.00106

PubMed Abstract | CrossRef Full Text | Google Scholar

Wang, X. L. (2003). Comments on “detection of undocumented changepoints: a revision of the two-phase regression model”. J. Clim. 16, 3383–3385. doi: 10.1175/1520-0442(2003)016<3383:CODOUC>2.0.CO;2

CrossRef Full Text | Google Scholar

Yan, A., Zhou, W., Yuan, Q., Yuan, S., Wu, Q., Zhao, X., et al. (2015). Automatic seizure detection using stockwell transform and boosting algorithm for long-term EEG. Epilepsy Behav. 45, 8–14. doi: 10.1016/j.yebeh.2015.02.012

PubMed Abstract | CrossRef Full Text | Google Scholar

Yuan, S., Zhou, W., Li, J., and Wu, Q. (2016). Sparse representation-based EMD and BLDA for automatic seizure detection. Med. Biol. Eng. Comput. 55, 1227–1238. doi: 10.1007/s11517-016-1587-5

PubMed Abstract | CrossRef Full Text | Google Scholar

Yuan, S., Zhou, W., Yuan, Q., Zhang, Y., and Meng, Q. (2013). Automatic seizure detection using diffusion distance and BLDA in intracranial EEG. Epilepsy Behav. 31, 339–345. doi: 10.1016/j.yebeh.2013.10.005

PubMed Abstract | CrossRef Full Text | Google Scholar

Zhang, Y., Zhou, W., Yuan, S., and Yuan, Q. (2015). Seizure detection method based on fractal dimension and gradient boosting. Epilepsy Behav. 43, 30–38. doi: 10.1016/j.yebeh.2014.11.025

PubMed Abstract | CrossRef Full Text | Google Scholar

Keywords: electroencephalogram (EEG), automatic change detection, real-time monitoring, joint features, martingale test

Citation: Gao Z, Lu G, Yan P, Lyu C, Li X, Shang W, Xie Z and Zhang W (2018) Automatic Change Detection for Real-Time Monitoring of EEG Signals. Front. Physiol. 9:325. doi: 10.3389/fphys.2018.00325

Received: 09 May 2017; Accepted: 15 March 2018;
Published: 04 April 2018.

Edited by:

Ahsan H. Khandoker, Khalifa University, United Arab Emirates

Reviewed by:

Klaus Mathiak, RWTH Aachen Universität, Germany
Erwei Yin, China Astronaut Research and Training Center, China

Copyright © 2018 Gao, Lu, Yan, Lyu, Li, Shang, Xie and Zhang. This is an open-access article distributed under the terms of the Creative Commons Attribution License (CC BY). The use, distribution or reproduction in other forums is permitted, provided the original author(s) and the copyright owner are credited and that the original publication in this journal is cited, in accordance with accepted academic practice. No use, distribution or reproduction is permitted which does not comply with these terms.

*Correspondence: Guoliang Lu, bHVndW9saWFuZ0BzZHUuZWR1LmNu

Disclaimer: All claims expressed in this article are solely those of the authors and do not necessarily represent those of their affiliated organizations, or those of the publisher, the editors and the reviewers. Any product that may be evaluated in this article or claim that may be made by its manufacturer is not guaranteed or endorsed by the publisher.