0% found this document useful (0 votes)
8 views13 pages

Disease Prediction with Machine Learning

The document discusses the use of machine learning, specifically the Naïve Bayes algorithm, in predicting diseases based on symptoms to enhance healthcare facilities. It outlines the process of creating a prediction model, including data preprocessing, model training, and user interface development using Tkinter. The conclusion emphasizes the transformative potential of machine learning in accurately diagnosing diseases and improving healthcare outcomes.

Uploaded by

physicsisfun24
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
8 views13 pages

Disease Prediction with Machine Learning

The document discusses the use of machine learning, specifically the Naïve Bayes algorithm, in predicting diseases based on symptoms to enhance healthcare facilities. It outlines the process of creating a prediction model, including data preprocessing, model training, and user interface development using Tkinter. The conclusion emphasizes the transformative potential of machine learning in accurately diagnosing diseases and improving healthcare outcomes.

Uploaded by

physicsisfun24
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd

Disease

Prediction •Submitted By : Priyanshu pandey

Model Using •Sec: B2


•Roll no- 47

Machine
•University Roll No.:2219338

Learning
Machine learning has revolutionized the way
we predict diseases. By using algorithms to
analyze datasets, machine learning can
Introductio accurately identify potential risks and
diagnose diseases at earlier stages.
n
In this presentation, we will discuss the
Model of machine learning in predicting
diseases and its implications on healthcare.
Predicts Diseases Based on symptoms(To
improve healthcare Facilities for
Patients).

Classical Diagnosis
Problem
Definition
Make a computer aided Prediction Model
which Takes Symptoms as Input using
suitable Machine Learning Algorithms.
WORKING FLOW

• 1. Importing libraries:
Numpy, pandas, sklearn
• 2. Data preprocessing:
fillna(),ravel()
• 3. Selecting Model:
Naïve Bayes (MultinomialNB)
• [Link] model and predicting the output
• 5. Model evaluation:
accuracy_score
• [Link]:
using tkinter for user interface by creating message box, button, text field
Dataset

• The dataset Used in this


Model is taken from
[Link] and is according to
a study conducted in Columbia
University.
Algorithm Used
• The Machine Learning algorithm used in this project is
Naïve Bayesian Algorithm, which is a type of
supervised Learning Algorithm and uses the
probabilistic approach on the dataset it is applied on.
• Naive Bayes is a family of algorithms that are based on
the Bayes Theorem, which states that the probability
of an event occurring is based on prior knowledge of
conditions that might be related to the event. The
"naive" in the name comes from the assumption that
the features in the data are independent of each
other, which is not always the case.
NAÏVE BAYES
Naïve Bayes algorithm is a supervised learning algorithm, which is
based on Bayes theorem and used for solving classification problems.

Gaussian Naive Bayes


Multinomial Naive Bayes
Bernoulli Naive Bayes
Procedure 1: Initial part
Import all the packages
required i.e., Tkinter for Create a list ‘L1’ which
GUI, NumPy for numerical contains all the symptoms
operations, Pandas for according to csv file.
reading csv file.

Then create an empty list


Create another list which ‘L2’ such that length of
contains all the diseases. L1=L2 and L2 have all
elements as 0.
• Perform same steps for
Procedure 2: both Testing and training
dataset.
Dataset part • Using panda to read csv
file.
• Replace with index.
• Make X as symptoms
and Y as disease.
• GUI stands for graphical
user interface and to
Creating GUI create it we use tkinter
package in python.
• We create a GUI that
takes 5 symptoms as
input from user and
predict the disease
according to the Dataset.
Result
Conclusion
In conclusion, machine learning has the potential to
revolutionize the way we predict and treat diseases. By
using algorithms to analyze large datasets, machine
learning can accurately identify potential risks and
diagnose diseases at earlier stages.
The implications of this technology are far-reaching
and could lead to improved healthcare outcomes for
patients around the world.
THANK YOU

You might also like