Skip to content

Karanmehra7107/Medical_Diagnosis

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

82 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.