This is a machine learning project that predicts whether a person is demented or not based on their brain MRI scans and other relevant information.
- Project Overview
- Installation
- Recommended configurations
- Custom configurations
- Updating
- Output
- Uninstallation
- Future Work
- References
Dementia is a progressive neurological disorder that affects millions of people worldwide. Early detection and diagnosis of dementia can significantly improve patient outcomes and quality of life. In this project, we have developed a machine learning model that predicts whether a person is demented or not based on their brain MRI scans and other relevant information.
Our model uses XGBoost, a popular machine learning algorithm, to train on a dataset of MRI scans and demographic information from patients with and without dementia. The model achieves an accuracy of 95% on the test set and has the potential to be a valuable tool for early detection and diagnosis of dementia.
- Install git (preferably, version >= 2.0) and python (preferably, version >=3.6) (windows) For Linux :
sudo yum instal git -y
sudo yum install python -y
- Copy the github url from the repository :
https://github.com/SiddharthaShandilya/Dementia_detection_using_AI.git
- Select a Directory in local system and use
git clone https://github.com/SiddharthaShandilya/Dementia_detection_using_AI.git
*Note for `git clone command` Please make sure that you have proper internet connection. *
*Note for `python` Please try to anaconda for running the app.*
- Create a seperate virtual environment to avoid conflict between python libraries :
python3 -m venv new-env
In case for anaconda we can use below commands
conda create --prefix ./env
conda activate ./env
-
In case tou want to Activate the virtual env follow the given instructions: 👉 (click Here)
-
Install all the libraries for the application.
pip3 install -r requirements.txt
- Once the environment is created use following commands to start
git init
dvc init
dvc dag
dvc repro
- Have a look at Recommended configurations and Custom configurations.
- In the project we are running flask application by using python3 which might not work so try below mentioned commands:
or
python/python3 app.py
flask run
You can overwrite the existing code according to your needs and changing them.
- Note :
- Please have a look at the dvc.yaml file , Here i have used python3.7 version so if your console takes python3 to run python make sure to change all the commands in dvc.yaml file.
- If any change regarding the file are concerned you are advised to change the config file in location ' /config/config.yaml '. For eg.. the location of dataset in thsi code is of a lcoal storage ../dementia_dataset, this might not be in you case so change the code accordingly.
Want to update to the latest version of dementia_detection
? make the required change and give us a pull request
git push https://github.com/SiddharthaShandilya/Dementia_detection_using_AI.git
For Downloading Docker Image
docker pull centos104/dementia_detection_web_app
Below is some screenshot of the web application when it is successfully launched.
Want to uninstall ? No issues (sob). Please feel free to open an issue regarding how we can enhance dementia_detection app
.
ctrl + A, ctrl + shift + delete
In the future, we plan to improve the accuracy of the model by using a larger dataset and exploring more advanced machine learning techniques. Additionally, we plan to deploy the model as a web application to make it more accessible to healthcare professionals and patients.
Dataset: https://www.kaggle.com/tourist55/alzheimers-dataset-4-class-of-images
XGBoost: https://xgboost.readthedocs.io/en/latest/index.html