SlideShare ist ein Scribd-Unternehmen logo
1 von 24
Downloaden Sie, um offline zu lesen
HEART ATTACK PREDICTION BY MACHINE LEARNING(PYTHON)
BY
▪ MOHD
SABER
(17-5038)
▪ MOHD
IHTAESHAM
UDDIN
(17-5045)
(DCET-ECE)
Heart Attack Prediction Using Machine Learning
Abstract
Cardiovascular disease is one of the mostheinous disease, especially the silent heart attack, which
attacks a person so abruptly that there’s no time to get it treated and such disease is very difficult to
be diagnosed. Various medical data mining and machine learning techniques are being implemented
to extract the valuable information regarding the heart disease prediction. Yet, the accuracy of the
desired results are not satisfactory. This Model proposes a heart attack prediction system using
Machine learning techniques. Health care field has a vast amount of data, for processing those data
certain techniques are used. Datamining is one of the techniques often used. Heart disease is the
Leading cause of death worldwide. This System predicts the arising possibilities of Heart Disease. The
datasets used are classified in terms of medical parameters. This system evaluates those parameters
using data mining classification technique. The datasets are processed in python programming using
two main Machine Learning Algorithm namely Decision Tree Algorithm and Naive Bayes Algorithm
which shows the best algorithm among these two in terms of accuracy level of heart disease.
• IDLE we used in this project is JUPYTER NOTEBOOK.
• Requirements: Laptop with min 4 GB RAM, Anaconda,Jupyter Notebook, Python 3.7
What is Machine Learning?
programming a computer, to optimize performance standards, by using past experience
Machine learning is abranch of Artificial Intelligence
Calculation of algorithms allow computers to develop behavior's based on real data
Quick facts about Machine Learning
Machine learning
algorithms
Supervised
algorithms
Apply pastinformation
registered,tonewdata
Unsupervised
algorithms
Draw conclusions
from datasets
Reinforcement
algorithms
To make a sequence of
decisions.
Components of Machine Learning
Representation
Evaluation
Optimization
Case studies on Machine Learning
If amember
frequently “likes”
a friend’sposts,
thenews feedwill
automatically
start showing
more ofthat
friend’sactivity,
earlier inthe feed.
Machinelearning
algorithms have
helped reveal
previously
unrecognized
influences
between artists.
Netflixpredicts
the ratings an
individual will
give a movie,
which they
haven’teven
watchedyet,
based onprevious
movie ratings
made bythem.
Statistical method used to recommend a
movie on Netflix
Anybody can
ask aquestion
Anybodycan
answer
The bestanswers
are votedupand
rise to thetop
Industries which will benefit because of
Machine Learning and Artificial Intelligence
•AI financialadvisors willsoon replace
human advisors,ascomputerizedsystems
can scan tensof thousands of enterprises
to makequickrecommendations.
Finance
•Sequencing of individual genomes and
comparing them to a large database, will
allow doctors andAI bots to predict the
probability of contracting a particular
disease and a remedy to treatit, when it
appears.
Healthcare
Relationship
between ML,AI And
Deep Learning
MACHINE LEARNING LIFE CYCLE
GET DATA:
Kaggle which is so organized. They give you info on the features, data types, number of
records.
You can use their kernel too and you won’t have to download the dataset.
Reddit which is great for requesting the datasets we want.
Google Dataset Search which is still Beta, but it’s amazing.
UCI Machine Learning Repository, this one maintains 468 data sets as a service to the
machine learning community.
Data CleaningAnd Manupulating Steps in Machine Learning
TRANING AND TESTING THE MODEL
60%
30%
10%
VALIDATION
PROPOSED ALGORITHM:
Why use DecisionTrees?
There are various algorithms in Machinelearning, so choosing the best algorithm for the given dataset
and problem is the main point to remember while creating a machine learning model. Below are the two
reasons for using the Decision tree:
Decision Trees usuallymimic human thinkingabilitywhile making a decision, so it is easy to understand.
The logic behind the decision tree can be easily understood because it shows a tree-like structure.
EXAMPLE:
KN NEIGHBOUR CLASSIFIER
The k-nearest neighbors (KNN) algorithm is a simple, easy-to-implement supervised machine learning
algorithm that can be used to solve both classification and regression problems
A classificationproblem has a discrete value as its output. For example, “likespineappleon pizza” .
A regression problem has a real number (a number with a decimal point) as its output.
The KNN Algorithm
1.Load the data
2.InitializeK to your chosen number of neighbors
3. For each example in the data
3.1 Calculatethe distance between the query example and the current example from the data.
3.2 Add the distance and the index of the example to an ordered collection
4. Sort the ordered collection of distances and indices from smallest to largest (in ascending order) by
the distances
5. Pick the first K entries from the sorted collection
6. Get the labels of the selected K entries
7. If regression, return the mean of the K labels
8. If classification, return the mode of the K labels
DATA SET:
ABOUT THE DATA SET:
Age : Age of the patient
Sex : Sex of the patient
ca: number of major vessels (0-3)
cp : Chest Pain type
Value 1: typical angina
Value 2: atypicalangina
Value 3: non-anginal pain
Value 4: asymptomatic
trtbps : resting blood pressure (in mm Hg)
chol : cholestoral in mg/dl fetched via BMI sensor
fbs : (fasting blood sugar > 120 mg/dl) (1 = true; 0 = false)
restecg : resting electrocardiographicresults
Value 0: normal
Value 1: having ST-T wave abnormality(T wave inversions and/orST elevationor depression of >
0.05 mV)
Value 2: showing probableor definite left ventricularhypertrophy by Estes' criteria
thalach: maximum heart rate achieved
target : 0= less chance of heart attack 1= more chance of heart attack
VISUALIZING DATASET:
THALLIUM STRESS TEST
MAXIMUM
HEART RATE ACHIEVED
Heart Attack Prediction using Machine Learning
Heart Attack Prediction using Machine Learning

