Coder Social home page Coder Social logo

dss-on-epileptic-eeg-signals's Introduction

Summary

We used supervised machine learning techniques and more specifically regression to predict seizures. The database (https://grantome.com/grant/NIH/U24-NS063930-05) from which we took our data contains EEG recordings of 22 people, in which 9-42 experiments were performed with a small number of them containing one or more episodes of epilepsy. Each experiment contains approximately 1 hour of data from 22 different channels at a frequency of 256 values ​​per second.

We did two tests, one using the epilepsy experiments of the first patient and a second one with random epilepsy experiments from the first 10 patients.

Method

In fig1 we see an indicative experiment from the first patient in channel 12 and the period of epilepsy occurrence.

Then as shown in fig2 we select a period of 10 minutes before epilepsy and give a chance of epilepsy (green line). We chose this probability to rise after 2 minutes before it started, with a probability equal to 1 at the point where the epilepsy begins.

Within these 10 minutes we select intervals of one minute per second until the onset of epilepsy and in each interval we use the present frequencies to draw some conclusions. More specifically, this is done in each experiment and for each channel, for example

selecting a specific frequency from 10-14 (fig3) for each one minute window we take, we end up with the following indicative table. The columns present the different channels and the possibility of epilepsy (y) and for rows the one minute windows that we take per second, with the corresponding values ​​that result if we calculate the average amplitude of the frequencies from 10-14.

Results

In our results we tested a wide range of frequencies and chose the most efficient ones. The selection of all these frequencies was done in two ways, one by producing many random intervals and the other by choosing the most powerful ones.(fig4,fig5)

In the first test we used the six experiments with epileptic events of the first patient, where we trained at five of them and tested at the sixth. To evaluate the results we combined R squared, Mean Absolute Error and Mean Squared Error and selected the frequencies with the best measurements. The following figures show the average values of the best results. The green values are the real values and the blue ones are the predicted ones.










The table below shows the corresponding average values of the evaluation measures.

For the second test we used random experiments from ten different patients. In contrast to the previous case, the data were randomly distributed and the training was done on 70% of the data as well as the forecast on the remaining 30%. As shown here, the results are very good except Linear regression.













This analysis still has a lot of room for improvement but it could be a good start of a DSS for epileptic seizures prediction since we can see that there is a high success rate.

dss-on-epileptic-eeg-signals's People

Watchers

 avatar

Forkers

lina361

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.