1
$\begingroup$

I'm a Java developer completely naive of brain waves and such. Could anyone tell me how to compare them?

For instance, how can I compare:

enter image description here

and this:

enter image description here

What fields of study should I focus on? I understand there are some Pattern Recognition involved. Other than that, what else? Related Questions:

$\endgroup$
  • 1
    $\begingroup$ Self-help questions are discourage on this site. So if you could remove the personal references it would be appreciated. Additionally, are those brain waves comparing readings during a seizure to normal state? Finally, have you Googled "detecting seizures via EEG"? $\endgroup$ – Seanny123 Nov 20 '14 at 16:21
  • $\begingroup$ There are a number of important questions: How often would you like to do this, for how long, with what accuracy, with how many channels, and most importantly, to what purpose? If there are seizures that are asymptomatic, it has no clear purpose. If there are seizures that are symptomatic, but benign, than why bother? Lastly - please remove any identifying info as personal medical questions are misplaced here. Just say something like "I wish to detect seizures in a patient with X and synmptoms Y... Good luck. A noble cause, but think about the 'why' and 'whereto' before the 'how'. $\endgroup$ – AliceD Nov 21 '14 at 2:51
  • $\begingroup$ @Seanny123, I apologize for that personal reference. Yes, I have.The image I posted in the question is actually taken from an EEG of a nonconvulsive seizure. I have also found a reference about it. $\endgroup$ – Xina Torres Nov 22 '14 at 7:02
  • 1
    $\begingroup$ @ChrisStronks, I already removed it. Sorry about that. The patient's seizures are quite fatal. Sometimes his lips turn blue because he finds it hard to breathe when they happen. I have no idea with the accuracy. What I know is, I want to have the patient wear it everyday. I will be employing the use of a portable eeg headset for this. I'll probably be using an EPOC headset. The EPOC headset has 14 EEG channels. $\endgroup$ – Xina Torres Nov 22 '14 at 7:09
7
$\begingroup$

The field of study you should focus on is the one for which you have already identified in your paragraph above which is EEG based "brain-computer interface".

EEG signals are compared by their "features". Each of the signal you have provided above have different features. These features can be mean, variance, frequency, kurtosis, skewness of each of the signals (statistical parameters which also includes fractal dimension, Hjorth parameters, common spatial pattern, fano factor... ...) or power as computed through frequency space algorithms such as fast fourier transform.

More sophisticated techniques such as blind source separation, empirical mode decomposition and wavelet coherence (a phase domain approach) should yield additional insights but these are more reserved for research purposes.

The most common algorithm for post processing is the wavelet transform which plots the energy as a function of both time and frequency.

During a seizure, the wavelet transform will display a clear high energy periodic signal at the lower frequency. While highly efficient in pin pointing exactly where and how the seizure is happening, the wavelet transform is highly advanced (challenging to implement) and runs at O(n^2) for a naive implementation and O(nlogn) for a fast implementation. It is quite computationally expensive.

enter image description here

What you need to implement is a real time seizure detection based on EEG features.

(offline) This is done first by grabbing the EEG signal when he has a seizure using EEG headsets or through research, estimate what the characteristics of this type of seizures are. (this can be done even with a single electrode).

(real time) Once this done, hook the patient with the EEG headset and compute the features of the seizure signal at every other other second worth of samples as they stream into a computing platform. The features are constantly compared to the threshold features. When all these features are have their respective threshold (A and B and C and D all meets threshold). Send alert that a seizure is happening.

The threshold approach is a basic one, but because our brain continuously changing and EEG depends on many many external variables, what is commonly used in practice are the detection of seizure through artificial neural networks (ANN) - it will not only tell you when a seizure is happening but could in fact PREDICT when a seizure will occur! (*)

One challenge I can see with what you are attempting to do is that the patient will be constantly hooked up with a headset in order to perform real time seizure prediction. The distance between your USB and the headset will be a hard constraint. The headsets needs to be recharged frequently. Emotiv EPOC (one popular headset) contains 16 electrodes which can be quite burdensome when worn. Wet electrodes provides better data but requires delicate preparation which can take a long time. If worn constantly, I would pick a headset containing a few electrodes at key places like the frontal-polar lobe (since seizure is more easily picked up than other EEG patterns, we don't need many electrodes) and would choose one that is aesthetically pleasing (one from Neurosky or one of the recent headset from Emotiv i.e. insight) and has a long battery life time

Good luck

(*) Prediction of seizure onset in an in-vitro hippocampal slice model of epilepsy using Gaussian-based and wavelet-based artificial neural networks. - A. Chiu

$\endgroup$
  • $\begingroup$ I think you covered all the bases. Nice answer! $\endgroup$ – Chuck Sherrington Nov 20 '14 at 22:21
  • $\begingroup$ @Illegal Immigrant, I think with further research, I'll be able to heed your wise suggestions here. Thanks for the help :) Truly $\endgroup$ – Xina Torres Nov 22 '14 at 7:19
  • $\begingroup$ @Illegal Immigrant, it says in here inkling.com/read/youmans-neurological-surgery-winn-6th/… that the abnormalities occur in the boxed and encircle regions..in those specific channels...shouldn't I purchase a portable eeg device that measures the brain waves on those regions? I mean, I think each region has specific brain waves, right? So shouldn't I buy the EPOC headset rather than the Insight headset because it has more channels? $\endgroup$ – Xina Torres Nov 22 '14 at 8:06
  • $\begingroup$ @user3754176 This is a real challenge for you because you need to determine for your patient exactly where the seizure is happening. This is best done while the patient is having a seizure in a highly controlled environment. Please consult an actual clinician before moving on to human trials. In that literature you've provided seizure activities are detected in the right frontal, parietal and central lobes but I suspect that further studies have been done since that provides a better spatiality as to where most of the nonconvulsive seizures occur $\endgroup$ – Carlos - the Mongoose - Danger Nov 22 '14 at 8:54
  • $\begingroup$ @user3754176 Furthermore, brain waves are irrespective of location but can be made more prominent or more suppressed while performing certain activities. Brain waves of all frequencies delta, theta, beta, mu, alpha, gamma, HFOs occurs at all times but some are more prominent for example while a person is sleeping, or while a person is closing his or her eyes. The reason seizure produces high amplitude brain wave is because the brain waves have all became in sync inside of the brain and in a sense added up with one another $\endgroup$ – Carlos - the Mongoose - Danger Nov 22 '14 at 8:58

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.