BrainTumorAI is an advanced medical AI web application that detects brain tumors from MRI images using deep learning.
The system leverages YOLOv8 object detection to accurately localize tumors and presents results through a modern, user-friendly Flask web interface.
To design and develop an AI-based brain tumor detection system that can automatically analyze MRI images and highlight potential tumor regions, helping in early detection and medical research support.
Manual analysis of brain MRI scans is:
- Time-consuming
- Prone to human error
- Dependent on expert availability
Early and accurate tumor detection is critical, but manual screening can delay diagnosis.
BrainTumorAI provides an automated AI-driven solution that:
- Accepts brain MRI images (JPG / PNG)
- Uses YOLOv8 deep learning model for tumor detection
- Draws bounding boxes around detected tumor regions
- Displays uploaded and predicted images side-by-side
- Offers a clean, responsive, and modern UI
- Ensures fast inference and privacy-friendly processing
- Upload brain MRI image
- Image preprocessing
- YOLOv8 model inference
- Tumor region detection
- Bounding-box visualization
- Display results to user
- Convolutional Neural Networks (CNN)
- YOLOv8 Object Detection
- Image preprocessing with OpenCV
- Confidence-based prediction filtering
- Python
- Flask
- Ultralytics YOLOv8
- OpenCV
- NumPy
- HTML5
- CSS3
- Bootstrap 5
- Animate.css
- Brain tumor detection from MRI images
- YOLOv8-based bounding box visualization
- Fast and accurate AI inference
- Upload & predicted image comparison
- Modern red-pink gradient UI
- Frequently Asked Questions (FAQ) section
- Deployable on Render / Replit
- Original uploaded MRI image
- Detected tumor image with bounding boxes
- Visual AI-assisted diagnosis output
🌐 Live Demo
🚀 Try BrainTumorAI Live Experience real-time AI-powered brain tumor detection directly in your browser:
🔗 Live Application: 👉 https://braintumor-ai.onrender.com
git clone https://github.com/Ankitaghavate/BrainTumorAI.git
cd BrainTumorAI- Create a virtual environment (recommended)
python -m venv venv
# Windows
venv\Scripts\activate
# macOS/Linux
source venv/bin/activate- Install dependencies
pip install -r requirements.txt- Run the Flask application
python app.py- Open in your browser
http://127.0.0.1:5000/
Contributions are welcome! To contribute:
- Fork the repository
- Create a feature branch (
git checkout -b feature/YourFeature) - Commit your changes (
git commit -m 'Add some feature') - Open a Pull Request