Giter VIP home page Giter VIP logo

ml-workshop's Introduction

MRI Tumor Classification

MRI image

This repository attempts to classify brain tumors from MRI images given various machine learning classifiers.

The data was gathered from this Kaggle dataset, which separates MRI images by 'no' and 'yes'.

The methods used to classify the MRI images used in this repo include using a Convolutional Neural Network (CNN), performing Principal Component Analysis (PCA) on the training images that are fed into the CNN, and K-Nearest Neighbors (KNN).

Description of Files

Scripts

  1. CNN.ipynb : Details the steps performing a CNN on the MRI images found in no/ and yes/. CNN was run with 10 epochs.

  2. PCA_CNN.ipynb : Details the steps performing a CNN on the MRI images found in no/ and yes/. Training images were run through PCA before inputting into CNN. The number of components tested are the following: 2, 10, 30, and all (202) the components. CNN was run with 10 epochs.

  3. KNN.ipynb : Details the steps performing KNN on the MRI images found in no/ and yes/. KNN was iterated through all the odd numbers from 1 to 101 neighbors. A cross-validation of 5-folds was used.

Other

  1. no/ : Folder with MRI images that were classified as having no tumor.

  2. yes/ : Folder with MRI images that were classified as having a tumor.

Results

CNN

Accuracy after 10 epochs: 78.43%

alt text

PCA with CNN

2 component accuracy: 39.22%

alt text

10 component accuracy: 39.22%

alt text

30 component accuracy: 60.78%

alt text

202 component accuracy: 60.78%

alt text

KNN

Highest Cross-Validation Accuracy: 77.49% at 73 nearest neighbors

alt text

ml-workshop's People

Contributors

darintsui avatar

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.