GithubHelp home page GithubHelp logo

princejavier / qnt_alzmrs_pred Goto Github PK

View Code? Open in Web Editor NEW
1.0 2.0 2.0 3.62 MB

FuQdan is a quantum computing algorithm that acts as a binary classifier for MRI scan images. The goal of this project is to classify MRI scan images as with dementia or no dementia. By leveraging the power of quantum computing, we aim to provide a more efficient method for analyzing MRI scans in terms of space complexity.

License: MIT License

Jupyter Notebook 84.89% Python 9.36% HTML 2.06% CSS 3.70%
alzheimer-disease-prediction image-classification quantum-computing

qnt_alzmrs_pred's Introduction

FuQdan: Quantum Image Classification for Alzheimer's Detection (Team 12)

What is this about

FuQdan is a quantum computing algorithm that acts as a binary classifier for MRI scan images. The goal of this project is to classify MRI scan images as with dementia or no dementia. By leveraging the power of quantum computing, we aim to provide a more efficient method for analyzing MRI scans in terms of space complexity.

We use the FRQI algorithm to represent an MRI scan image into quantum states and calculate a reference image of a scan with dementia. The reference image is derived from the mean of multiple images. Test images are compared against this reference image using a quantum algorithm that converts the image to quantum states via FRQI. We then calculate the fidelity between the reference image and a test image, convert this fidelity to euclidean distance, and classify the image based on a threshold.

How to use

Install the necessary packages

Install the necessary packages:

  • numpy
  • matplotlib
  • Pillow
  • opencv-python
  • qiskit
  • django

Download the dataset

Obtain MRI images from the Alzheimer's Dataset available at https://www.kaggle.com/datasets/tourist55/alzheimers-dataset-4-class-of-images

Run the notebooks

get_theta_rep.ipynb - This notebook contains the preprocessing of the grayscale image to vectors of theta values.

Quantum_Image_Classification.ipynb - This notebook contains the main quantum algorithm for measuring the similarity between an image and the reference image.

Run the get_theta_rep.ipynb notebook to preprocess the grayscale image into vectors of theta values. Run the Quantum_Image_Classification.ipynb notebook, which contains the algorithm that measures the similarity of an image with the reference image. The output will be the likelihood of Alzheimer's disease in the test images.

Web App (WIP)

A proof-of-concept web app takes in an MRI image and converts it to a list of theta values which can then get plugged into the quantum algorithm in Quantum_Image_Classification.ipynb.

Folders

sample_data: Contains sample MRI images for testing the algorithm.

Preprocessed_Dataset: Contains examples of the dataset preprocessed to be vectors of theta values, which then get encoded into quantum states by our quantum algorithm.

web_app: contains the code base for the web app

docs_slides: contains the PDF of the slide deck

Business Value

FuQdan provides an efficient approach to MRI scan analysis in terms of space complexity. Comparing our quantum computing algorithm with classical methods, we find that both have O(n) time complexity, where n is the number of pixels in an image. However, our quantum method has a space complexity of O(log_2 n) compared to O(n) in comparable classical methods, resulting in lower memory requirements. This can be valuable in healthcare settings, where efficient resource management and accurate diagnosis are essential.

This project is the output of a 3-day hackathon organized by NYU Abu Dhabi, running from April 28 to 30, 2023.

qnt_alzmrs_pred's People

Contributors

allesini99 avatar princejavier avatar princejavierdq avatar

Stargazers

 avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.