World Health Organization (WHO) has estimated 12 million deaths occur worldwide, every year due to Heart diseases. Half the deaths in the United States and other developed countries are due to cardio vascular diseases. The early prognosis of cardiovascular diseases can aid in making decisions on lifestyle changes in high risk patients and in turn reduce the complications. This research intends to pinpoint the most relevant/risk factors of heart disease as well as predict the overall risk using logistic regression.
The classification goal is to predict whether the patient has 10-year risk of future coronary heart disease (CHD).
The dataset is available on the Kaggle website, and it is from an ongoing cardiovascular study on residents of the town of Framingham, Massachusetts. The dataset provides the patients’ information. It includes over 4,000 records and 15 attributes.
Framingham Heart study dataset includes several demographic risk factors:-
sex
: male or femaleage
: age of the patienteducation
: levels coded 1 for some high school, 2 for a high school diploma or GED, 3 for some college or vocational school, and 4 for a college degree.
The data set also includes behavioral risk factors associated with smoking
currentSmoker
: whether or not the patient is a current smokercigsPerDay
: the number of cigarettes that the person smoked on average in one day.
Medical history risk factors
BPMeds
: whether or not the patient was on blood pressure medicationprevalentStroke
: whether or not the patient had previously had a strokeprevalentHyp
: whether or not the patient was hypertensivediabetes
: whether or not the patient had diabetes
Risk factors from the first physical examination of the patient.
totChol
: total cholesterol levelsysBP
: systolic blood pressurediaBP
: diastolic blood pressureBMI
: Body Mass IndexheartRate
: heart rateglucose
: glucose levelTenYearCHD
: 10 year risk of coronary heart disease CHD (TARGET VARIABLE)
- Pandas (for data manipulation)
- Matplotlib (for data visualization)
- Seaborn (for data visualization)
- Scikit-Learn (for data modeling)
- Warnings (for hiding warnings)
- Imblearn (for data oversampling)
Credits: https://github.com/Ravjot03/Heart-Disease-Prediction