Skip to main content
. 2024 Jan 8;14(2):144. doi: 10.3390/diagnostics14020144

Table 4.

Heart Disease Cleveland Dataset.

Features Details
1. Age Numeric representation of patients’ age in years.
2. Sex Categorical feature representing gender, where Male is encoded as 1 and Female as 0.
3. cp Categorical attribute indicating the various types of chest pain felt by the patient. 0 for typical angina, 1 for atypical angina, 2 for non-anginal pain, and 3 for asymptomatic.
4. trestbps Numerical measurement of the patient’s blood pressure at rest, recorded in mm/HG.
5. chol Numeric value indicating the serum cholesterol intensity of the patient, calculated in mg/dL.
6. fbs Categorical representation of fasting blood sugar levels, with 1 signifying levels above 120 mg/dL and 0 indicating levels below.
7. restecg Categorical feature describing the result of the electrocardiogram conducted at rest. 0 for normal, 1 for ST-T wave abnormalities, and 2 for indications of probable or definite left ventricular hypertrophy according to Estes’ criteria.
8. thalach Numeric representation of the heart rate realized by the patient.
9. exang Categorical feature denoting whether exercise-induced angina is present. 0 signifies no, while 1 signifies yes.
10. oldpeak Numeric value indicating exercise-induced ST-depression relative to the rest state.
11. slope Categorical attribute representing the slope of the ST segment during peak exercise. It can take three values: 0 for up-sloping, 1 for flat, and 2 for down-sloping.
12. ca Categorical feature indicating the number of major blood vessels, ranging from 0 to 3.
13 thal Categorical representation of a blood disorder called thalassemia. 0 for NULL, 1 for normal blood flow, 2 for fixed defects (indicating no blood flow in a portion of the heart), and 3 for reversible defects (indicating abnormal but observable blood flow).
14. target The target variable to predict heart disease, encoded as 1 for patients with heart disease and 0 for patients without heart disease.