Challenge

Heart Disease Prediction Using Machine Learning

From the given clinical parameters about a patient, prediction models like Logistic Regression, K-Nearest Neighbours Classifier, Support Vector Machine, Decision Tree Classifier and Random Forest Classifier to predict whether or not the patient has heart disease.

Methodology

High accuracy prediction be done by following the steps below:

  1. Importing the required modules
  2. Importing the dataset
  3. Performing Exploratory Data Analysis on the dataset
  4. Plotting the graphs to compare with the results
  5. Processing the data
  6. Analysing the accuracy score by determing the confusion matrix and classifying the reports
  7. Splitting data into test and train
  8. Building the logistic regression model and predicting heart disease and finalising the accuracy score
  9. Building the K-Nearest Neighbours classification model and predicting heart disease and finalising the accuracy score
  10. Building the support vector machine model and predicting heart disease and finalising the accuracy score
  11. Building the decision tress classifier model and predicting heart disease and finalising the accuracy score
  12. Building the random forest model and predicting heart disease and finalising the accuracy score
  13. Comparing the accuracy of each model and declaring which model predicts the heart disease in a patient with higher accuracy

Result:

By performing the above steps, we can see that K-Nearest Neighbour Algorithm predicts data with higher accuracy.

Your portfolio, next

Ship work like this
in your own course.

Talk to a career counsellor

Free 20-minute call. We'll map the right course to where you want to work.

By submitting you agree to our Terms and Privacy Policy.