You are on page 1of 13

Heart Attack Prediction Using

Python
Group Members
Shaikh Abuzar (119M0044)
Mendgudli Sharad (119M0072)

Advisor
Prof V. M. Mane sir

Vishwakarma Institute of Technology pune

September 24, 2019


Problem statement
• To design a system to predict the heart attack
Overview
• Introduction
• Flow
• Modeling
• Conclusion
• References
Introduction
• The heart attack is a common problem in all human beings with the age above
30.
• The cholesterol level is another one major problem which leads to heart attack.
• Medical diagnosis is an important yet complicated task that needs to be done
accurately and efficiently.
• The automation of this system is very much needed to help the physicians to do
better diagnosis and treatment.
• Poor clinical decisions can lead to disastrous consequences which are therefore
unacceptable.
• The major challenge of the healthcare system nowadays is to predict the diseases
in quality manner.
• The clinical decisions made by doctors may be error prone and leads to some
problems for patients.
Flow Diagram
Attributes
Data Fetching

Comparing with
Data Wrangling available database

Linear regression &


Data Analysis Support vector
machine

Final result
Data Evaluation
Description Variable Type
age age in years continuous int
sex 1 = male, 0 = female categorial int
chest pain type: 1: typical angina, 2: atypical
cp categorial int
angina, 3: non-anginal pain, 4: asymptomatic
trestbps resting blood pressure in mm Hg continuous float
chol serum cholestoral in mg/dl continuous float
fasting blood sugar > 120 mg/dl: 1 = true, 0 =
fbs categorial int
false
0: normal, 1: having ST-T wave abnormality, 2:
restecg categorial int
left ventricular hypertrophy
thalach maximum heart rate achieved continuous float
exang exercise induced angina (1 = yes; 0 = no) categorial int
ST depression induced by exercise relative to
oldpeak continuous float
rest
the slope of the peak exercise ST segment: 1:
slope categorial int
upsloping, 2: flat, 3: downsloping
number of major vessels: (0-3) colored by
ca continuous int
flourosopy
thal 3: normal, 6: fixed defect, 7: reversable defect categorial int
target diagnosis of heart disease: (0 = false, 1 = true categorial int
Supervised learning
Dataset:-Has example inputs and outputs
Objective :- Train a model to predict outputs from future inputs
Classification Algorithm
Linear Regression
It’s a method to predict a target variable by fitting the best linear relationship between the dependent variable.
Types of linear regression are
a) Simple linear regression :
b) multiple linear regression :

this method uses more than one independent variable to predict a dependent variable by fitting a best linear
relationship
Support Vector Machines
In this algorithm we plot each data items as a point in n-
dimensional space (where n is number of features) with the
value of each feature being the value of a particular coordinate
.Then we perform classification by finding the hyper-plane that
differentiate the two classes very well.
Support Vector are simply the co ordinates of individual
observation .support vector machine is a frontier which best
segregates the two classes(hyper plane)
Conclusion

After comparing result of both algorithms we will be able to conclude which is the
best algorithm result.
References
S.Florence1, N.G.Bhuvaneswari Amma2, G.Annapoorani3, K.Malathi4, Predicting the Risk of Heart Attacks
using Neural Network and Decision Tree International Journal of Innovative Research in Computer and
Communication Engineering(An ISO 3297: 2007 Certified Organization) Vol. 2, Issue 11, November 2014

Shantakumar B.Patil Dr.Y.S.Kumaraswamy Extraction of Significant Patterns from Heart Disease Warehouses
for Heart Attack Prediction IJCSNS International Journal of Computer Science and Network 228 Security,
VOL.9 No.2, February 2009
Thank You

You might also like