Professional Documents
Culture Documents
BILASPUR
A project on
DIABETES PREDICTION
1. INTRODUCTION
2.
3.
4.
6.
7.
8.
9.
INTRODUCTION
Diabetes is a disease that occurs when your blood glucose, also called blood sugar,
is too high. Blood glucose is your main source of energy and comes from the food
you eat. Insulin, a hormone made by the pancreas, helps glucose from food get
into your cells to be used for energy. Sometimes your body doesn’t make enough
—or any—insulin or doesn’t use insulin well. Glucose then stays in your blood
and doesn’t reach your cells.
Diabetes is a chronic (long-lasting) health condition that affects how
our body turns food into energy.Our body breaks down most of the
food we eat into sugar (glucose) and releases it into our bloodstream.
When our blood sugar goes up, it signals our pancreas to release
insulin. Insulin acts like a key to let the blood sugar into our body’s cells
for use as energy.
With diabetes, our body doesn’t make enough insulin or can’t use it as
well as it should. When there isn’t enough insulin or cells
stop responding to insulin, too much blood sugar stays in our
bloodstream. Over time, that can cause serious health problems, such
as heart disease, vision loss, and kidney disease.
RISK FACTOR FOR DIABETES
The following are some of the known risk factors for diabetes.
Type 1 Diabetes
Type 1 diabetes is thought to be caused by an immune reaction (the body
attacks itself by mistake). Risk factors for type 1 diabetes are not as clear as for
prediabetes and type 2 diabetes. Known risk factors include:
• Family history: Having a parent, brother, or sister with type 1 diabetes.
• Age: You can get type 1 diabetes at any age, but it usually develops in children,
teens, or young adults.
• TYPE 2 Diabetes
• Have prediabetes
• Are overweight.
• Are 45 years or older
• Are physically active less than 3 times a week
ROLE OF MACHINE LEARNING IN DETECTION OF BREAST CANCER
A mammogram is an x-ray picture of the breast. It can be used to check for breast
cancer in women who have no signs or symptoms of the disease. It can also be used if
you have a lump or other sign of breast cancer. Screening mammography is the type of
mammogram that checks you when you have no symptoms. It can help reduce the
number of deaths from breast cancer among women ages 40 to 70. But it can also have
drawbacks.
Mammograms can sometimes find something that looks abnormal but isn't cancer.
This leads to further testing and can cause you anxiety. Sometimes mammograms can
miss cancer when it is there. It also exposes you to radiation. You should talk to your
doctor about the benefits and drawbacks of mammograms. Together, you can decide
when to start and how often to have a mammogram. Now while its difficult to figure
out for physicians by seeing only images of x-ray that weather the tumor is toxic or not
training a machine learning model according to the identification of tumour can be of
great help.
FLOW CHART
Model Creation
LOGISTIC REGRESSION
MODEL IMPLEMENTATION
KNEIGHBORS CLASSIFIER
MODEL IMPLEMENTATION
SVC
Models Comparison Table:
Training Accuracy
100 95.4902
93.2026
90
80
70
57.3856
60
50
40
30
20
10
0
LogisticRegression KNeighborsClassifier SVC
TESTING ACCURACY
Testing Accuracy
100
91.1111 91.1111
90
80
70
60
50 42.2222
40
30
20
10
0
LogisticRegression KNeighborsClassifier SVC
VISUALIZATION
PAIR PLOT :Plotting the violin plot to check the comparison of a
variable distribution:
VISUALIZATION
HEATMAP
Plotting the heatmap to check the correlation.
dataset.corr() is used to find the pairwise correlation of all columns in the
dataframe.
VISUALIZATION
BOXPLOT
It is created to display the summary of the set of data values having properties
like minimum, first quartile, median, third quartile and maximum.
VISUALIZATION
COUNTPLOT
countplot() method is used to Show the counts of observations in each
categorical bin using bars.
RESULT