Code Monkey home page Code Monkey logo

heart-disease-api's Introduction

Heart Disease Prediction API

This repository contains source code of our project for Provathon. Heart Disease Prediction API is Machine Learning based solution to predict risks of heart disease using a integrable API.

Description

Our solution is based on microservices architecture and the AI Model can be independently used in any other platform with ease. We've also included a demo dashboard of our smart watch simulator where we can receive patient's real time health data directly from his smart watch and use those value to get a realtime prediction of immediate risks of heart attacks in a patient. This real time prediction is also simulated in a continuous graph to warn the patients in case of any risks.
In similar way, our api can be integrated with any smart watches, hospital management system, health apps to get a real time prediction of immediate risks of heart attacks.

Technical Aspect

Response

{
  "status":"success",
  "value":"92",
  "risk":true,
}

status : If any error occured in backend it will say error else it will be set to success.
value : Confidence measure of the AI Model.
risk : boolean value which says if the risk of heart disease is high ( default threshold is 75% )

Installation and Test on Local Machine

Step 1: Installation of WebApp.

git clone https://github.com/Romansth/heart-disease-api.git
cd heart-disease-api/SmartWatch_Dashboard
pip install django requests numpy pickle django-cors-headers 
python manage.py runserver

Step 2: Installation of AI Model

cd heart-disease-api/api
pip install flask pickle numpy flask-cors
python Deployed_Flask_App.py

Step 3: Run Smartwatch Simulator

cd heart-disease-api
python smartwatch_simulator.py

Step 4: Go to localhost:8000/patient

After following all these steps, the demo app will successfully run on your local machine.

Feel free to contribute !

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.