Weitere ähnliche Inhalte

Was ist angesagt?

Prediction of cardiovascular disease with machine learning
Prediction of cardiovascular disease with machine learningPrediction of cardiovascular disease with machine learning
Prediction of cardiovascular disease with machine learning
Pravinkumar Landge
 
Survey on data mining techniques in heart disease prediction
Survey on data mining techniques in heart disease predictionSurvey on data mining techniques in heart disease prediction
Survey on data mining techniques in heart disease prediction
Sivagowry Shathesh
 
Android Based Questionnaires Application for Heart Disease Prediction System
Android Based Questionnaires Application for Heart Disease Prediction SystemAndroid Based Questionnaires Application for Heart Disease Prediction System
Android Based Questionnaires Application for Heart Disease Prediction System
ijtsrd
 

Was ist angesagt? (20)

Heart disease prediction
Heart disease predictionHeart disease prediction
Heart disease prediction
 
Prediction of cardiovascular disease with machine learning
Prediction of cardiovascular disease with machine learningPrediction of cardiovascular disease with machine learning
Prediction of cardiovascular disease with machine learning
 
HEART DISEASE PREDICTION USING NAIVE BAYES ALGORITHM
HEART DISEASE PREDICTION USING NAIVE BAYES ALGORITHMHEART DISEASE PREDICTION USING NAIVE BAYES ALGORITHM
HEART DISEASE PREDICTION USING NAIVE BAYES ALGORITHM
 
Disease Prediction by Machine Learning Over Big Data From Healthcare Communities
Disease Prediction by Machine Learning Over Big Data From Healthcare CommunitiesDisease Prediction by Machine Learning Over Big Data From Healthcare Communities
Disease Prediction by Machine Learning Over Big Data From Healthcare Communities
 
HPPS: Heart Problem Prediction System using Machine Learning
HPPS: Heart Problem Prediction System using Machine LearningHPPS: Heart Problem Prediction System using Machine Learning
HPPS: Heart Problem Prediction System using Machine Learning
 
Project on disease prediction
Project on disease predictionProject on disease prediction
Project on disease prediction
 
HEALTH PREDICTION ANALYSIS USING DATA MINING
HEALTH PREDICTION ANALYSIS USING DATA  MININGHEALTH PREDICTION ANALYSIS USING DATA  MINING
HEALTH PREDICTION ANALYSIS USING DATA MINING
 
