GithubHelp home page GithubHelp logo

mayanksharma21 / brain-tumor-detection Goto Github PK

View Code? Open in Web Editor NEW
1.0 2.0 0.0 6 KB

This Project is a simple implementation of a CNN model for brain tumor detection in MRI images.

Jupyter Notebook 100.00%

brain-tumor-detection's Introduction

Brain Tumor Detection using Convolutional Neural Networks (CNN)

This project uses deep learning to detect brain tumors in MRI images. The code is written in Python and uses Keras library for building the model.

Dataset

The dataset used for this project is available at Dataset. It contains 2 folders, "yes" and "no" which contains MRI images of the brain. The "yes" folder contains MRI images which are brain tumor positive and the "no" folder contains MRI images which are brain tumor negative.

Model Architecture

The model is a convolutional neural network (CNN) with three convolutional layers, each followed by a max pooling layer. The output of the third convolutional layer is flattened and fed to two fully connected layers with 64 and 1 neurons, respectively. The last layer uses sigmoid activation to produce a binary classification output.

Training and Evaluation

The dataset is split into training and testing sets, and the training data is normalized. The model is trained using binary cross-entropy loss and Adam optimizer for 10 epochs with a batch size of 16. The accuracy of the model is evaluated using the testing set.

Result

After training the model, it is saved in a '.h5' file format. During the testing phase, if the model outputs 1, it means a brain tumor is detected in the image; otherwise, if it outputs 0, no brain tumor is detected.

Video

BrainTumor.Video.mp4

brain-tumor-detection's People

Contributors

mayanksharma21 avatar

Stargazers

Bhuvneshwar Tyagi avatar

Watchers

Kostas Georgiou avatar  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.