-
Notifications
You must be signed in to change notification settings - Fork 179
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Alzheimer’s Disease Classification Using Vision Transformers (ViT) #182
base: topic-recognition
Are you sure you want to change the base?
Alzheimer’s Disease Classification Using Vision Transformers (ViT) #182
Conversation
…n, and optimizer step.
…ternAnalysis-2024 into topic-recognition
This is an initial inspection Difficulty : Hard Recognition Problem: Commit Log: Documentation: Title: Done Pull Request Feedback: |
Observational Feedback Pull Request: File Organizing: Well-organized files. Commit Log: Documentation: |
Thank You for the feedback! I added Docstrings and changed README file as well as Pull Request accordingly. |
Marking
Marked as per the due date and changes after which aren't necessarily allowed to contribute to grade for fairness. |
Hi Gayan, thanks for marking my work. Just to highlight that I had an approved extension till 01/11/24 for the report. Kind Regards, |
Approved extension +2 Cant merge because of conflicting changes to main repo files (README). Please update for merge, doesn't affect grade. |
Hi Shakes, thanks for your feedback. I've resolved the issues you highlighted. Regards, |
Purpose
This pull request introduces a Vision Transformer (ViT) model designed for the classification of Alzheimer’s Disease using MRI scans from the ADNI dataset. The model leverages the self-attention mechanism inherent to Transformers to extract meaningful features across different regions of the brain, aiming to differentiate between 'Normal' and 'Alzheimer’s Disease' categories.
Description
Task Chosen: Implement a ViT-based classifier for Alzheimer’s Disease detection using MRI data from the ADNI dataset. The target was to achieve a balanced performance on the test set and to explore the effectiveness of Transformer models in medical imaging analysis.
Model: The implemented Vision Transformer model divides each input MRI image into non-overlapping patches, linearly embeds these patches, and processes them through a series of self-attention layers to learn spatial dependencies. The final output is passed through a classification head that predicts whether a given MRI scan indicates 'Normal' or 'Alzheimer’s Disease'.
Performance: The best model configuration achieved a training accuracy of 67.78%, validation accuracy of 69.66% and test accuracy of 68.20%. The training process included early stopping to avoid overfitting and a detailed analysis of the training and validation metrics.
Dataset Preparation (
dataset.py
):Network Modules (
modules.py
):Training Script (
train.py
):Testing Script (
predict.py
):Performance and Visualizations:
Request:
Kindly review the changes implemented in this pull request. If you find the modifications suitable, consider merging the request. Your feedback on possible improvements or further adjustments would be highly valued.
Thank You
Swastik Lohchab
47415056