Giter VIP home page Giter VIP logo

brain-state-classification-using-svm's Introduction

Brain-State-Classification-Using-SVM

Using Support Vector Machine and Prinicipal Component Analysis to classify Brain State from fMRI images

Image Preprocessing:

• Realignment of the brain fMRI images for standardization in Matlab

• Segmentation of the non-brain voxels in Matlab

Feature Selection

• Masking all the images to keep only the brain voxels in the image.

• Dimensionality reduction using PCA [Principal Component Analysis] so that only the important features of the image are retained in the process, thereby decreasing the training time.

Classification

• Classification of the brain images to be in 1 of the 4 states recorded: rest, finger movement, lips movement or foot movement.

• This is performed by training it using an SVM [Support Vector Machine] and finding the test set accuracy using K-Fold Cross Validation.

Running the code:

• Run the matlab files for realignment for test and retest images(test_realign.m and retest_realign.m). It would generate a realigned 3D image.

• Run the matlab files for segmentation (creating a mask) for the realigned test and retest images(test_segmentation.m and retest_segmentation.m). This file uses the realigned image generated in the previous step to create a background mask of the brain. I have used the 6th tissue which segments the brain voxels from the background voxels. Only the 6th tissue is selected(“Native Space”) while all the other tissues are not selected(“None”). It generates a mask image which is used for masking in the ipython file.

• Run the ipython notebook file for masking the images and implementing SVM and KFold Cross Validation for the test and the retest images(with and without PCA).

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.