Brain Tumor Classification is a hybrid deep learning and machine learning framework developed for automated brain tumor detection using MRI images. The project focuses on extracting highly discriminative deep features from multiple pretrained CNN architectures including ResNet, VGG16, and EfficientNet-B0.
This project presents a hybrid deep learning and machine learning framework for automated brain tumor classification using MRI images. The system focuses on extracting highly informative deep features from multiple pretrained CNN architectures and evaluating them using both traditional machine learning classifiers and fusion-based deep learning models.
The framework performs comparative analysis using multiple feature extractors including:
- ResNet50
- VGG16
- EfficientNet-B0
The extracted deep representations are further analyzed using several machine learning algorithms such as:
- Support Vector Machine (SVM)
- Random Forest
- Logistic Regression
- Gradient Boosting
- XGBoost
In addition to standalone feature evaluation, the project introduces a feature fusion strategy where embeddings from multiple CNN models are combined and passed through a fully connected deep neural network for final classification.
The MRI dataset contains four classes:
| Class | Description |
|---|---|
| Glioma | Brain glioma tumor MRI |
| Meningioma | Meningioma tumor MRI |
| Pituitary | Pituitary tumor MRI |
| No Tumor | Normal brain MRI |
The complete workflow includes:
- MRI Image Collection
- Image Preprocessing
- Transfer Learning Based Feature Extraction
- Deep Feature Fusion
- Machine Learning Classification
- Deep Learning Fusion Network
- Performance Evaluation & Visualization
- Hybrid Deep Learning + Machine Learning Architecture
- Transfer Learning using pretrained CNN models
- Deep Feature Extraction
- Multi-model Feature Fusion
- Comparative ML Classifier Evaluation
- GPU Optimized Training Pipeline
- Confusion Matrix Visualization
- Classification Reports & Performance Metrics
- Modular Experimental Framework
The framework evaluates performance using:
- Accuracy
- Precision
- Recall
- F1-Score
- Matthews Correlation Coefficient (MCC)
- Confusion Matrix
- Classification Report
brain-tumor-classification/
│
├── assets/
├── dataset/
├── notebooks/
├── src/
├── models/
├── outputs/
│
├── requirements.txt
├── setup.py
├── .gitignore
└── README.md| Category | Tools |
|---|---|
| Programming Language | Python |
| Deep Learning | PyTorch, TensorFlow |
| Machine Learning | Scikit-learn, XGBoost |
| Image Processing | OpenCV |
| Visualization | Matplotlib, Seaborn |
| Data Handling | NumPy, Pandas |
The primary objective of this work is to investigate how deep feature representations extracted from multiple CNN architectures can improve MRI-based brain tumor classification when integrated with traditional machine learning algorithms and fusion-based deep learning strategies.
- Attention-based feature fusion
- Vision Transformer integration
- Explainable AI (Grad-CAM)
- Web deployment
- Real-time MRI inference
- Lightweight edge deployment
Developed for research and educational purposes in medical image analysis and intelligent healthcare systems.

