Problem

This problem is centered around Cardiovascular Heart Disease Prediction, i.e., whether a person is suffering from cardiovascular disease or not. It is important that cardiologists are able to recognize cardiovascular disease in patients.
The input data set consists of factual information, results of medical examinations, and the information given by the patient.

Dataset

The Cardiovascular Disease Dataset training data is based on a public dataset available at Kaggle by Svetlana Ulianova.
The datasets contain 70,000 records of patient data.
Data description
There are 3 types of input features,
  • Objective: factual information;
  • Examination: results of medical examination;
  • Subjective: information given by the patient.
Features
  1. Age | Objective Feature | age | int (days)
  2. Height | Objective Feature | height | int (cm) |
  3. Weight | Objective Feature | weight | float (kg) |
  4. Gender | Objective Feature | gender | categorical code |
  5. Systolic blood pressure | Examination Feature | ap_hi | int |
  6. Diastolic blood pressure | Examination Feature | ap_lo | int |
  7. Cholesterol | Examination Feature | cholesterol | 1: normal, 2: above normal, 3: well above normal |
  8. Glucose | Examination Feature | gluc | 1: normal, 2: above normal, 3: well above normal |
  9. Smoking | Subjective Feature | smoke | binary |
  10. Alcohol intake | Subjective Feature | alco | binary |
  11. Physical activity | Subjective Feature | active | binary |
  12. Presence or absence of cardiovascular disease | Target Variable | cardio | binary |
All of the dataset values were collected at the moment of medical examination.

Solution

Prerequisites
  1. Visual Studio (I'm using VS2019)
  2. ML.NET Model Builder
  3. ASP.NET Core (I'm using 2.2)
  4. Cardiovascular Disease Dataset
Let's start,
Now finally build your project and run.

Demo

Conclusion

So in this article, we learned how to build, train, evaluate and consume the Cardiovascular Disease Detection model using ML.NET Model builder and consume the resultant model into ASP.NET Core MVC application. Here is the overview.
Note
In this article, we have used ML.NET Model builder to build our Cardiovascular Disease Detection machine learning model.
You can also access the complete project source code from my GitHub repository habib-developer/Cardiovascular-Disease-Detection.
For more information about the training dataset please visit kaggle Cardiovascular Disease dataset.