Cardiovascular Disease Prediction Using Machine Learning Approaches.pptx
Cardiovascular Disease Prediction Using Machine Learning Approaches.pptxCardiovascular Disease Prediction Using Machine Learning Approaches.pptx
Cardiovascular Disease Prediction Using Machine Learning Approaches.pptx
 
Disease Prediction And Doctor Appointment system
Disease Prediction And Doctor Appointment  systemDisease Prediction And Doctor Appointment  system
Disease Prediction And Doctor Appointment system
 
A Heart Disease Prediction Model using Logistic Regression By Cleveland DataBase
A Heart Disease Prediction Model using Logistic Regression By Cleveland DataBaseA Heart Disease Prediction Model using Logistic Regression By Cleveland DataBase
A Heart Disease Prediction Model using Logistic Regression By Cleveland DataBase
 
Survey on data mining techniques in heart disease prediction
Survey on data mining techniques in heart disease predictionSurvey on data mining techniques in heart disease prediction
Survey on data mining techniques in heart disease prediction
 
Heart Attack Prediction System Using Fuzzy C Means Classifier
Heart Attack Prediction System Using Fuzzy C Means ClassifierHeart Attack Prediction System Using Fuzzy C Means Classifier
Heart Attack Prediction System Using Fuzzy C Means Classifier
 
Diabetes prediction using machine learning
Diabetes prediction using machine learningDiabetes prediction using machine learning
Diabetes prediction using machine learning
 
IRJET - Effective Heart Disease Prediction using Distinct Machine Learning Te...
IRJET - Effective Heart Disease Prediction using Distinct Machine Learning Te...IRJET - Effective Heart Disease Prediction using Distinct Machine Learning Te...
IRJET - Effective Heart Disease Prediction using Distinct Machine Learning Te...
 
Diabetes prediction using different machine learning approaches
Diabetes prediction using different machine learning approachesDiabetes prediction using different machine learning approaches
Diabetes prediction using different machine learning approaches
 
Detection of heart diseases by data mining
Detection of heart diseases by data miningDetection of heart diseases by data mining
Detection of heart diseases by data mining
 
Heart Disease Prediction Using Data Mining Techniques
Heart Disease Prediction Using Data Mining TechniquesHeart Disease Prediction Using Data Mining Techniques
Heart Disease Prediction Using Data Mining Techniques
 
Heart Disease Prediction using Machine Learning Algorithm
Heart Disease Prediction using Machine Learning AlgorithmHeart Disease Prediction using Machine Learning Algorithm
Heart Disease Prediction using Machine Learning Algorithm
 
Android Based Questionnaires Application for Heart Disease Prediction System
Android Based Questionnaires Application for Heart Disease Prediction SystemAndroid Based Questionnaires Application for Heart Disease Prediction System
Android Based Questionnaires Application for Heart Disease Prediction System
 
Big Data Analytics
Big Data AnalyticsBig Data Analytics
Big Data Analytics
 

Ähnlich wie Heart Attack Prediction using Machine Learning

A data mining approach for prediction of heart disease using neural networks
A data mining approach for prediction of heart disease using neural networksA data mining approach for prediction of heart disease using neural networks
A data mining approach for prediction of heart disease using neural networks
IAEME Publication
 
A data mining approach for prediction of heart disease using neural networks
A data mining approach for prediction of heart disease using neural networksA data mining approach for prediction of heart disease using neural networks
A data mining approach for prediction of heart disease using neural networks
IAEME Publication
 
A data mining approach for prediction of heart disease using neural networks
A data mining approach for prediction of heart disease using neural networksA data mining approach for prediction of heart disease using neural networks
A data mining approach for prediction of heart disease using neural networks
IAEME Publication
 

Ähnlich wie Heart Attack Prediction using Machine Learning (20)

Short story_2.pptx
Short story_2.pptxShort story_2.pptx
Short story_2.pptx
 
Short story.pptx
Short story.pptxShort story.pptx
Short story.pptx
 
Chronic Kidney Disease Prediction Using Machine Learning
Chronic Kidney Disease Prediction Using Machine LearningChronic Kidney Disease Prediction Using Machine Learning
Chronic Kidney Disease Prediction Using Machine Learning
 
