All work
Patients
988
Clinical fields
13
Best MAE, SVR
31.2 months
Best R-squared
-0.07

Data

The dataset has 988 patients and 13 clinical fields: age at diagnosis, vital status, tumor stage and grade, residual disease, primary therapy outcome, cancer status, overall and progression-free survival, and platinum-free interval and status. Patient IDs follow The Cancer Genome Atlas (TCGA) barcode format.

Approach

  1. Cleaned the data: median imputation for numbers, mode for categories, encoding, standardization, and an 80/20 train and test split.
  2. Explored distributions, category breakdowns and correlations.
  3. Estimated Kaplan-Meier survival curves by patient group with lifelines.
  4. Trained Random Forest, Gradient Boosting, SVR and XGBoost regressors on overall survival, scored by MAE, RMSE and R-squared.

Stage separates outcomes

Kaplan-Meier survival curves over 180 months for stages IIIA (138 patients), IIIB (142), IIIC (470) and IV (206). IIIA and IIIB stay high; IIIC falls the most steeply.
Survival by tumor stage. Stage IIIC, the largest group, declines the most steeply.

Survival time resists prediction

Bar chart of prediction error in months: SVR MAE 31.22 and RMSE 39.93, Gradient Boosting 32.18 and 40.09, XGBoost 35.48 and 44.56, Random Forest 36.56 and 46.48.
Prediction error for overall survival, in months. Lower is better.
ModelMAE (months)RMSE (months)R-squared
SVR31.2239.93-0.07
Gradient Boosting32.1840.09-0.08
XGBoost35.4844.56-0.34
Random Forest36.5646.48-0.45

Every model scores a negative R-squared on held-out patients, so none beats predicting the average survival time. Clinical fields alone don't carry enough signal; molecular or genomic data would likely be needed.