Skip to the content.

Brain Tumor Classification & Segmentation 🧠

Project Overview

This project implements a complete computer vision pipeline for brain tumor classification and segmentation using MRI images.

🔧 Technologies & Tools

🧩 Pipeline Overview

1. Dataset & Loading

2. Preprocessing & Augmentation

3. Model Architecture

4. Training

5. Evaluation & Inference

6. Results

ResNet18 Evaluation

              precision    recall  f1-score   support
glioma           0.99       0.98      0.99       254
meningioma       0.98       0.98      0.98       306
no_tumor         0.99       1.00      0.99       140
pituitary        0.99       0.99      0.99       300

accuracy                               0.99      1000
macro avg        0.99       0.99      0.99      1000
weighted avg     0.99       0.99      0.99      1000

6. Deployment

Demo Images

Classification and Segmentation Results

LLM-generated Medical Report

📦 Environment Setup Guide

1. Install Anaconda

Anaconda is recommended for managing Python environments and packages.

2. Create the Conda Environment

🚀 Running the Streamlit App

###1. Navigate to the project root directory

Ensure you are in the parent directory of the App/ folder:

project-root/
│
├── App/
│   └── Streamlit_Demo/
│       └── app.py
├── environment.yml
└── README.md

2. Run the app

streamlit run App/Streamlit_Demo/app.py

Terminal will show:

You can now view your Streamlit app in your browser.

  Local URL: http://localhost:8501
  Network URL: http://192.168.x.x:8501

Open the Local URL in your browser to access the app.

Stop anytime with Ctrl + C.