Skip to content

Dementia is a neurodegenerative disorder, using this web-app we can predict whether the person is suffering from dementia or not

License

Notifications You must be signed in to change notification settings

SiddharthaShandilya/Dementia_detection_using_AI

Repository files navigation

forthebadge forthebadge forthebadge

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.

Table of contents

Project Overview

(Back to top)

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.

Installation

(Back to top)

  1. 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
  1. Copy the github url from the repository :
https://github.com/SiddharthaShandilya/Dementia_detection_using_AI.git
  1. 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.*  
  1. 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
  1. In case tou want to Activate the virtual env follow the given instructions: 👉 (click Here)

  2. Install all the libraries for the application.

pip3 install -r requirements.txt
  1. Once the environment is created use following commands to start
git init
dvc init
dvc dag
dvc repro
  1. Have a look at Recommended configurations and Custom configurations.



Custom configurations

(Back to top)

  1. In the project we are running flask application by using python3 which might not work so try below mentioned commands:
    python/python3 app.py
    or
    flask run 



Recommended configurations

(Back to top)

You can overwrite the existing code according to your needs and changing them.

  • Note :
  1. 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.

  1. 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.

Updating

(Back to top)

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



Output

(Back to top)

For Downloading Docker Image

docker pull centos104/dementia_detection_web_app

Below is some screenshot of the web application when it is successfully launched.

web_UI web_UI_backend_output



Uninstallation

(Back to top)

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

Future Work

(Back to top)

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.

References

(Back to top)

Dataset: https://www.kaggle.com/tourist55/alzheimers-dataset-4-class-of-images

XGBoost: https://xgboost.readthedocs.io/en/latest/index.html

About

Dementia is a neurodegenerative disorder, using this web-app we can predict whether the person is suffering from dementia or not

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published