Академический Документы
Профессиональный Документы
Культура Документы
RMP 2015
Torrey Pines High School, 3710 Del Mar Heights Rd., San Diego, CA 92130
e-mail address: gita.pm1@gmail.com
2
Department of Electrical and Computer Engineering, University of California, Santa Barbara, 93106, USA
Anticipating seizures can save a copious number of lives that are lost due to the fatality of the condition.
Furthermore, prediction provides the opportunity to adaptively administer treatments that mitigate the
intensity of the seizure. Despite these desirable outcomes, predicting epileptic seizures is a conundrum that
has eluded researchers because of their characteristic unpredictability. We have delved into detecting
seizure transition periods through signal processing and an implementation of discrete mathematics.
Drawing inspiration from least squares regression, we present an algorithm that generates a parameterized
curve to contour fit electroencephalogram (EEG) data. During the onset of a seizure, a sensitivity analysis
demonstrates that the data gradually changes into a patterned plot. Quantifying this anomalous change, we
hope to achieve real-time detection of epileptic seizures.
Keywords: Electroencephalogram (EEG) data, contour fitting, least squares regression, epilepsy
I. INTRODUCTION
Approximately one to two percent of the population
suffers from seizures. Seizures are infamous for their
unpredictability, and this characteristic is the chief reason
why the disability associated with epilepsy causes severe
impacts to quality of life for patients and their caregivers
[1]. Regardless of the aftermath of a seizure, the sheer
uncertainty is enough to prevent victims from participating
in activities such as cooking. The potential lies in
eradicating this uncertainty and returning quality of life
back to the victims. Already, biomedical engineers have
developed responses such as electrical stimulation and
vagus nerve stimulation (see Appendix A) that assist
patients during the onset of a seizure, but would be better
served if tailored to the intensity of the seizure.
Studies conducted by researcher Jan Pieter Pijn conclude
that the brain registers any stressful situation the body is
undergoing, hence depicting a noticeable change in the
presence of pain [2]. Moreover, measurements of EEG data
show that normal brain dynamics involve a limited,
transient synchronization of disorganized neural activity
that evolves into a persistent highly synchronized state
during an epileptic seizure [3]. Thus, we hypothesize that
the transition period is gradual and will allow us to quantify
changes distinct to an epileptic seizure.
Unfortunately, little progress has been made in real-time
prediction of epileptic seizures because the algorithm is
responsible for issuing a decision based solely on the
signals it has received. This limitation not only hinders the
accuracy of the algorithm, but also makes it extremely
arduous to classify the seizure. For instance, it would be
desirable to only detect the seizures that result in
irreversible damage, but this could vary from patient to
RMP 2015
!"
!"
!"
derivative
!!!
!"
and
!!!
!"
! =
! =
!!! !!!
(1)
2
!!! 2! + !!!
(2)
()!
1
+ ! + !! ! (3)
2
However, if the contour line is a poor representation of
the data, then it can be of no further use. So, we tested its
accuracy by interpolating between the averaged points and
calculating the line that truly passed through each point. We
applied a linear interpolation function to the data and
graphed the resulting line in white as shown in FIG 4.
Interpolation of a curve is explained in the Weierstrass
Theorem, and the foundation of its drawbacks is outlined
by Runges phenomenon (see Appendix A). Based on the
interpolated line, we were able to visually observe how
close the regression came to mimicking the precise
function. Referring to FIG. 4, we determined how well the
blue line fit the black dots. Our initial prediction
hypothesized that our algorithm came fairly close to
achieving a high level of precision. To mathematically test
this, we conducted an error analysis. Employing what has
been coined as the nearest neighbor method, we found the
Euclidean distance between a sample point on the contour
line and its neighbor that lies on the interpolated line.
Testing eighteen different bin numbers ranging from five to
one hundred in intervals of five, we manually calculated the
mean error, allowing us to conclude the optimal number of
bins that gave rise to the smallest degree of error.
RMP 2015
FIG. 5 (Error Graph). The graph shows the mean error between
the contour fit and the interpolated line at various bins values. 35
bins cause the contour fit to loop over itself and confuse the
proceeding steps of the algorithm; 100 bins provide the optimal
balance and create the smallest mean error.
IV. CONCLUSION
From the initial stages of this undertaking, our entire
method was based upon the idea behind least squares
regression. Interlacing this logic into the minutiae of our
algorithm, we applied Weierstrass Theorem to
parameterize the curve that connected each averaged data
point to its neighbors. Our method is particularly favorable
because it formulates a closed-loop as opposed to an open
loop, which permits the ability to adaptively dose the
patient. Consequently, advances in medical technology that
already allow seizure damage to be minimized could be
implemented even before a high intensity seizure transpires.
Moreover, our algorithm takes the unique approach of
functioning regardless of the pattern of EEG data. Rather, it
is able to map the gradual change in any brain signal and
issue a decision that can be analyzed by the naked eye. Our
eventual goal is to implement our algorithm in real-time.
This will replace the use of preprocessed data with brain
signals that are collected immediately from the patient.
Perhaps by quantifying the anomalies discussed at the
beginning of this paper, such as those in frequency and
amplitude, we will be able to differentiate between
classifications of seizures based on attributes unique to the
class. In this way, we aspire to develop upon our algorithm
to supply not only the occurrence of a seizure, but also the
intensity of it. This improved method will be a steppingstone to eradicating the uncertainty so prominent in the
lives of epilepsy patients.
RMP 2015
their continued support and friendship throughout this
exciting yet stressful experience.
1] R. S. Fisher, B. G. Vickrey, P. Gibson, B. Hermann, P.
Penovich, A. Scherer, and S. Walker, The impact of
epilepsy from the patients perspective I. Descriptions
and subjective perceptions, Epilepsy Research, pp.
3951.
[2] J. P. Pijn, J. V. Neerven, A. Noest, and F. H. L. D.
Silva, Chaos or noise in EEG signals; dependence on
state and brain site, Electroencephalography and
Clinical Neurophysiology, vol. 79, no. 5, pp. 371381,
1991.
[3] S. Ramgopal, S. Thome-Souza, M. Jackson, N. E.
Kadish, I. S. Fernndez, J. Klehm, W. Bosl, C.
Reinsberger, S. Schachter, and T. Loddenkemper,
Seizure detection, seizure prediction, and closed-loop
warning systems in epilepsy, Epilepsy & Behavior,
vol. 37, pp. 291307, 2014.
[4] R. S. Monderer, D. M. Harrison, and S. R. Haut,
Neurofeedback and epilepsy, Epilepsy & Behavior,
vol. 3, no. 3, pp. 214218, 2002.
[5] J. Fridley, J. G. Thomas, J. C. Navarro , and D.
Yoshor, Brain stimulation for the treatment of
epilepsy, Neurosurg Focus, pp. 8892, 2012.
APPENDIX
1.
a.
Medical Treatments
ACKNOWLEDGEMENTS
I would like to thank Abhejit Rajagopal for the countless
hours he put in and emails he wrote into helping me
accomplish the six-week endeavor that was coding this
algorithm. I also owe special thanks to Nithin Govindarajan
for assisting me in understanding the derivations and
mathematics behind the concepts we implemented as well
as Raymond Valdes and Dr. Lina Kim for revising my
paper. Thank you to my wonderful collaborators, Samara
Shaz and Priyanka Multani, and my buddies at RMP for
Definitions
2.
Theorems
lim ( max | ! | ) = 0
!! !!!!!
RMP 2015
4.
Additional Graphs
lim ( max | ! | ) =
!! !!!!!!
3.
Derivations
(! )!
!!!
! =
!!
!!
= ! +
! = ! + !
FIG. 1 (3-D EEG data plot). A 3-dimensional representation of the
preprocessed electroencephalogram data with arbitrary axes and
( , , ) coordinates plotted with respect to the independent
variable, time.
!
!
(! + ! ) = (, )
!!!
! + ! ! + !
! ! ! + ! ! ! + ! + ! ! ! ! !
+ ! !
! ! ! + 2! 2! ! 2! + ! + ! !
!
!
!
! ) + (
!!!
2! ) + (
!!!
2! ! )
!!!
2! ) + ! + (
+(
!!!
! ! )
!!!
! ! + ! + ! + ! + ! ! + !