There is a newer version of the record available.

Published May 4, 2025 | Version v2
Dataset Open

BRFSS 2020 Heart Disease Dataset(Cleaned Version)

Description

Originally, the dataset come from the CDC and is a major part of the Behavioral Risk Factor Surveillance System (BRFSS), which conducts annual telephone surveys to gather data on the health status of U.S. residents. As the CDC describes: "Established in 1984 with 15 states, BRFSS now collects data in all 50 states as well as the District of Columbia and three U.S. territories. BRFSS completes more than 400,000 adult interviews each year, making it the largest continuously conducted health survey system in the world.". The most recent dataset (as of February 15, 2022) includes data from 2020. It consists of 401,958 rows and 279 columns. The vast majority of columns are questions asked to respondents about their health status, such as "Do you have serious difficulty walking or climbing stairs?" or "Have you smoked at least 100 cigarettes in your entire life? [Note: 5 packs = 100 cigarettes]". 

To improve the efficiency and relevance of our analysis, we removed certain attributes from the original BRFSS dataset. Many of the 279 original attributes included administrative codes, metadata, or survey-specific variables that do not contribute meaningfully to heart disease prediction—such as respondent IDs, timestamps, state-level identifiers, and detailed lifestyle questions unrelated to cardiovascular health. By focusing on a carefully selected subset of 18 attributes directly linked to medical, behavioral, and demographic factors known to influence heart health, we streamlined the dataset. This not only reduced computational complexity but also improved model interpretability and performance by eliminating noise and irrelevant information. All predicting variables could be divided into 4 broad categories:

  1. Demographic factors: sex, age category (14 levels), race, BMI (Body Mass Index)

  2. Diseases: weather respondent ever had such diseases as asthma, skin cancer, diabetes, stroke or kidney disease (not including kidney stones, bladder infection or incontinence)

  3. Unhealthy habits:

    • Smoking - respondents that smoked at least 100 cigarettes in their entire life (5 packs = 100 cigarettes)
    • Alcohol Drinking - heavy drinkers (adult men having more than 14 drinks per week and adult women having more than 7 drinks per week
  4. General Health:

    • Difficulty Walking - weather respondent have serious difficulty walking or climbing stairs
    • Physical Activity - adults who reported doing physical activity or exercise during the past 30 days other than their regular job
    • Sleep Time - respondent’s reported average hours of sleep in a 24-hour period
    • Physical Health - number of days being physically ill or injured (0-30 days)
    • Mental Health - number of days having bad mental health (0-30 days)
    • General Health - respondents declared their health as ’Excellent’, ’Very good’, ’Good’ ,’Fair’ or ’Poor’

Below is a description of the features collected for each patient:

# Feature Coded Variable Name Description
1 HeartDisease CVDINFR4 Respondents that have ever reported having coronary heart disease (CHD) or myocardial infarction (MI)
2 BMI _BMI5CAT Body Mass Index (BMI)
3 Smoking _SMOKER3 Have you smoked at least 100 cigarettes in your entire life? [Note: 5 packs = 100 cigarettes]
4 AlcoholDrinking _RFDRHV7 Heavy drinkers (adult men having more than 14 drinks per week and adult women having more than 7 drinks per week
5 Stroke CVDSTRK3 (Ever told) (you had) a stroke?
6 PhysicalHealth PHYSHLTH Now thinking about your physical health, which includes physical illness and injury, for how many days during the past 30
7 MentalHealth MENTHLTH Thinking about your mental health, for how many days during the past 30 days was your mental health not good?
8 DiffWalking DIFFWALK Do you have serious difficulty walking or climbing stairs?
9 Sex SEXVAR Are you male or female?
10 AgeCategory _AGE_G, Fourteen-level age category
11 Race _IMPRACE Imputed race/ethnicity value
12 Diabetic DIABETE4 (Ever told) (you had) diabetes?
13 PhysicalActivity EXERANY2 Adults who reported doing physical activity or exercise during the past 30 days other than their regular job
14 GenHealth GENHLTH Would you say that in general your health is...
15 SleepTime SLEPTIM1 On average, how many hours of sleep do you get in a 24-hour period?
16 Asthma CHASTHMA (Ever told) (you had) asthma?
17 KidneyDisease CHCKDNY2 Not including kidney stones, bladder infection or incontinence, were you ever told you had kidney disease?
18 SkinCancer CHCSCNCR (Ever told) (you had) skin cancer?

Technical info

https://www.cdc.gov/brfss/annual_data/2020/pdf/codebook20_llcp-v2-508.pdf

Files

heart_2020_cleaned.csv

Files (23.3 MB)

Name Size Download all
md5:f5a885ff39a113e797af67367b6bc2cf
23.3 MB Preview Download