This project is aimed at classifying MRI images into different categories using the FastAI library and a pretrained AlexNet model. MRI scans are essential in medical diagnostics, and automating the classification process can significantly aid in quicker and more accurate diagnoses.
- data/: The dataset used in this project is not included in this repository. You can download it from [Kaggle](https://www.kaggle.com/ or other medical imaging repositories.
- notebooks/: Jupyter notebooks for data preprocessing, model training, and evaluation.
MRI_Image_Classification_AlexNet.ipynb: Main notebook that includes all steps from data loading, preprocessing, model training, and evaluation.
- models/: Directory where the trained model weights will be saved (optional).
The dataset used for this project consists of MRI images, categorized by specific brain conditions. Due to medical data privacy, the dataset is not included in this repository. You can obtain a similar dataset from open sources like Kaggle or other medical imaging repositories.
-
Clone the repository:
git clone https://github.com/your-username/MRI-Image-Classification-FastAI-AlexNet.git cd MRI-Image-Classification-FastAI-AlexNet -
Set up the environment:
- Install the required dependencies using
pip:pip install -r requirements.txt
- Ensure that you have a compatible GPU if you want to speed up the training process.
- Install the required dependencies using
-
Prepare the data:
- Download the dataset and place it in the
data/directory. - Update the dataset path in the notebook accordingly.
- Download the dataset and place it in the
-
Run the Jupyter notebook:
- Open
MRI_Image_Classification_AlexNet.ipynbin Jupyter Notebook or JupyterLab. - Follow the steps outlined in the notebook to preprocess the data, train the model, and evaluate its performance.
- Open
-
Model Evaluation:
- The notebook includes detailed evaluation metrics, including accuracy, confusion matrix, and more to assess the model's performance.
- The AlexNet model achieved a significant accuracy in classifying MRI images, demonstrating its potential for use in real-world medical applications.
- The model's performance can be further improved by fine-tuning, using a more complex model, or augmenting the dataset.
- Experiment with other architectures like ResNet or EfficientNet.
- Explore transfer learning techniques using more advanced models.
- Apply data augmentation techniques to improve model robustness.
- The FastAI library for making deep learning accessible.
- The creators of the MRI dataset for providing the data used in this project.