TumorScope is a web application that classifies brain MRI scans into four categories:
- Glioma
- Meningioma
- Pituitary Tumor
- No Tumor
The app uses:
- Xception (Transfer Learning)
- Custom CNN Model
- Saliency Maps for interpretability
- Gemini 1.5 Flash (Google AI) to generate concise medical explanations for predictions
The project is deployed on Streamlit Cloud and provides an interactive user experience for radiologists, researchers, and students.
- Upload Brain MRI Images for classification
- Dual-Model Selection: Transfer Learning (Xception) or Custom CNN
- Saliency Map Generation to visualize important image regions
- AI-Powered Explanations via Gemini 1.5 Flash
- Interactive Probability Charts with Plotly
- Secure Deployment on Streamlit Cloud
Component | Technology |
---|---|
Frontend | Streamlit |
Model Training | TensorFlow / Keras |
Explainability | Gemini 1.5 Flash |
Visualization | OpenCV, Plotly |
Deployment | Streamlit Cloud |
git clone https://github.com/rahatmoktadir03/tumor-scope.git
cd tumor-scope
pip install -r requirements.txt
- Create a .env file in the project root:
GOOGLE_API_KEY=your-gemini-api-key
streamlit run streamlit_app.py
- Xception (Transfer Learning) – ~99% accuracy
- Custom CNN – ~98% accuracy
- Saliency Maps highlight critical regions for model interpretability
- Chat with MRI scan (using multimodal LLMs)
- Compare multiple models side-by-side
- Generate detailed diagnostic reports for doctors