predictionofheartdiseaseusingmachinelearning.pdf
predictionofheartdiseaseusingmachinelearning.pdfpredictionofheartdiseaseusingmachinelearning.pdf
predictionofheartdiseaseusingmachinelearning.pdf
 
PPT.pptx
PPT.pptxPPT.pptx
PPT.pptx
 
Presentation
PresentationPresentation
Presentation
 
Introduction to machine_learning_us
Introduction to machine_learning_usIntroduction to machine_learning_us
Introduction to machine_learning_us
 
HEALTH PREDICTION ANALYSIS USING DATA MINING
HEALTH PREDICTION ANALYSIS USING DATA  MININGHEALTH PREDICTION ANALYSIS USING DATA  MINING
HEALTH PREDICTION ANALYSIS USING DATA MINING
 
IRJET- Predicting Heart Disease using Machine Learning Algorithm
IRJET- Predicting Heart Disease using Machine Learning AlgorithmIRJET- Predicting Heart Disease using Machine Learning Algorithm
IRJET- Predicting Heart Disease using Machine Learning Algorithm
 
heart disease predction using machiine learning
heart disease predction using machiine learningheart disease predction using machiine learning
heart disease predction using machiine learning
 
A comparative study of cn2 rule and svm algorithm
A comparative study of cn2 rule and svm algorithmA comparative study of cn2 rule and svm algorithm
A comparative study of cn2 rule and svm algorithm
 
An Ill-identified Classification to Predict Cardiac Disease Using Data Cluste...
An Ill-identified Classification to Predict Cardiac Disease Using Data Cluste...An Ill-identified Classification to Predict Cardiac Disease Using Data Cluste...
An Ill-identified Classification to Predict Cardiac Disease Using Data Cluste...
 
Disease Prediction Using Machine Learning Over Big Data
Disease Prediction Using Machine Learning Over Big DataDisease Prediction Using Machine Learning Over Big Data
Disease Prediction Using Machine Learning Over Big Data
 
Disease Prediction Using Machine Learning Over Big Data
Disease Prediction Using Machine Learning Over Big DataDisease Prediction Using Machine Learning Over Big Data
Disease Prediction Using Machine Learning Over Big Data
 
DISEASE PREDICTION USING MACHINE LEARNING OVER BIG DATA
DISEASE PREDICTION USING MACHINE LEARNING OVER BIG DATADISEASE PREDICTION USING MACHINE LEARNING OVER BIG DATA
DISEASE PREDICTION USING MACHINE LEARNING OVER BIG DATA
 
A Survey on Heart Disease Prediction Techniques
A Survey on Heart Disease Prediction TechniquesA Survey on Heart Disease Prediction Techniques
A Survey on Heart Disease Prediction Techniques
 
A data mining approach for prediction of heart disease using neural networks
A data mining approach for prediction of heart disease using neural networksA data mining approach for prediction of heart disease using neural networks
A data mining approach for prediction of heart disease using neural networks
 
A data mining approach for prediction of heart disease using neural networks
A data mining approach for prediction of heart disease using neural networksA data mining approach for prediction of heart disease using neural networks
A data mining approach for prediction of heart disease using neural networks
 
A data mining approach for prediction of heart disease using neural networks
A data mining approach for prediction of heart disease using neural networksA data mining approach for prediction of heart disease using neural networks
A data mining approach for prediction of heart disease using neural networks
 
IRJET - Cloud based Enhanced Cardiac Disease Prediction using Naïve Bayesian ...
IRJET - Cloud based Enhanced Cardiac Disease Prediction using Naïve Bayesian ...IRJET - Cloud based Enhanced Cardiac Disease Prediction using Naïve Bayesian ...
IRJET - Cloud based Enhanced Cardiac Disease Prediction using Naïve Bayesian ...
 

Kürzlich hochgeladen

Call Girls Begur Just Call 👗 7737669865 👗 Top Class Call Girl Service Bangalore
Call Girls Begur Just Call 👗 7737669865 👗 Top Class Call Girl Service BangaloreCall Girls Begur Just Call 👗 7737669865 👗 Top Class Call Girl Service Bangalore
Call Girls Begur Just Call 👗 7737669865 👗 Top Class Call Girl Service Bangalore
amitlee9823
 
