← Back to Work

Survival & Health-Risk Modelling from Population Data

An ongoing personal project using NHANES data linked to mortality to explore survival patterns and develop models of health-related risk.

Data Science & ML Survival Analysis In Progress

Context

I started this project to deepen my understanding of statistical modelling with population health data. The working dataset combines NHANES participant characteristics and health measurements with mortality follow-up, allowing me to study both whether an event occurred and the time observed before that event or the end of follow-up.

My initial analysis focuses on age, sex and body mass index. The aim is to build a clear analytical workflow, starting with data exploration and progressing towards survival models and risk prediction.

Research Objectives

  • Describe survival patterns: Explore how observed survival varies across demographic and health-related groups.
  • Model associations: Investigate how participant characteristics relate to mortality while accounting for follow-up time and right censoring.
  • Evaluate risk predictions: Assess whether future models can distinguish levels of risk and produce calibrated estimates at a defined prediction horizon.

Work Completed

  • Dataset preparation: Loaded and organised the working dataset, including participant identifiers, demographic variables, BMI, follow-up duration and mortality indicators.
  • Outcome construction: Prepared follow-up and event variables, including versions restricted to a five-year horizon.
  • Exploratory analysis: Examined participant characteristics and BMI distributions to understand the data before modelling.
  • Survival exploration: Produced initial Kaplan–Meier curves by sex to explore observed survival over time.
  • Implementation: Organised the analysis in Python scripts and saved figures for documentation and further review.

Current Status

The project is currently at the data-preparation and exploratory-analysis stage. Initial figures help describe the working sample and guide subsequent modelling; predictive performance and adjusted associations have not yet been established.

I am using this stage to check variable definitions, follow-up handling and the analytical choices needed before fitting models.

Next Steps

  • Cox proportional hazards model: Fit an interpretable baseline model and examine its assumptions, including proportional hazards.
  • Validation: Define a reproducible evaluation protocol, with preprocessing fitted on training data and performance assessed on held-out observations.
  • Discrimination and calibration: Evaluate risk ranking and agreement between predicted and observed outcomes at the chosen horizon, accounting for censoring.
  • Survey design: Determine how sampling weights, strata and clusters should be incorporated for each analysis and distinguish sample-level exploration from population-level estimation.
  • Model comparison: Once the baseline is established, consider more flexible survival models and assess whether their added complexity improves performance.

Methodological Perspective

My focus is on understanding the data and establishing a reliable statistical baseline before introducing more complex machine-learning approaches. Particular attention will go to censoring, missing data, model assumptions and reproducibility.

The analysis investigates associations and predictive patterns; it is not designed to establish causal effects. This page will be updated as models, evaluation results and documented findings become available.

Tools

Python · Pandas · NumPy · Matplotlib · Kaplan–Meier estimation