This project focuses on predicting Alzheimer's disease stages using deep learning models applied to brain MRI data. Specifically, I have utilised the ConvNeXt architecture on ADNI and OASIS datasets, and MedViT on the ADNI dataset.
- Introduction
- Datasets
- Model Architectures
- Methodology
- Results
- Dependencies
- How to Run
- Acknowledgements
Alzheimer's Disease (AD) is a neurodegenerative disorder characterized by progressive cognitive decline. Early and accurate stage prediction can significantly help in timely interventions. This project explores deep learning-based MRI analysis for multi-class classification of Alzheimer's stages.
- Multi-class MRI dataset categorized into: Alzheimer's Disease (AD), Cognitive Impairment (CI), and Cognitively Normal (CN).
- Preprocessed axial slices were used for training.
- Contains MRI scans categorized similarly into stages of cognitive decline.
- Used for additional training and validation with ConvNeXt.
- Applied on both ADNI and OASIS datasets.
- Modern convolutional neural network architecture inspired by vision transformers.
- Used pretrained weights for transfer learning.
- Applied on ADNI dataset.
- Medical Vision Transformer architecture designed specifically for medical imaging tasks.
- Used pretrained weights to leverage learned features from large-scale medical image data.
-
Data Preparation:
- Loaded and preprocessed MRI slices.
- Resized images according to the requirement of tghe given models.
-
Model Training:
- Fine-tuned pretrained ConvNeXt and MedViT models.
- Hyperparameter tuning for optimal performance.
- Training progress, losses, and accuracies logged at each epoch.
-
Evaluation:
- Evaluated using metrics like accuracy, precision, recall, and confusion matrix.
- Separate train/validation/test splits maintained.
| Model | Dataset | Accuracy |
|---|---|---|
| ConvNeXt | ADNI | 99.33% |
| ConvNeXt | OASIS | 99.45% |
| MedViT | ADNI | 96.51% |
- Python 3.x
- PyTorch
- scikit-learn
- numpy
- pandas
- matplotlib
- torchvision
- timm (for ConvNeXt pretrained models)
- MedViT package (or custom MedViT implementation)
- tqdm
- Clone this repository:
git clone <your-repo-url>- Install the dependencies:
pip install -r requirements.txt-
Prepare the datasets (place ADNI and OASIS datasets in the
data/directory following the expected folder structure). -
Train the models:
python train_convnext.py # For ConvNeXt training
python train_medvit.py # For MedViT training- Evaluate the models:
python evaluate.py- ADNI: Alzheimer's Disease Neuroimaging Initiative
- OASIS: Open Access Series of Imaging Studies
- MedViT: Medical Vision Transformer authors for open-source pretrained models
- ConvNeXt: ConvNeXt authors for open-source pretrained models
Note: This project was conducted purely for academic and research purposes.