➥🔝 7737669865 🔝▻ malwa Call-girls in Women Seeking Men 🔝malwa🔝 Escorts Ser...
➥🔝 7737669865 🔝▻ malwa Call-girls in Women Seeking Men  🔝malwa🔝   Escorts Ser...➥🔝 7737669865 🔝▻ malwa Call-girls in Women Seeking Men  🔝malwa🔝   Escorts Ser...
➥🔝 7737669865 🔝▻ malwa Call-girls in Women Seeking Men 🔝malwa🔝 Escorts Ser...
amitlee9823
 
Call Girls Bannerghatta Road Just Call 👗 7737669865 👗 Top Class Call Girl Ser...
Call Girls Bannerghatta Road Just Call 👗 7737669865 👗 Top Class Call Girl Ser...Call Girls Bannerghatta Road Just Call 👗 7737669865 👗 Top Class Call Girl Ser...
Call Girls Bannerghatta Road Just Call 👗 7737669865 👗 Top Class Call Girl Ser...
amitlee9823
 
Call Girls In Shalimar Bagh ( Delhi) 9953330565 Escorts Service
Call Girls In Shalimar Bagh ( Delhi) 9953330565 Escorts ServiceCall Girls In Shalimar Bagh ( Delhi) 9953330565 Escorts Service
Call Girls In Shalimar Bagh ( Delhi) 9953330565 Escorts Service
9953056974 Low Rate Call Girls In Saket, Delhi NCR
 
CHEAP Call Girls in Saket (-DELHI )🔝 9953056974🔝(=)/CALL GIRLS SERVICE
CHEAP Call Girls in Saket (-DELHI )🔝 9953056974🔝(=)/CALL GIRLS SERVICECHEAP Call Girls in Saket (-DELHI )🔝 9953056974🔝(=)/CALL GIRLS SERVICE
CHEAP Call Girls in Saket (-DELHI )🔝 9953056974🔝(=)/CALL GIRLS SERVICE
9953056974 Low Rate Call Girls In Saket, Delhi NCR
 
