Skip to content

isana25/NeuroScan

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

9 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

🧠 Brain Tumor Detection with CNN + Gradio

This project implements a deep learning model using Convolutional Neural Networks (CNN) to detect brain tumors from MRI scans. It features a clean, interactive Gradio interface that allows users to upload an image and receive a classification: Tumor or No Tumor.


πŸ“ Dataset Used

Brain MRI Images for Brain Tumor Detection

  • Binary classes: yes (tumor present) and no (no tumor)
  • Downloaded using kagglehub within the notebook

πŸ—οΈ Model Architecture

Custom CNN built with TensorFlow/Keras:

  • Input: 128x128 RGB image
  • Layers:
    • Conv2D (32 filters) β†’ MaxPooling
    • Conv2D (64 filters) β†’ MaxPooling
    • Flatten β†’ Dropout (0.5)
    • Dense (64) β†’ Dense (2 - softmax)

πŸ” What the Project Does

  • Downloads and loads MRI dataset using kagglehub
  • Preprocesses and normalizes images
  • Trains a CNN model to classify scans as Tumor/No Tumor
  • Provides an interactive Gradio interface for image-based prediction

πŸ”§ Tech Stack

Tech stack: Python, TensorFlow/Keras, NumPy, OpenCV, Gradio, Google Colab, Kaggle API


πŸš€ Google Colab Notebook

πŸ‘‰ Try the Colab Notebook


πŸ–Ό Demo

App Screenshot


πŸ“Œ Future Enhancements

  • Add Grad-CAM for explainability
  • Include multi-class tumor classification
  • Deploy model as a Hugging Face Space

πŸ“œ License

MIT License (or your choice)

About

Brain Tumor Detection using CNNs

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published