Skip to content

almagashi/Brain_Tumor_Detection

Repository files navigation

Brain Tumor Detection - Visualization

To learn more about tumors, please check the Brain_Tumor.pdf file, where I analyze holistically the neuroscience behind tumors.

This project contains multiple classification models for brain tumor detection. The data set contains images of healthy brains and tumor brains with glioma, meningioma and pituitary tumors.

image

Data Manipulation and Algorithms

The data had to be manipulated to achieve class balance by undersampling.

To avoid overfitting, I used cross-validation in binary classification, and modified the layers in the neural network; as well as augmented the images with ImageGenerator.

image

We first use binary classification (Each tumor vs Healthy brains), by using these methods:

  • Binary classification:
    • Logistic Regression.
    • Logistic Regression + PCA
    • Support Vector Machines

Then, we use neural networks for multiclass-classification (Tell which class a tumor belongs to).

Metrics of performance

When classifying tumors, we need the accuracy to be high, and the false positives/negatives to be low. Thus, we observe these metrics across classifications.

Classes Best classification method Accuracy
Glioma vs Healthy Support Vector Machines ~91%
Meningioma vs Healthy Support Vector Machines and Logistic Regression ~85%
Pituitary vs Healthy Logistic Regression ~96%
Multi-class Neural Networks - Sequential ~65%

While the multi-class classification requires more intervention to classify better, we see that logistic regression and support vector machines tend to do best at classifying. The rates of false positives is more prevalent than false negatives, which in the context of tumors, it is better than the other way around. However, both false negatives and positives are detrimental for people with tumors. Let's take a look at all these False Positives/False Negatives.

Glioma vs Healthy - False Positives/Negatives (Support Vector Machines):

image

Meningioma vs Healthy - False Positives/Negatives (Logistic Regression/SVM - same results):

image

Pituitary vs Healthy - False Positives/Negatives (Logistic Regression):

image

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published