Coder Social home page Coder Social logo

karanmehra7107 / medical_diagnosis Goto Github PK

View Code? Open in Web Editor NEW
10.0 1.0 9.0 30.45 MB

Medical Diagnosis A Machine Learning Based Web Application

Home Page: https://karanmehra7107.github.io/Medical_Diagnosis/templates/index.html

License: Apache License 2.0

Jupyter Notebook 72.84% Python 0.10% HTML 24.22% CSS 1.58% JavaScript 0.15% SCSS 1.11%
kidney-disease heart-disease liver-disease breast-cancer diabetes

medical_diagnosis's Introduction

Medical_Diagnosis | A Machine Learning Based Web Application

590-5901121_lovely-professional-university-logo-hd-png-download

Capstone-2: LPU | CAP347 CARGC0019

Pyhon 3.4 Python Frontend Frontend Bootstrap Bootstrap Bootstrap

Table of Content

• This repository consists of files required to deploy an WEB PAGE created with HTML, CSS, BOOTSTRAP, ML, DL on github.io platform.

Deep-Learning-vs-Machine-Learning

Problem Statment

The proposed project would be very useful in the medical field. In the proposed project a machine learning- based web application would be created for medical diagnosis. For a medical diagnosis, a machine learning model would be developed and integrated with the created web application. The user would be able to upload his medical data on the web application. The web application would pass this data to a developed machine learning model for health disease detection. After detection of health disease, if the person wants to take advice from a doctor then he can fix the appointment on the web application. A chat(Email) option would be provided on the web application to provide the communication between the patient and the doctor.

Why this Project?

Although, we know that humans can do the mistakes but machines doesnt. Plus we can check the predicted outcome accuracy with machine learning. So we go for Machine learning, Keeping this in mind we researched alot in the allopathic, homeopathy and ayurvedic data. Due to less research paper for the data set of patients in homeopathy and ayurvedic we go for allopathic data set that are avalible in Kaggle and UCI machine learning portals.

Flow chart

Front-end UX/UI, Back-end Machine learning, Deep learning flow chart

ml

Directory Tree

├── Pyhon notebooks code files
├── trained models.pkl file
├── static logos
├── Templates
│   ├── Home.html
│   ├── contact.html
│   ├── about us.html
│   ├── services.html
│   ├── css folder
│   ├── js folder
│   ├── images folder
│   └── fonts folder
│         ├── Diabetes
│         ├── Breast Cancer
│         ├── Heart Disease
│         ├── Kidney Disease
│         ├── Liver Disease
│         ├── Malaria
│         └── Pneumonia
├── app.py
├── readme.md
├── runtime.txt
└── requirements.txt


Quick start

Step-1: Download the files in the repository.
Step-2: Get into the downloaded folder, open command prompt in that directory and install all the dependencies using following command

pip install -r requirements.txt

Step-3: After successfull installation of all the dependencies, run the following command

python app.py
or
flask run

Step-4: Go to the New command prompt of root folder, run the following commands in new cmd terminal

cd templates
index.html

Screenshots

g1 g2 g3 g4 g5 g6 g7 Untitled Untitled1 2 3 7

Technical aspect

This webapp was developed using Flask Web Framework. The models used to predict the diseases were trained on large Datasets. All the links for datasets and the python notebooks used for model creation are mentioned below in this readme. The webapp can predict following Diseases:

  • Diabetes
  • Breast Cancer
  • Heart Disease
  • Kidney Disease
  • Liver Disease
  • Malaria
  • Pneumonia

Models with their Accuracy of Prediction

Disease Type of Model Accuracy
Diabetes Machine Learning Model 98.25%
Breast Cancer Machine Learning Model 98.25%
Heart Disease Machine Learning Model 85.25%
Kidney Disease Machine Learning Model 99%
Liver Disease Machine Learning Model 78%
Malaria Deep Learning Model(CNN) 96%
Pneumonia Deep Learning Model(CNN) 95%

NOTE
==> Python version 3.6.8 was used for the whole project.

Dataset Links All the datasets were used from kaggle.

Links for Python Notebooks used for model creation

Team

1622949162341

Karan Mehra (Data modeling, model integration, Front-end)
Surbhi (Exploratory Data cleaning, Data gathering)
Navdeep Nijjar (Quality assurance, content writter)

Special thanks to: Dr. Amar Singh (Assoicate professr) AI in data science & Machine learning.

License

Apache license

Copyright 2021 Karan Mehra | Surbhi | Navdeep

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

medical_diagnosis's People

Contributors

karanmehra7107 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

medical_diagnosis's Issues

Error in version conflict between dependencies.

I tried installing the required packages via pip3 install -r requirement.txt but it returned an error as.

ERROR: Cannot install -r requirements.txt (line 14), -r requirements.txt (line 20), -r requirements.txt (line 21), -r requirements.txt (line 26), -r requirements.txt (line 35), -r requirements.txt (line 36), numpy==1.19.0 and tensorflow==2.3.1 because these package versions have conflicting dependencies.

The conflict is caused by:
    The user requested numpy==1.19.0
    h5py 2.10.0 depends on numpy>=1.7
    keras-applications 1.0.8 depends on numpy>=1.9.1
    keras-preprocessing 1.1.2 depends on numpy>=1.9.1
    opt-einsum 3.2.1 depends on numpy>=1.7
    scikit-learn 0.23.1 depends on numpy>=1.13.3
    scipy 1.5.1 depends on numpy>=1.14.5
    tensorflow 2.3.1 depends on numpy<1.19.0 and >=1.16.0

To fix this you could try to:
1. loosen the range of package versions you've specified
2. remove package versions to allow pip attempt to solve the dependency conflict

ERROR: ResolutionImpossible: for help visit https://pip.pypa.io/en/latest/topics/dependency-resolution/#dealing-with-dependency-conflicts

Please help me in resolving this conflict, almost every package is having a version issue.

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.