Git Product home page Git Product logo

nuvinga / fibro-quannet-app Goto Github PK

View Code? Open in Web Editor NEW
1.0 1.0 0.0 8.97 MB

Codebase of the Fibro-QuanNet: Pulmonary Fibrosis Prognosis Prediction using Quantum Machine Learning

Home Page: https://github.com/nuvinga/fibro-quannet

License: Apache License 2.0

HTML 0.84% JavaScript 5.56% CSS 0.92% Jupyter Notebook 90.02% Python 2.66%
quantum-machine-learning thesis-code variational-circuit

fibro-quannet-app's Introduction

Fibro-QuanNet - Codebase

Researched & Developed By: Nuvin Godakanda Arachchi

Fibro-QuanNet is a Pulmonary Fibrosis Prognosis Prediction application utilizing Quantum Machine Learning to accurately predict the likely prognosis of PF (Pulmonary Fibrosis).

This code was developed as partial completion of my BEng (Hons) Software Engineering degree program at the University of Westminster.

The full thesis paper can be found on ResearchGate.

More information into the project can be found on my Fibro-QuanNet repository.

General Overview

This application utilises a Quantum Varariational Circuit as a layer on a Classical Multiple Quantile Regression machine learning model, which has proven (through the thesis linked above) to increase model accuracy and robustness measured through Laplace-Loglikelihood evaluation matrix and MRSE and MSE scores.

The model utilises the OSIC Pulmonary Fibrosis Dataset for training and basic testing of the model performance.

Requirements

  • Data
  • Software
    • Windows/ Mac/ Linux Operating System
    • Python 3
    • NodeJS
  • Hardware
    • Intel Core i7 (10th Gen)/ Apple M1 Pro or higher
    • Quantum Hardware
      • IBM Quantum (Provided through IBM-Quantum Labs/ PennyLane)
      • Google Cirq (Provided through Cirq/ PennyLane

For a more comprehensive set of requirements, refer to Chapter 3 in the full paper, available through Fibro-QuanNet repository or DOI.

How to run Fibro-QuanNet

The application consists of three main components

  • quantum-notebook - The Jupyter Notebook file for the models development (Using JetBrains: DataSpell)
  • fibro-quannet-frontent - The JavaScript based React frontend application (Using Visual Studio Code)
  • flask-server - Python based Flask API gateway (Using Visual Studio Code)

How to work with and run each component will be explained below.

quantum-noteboot

The notebook acts as a simple Jupyter Notebook, run using JetBrains: DataSpell (Ultimate Edition) using anaconda3 and python3. In order to run the notebook and recreate the results, follow the following steps:

  1. Add the OSIC Pulmonary Fibrosis Dataset into the osic-pulmonary-fibrosis-progression folder
  2. Add the OSIC Cached Dataset (Latency Encoded) available through Kaggle into the osic-cached-dataset folder.

If you wish to train the model, you will need to run the notebook from the imports and generate the neccessary weight exports (output on to the working directory).

fibro-quannet-frontent

This is a React-JS application, thus the normal steps to run a react app using NPM would work here.

Install the node-modules initially, and npm run start to start the localhost server.

Make sure you have already started the Flask-Server before starting the React App

fibro-quannet-frontent

This is also a basic flask server application. The virual envioronment venv can be source activated and have the server.py hosted.

Codebase utilization disclaimer

This codebase has been submmitted to the Turn-it-in global referencing scheme in 2023. Thus, utilizing this code directly in any acedemic work can result in plagiarism.

fibro-quannet-app's People

Contributors

nuvinga avatar

Stargazers

 avatar

Watchers

 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.