Abortion pills in Doha Qatar (+966572737505 ! Get Cytotec
Abortion pills in Doha Qatar (+966572737505 ! Get CytotecAbortion pills in Doha Qatar (+966572737505 ! Get Cytotec
Abortion pills in Doha Qatar (+966572737505 ! Get Cytotec
Abortion pills in Riyadh +966572737505 get cytotec
 
Call Girls In Bellandur ☎ 7737669865 🥵 Book Your One night Stand
Call Girls In Bellandur ☎ 7737669865 🥵 Book Your One night StandCall Girls In Bellandur ☎ 7737669865 🥵 Book Your One night Stand
Call Girls In Bellandur ☎ 7737669865 🥵 Book Your One night Stand
amitlee9823
 
Call Girls Jalahalli Just Call 👗 7737669865 👗 Top Class Call Girl Service Ban...
Call Girls Jalahalli Just Call 👗 7737669865 👗 Top Class Call Girl Service Ban...Call Girls Jalahalli Just Call 👗 7737669865 👗 Top Class Call Girl Service Ban...
Call Girls Jalahalli Just Call 👗 7737669865 👗 Top Class Call Girl Service Ban...
amitlee9823
 
Chintamani Call Girls: 🍓 7737669865 🍓 High Profile Model Escorts | Bangalore ...
Chintamani Call Girls: 🍓 7737669865 🍓 High Profile Model Escorts | Bangalore ...Chintamani Call Girls: 🍓 7737669865 🍓 High Profile Model Escorts | Bangalore ...
Chintamani Call Girls: 🍓 7737669865 🍓 High Profile Model Escorts | Bangalore ...
amitlee9823
 
Escorts Service Kumaraswamy Layout ☎ 7737669865☎ Book Your One night Stand (B...
Escorts Service Kumaraswamy Layout ☎ 7737669865☎ Book Your One night Stand (B...Escorts Service Kumaraswamy Layout ☎ 7737669865☎ Book Your One night Stand (B...
Escorts Service Kumaraswamy Layout ☎ 7737669865☎ Book Your One night Stand (B...
amitlee9823
 

Kürzlich hochgeladen (20)

Accredited-Transport-Cooperatives-Jan-2021-Web.pdf
Accredited-Transport-Cooperatives-Jan-2021-Web.pdfAccredited-Transport-Cooperatives-Jan-2021-Web.pdf
Accredited-Transport-Cooperatives-Jan-2021-Web.pdf
 
Call Girls Begur Just Call 👗 7737669865 👗 Top Class Call Girl Service Bangalore
Call Girls Begur Just Call 👗 7737669865 👗 Top Class Call Girl Service BangaloreCall Girls Begur Just Call 👗 7737669865 👗 Top Class Call Girl Service Bangalore
Call Girls Begur Just Call 👗 7737669865 👗 Top Class Call Girl Service Bangalore
 
➥🔝 7737669865 🔝▻ malwa Call-girls in Women Seeking Men 🔝malwa🔝 Escorts Ser...
➥🔝 7737669865 🔝▻ malwa Call-girls in Women Seeking Men  🔝malwa🔝   Escorts Ser...➥🔝 7737669865 🔝▻ malwa Call-girls in Women Seeking Men  🔝malwa🔝   Escorts Ser...
➥🔝 7737669865 🔝▻ malwa Call-girls in Women Seeking Men 🔝malwa🔝 Escorts Ser...
 
Invezz.com - Grow your wealth with trading signals
Invezz.com - Grow your wealth with trading signalsInvezz.com - Grow your wealth with trading signals
Invezz.com - Grow your wealth with trading signals
 
Call Girls in Sarai Kale Khan Delhi 💯 Call Us 🔝9205541914 🔝( Delhi) Escorts S...
Call Girls in Sarai Kale Khan Delhi 💯 Call Us 🔝9205541914 🔝( Delhi) Escorts S...Call Girls in Sarai Kale Khan Delhi 💯 Call Us 🔝9205541914 🔝( Delhi) Escorts S...
Call Girls in Sarai Kale Khan Delhi 💯 Call Us 🔝9205541914 🔝( Delhi) Escorts S...
 
Discover Why Less is More in B2B Research
Discover Why Less is More in B2B ResearchDiscover Why Less is More in B2B Research
Discover Why Less is More in B2B Research
 
Call Girls Bannerghatta Road Just Call 👗 7737669865 👗 Top Class Call Girl Ser...
Call Girls Bannerghatta Road Just Call 👗 7737669865 👗 Top Class Call Girl Ser...Call Girls Bannerghatta Road Just Call 👗 7737669865 👗 Top Class Call Girl Ser...
Call Girls Bannerghatta Road Just Call 👗 7737669865 👗 Top Class Call Girl Ser...
 
Anomaly detection and data imputation within time series
Anomaly detection and data imputation within time seriesAnomaly detection and data imputation within time series
Anomaly detection and data imputation within time series
 
Call Girls In Shalimar Bagh ( Delhi) 9953330565 Escorts Service
Call Girls In Shalimar Bagh ( Delhi) 9953330565 Escorts ServiceCall Girls In Shalimar Bagh ( Delhi) 9953330565 Escorts Service
Call Girls In Shalimar Bagh ( Delhi) 9953330565 Escorts Service
 
CHEAP Call Girls in Saket (-DELHI )🔝 9953056974🔝(=)/CALL GIRLS SERVICE
CHEAP Call Girls in Saket (-DELHI )🔝 9953056974🔝(=)/CALL GIRLS SERVICECHEAP Call Girls in Saket (-DELHI )🔝 9953056974🔝(=)/CALL GIRLS SERVICE
CHEAP Call Girls in Saket (-DELHI )🔝 9953056974🔝(=)/CALL GIRLS SERVICE
 
Generative AI on Enterprise Cloud with NiFi and Milvus
Generative AI on Enterprise Cloud with NiFi and MilvusGenerative AI on Enterprise Cloud with NiFi and Milvus
Generative AI on Enterprise Cloud with NiFi and Milvus
 
Abortion pills in Doha Qatar (+966572737505 ! Get Cytotec
Abortion pills in Doha Qatar (+966572737505 ! Get CytotecAbortion pills in Doha Qatar (+966572737505 ! Get Cytotec
Abortion pills in Doha Qatar (+966572737505 ! Get Cytotec
 
CebaBaby dropshipping via API with DroFX.pptx
CebaBaby dropshipping via API with DroFX.pptxCebaBaby dropshipping via API with DroFX.pptx
CebaBaby dropshipping via API with DroFX.pptx
 
Call Girls In Bellandur ☎ 7737669865 🥵 Book Your One night Stand
Call Girls In Bellandur ☎ 7737669865 🥵 Book Your One night StandCall Girls In Bellandur ☎ 7737669865 🥵 Book Your One night Stand
Call Girls In Bellandur ☎ 7737669865 🥵 Book Your One night Stand
 
VIP Model Call Girls Hinjewadi ( Pune ) Call ON 8005736733 Starting From 5K t...
VIP Model Call Girls Hinjewadi ( Pune ) Call ON 8005736733 Starting From 5K t...VIP Model Call Girls Hinjewadi ( Pune ) Call ON 8005736733 Starting From 5K t...
VIP Model Call Girls Hinjewadi ( Pune ) Call ON 8005736733 Starting From 5K t...
 
Call Girls Jalahalli Just Call 👗 7737669865 👗 Top Class Call Girl Service Ban...
Call Girls Jalahalli Just Call 👗 7737669865 👗 Top Class Call Girl Service Ban...Call Girls Jalahalli Just Call 👗 7737669865 👗 Top Class Call Girl Service Ban...
Call Girls Jalahalli Just Call 👗 7737669865 👗 Top Class Call Girl Service Ban...
 
Halmar dropshipping via API with DroFx
Halmar  dropshipping  via API with DroFxHalmar  dropshipping  via API with DroFx
Halmar dropshipping via API with DroFx
 
Chintamani Call Girls: 🍓 7737669865 🍓 High Profile Model Escorts | Bangalore ...
Chintamani Call Girls: 🍓 7737669865 🍓 High Profile Model Escorts | Bangalore ...Chintamani Call Girls: 🍓 7737669865 🍓 High Profile Model Escorts | Bangalore ...
Chintamani Call Girls: 🍓 7737669865 🍓 High Profile Model Escorts | Bangalore ...
 
Escorts Service Kumaraswamy Layout ☎ 7737669865☎ Book Your One night Stand (B...
Escorts Service Kumaraswamy Layout ☎ 7737669865☎ Book Your One night Stand (B...Escorts Service Kumaraswamy Layout ☎ 7737669865☎ Book Your One night Stand (B...
Escorts Service Kumaraswamy Layout ☎ 7737669865☎ Book Your One night Stand (B...
 
(NEHA) Call Girls Katra Call Now 8617697112 Katra Escorts 24x7
(NEHA) Call Girls Katra Call Now 8617697112 Katra Escorts 24x7(NEHA) Call Girls Katra Call Now 8617697112 Katra Escorts 24x7
(NEHA) Call Girls Katra Call Now 8617697112 Katra Escorts 24x7
 

Heart Attack Prediction using Machine Learning

  • 1. HEART ATTACK PREDICTION BY MACHINE LEARNING(PYTHON) BY ▪ MOHD SABER (17-5038) ▪ MOHD IHTAESHAM UDDIN (17-5045) (DCET-ECE)
  • 2. Heart Attack Prediction Using Machine Learning Abstract Cardiovascular disease is one of the mostheinous disease, especially the silent heart attack, which attacks a person so abruptly that there’s no time to get it treated and such disease is very difficult to be diagnosed. Various medical data mining and machine learning techniques are being implemented to extract the valuable information regarding the heart disease prediction. Yet, the accuracy of the desired results are not satisfactory. This Model proposes a heart attack prediction system using Machine learning techniques. Health care field has a vast amount of data, for processing those data certain techniques are used. Datamining is one of the techniques often used. Heart disease is the Leading cause of death worldwide. This System predicts the arising possibilities of Heart Disease. The datasets used are classified in terms of medical parameters. This system evaluates those parameters using data mining classification technique. The datasets are processed in python programming using two main Machine Learning Algorithm namely Decision Tree Algorithm and Naive Bayes Algorithm which shows the best algorithm among these two in terms of accuracy level of heart disease. • IDLE we used in this project is JUPYTER NOTEBOOK. • Requirements: Laptop with min 4 GB RAM, Anaconda,Jupyter Notebook, Python 3.7
  • 3. What is Machine Learning? programming a computer, to optimize performance standards, by using past experience Machine learning is abranch of Artificial Intelligence Calculation of algorithms allow computers to develop behavior's based on real data
  • 4. Quick facts about Machine Learning Machine learning algorithms Supervised algorithms Apply pastinformation registered,tonewdata Unsupervised algorithms Draw conclusions from datasets Reinforcement algorithms To make a sequence of decisions.
  • 5. Components of Machine Learning Representation Evaluation Optimization
  • 6. Case studies on Machine Learning If amember frequently “likes” a friend’sposts, thenews feedwill automatically start showing more ofthat friend’sactivity, earlier inthe feed. Machinelearning algorithms have helped reveal previously unrecognized influences between artists. Netflixpredicts the ratings an individual will give a movie, which they haven’teven watchedyet, based onprevious movie ratings made bythem.
  • 7. Statistical method used to recommend a movie on Netflix Anybody can ask aquestion Anybodycan answer The bestanswers are votedupand rise to thetop
  • 8. Industries which will benefit because of Machine Learning and Artificial Intelligence •AI financialadvisors willsoon replace human advisors,ascomputerizedsystems can scan tensof thousands of enterprises to makequickrecommendations. Finance •Sequencing of individual genomes and comparing them to a large database, will allow doctors andAI bots to predict the probability of contracting a particular disease and a remedy to treatit, when it appears. Healthcare
  • 11. GET DATA: Kaggle which is so organized. They give you info on the features, data types, number of records. You can use their kernel too and you won’t have to download the dataset. Reddit which is great for requesting the datasets we want. Google Dataset Search which is still Beta, but it’s amazing. UCI Machine Learning Repository, this one maintains 468 data sets as a service to the machine learning community.
  • 12. Data CleaningAnd Manupulating Steps in Machine Learning
  • 13. TRANING AND TESTING THE MODEL 60% 30% 10% VALIDATION
  • 14. PROPOSED ALGORITHM: Why use DecisionTrees? There are various algorithms in Machinelearning, so choosing the best algorithm for the given dataset and problem is the main point to remember while creating a machine learning model. Below are the two reasons for using the Decision tree: Decision Trees usuallymimic human thinkingabilitywhile making a decision, so it is easy to understand. The logic behind the decision tree can be easily understood because it shows a tree-like structure. EXAMPLE:
  • 15. KN NEIGHBOUR CLASSIFIER The k-nearest neighbors (KNN) algorithm is a simple, easy-to-implement supervised machine learning algorithm that can be used to solve both classification and regression problems A classificationproblem has a discrete value as its output. For example, “likespineappleon pizza” . A regression problem has a real number (a number with a decimal point) as its output. The KNN Algorithm 1.Load the data 2.InitializeK to your chosen number of neighbors 3. For each example in the data 3.1 Calculatethe distance between the query example and the current example from the data. 3.2 Add the distance and the index of the example to an ordered collection 4. Sort the ordered collection of distances and indices from smallest to largest (in ascending order) by the distances 5. Pick the first K entries from the sorted collection 6. Get the labels of the selected K entries 7. If regression, return the mean of the K labels 8. If classification, return the mode of the K labels
  • 16.
  • 18. ABOUT THE DATA SET: Age : Age of the patient Sex : Sex of the patient ca: number of major vessels (0-3) cp : Chest Pain type Value 1: typical angina Value 2: atypicalangina Value 3: non-anginal pain Value 4: asymptomatic trtbps : resting blood pressure (in mm Hg) chol : cholestoral in mg/dl fetched via BMI sensor fbs : (fasting blood sugar > 120 mg/dl) (1 = true; 0 = false) restecg : resting electrocardiographicresults Value 0: normal Value 1: having ST-T wave abnormality(T wave inversions and/orST elevationor depression of > 0.05 mV) Value 2: showing probableor definite left ventricularhypertrophy by Estes' criteria thalach: maximum heart rate achieved target : 0= less chance of heart attack 1= more chance of heart attack
  • 20.