This project leverages the CDC Behavioral Risk Factor Surveillance System (BRFSS) survey data to drive a multi-tiered cancer risk assessment platform.
The dataset was custom-engineered to provide a clean, standardized foundation for machine learning.
- BRFSS 2021 (LLCP2021.csv): ~100k records sampled.
- BRFSS 2024 (brfss_survey_data_2024.csv): ~100k records sampled.
- Total Merged Records: 195,940
The data was processed using a multi-step extraction pipeline:
- Filtering: Removal of records with invalid age groups or critical missing demographic data.
- Standardization: Variable names were mapped from technical CDC codes (e.g.,
_AGEG5YR,_BMI5) to human-readable clinical labels (e.g.,Age_Group,BMI). - Cleaning: BMI values were normalized, and categorical codes were simplified for ML compatibility.
- Merging: Harmonized variables across different survey years (handling column name changes between 2021 and 2024).
The dataset includes exhaustive health indicators across several categories:
- Demographics: Age, Sex, BMI.
- Tobacco Use: Cigarette smoking intensity (100+), current usage, and E-cigarette history.
- Physical Activity: Regular exercise habits and leisure time activity.
- Screenings: History of Mammograms, Cervical, Colorectal, and Lung cancer screenings.
- Immunizations: HPV Vaccination, Flu shots, and Pneumonia shots.
- Chronic Conditions: History of Diabetes, COPD, Depression, Kidney Disease, and Stroke.
Records were labeled based on specific cancer diagnoses:
- Major Types: Lung, Breast, Colon, Melanoma, Skin (Non-Melanoma), etc.
- Mapping: Over 30 CDC cancer codes were mapped to a unified
Cancer_Labelcolumn.
The backend uses a Random Forest Classifier ensemble trained on this merged dataset.
- Model Goal: Predict the specific risk level for top cancer concerns (Lung, Breast, Skin, Colorectal) based on the user's complete health profile.
- Integration: The models are exported as
.pklfiles and loaded viajoblibin the FastAPI backend. - Hybrid Scoring: The AI predictions are combined with population-wide empirical baselines (CDC base risk) to provide a nuanced, data-driven risk percentage.
- Tier 1: User fills out the comprehensive health form.
- Analysis: The AI model calculates probabilities across multiple cancer types.
- Tier 2: The platform routes the user to a specialized clinical biomarker form based on the highest AI-flagged risk.